public function recv_healthPoke()
 {
     $bin_accel = $this->input_ instanceof TBinaryProtocolAccelerated && function_exists('thrift_protocol_read_binary');
     if ($bin_accel) {
         $result = thrift_protocol_read_binary($this->input_, '\\RedRoma\\Aroma\\Endpoint\\ApplicationEndpoint_healthPoke_result', $this->input_->isStrictRead());
     } else {
         $rseqid = 0;
         $fname = null;
         $mtype = 0;
         $this->input_->readMessageBegin($fname, $mtype, $rseqid);
         if ($mtype == TMessageType::EXCEPTION) {
             $x = new TApplicationException();
             $x->read($this->input_);
             $this->input_->readMessageEnd();
             throw $x;
         }
         $result = new \RedRoma\Aroma\Endpoint\ApplicationEndpoint_healthPoke_result();
         $result->read($this->input_);
         $this->input_->readMessageEnd();
     }
     if ($result->success !== null) {
         return $result->success;
     }
     if ($result->ex1 !== null) {
         throw $result->ex1;
     }
     throw new \Exception("healthPoke failed: unknown result");
 }
 public function recv_UpdateState()
 {
     $bin_accel = $this->input_ instanceof TBinaryProtocolAccelerated && function_exists('thrift_protocol_read_binary');
     if ($bin_accel) {
         $result = thrift_protocol_read_binary($this->input_, '\\Impala\\StateStoreSubscriber_UpdateState_result', $this->input_->isStrictRead());
     } else {
         $rseqid = 0;
         $fname = null;
         $mtype = 0;
         $this->input_->readMessageBegin($fname, $mtype, $rseqid);
         if ($mtype == TMessageType::EXCEPTION) {
             $x = new TApplicationException();
             $x->read($this->input_);
             $this->input_->readMessageEnd();
             throw $x;
         }
         $result = new \Impala\StateStoreSubscriber_UpdateState_result();
         $result->read($this->input_);
         $this->input_->readMessageEnd();
     }
     if ($result->success !== null) {
         return $result->success;
     }
     throw new \Exception("UpdateState failed: unknown result");
 }
 public function recv_Report()
 {
     $bin_accel = $this->input_ instanceof TBinaryProtocolAccelerated && function_exists('thrift_protocol_read_binary');
     if ($bin_accel) {
         $result = thrift_protocol_read_binary($this->input_, '\\CroutonThrift\\ReportingService_Report_result', $this->input_->isStrictRead());
     } else {
         $rseqid = 0;
         $fname = null;
         $mtype = 0;
         $this->input_->readMessageBegin($fname, $mtype, $rseqid);
         if ($mtype == TMessageType::EXCEPTION) {
             $x = new TApplicationException();
             $x->read($this->input_);
             $this->input_->readMessageEnd();
             throw $x;
         }
         $result = new \CroutonThrift\ReportingService_Report_result();
         $result->read($this->input_);
         $this->input_->readMessageEnd();
     }
     if ($result->success !== null) {
         return $result->success;
     }
     throw new \Exception("Report failed: unknown result");
 }
Beispiel #4
0
 public function recv_Log()
 {
     $bin_accel = $this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_read_binary');
     if ($bin_accel) {
         $result = thrift_protocol_read_binary($this->input_, 'scribe_Log_result', $this->input_->isStrictRead());
     } else {
         $rseqid = 0;
         $fname = null;
         $mtype = 0;
         $this->input_->readMessageBegin($fname, $mtype, $rseqid);
         if ($mtype == TMessageType::EXCEPTION) {
             $x = new TApplicationException();
             $x->read($this->input_);
             $this->input_->readMessageEnd();
             throw $x;
         }
         $result = new scribe_Log_result();
         $result->read($this->input_);
         $this->input_->readMessageEnd();
     }
     if ($result->success !== null) {
         return $result->success;
     }
     throw new Exception("Log failed: unknown result");
 }
