Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 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;
 }