Beispiel #1
0
 public function write($output)
 {
     $xfer = 0;
     $xfer += $output->writeStructBegin('Hbase_checkAndPut_result');
     if ($this->success !== null) {
         $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
         $xfer += $output->writeBool($this->success);
         $xfer += $output->writeFieldEnd();
     }
     if ($this->io !== null) {
         $xfer += $output->writeFieldBegin('io', TType::STRUCT, 1);
         $xfer += $this->io->write($output);
         $xfer += $output->writeFieldEnd();
     }
     if ($this->ia !== null) {
         $xfer += $output->writeFieldBegin('ia', TType::STRUCT, 2);
         $xfer += $this->ia->write($output);
         $xfer += $output->writeFieldEnd();
     }
     $xfer += $output->writeFieldStop();
     $xfer += $output->writeStructEnd();
     return $xfer;
 }
Beispiel #2
0
 public function write($output)
 {
     $xfer = 0;
     $xfer += $output->writeStructBegin('Hbase_scannerClose_result');
     if ($this->io !== null) {
         $xfer += $output->writeFieldBegin('io', TType::STRUCT, 1);
         $xfer += $this->io->write($output);
         $xfer += $output->writeFieldEnd();
     }
     if ($this->ia !== null) {
         $xfer += $output->writeFieldBegin('ia', TType::STRUCT, 2);
         $xfer += $this->ia->write($output);
         $xfer += $output->writeFieldEnd();
     }
     $xfer += $output->writeFieldStop();
     $xfer += $output->writeStructEnd();
     return $xfer;
 }