Beispiel #5
0
function test()
{
    $p = new DummyProtocol();
    $v1 = new TestStruct();
    $v1->aString = str_repeat('x', 1000000);
    thrift_protocol_write_binary($p, 'foomethod', 1, $v1, 20, true);
    $p->getTransport()->buff = str_replace(pack('N', 1000000), pack('N', (1 << 32) - 2), $p->getTransport()->buff);
    thrift_protocol_read_binary($p, 'TestStruct', true);
}
 public static function deserialize($str, $object, $disable_hphp_extension = false)
 {
     $transport = new TMemoryBuffer();
     $protocol = new TBinaryProtocolAccelerated($transport);
     if (\hacklib_cast_as_boolean(function_exists('thrift_protocol_read_binary')) && !\hacklib_cast_as_boolean($disable_hphp_extension)) {
         $protocol->writeMessageBegin('', TMessageType::REPLY, 0);
         $transport->write($str);
         $object = thrift_protocol_read_binary($protocol, get_class($object), $protocol->isStrictRead());
     } else {
         $transport->write($str);
         $object->read($protocol);
     }
     return $object;
 }
 public static function deserialize($string_object, $class_name)
 {
     $transport = new TMemoryBuffer();
     $protocol = new TBinaryProtocolAccelerated($transport);
     if (function_exists('thrift_protocol_read_binary')) {
         $protocol->writeMessageBegin('', TMessageType::REPLY, 0);
         $transport->write($string_object);
         return thrift_protocol_read_binary($protocol, $class_name, $protocol->isStrictRead());
     } else {
         $transport->write($string_object);
         $object = new $class_name();
         $object->read($protocol);
         return $object;
     }
 }
Beispiel #8
0
function test()
{
    $p = new DummyProtocol();
    $v1 = new TestStruct();
    $v1->aBool = false;
    $v1->anInt = -1234;
    $v1->aDouble = -1.2345;
    $v1->anInt64 = -1;
    $v1->anByte = -12;
    $v1->anI16 = -123;
    $v1->aFloat = 1.25;
    $v1->bFloat = 3.141592653589793;
    thrift_protocol_write_binary($p, 'foomethod', 1, $v1, 20, true);
    var_dump(thrift_protocol_read_binary($p, 'TestStruct', true));
}
Beispiel #9
0
 public static function deserialize($string_object, $class_name)
 {
     $transport = new TMemoryBuffer();
     $protocol = new TBinaryProtocolAccelerated($transport);
     if (function_exists('thrift_protocol_read_binary')) {
         // NOTE (t.heintz) TBinaryProtocolAccelerated internally wraps our TMemoryBuffer in a
         // TBufferedTransport, so we have to retrieve it again or risk losing data when writing
         // less than 512 bytes to the transport (see the comment there as well).
         // @see THRIFT-1579
         $protocol->writeMessageBegin('', TMessageType::REPLY, 0);
         $protocolTransport = $protocol->getTransport();
         $protocolTransport->write($string_object);
         $protocolTransport->flush();
         return thrift_protocol_read_binary($protocol, $class_name, $protocol->isStrictRead());
     } else {
         $transport->write($string_object);
         $object = new $class_name();
         $object->read($protocol);
         return $object;
     }
 }
 public function recv_close()
 {
     $bin_accel = $this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_read_binary');
     if ($bin_accel) {
         $result = thrift_protocol_read_binary($this->input_, '\\ICANS\\Component\\IcansLoggingComponent\\Flume\\ThriftFlumeEventServer_close_result', $this->input_->isStrictRead());
     } else {
         $rseqid = 0;
         $fname = null;
         $mtype = 0;
         $this->input_->readMessageBegin($fname, $mtype, $rseqid);
         if ($mtype == TMessageType::EXCEPTION) {
             $x = new TApplicationException();
             $x->read($this->input_);
             $this->input_->readMessageEnd();
             throw $x;
         }
         $result = new \ICANS\Component\IcansLoggingComponent\Flume\ThriftFlumeEventServer_close_result();
         $result->read($this->input_);
         $this->input_->readMessageEnd();
     }
     return;
 }
 public function recv_ShutdownServer()
 {
     $bin_accel = $this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_read_binary');
     if ($bin_accel) {
         $result = thrift_protocol_read_binary($this->input_, '\\ImpalaPlanService_ShutdownServer_result', $this->input_->isStrictRead());
     } else {
         $rseqid = 0;
         $fname = null;
         $mtype = 0;
         $this->input_->readMessageBegin($fname, $mtype, $rseqid);
         if ($mtype == TMessageType::EXCEPTION) {
             $x = new TApplicationException();
             $x->read($this->input_);
             $this->input_->readMessageEnd();
             throw $x;
         }
         $result = new \ImpalaPlanService_ShutdownServer_result();
         $result->read($this->input_);
         $this->input_->readMessageEnd();
     }
     return;
 }
