public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('THBaseService_getScannerResults_args'); if ($this->table !== null) { $xfer += $output->writeFieldBegin('table', TType::STRING, 1); $xfer += $output->writeString($this->table); $xfer += $output->writeFieldEnd(); } if ($this->tscan !== null) { if (!is_object($this->tscan)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('tscan', TType::STRUCT, 2); $xfer += $this->tscan->write($output); $xfer += $output->writeFieldEnd(); } if ($this->numRows !== null) { $xfer += $output->writeFieldBegin('numRows', TType::I32, 3); $xfer += $output->writeI32($this->numRows); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; }
public function __construct($vals = null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array(1 => array('var' => 'startRow', 'type' => TType::STRING), 2 => array('var' => 'stopRow', 'type' => TType::STRING), 3 => array('var' => 'timestamp', 'type' => TType::I64), 4 => array('var' => 'columns', 'type' => TType::LST, 'etype' => TType::STRING, 'elem' => array('type' => TType::STRING)), 5 => array('var' => 'caching', 'type' => TType::I32), 6 => array('var' => 'filterString', 'type' => TType::STRING)); } if (is_array($vals)) { if (isset($vals['startRow'])) { $this->startRow = $vals['startRow']; } if (isset($vals['stopRow'])) { $this->stopRow = $vals['stopRow']; } if (isset($vals['timestamp'])) { $this->timestamp = $vals['timestamp']; } if (isset($vals['columns'])) { $this->columns = $vals['columns']; } if (isset($vals['caching'])) { $this->caching = $vals['caching']; } if (isset($vals['filterString'])) { $this->filterString = $vals['filterString']; } } }
public function __construct($vals = null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array(1 => array('var' => 'startRow', 'type' => TType::STRING), 2 => array('var' => 'stopRow', 'type' => TType::STRING), 3 => array('var' => 'columns', 'type' => TType::LST, 'etype' => TType::STRUCT, 'elem' => array('type' => TType::STRUCT, 'class' => '\\TColumn')), 4 => array('var' => 'caching', 'type' => TType::I32), 5 => array('var' => 'maxVersions', 'type' => TType::I32), 6 => array('var' => 'timeRange', 'type' => TType::STRUCT, 'class' => '\\TTimeRange'), 7 => array('var' => 'filterString', 'type' => TType::STRING), 8 => array('var' => 'batchSize', 'type' => TType::I32), 9 => array('var' => 'attributes', 'type' => TType::MAP, 'ktype' => TType::STRING, 'vtype' => TType::STRING, 'key' => array('type' => TType::STRING), 'val' => array('type' => TType::STRING))); } if (is_array($vals)) { if (isset($vals['startRow'])) { $this->startRow = $vals['startRow']; } if (isset($vals['stopRow'])) { $this->stopRow = $vals['stopRow']; } if (isset($vals['columns'])) { $this->columns = $vals['columns']; } if (isset($vals['caching'])) { $this->caching = $vals['caching']; } if (isset($vals['maxVersions'])) { $this->maxVersions = $vals['maxVersions']; } if (isset($vals['timeRange'])) { $this->timeRange = $vals['timeRange']; } if (isset($vals['filterString'])) { $this->filterString = $vals['filterString']; } if (isset($vals['batchSize'])) { $this->batchSize = $vals['batchSize']; } if (isset($vals['attributes'])) { $this->attributes = $vals['attributes']; } } }
public function __construct($vals = null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array(1 => array('var' => 'startRow', 'type' => TType::STRING), 2 => array('var' => 'stopRow', 'type' => TType::STRING), 3 => array('var' => 'columns', 'type' => TType::LST, 'etype' => TType::STRUCT, 'elem' => array('type' => TType::STRUCT, 'class' => 'TColumn')), 4 => array('var' => 'caching', 'type' => TType::I32), 5 => array('var' => 'maxVersions', 'type' => TType::I32), 6 => array('var' => 'timeRange', 'type' => TType::STRUCT, 'class' => 'TTimeRange')); } if (is_array($vals)) { if (isset($vals['startRow'])) { $this->startRow = $vals['startRow']; } if (isset($vals['stopRow'])) { $this->stopRow = $vals['stopRow']; } if (isset($vals['columns'])) { $this->columns = $vals['columns']; } if (isset($vals['caching'])) { $this->caching = $vals['caching']; } if (isset($vals['maxVersions'])) { $this->maxVersions = $vals['maxVersions']; } if (isset($vals['timeRange'])) { $this->timeRange = $vals['timeRange']; } } }