http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php ---------------------------------------------------------------------- diff --git a/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php b/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php index 8342f6b..43e0878 100644 --- a/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php +++ b/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php @@ -1,7 +1,7 @@ <?php namespace metastore; /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -12,132 +12,995 @@ use Thrift\Type\TMessageType; use Thrift\Exception\TException; use Thrift\Exception\TProtocolException; use Thrift\Protocol\TProtocol; +use Thrift\Protocol\TBinaryProtocolAccelerated; use Thrift\Exception\TApplicationException; +/** + * This interface is live. + */ interface ThriftHiveMetastoreIf extends \FacebookServiceIf { + /** + * @param string $key + * @return string + * @throws \metastore\MetaException + */ public function getMetaConf($key); + /** + * @param string $key + * @param string $value + * @throws \metastore\MetaException + */ public function setMetaConf($key, $value); + /** + * @param \metastore\Database $database + * @throws \metastore\AlreadyExistsException + * @throws \metastore\InvalidObjectException + * @throws \metastore\MetaException + */ public function create_database(\metastore\Database $database); + /** + * @param string $name + * @return \metastore\Database + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ public function get_database($name); + /** + * @param string $name + * @param bool $deleteData + * @param bool $cascade + * @throws \metastore\NoSuchObjectException + * @throws \metastore\InvalidOperationException + * @throws \metastore\MetaException + */ public function drop_database($name, $deleteData, $cascade); + /** + * @param string $pattern + * @return string[] + * @throws \metastore\MetaException + */ public function get_databases($pattern); + /** + * @return string[] + * @throws \metastore\MetaException + */ public function get_all_databases(); + /** + * @param string $dbname + * @param \metastore\Database $db + * @throws \metastore\MetaException + * @throws \metastore\NoSuchObjectException + */ public function alter_database($dbname, \metastore\Database $db); + /** + * @param string $name + * @return \metastore\Type + * @throws \metastore\MetaException + * @throws \metastore\NoSuchObjectException + */ public function get_type($name); + /** + * @param \metastore\Type $type + * @return bool + * @throws \metastore\AlreadyExistsException + * @throws \metastore\InvalidObjectException + * @throws \metastore\MetaException + */ public function create_type(\metastore\Type $type); + /** + * @param string $type + * @return bool + * @throws \metastore\MetaException + * @throws \metastore\NoSuchObjectException + */ public function drop_type($type); + /** + * @param string $name + * @return array + * @throws \metastore\MetaException + */ public function get_type_all($name); + /** + * @param string $db_name + * @param string $table_name + * @return \metastore\FieldSchema[] + * @throws \metastore\MetaException + * @throws \metastore\UnknownTableException + * @throws \metastore\UnknownDBException + */ public function get_fields($db_name, $table_name); + /** + * @param string $db_name + * @param string $table_name + * @param \metastore\EnvironmentContext $environment_context + * @return \metastore\FieldSchema[] + * @throws \metastore\MetaException + * @throws \metastore\UnknownTableException + * @throws \metastore\UnknownDBException + */ public function get_fields_with_environment_context($db_name, $table_name, \metastore\EnvironmentContext $environment_context); + /** + * @param string $db_name + * @param string $table_name + * @return \metastore\FieldSchema[] + * @throws \metastore\MetaException + * @throws \metastore\UnknownTableException + * @throws \metastore\UnknownDBException + */ public function get_schema($db_name, $table_name); + /** + * @param string $db_name + * @param string $table_name + * @param \metastore\EnvironmentContext $environment_context + * @return \metastore\FieldSchema[] + * @throws \metastore\MetaException + * @throws \metastore\UnknownTableException + * @throws \metastore\UnknownDBException + */ public function get_schema_with_environment_context($db_name, $table_name, \metastore\EnvironmentContext $environment_context); + /** + * @param \metastore\Table $tbl + * @throws \metastore\AlreadyExistsException + * @throws \metastore\InvalidObjectException + * @throws \metastore\MetaException + * @throws \metastore\NoSuchObjectException + */ public function create_table(\metastore\Table $tbl); + /** + * @param \metastore\Table $tbl + * @param \metastore\EnvironmentContext $environment_context + * @throws \metastore\AlreadyExistsException + * @throws \metastore\InvalidObjectException + * @throws \metastore\MetaException + * @throws \metastore\NoSuchObjectException + */ public function create_table_with_environment_context(\metastore\Table $tbl, \metastore\EnvironmentContext $environment_context); + /** + * @param string $dbname + * @param string $name + * @param bool $deleteData + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ public function drop_table($dbname, $name, $deleteData); + /** + * @param string $dbname + * @param string $name + * @param bool $deleteData + * @param \metastore\EnvironmentContext $environment_context + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ public function drop_table_with_environment_context($dbname, $name, $deleteData, \metastore\EnvironmentContext $environment_context); + /** + * @param string $db_name + * @param string $pattern + * @return string[] + * @throws \metastore\MetaException + */ public function get_tables($db_name, $pattern); + /** + * @param string $db_name + * @return string[] + * @throws \metastore\MetaException + */ public function get_all_tables($db_name); + /** + * @param string $dbname + * @param string $tbl_name + * @return \metastore\Table + * @throws \metastore\MetaException + * @throws \metastore\NoSuchObjectException + */ public function get_table($dbname, $tbl_name); - public function get_table_objects_by_name($dbname, $tbl_names); + /** + * @param string $dbname + * @param string[] $tbl_names + * @return \metastore\Table[] + * @throws \metastore\MetaException + * @throws \metastore\InvalidOperationException + * @throws \metastore\UnknownDBException + */ + public function get_table_objects_by_name($dbname, array $tbl_names); + /** + * @param string $dbname + * @param string $filter + * @param int $max_tables + * @return string[] + * @throws \metastore\MetaException + * @throws \metastore\InvalidOperationException + * @throws \metastore\UnknownDBException + */ public function get_table_names_by_filter($dbname, $filter, $max_tables); + /** + * @param string $dbname + * @param string $tbl_name + * @param \metastore\Table $new_tbl + * @throws \metastore\InvalidOperationException + * @throws \metastore\MetaException + */ public function alter_table($dbname, $tbl_name, \metastore\Table $new_tbl); + /** + * @param string $dbname + * @param string $tbl_name + * @param \metastore\Table $new_tbl + * @param \metastore\EnvironmentContext $environment_context + * @throws \metastore\InvalidOperationException + * @throws \metastore\MetaException + */ public function alter_table_with_environment_context($dbname, $tbl_name, \metastore\Table $new_tbl, \metastore\EnvironmentContext $environment_context); + /** + * @param string $dbname + * @param string $tbl_name + * @param \metastore\Table $new_tbl + * @param bool $cascade + * @throws \metastore\InvalidOperationException + * @throws \metastore\MetaException + */ public function alter_table_with_cascade($dbname, $tbl_name, \metastore\Table $new_tbl, $cascade); + /** + * @param \metastore\Partition $new_part + * @return \metastore\Partition + * @throws \metastore\InvalidObjectException + * @throws \metastore\AlreadyExistsException + * @throws \metastore\MetaException + */ public function add_partition(\metastore\Partition $new_part); + /** + * @param \metastore\Partition $new_part + * @param \metastore\EnvironmentContext $environment_context + * @return \metastore\Partition + * @throws \metastore\InvalidObjectException + * @throws \metastore\AlreadyExistsException + * @throws \metastore\MetaException + */ public function add_partition_with_environment_context(\metastore\Partition $new_part, \metastore\EnvironmentContext $environment_context); - public function add_partitions($new_parts); - public function add_partitions_pspec($new_parts); - public function append_partition($db_name, $tbl_name, $part_vals); + /** + * @param \metastore\Partition[] $new_parts + * @return int + * @throws \metastore\InvalidObjectException + * @throws \metastore\AlreadyExistsException + * @throws \metastore\MetaException + */ + public function add_partitions(array $new_parts); + /** + * @param \metastore\PartitionSpec[] $new_parts + * @return int + * @throws \metastore\InvalidObjectException + * @throws \metastore\AlreadyExistsException + * @throws \metastore\MetaException + */ + public function add_partitions_pspec(array $new_parts); + /** + * @param string $db_name + * @param string $tbl_name + * @param string[] $part_vals + * @return \metastore\Partition + * @throws \metastore\InvalidObjectException + * @throws \metastore\AlreadyExistsException + * @throws \metastore\MetaException + */ + public function append_partition($db_name, $tbl_name, array $part_vals); + /** + * @param \metastore\AddPartitionsRequest $request + * @return \metastore\AddPartitionsResult + * @throws \metastore\InvalidObjectException + * @throws \metastore\AlreadyExistsException + * @throws \metastore\MetaException + */ public function add_partitions_req(\metastore\AddPartitionsRequest $request); - public function append_partition_with_environment_context($db_name, $tbl_name, $part_vals, \metastore\EnvironmentContext $environment_context); + /** + * @param string $db_name + * @param string $tbl_name + * @param string[] $part_vals + * @param \metastore\EnvironmentContext $environment_context + * @return \metastore\Partition + * @throws \metastore\InvalidObjectException + * @throws \metastore\AlreadyExistsException + * @throws \metastore\MetaException + */ + public function append_partition_with_environment_context($db_name, $tbl_name, array $part_vals, \metastore\EnvironmentContext $environment_context); + /** + * @param string $db_name + * @param string $tbl_name + * @param string $part_name + * @return \metastore\Partition + * @throws \metastore\InvalidObjectException + * @throws \metastore\AlreadyExistsException + * @throws \metastore\MetaException + */ public function append_partition_by_name($db_name, $tbl_name, $part_name); + /** + * @param string $db_name + * @param string $tbl_name + * @param string $part_name + * @param \metastore\EnvironmentContext $environment_context + * @return \metastore\Partition + * @throws \metastore\InvalidObjectException + * @throws \metastore\AlreadyExistsException + * @throws \metastore\MetaException + */ public function append_partition_by_name_with_environment_context($db_name, $tbl_name, $part_name, \metastore\EnvironmentContext $environment_context); - public function drop_partition($db_name, $tbl_name, $part_vals, $deleteData); - public function drop_partition_with_environment_context($db_name, $tbl_name, $part_vals, $deleteData, \metastore\EnvironmentContext $environment_context); + /** + * @param string $db_name + * @param string $tbl_name + * @param string[] $part_vals + * @param bool $deleteData + * @return bool + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ + public function drop_partition($db_name, $tbl_name, array $part_vals, $deleteData); + /** + * @param string $db_name + * @param string $tbl_name + * @param string[] $part_vals + * @param bool $deleteData + * @param \metastore\EnvironmentContext $environment_context + * @return bool + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ + public function drop_partition_with_environment_context($db_name, $tbl_name, array $part_vals, $deleteData, \metastore\EnvironmentContext $environment_context); + /** + * @param string $db_name + * @param string $tbl_name + * @param string $part_name + * @param bool $deleteData + * @return bool + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ public function drop_partition_by_name($db_name, $tbl_name, $part_name, $deleteData); + /** + * @param string $db_name + * @param string $tbl_name + * @param string $part_name + * @param bool $deleteData + * @param \metastore\EnvironmentContext $environment_context + * @return bool + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ public function drop_partition_by_name_with_environment_context($db_name, $tbl_name, $part_name, $deleteData, \metastore\EnvironmentContext $environment_context); + /** + * @param \metastore\DropPartitionsRequest $req + * @return \metastore\DropPartitionsResult + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ public function drop_partitions_req(\metastore\DropPartitionsRequest $req); - public function get_partition($db_name, $tbl_name, $part_vals); - public function exchange_partition($partitionSpecs, $source_db, $source_table_name, $dest_db, $dest_table_name); - public function get_partition_with_auth($db_name, $tbl_name, $part_vals, $user_name, $group_names); + /** + * @param string $db_name + * @param string $tbl_name + * @param string[] $part_vals + * @return \metastore\Partition + * @throws \metastore\MetaException + * @throws \metastore\NoSuchObjectException + */ + public function get_partition($db_name, $tbl_name, array $part_vals); + /** + * @param array $partitionSpecs + * @param string $source_db + * @param string $source_table_name + * @param string $dest_db + * @param string $dest_table_name + * @return \metastore\Partition + * @throws \metastore\MetaException + * @throws \metastore\NoSuchObjectException + * @throws \metastore\InvalidObjectException + * @throws \metastore\InvalidInputException + */ + public function exchange_partition(array $partitionSpecs, $source_db, $source_table_name, $dest_db, $dest_table_name); + /** + * @param string $db_name + * @param string $tbl_name + * @param string[] $part_vals + * @param string $user_name + * @param string[] $group_names + * @return \metastore\Partition + * @throws \metastore\MetaException + * @throws \metastore\NoSuchObjectException + */ + public function get_partition_with_auth($db_name, $tbl_name, array $part_vals, $user_name, array $group_names); + /** + * @param string $db_name + * @param string $tbl_name + * @param string $part_name + * @return \metastore\Partition + * @throws \metastore\MetaException + * @throws \metastore\NoSuchObjectException + */ public function get_partition_by_name($db_name, $tbl_name, $part_name); + /** + * @param string $db_name + * @param string $tbl_name + * @param int $max_parts + * @return \metastore\Partition[] + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ public function get_partitions($db_name, $tbl_name, $max_parts); - public function get_partitions_with_auth($db_name, $tbl_name, $max_parts, $user_name, $group_names); + /** + * @param string $db_name + * @param string $tbl_name + * @param int $max_parts + * @param string $user_name + * @param string[] $group_names + * @return \metastore\Partition[] + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ + public function get_partitions_with_auth($db_name, $tbl_name, $max_parts, $user_name, array $group_names); + /** + * @param string $db_name + * @param string $tbl_name + * @param int $max_parts + * @return \metastore\PartitionSpec[] + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ public function get_partitions_pspec($db_name, $tbl_name, $max_parts); + /** + * @param string $db_name + * @param string $tbl_name + * @param int $max_parts + * @return string[] + * @throws \metastore\MetaException + */ public function get_partition_names($db_name, $tbl_name, $max_parts); - public function get_partitions_ps($db_name, $tbl_name, $part_vals, $max_parts); - public function get_partitions_ps_with_auth($db_name, $tbl_name, $part_vals, $max_parts, $user_name, $group_names); - public function get_partition_names_ps($db_name, $tbl_name, $part_vals, $max_parts); + /** + * @param string $db_name + * @param string $tbl_name + * @param string[] $part_vals + * @param int $max_parts + * @return \metastore\Partition[] + * @throws \metastore\MetaException + * @throws \metastore\NoSuchObjectException + */ + public function get_partitions_ps($db_name, $tbl_name, array $part_vals, $max_parts); + /** + * @param string $db_name + * @param string $tbl_name + * @param string[] $part_vals + * @param int $max_parts + * @param string $user_name + * @param string[] $group_names + * @return \metastore\Partition[] + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ + public function get_partitions_ps_with_auth($db_name, $tbl_name, array $part_vals, $max_parts, $user_name, array $group_names); + /** + * @param string $db_name + * @param string $tbl_name + * @param string[] $part_vals + * @param int $max_parts + * @return string[] + * @throws \metastore\MetaException + * @throws \metastore\NoSuchObjectException + */ + public function get_partition_names_ps($db_name, $tbl_name, array $part_vals, $max_parts); + /** + * @param string $db_name + * @param string $tbl_name + * @param string $filter + * @param int $max_parts + * @return \metastore\Partition[] + * @throws \metastore\MetaException + * @throws \metastore\NoSuchObjectException + */ public function get_partitions_by_filter($db_name, $tbl_name, $filter, $max_parts); + /** + * @param string $db_name + * @param string $tbl_name + * @param string $filter + * @param int $max_parts + * @return \metastore\PartitionSpec[] + * @throws \metastore\MetaException + * @throws \metastore\NoSuchObjectException + */ public function get_part_specs_by_filter($db_name, $tbl_name, $filter, $max_parts); + /** + * @param \metastore\PartitionsByExprRequest $req + * @return \metastore\PartitionsByExprResult + * @throws \metastore\MetaException + * @throws \metastore\NoSuchObjectException + */ public function get_partitions_by_expr(\metastore\PartitionsByExprRequest $req); - public function get_partitions_by_names($db_name, $tbl_name, $names); + /** + * @param string $db_name + * @param string $tbl_name + * @param string[] $names + * @return \metastore\Partition[] + * @throws \metastore\MetaException + * @throws \metastore\NoSuchObjectException + */ + public function get_partitions_by_names($db_name, $tbl_name, array $names); + /** + * @param string $db_name + * @param string $tbl_name + * @param \metastore\Partition $new_part + * @throws \metastore\InvalidOperationException + * @throws \metastore\MetaException + */ public function alter_partition($db_name, $tbl_name, \metastore\Partition $new_part); - public function alter_partitions($db_name, $tbl_name, $new_parts); + /** + * @param string $db_name + * @param string $tbl_name + * @param \metastore\Partition[] $new_parts + * @throws \metastore\InvalidOperationException + * @throws \metastore\MetaException + */ + public function alter_partitions($db_name, $tbl_name, array $new_parts); + /** + * @param string $db_name + * @param string $tbl_name + * @param \metastore\Partition $new_part + * @param \metastore\EnvironmentContext $environment_context + * @throws \metastore\InvalidOperationException + * @throws \metastore\MetaException + */ public function alter_partition_with_environment_context($db_name, $tbl_name, \metastore\Partition $new_part, \metastore\EnvironmentContext $environment_context); - public function rename_partition($db_name, $tbl_name, $part_vals, \metastore\Partition $new_part); - public function partition_name_has_valid_characters($part_vals, $throw_exception); + /** + * @param string $db_name + * @param string $tbl_name + * @param string[] $part_vals + * @param \metastore\Partition $new_part + * @throws \metastore\InvalidOperationException + * @throws \metastore\MetaException + */ + public function rename_partition($db_name, $tbl_name, array $part_vals, \metastore\Partition $new_part); + /** + * @param string[] $part_vals + * @param bool $throw_exception + * @return bool + * @throws \metastore\MetaException + */ + public function partition_name_has_valid_characters(array $part_vals, $throw_exception); + /** + * @param string $name + * @param string $defaultValue + * @return string + * @throws \metastore\ConfigValSecurityException + */ public function get_config_value($name, $defaultValue); + /** + * @param string $part_name + * @return string[] + * @throws \metastore\MetaException + */ public function partition_name_to_vals($part_name); + /** + * @param string $part_name + * @return array + * @throws \metastore\MetaException + */ public function partition_name_to_spec($part_name); - public function markPartitionForEvent($db_name, $tbl_name, $part_vals, $eventType); - public function isPartitionMarkedForEvent($db_name, $tbl_name, $part_vals, $eventType); + /** + * @param string $db_name + * @param string $tbl_name + * @param array $part_vals + * @param int $eventType + * @throws \metastore\MetaException + * @throws \metastore\NoSuchObjectException + * @throws \metastore\UnknownDBException + * @throws \metastore\UnknownTableException + * @throws \metastore\UnknownPartitionException + * @throws \metastore\InvalidPartitionException + */ + public function markPartitionForEvent($db_name, $tbl_name, array $part_vals, $eventType); + /** + * @param string $db_name + * @param string $tbl_name + * @param array $part_vals + * @param int $eventType + * @return bool + * @throws \metastore\MetaException + * @throws \metastore\NoSuchObjectException + * @throws \metastore\UnknownDBException + * @throws \metastore\UnknownTableException + * @throws \metastore\UnknownPartitionException + * @throws \metastore\InvalidPartitionException + */ + public function isPartitionMarkedForEvent($db_name, $tbl_name, array $part_vals, $eventType); + /** + * @param \metastore\Index $new_index + * @param \metastore\Table $index_table + * @return \metastore\Index + * @throws \metastore\InvalidObjectException + * @throws \metastore\AlreadyExistsException + * @throws \metastore\MetaException + */ public function add_index(\metastore\Index $new_index, \metastore\Table $index_table); + /** + * @param string $dbname + * @param string $base_tbl_name + * @param string $idx_name + * @param \metastore\Index $new_idx + * @throws \metastore\InvalidOperationException + * @throws \metastore\MetaException + */ public function alter_index($dbname, $base_tbl_name, $idx_name, \metastore\Index $new_idx); + /** + * @param string $db_name + * @param string $tbl_name + * @param string $index_name + * @param bool $deleteData + * @return bool + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ public function drop_index_by_name($db_name, $tbl_name, $index_name, $deleteData); + /** + * @param string $db_name + * @param string $tbl_name + * @param string $index_name + * @return \metastore\Index + * @throws \metastore\MetaException + * @throws \metastore\NoSuchObjectException + */ public function get_index_by_name($db_name, $tbl_name, $index_name); + /** + * @param string $db_name + * @param string $tbl_name + * @param int $max_indexes + * @return \metastore\Index[] + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ public function get_indexes($db_name, $tbl_name, $max_indexes); + /** + * @param string $db_name + * @param string $tbl_name + * @param int $max_indexes + * @return string[] + * @throws \metastore\MetaException + */ public function get_index_names($db_name, $tbl_name, $max_indexes); + /** + * @param \metastore\ColumnStatistics $stats_obj + * @return bool + * @throws \metastore\NoSuchObjectException + * @throws \metastore\InvalidObjectException + * @throws \metastore\MetaException + * @throws \metastore\InvalidInputException + */ public function update_table_column_statistics(\metastore\ColumnStatistics $stats_obj); + /** + * @param \metastore\ColumnStatistics $stats_obj + * @return bool + * @throws \metastore\NoSuchObjectException + * @throws \metastore\InvalidObjectException + * @throws \metastore\MetaException + * @throws \metastore\InvalidInputException + */ public function update_partition_column_statistics(\metastore\ColumnStatistics $stats_obj); + /** + * @param string $db_name + * @param string $tbl_name + * @param string $col_name + * @return \metastore\ColumnStatistics + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + * @throws \metastore\InvalidInputException + * @throws \metastore\InvalidObjectException + */ public function get_table_column_statistics($db_name, $tbl_name, $col_name); + /** + * @param string $db_name + * @param string $tbl_name + * @param string $part_name + * @param string $col_name + * @return \metastore\ColumnStatistics + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + * @throws \metastore\InvalidInputException + * @throws \metastore\InvalidObjectException + */ public function get_partition_column_statistics($db_name, $tbl_name, $part_name, $col_name); + /** + * @param \metastore\TableStatsRequest $request + * @return \metastore\TableStatsResult + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ public function get_table_statistics_req(\metastore\TableStatsRequest $request); + /** + * @param \metastore\PartitionsStatsRequest $request + * @return \metastore\PartitionsStatsResult + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ public function get_partitions_statistics_req(\metastore\PartitionsStatsRequest $request); + /** + * @param \metastore\PartitionsStatsRequest $request + * @return \metastore\AggrStats + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ public function get_aggr_stats_for(\metastore\PartitionsStatsRequest $request); + /** + * @param \metastore\SetPartitionsStatsRequest $request + * @return bool + * @throws \metastore\NoSuchObjectException + * @throws \metastore\InvalidObjectException + * @throws \metastore\MetaException + * @throws \metastore\InvalidInputException + */ public function set_aggr_stats_for(\metastore\SetPartitionsStatsRequest $request); + /** + * @param string $db_name + * @param string $tbl_name + * @param string $part_name + * @param string $col_name + * @return bool + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + * @throws \metastore\InvalidObjectException + * @throws \metastore\InvalidInputException + */ public function delete_partition_column_statistics($db_name, $tbl_name, $part_name, $col_name); + /** + * @param string $db_name + * @param string $tbl_name + * @param string $col_name + * @return bool + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + * @throws \metastore\InvalidObjectException + * @throws \metastore\InvalidInputException + */ public function delete_table_column_statistics($db_name, $tbl_name, $col_name); + /** + * @param \metastore\Function $func + * @throws \metastore\AlreadyExistsException + * @throws \metastore\InvalidObjectException + * @throws \metastore\MetaException + * @throws \metastore\NoSuchObjectException + */ public function create_function(\metastore\Function $func); + /** + * @param string $dbName + * @param string $funcName + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ public function drop_function($dbName, $funcName); + /** + * @param string $dbName + * @param string $funcName + * @param \metastore\Function $newFunc + * @throws \metastore\InvalidOperationException + * @throws \metastore\MetaException + */ public function alter_function($dbName, $funcName, \metastore\Function $newFunc); + /** + * @param string $dbName + * @param string $pattern + * @return string[] + * @throws \metastore\MetaException + */ public function get_functions($dbName, $pattern); + /** + * @param string $dbName + * @param string $funcName + * @return \metastore\Function + * @throws \metastore\MetaException + * @throws \metastore\NoSuchObjectException + */ public function get_function($dbName, $funcName); + /** + * @param \metastore\Role $role + * @return bool + * @throws \metastore\MetaException + */ public function create_role(\metastore\Role $role); + /** + * @param string $role_name + * @return bool + * @throws \metastore\MetaException + */ public function drop_role($role_name); + /** + * @return string[] + * @throws \metastore\MetaException + */ public function get_role_names(); + /** + * @param string $role_name + * @param string $principal_name + * @param int $principal_type + * @param string $grantor + * @param int $grantorType + * @param bool $grant_option + * @return bool + * @throws \metastore\MetaException + */ public function grant_role($role_name, $principal_name, $principal_type, $grantor, $grantorType, $grant_option); + /** + * @param string $role_name + * @param string $principal_name + * @param int $principal_type + * @return bool + * @throws \metastore\MetaException + */ public function revoke_role($role_name, $principal_name, $principal_type); + /** + * @param string $principal_name + * @param int $principal_type + * @return \metastore\Role[] + * @throws \metastore\MetaException + */ public function list_roles($principal_name, $principal_type); + /** + * @param \metastore\GrantRevokeRoleRequest $request + * @return \metastore\GrantRevokeRoleResponse + * @throws \metastore\MetaException + */ public function grant_revoke_role(\metastore\GrantRevokeRoleRequest $request); + /** + * @param \metastore\GetPrincipalsInRoleRequest $request + * @return \metastore\GetPrincipalsInRoleResponse + * @throws \metastore\MetaException + */ public function get_principals_in_role(\metastore\GetPrincipalsInRoleRequest $request); + /** + * @param \metastore\GetRoleGrantsForPrincipalRequest $request + * @return \metastore\GetRoleGrantsForPrincipalResponse + * @throws \metastore\MetaException + */ public function get_role_grants_for_principal(\metastore\GetRoleGrantsForPrincipalRequest $request); - public function get_privilege_set(\metastore\HiveObjectRef $hiveObject, $user_name, $group_names); + /** + * @param \metastore\HiveObjectRef $hiveObject + * @param string $user_name + * @param string[] $group_names + * @return \metastore\PrincipalPrivilegeSet + * @throws \metastore\MetaException + */ + public function get_privilege_set(\metastore\HiveObjectRef $hiveObject, $user_name, array $group_names); + /** + * @param string $principal_name + * @param int $principal_type + * @param \metastore\HiveObjectRef $hiveObject + * @return \metastore\HiveObjectPrivilege[] + * @throws \metastore\MetaException + */ public function list_privileges($principal_name, $principal_type, \metastore\HiveObjectRef $hiveObject); + /** + * @param \metastore\PrivilegeBag $privileges + * @return bool + * @throws \metastore\MetaException + */ public function grant_privileges(\metastore\PrivilegeBag $privileges); + /** + * @param \metastore\PrivilegeBag $privileges + * @return bool + * @throws \metastore\MetaException + */ public function revoke_privileges(\metastore\PrivilegeBag $privileges); + /** + * @param \metastore\GrantRevokePrivilegeRequest $request + * @return \metastore\GrantRevokePrivilegeResponse + * @throws \metastore\MetaException + */ public function grant_revoke_privileges(\metastore\GrantRevokePrivilegeRequest $request); - public function set_ugi($user_name, $group_names); + /** + * @param string $user_name + * @param string[] $group_names + * @return string[] + * @throws \metastore\MetaException + */ + public function set_ugi($user_name, array $group_names); + /** + * @param string $token_owner + * @param string $renewer_kerberos_principal_name + * @return string + * @throws \metastore\MetaException + */ public function get_delegation_token($token_owner, $renewer_kerberos_principal_name); + /** + * @param string $token_str_form + * @return int + * @throws \metastore\MetaException + */ public function renew_delegation_token($token_str_form); + /** + * @param string $token_str_form + * @throws \metastore\MetaException + */ public function cancel_delegation_token($token_str_form); + /** + * @return \metastore\GetOpenTxnsResponse + */ public function get_open_txns(); + /** + * @return \metastore\GetOpenTxnsInfoResponse + */ public function get_open_txns_info(); + /** + * @param \metastore\OpenTxnRequest $rqst + * @return \metastore\OpenTxnsResponse + */ public function open_txns(\metastore\OpenTxnRequest $rqst); + /** + * @param \metastore\AbortTxnRequest $rqst + * @throws \metastore\NoSuchTxnException + */ public function abort_txn(\metastore\AbortTxnRequest $rqst); + /** + * @param \metastore\CommitTxnRequest $rqst + * @throws \metastore\NoSuchTxnException + * @throws \metastore\TxnAbortedException + */ public function commit_txn(\metastore\CommitTxnRequest $rqst); + /** + * @param \metastore\LockRequest $rqst + * @return \metastore\LockResponse + * @throws \metastore\NoSuchTxnException + * @throws \metastore\TxnAbortedException + */ public function lock(\metastore\LockRequest $rqst); + /** + * @param \metastore\CheckLockRequest $rqst + * @return \metastore\LockResponse + * @throws \metastore\NoSuchTxnException + * @throws \metastore\TxnAbortedException + * @throws \metastore\NoSuchLockException + */ public function check_lock(\metastore\CheckLockRequest $rqst); + /** + * @param \metastore\UnlockRequest $rqst + * @throws \metastore\NoSuchLockException + * @throws \metastore\TxnOpenException + */ public function unlock(\metastore\UnlockRequest $rqst); + /** + * @param \metastore\ShowLocksRequest $rqst + * @return \metastore\ShowLocksResponse + */ public function show_locks(\metastore\ShowLocksRequest $rqst); + /** + * @param \metastore\HeartbeatRequest $ids + * @throws \metastore\NoSuchLockException + * @throws \metastore\NoSuchTxnException + * @throws \metastore\TxnAbortedException + */ public function heartbeat(\metastore\HeartbeatRequest $ids); + /** + * @param \metastore\HeartbeatTxnRangeRequest $txns + * @return \metastore\HeartbeatTxnRangeResponse + */ public function heartbeat_txn_range(\metastore\HeartbeatTxnRangeRequest $txns); + /** + * @param \metastore\CompactionRequest $rqst + */ public function compact(\metastore\CompactionRequest $rqst); + /** + * @param \metastore\ShowCompactRequest $rqst + * @return \metastore\ShowCompactResponse + */ public function show_compact(\metastore\ShowCompactRequest $rqst); + /** + * @param \metastore\AddDynamicPartitions $rqst + * @throws \metastore\NoSuchTxnException + * @throws \metastore\TxnAbortedException + */ public function add_dynamic_partitions(\metastore\AddDynamicPartitions $rqst); + /** + * @param \metastore\NotificationEventRequest $rqst + * @return \metastore\NotificationEventResponse + */ public function get_next_notification(\metastore\NotificationEventRequest $rqst); + /** + * @return \metastore\CurrentNotificationEventId + */ public function get_current_notificationEventId(); + /** + * @param \metastore\FireEventRequest $rqst + * @return \metastore\FireEventResponse + */ public function fire_listener_event(\metastore\FireEventRequest $rqst); } @@ -156,7 +1019,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_getMetaConf_args(); $args->key = $key; - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'getMetaConf', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -172,7 +1035,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_getMetaConf() { - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_getMetaConf_result', $this->input_->isStrictRead()); else { @@ -211,7 +1074,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args = new \metastore\ThriftHiveMetastore_setMetaConf_args(); $args->key = $key; $args->value = $value; - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'setMetaConf', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -227,7 +1090,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_setMetaConf() { - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_setMetaConf_result', $this->input_->isStrictRead()); else { @@ -262,7 +1125,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_create_database_args(); $args->database = $database; - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'create_database', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -278,7 +1141,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_create_database() { - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_create_database_result', $this->input_->isStrictRead()); else { @@ -319,7 +1182,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_get_database_args(); $args->name = $name; - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_database', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -335,7 +1198,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_database() { - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_database_result', $this->input_->isStrictRead()); else { @@ -378,7 +1241,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->name = $name; $args->deleteData = $deleteData; $args->cascade = $cascade; - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'drop_database', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -394,7 +1257,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_drop_database() { - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_drop_database_result', $this->input_->isStrictRead()); else { @@ -435,7 +1298,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_get_databases_args(); $args->pattern = $pattern; - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_databases', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -451,7 +1314,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_databases() { - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_databases_result', $this->input_->isStrictRead()); else { @@ -488,7 +1351,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function send_get_all_databases() { $args = new \metastore\ThriftHiveMetastore_get_all_databases_args(); - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_all_databases', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -504,7 +1367,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_all_databases() { - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_all_databases_result', $this->input_->isStrictRead()); else { @@ -543,7 +1406,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args = new \metastore\ThriftHiveMetastore_alter_database_args(); $args->dbname = $dbname; $args->db = $db; - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'alter_database', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -559,7 +1422,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_alter_database() { - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_alter_database_result', $this->input_->isStrictRead()); else { @@ -597,7 +1460,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_get_type_args(); $args->name = $name; - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_type', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -613,7 +1476,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_type() { - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_type_result', $this->input_->isStrictRead()); else { @@ -654,7 +1517,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_create_type_args(); $args->type = $type; - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'create_type', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -670,7 +1533,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_create_type() { - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_create_type_result', $this->input_->isStrictRead()); else { @@ -714,7 +1577,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_drop_type_args(); $args->type = $type; - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'drop_type', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -730,7 +1593,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_drop_type() { - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_drop_type_result', $this->input_->isStrictRead()); else { @@ -771,7 +1634,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_get_type_all_args(); $args->name = $name; - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_type_all', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -787,7 +1650,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_type_all() { - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_type_all_result', $this->input_->isStrictRead()); else { @@ -826,7 +1689,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args = new \metastore\ThriftHiveMetastore_get_fields_args(); $args->db_name = $db_name; $args->table_name = $table_name; - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_fields', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -842,7 +1705,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_fields() { - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_fields_result', $this->input_->isStrictRead()); else { @@ -888,7 +1751,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->db_name = $db_name; $args->table_name = $table_name; $args->environment_context = $environment_context; - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_fields_with_environment_context', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -904,7 +1767,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_fields_with_environment_context() { - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_fields_with_environment_context_result', $this->input_->isStrictRead()); else { @@ -949,7 +1812,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args = new \metastore\ThriftHiveMetastore_get_schema_args(); $args->db_name = $db_name; $args->table_name = $table_name; - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_schema', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -965,7 +1828,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_schema() { - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_schema_result', $this->input_->isStrictRead()); else { @@ -1011,7 +1874,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->db_name = $db_name; $args->table_name = $table_name; $args->environment_context = $environment_context; - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_schema_with_environment_context', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1027,7 +1890,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_schema_with_environment_context() { - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_schema_with_environment_context_result', $this->input_->isStrictRead()); else { @@ -1071,7 +1934,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_create_table_args(); $args->tbl = $tbl; - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'create_table', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1087,7 +1950,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_create_table() { - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_create_table_result', $this->input_->isStrictRead()); else { @@ -1132,7 +1995,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args = new \metastore\ThriftHiveMetastore_create_table_with_environment_context_args(); $args->tbl = $tbl; $args->environment_context = $environment_context; - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'create_table_with_environment_context', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1148,7 +2011,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_create_table_with_environment_context() { - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_create_table_with_environment_context_result', $this->input_->isStrictRead()); else { @@ -1194,7 +2057,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->dbname = $dbname; $args->name = $name; $args->deleteData = $deleteData; - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'drop_table', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1210,7 +2073,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_drop_table() { - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_drop_table_result', $this->input_->isStrictRead()); else { @@ -1251,7 +2114,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->name = $name; $args->deleteData = $deleteData; $args->environment_context = $environment_context; - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'drop_table_with_environment_context', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1267,7 +2130,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_drop_table_with_environment_context() { - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_drop_table_with_environment_context_result', $this->input_->isStrictRead()); else { @@ -1306,7 +2169,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args = new \metastore\ThriftHiveMetastore_get_tables_args(); $args->db_name = $db_name; $args->pattern = $pattern; - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_tables', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1322,7 +2185,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_tables() { - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_tables_result', $this->input_->isStrictRead()); else { @@ -1360,7 +2223,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_get_all_tables_args(); $args->db_name = $db_name; - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_all_tables', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1376,7 +2239,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_all_tables() { - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_all_tables_result', $this->input_->isStrictRead()); else { @@ -1415,7 +2278,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args = new \metastore\ThriftHiveMetastore_get_table_args(); $args->dbname = $dbname; $args->tbl_name = $tbl_name; - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_table', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1431,7 +2294,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_table() { - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_table_result', $this->input_->isStrictRead()); else { @@ -1462,18 +2325,18 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("get_table failed: unknown result"); } - public function get_table_objects_by_name($dbname, $tbl_names) + public function get_table_objects_by_name($dbname, array $tbl_names) { $this->send_get_table_objects_by_name($dbname, $tbl_names); return $this->recv_get_table_objects_by_name(); } - public function send_get_table_objects_by_name($dbname, $tbl_names) + public function send_get_table_objects_by_name($dbname, array $tbl_names) { $args = new \metastore\ThriftHiveMetastore_get_table_objects_by_name_args(); $args->dbname = $dbname; $args->tbl_names = $tbl_names; - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_table_objects_by_name', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1489,7 +2352,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_table_objects_by_name() { - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_table_objects_by_name_result', $this->input_->isStrictRead()); else { @@ -1535,7 +2398,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->dbname = $dbname; $args->filter = $filter; $args->max_tables = $max_tables; - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_table_names_by_filter', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1551,7 +2414,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_table_names_by_filter() { - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_table_names_by_filter_result', $this->input_->isStrictRead()); else { @@ -1597,7 +2460,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->dbname = $dbname; $args->tbl_name = $tbl_name; $args->new_tbl = $new_tbl; - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'alter_table', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1613,7 +2476,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_alter_table() { - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_alter_table_result', $this->input_->isStrictRead()); else { @@ -1654,7 +2517,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->tbl_name = $tbl_name; $args->new_tbl = $new_tbl; $args->environment_context = $environment_context; - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'alter_table_with_environment_context', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1670,7 +2533,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_alter_table_with_environment_context() { - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_alter_table_with_environment_context_result', $this->input_->isStrictRead()); else { @@ -1711,7 +2574,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->tbl_name = $tbl_name; $args->new_tbl = $new_tbl; $args->cascade = $cascade; - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'alter_table_with_cascade', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1727,7 +2590,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_alter_table_with_cascade() { - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_alter_table_with_cascade_result', $this->input_->isStrictRead()); else { @@ -1765,7 +2628,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_add_partition_args(); $args->new_part = $new_part; - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'add_partition', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1781,7 +2644,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_add_partition() { - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_add_partition_result', $this->input_->isStrictRead()); else { @@ -1826,7 +2689,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args = new \metastore\ThriftHiveMetastore_add_partition_with_environment_context_args(); $args->new_part = $new_part; $args->environment_context = $environment_context; - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'add_partition_with_environment_context', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1842,7 +2705,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_add_partition_with_environment_context() { - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_add_partition_with_environment_context_result', $this->input_->isStrictRead()); else { @@ -1876,17 +2739,17 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("add_partition_with_environment_context failed: unknown result"); } - public function add_partitions($new_parts) + public function add_partitions(array $new_parts) { $this->send_add_partitions($new_parts); return $this->recv_add_partitions(); } - public function send_add_partitions($new_parts) + public function send_add_partitions(array $new_parts) { $args = new \metastore\ThriftHiveMetastore_add_partitions_args(); $args->new_parts = $new_parts; - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'add_partitions', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1902,7 +2765,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_add_partitions() { - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_add_partitions_result', $this->input_->isStrictRead()); else { @@ -1936,17 +2799,17 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("add_partitions failed: unknown result"); } - public function add_partitions_pspec($new_parts) + public function add_partitions_pspec(array $new_parts) { $this->send_add_partitions_pspec($new_parts); return $this->recv_add_partitions_pspec(); } - public function send_add_partitions_pspec($new_parts) + public function send_add_partitions_pspec(array $new_parts) { $args = new \metastore\ThriftHiveMetastore_add_partitions_pspec_args(); $args->new_parts = $new_parts; - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'add_partitions_pspec', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1962,7 +2825,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_add_partitions_pspec() { - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_add_partitions_pspec_result', $this->input_->isStrictRead()); else { @@ -1996,19 +2859,19 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("add_partitions_pspec failed: unknown result"); } - public function append_partition($db_name, $tbl_name, $part_vals) + public function append_partition($db_name, $tbl_name, array $part_vals) { $this->send_append_partition($db_name, $tbl_name, $part_vals); return $this->recv_append_partition(); } - public function send_append_partition($db_name, $tbl_name, $part_vals) + public function send_append_partition($db_name, $tbl_name, array $part_vals) { $args = new \metastore\ThriftHiveMetastore_append_partition_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->part_vals = $part_vals; - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'append_partition', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -2024,7 +2887,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_append_partition() { - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_append_partition_result', $this->input_->isStrictRead()); else { @@ -2068,7 +2931,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_add_partitions_req_args(); $args->request = $request; - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'add_partitions_req', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -2084,7 +2947,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_add_partitions_req() { - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_add_partitions_req_result', $this->input_->isStrictRead()); else { @@ -2118,20 +2981,20 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("add_partitions_req failed: unknown result"); } - public function append_partition_with_environment_context($db_name, $tbl_name, $part_vals, \metastore\EnvironmentContext $environment_context) + public function append_partition_with_environment_context($db_name, $tbl_name, array $part_vals, \metastore\EnvironmentContext $environment_context) { $this->send_append_partition_with_environment_context($db_name, $tbl_name, $part_vals, $environment_context); return $this->recv_append_partition_with_environment_context(); } - public function send_append_partition_with_environment_context($db_name, $tbl_name, $part_vals, \metastore\EnvironmentContext $environment_context) + public function send_append_partition_with_environment_context($db_name, $tbl_name, array $part_vals, \metastore\EnvironmentContext $environment_context) { $args = new \metastore\ThriftHiveMetastore_append_partition_with_environment_context_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->part_vals = $part_vals; $args->environment_context = $environment_context; - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'append_partition_with_environment_context', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -2147,7 +3010,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_append_partition_with_environment_context() { - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_append_partition_with_environment_context_result', $this->input_->isStrictRead()); else { @@ -2193,7 +3056,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->part_name = $part_name; - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'append_partition_by_name', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -2209,7 +3072,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_append_partition_by_name() { - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_append_partition_by_name_result', $this->input_->isStrictRead()); else { @@ -2256,7 +3119,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->tbl_name = $tbl_name; $args->part_name = $part_name; $args->environment_context = $environment_context; - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'append_partition_by_name_with_environment_context', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -2272,7 +3135,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_append_partition_by_name_with_environment_context() { - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_append_partition_by_name_with_environment_context_result', $this->input_->isStrictRead()); else { @@ -2306,20 +3169,20 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("append_partition_by_name_with_environment_context failed: unknown result"); } - public function drop_partition($db_name, $tbl_name, $part_vals, $deleteData) + public function drop_partition($db_name, $tbl_name, array $part_vals, $deleteData) { $this->send_drop_partition($db_name, $tbl_name, $part_vals, $deleteData); return $this->recv_drop_partition(); } - public function send_drop_partition($db_name, $tbl_name, $part_vals, $deleteData) + public function send_drop_partition($db_name, $tbl_name, array $part_vals, $deleteData) { $args = new \metastore\ThriftHiveMetastore_drop_partition_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->part_vals = $part_vals; $args->deleteData = $deleteData; - $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'drop_partition', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -2335,7 +3198,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_drop_partition() { - $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_drop_partition_result', $this->input_->isStrictRead()); else { @@ -2366,13 +3229,13 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("drop_partition failed: unknown result");
<TRUNCATED>