Beispiel #12
0
 public function recv_hql_query2()
 {
     $bin_accel = $this->input_ instanceof TBinaryProtocolAccelerated && function_exists('thrift_protocol_read_binary');
     if ($bin_accel) {
         $result = thrift_protocol_read_binary($this->input_, '\\Hypertable_ThriftGen2\\HqlService_hql_query2_result', $this->input_->isStrictRead());
     } else {
         $rseqid = 0;
         $fname = null;
         $mtype = 0;
         $this->input_->readMessageBegin($fname, $mtype, $rseqid);
         if ($mtype == TMessageType::EXCEPTION) {
             $x = new TApplicationException();
             $x->read($this->input_);
             $this->input_->readMessageEnd();
             throw $x;
         }
         $result = new \Hypertable_ThriftGen2\HqlService_hql_query2_result();
         $result->read($this->input_);
         $this->input_->readMessageEnd();
     }
     if ($result->success !== null) {
         return $result->success;
     }
     if ($result->e !== null) {
         throw $result->e;
     }
     throw new \Exception("hql_query2 failed: unknown result");
 }
Beispiel #13
0
 public function recv_clean()
 {
     $bin_accel = $this->input_ instanceof TBinaryProtocolAccelerated && function_exists('thrift_protocol_read_binary');
     if ($bin_accel) {
         $result = thrift_protocol_read_binary($this->input_, '\\ThriftHive_clean_result', $this->input_->isStrictRead());
     } else {
         $rseqid = 0;
         $fname = null;
         $mtype = 0;
         $this->input_->readMessageBegin($fname, $mtype, $rseqid);
         if ($mtype == TMessageType::EXCEPTION) {
             $x = new TApplicationException();
             $x->read($this->input_);
             $this->input_->readMessageEnd();
             throw $x;
         }
         $result = new \ThriftHive_clean_result();
         $result->read($this->input_);
         $this->input_->readMessageEnd();
     }
     return;
 }
 public function recv_getCardRechargeList()
 {
     $bin_accel = $this->input_ instanceof TBinaryProtocolAccelerated && function_exists('thrift_protocol_read_binary');
     if ($bin_accel) {
         $result = thrift_protocol_read_binary($this->input_, '\\Thrift\\Server\\CardCenterService_getCardRechargeList_result', $this->input_->isStrictRead());
     } else {
         $rseqid = 0;
         $fname = null;
         $mtype = 0;
         $this->input_->readMessageBegin($fname, $mtype, $rseqid);
         if ($mtype == TMessageType::EXCEPTION) {
             $x = new TApplicationException();
             $x->read($this->input_);
             $this->input_->readMessageEnd();
             throw $x;
         }
         $result = new \Thrift\Server\CardCenterService_getCardRechargeList_result();
         $result->read($this->input_);
         $this->input_->readMessageEnd();
     }
     if ($result->success !== null) {
         return $result->success;
     }
     if ($result->dataNotFound !== null) {
         throw $result->dataNotFound;
     }
     throw new \Exception("getCardRechargeList failed: unknown result");
 }
 public function recv_getAllUserSSHPubKeys()
 {
     $bin_accel = $this->input_ instanceof TBinaryProtocolAccelerated && function_exists('thrift_protocol_read_binary');
     if ($bin_accel) {
         $result = thrift_protocol_read_binary($this->input_, '\\Airavata\\API\\Credentials\\CredentialManagementService_getAllUserSSHPubKeys_result', $this->input_->isStrictRead());
     } else {
         $rseqid = 0;
         $fname = null;
         $mtype = 0;
         $this->input_->readMessageBegin($fname, $mtype, $rseqid);
         if ($mtype == TMessageType::EXCEPTION) {
             $x = new TApplicationException();
             $x->read($this->input_);
             $this->input_->readMessageEnd();
             throw $x;
         }
         $result = new \Airavata\API\Credentials\CredentialManagementService_getAllUserSSHPubKeys_result();
         $result->read($this->input_);
         $this->input_->readMessageEnd();
     }
     if ($result->success !== null) {
         return $result->success;
     }
     throw new \Exception("getAllUserSSHPubKeys failed: unknown result");
 }
