コード例 #1
0
ファイル: Types.php プロジェクト: Napas/php-thrift-sql
 public function write($output)
 {
     $xfer = 0;
     $xfer += $output->writeStructBegin('TRenewDelegationTokenResp');
     if ($this->status !== null) {
         if (!is_object($this->status)) {
             throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
         }
         $xfer += $output->writeFieldBegin('status', TType::STRUCT, 1);
         $xfer += $this->status->write($output);
         $xfer += $output->writeFieldEnd();
     }
     $xfer += $output->writeFieldStop();
     $xfer += $output->writeStructEnd();
     return $xfer;
 }
コード例 #2
0
ファイル: Types.php プロジェクト: Napas/php-thrift-sql
 public function write($output)
 {
     $xfer = 0;
     $xfer += $output->writeStructBegin('TGetRuntimeProfileResp');
     if ($this->status !== null) {
         if (!is_object($this->status)) {
             throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
         }
         $xfer += $output->writeFieldBegin('status', TType::STRUCT, 1);
         $xfer += $this->status->write($output);
         $xfer += $output->writeFieldEnd();
     }
     if ($this->profile !== null) {
         $xfer += $output->writeFieldBegin('profile', TType::STRING, 2);
         $xfer += $output->writeString($this->profile);
         $xfer += $output->writeFieldEnd();
     }
     $xfer += $output->writeFieldStop();
     $xfer += $output->writeStructEnd();
     return $xfer;
 }
コード例 #3
0
 public function write($output)
 {
     $xfer = 0;
     $xfer += $output->writeStructBegin('ImpalaService_ResetTable_result');
     if ($this->success !== null) {
         if (!is_object($this->success)) {
             throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
         }
         $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0);
         $xfer += $this->success->write($output);
         $xfer += $output->writeFieldEnd();
     }
     $xfer += $output->writeFieldStop();
     $xfer += $output->writeStructEnd();
     return $xfer;
 }