Exemplo n.º 1
0
 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), 7 => array('var' => 'batchSize', 'type' => TType::I32), 8 => array('var' => 'sortColumns', 'type' => TType::BOOL));
     }
     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'];
         }
         if (isset($vals['batchSize'])) {
             $this->batchSize = $vals['batchSize'];
         }
         if (isset($vals['sortColumns'])) {
             $this->sortColumns = $vals['sortColumns'];
         }
     }
 }
Exemplo n.º 2
0
 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' => '\\Hbase\\TColumn')), 4 => array('var' => 'caching', 'type' => TType::I32), 5 => array('var' => 'maxVersions', 'type' => TType::I32), 6 => array('var' => 'timeRange', 'type' => TType::STRUCT, 'class' => '\\Hbase\\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)), 10 => array('var' => 'authorizations', 'type' => TType::STRUCT, 'class' => '\\Hbase\\TAuthorization'), 11 => array('var' => 'reversed', 'type' => TType::BOOL));
     }
     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'];
         }
         if (isset($vals['authorizations'])) {
             $this->authorizations = $vals['authorizations'];
         }
         if (isset($vals['reversed'])) {
             $this->reversed = $vals['reversed'];
         }
     }
 }