Beispiel #16
0
 public function recv_pac()
 {
     $bin_accel = $this->input_ instanceof TBinaryProtocolAccelerated && function_exists('thrift_protocol_read_binary');
     if ($bin_accel) {
         $result = thrift_protocol_read_binary($this->input_, '\\net\\toruneko\\wakfu\\interfaces\\WakfuService_pac_result', $this->input_->isStrictRead());
     } else {
         $rseqid = 0;
         $fname = null;
         $mtype = 0;
         $this->input_->readMessageBegin($fname, $mtype, $rseqid);
         if ($mtype == TMessageType::EXCEPTION) {
             $x = new TApplicationException();
             $x->read($this->input_);
             $this->input_->readMessageEnd();
             throw $x;
         }
         $result = new \net\toruneko\wakfu\interfaces\WakfuService_pac_result();
         $result->read($this->input_);
         $this->input_->readMessageEnd();
     }
     if ($result->success !== null) {
         return $result->success;
     }
     throw new \Exception("pac failed: unknown result");
 }
 public function recv_GetBehaviorReport()
 {
     $bin_accel = $this->input_ instanceof TBinaryProtocolAccelerated && function_exists('thrift_protocol_read_binary');
     if ($bin_accel) {
         $result = thrift_protocol_read_binary($this->input_, '\\com\\boxalino\\dataintelligence\\api\\thrift\\BoxalinoDataIntelligence_GetBehaviorReport_result', $this->input_->isStrictRead());
     } else {
         $rseqid = 0;
         $fname = null;
         $mtype = 0;
         $this->input_->readMessageBegin($fname, $mtype, $rseqid);
         if ($mtype == TMessageType::EXCEPTION) {
             $x = new TApplicationException();
             $x->read($this->input_);
             $this->input_->readMessageEnd();
             throw $x;
         }
         $result = new \com\boxalino\dataintelligence\api\thrift\BoxalinoDataIntelligence_GetBehaviorReport_result();
         $result->read($this->input_);
         $this->input_->readMessageEnd();
     }
     if ($result->success !== null) {
         return $result->success;
     }
     if ($result->e !== null) {
         throw $result->e;
     }
     throw new \Exception("GetBehaviorReport failed: unknown result");
 }
 public function recv_updateChoice()
 {
     $bin_accel = $this->input_ instanceof TBinaryProtocolAccelerated && function_exists('thrift_protocol_read_binary');
     if ($bin_accel) {
         $result = thrift_protocol_read_binary($this->input_, '\\com\\boxalino\\p13n\\api\\thrift\\P13nService_updateChoice_result', $this->input_->isStrictRead());
     } else {
         $rseqid = 0;
         $fname = null;
         $mtype = 0;
         $this->input_->readMessageBegin($fname, $mtype, $rseqid);
         if ($mtype == TMessageType::EXCEPTION) {
             $x = new TApplicationException();
             $x->read($this->input_);
             $this->input_->readMessageEnd();
             throw $x;
         }
         $result = new \com\boxalino\p13n\api\thrift\P13nService_updateChoice_result();
         $result->read($this->input_);
         $this->input_->readMessageEnd();
     }
     if ($result->success !== null) {
         return $result->success;
     }
     if ($result->p13nServiceException !== null) {
         throw $result->p13nServiceException;
     }
     throw new \Exception("updateChoice failed: unknown result");
 }
