1, 'DATABASE' => 2, 'TABLE' => 3, 'PARTITION' => 4, 'COLUMN' => 5, ); final class HiveObjectType { const GLOBAL = 1; const DATABASE = 2; const TABLE = 3; const PARTITION = 4; const COLUMN = 5; static public $__names = array( 1 => 'GLOBAL', 2 => 'DATABASE', 3 => 'TABLE', 4 => 'PARTITION', 5 => 'COLUMN', ); } $GLOBALS['E_PrincipalType'] = array( 'USER' => 1, 'ROLE' => 2, 'GROUP' => 3, ); final class PrincipalType { const USER = 1; const ROLE = 2; const GROUP = 3; static public $__names = array( 1 => 'USER', 2 => 'ROLE', 3 => 'GROUP', ); } $GLOBALS['E_PartitionEventType'] = array( 'LOAD_DONE' => 1, ); final class PartitionEventType { const LOAD_DONE = 1; static public $__names = array( 1 => 'LOAD_DONE', ); } class Version { static $_TSPEC; public $version = null; public $comments = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( 'var' => 'version', 'type' => TType::STRING, ), 2 => array( 'var' => 'comments', 'type' => TType::STRING, ), ); } if (is_array($vals)) { if (isset($vals['version'])) { $this->version = $vals['version']; } if (isset($vals['comments'])) { $this->comments = $vals['comments']; } } } public function getName() { return 'Version'; } public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::STRING) { $xfer += $input->readString($this->version); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::STRING) { $xfer += $input->readString($this->comments); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; } public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('Version'); if ($this->version !== null) { $xfer += $output->writeFieldBegin('version', TType::STRING, 1); $xfer += $output->writeString($this->version); $xfer += $output->writeFieldEnd(); } if ($this->comments !== null) { $xfer += $output->writeFieldBegin('comments', TType::STRING, 2); $xfer += $output->writeString($this->comments); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; } } class FieldSchema { static $_TSPEC; public $name = null; public $type = null; public $comment = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( 'var' => 'name', 'type' => TType::STRING, ), 2 => array( 'var' => 'type', 'type' => TType::STRING, ), 3 => array( 'var' => 'comment', 'type' => TType::STRING, ), ); } if (is_array($vals)) { if (isset($vals['name'])) { $this->name = $vals['name']; } if (isset($vals['type'])) { $this->type = $vals['type']; } if (isset($vals['comment'])) { $this->comment = $vals['comment']; } } } public function getName() { return 'FieldSchema'; } public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::STRING) { $xfer += $input->readString($this->name); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::STRING) { $xfer += $input->readString($this->type); } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::STRING) { $xfer += $input->readString($this->comment); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; } public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('FieldSchema'); if ($this->name !== null) { $xfer += $output->writeFieldBegin('name', TType::STRING, 1); $xfer += $output->writeString($this->name); $xfer += $output->writeFieldEnd(); } if ($this->type !== null) { $xfer += $output->writeFieldBegin('type', TType::STRING, 2); $xfer += $output->writeString($this->type); $xfer += $output->writeFieldEnd(); } if ($this->comment !== null) { $xfer += $output->writeFieldBegin('comment', TType::STRING, 3); $xfer += $output->writeString($this->comment); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; } } class Type { static $_TSPEC; public $name = null; public $type1 = null; public $type2 = null; public $fields = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( 'var' => 'name', 'type' => TType::STRING, ), 2 => array( 'var' => 'type1', 'type' => TType::STRING, ), 3 => array( 'var' => 'type2', 'type' => TType::STRING, ), 4 => array( 'var' => 'fields', 'type' => TType::LST, 'etype' => TType::STRUCT, 'elem' => array( 'type' => TType::STRUCT, 'class' => 'FieldSchema', ), ), ); } if (is_array($vals)) { if (isset($vals['name'])) { $this->name = $vals['name']; } if (isset($vals['type1'])) { $this->type1 = $vals['type1']; } if (isset($vals['type2'])) { $this->type2 = $vals['type2']; } if (isset($vals['fields'])) { $this->fields = $vals['fields']; } } } public function getName() { return 'Type'; } public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::STRING) { $xfer += $input->readString($this->name); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::STRING) { $xfer += $input->readString($this->type1); } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::STRING) { $xfer += $input->readString($this->type2); } else { $xfer += $input->skip($ftype); } break; case 4: if ($ftype == TType::LST) { $this->fields = array(); $_size0 = 0; $_etype3 = 0; $xfer += $input->readListBegin($_etype3, $_size0); for ($_i4 = 0; $_i4 < $_size0; ++$_i4) { $elem5 = null; $elem5 = new FieldSchema(); $xfer += $elem5->read($input); $this->fields []= $elem5; } $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; } public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('Type'); if ($this->name !== null) { $xfer += $output->writeFieldBegin('name', TType::STRING, 1); $xfer += $output->writeString($this->name); $xfer += $output->writeFieldEnd(); } if ($this->type1 !== null) { $xfer += $output->writeFieldBegin('type1', TType::STRING, 2); $xfer += $output->writeString($this->type1); $xfer += $output->writeFieldEnd(); } if ($this->type2 !== null) { $xfer += $output->writeFieldBegin('type2', TType::STRING, 3); $xfer += $output->writeString($this->type2); $xfer += $output->writeFieldEnd(); } if ($this->fields !== null) { if (!is_array($this->fields)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('fields', TType::LST, 4); { $output->writeListBegin(TType::STRUCT, count($this->fields)); { foreach ($this->fields as $iter6) { $xfer += $iter6->write($output); } } $output->writeListEnd(); } $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; } } class HiveObjectRef { static $_TSPEC; public $objectType = null; public $dbName = null; public $objectName = null; public $partValues = null; public $columnName = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( 'var' => 'objectType', 'type' => TType::I32, ), 2 => array( 'var' => 'dbName', 'type' => TType::STRING, ), 3 => array( 'var' => 'objectName', 'type' => TType::STRING, ), 4 => array( 'var' => 'partValues', 'type' => TType::LST, 'etype' => TType::STRING, 'elem' => array( 'type' => TType::STRING, ), ), 5 => array( 'var' => 'columnName', 'type' => TType::STRING, ), ); } if (is_array($vals)) { if (isset($vals['objectType'])) { $this->objectType = $vals['objectType']; } if (isset($vals['dbName'])) { $this->dbName = $vals['dbName']; } if (isset($vals['objectName'])) { $this->objectName = $vals['objectName']; } if (isset($vals['partValues'])) { $this->partValues = $vals['partValues']; } if (isset($vals['columnName'])) { $this->columnName = $vals['columnName']; } } } public function getName() { return 'HiveObjectRef'; } public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::I32) { $xfer += $input->readI32($this->objectType); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::STRING) { $xfer += $input->readString($this->dbName); } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::STRING) { $xfer += $input->readString($this->objectName); } else { $xfer += $input->skip($ftype); } break; case 4: if ($ftype == TType::LST) { $this->partValues = array(); $_size7 = 0; $_etype10 = 0; $xfer += $input->readListBegin($_etype10, $_size7); for ($_i11 = 0; $_i11 < $_size7; ++$_i11) { $elem12 = null; $xfer += $input->readString($elem12); $this->partValues []= $elem12; } $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } break; case 5: if ($ftype == TType::STRING) { $xfer += $input->readString($this->columnName); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; } public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('HiveObjectRef'); if ($this->objectType !== null) { $xfer += $output->writeFieldBegin('objectType', TType::I32, 1); $xfer += $output->writeI32($this->objectType); $xfer += $output->writeFieldEnd(); } if ($this->dbName !== null) { $xfer += $output->writeFieldBegin('dbName', TType::STRING, 2); $xfer += $output->writeString($this->dbName); $xfer += $output->writeFieldEnd(); } if ($this->objectName !== null) { $xfer += $output->writeFieldBegin('objectName', TType::STRING, 3); $xfer += $output->writeString($this->objectName); $xfer += $output->writeFieldEnd(); } if ($this->partValues !== null) { if (!is_array($this->partValues)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('partValues', TType::LST, 4); { $output->writeListBegin(TType::STRING, count($this->partValues)); { foreach ($this->partValues as $iter13) { $xfer += $output->writeString($iter13); } } $output->writeListEnd(); } $xfer += $output->writeFieldEnd(); } if ($this->columnName !== null) { $xfer += $output->writeFieldBegin('columnName', TType::STRING, 5); $xfer += $output->writeString($this->columnName); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; } } class PrivilegeGrantInfo { static $_TSPEC; public $privilege = null; public $createTime = null; public $grantor = null; public $grantorType = null; public $grantOption = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( 'var' => 'privilege', 'type' => TType::STRING, ), 2 => array( 'var' => 'createTime', 'type' => TType::I32, ), 3 => array( 'var' => 'grantor', 'type' => TType::STRING, ), 4 => array( 'var' => 'grantorType', 'type' => TType::I32, ), 5 => array( 'var' => 'grantOption', 'type' => TType::BOOL, ), ); } if (is_array($vals)) { if (isset($vals['privilege'])) { $this->privilege = $vals['privilege']; } if (isset($vals['createTime'])) { $this->createTime = $vals['createTime']; } if (isset($vals['grantor'])) { $this->grantor = $vals['grantor']; } if (isset($vals['grantorType'])) { $this->grantorType = $vals['grantorType']; } if (isset($vals['grantOption'])) { $this->grantOption = $vals['grantOption']; } } } public function getName() { return 'PrivilegeGrantInfo'; } public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::STRING) { $xfer += $input->readString($this->privilege); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::I32) { $xfer += $input->readI32($this->createTime); } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::STRING) { $xfer += $input->readString($this->grantor); } else { $xfer += $input->skip($ftype); } break; case 4: if ($ftype == TType::I32) { $xfer += $input->readI32($this->grantorType); } else { $xfer += $input->skip($ftype); } break; case 5: if ($ftype == TType::BOOL) { $xfer += $input->readBool($this->grantOption); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; } public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('PrivilegeGrantInfo'); if ($this->privilege !== null) { $xfer += $output->writeFieldBegin('privilege', TType::STRING, 1); $xfer += $output->writeString($this->privilege); $xfer += $output->writeFieldEnd(); } if ($this->createTime !== null) { $xfer += $output->writeFieldBegin('createTime', TType::I32, 2); $xfer += $output->writeI32($this->createTime); $xfer += $output->writeFieldEnd(); } if ($this->grantor !== null) { $xfer += $output->writeFieldBegin('grantor', TType::STRING, 3); $xfer += $output->writeString($this->grantor); $xfer += $output->writeFieldEnd(); } if ($this->grantorType !== null) { $xfer += $output->writeFieldBegin('grantorType', TType::I32, 4); $xfer += $output->writeI32($this->grantorType); $xfer += $output->writeFieldEnd(); } if ($this->grantOption !== null) { $xfer += $output->writeFieldBegin('grantOption', TType::BOOL, 5); $xfer += $output->writeBool($this->grantOption); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; } } class HiveObjectPrivilege { static $_TSPEC; public $hiveObject = null; public $principalName = null; public $principalType = null; public $grantInfo = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( 'var' => 'hiveObject', 'type' => TType::STRUCT, 'class' => 'HiveObjectRef', ), 2 => array( 'var' => 'principalName', 'type' => TType::STRING, ), 3 => array( 'var' => 'principalType', 'type' => TType::I32, ), 4 => array( 'var' => 'grantInfo', 'type' => TType::STRUCT, 'class' => 'PrivilegeGrantInfo', ), ); } if (is_array($vals)) { if (isset($vals['hiveObject'])) { $this->hiveObject = $vals['hiveObject']; } if (isset($vals['principalName'])) { $this->principalName = $vals['principalName']; } if (isset($vals['principalType'])) { $this->principalType = $vals['principalType']; } if (isset($vals['grantInfo'])) { $this->grantInfo = $vals['grantInfo']; } } } public function getName() { return 'HiveObjectPrivilege'; } public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::STRUCT) { $this->hiveObject = new HiveObjectRef(); $xfer += $this->hiveObject->read($input); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::STRING) { $xfer += $input->readString($this->principalName); } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::I32) { $xfer += $input->readI32($this->principalType); } else { $xfer += $input->skip($ftype); } break; case 4: if ($ftype == TType::STRUCT) { $this->grantInfo = new PrivilegeGrantInfo(); $xfer += $this->grantInfo->read($input); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; } public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('HiveObjectPrivilege'); if ($this->hiveObject !== null) { if (!is_object($this->hiveObject)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('hiveObject', TType::STRUCT, 1); $xfer += $this->hiveObject->write($output); $xfer += $output->writeFieldEnd(); } if ($this->principalName !== null) { $xfer += $output->writeFieldBegin('principalName', TType::STRING, 2); $xfer += $output->writeString($this->principalName); $xfer += $output->writeFieldEnd(); } if ($this->principalType !== null) { $xfer += $output->writeFieldBegin('principalType', TType::I32, 3); $xfer += $output->writeI32($this->principalType); $xfer += $output->writeFieldEnd(); } if ($this->grantInfo !== null) { if (!is_object($this->grantInfo)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('grantInfo', TType::STRUCT, 4); $xfer += $this->grantInfo->write($output); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; } } class PrivilegeBag { static $_TSPEC; public $privileges = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( 'var' => 'privileges', 'type' => TType::LST, 'etype' => TType::STRUCT, 'elem' => array( 'type' => TType::STRUCT, 'class' => 'HiveObjectPrivilege', ), ), ); } if (is_array($vals)) { if (isset($vals['privileges'])) { $this->privileges = $vals['privileges']; } } } public function getName() { return 'PrivilegeBag'; } public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::LST) { $this->privileges = array(); $_size14 = 0; $_etype17 = 0; $xfer += $input->readListBegin($_etype17, $_size14); for ($_i18 = 0; $_i18 < $_size14; ++$_i18) { $elem19 = null; $elem19 = new HiveObjectPrivilege(); $xfer += $elem19->read($input); $this->privileges []= $elem19; } $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; } public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('PrivilegeBag'); if ($this->privileges !== null) { if (!is_array($this->privileges)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('privileges', TType::LST, 1); { $output->writeListBegin(TType::STRUCT, count($this->privileges)); { foreach ($this->privileges as $iter20) { $xfer += $iter20->write($output); } } $output->writeListEnd(); } $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; } } class PrincipalPrivilegeSet { static $_TSPEC; public $userPrivileges = null; public $groupPrivileges = null; public $rolePrivileges = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( 'var' => 'userPrivileges', 'type' => TType::MAP, 'ktype' => TType::STRING, 'vtype' => TType::LST, 'key' => array( 'type' => TType::STRING, ), 'val' => array( 'type' => TType::LST, 'etype' => TType::STRUCT, 'elem' => array( 'type' => TType::STRUCT, 'class' => 'PrivilegeGrantInfo', ), ), ), 2 => array( 'var' => 'groupPrivileges', 'type' => TType::MAP, 'ktype' => TType::STRING, 'vtype' => TType::LST, 'key' => array( 'type' => TType::STRING, ), 'val' => array( 'type' => TType::LST, 'etype' => TType::STRUCT, 'elem' => array( 'type' => TType::STRUCT, 'class' => 'PrivilegeGrantInfo', ), ), ), 3 => array( 'var' => 'rolePrivileges', 'type' => TType::MAP, 'ktype' => TType::STRING, 'vtype' => TType::LST, 'key' => array( 'type' => TType::STRING, ), 'val' => array( 'type' => TType::LST, 'etype' => TType::STRUCT, 'elem' => array( 'type' => TType::STRUCT, 'class' => 'PrivilegeGrantInfo', ), ), ), ); } if (is_array($vals)) { if (isset($vals['userPrivileges'])) { $this->userPrivileges = $vals['userPrivileges']; } if (isset($vals['groupPrivileges'])) { $this->groupPrivileges = $vals['groupPrivileges']; } if (isset($vals['rolePrivileges'])) { $this->rolePrivileges = $vals['rolePrivileges']; } } } public function getName() { return 'PrincipalPrivilegeSet'; } public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::MAP) { $this->userPrivileges = array(); $_size21 = 0; $_ktype22 = 0; $_vtype23 = 0; $xfer += $input->readMapBegin($_ktype22, $_vtype23, $_size21); for ($_i25 = 0; $_i25 < $_size21; ++$_i25) { $key26 = ''; $val27 = array(); $xfer += $input->readString($key26); $val27 = array(); $_size28 = 0; $_etype31 = 0; $xfer += $input->readListBegin($_etype31, $_size28); for ($_i32 = 0; $_i32 < $_size28; ++$_i32) { $elem33 = null; $elem33 = new PrivilegeGrantInfo(); $xfer += $elem33->read($input); $val27 []= $elem33; } $xfer += $input->readListEnd(); $this->userPrivileges[$key26] = $val27; } $xfer += $input->readMapEnd(); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::MAP) { $this->groupPrivileges = array(); $_size34 = 0; $_ktype35 = 0; $_vtype36 = 0; $xfer += $input->readMapBegin($_ktype35, $_vtype36, $_size34); for ($_i38 = 0; $_i38 < $_size34; ++$_i38) { $key39 = ''; $val40 = array(); $xfer += $input->readString($key39); $val40 = array(); $_size41 = 0; $_etype44 = 0; $xfer += $input->readListBegin($_etype44, $_size41); for ($_i45 = 0; $_i45 < $_size41; ++$_i45) { $elem46 = null; $elem46 = new PrivilegeGrantInfo(); $xfer += $elem46->read($input); $val40 []= $elem46; } $xfer += $input->readListEnd(); $this->groupPrivileges[$key39] = $val40; } $xfer += $input->readMapEnd(); } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::MAP) { $this->rolePrivileges = array(); $_size47 = 0; $_ktype48 = 0; $_vtype49 = 0; $xfer += $input->readMapBegin($_ktype48, $_vtype49, $_size47); for ($_i51 = 0; $_i51 < $_size47; ++$_i51) { $key52 = ''; $val53 = array(); $xfer += $input->readString($key52); $val53 = array(); $_size54 = 0; $_etype57 = 0; $xfer += $input->readListBegin($_etype57, $_size54); for ($_i58 = 0; $_i58 < $_size54; ++$_i58) { $elem59 = null; $elem59 = new PrivilegeGrantInfo(); $xfer += $elem59->read($input); $val53 []= $elem59; } $xfer += $input->readListEnd(); $this->rolePrivileges[$key52] = $val53; } $xfer += $input->readMapEnd(); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; } public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('PrincipalPrivilegeSet'); if ($this->userPrivileges !== null) { if (!is_array($this->userPrivileges)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('userPrivileges', TType::MAP, 1); { $output->writeMapBegin(TType::STRING, TType::LST, count($this->userPrivileges)); { foreach ($this->userPrivileges as $kiter60 => $viter61) { $xfer += $output->writeString($kiter60); { $output->writeListBegin(TType::STRUCT, count($viter61)); { foreach ($viter61 as $iter62) { $xfer += $iter62->write($output); } } $output->writeListEnd(); } } } $output->writeMapEnd(); } $xfer += $output->writeFieldEnd(); } if ($this->groupPrivileges !== null) { if (!is_array($this->groupPrivileges)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('groupPrivileges', TType::MAP, 2); { $output->writeMapBegin(TType::STRING, TType::LST, count($this->groupPrivileges)); { foreach ($this->groupPrivileges as $kiter63 => $viter64) { $xfer += $output->writeString($kiter63); { $output->writeListBegin(TType::STRUCT, count($viter64)); { foreach ($viter64 as $iter65) { $xfer += $iter65->write($output); } } $output->writeListEnd(); } } } $output->writeMapEnd(); } $xfer += $output->writeFieldEnd(); } if ($this->rolePrivileges !== null) { if (!is_array($this->rolePrivileges)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('rolePrivileges', TType::MAP, 3); { $output->writeMapBegin(TType::STRING, TType::LST, count($this->rolePrivileges)); { foreach ($this->rolePrivileges as $kiter66 => $viter67) { $xfer += $output->writeString($kiter66); { $output->writeListBegin(TType::STRUCT, count($viter67)); { foreach ($viter67 as $iter68) { $xfer += $iter68->write($output); } } $output->writeListEnd(); } } } $output->writeMapEnd(); } $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; } } class Role { static $_TSPEC; public $roleName = null; public $createTime = null; public $ownerName = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( 'var' => 'roleName', 'type' => TType::STRING, ), 2 => array( 'var' => 'createTime', 'type' => TType::I32, ), 3 => array( 'var' => 'ownerName', 'type' => TType::STRING, ), ); } if (is_array($vals)) { if (isset($vals['roleName'])) { $this->roleName = $vals['roleName']; } if (isset($vals['createTime'])) { $this->createTime = $vals['createTime']; } if (isset($vals['ownerName'])) { $this->ownerName = $vals['ownerName']; } } } public function getName() { return 'Role'; } public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::STRING) { $xfer += $input->readString($this->roleName); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::I32) { $xfer += $input->readI32($this->createTime); } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::STRING) { $xfer += $input->readString($this->ownerName); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; } public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('Role'); if ($this->roleName !== null) { $xfer += $output->writeFieldBegin('roleName', TType::STRING, 1); $xfer += $output->writeString($this->roleName); $xfer += $output->writeFieldEnd(); } if ($this->createTime !== null) { $xfer += $output->writeFieldBegin('createTime', TType::I32, 2); $xfer += $output->writeI32($this->createTime); $xfer += $output->writeFieldEnd(); } if ($this->ownerName !== null) { $xfer += $output->writeFieldBegin('ownerName', TType::STRING, 3); $xfer += $output->writeString($this->ownerName); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; } } class Database { static $_TSPEC; public $name = null; public $description = null; public $locationUri = null; public $parameters = null; public $privileges = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( 'var' => 'name', 'type' => TType::STRING, ), 2 => array( 'var' => 'description', 'type' => TType::STRING, ), 3 => array( 'var' => 'locationUri', 'type' => TType::STRING, ), 4 => array( 'var' => 'parameters', 'type' => TType::MAP, 'ktype' => TType::STRING, 'vtype' => TType::STRING, 'key' => array( 'type' => TType::STRING, ), 'val' => array( 'type' => TType::STRING, ), ), 5 => array( 'var' => 'privileges', 'type' => TType::STRUCT, 'class' => 'PrincipalPrivilegeSet', ), ); } if (is_array($vals)) { if (isset($vals['name'])) { $this->name = $vals['name']; } if (isset($vals['description'])) { $this->description = $vals['description']; } if (isset($vals['locationUri'])) { $this->locationUri = $vals['locationUri']; } if (isset($vals['parameters'])) { $this->parameters = $vals['parameters']; } if (isset($vals['privileges'])) { $this->privileges = $vals['privileges']; } } } public function getName() { return 'Database'; } public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::STRING) { $xfer += $input->readString($this->name); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::STRING) { $xfer += $input->readString($this->description); } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::STRING) { $xfer += $input->readString($this->locationUri); } else { $xfer += $input->skip($ftype); } break; case 4: if ($ftype == TType::MAP) { $this->parameters = array(); $_size69 = 0; $_ktype70 = 0; $_vtype71 = 0; $xfer += $input->readMapBegin($_ktype70, $_vtype71, $_size69); for ($_i73 = 0; $_i73 < $_size69; ++$_i73) { $key74 = ''; $val75 = ''; $xfer += $input->readString($key74); $xfer += $input->readString($val75); $this->parameters[$key74] = $val75; } $xfer += $input->readMapEnd(); } else { $xfer += $input->skip($ftype); } break; case 5: if ($ftype == TType::STRUCT) { $this->privileges = new PrincipalPrivilegeSet(); $xfer += $this->privileges->read($input); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; } public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('Database'); if ($this->name !== null) { $xfer += $output->writeFieldBegin('name', TType::STRING, 1); $xfer += $output->writeString($this->name); $xfer += $output->writeFieldEnd(); } if ($this->description !== null) { $xfer += $output->writeFieldBegin('description', TType::STRING, 2); $xfer += $output->writeString($this->description); $xfer += $output->writeFieldEnd(); } if ($this->locationUri !== null) { $xfer += $output->writeFieldBegin('locationUri', TType::STRING, 3); $xfer += $output->writeString($this->locationUri); $xfer += $output->writeFieldEnd(); } if ($this->parameters !== null) { if (!is_array($this->parameters)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('parameters', TType::MAP, 4); { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters)); { foreach ($this->parameters as $kiter76 => $viter77) { $xfer += $output->writeString($kiter76); $xfer += $output->writeString($viter77); } } $output->writeMapEnd(); } $xfer += $output->writeFieldEnd(); } if ($this->privileges !== null) { if (!is_object($this->privileges)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('privileges', TType::STRUCT, 5); $xfer += $this->privileges->write($output); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; } } class SerDeInfo { static $_TSPEC; public $name = null; public $serializationLib = null; public $parameters = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( 'var' => 'name', 'type' => TType::STRING, ), 2 => array( 'var' => 'serializationLib', 'type' => TType::STRING, ), 3 => array( 'var' => 'parameters', '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['name'])) { $this->name = $vals['name']; } if (isset($vals['serializationLib'])) { $this->serializationLib = $vals['serializationLib']; } if (isset($vals['parameters'])) { $this->parameters = $vals['parameters']; } } } public function getName() { return 'SerDeInfo'; } public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::STRING) { $xfer += $input->readString($this->name); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::STRING) { $xfer += $input->readString($this->serializationLib); } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::MAP) { $this->parameters = array(); $_size78 = 0; $_ktype79 = 0; $_vtype80 = 0; $xfer += $input->readMapBegin($_ktype79, $_vtype80, $_size78); for ($_i82 = 0; $_i82 < $_size78; ++$_i82) { $key83 = ''; $val84 = ''; $xfer += $input->readString($key83); $xfer += $input->readString($val84); $this->parameters[$key83] = $val84; } $xfer += $input->readMapEnd(); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; } public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('SerDeInfo'); if ($this->name !== null) { $xfer += $output->writeFieldBegin('name', TType::STRING, 1); $xfer += $output->writeString($this->name); $xfer += $output->writeFieldEnd(); } if ($this->serializationLib !== null) { $xfer += $output->writeFieldBegin('serializationLib', TType::STRING, 2); $xfer += $output->writeString($this->serializationLib); $xfer += $output->writeFieldEnd(); } if ($this->parameters !== null) { if (!is_array($this->parameters)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('parameters', TType::MAP, 3); { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters)); { foreach ($this->parameters as $kiter85 => $viter86) { $xfer += $output->writeString($kiter85); $xfer += $output->writeString($viter86); } } $output->writeMapEnd(); } $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; } } class Order { static $_TSPEC; public $col = null; public $order = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( 'var' => 'col', 'type' => TType::STRING, ), 2 => array( 'var' => 'order', 'type' => TType::I32, ), ); } if (is_array($vals)) { if (isset($vals['col'])) { $this->col = $vals['col']; } if (isset($vals['order'])) { $this->order = $vals['order']; } } } public function getName() { return 'Order'; } public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::STRING) { $xfer += $input->readString($this->col); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::I32) { $xfer += $input->readI32($this->order); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; } public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('Order'); if ($this->col !== null) { $xfer += $output->writeFieldBegin('col', TType::STRING, 1); $xfer += $output->writeString($this->col); $xfer += $output->writeFieldEnd(); } if ($this->order !== null) { $xfer += $output->writeFieldBegin('order', TType::I32, 2); $xfer += $output->writeI32($this->order); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; } } class SkewedInfo { static $_TSPEC; public $skewedColNames = null; public $skewedColValues = null; public $skewedColValueLocationMaps = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( 'var' => 'skewedColNames', 'type' => TType::LST, 'etype' => TType::STRING, 'elem' => array( 'type' => TType::STRING, ), ), 2 => array( 'var' => 'skewedColValues', 'type' => TType::LST, 'etype' => TType::LST, 'elem' => array( 'type' => TType::LST, 'etype' => TType::STRING, 'elem' => array( 'type' => TType::STRING, ), ), ), 3 => array( 'var' => 'skewedColValueLocationMaps', 'type' => TType::MAP, 'ktype' => TType::LST, 'vtype' => TType::STRING, 'key' => array( 'type' => TType::LST, 'etype' => TType::STRING, 'elem' => array( 'type' => TType::STRING, ), ), 'val' => array( 'type' => TType::STRING, ), ), ); } if (is_array($vals)) { if (isset($vals['skewedColNames'])) { $this->skewedColNames = $vals['skewedColNames']; } if (isset($vals['skewedColValues'])) { $this->skewedColValues = $vals['skewedColValues']; } if (isset($vals['skewedColValueLocationMaps'])) { $this->skewedColValueLocationMaps = $vals['skewedColValueLocationMaps']; } } } public function getName() { return 'SkewedInfo'; } public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::LST) { $this->skewedColNames = array(); $_size87 = 0; $_etype90 = 0; $xfer += $input->readListBegin($_etype90, $_size87); for ($_i91 = 0; $_i91 < $_size87; ++$_i91) { $elem92 = null; $xfer += $input->readString($elem92); $this->skewedColNames []= $elem92; } $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::LST) { $this->skewedColValues = array(); $_size93 = 0; $_etype96 = 0; $xfer += $input->readListBegin($_etype96, $_size93); for ($_i97 = 0; $_i97 < $_size93; ++$_i97) { $elem98 = null; $elem98 = array(); $_size99 = 0; $_etype102 = 0; $xfer += $input->readListBegin($_etype102, $_size99); for ($_i103 = 0; $_i103 < $_size99; ++$_i103) { $elem104 = null; $xfer += $input->readString($elem104); $elem98 []= $elem104; } $xfer += $input->readListEnd(); $this->skewedColValues []= $elem98; } $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::MAP) { $this->skewedColValueLocationMaps = array(); $_size105 = 0; $_ktype106 = 0; $_vtype107 = 0; $xfer += $input->readMapBegin($_ktype106, $_vtype107, $_size105); for ($_i109 = 0; $_i109 < $_size105; ++$_i109) { $key110 = array(); $val111 = ''; $key110 = array(); $_size112 = 0; $_etype115 = 0; $xfer += $input->readListBegin($_etype115, $_size112); for ($_i116 = 0; $_i116 < $_size112; ++$_i116) { $elem117 = null; $xfer += $input->readString($elem117); $key110 []= $elem117; } $xfer += $input->readListEnd(); $xfer += $input->readString($val111); $this->skewedColValueLocationMaps[$key110] = $val111; } $xfer += $input->readMapEnd(); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; } public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('SkewedInfo'); if ($this->skewedColNames !== null) { if (!is_array($this->skewedColNames)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('skewedColNames', TType::LST, 1); { $output->writeListBegin(TType::STRING, count($this->skewedColNames)); { foreach ($this->skewedColNames as $iter118) { $xfer += $output->writeString($iter118); } } $output->writeListEnd(); } $xfer += $output->writeFieldEnd(); } if ($this->skewedColValues !== null) { if (!is_array($this->skewedColValues)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('skewedColValues', TType::LST, 2); { $output->writeListBegin(TType::LST, count($this->skewedColValues)); { foreach ($this->skewedColValues as $iter119) { { $output->writeListBegin(TType::STRING, count($iter119)); { foreach ($iter119 as $iter120) { $xfer += $output->writeString($iter120); } } $output->writeListEnd(); } } } $output->writeListEnd(); } $xfer += $output->writeFieldEnd(); } if ($this->skewedColValueLocationMaps !== null) { if (!is_array($this->skewedColValueLocationMaps)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('skewedColValueLocationMaps', TType::MAP, 3); { $output->writeMapBegin(TType::LST, TType::STRING, count($this->skewedColValueLocationMaps)); { foreach ($this->skewedColValueLocationMaps as $kiter121 => $viter122) { { $output->writeListBegin(TType::STRING, count($kiter121)); { foreach ($kiter121 as $iter123) { $xfer += $output->writeString($iter123); } } $output->writeListEnd(); } $xfer += $output->writeString($viter122); } } $output->writeMapEnd(); } $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; } } class StorageDescriptor { static $_TSPEC; public $cols = null; public $location = null; public $inputFormat = null; public $outputFormat = null; public $compressed = null; public $numBuckets = null; public $serdeInfo = null; public $bucketCols = null; public $sortCols = null; public $parameters = null; public $skewedInfo = null; public $storedAsSubDirectories = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( 'var' => 'cols', 'type' => TType::LST, 'etype' => TType::STRUCT, 'elem' => array( 'type' => TType::STRUCT, 'class' => 'FieldSchema', ), ), 2 => array( 'var' => 'location', 'type' => TType::STRING, ), 3 => array( 'var' => 'inputFormat', 'type' => TType::STRING, ), 4 => array( 'var' => 'outputFormat', 'type' => TType::STRING, ), 5 => array( 'var' => 'compressed', 'type' => TType::BOOL, ), 6 => array( 'var' => 'numBuckets', 'type' => TType::I32, ), 7 => array( 'var' => 'serdeInfo', 'type' => TType::STRUCT, 'class' => 'SerDeInfo', ), 8 => array( 'var' => 'bucketCols', 'type' => TType::LST, 'etype' => TType::STRING, 'elem' => array( 'type' => TType::STRING, ), ), 9 => array( 'var' => 'sortCols', 'type' => TType::LST, 'etype' => TType::STRUCT, 'elem' => array( 'type' => TType::STRUCT, 'class' => 'Order', ), ), 10 => array( 'var' => 'parameters', 'type' => TType::MAP, 'ktype' => TType::STRING, 'vtype' => TType::STRING, 'key' => array( 'type' => TType::STRING, ), 'val' => array( 'type' => TType::STRING, ), ), 11 => array( 'var' => 'skewedInfo', 'type' => TType::STRUCT, 'class' => 'SkewedInfo', ), 12 => array( 'var' => 'storedAsSubDirectories', 'type' => TType::BOOL, ), ); } if (is_array($vals)) { if (isset($vals['cols'])) { $this->cols = $vals['cols']; } if (isset($vals['location'])) { $this->location = $vals['location']; } if (isset($vals['inputFormat'])) { $this->inputFormat = $vals['inputFormat']; } if (isset($vals['outputFormat'])) { $this->outputFormat = $vals['outputFormat']; } if (isset($vals['compressed'])) { $this->compressed = $vals['compressed']; } if (isset($vals['numBuckets'])) { $this->numBuckets = $vals['numBuckets']; } if (isset($vals['serdeInfo'])) { $this->serdeInfo = $vals['serdeInfo']; } if (isset($vals['bucketCols'])) { $this->bucketCols = $vals['bucketCols']; } if (isset($vals['sortCols'])) { $this->sortCols = $vals['sortCols']; } if (isset($vals['parameters'])) { $this->parameters = $vals['parameters']; } if (isset($vals['skewedInfo'])) { $this->skewedInfo = $vals['skewedInfo']; } if (isset($vals['storedAsSubDirectories'])) { $this->storedAsSubDirectories = $vals['storedAsSubDirectories']; } } } public function getName() { return 'StorageDescriptor'; } public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::LST) { $this->cols = array(); $_size124 = 0; $_etype127 = 0; $xfer += $input->readListBegin($_etype127, $_size124); for ($_i128 = 0; $_i128 < $_size124; ++$_i128) { $elem129 = null; $elem129 = new FieldSchema(); $xfer += $elem129->read($input); $this->cols []= $elem129; } $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::STRING) { $xfer += $input->readString($this->location); } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::STRING) { $xfer += $input->readString($this->inputFormat); } else { $xfer += $input->skip($ftype); } break; case 4: if ($ftype == TType::STRING) { $xfer += $input->readString($this->outputFormat); } else { $xfer += $input->skip($ftype); } break; case 5: if ($ftype == TType::BOOL) { $xfer += $input->readBool($this->compressed); } else { $xfer += $input->skip($ftype); } break; case 6: if ($ftype == TType::I32) { $xfer += $input->readI32($this->numBuckets); } else { $xfer += $input->skip($ftype); } break; case 7: if ($ftype == TType::STRUCT) { $this->serdeInfo = new SerDeInfo(); $xfer += $this->serdeInfo->read($input); } else { $xfer += $input->skip($ftype); } break; case 8: if ($ftype == TType::LST) { $this->bucketCols = array(); $_size130 = 0; $_etype133 = 0; $xfer += $input->readListBegin($_etype133, $_size130); for ($_i134 = 0; $_i134 < $_size130; ++$_i134) { $elem135 = null; $xfer += $input->readString($elem135); $this->bucketCols []= $elem135; } $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } break; case 9: if ($ftype == TType::LST) { $this->sortCols = array(); $_size136 = 0; $_etype139 = 0; $xfer += $input->readListBegin($_etype139, $_size136); for ($_i140 = 0; $_i140 < $_size136; ++$_i140) { $elem141 = null; $elem141 = new Order(); $xfer += $elem141->read($input); $this->sortCols []= $elem141; } $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } break; case 10: if ($ftype == TType::MAP) { $this->parameters = array(); $_size142 = 0; $_ktype143 = 0; $_vtype144 = 0; $xfer += $input->readMapBegin($_ktype143, $_vtype144, $_size142); for ($_i146 = 0; $_i146 < $_size142; ++$_i146) { $key147 = ''; $val148 = ''; $xfer += $input->readString($key147); $xfer += $input->readString($val148); $this->parameters[$key147] = $val148; } $xfer += $input->readMapEnd(); } else { $xfer += $input->skip($ftype); } break; case 11: if ($ftype == TType::STRUCT) { $this->skewedInfo = new SkewedInfo(); $xfer += $this->skewedInfo->read($input); } else { $xfer += $input->skip($ftype); } break; case 12: if ($ftype == TType::BOOL) { $xfer += $input->readBool($this->storedAsSubDirectories); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; } public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('StorageDescriptor'); if ($this->cols !== null) { if (!is_array($this->cols)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('cols', TType::LST, 1); { $output->writeListBegin(TType::STRUCT, count($this->cols)); { foreach ($this->cols as $iter149) { $xfer += $iter149->write($output); } } $output->writeListEnd(); } $xfer += $output->writeFieldEnd(); } if ($this->location !== null) { $xfer += $output->writeFieldBegin('location', TType::STRING, 2); $xfer += $output->writeString($this->location); $xfer += $output->writeFieldEnd(); } if ($this->inputFormat !== null) { $xfer += $output->writeFieldBegin('inputFormat', TType::STRING, 3); $xfer += $output->writeString($this->inputFormat); $xfer += $output->writeFieldEnd(); } if ($this->outputFormat !== null) { $xfer += $output->writeFieldBegin('outputFormat', TType::STRING, 4); $xfer += $output->writeString($this->outputFormat); $xfer += $output->writeFieldEnd(); } if ($this->compressed !== null) { $xfer += $output->writeFieldBegin('compressed', TType::BOOL, 5); $xfer += $output->writeBool($this->compressed); $xfer += $output->writeFieldEnd(); } if ($this->numBuckets !== null) { $xfer += $output->writeFieldBegin('numBuckets', TType::I32, 6); $xfer += $output->writeI32($this->numBuckets); $xfer += $output->writeFieldEnd(); } if ($this->serdeInfo !== null) { if (!is_object($this->serdeInfo)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('serdeInfo', TType::STRUCT, 7); $xfer += $this->serdeInfo->write($output); $xfer += $output->writeFieldEnd(); } if ($this->bucketCols !== null) { if (!is_array($this->bucketCols)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('bucketCols', TType::LST, 8); { $output->writeListBegin(TType::STRING, count($this->bucketCols)); { foreach ($this->bucketCols as $iter150) { $xfer += $output->writeString($iter150); } } $output->writeListEnd(); } $xfer += $output->writeFieldEnd(); } if ($this->sortCols !== null) { if (!is_array($this->sortCols)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('sortCols', TType::LST, 9); { $output->writeListBegin(TType::STRUCT, count($this->sortCols)); { foreach ($this->sortCols as $iter151) { $xfer += $iter151->write($output); } } $output->writeListEnd(); } $xfer += $output->writeFieldEnd(); } if ($this->parameters !== null) { if (!is_array($this->parameters)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('parameters', TType::MAP, 10); { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters)); { foreach ($this->parameters as $kiter152 => $viter153) { $xfer += $output->writeString($kiter152); $xfer += $output->writeString($viter153); } } $output->writeMapEnd(); } $xfer += $output->writeFieldEnd(); } if ($this->skewedInfo !== null) { if (!is_object($this->skewedInfo)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('skewedInfo', TType::STRUCT, 11); $xfer += $this->skewedInfo->write($output); $xfer += $output->writeFieldEnd(); } if ($this->storedAsSubDirectories !== null) { $xfer += $output->writeFieldBegin('storedAsSubDirectories', TType::BOOL, 12); $xfer += $output->writeBool($this->storedAsSubDirectories); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; } } class Table { static $_TSPEC; public $tableName = null; public $dbName = null; public $owner = null; public $createTime = null; public $lastAccessTime = null; public $retention = null; public $sd = null; public $partitionKeys = null; public $parameters = null; public $viewOriginalText = null; public $viewExpandedText = null; public $tableType = null; public $privileges = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( 'var' => 'tableName', 'type' => TType::STRING, ), 2 => array( 'var' => 'dbName', 'type' => TType::STRING, ), 3 => array( 'var' => 'owner', 'type' => TType::STRING, ), 4 => array( 'var' => 'createTime', 'type' => TType::I32, ), 5 => array( 'var' => 'lastAccessTime', 'type' => TType::I32, ), 6 => array( 'var' => 'retention', 'type' => TType::I32, ), 7 => array( 'var' => 'sd', 'type' => TType::STRUCT, 'class' => 'StorageDescriptor', ), 8 => array( 'var' => 'partitionKeys', 'type' => TType::LST, 'etype' => TType::STRUCT, 'elem' => array( 'type' => TType::STRUCT, 'class' => 'FieldSchema', ), ), 9 => array( 'var' => 'parameters', 'type' => TType::MAP, 'ktype' => TType::STRING, 'vtype' => TType::STRING, 'key' => array( 'type' => TType::STRING, ), 'val' => array( 'type' => TType::STRING, ), ), 10 => array( 'var' => 'viewOriginalText', 'type' => TType::STRING, ), 11 => array( 'var' => 'viewExpandedText', 'type' => TType::STRING, ), 12 => array( 'var' => 'tableType', 'type' => TType::STRING, ), 13 => array( 'var' => 'privileges', 'type' => TType::STRUCT, 'class' => 'PrincipalPrivilegeSet', ), ); } if (is_array($vals)) { if (isset($vals['tableName'])) { $this->tableName = $vals['tableName']; } if (isset($vals['dbName'])) { $this->dbName = $vals['dbName']; } if (isset($vals['owner'])) { $this->owner = $vals['owner']; } if (isset($vals['createTime'])) { $this->createTime = $vals['createTime']; } if (isset($vals['lastAccessTime'])) { $this->lastAccessTime = $vals['lastAccessTime']; } if (isset($vals['retention'])) { $this->retention = $vals['retention']; } if (isset($vals['sd'])) { $this->sd = $vals['sd']; } if (isset($vals['partitionKeys'])) { $this->partitionKeys = $vals['partitionKeys']; } if (isset($vals['parameters'])) { $this->parameters = $vals['parameters']; } if (isset($vals['viewOriginalText'])) { $this->viewOriginalText = $vals['viewOriginalText']; } if (isset($vals['viewExpandedText'])) { $this->viewExpandedText = $vals['viewExpandedText']; } if (isset($vals['tableType'])) { $this->tableType = $vals['tableType']; } if (isset($vals['privileges'])) { $this->privileges = $vals['privileges']; } } } public function getName() { return 'Table'; } public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::STRING) { $xfer += $input->readString($this->tableName); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::STRING) { $xfer += $input->readString($this->dbName); } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::STRING) { $xfer += $input->readString($this->owner); } else { $xfer += $input->skip($ftype); } break; case 4: if ($ftype == TType::I32) { $xfer += $input->readI32($this->createTime); } else { $xfer += $input->skip($ftype); } break; case 5: if ($ftype == TType::I32) { $xfer += $input->readI32($this->lastAccessTime); } else { $xfer += $input->skip($ftype); } break; case 6: if ($ftype == TType::I32) { $xfer += $input->readI32($this->retention); } else { $xfer += $input->skip($ftype); } break; case 7: if ($ftype == TType::STRUCT) { $this->sd = new StorageDescriptor(); $xfer += $this->sd->read($input); } else { $xfer += $input->skip($ftype); } break; case 8: if ($ftype == TType::LST) { $this->partitionKeys = array(); $_size154 = 0; $_etype157 = 0; $xfer += $input->readListBegin($_etype157, $_size154); for ($_i158 = 0; $_i158 < $_size154; ++$_i158) { $elem159 = null; $elem159 = new FieldSchema(); $xfer += $elem159->read($input); $this->partitionKeys []= $elem159; } $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } break; case 9: if ($ftype == TType::MAP) { $this->parameters = array(); $_size160 = 0; $_ktype161 = 0; $_vtype162 = 0; $xfer += $input->readMapBegin($_ktype161, $_vtype162, $_size160); for ($_i164 = 0; $_i164 < $_size160; ++$_i164) { $key165 = ''; $val166 = ''; $xfer += $input->readString($key165); $xfer += $input->readString($val166); $this->parameters[$key165] = $val166; } $xfer += $input->readMapEnd(); } else { $xfer += $input->skip($ftype); } break; case 10: if ($ftype == TType::STRING) { $xfer += $input->readString($this->viewOriginalText); } else { $xfer += $input->skip($ftype); } break; case 11: if ($ftype == TType::STRING) { $xfer += $input->readString($this->viewExpandedText); } else { $xfer += $input->skip($ftype); } break; case 12: if ($ftype == TType::STRING) { $xfer += $input->readString($this->tableType); } else { $xfer += $input->skip($ftype); } break; case 13: if ($ftype == TType::STRUCT) { $this->privileges = new PrincipalPrivilegeSet(); $xfer += $this->privileges->read($input); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; } public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('Table'); if ($this->tableName !== null) { $xfer += $output->writeFieldBegin('tableName', TType::STRING, 1); $xfer += $output->writeString($this->tableName); $xfer += $output->writeFieldEnd(); } if ($this->dbName !== null) { $xfer += $output->writeFieldBegin('dbName', TType::STRING, 2); $xfer += $output->writeString($this->dbName); $xfer += $output->writeFieldEnd(); } if ($this->owner !== null) { $xfer += $output->writeFieldBegin('owner', TType::STRING, 3); $xfer += $output->writeString($this->owner); $xfer += $output->writeFieldEnd(); } if ($this->createTime !== null) { $xfer += $output->writeFieldBegin('createTime', TType::I32, 4); $xfer += $output->writeI32($this->createTime); $xfer += $output->writeFieldEnd(); } if ($this->lastAccessTime !== null) { $xfer += $output->writeFieldBegin('lastAccessTime', TType::I32, 5); $xfer += $output->writeI32($this->lastAccessTime); $xfer += $output->writeFieldEnd(); } if ($this->retention !== null) { $xfer += $output->writeFieldBegin('retention', TType::I32, 6); $xfer += $output->writeI32($this->retention); $xfer += $output->writeFieldEnd(); } if ($this->sd !== null) { if (!is_object($this->sd)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('sd', TType::STRUCT, 7); $xfer += $this->sd->write($output); $xfer += $output->writeFieldEnd(); } if ($this->partitionKeys !== null) { if (!is_array($this->partitionKeys)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('partitionKeys', TType::LST, 8); { $output->writeListBegin(TType::STRUCT, count($this->partitionKeys)); { foreach ($this->partitionKeys as $iter167) { $xfer += $iter167->write($output); } } $output->writeListEnd(); } $xfer += $output->writeFieldEnd(); } if ($this->parameters !== null) { if (!is_array($this->parameters)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('parameters', TType::MAP, 9); { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters)); { foreach ($this->parameters as $kiter168 => $viter169) { $xfer += $output->writeString($kiter168); $xfer += $output->writeString($viter169); } } $output->writeMapEnd(); } $xfer += $output->writeFieldEnd(); } if ($this->viewOriginalText !== null) { $xfer += $output->writeFieldBegin('viewOriginalText', TType::STRING, 10); $xfer += $output->writeString($this->viewOriginalText); $xfer += $output->writeFieldEnd(); } if ($this->viewExpandedText !== null) { $xfer += $output->writeFieldBegin('viewExpandedText', TType::STRING, 11); $xfer += $output->writeString($this->viewExpandedText); $xfer += $output->writeFieldEnd(); } if ($this->tableType !== null) { $xfer += $output->writeFieldBegin('tableType', TType::STRING, 12); $xfer += $output->writeString($this->tableType); $xfer += $output->writeFieldEnd(); } if ($this->privileges !== null) { if (!is_object($this->privileges)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('privileges', TType::STRUCT, 13); $xfer += $this->privileges->write($output); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; } } class Partition { static $_TSPEC; public $values = null; public $dbName = null; public $tableName = null; public $createTime = null; public $lastAccessTime = null; public $sd = null; public $parameters = null; public $privileges = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( 'var' => 'values', 'type' => TType::LST, 'etype' => TType::STRING, 'elem' => array( 'type' => TType::STRING, ), ), 2 => array( 'var' => 'dbName', 'type' => TType::STRING, ), 3 => array( 'var' => 'tableName', 'type' => TType::STRING, ), 4 => array( 'var' => 'createTime', 'type' => TType::I32, ), 5 => array( 'var' => 'lastAccessTime', 'type' => TType::I32, ), 6 => array( 'var' => 'sd', 'type' => TType::STRUCT, 'class' => 'StorageDescriptor', ), 7 => array( 'var' => 'parameters', 'type' => TType::MAP, 'ktype' => TType::STRING, 'vtype' => TType::STRING, 'key' => array( 'type' => TType::STRING, ), 'val' => array( 'type' => TType::STRING, ), ), 8 => array( 'var' => 'privileges', 'type' => TType::STRUCT, 'class' => 'PrincipalPrivilegeSet', ), ); } if (is_array($vals)) { if (isset($vals['values'])) { $this->values = $vals['values']; } if (isset($vals['dbName'])) { $this->dbName = $vals['dbName']; } if (isset($vals['tableName'])) { $this->tableName = $vals['tableName']; } if (isset($vals['createTime'])) { $this->createTime = $vals['createTime']; } if (isset($vals['lastAccessTime'])) { $this->lastAccessTime = $vals['lastAccessTime']; } if (isset($vals['sd'])) { $this->sd = $vals['sd']; } if (isset($vals['parameters'])) { $this->parameters = $vals['parameters']; } if (isset($vals['privileges'])) { $this->privileges = $vals['privileges']; } } } public function getName() { return 'Partition'; } public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::LST) { $this->values = array(); $_size170 = 0; $_etype173 = 0; $xfer += $input->readListBegin($_etype173, $_size170); for ($_i174 = 0; $_i174 < $_size170; ++$_i174) { $elem175 = null; $xfer += $input->readString($elem175); $this->values []= $elem175; } $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::STRING) { $xfer += $input->readString($this->dbName); } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::STRING) { $xfer += $input->readString($this->tableName); } else { $xfer += $input->skip($ftype); } break; case 4: if ($ftype == TType::I32) { $xfer += $input->readI32($this->createTime); } else { $xfer += $input->skip($ftype); } break; case 5: if ($ftype == TType::I32) { $xfer += $input->readI32($this->lastAccessTime); } else { $xfer += $input->skip($ftype); } break; case 6: if ($ftype == TType::STRUCT) { $this->sd = new StorageDescriptor(); $xfer += $this->sd->read($input); } else { $xfer += $input->skip($ftype); } break; case 7: if ($ftype == TType::MAP) { $this->parameters = array(); $_size176 = 0; $_ktype177 = 0; $_vtype178 = 0; $xfer += $input->readMapBegin($_ktype177, $_vtype178, $_size176); for ($_i180 = 0; $_i180 < $_size176; ++$_i180) { $key181 = ''; $val182 = ''; $xfer += $input->readString($key181); $xfer += $input->readString($val182); $this->parameters[$key181] = $val182; } $xfer += $input->readMapEnd(); } else { $xfer += $input->skip($ftype); } break; case 8: if ($ftype == TType::STRUCT) { $this->privileges = new PrincipalPrivilegeSet(); $xfer += $this->privileges->read($input); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; } public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('Partition'); if ($this->values !== null) { if (!is_array($this->values)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('values', TType::LST, 1); { $output->writeListBegin(TType::STRING, count($this->values)); { foreach ($this->values as $iter183) { $xfer += $output->writeString($iter183); } } $output->writeListEnd(); } $xfer += $output->writeFieldEnd(); } if ($this->dbName !== null) { $xfer += $output->writeFieldBegin('dbName', TType::STRING, 2); $xfer += $output->writeString($this->dbName); $xfer += $output->writeFieldEnd(); } if ($this->tableName !== null) { $xfer += $output->writeFieldBegin('tableName', TType::STRING, 3); $xfer += $output->writeString($this->tableName); $xfer += $output->writeFieldEnd(); } if ($this->createTime !== null) { $xfer += $output->writeFieldBegin('createTime', TType::I32, 4); $xfer += $output->writeI32($this->createTime); $xfer += $output->writeFieldEnd(); } if ($this->lastAccessTime !== null) { $xfer += $output->writeFieldBegin('lastAccessTime', TType::I32, 5); $xfer += $output->writeI32($this->lastAccessTime); $xfer += $output->writeFieldEnd(); } if ($this->sd !== null) { if (!is_object($this->sd)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('sd', TType::STRUCT, 6); $xfer += $this->sd->write($output); $xfer += $output->writeFieldEnd(); } if ($this->parameters !== null) { if (!is_array($this->parameters)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('parameters', TType::MAP, 7); { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters)); { foreach ($this->parameters as $kiter184 => $viter185) { $xfer += $output->writeString($kiter184); $xfer += $output->writeString($viter185); } } $output->writeMapEnd(); } $xfer += $output->writeFieldEnd(); } if ($this->privileges !== null) { if (!is_object($this->privileges)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('privileges', TType::STRUCT, 8); $xfer += $this->privileges->write($output); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; } } class Index { static $_TSPEC; public $indexName = null; public $indexHandlerClass = null; public $dbName = null; public $origTableName = null; public $createTime = null; public $lastAccessTime = null; public $indexTableName = null; public $sd = null; public $parameters = null; public $deferredRebuild = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( 'var' => 'indexName', 'type' => TType::STRING, ), 2 => array( 'var' => 'indexHandlerClass', 'type' => TType::STRING, ), 3 => array( 'var' => 'dbName', 'type' => TType::STRING, ), 4 => array( 'var' => 'origTableName', 'type' => TType::STRING, ), 5 => array( 'var' => 'createTime', 'type' => TType::I32, ), 6 => array( 'var' => 'lastAccessTime', 'type' => TType::I32, ), 7 => array( 'var' => 'indexTableName', 'type' => TType::STRING, ), 8 => array( 'var' => 'sd', 'type' => TType::STRUCT, 'class' => 'StorageDescriptor', ), 9 => array( 'var' => 'parameters', 'type' => TType::MAP, 'ktype' => TType::STRING, 'vtype' => TType::STRING, 'key' => array( 'type' => TType::STRING, ), 'val' => array( 'type' => TType::STRING, ), ), 10 => array( 'var' => 'deferredRebuild', 'type' => TType::BOOL, ), ); } if (is_array($vals)) { if (isset($vals['indexName'])) { $this->indexName = $vals['indexName']; } if (isset($vals['indexHandlerClass'])) { $this->indexHandlerClass = $vals['indexHandlerClass']; } if (isset($vals['dbName'])) { $this->dbName = $vals['dbName']; } if (isset($vals['origTableName'])) { $this->origTableName = $vals['origTableName']; } if (isset($vals['createTime'])) { $this->createTime = $vals['createTime']; } if (isset($vals['lastAccessTime'])) { $this->lastAccessTime = $vals['lastAccessTime']; } if (isset($vals['indexTableName'])) { $this->indexTableName = $vals['indexTableName']; } if (isset($vals['sd'])) { $this->sd = $vals['sd']; } if (isset($vals['parameters'])) { $this->parameters = $vals['parameters']; } if (isset($vals['deferredRebuild'])) { $this->deferredRebuild = $vals['deferredRebuild']; } } } public function getName() { return 'Index'; } public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::STRING) { $xfer += $input->readString($this->indexName); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::STRING) { $xfer += $input->readString($this->indexHandlerClass); } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::STRING) { $xfer += $input->readString($this->dbName); } else { $xfer += $input->skip($ftype); } break; case 4: if ($ftype == TType::STRING) { $xfer += $input->readString($this->origTableName); } else { $xfer += $input->skip($ftype); } break; case 5: if ($ftype == TType::I32) { $xfer += $input->readI32($this->createTime); } else { $xfer += $input->skip($ftype); } break; case 6: if ($ftype == TType::I32) { $xfer += $input->readI32($this->lastAccessTime); } else { $xfer += $input->skip($ftype); } break; case 7: if ($ftype == TType::STRING) { $xfer += $input->readString($this->indexTableName); } else { $xfer += $input->skip($ftype); } break; case 8: if ($ftype == TType::STRUCT) { $this->sd = new StorageDescriptor(); $xfer += $this->sd->read($input); } else { $xfer += $input->skip($ftype); } break; case 9: if ($ftype == TType::MAP) { $this->parameters = array(); $_size186 = 0; $_ktype187 = 0; $_vtype188 = 0; $xfer += $input->readMapBegin($_ktype187, $_vtype188, $_size186); for ($_i190 = 0; $_i190 < $_size186; ++$_i190) { $key191 = ''; $val192 = ''; $xfer += $input->readString($key191); $xfer += $input->readString($val192); $this->parameters[$key191] = $val192; } $xfer += $input->readMapEnd(); } else { $xfer += $input->skip($ftype); } break; case 10: if ($ftype == TType::BOOL) { $xfer += $input->readBool($this->deferredRebuild); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; } public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('Index'); if ($this->indexName !== null) { $xfer += $output->writeFieldBegin('indexName', TType::STRING, 1); $xfer += $output->writeString($this->indexName); $xfer += $output->writeFieldEnd(); } if ($this->indexHandlerClass !== null) { $xfer += $output->writeFieldBegin('indexHandlerClass', TType::STRING, 2); $xfer += $output->writeString($this->indexHandlerClass); $xfer += $output->writeFieldEnd(); } if ($this->dbName !== null) { $xfer += $output->writeFieldBegin('dbName', TType::STRING, 3); $xfer += $output->writeString($this->dbName); $xfer += $output->writeFieldEnd(); } if ($this->origTableName !== null) { $xfer += $output->writeFieldBegin('origTableName', TType::STRING, 4); $xfer += $output->writeString($this->origTableName); $xfer += $output->writeFieldEnd(); } if ($this->createTime !== null) { $xfer += $output->writeFieldBegin('createTime', TType::I32, 5); $xfer += $output->writeI32($this->createTime); $xfer += $output->writeFieldEnd(); } if ($this->lastAccessTime !== null) { $xfer += $output->writeFieldBegin('lastAccessTime', TType::I32, 6); $xfer += $output->writeI32($this->lastAccessTime); $xfer += $output->writeFieldEnd(); } if ($this->indexTableName !== null) { $xfer += $output->writeFieldBegin('indexTableName', TType::STRING, 7); $xfer += $output->writeString($this->indexTableName); $xfer += $output->writeFieldEnd(); } if ($this->sd !== null) { if (!is_object($this->sd)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('sd', TType::STRUCT, 8); $xfer += $this->sd->write($output); $xfer += $output->writeFieldEnd(); } if ($this->parameters !== null) { if (!is_array($this->parameters)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('parameters', TType::MAP, 9); { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters)); { foreach ($this->parameters as $kiter193 => $viter194) { $xfer += $output->writeString($kiter193); $xfer += $output->writeString($viter194); } } $output->writeMapEnd(); } $xfer += $output->writeFieldEnd(); } if ($this->deferredRebuild !== null) { $xfer += $output->writeFieldBegin('deferredRebuild', TType::BOOL, 10); $xfer += $output->writeBool($this->deferredRebuild); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; } } class BooleanColumnStatsData { static $_TSPEC; public $numTrues = null; public $numFalses = null; public $numNulls = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( 'var' => 'numTrues', 'type' => TType::I64, ), 2 => array( 'var' => 'numFalses', 'type' => TType::I64, ), 3 => array( 'var' => 'numNulls', 'type' => TType::I64, ), ); } if (is_array($vals)) { if (isset($vals['numTrues'])) { $this->numTrues = $vals['numTrues']; } if (isset($vals['numFalses'])) { $this->numFalses = $vals['numFalses']; } if (isset($vals['numNulls'])) { $this->numNulls = $vals['numNulls']; } } } public function getName() { return 'BooleanColumnStatsData'; } public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::I64) { $xfer += $input->readI64($this->numTrues); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::I64) { $xfer += $input->readI64($this->numFalses); } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::I64) { $xfer += $input->readI64($this->numNulls); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; } public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('BooleanColumnStatsData'); if ($this->numTrues !== null) { $xfer += $output->writeFieldBegin('numTrues', TType::I64, 1); $xfer += $output->writeI64($this->numTrues); $xfer += $output->writeFieldEnd(); } if ($this->numFalses !== null) { $xfer += $output->writeFieldBegin('numFalses', TType::I64, 2); $xfer += $output->writeI64($this->numFalses); $xfer += $output->writeFieldEnd(); } if ($this->numNulls !== null) { $xfer += $output->writeFieldBegin('numNulls', TType::I64, 3); $xfer += $output->writeI64($this->numNulls); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; } } class DoubleColumnStatsData { static $_TSPEC; public $lowValue = null; public $highValue = null; public $numNulls = null; public $numDVs = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( 'var' => 'lowValue', 'type' => TType::DOUBLE, ), 2 => array( 'var' => 'highValue', 'type' => TType::DOUBLE, ), 3 => array( 'var' => 'numNulls', 'type' => TType::I64, ), 4 => array( 'var' => 'numDVs', 'type' => TType::I64, ), ); } if (is_array($vals)) { if (isset($vals['lowValue'])) { $this->lowValue = $vals['lowValue']; } if (isset($vals['highValue'])) { $this->highValue = $vals['highValue']; } if (isset($vals['numNulls'])) { $this->numNulls = $vals['numNulls']; } if (isset($vals['numDVs'])) { $this->numDVs = $vals['numDVs']; } } } public function getName() { return 'DoubleColumnStatsData'; } public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::DOUBLE) { $xfer += $input->readDouble($this->lowValue); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::DOUBLE) { $xfer += $input->readDouble($this->highValue); } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::I64) { $xfer += $input->readI64($this->numNulls); } else { $xfer += $input->skip($ftype); } break; case 4: if ($ftype == TType::I64) { $xfer += $input->readI64($this->numDVs); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; } public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('DoubleColumnStatsData'); if ($this->lowValue !== null) { $xfer += $output->writeFieldBegin('lowValue', TType::DOUBLE, 1); $xfer += $output->writeDouble($this->lowValue); $xfer += $output->writeFieldEnd(); } if ($this->highValue !== null) { $xfer += $output->writeFieldBegin('highValue', TType::DOUBLE, 2); $xfer += $output->writeDouble($this->highValue); $xfer += $output->writeFieldEnd(); } if ($this->numNulls !== null) { $xfer += $output->writeFieldBegin('numNulls', TType::I64, 3); $xfer += $output->writeI64($this->numNulls); $xfer += $output->writeFieldEnd(); } if ($this->numDVs !== null) { $xfer += $output->writeFieldBegin('numDVs', TType::I64, 4); $xfer += $output->writeI64($this->numDVs); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; } } class LongColumnStatsData { static $_TSPEC; public $lowValue = null; public $highValue = null; public $numNulls = null; public $numDVs = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( 'var' => 'lowValue', 'type' => TType::I64, ), 2 => array( 'var' => 'highValue', 'type' => TType::I64, ), 3 => array( 'var' => 'numNulls', 'type' => TType::I64, ), 4 => array( 'var' => 'numDVs', 'type' => TType::I64, ), ); } if (is_array($vals)) { if (isset($vals['lowValue'])) { $this->lowValue = $vals['lowValue']; } if (isset($vals['highValue'])) { $this->highValue = $vals['highValue']; } if (isset($vals['numNulls'])) { $this->numNulls = $vals['numNulls']; } if (isset($vals['numDVs'])) { $this->numDVs = $vals['numDVs']; } } } public function getName() { return 'LongColumnStatsData'; } public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::I64) { $xfer += $input->readI64($this->lowValue); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::I64) { $xfer += $input->readI64($this->highValue); } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::I64) { $xfer += $input->readI64($this->numNulls); } else { $xfer += $input->skip($ftype); } break; case 4: if ($ftype == TType::I64) { $xfer += $input->readI64($this->numDVs); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; } public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('LongColumnStatsData'); if ($this->lowValue !== null) { $xfer += $output->writeFieldBegin('lowValue', TType::I64, 1); $xfer += $output->writeI64($this->lowValue); $xfer += $output->writeFieldEnd(); } if ($this->highValue !== null) { $xfer += $output->writeFieldBegin('highValue', TType::I64, 2); $xfer += $output->writeI64($this->highValue); $xfer += $output->writeFieldEnd(); } if ($this->numNulls !== null) { $xfer += $output->writeFieldBegin('numNulls', TType::I64, 3); $xfer += $output->writeI64($this->numNulls); $xfer += $output->writeFieldEnd(); } if ($this->numDVs !== null) { $xfer += $output->writeFieldBegin('numDVs', TType::I64, 4); $xfer += $output->writeI64($this->numDVs); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; } } class StringColumnStatsData { static $_TSPEC; public $maxColLen = null; public $avgColLen = null; public $numNulls = null; public $numDVs = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( 'var' => 'maxColLen', 'type' => TType::I64, ), 2 => array( 'var' => 'avgColLen', 'type' => TType::DOUBLE, ), 3 => array( 'var' => 'numNulls', 'type' => TType::I64, ), 4 => array( 'var' => 'numDVs', 'type' => TType::I64, ), ); } if (is_array($vals)) { if (isset($vals['maxColLen'])) { $this->maxColLen = $vals['maxColLen']; } if (isset($vals['avgColLen'])) { $this->avgColLen = $vals['avgColLen']; } if (isset($vals['numNulls'])) { $this->numNulls = $vals['numNulls']; } if (isset($vals['numDVs'])) { $this->numDVs = $vals['numDVs']; } } } public function getName() { return 'StringColumnStatsData'; } public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::I64) { $xfer += $input->readI64($this->maxColLen); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::DOUBLE) { $xfer += $input->readDouble($this->avgColLen); } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::I64) { $xfer += $input->readI64($this->numNulls); } else { $xfer += $input->skip($ftype); } break; case 4: if ($ftype == TType::I64) { $xfer += $input->readI64($this->numDVs); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; } public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('StringColumnStatsData'); if ($this->maxColLen !== null) { $xfer += $output->writeFieldBegin('maxColLen', TType::I64, 1); $xfer += $output->writeI64($this->maxColLen); $xfer += $output->writeFieldEnd(); } if ($this->avgColLen !== null) { $xfer += $output->writeFieldBegin('avgColLen', TType::DOUBLE, 2); $xfer += $output->writeDouble($this->avgColLen); $xfer += $output->writeFieldEnd(); } if ($this->numNulls !== null) { $xfer += $output->writeFieldBegin('numNulls', TType::I64, 3); $xfer += $output->writeI64($this->numNulls); $xfer += $output->writeFieldEnd(); } if ($this->numDVs !== null) { $xfer += $output->writeFieldBegin('numDVs', TType::I64, 4); $xfer += $output->writeI64($this->numDVs); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; } } class BinaryColumnStatsData { static $_TSPEC; public $maxColLen = null; public $avgColLen = null; public $numNulls = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( 'var' => 'maxColLen', 'type' => TType::I64, ), 2 => array( 'var' => 'avgColLen', 'type' => TType::DOUBLE, ), 3 => array( 'var' => 'numNulls', 'type' => TType::I64, ), ); } if (is_array($vals)) { if (isset($vals['maxColLen'])) { $this->maxColLen = $vals['maxColLen']; } if (isset($vals['avgColLen'])) { $this->avgColLen = $vals['avgColLen']; } if (isset($vals['numNulls'])) { $this->numNulls = $vals['numNulls']; } } } public function getName() { return 'BinaryColumnStatsData'; } public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::I64) { $xfer += $input->readI64($this->maxColLen); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::DOUBLE) { $xfer += $input->readDouble($this->avgColLen); } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::I64) { $xfer += $input->readI64($this->numNulls); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; } public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('BinaryColumnStatsData'); if ($this->maxColLen !== null) { $xfer += $output->writeFieldBegin('maxColLen', TType::I64, 1); $xfer += $output->writeI64($this->maxColLen); $xfer += $output->writeFieldEnd(); } if ($this->avgColLen !== null) { $xfer += $output->writeFieldBegin('avgColLen', TType::DOUBLE, 2); $xfer += $output->writeDouble($this->avgColLen); $xfer += $output->writeFieldEnd(); } if ($this->numNulls !== null) { $xfer += $output->writeFieldBegin('numNulls', TType::I64, 3); $xfer += $output->writeI64($this->numNulls); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; } } class ColumnStatisticsData { static $_TSPEC; public $booleanStats = null; public $longStats = null; public $doubleStats = null; public $stringStats = null; public $binaryStats = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( 'var' => 'booleanStats', 'type' => TType::STRUCT, 'class' => 'BooleanColumnStatsData', ), 2 => array( 'var' => 'longStats', 'type' => TType::STRUCT, 'class' => 'LongColumnStatsData', ), 3 => array( 'var' => 'doubleStats', 'type' => TType::STRUCT, 'class' => 'DoubleColumnStatsData', ), 4 => array( 'var' => 'stringStats', 'type' => TType::STRUCT, 'class' => 'StringColumnStatsData', ), 5 => array( 'var' => 'binaryStats', 'type' => TType::STRUCT, 'class' => 'BinaryColumnStatsData', ), ); } if (is_array($vals)) { if (isset($vals['booleanStats'])) { $this->booleanStats = $vals['booleanStats']; } if (isset($vals['longStats'])) { $this->longStats = $vals['longStats']; } if (isset($vals['doubleStats'])) { $this->doubleStats = $vals['doubleStats']; } if (isset($vals['stringStats'])) { $this->stringStats = $vals['stringStats']; } if (isset($vals['binaryStats'])) { $this->binaryStats = $vals['binaryStats']; } } } public function getName() { return 'ColumnStatisticsData'; } public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::STRUCT) { $this->booleanStats = new BooleanColumnStatsData(); $xfer += $this->booleanStats->read($input); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::STRUCT) { $this->longStats = new LongColumnStatsData(); $xfer += $this->longStats->read($input); } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::STRUCT) { $this->doubleStats = new DoubleColumnStatsData(); $xfer += $this->doubleStats->read($input); } else { $xfer += $input->skip($ftype); } break; case 4: if ($ftype == TType::STRUCT) { $this->stringStats = new StringColumnStatsData(); $xfer += $this->stringStats->read($input); } else { $xfer += $input->skip($ftype); } break; case 5: if ($ftype == TType::STRUCT) { $this->binaryStats = new BinaryColumnStatsData(); $xfer += $this->binaryStats->read($input); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; } public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('ColumnStatisticsData'); if ($this->booleanStats !== null) { if (!is_object($this->booleanStats)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('booleanStats', TType::STRUCT, 1); $xfer += $this->booleanStats->write($output); $xfer += $output->writeFieldEnd(); } if ($this->longStats !== null) { if (!is_object($this->longStats)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('longStats', TType::STRUCT, 2); $xfer += $this->longStats->write($output); $xfer += $output->writeFieldEnd(); } if ($this->doubleStats !== null) { if (!is_object($this->doubleStats)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('doubleStats', TType::STRUCT, 3); $xfer += $this->doubleStats->write($output); $xfer += $output->writeFieldEnd(); } if ($this->stringStats !== null) { if (!is_object($this->stringStats)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('stringStats', TType::STRUCT, 4); $xfer += $this->stringStats->write($output); $xfer += $output->writeFieldEnd(); } if ($this->binaryStats !== null) { if (!is_object($this->binaryStats)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('binaryStats', TType::STRUCT, 5); $xfer += $this->binaryStats->write($output); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; } } class ColumnStatisticsObj { static $_TSPEC; public $colName = null; public $colType = null; public $statsData = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( 'var' => 'colName', 'type' => TType::STRING, ), 2 => array( 'var' => 'colType', 'type' => TType::STRING, ), 3 => array( 'var' => 'statsData', 'type' => TType::STRUCT, 'class' => 'ColumnStatisticsData', ), ); } if (is_array($vals)) { if (isset($vals['colName'])) { $this->colName = $vals['colName']; } if (isset($vals['colType'])) { $this->colType = $vals['colType']; } if (isset($vals['statsData'])) { $this->statsData = $vals['statsData']; } } } public function getName() { return 'ColumnStatisticsObj'; } public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::STRING) { $xfer += $input->readString($this->colName); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::STRING) { $xfer += $input->readString($this->colType); } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::STRUCT) { $this->statsData = new ColumnStatisticsData(); $xfer += $this->statsData->read($input); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; } public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('ColumnStatisticsObj'); if ($this->colName !== null) { $xfer += $output->writeFieldBegin('colName', TType::STRING, 1); $xfer += $output->writeString($this->colName); $xfer += $output->writeFieldEnd(); } if ($this->colType !== null) { $xfer += $output->writeFieldBegin('colType', TType::STRING, 2); $xfer += $output->writeString($this->colType); $xfer += $output->writeFieldEnd(); } if ($this->statsData !== null) { if (!is_object($this->statsData)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('statsData', TType::STRUCT, 3); $xfer += $this->statsData->write($output); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; } } class ColumnStatisticsDesc { static $_TSPEC; public $isTblLevel = null; public $dbName = null; public $tableName = null; public $partName = null; public $lastAnalyzed = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( 'var' => 'isTblLevel', 'type' => TType::BOOL, ), 2 => array( 'var' => 'dbName', 'type' => TType::STRING, ), 3 => array( 'var' => 'tableName', 'type' => TType::STRING, ), 4 => array( 'var' => 'partName', 'type' => TType::STRING, ), 5 => array( 'var' => 'lastAnalyzed', 'type' => TType::I64, ), ); } if (is_array($vals)) { if (isset($vals['isTblLevel'])) { $this->isTblLevel = $vals['isTblLevel']; } if (isset($vals['dbName'])) { $this->dbName = $vals['dbName']; } if (isset($vals['tableName'])) { $this->tableName = $vals['tableName']; } if (isset($vals['partName'])) { $this->partName = $vals['partName']; } if (isset($vals['lastAnalyzed'])) { $this->lastAnalyzed = $vals['lastAnalyzed']; } } } public function getName() { return 'ColumnStatisticsDesc'; } public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::BOOL) { $xfer += $input->readBool($this->isTblLevel); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::STRING) { $xfer += $input->readString($this->dbName); } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::STRING) { $xfer += $input->readString($this->tableName); } else { $xfer += $input->skip($ftype); } break; case 4: if ($ftype == TType::STRING) { $xfer += $input->readString($this->partName); } else { $xfer += $input->skip($ftype); } break; case 5: if ($ftype == TType::I64) { $xfer += $input->readI64($this->lastAnalyzed); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; } public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('ColumnStatisticsDesc'); if ($this->isTblLevel !== null) { $xfer += $output->writeFieldBegin('isTblLevel', TType::BOOL, 1); $xfer += $output->writeBool($this->isTblLevel); $xfer += $output->writeFieldEnd(); } if ($this->dbName !== null) { $xfer += $output->writeFieldBegin('dbName', TType::STRING, 2); $xfer += $output->writeString($this->dbName); $xfer += $output->writeFieldEnd(); } if ($this->tableName !== null) { $xfer += $output->writeFieldBegin('tableName', TType::STRING, 3); $xfer += $output->writeString($this->tableName); $xfer += $output->writeFieldEnd(); } if ($this->partName !== null) { $xfer += $output->writeFieldBegin('partName', TType::STRING, 4); $xfer += $output->writeString($this->partName); $xfer += $output->writeFieldEnd(); } if ($this->lastAnalyzed !== null) { $xfer += $output->writeFieldBegin('lastAnalyzed', TType::I64, 5); $xfer += $output->writeI64($this->lastAnalyzed); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; } } class ColumnStatistics { static $_TSPEC; public $statsDesc = null; public $statsObj = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( 'var' => 'statsDesc', 'type' => TType::STRUCT, 'class' => 'ColumnStatisticsDesc', ), 2 => array( 'var' => 'statsObj', 'type' => TType::LST, 'etype' => TType::STRUCT, 'elem' => array( 'type' => TType::STRUCT, 'class' => 'ColumnStatisticsObj', ), ), ); } if (is_array($vals)) { if (isset($vals['statsDesc'])) { $this->statsDesc = $vals['statsDesc']; } if (isset($vals['statsObj'])) { $this->statsObj = $vals['statsObj']; } } } public function getName() { return 'ColumnStatistics'; } public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::STRUCT) { $this->statsDesc = new ColumnStatisticsDesc(); $xfer += $this->statsDesc->read($input); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::LST) { $this->statsObj = array(); $_size195 = 0; $_etype198 = 0; $xfer += $input->readListBegin($_etype198, $_size195); for ($_i199 = 0; $_i199 < $_size195; ++$_i199) { $elem200 = null; $elem200 = new ColumnStatisticsObj(); $xfer += $elem200->read($input); $this->statsObj []= $elem200; } $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; } public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('ColumnStatistics'); if ($this->statsDesc !== null) { if (!is_object($this->statsDesc)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('statsDesc', TType::STRUCT, 1); $xfer += $this->statsDesc->write($output); $xfer += $output->writeFieldEnd(); } if ($this->statsObj !== null) { if (!is_array($this->statsObj)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('statsObj', TType::LST, 2); { $output->writeListBegin(TType::STRUCT, count($this->statsObj)); { foreach ($this->statsObj as $iter201) { $xfer += $iter201->write($output); } } $output->writeListEnd(); } $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; } } class Schema { static $_TSPEC; public $fieldSchemas = null; public $properties = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( 'var' => 'fieldSchemas', 'type' => TType::LST, 'etype' => TType::STRUCT, 'elem' => array( 'type' => TType::STRUCT, 'class' => 'FieldSchema', ), ), 2 => array( 'var' => 'properties', '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['fieldSchemas'])) { $this->fieldSchemas = $vals['fieldSchemas']; } if (isset($vals['properties'])) { $this->properties = $vals['properties']; } } } public function getName() { return 'Schema'; } public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::LST) { $this->fieldSchemas = array(); $_size202 = 0; $_etype205 = 0; $xfer += $input->readListBegin($_etype205, $_size202); for ($_i206 = 0; $_i206 < $_size202; ++$_i206) { $elem207 = null; $elem207 = new FieldSchema(); $xfer += $elem207->read($input); $this->fieldSchemas []= $elem207; } $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::MAP) { $this->properties = array(); $_size208 = 0; $_ktype209 = 0; $_vtype210 = 0; $xfer += $input->readMapBegin($_ktype209, $_vtype210, $_size208); for ($_i212 = 0; $_i212 < $_size208; ++$_i212) { $key213 = ''; $val214 = ''; $xfer += $input->readString($key213); $xfer += $input->readString($val214); $this->properties[$key213] = $val214; } $xfer += $input->readMapEnd(); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; } public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('Schema'); if ($this->fieldSchemas !== null) { if (!is_array($this->fieldSchemas)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('fieldSchemas', TType::LST, 1); { $output->writeListBegin(TType::STRUCT, count($this->fieldSchemas)); { foreach ($this->fieldSchemas as $iter215) { $xfer += $iter215->write($output); } } $output->writeListEnd(); } $xfer += $output->writeFieldEnd(); } if ($this->properties !== null) { if (!is_array($this->properties)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('properties', TType::MAP, 2); { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->properties)); { foreach ($this->properties as $kiter216 => $viter217) { $xfer += $output->writeString($kiter216); $xfer += $output->writeString($viter217); } } $output->writeMapEnd(); } $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; } } class EnvironmentContext { static $_TSPEC; public $properties = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( 'var' => 'properties', '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['properties'])) { $this->properties = $vals['properties']; } } } public function getName() { return 'EnvironmentContext'; } public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::MAP) { $this->properties = array(); $_size218 = 0; $_ktype219 = 0; $_vtype220 = 0; $xfer += $input->readMapBegin($_ktype219, $_vtype220, $_size218); for ($_i222 = 0; $_i222 < $_size218; ++$_i222) { $key223 = ''; $val224 = ''; $xfer += $input->readString($key223); $xfer += $input->readString($val224); $this->properties[$key223] = $val224; } $xfer += $input->readMapEnd(); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; } public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('EnvironmentContext'); if ($this->properties !== null) { if (!is_array($this->properties)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('properties', TType::MAP, 1); { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->properties)); { foreach ($this->properties as $kiter225 => $viter226) { $xfer += $output->writeString($kiter225); $xfer += $output->writeString($viter226); } } $output->writeMapEnd(); } $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; } } class MetaException extends TException { static $_TSPEC; public $message = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( 'var' => 'message', 'type' => TType::STRING, ), ); } if (is_array($vals)) { if (isset($vals['message'])) { $this->message = $vals['message']; } } } public function getName() { return 'MetaException'; } public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::STRING) { $xfer += $input->readString($this->message); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; } public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('MetaException'); if ($this->message !== null) { $xfer += $output->writeFieldBegin('message', TType::STRING, 1); $xfer += $output->writeString($this->message); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; } } class UnknownTableException extends TException { static $_TSPEC; public $message = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( 'var' => 'message', 'type' => TType::STRING, ), ); } if (is_array($vals)) { if (isset($vals['message'])) { $this->message = $vals['message']; } } } public function getName() { return 'UnknownTableException'; } public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::STRING) { $xfer += $input->readString($this->message); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; } public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('UnknownTableException'); if ($this->message !== null) { $xfer += $output->writeFieldBegin('message', TType::STRING, 1); $xfer += $output->writeString($this->message); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; } } class UnknownDBException extends TException { static $_TSPEC; public $message = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( 'var' => 'message', 'type' => TType::STRING, ), ); } if (is_array($vals)) { if (isset($vals['message'])) { $this->message = $vals['message']; } } } public function getName() { return 'UnknownDBException'; } public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::STRING) { $xfer += $input->readString($this->message); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; } public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('UnknownDBException'); if ($this->message !== null) { $xfer += $output->writeFieldBegin('message', TType::STRING, 1); $xfer += $output->writeString($this->message); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; } } class AlreadyExistsException extends TException { static $_TSPEC; public $message = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( 'var' => 'message', 'type' => TType::STRING, ), ); } if (is_array($vals)) { if (isset($vals['message'])) { $this->message = $vals['message']; } } } public function getName() { return 'AlreadyExistsException'; } public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::STRING) { $xfer += $input->readString($this->message); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; } public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('AlreadyExistsException'); if ($this->message !== null) { $xfer += $output->writeFieldBegin('message', TType::STRING, 1); $xfer += $output->writeString($this->message); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; } } class InvalidPartitionException extends TException { static $_TSPEC; public $message = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( 'var' => 'message', 'type' => TType::STRING, ), ); } if (is_array($vals)) { if (isset($vals['message'])) { $this->message = $vals['message']; } } } public function getName() { return 'InvalidPartitionException'; } public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::STRING) { $xfer += $input->readString($this->message); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; } public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('InvalidPartitionException'); if ($this->message !== null) { $xfer += $output->writeFieldBegin('message', TType::STRING, 1); $xfer += $output->writeString($this->message); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; } } class UnknownPartitionException extends TException { static $_TSPEC; public $message = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( 'var' => 'message', 'type' => TType::STRING, ), ); } if (is_array($vals)) { if (isset($vals['message'])) { $this->message = $vals['message']; } } } public function getName() { return 'UnknownPartitionException'; } public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::STRING) { $xfer += $input->readString($this->message); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; } public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('UnknownPartitionException'); if ($this->message !== null) { $xfer += $output->writeFieldBegin('message', TType::STRING, 1); $xfer += $output->writeString($this->message); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; } } class InvalidObjectException extends TException { static $_TSPEC; public $message = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( 'var' => 'message', 'type' => TType::STRING, ), ); } if (is_array($vals)) { if (isset($vals['message'])) { $this->message = $vals['message']; } } } public function getName() { return 'InvalidObjectException'; } public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::STRING) { $xfer += $input->readString($this->message); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; } public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('InvalidObjectException'); if ($this->message !== null) { $xfer += $output->writeFieldBegin('message', TType::STRING, 1); $xfer += $output->writeString($this->message); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; } } class NoSuchObjectException extends TException { static $_TSPEC; public $message = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( 'var' => 'message', 'type' => TType::STRING, ), ); } if (is_array($vals)) { if (isset($vals['message'])) { $this->message = $vals['message']; } } } public function getName() { return 'NoSuchObjectException'; } public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::STRING) { $xfer += $input->readString($this->message); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; } public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('NoSuchObjectException'); if ($this->message !== null) { $xfer += $output->writeFieldBegin('message', TType::STRING, 1); $xfer += $output->writeString($this->message); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; } } class IndexAlreadyExistsException extends TException { static $_TSPEC; public $message = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( 'var' => 'message', 'type' => TType::STRING, ), ); } if (is_array($vals)) { if (isset($vals['message'])) { $this->message = $vals['message']; } } } public function getName() { return 'IndexAlreadyExistsException'; } public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::STRING) { $xfer += $input->readString($this->message); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; } public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('IndexAlreadyExistsException'); if ($this->message !== null) { $xfer += $output->writeFieldBegin('message', TType::STRING, 1); $xfer += $output->writeString($this->message); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; } } class InvalidOperationException extends TException { static $_TSPEC; public $message = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( 'var' => 'message', 'type' => TType::STRING, ), ); } if (is_array($vals)) { if (isset($vals['message'])) { $this->message = $vals['message']; } } } public function getName() { return 'InvalidOperationException'; } public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::STRING) { $xfer += $input->readString($this->message); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; } public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('InvalidOperationException'); if ($this->message !== null) { $xfer += $output->writeFieldBegin('message', TType::STRING, 1); $xfer += $output->writeString($this->message); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; } } class ConfigValSecurityException extends TException { static $_TSPEC; public $message = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( 'var' => 'message', 'type' => TType::STRING, ), ); } if (is_array($vals)) { if (isset($vals['message'])) { $this->message = $vals['message']; } } } public function getName() { return 'ConfigValSecurityException'; } public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::STRING) { $xfer += $input->readString($this->message); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; } public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('ConfigValSecurityException'); if ($this->message !== null) { $xfer += $output->writeFieldBegin('message', TType::STRING, 1); $xfer += $output->writeString($this->message); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; } } class InvalidInputException extends TException { static $_TSPEC; public $message = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( 'var' => 'message', 'type' => TType::STRING, ), ); } if (is_array($vals)) { if (isset($vals['message'])) { $this->message = $vals['message']; } } } public function getName() { return 'InvalidInputException'; } public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::STRING) { $xfer += $input->readString($this->message); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; } public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('InvalidInputException'); if ($this->message !== null) { $xfer += $output->writeFieldBegin('message', TType::STRING, 1); $xfer += $output->writeString($this->message); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; } } ?>