public function recv_describe_partitioner()
 {
     $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_describe_partitioner_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_describe_partitioner_result();
         $result->read($this->input_);
         $this->input_->readMessageEnd();
     }
     if ($result->success !== null) {
         return $result->success;
     }
     throw new \Exception("describe_partitioner failed: unknown result");
 }
コード例 #2
0
ファイル: Cassandra.php プロジェクト: atomicjets/phpcassa
 public function recv_describe_partitioner()
 {
     if ($this->bin_accel) {
         $result = thrift_protocol_read_binary($this->input_, '\\cassandra\\Cassandra_describe_partitioner_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_describe_partitioner_result();
         $result->read($this->input_);
         $this->input_->readMessageEnd();
     }
     if ($result->success !== null) {
         return $result->success;
     }
     throw new \Exception("describe_partitioner failed: unknown result");
 }