Beispiel #19
0
 public function recv_getUserInfoByEmail()
 {
     $bin_accel = $this->input_ instanceof TBinaryProtocolAccelerated && function_exists('thrift_protocol_read_binary');
     if ($bin_accel) {
         $result = thrift_protocol_read_binary($this->input_, '\\Demo\\Account_getUserInfoByEmail_result', $this->input_->isStrictRead());
     } else {
         $rseqid = 0;
         $fname = null;
         $mtype = 0;
         $this->input_->readMessageBegin($fname, $mtype, $rseqid);
         if ($mtype == TMessageType::EXCEPTION) {
             $x = new TApplicationException();
             $x->read($this->input_);
             $this->input_->readMessageEnd();
             throw $x;
         }
         $result = new \Demo\Account_getUserInfoByEmail_result();
         $result->read($this->input_);
         $this->input_->readMessageEnd();
     }
     if ($result->success !== null) {
         return $result->success;
     }
     if ($result->ouch !== null) {
         throw $result->ouch;
     }
     throw new \Exception("getUserInfoByEmail failed: unknown result");
 }
 public function recv_findRelated()
 {
     $bin_accel = $this->input_ instanceof TBinaryProtocolAccelerated && function_exists('thrift_protocol_read_binary');
     if ($bin_accel) {
         $result = thrift_protocol_read_binary($this->input_, '\\EDAM\\NoteStore\\NoteStore_findRelated_result', $this->input_->isStrictRead());
     } else {
         $rseqid = 0;
         $fname = null;
         $mtype = 0;
         $this->input_->readMessageBegin($fname, $mtype, $rseqid);
         if ($mtype == TMessageType::EXCEPTION) {
             $x = new TApplicationException();
             $x->read($this->input_);
             $this->input_->readMessageEnd();
             throw $x;
         }
         $result = new \EDAM\NoteStore\NoteStore_findRelated_result();
         $result->read($this->input_);
         $this->input_->readMessageEnd();
     }
     if ($result->success !== null) {
         return $result->success;
     }
     if ($result->userException !== null) {
         throw $result->userException;
     }
     if ($result->systemException !== null) {
         throw $result->systemException;
     }
     if ($result->notFoundException !== null) {
         throw $result->notFoundException;
     }
     throw new \Exception("findRelated failed: unknown result");
 }
 public function recv_li_RemoveAll()
 {
     $bin_accel = $this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_read_binary');
     if ($bin_accel) {
         $result = thrift_protocol_read_binary($this->input_, 'wthugelistint_THugeListInt_DataService_li_RemoveAll_result', $this->input_->isStrictRead());
     } else {
         $rseqid = 0;
         $fname = null;
         $mtype = 0;
         $this->input_->readMessageBegin($fname, $mtype, $rseqid);
         if ($mtype == TMessageType::EXCEPTION) {
             $x = new TApplicationException();
             $x->read($this->input_);
             $this->input_->readMessageEnd();
             throw $x;
         }
         $result = new wthugelistint_THugeListInt_DataService_li_RemoveAll_result();
         $result->read($this->input_);
         $this->input_->readMessageEnd();
     }
     if ($result->success !== null) {
         return $result->success;
     }
     if ($result->ex1 !== null) {
         throw $result->ex1;
     }
     if ($result->ex2 !== null) {
         throw $result->ex2;
     }
     throw new Exception("li_RemoveAll failed: unknown result");
 }
Beispiel #22
0
 public function recv_removeIdFromWhitelist()
 {
     $bin_accel = $this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_read_binary');
     if ($bin_accel) {
         $result = thrift_protocol_read_binary($this->input_, 'vng_zingme_payment_thrift_TAppServer_removeIdFromWhitelist_result', $this->input_->isStrictRead());
     } else {
         $rseqid = 0;
         $fname = null;
         $mtype = 0;
         $this->input_->readMessageBegin($fname, $mtype, $rseqid);
         if ($mtype == TMessageType::EXCEPTION) {
             $x = new TApplicationException();
             $x->read($this->input_);
             $this->input_->readMessageEnd();
             throw $x;
         }
         $result = new vng_zingme_payment_thrift_TAppServer_removeIdFromWhitelist_result();
         $result->read($this->input_);
         $this->input_->readMessageEnd();
     }
     return;
 }
Beispiel #23
0
function test()
{
    $p = new DummyProtocol();
    $v1 = new TestStruct();
    $v1->aBool = true;
    $v1->anInt = 1234;
    $v1->aString = 'abcdef';
    $v1->aDouble = 1.2345;
    $v1->anInt64 = 8589934592;
    $v1->aList = array(13.3, 23.4, 3576.2);
    $v1->aMap = array(10 => 1.2, 43 => 5.33);
    $v1->aSet = array(10 => true, 11 => true);
    $v1->anByte = 123;
    $v1->anI16 = 1234;
    var_dump($v1);
    thrift_protocol_write_binary($p, 'foomethod', 1, $v1, 20, true);
    var_dump(md5($p->getTransport()->buff));
    var_dump(thrift_protocol_read_binary($p, 'TestStruct', true));
}
 public function recv_set_cql_version()
 {
     $bin_accel = $this->input_ instanceof \TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_read_binary');
     if ($bin_accel) {
         $result = thrift_protocol_read_binary($this->input_, '\\cassandra\\Cassandra_set_cql_version_result', $this->input_->isStrictRead());
     } else {
         $rseqid = 0;
         $fname = null;
         $mtype = 0;
         $this->input_->readMessageBegin($fname, $mtype, $rseqid);
         if ($mtype == \TMessageType::EXCEPTION) {
             $x = new \TApplicationException();
             $x->read($this->input_);
             $this->input_->readMessageEnd();
             throw $x;
         }
         $result = new \cassandra\Cassandra_set_cql_version_result();
         $result->read($this->input_);
         $this->input_->readMessageEnd();
     }
     if ($result->ire !== null) {
         throw $result->ire;
     }
     return;
 }
 public function recv_isWorkflowExistWithName()
 {
     $bin_accel = $this->input_ instanceof TBinaryProtocolAccelerated && function_exists('thrift_protocol_read_binary');
     if ($bin_accel) {
         $result = thrift_protocol_read_binary($this->input_, '\\Airavata\\API\\Workflow_isWorkflowExistWithName_result', $this->input_->isStrictRead());
     } else {
         $rseqid = 0;
         $fname = null;
         $mtype = 0;
         $this->input_->readMessageBegin($fname, $mtype, $rseqid);
         if ($mtype == TMessageType::EXCEPTION) {
             $x = new TApplicationException();
             $x->read($this->input_);
             $this->input_->readMessageEnd();
             throw $x;
         }
         $result = new \Airavata\API\Workflow_isWorkflowExistWithName_result();
         $result->read($this->input_);
         $this->input_->readMessageEnd();
     }
     if ($result->success !== null) {
         return $result->success;
     }
     if ($result->ire !== null) {
         throw $result->ire;
     }
     if ($result->ace !== null) {
         throw $result->ace;
     }
     if ($result->ase !== null) {
         throw $result->ase;
     }
     throw new \Exception("isWorkflowExistWithName failed: unknown result");
 }
 public function recv_getNoteStoreUrl()
 {
     $bin_accel = $this->input_ instanceof \TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_read_binary');
     if ($bin_accel) {
         $result = thrift_protocol_read_binary($this->input_, '\\EDAM\\UserStore\\UserStore_getNoteStoreUrl_result', $this->input_->isStrictRead());
     } else {
         $rseqid = 0;
         $fname = null;
         $mtype = 0;
         $this->input_->readMessageBegin($fname, $mtype, $rseqid);
         if ($mtype == \TMessageType::EXCEPTION) {
             $x = new \TApplicationException();
             $x->read($this->input_);
             $this->input_->readMessageEnd();
             throw $x;
         }
         $result = new \EDAM\UserStore\UserStore_getNoteStoreUrl_result();
         $result->read($this->input_);
         $this->input_->readMessageEnd();
     }
     if ($result->success !== null) {
         return $result->success;
     }
     if ($result->userException !== null) {
         throw $result->userException;
     }
     if ($result->systemException !== null) {
         throw $result->systemException;
     }
     throw new \Exception("getNoteStoreUrl failed: unknown result");
 }
Beispiel #27
0
 public function recv_drop_table()
 {
     $bin_accel = $this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_read_binary');
     if ($bin_accel) {
         $result = thrift_protocol_read_binary($this->input_, 'Hypertable_ThriftGen_ClientService_drop_table_result', $this->input_->isStrictRead());
     } else {
         $rseqid = 0;
         $fname = null;
         $mtype = 0;
         $this->input_->readMessageBegin($fname, $mtype, $rseqid);
         if ($mtype == TMessageType::EXCEPTION) {
             $x = new TApplicationException();
             $x->read($this->input_);
             $this->input_->readMessageEnd();
             throw $x;
         }
         $result = new Hypertable_ThriftGen_ClientService_drop_table_result();
         $result->read($this->input_);
         $this->input_->readMessageEnd();
     }
     if ($result->e !== null) {
         throw $result->e;
     }
     return;
 }
Beispiel #28
0
 public function recv_GetExecSummary()
 {
     $bin_accel = $this->input_ instanceof TBinaryProtocolAccelerated && function_exists('thrift_protocol_read_binary');
     if ($bin_accel) {
         $result = thrift_protocol_read_binary($this->input_, '\\ThriftSQL\\ImpalaService_GetExecSummary_result', $this->input_->isStrictRead());
     } else {
         $rseqid = 0;
         $fname = null;
         $mtype = 0;
         $this->input_->readMessageBegin($fname, $mtype, $rseqid);
         if ($mtype == TMessageType::EXCEPTION) {
             $x = new TApplicationException();
             $x->read($this->input_);
             $this->input_->readMessageEnd();
             throw $x;
         }
         $result = new \ThriftSQL\ImpalaService_GetExecSummary_result();
         $result->read($this->input_);
         $this->input_->readMessageEnd();
     }
     if ($result->success !== null) {
         return $result->success;
     }
     if ($result->error !== null) {
         throw $result->error;
     }
     if ($result->error2 !== null) {
         throw $result->error2;
     }
     throw new \Exception("GetExecSummary failed: unknown result");
 }
Beispiel #29
0
 public function recv_cancel_delegation_token()
 {
     $bin_accel = $this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_read_binary');
     if ($bin_accel) {
         $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_cancel_delegation_token_result', $this->input_->isStrictRead());
     } else {
         $rseqid = 0;
         $fname = null;
         $mtype = 0;
         $this->input_->readMessageBegin($fname, $mtype, $rseqid);
         if ($mtype == TMessageType::EXCEPTION) {
             $x = new TApplicationException();
             $x->read($this->input_);
             $this->input_->readMessageEnd();
             throw $x;
         }
         $result = new ThriftHiveMetastore_cancel_delegation_token_result();
         $result->read($this->input_);
         $this->input_->readMessageEnd();
     }
     if ($result->o1 !== null) {
         throw $result->o1;
     }
     return;
 }
Beispiel #30
0
 public function recv_set_cql_version()
 {
     if ($this->bin_accel) {
         $result = thrift_protocol_read_binary($this->input_, '\\cassandra\\Cassandra_set_cql_version_result', $this->input_->isStrictRead());
     } else {
         $rseqid = 0;
         $fname = null;
         $mtype = 0;
         $this->input_->readMessageBegin($fname, $mtype, $rseqid);
         if ($mtype == TMessageType::EXCEPTION) {
             $x = new TApplicationException();
             $x->read($this->input_);
             $this->input_->readMessageEnd();
             throw $x;
         }
         $result = new \cassandra\Cassandra_set_cql_version_result();
         $result->read($this->input_);
         $this->input_->readMessageEnd();
     }
     if ($result->ire !== null) {
         throw $result->ire;
     }
     return;
 }