diff --git itests/hive-unit/src/test/java/org/apache/hadoop/hive/metastore/TestHiveMetaStore.java itests/hive-unit/src/test/java/org/apache/hadoop/hive/metastore/TestHiveMetaStore.java index a96503c..7fbb67e 100644 --- itests/hive-unit/src/test/java/org/apache/hadoop/hive/metastore/TestHiveMetaStore.java +++ itests/hive-unit/src/test/java/org/apache/hadoop/hive/metastore/TestHiveMetaStore.java @@ -56,6 +56,8 @@ import org.apache.hadoop.hive.metastore.api.Order; import org.apache.hadoop.hive.metastore.api.Partition; import org.apache.hadoop.hive.metastore.api.PrincipalType; +import org.apache.hadoop.hive.metastore.api.ResourceType; +import org.apache.hadoop.hive.metastore.api.ResourceUri; import org.apache.hadoop.hive.metastore.api.SerDeInfo; import org.apache.hadoop.hive.metastore.api.SkewedInfo; import org.apache.hadoop.hive.metastore.api.StorageDescriptor; @@ -2505,7 +2507,7 @@ public void testSimpleFunction() throws Exception { createDb(dbName); - createFunction(dbName, funcName, className, owner, ownerType, createTime, funcType); + createFunction(dbName, funcName, className, owner, ownerType, createTime, funcType, null); // Try the different getters @@ -2517,6 +2519,8 @@ public void testSimpleFunction() throws Exception { assertEquals("function owner name", owner, func.getOwnerName()); assertEquals("function owner type", PrincipalType.USER, func.getOwnerType()); assertEquals("function type", funcType, func.getFunctionType()); + List resources = func.getResourceUris(); + assertTrue("function resources", resources == null || resources.size() == 0); boolean gotException = false; try { @@ -2551,7 +2555,52 @@ public void testSimpleFunction() throws Exception { } } + public void testFunctionWithResources() throws Exception { + String dbName = "test_db2"; + String funcName = "test_func"; + String className = "org.apache.hadoop.hive.ql.udf.generic.GenericUDFUpper"; + String owner = "test_owner"; + PrincipalType ownerType = PrincipalType.USER; + int createTime = (int) (System.currentTimeMillis() / 1000); + FunctionType funcType = FunctionType.JAVA; + List resList = new ArrayList(); + resList.add(new ResourceUri(ResourceType.JAR, "hdfs:///tmp/jar1.jar")); + resList.add(new ResourceUri(ResourceType.FILE, "hdfs:///tmp/file1.txt")); + resList.add(new ResourceUri(ResourceType.ARCHIVE, "hdfs:///tmp/archive1.tgz")); + + try { + cleanUp(dbName, null, null); + createDb(dbName); + + createFunction(dbName, funcName, className, owner, ownerType, createTime, funcType, resList); + + // Try the different getters + + // getFunction() + Function func = client.getFunction(dbName, funcName); + assertEquals("function db name", dbName, func.getDbName()); + assertEquals("function name", funcName, func.getFunctionName()); + assertEquals("function class name", className, func.getClassName()); + assertEquals("function owner name", owner, func.getOwnerName()); + assertEquals("function owner type", PrincipalType.USER, func.getOwnerType()); + assertEquals("function type", funcType, func.getFunctionType()); + List resources = func.getResourceUris(); + assertEquals("Resource list size", resList.size(), resources.size()); + for (ResourceUri res : resources) { + assertTrue("Matching resource " + res.getResourceType() + " " + res.getUri(), + resList.indexOf(res) >= 0); + } + + client.dropFunction(dbName, funcName); + } catch (Exception e) { + System.err.println(StringUtils.stringifyException(e)); + System.err.println("testConcurrentMetastores() failed."); + throw e; + } finally { + silentDropDatabase(dbName); + } + } /** * This method simulates another Hive metastore renaming a table, by accessing the db and @@ -2737,9 +2786,10 @@ public void testDBOwner() throws NoSuchObjectException, MetaException, TExceptio private void createFunction(String dbName, String funcName, String className, String ownerName, PrincipalType ownerType, int createTime, - org.apache.hadoop.hive.metastore.api.FunctionType functionType) throws Exception { + org.apache.hadoop.hive.metastore.api.FunctionType functionType, List resources) + throws Exception { Function func = new Function(funcName, dbName, className, - ownerName, ownerType, createTime, functionType); + ownerName, ownerType, createTime, functionType, resources); client.createFunction(func); } } diff --git itests/qtest/pom.xml itests/qtest/pom.xml index 198b2dc..e70da0f 100644 --- itests/qtest/pom.xml +++ itests/qtest/pom.xml @@ -36,8 +36,8 @@ false false - stats_counter_partitioned.q,list_bucket_dml_10.q,input16_cc.q,scriptfile1.q,scriptfile1_win.q,bucket4.q,bucketmapjoin6.q,disable_merge_for_bucketing.q,reduce_deduplicate.q,smb_mapjoin_8.q,join1.q,groupby2.q,bucketizedhiveinputformat.q,bucketmapjoin7.q,optrstat_groupby.q,bucket_num_reducers.q,bucket5.q,load_fs2.q,bucket_num_reducers2.q,infer_bucket_sort_merge.q,infer_bucket_sort_reducers_power_two.q,infer_bucket_sort_dyn_part.q,infer_bucket_sort_bucketed_table.q,infer_bucket_sort_map_operators.q,infer_bucket_sort_num_buckets.q,leftsemijoin_mr.q,schemeAuthority.q,schemeAuthority2.q,truncate_column_buckets.q,remote_script.q,,load_hdfs_file_with_space_in_the_name.q,parallel_orderby.q,import_exported_table.q,stats_counter.q,auto_sortmerge_join_16.q,quotedid_smb.q,file_with_header_footer.q,external_table_with_space_in_location_path.q,root_dir_external_table.q,index_bitmap3.q,ql_rewrite_gbtoidx.q,index_bitmap_auto.q - cluster_tasklog_retrieval.q,minimr_broken_pipe.q,mapreduce_stack_trace.q,mapreduce_stack_trace_turnoff.q,mapreduce_stack_trace_hadoop20.q,mapreduce_stack_trace_turnoff_hadoop20.q,file_with_header_footer_negative.q + stats_counter_partitioned.q,list_bucket_dml_10.q,input16_cc.q,scriptfile1.q,scriptfile1_win.q,bucket4.q,bucketmapjoin6.q,disable_merge_for_bucketing.q,reduce_deduplicate.q,smb_mapjoin_8.q,join1.q,groupby2.q,bucketizedhiveinputformat.q,bucketmapjoin7.q,optrstat_groupby.q,bucket_num_reducers.q,bucket5.q,load_fs2.q,bucket_num_reducers2.q,infer_bucket_sort_merge.q,infer_bucket_sort_reducers_power_two.q,infer_bucket_sort_dyn_part.q,infer_bucket_sort_bucketed_table.q,infer_bucket_sort_map_operators.q,infer_bucket_sort_num_buckets.q,leftsemijoin_mr.q,schemeAuthority.q,schemeAuthority2.q,truncate_column_buckets.q,remote_script.q,,load_hdfs_file_with_space_in_the_name.q,parallel_orderby.q,import_exported_table.q,stats_counter.q,auto_sortmerge_join_16.q,quotedid_smb.q,file_with_header_footer.q,external_table_with_space_in_location_path.q,root_dir_external_table.q,index_bitmap3.q,ql_rewrite_gbtoidx.q,index_bitmap_auto.q,udf_using.q + cluster_tasklog_retrieval.q,minimr_broken_pipe.q,mapreduce_stack_trace.q,mapreduce_stack_trace_turnoff.q,mapreduce_stack_trace_hadoop20.q,mapreduce_stack_trace_turnoff_hadoop20.q,file_with_header_footer_negative.q,udf_local_resource.q tez_join_tests.q,tez_joins_explain.q,mrr.q,tez_dml.q,tez_insert_overwrite_local_directory_1.q join0.q,join1.q,auto_join0.q,auto_join1.q,bucket2.q,bucket3.q,bucket4.q,count.q,create_merge_compressed.q,cross_join.q,ctas.q,custom_input_output_format.q,disable_merge_for_bucketing.q,enforce_order.q,filter_join_breaktask.q,filter_join_breaktask2.q,groupby1.q,groupby2.q,groupby3.q,having.q,insert1.q,insert_into1.q,insert_into2.q,leftsemijoin.q,limit_pushdown.q,load_dyn_part1.q,load_dyn_part2.q,load_dyn_part3.q,mapjoin_mapjoin.q,mapreduce1.q,mapreduce2.q,merge1.q,merge2.q,metadata_only_queries.q,sample1.q,subquery_in.q,subquery_exists.q,vectorization_15.q,ptf.q,stats_counter.q,stats_noscan_1.q,stats_counter_partitioned.q add_part_exist.q,alter1.q,alter2.q,alter4.q,alter5.q,alter_rename_partition.q,alter_rename_partition_authorization.q,archive.q,archive_corrupt.q,archive_multi.q,archive_mr_1806.q,archive_multi_mr_1806.q,authorization_1.q,authorization_2.q,authorization_4.q,authorization_5.q,authorization_6.q,authorization_7.q,ba_table1.q,ba_table2.q,ba_table3.q,ba_table_udfs.q,binary_table_bincolserde.q,binary_table_colserde.q,cluster.q,columnarserde_create_shortcut.q,combine2.q,constant_prop.q,create_nested_type.q,create_or_replace_view.q,create_struct_table.q,create_union_table.q,database.q,database_location.q,database_properties.q,ddltime.q,describe_database_json.q,drop_database_removes_partition_dirs.q,escape1.q,escape2.q,exim_00_nonpart_empty.q,exim_01_nonpart.q,exim_02_00_part_empty.q,exim_02_part.q,exim_03_nonpart_over_compat.q,exim_04_all_part.q,exim_04_evolved_parts.q,exim_05_some_part.q,exim_06_one_part.q,exim_07_all_part_over_nonoverlap.q,exim_08_nonpart_rename.q,exim_09_part_spec_nonoverlap.q,exim_10_external_managed.q,exim_11_managed_external.q,exim_12_external_location.q,exim_13_managed_location.q,exim_14_managed_location_over_existing.q,exim_15_external_part.q,exim_16_part_external.q,exim_17_part_managed.q,exim_18_part_external.q,exim_19_00_part_external_location.q,exim_19_part_external_location.q,exim_20_part_managed_location.q,exim_21_export_authsuccess.q,exim_22_import_exist_authsuccess.q,exim_23_import_part_authsuccess.q,exim_24_import_nonexist_authsuccess.q,global_limit.q,groupby_complex_types.q,groupby_complex_types_multi_single_reducer.q,index_auth.q,index_auto.q,index_auto_empty.q,index_bitmap.q,index_bitmap1.q,index_bitmap2.q,index_bitmap3.q,index_bitmap_auto.q,index_bitmap_rc.q,index_compact.q,index_compact_1.q,index_compact_2.q,index_compact_3.q,index_stale_partitioned.q,init_file.q,input16.q,input16_cc.q,input46.q,input_columnarserde.q,input_dynamicserde.q,input_lazyserde.q,input_testxpath3.q,input_testxpath4.q,insert2_overwrite_partitions.q,insertexternal1.q,join_thrift.q,lateral_view.q,load_binary_data.q,load_exist_part_authsuccess.q,load_nonpart_authsuccess.q,load_part_authsuccess.q,loadpart_err.q,lock1.q,lock2.q,lock3.q,lock4.q,merge_dynamic_partition.q,multi_insert.q,multi_insert_move_tasks_share_dependencies.q,null_column.q,ppd_clusterby.q,query_with_semi.q,rename_column.q,sample6.q,sample_islocalmode_hook.q,set_processor_namespaces.q,show_tables.q,source.q,split_sample.q,str_to_map.q,transform1.q,udaf_collect_set.q,udaf_context_ngrams.q,udaf_histogram_numeric.q,udaf_ngrams.q,udaf_percentile_approx.q,udf_array.q,udf_bitmap_and.q,udf_bitmap_or.q,udf_explode.q,udf_format_number.q,udf_map.q,udf_map_keys.q,udf_map_values.q,udf_max.q,udf_min.q,udf_named_struct.q,udf_percentile.q,udf_printf.q,udf_sentences.q,udf_sort_array.q,udf_split.q,udf_struct.q,udf_substr.q,udf_translate.q,udf_union.q,udf_xpath.q,udtf_stack.q,view.q,virtual_column.q diff --git itests/util/src/main/java/org/apache/hadoop/hive/ql/udf/UDFFileLookup.java itests/util/src/main/java/org/apache/hadoop/hive/ql/udf/UDFFileLookup.java new file mode 100644 index 0000000..61c7e0c --- /dev/null +++ itests/util/src/main/java/org/apache/hadoop/hive/ql/udf/UDFFileLookup.java @@ -0,0 +1,71 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.hadoop.hive.ql.udf; + +import java.io.BufferedReader; +import java.io.File; +import java.io.FileReader; +import java.util.HashMap; +import java.util.Map; + +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; + +import org.apache.hadoop.hive.ql.exec.UDF; +import org.apache.hadoop.io.IntWritable; +import org.apache.hadoop.io.Text; + +/** + * A UDF for testing, which does key/value lookup from a file + */ +public class UDFFileLookup extends UDF { + static Log LOG = LogFactory.getLog(UDFFileLookup.class); + + IntWritable result = new IntWritable(); + + static Map data = null; + + private static void loadData() throws Exception { + // sales.txt will need to be added as a resource. + File file = new File("./sales.txt"); + BufferedReader br = new BufferedReader(new FileReader(file)); + data = new HashMap(); + String line = br.readLine(); + while (line != null) { + String[] parts = line.split("\t", 2); + if (parts.length == 2) { + data.put(parts[0], Integer.valueOf(parts[1])); + } + line = br.readLine(); + } + br.close(); + } + + public IntWritable evaluate(Text s) throws Exception { + if (data == null) { + loadData(); + } + Integer val = data.get(s.toString()); + if (val == null) { + return null; + } + result.set(val.intValue()); + return result; + } +} diff --git metastore/if/hive_metastore.thrift metastore/if/hive_metastore.thrift index a8d95ca..58b2357 100755 --- metastore/if/hive_metastore.thrift +++ metastore/if/hive_metastore.thrift @@ -360,6 +360,17 @@ enum FunctionType { JAVA = 1, } +enum ResourceType { + JAR = 1, + FILE = 2, + ARCHIVE = 3, +} + +struct ResourceUri { + 1: ResourceType resourceType, + 2: string uri, +} + // User-defined function struct Function { 1: string functionName, @@ -369,6 +380,7 @@ struct Function { 5: PrincipalType ownerType, 6: i32 createTime, 7: FunctionType functionType, + 8: list resourceUris, } exception MetaException { diff --git metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp index f60090c..8998182 100644 --- metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp +++ metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp @@ -736,14 +736,14 @@ uint32_t ThriftHiveMetastore_get_databases_result::read(::apache::thrift::protoc if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size278; - ::apache::thrift::protocol::TType _etype281; - xfer += iprot->readListBegin(_etype281, _size278); - this->success.resize(_size278); - uint32_t _i282; - for (_i282 = 0; _i282 < _size278; ++_i282) + uint32_t _size285; + ::apache::thrift::protocol::TType _etype288; + xfer += iprot->readListBegin(_etype288, _size285); + this->success.resize(_size285); + uint32_t _i289; + for (_i289 = 0; _i289 < _size285; ++_i289) { - xfer += iprot->readString(this->success[_i282]); + xfer += iprot->readString(this->success[_i289]); } xfer += iprot->readListEnd(); } @@ -782,10 +782,10 @@ uint32_t ThriftHiveMetastore_get_databases_result::write(::apache::thrift::proto xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter283; - for (_iter283 = this->success.begin(); _iter283 != this->success.end(); ++_iter283) + std::vector ::const_iterator _iter290; + for (_iter290 = this->success.begin(); _iter290 != this->success.end(); ++_iter290) { - xfer += oprot->writeString((*_iter283)); + xfer += oprot->writeString((*_iter290)); } xfer += oprot->writeListEnd(); } @@ -824,14 +824,14 @@ uint32_t ThriftHiveMetastore_get_databases_presult::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size284; - ::apache::thrift::protocol::TType _etype287; - xfer += iprot->readListBegin(_etype287, _size284); - (*(this->success)).resize(_size284); - uint32_t _i288; - for (_i288 = 0; _i288 < _size284; ++_i288) + uint32_t _size291; + ::apache::thrift::protocol::TType _etype294; + xfer += iprot->readListBegin(_etype294, _size291); + (*(this->success)).resize(_size291); + uint32_t _i295; + for (_i295 = 0; _i295 < _size291; ++_i295) { - xfer += iprot->readString((*(this->success))[_i288]); + xfer += iprot->readString((*(this->success))[_i295]); } xfer += iprot->readListEnd(); } @@ -929,14 +929,14 @@ uint32_t ThriftHiveMetastore_get_all_databases_result::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size289; - ::apache::thrift::protocol::TType _etype292; - xfer += iprot->readListBegin(_etype292, _size289); - this->success.resize(_size289); - uint32_t _i293; - for (_i293 = 0; _i293 < _size289; ++_i293) + uint32_t _size296; + ::apache::thrift::protocol::TType _etype299; + xfer += iprot->readListBegin(_etype299, _size296); + this->success.resize(_size296); + uint32_t _i300; + for (_i300 = 0; _i300 < _size296; ++_i300) { - xfer += iprot->readString(this->success[_i293]); + xfer += iprot->readString(this->success[_i300]); } xfer += iprot->readListEnd(); } @@ -975,10 +975,10 @@ uint32_t ThriftHiveMetastore_get_all_databases_result::write(::apache::thrift::p xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter294; - for (_iter294 = this->success.begin(); _iter294 != this->success.end(); ++_iter294) + std::vector ::const_iterator _iter301; + for (_iter301 = this->success.begin(); _iter301 != this->success.end(); ++_iter301) { - xfer += oprot->writeString((*_iter294)); + xfer += oprot->writeString((*_iter301)); } xfer += oprot->writeListEnd(); } @@ -1017,14 +1017,14 @@ uint32_t ThriftHiveMetastore_get_all_databases_presult::read(::apache::thrift::p if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size295; - ::apache::thrift::protocol::TType _etype298; - xfer += iprot->readListBegin(_etype298, _size295); - (*(this->success)).resize(_size295); - uint32_t _i299; - for (_i299 = 0; _i299 < _size295; ++_i299) + uint32_t _size302; + ::apache::thrift::protocol::TType _etype305; + xfer += iprot->readListBegin(_etype305, _size302); + (*(this->success)).resize(_size302); + uint32_t _i306; + for (_i306 = 0; _i306 < _size302; ++_i306) { - xfer += iprot->readString((*(this->success))[_i299]); + xfer += iprot->readString((*(this->success))[_i306]); } xfer += iprot->readListEnd(); } @@ -1967,17 +1967,17 @@ uint32_t ThriftHiveMetastore_get_type_all_result::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_MAP) { { this->success.clear(); - uint32_t _size300; - ::apache::thrift::protocol::TType _ktype301; - ::apache::thrift::protocol::TType _vtype302; - xfer += iprot->readMapBegin(_ktype301, _vtype302, _size300); - uint32_t _i304; - for (_i304 = 0; _i304 < _size300; ++_i304) + uint32_t _size307; + ::apache::thrift::protocol::TType _ktype308; + ::apache::thrift::protocol::TType _vtype309; + xfer += iprot->readMapBegin(_ktype308, _vtype309, _size307); + uint32_t _i311; + for (_i311 = 0; _i311 < _size307; ++_i311) { - std::string _key305; - xfer += iprot->readString(_key305); - Type& _val306 = this->success[_key305]; - xfer += _val306.read(iprot); + std::string _key312; + xfer += iprot->readString(_key312); + Type& _val313 = this->success[_key312]; + xfer += _val313.read(iprot); } xfer += iprot->readMapEnd(); } @@ -2016,11 +2016,11 @@ uint32_t ThriftHiveMetastore_get_type_all_result::write(::apache::thrift::protoc xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::map ::const_iterator _iter307; - for (_iter307 = this->success.begin(); _iter307 != this->success.end(); ++_iter307) + std::map ::const_iterator _iter314; + for (_iter314 = this->success.begin(); _iter314 != this->success.end(); ++_iter314) { - xfer += oprot->writeString(_iter307->first); - xfer += _iter307->second.write(oprot); + xfer += oprot->writeString(_iter314->first); + xfer += _iter314->second.write(oprot); } xfer += oprot->writeMapEnd(); } @@ -2059,17 +2059,17 @@ uint32_t ThriftHiveMetastore_get_type_all_presult::read(::apache::thrift::protoc if (ftype == ::apache::thrift::protocol::T_MAP) { { (*(this->success)).clear(); - uint32_t _size308; - ::apache::thrift::protocol::TType _ktype309; - ::apache::thrift::protocol::TType _vtype310; - xfer += iprot->readMapBegin(_ktype309, _vtype310, _size308); - uint32_t _i312; - for (_i312 = 0; _i312 < _size308; ++_i312) + uint32_t _size315; + ::apache::thrift::protocol::TType _ktype316; + ::apache::thrift::protocol::TType _vtype317; + xfer += iprot->readMapBegin(_ktype316, _vtype317, _size315); + uint32_t _i319; + for (_i319 = 0; _i319 < _size315; ++_i319) { - std::string _key313; - xfer += iprot->readString(_key313); - Type& _val314 = (*(this->success))[_key313]; - xfer += _val314.read(iprot); + std::string _key320; + xfer += iprot->readString(_key320); + Type& _val321 = (*(this->success))[_key320]; + xfer += _val321.read(iprot); } xfer += iprot->readMapEnd(); } @@ -2204,14 +2204,14 @@ uint32_t ThriftHiveMetastore_get_fields_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size315; - ::apache::thrift::protocol::TType _etype318; - xfer += iprot->readListBegin(_etype318, _size315); - this->success.resize(_size315); - uint32_t _i319; - for (_i319 = 0; _i319 < _size315; ++_i319) + uint32_t _size322; + ::apache::thrift::protocol::TType _etype325; + xfer += iprot->readListBegin(_etype325, _size322); + this->success.resize(_size322); + uint32_t _i326; + for (_i326 = 0; _i326 < _size322; ++_i326) { - xfer += this->success[_i319].read(iprot); + xfer += this->success[_i326].read(iprot); } xfer += iprot->readListEnd(); } @@ -2266,10 +2266,10 @@ uint32_t ThriftHiveMetastore_get_fields_result::write(::apache::thrift::protocol xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter320; - for (_iter320 = this->success.begin(); _iter320 != this->success.end(); ++_iter320) + std::vector ::const_iterator _iter327; + for (_iter327 = this->success.begin(); _iter327 != this->success.end(); ++_iter327) { - xfer += (*_iter320).write(oprot); + xfer += (*_iter327).write(oprot); } xfer += oprot->writeListEnd(); } @@ -2316,14 +2316,14 @@ uint32_t ThriftHiveMetastore_get_fields_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size321; - ::apache::thrift::protocol::TType _etype324; - xfer += iprot->readListBegin(_etype324, _size321); - (*(this->success)).resize(_size321); - uint32_t _i325; - for (_i325 = 0; _i325 < _size321; ++_i325) + uint32_t _size328; + ::apache::thrift::protocol::TType _etype331; + xfer += iprot->readListBegin(_etype331, _size328); + (*(this->success)).resize(_size328); + uint32_t _i332; + for (_i332 = 0; _i332 < _size328; ++_i332) { - xfer += (*(this->success))[_i325].read(iprot); + xfer += (*(this->success))[_i332].read(iprot); } xfer += iprot->readListEnd(); } @@ -2474,14 +2474,14 @@ uint32_t ThriftHiveMetastore_get_schema_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size326; - ::apache::thrift::protocol::TType _etype329; - xfer += iprot->readListBegin(_etype329, _size326); - this->success.resize(_size326); - uint32_t _i330; - for (_i330 = 0; _i330 < _size326; ++_i330) + uint32_t _size333; + ::apache::thrift::protocol::TType _etype336; + xfer += iprot->readListBegin(_etype336, _size333); + this->success.resize(_size333); + uint32_t _i337; + for (_i337 = 0; _i337 < _size333; ++_i337) { - xfer += this->success[_i330].read(iprot); + xfer += this->success[_i337].read(iprot); } xfer += iprot->readListEnd(); } @@ -2536,10 +2536,10 @@ uint32_t ThriftHiveMetastore_get_schema_result::write(::apache::thrift::protocol xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter331; - for (_iter331 = this->success.begin(); _iter331 != this->success.end(); ++_iter331) + std::vector ::const_iterator _iter338; + for (_iter338 = this->success.begin(); _iter338 != this->success.end(); ++_iter338) { - xfer += (*_iter331).write(oprot); + xfer += (*_iter338).write(oprot); } xfer += oprot->writeListEnd(); } @@ -2586,14 +2586,14 @@ uint32_t ThriftHiveMetastore_get_schema_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size332; - ::apache::thrift::protocol::TType _etype335; - xfer += iprot->readListBegin(_etype335, _size332); - (*(this->success)).resize(_size332); - uint32_t _i336; - for (_i336 = 0; _i336 < _size332; ++_i336) + uint32_t _size339; + ::apache::thrift::protocol::TType _etype342; + xfer += iprot->readListBegin(_etype342, _size339); + (*(this->success)).resize(_size339); + uint32_t _i343; + for (_i343 = 0; _i343 < _size339; ++_i343) { - xfer += (*(this->success))[_i336].read(iprot); + xfer += (*(this->success))[_i343].read(iprot); } xfer += iprot->readListEnd(); } @@ -3648,14 +3648,14 @@ uint32_t ThriftHiveMetastore_get_tables_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size337; - ::apache::thrift::protocol::TType _etype340; - xfer += iprot->readListBegin(_etype340, _size337); - this->success.resize(_size337); - uint32_t _i341; - for (_i341 = 0; _i341 < _size337; ++_i341) + uint32_t _size344; + ::apache::thrift::protocol::TType _etype347; + xfer += iprot->readListBegin(_etype347, _size344); + this->success.resize(_size344); + uint32_t _i348; + for (_i348 = 0; _i348 < _size344; ++_i348) { - xfer += iprot->readString(this->success[_i341]); + xfer += iprot->readString(this->success[_i348]); } xfer += iprot->readListEnd(); } @@ -3694,10 +3694,10 @@ uint32_t ThriftHiveMetastore_get_tables_result::write(::apache::thrift::protocol xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter342; - for (_iter342 = this->success.begin(); _iter342 != this->success.end(); ++_iter342) + std::vector ::const_iterator _iter349; + for (_iter349 = this->success.begin(); _iter349 != this->success.end(); ++_iter349) { - xfer += oprot->writeString((*_iter342)); + xfer += oprot->writeString((*_iter349)); } xfer += oprot->writeListEnd(); } @@ -3736,14 +3736,14 @@ uint32_t ThriftHiveMetastore_get_tables_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size343; - ::apache::thrift::protocol::TType _etype346; - xfer += iprot->readListBegin(_etype346, _size343); - (*(this->success)).resize(_size343); - uint32_t _i347; - for (_i347 = 0; _i347 < _size343; ++_i347) + uint32_t _size350; + ::apache::thrift::protocol::TType _etype353; + xfer += iprot->readListBegin(_etype353, _size350); + (*(this->success)).resize(_size350); + uint32_t _i354; + for (_i354 = 0; _i354 < _size350; ++_i354) { - xfer += iprot->readString((*(this->success))[_i347]); + xfer += iprot->readString((*(this->success))[_i354]); } xfer += iprot->readListEnd(); } @@ -3862,14 +3862,14 @@ uint32_t ThriftHiveMetastore_get_all_tables_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size348; - ::apache::thrift::protocol::TType _etype351; - xfer += iprot->readListBegin(_etype351, _size348); - this->success.resize(_size348); - uint32_t _i352; - for (_i352 = 0; _i352 < _size348; ++_i352) + uint32_t _size355; + ::apache::thrift::protocol::TType _etype358; + xfer += iprot->readListBegin(_etype358, _size355); + this->success.resize(_size355); + uint32_t _i359; + for (_i359 = 0; _i359 < _size355; ++_i359) { - xfer += iprot->readString(this->success[_i352]); + xfer += iprot->readString(this->success[_i359]); } xfer += iprot->readListEnd(); } @@ -3908,10 +3908,10 @@ uint32_t ThriftHiveMetastore_get_all_tables_result::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter353; - for (_iter353 = this->success.begin(); _iter353 != this->success.end(); ++_iter353) + std::vector ::const_iterator _iter360; + for (_iter360 = this->success.begin(); _iter360 != this->success.end(); ++_iter360) { - xfer += oprot->writeString((*_iter353)); + xfer += oprot->writeString((*_iter360)); } xfer += oprot->writeListEnd(); } @@ -3950,14 +3950,14 @@ uint32_t ThriftHiveMetastore_get_all_tables_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size354; - ::apache::thrift::protocol::TType _etype357; - xfer += iprot->readListBegin(_etype357, _size354); - (*(this->success)).resize(_size354); - uint32_t _i358; - for (_i358 = 0; _i358 < _size354; ++_i358) + uint32_t _size361; + ::apache::thrift::protocol::TType _etype364; + xfer += iprot->readListBegin(_etype364, _size361); + (*(this->success)).resize(_size361); + uint32_t _i365; + for (_i365 = 0; _i365 < _size361; ++_i365) { - xfer += iprot->readString((*(this->success))[_i358]); + xfer += iprot->readString((*(this->success))[_i365]); } xfer += iprot->readListEnd(); } @@ -4236,14 +4236,14 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_args::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tbl_names.clear(); - uint32_t _size359; - ::apache::thrift::protocol::TType _etype362; - xfer += iprot->readListBegin(_etype362, _size359); - this->tbl_names.resize(_size359); - uint32_t _i363; - for (_i363 = 0; _i363 < _size359; ++_i363) + uint32_t _size366; + ::apache::thrift::protocol::TType _etype369; + xfer += iprot->readListBegin(_etype369, _size366); + this->tbl_names.resize(_size366); + uint32_t _i370; + for (_i370 = 0; _i370 < _size366; ++_i370) { - xfer += iprot->readString(this->tbl_names[_i363]); + xfer += iprot->readString(this->tbl_names[_i370]); } xfer += iprot->readListEnd(); } @@ -4275,10 +4275,10 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_args::write(::apache::thr xfer += oprot->writeFieldBegin("tbl_names", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->tbl_names.size())); - std::vector ::const_iterator _iter364; - for (_iter364 = this->tbl_names.begin(); _iter364 != this->tbl_names.end(); ++_iter364) + std::vector ::const_iterator _iter371; + for (_iter371 = this->tbl_names.begin(); _iter371 != this->tbl_names.end(); ++_iter371) { - xfer += oprot->writeString((*_iter364)); + xfer += oprot->writeString((*_iter371)); } xfer += oprot->writeListEnd(); } @@ -4300,10 +4300,10 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_pargs::write(::apache::th xfer += oprot->writeFieldBegin("tbl_names", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->tbl_names)).size())); - std::vector ::const_iterator _iter365; - for (_iter365 = (*(this->tbl_names)).begin(); _iter365 != (*(this->tbl_names)).end(); ++_iter365) + std::vector ::const_iterator _iter372; + for (_iter372 = (*(this->tbl_names)).begin(); _iter372 != (*(this->tbl_names)).end(); ++_iter372) { - xfer += oprot->writeString((*_iter365)); + xfer += oprot->writeString((*_iter372)); } xfer += oprot->writeListEnd(); } @@ -4338,14 +4338,14 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_result::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size366; - ::apache::thrift::protocol::TType _etype369; - xfer += iprot->readListBegin(_etype369, _size366); - this->success.resize(_size366); - uint32_t _i370; - for (_i370 = 0; _i370 < _size366; ++_i370) + uint32_t _size373; + ::apache::thrift::protocol::TType _etype376; + xfer += iprot->readListBegin(_etype376, _size373); + this->success.resize(_size373); + uint32_t _i377; + for (_i377 = 0; _i377 < _size373; ++_i377) { - xfer += this->success[_i370].read(iprot); + xfer += this->success[_i377].read(iprot); } xfer += iprot->readListEnd(); } @@ -4400,10 +4400,10 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_result::write(::apache::t xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter371; - for (_iter371 = this->success.begin(); _iter371 != this->success.end(); ++_iter371) + std::vector
::const_iterator _iter378; + for (_iter378 = this->success.begin(); _iter378 != this->success.end(); ++_iter378) { - xfer += (*_iter371).write(oprot); + xfer += (*_iter378).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4450,14 +4450,14 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_presult::read(::apache::t if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size372; - ::apache::thrift::protocol::TType _etype375; - xfer += iprot->readListBegin(_etype375, _size372); - (*(this->success)).resize(_size372); - uint32_t _i376; - for (_i376 = 0; _i376 < _size372; ++_i376) + uint32_t _size379; + ::apache::thrift::protocol::TType _etype382; + xfer += iprot->readListBegin(_etype382, _size379); + (*(this->success)).resize(_size379); + uint32_t _i383; + for (_i383 = 0; _i383 < _size379; ++_i383) { - xfer += (*(this->success))[_i376].read(iprot); + xfer += (*(this->success))[_i383].read(iprot); } xfer += iprot->readListEnd(); } @@ -4624,14 +4624,14 @@ uint32_t ThriftHiveMetastore_get_table_names_by_filter_result::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size377; - ::apache::thrift::protocol::TType _etype380; - xfer += iprot->readListBegin(_etype380, _size377); - this->success.resize(_size377); - uint32_t _i381; - for (_i381 = 0; _i381 < _size377; ++_i381) + uint32_t _size384; + ::apache::thrift::protocol::TType _etype387; + xfer += iprot->readListBegin(_etype387, _size384); + this->success.resize(_size384); + uint32_t _i388; + for (_i388 = 0; _i388 < _size384; ++_i388) { - xfer += iprot->readString(this->success[_i381]); + xfer += iprot->readString(this->success[_i388]); } xfer += iprot->readListEnd(); } @@ -4686,10 +4686,10 @@ uint32_t ThriftHiveMetastore_get_table_names_by_filter_result::write(::apache::t xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter382; - for (_iter382 = this->success.begin(); _iter382 != this->success.end(); ++_iter382) + std::vector ::const_iterator _iter389; + for (_iter389 = this->success.begin(); _iter389 != this->success.end(); ++_iter389) { - xfer += oprot->writeString((*_iter382)); + xfer += oprot->writeString((*_iter389)); } xfer += oprot->writeListEnd(); } @@ -4736,14 +4736,14 @@ uint32_t ThriftHiveMetastore_get_table_names_by_filter_presult::read(::apache::t if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size383; - ::apache::thrift::protocol::TType _etype386; - xfer += iprot->readListBegin(_etype386, _size383); - (*(this->success)).resize(_size383); - uint32_t _i387; - for (_i387 = 0; _i387 < _size383; ++_i387) + uint32_t _size390; + ::apache::thrift::protocol::TType _etype393; + xfer += iprot->readListBegin(_etype393, _size390); + (*(this->success)).resize(_size390); + uint32_t _i394; + for (_i394 = 0; _i394 < _size390; ++_i394) { - xfer += iprot->readString((*(this->success))[_i387]); + xfer += iprot->readString((*(this->success))[_i394]); } xfer += iprot->readListEnd(); } @@ -5716,14 +5716,14 @@ uint32_t ThriftHiveMetastore_add_partitions_args::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size388; - ::apache::thrift::protocol::TType _etype391; - xfer += iprot->readListBegin(_etype391, _size388); - this->new_parts.resize(_size388); - uint32_t _i392; - for (_i392 = 0; _i392 < _size388; ++_i392) + uint32_t _size395; + ::apache::thrift::protocol::TType _etype398; + xfer += iprot->readListBegin(_etype398, _size395); + this->new_parts.resize(_size395); + uint32_t _i399; + for (_i399 = 0; _i399 < _size395; ++_i399) { - xfer += this->new_parts[_i392].read(iprot); + xfer += this->new_parts[_i399].read(iprot); } xfer += iprot->readListEnd(); } @@ -5751,10 +5751,10 @@ uint32_t ThriftHiveMetastore_add_partitions_args::write(::apache::thrift::protoc xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->new_parts.size())); - std::vector ::const_iterator _iter393; - for (_iter393 = this->new_parts.begin(); _iter393 != this->new_parts.end(); ++_iter393) + std::vector ::const_iterator _iter400; + for (_iter400 = this->new_parts.begin(); _iter400 != this->new_parts.end(); ++_iter400) { - xfer += (*_iter393).write(oprot); + xfer += (*_iter400).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5772,10 +5772,10 @@ uint32_t ThriftHiveMetastore_add_partitions_pargs::write(::apache::thrift::proto xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*(this->new_parts)).size())); - std::vector ::const_iterator _iter394; - for (_iter394 = (*(this->new_parts)).begin(); _iter394 != (*(this->new_parts)).end(); ++_iter394) + std::vector ::const_iterator _iter401; + for (_iter401 = (*(this->new_parts)).begin(); _iter401 != (*(this->new_parts)).end(); ++_iter401) { - xfer += (*_iter394).write(oprot); + xfer += (*_iter401).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5982,14 +5982,14 @@ uint32_t ThriftHiveMetastore_append_partition_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size395; - ::apache::thrift::protocol::TType _etype398; - xfer += iprot->readListBegin(_etype398, _size395); - this->part_vals.resize(_size395); - uint32_t _i399; - for (_i399 = 0; _i399 < _size395; ++_i399) + uint32_t _size402; + ::apache::thrift::protocol::TType _etype405; + xfer += iprot->readListBegin(_etype405, _size402); + this->part_vals.resize(_size402); + uint32_t _i406; + for (_i406 = 0; _i406 < _size402; ++_i406) { - xfer += iprot->readString(this->part_vals[_i399]); + xfer += iprot->readString(this->part_vals[_i406]); } xfer += iprot->readListEnd(); } @@ -6025,10 +6025,10 @@ uint32_t ThriftHiveMetastore_append_partition_args::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter400; - for (_iter400 = this->part_vals.begin(); _iter400 != this->part_vals.end(); ++_iter400) + std::vector ::const_iterator _iter407; + for (_iter407 = this->part_vals.begin(); _iter407 != this->part_vals.end(); ++_iter407) { - xfer += oprot->writeString((*_iter400)); + xfer += oprot->writeString((*_iter407)); } xfer += oprot->writeListEnd(); } @@ -6054,10 +6054,10 @@ uint32_t ThriftHiveMetastore_append_partition_pargs::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter401; - for (_iter401 = (*(this->part_vals)).begin(); _iter401 != (*(this->part_vals)).end(); ++_iter401) + std::vector ::const_iterator _iter408; + for (_iter408 = (*(this->part_vals)).begin(); _iter408 != (*(this->part_vals)).end(); ++_iter408) { - xfer += oprot->writeString((*_iter401)); + xfer += oprot->writeString((*_iter408)); } xfer += oprot->writeListEnd(); } @@ -6486,14 +6486,14 @@ uint32_t ThriftHiveMetastore_append_partition_with_environment_context_args::rea if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size402; - ::apache::thrift::protocol::TType _etype405; - xfer += iprot->readListBegin(_etype405, _size402); - this->part_vals.resize(_size402); - uint32_t _i406; - for (_i406 = 0; _i406 < _size402; ++_i406) + uint32_t _size409; + ::apache::thrift::protocol::TType _etype412; + xfer += iprot->readListBegin(_etype412, _size409); + this->part_vals.resize(_size409); + uint32_t _i413; + for (_i413 = 0; _i413 < _size409; ++_i413) { - xfer += iprot->readString(this->part_vals[_i406]); + xfer += iprot->readString(this->part_vals[_i413]); } xfer += iprot->readListEnd(); } @@ -6537,10 +6537,10 @@ uint32_t ThriftHiveMetastore_append_partition_with_environment_context_args::wri xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter407; - for (_iter407 = this->part_vals.begin(); _iter407 != this->part_vals.end(); ++_iter407) + std::vector ::const_iterator _iter414; + for (_iter414 = this->part_vals.begin(); _iter414 != this->part_vals.end(); ++_iter414) { - xfer += oprot->writeString((*_iter407)); + xfer += oprot->writeString((*_iter414)); } xfer += oprot->writeListEnd(); } @@ -6570,10 +6570,10 @@ uint32_t ThriftHiveMetastore_append_partition_with_environment_context_pargs::wr xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter408; - for (_iter408 = (*(this->part_vals)).begin(); _iter408 != (*(this->part_vals)).end(); ++_iter408) + std::vector ::const_iterator _iter415; + for (_iter415 = (*(this->part_vals)).begin(); _iter415 != (*(this->part_vals)).end(); ++_iter415) { - xfer += oprot->writeString((*_iter408)); + xfer += oprot->writeString((*_iter415)); } xfer += oprot->writeListEnd(); } @@ -7308,14 +7308,14 @@ uint32_t ThriftHiveMetastore_drop_partition_args::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size409; - ::apache::thrift::protocol::TType _etype412; - xfer += iprot->readListBegin(_etype412, _size409); - this->part_vals.resize(_size409); - uint32_t _i413; - for (_i413 = 0; _i413 < _size409; ++_i413) + uint32_t _size416; + ::apache::thrift::protocol::TType _etype419; + xfer += iprot->readListBegin(_etype419, _size416); + this->part_vals.resize(_size416); + uint32_t _i420; + for (_i420 = 0; _i420 < _size416; ++_i420) { - xfer += iprot->readString(this->part_vals[_i413]); + xfer += iprot->readString(this->part_vals[_i420]); } xfer += iprot->readListEnd(); } @@ -7359,10 +7359,10 @@ uint32_t ThriftHiveMetastore_drop_partition_args::write(::apache::thrift::protoc xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter414; - for (_iter414 = this->part_vals.begin(); _iter414 != this->part_vals.end(); ++_iter414) + std::vector ::const_iterator _iter421; + for (_iter421 = this->part_vals.begin(); _iter421 != this->part_vals.end(); ++_iter421) { - xfer += oprot->writeString((*_iter414)); + xfer += oprot->writeString((*_iter421)); } xfer += oprot->writeListEnd(); } @@ -7392,10 +7392,10 @@ uint32_t ThriftHiveMetastore_drop_partition_pargs::write(::apache::thrift::proto xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter415; - for (_iter415 = (*(this->part_vals)).begin(); _iter415 != (*(this->part_vals)).end(); ++_iter415) + std::vector ::const_iterator _iter422; + for (_iter422 = (*(this->part_vals)).begin(); _iter422 != (*(this->part_vals)).end(); ++_iter422) { - xfer += oprot->writeString((*_iter415)); + xfer += oprot->writeString((*_iter422)); } xfer += oprot->writeListEnd(); } @@ -7586,14 +7586,14 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_args::read( if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size416; - ::apache::thrift::protocol::TType _etype419; - xfer += iprot->readListBegin(_etype419, _size416); - this->part_vals.resize(_size416); - uint32_t _i420; - for (_i420 = 0; _i420 < _size416; ++_i420) + uint32_t _size423; + ::apache::thrift::protocol::TType _etype426; + xfer += iprot->readListBegin(_etype426, _size423); + this->part_vals.resize(_size423); + uint32_t _i427; + for (_i427 = 0; _i427 < _size423; ++_i427) { - xfer += iprot->readString(this->part_vals[_i420]); + xfer += iprot->readString(this->part_vals[_i427]); } xfer += iprot->readListEnd(); } @@ -7645,10 +7645,10 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_args::write xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter421; - for (_iter421 = this->part_vals.begin(); _iter421 != this->part_vals.end(); ++_iter421) + std::vector ::const_iterator _iter428; + for (_iter428 = this->part_vals.begin(); _iter428 != this->part_vals.end(); ++_iter428) { - xfer += oprot->writeString((*_iter421)); + xfer += oprot->writeString((*_iter428)); } xfer += oprot->writeListEnd(); } @@ -7682,10 +7682,10 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_pargs::writ xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter422; - for (_iter422 = (*(this->part_vals)).begin(); _iter422 != (*(this->part_vals)).end(); ++_iter422) + std::vector ::const_iterator _iter429; + for (_iter429 = (*(this->part_vals)).begin(); _iter429 != (*(this->part_vals)).end(); ++_iter429) { - xfer += oprot->writeString((*_iter422)); + xfer += oprot->writeString((*_iter429)); } xfer += oprot->writeListEnd(); } @@ -8598,14 +8598,14 @@ uint32_t ThriftHiveMetastore_get_partition_args::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size423; - ::apache::thrift::protocol::TType _etype426; - xfer += iprot->readListBegin(_etype426, _size423); - this->part_vals.resize(_size423); - uint32_t _i427; - for (_i427 = 0; _i427 < _size423; ++_i427) + uint32_t _size430; + ::apache::thrift::protocol::TType _etype433; + xfer += iprot->readListBegin(_etype433, _size430); + this->part_vals.resize(_size430); + uint32_t _i434; + for (_i434 = 0; _i434 < _size430; ++_i434) { - xfer += iprot->readString(this->part_vals[_i427]); + xfer += iprot->readString(this->part_vals[_i434]); } xfer += iprot->readListEnd(); } @@ -8641,10 +8641,10 @@ uint32_t ThriftHiveMetastore_get_partition_args::write(::apache::thrift::protoco xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter428; - for (_iter428 = this->part_vals.begin(); _iter428 != this->part_vals.end(); ++_iter428) + std::vector ::const_iterator _iter435; + for (_iter435 = this->part_vals.begin(); _iter435 != this->part_vals.end(); ++_iter435) { - xfer += oprot->writeString((*_iter428)); + xfer += oprot->writeString((*_iter435)); } xfer += oprot->writeListEnd(); } @@ -8670,10 +8670,10 @@ uint32_t ThriftHiveMetastore_get_partition_pargs::write(::apache::thrift::protoc xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter429; - for (_iter429 = (*(this->part_vals)).begin(); _iter429 != (*(this->part_vals)).end(); ++_iter429) + std::vector ::const_iterator _iter436; + for (_iter436 = (*(this->part_vals)).begin(); _iter436 != (*(this->part_vals)).end(); ++_iter436) { - xfer += oprot->writeString((*_iter429)); + xfer += oprot->writeString((*_iter436)); } xfer += oprot->writeListEnd(); } @@ -8844,17 +8844,17 @@ uint32_t ThriftHiveMetastore_exchange_partition_args::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->partitionSpecs.clear(); - uint32_t _size430; - ::apache::thrift::protocol::TType _ktype431; - ::apache::thrift::protocol::TType _vtype432; - xfer += iprot->readMapBegin(_ktype431, _vtype432, _size430); - uint32_t _i434; - for (_i434 = 0; _i434 < _size430; ++_i434) + uint32_t _size437; + ::apache::thrift::protocol::TType _ktype438; + ::apache::thrift::protocol::TType _vtype439; + xfer += iprot->readMapBegin(_ktype438, _vtype439, _size437); + uint32_t _i441; + for (_i441 = 0; _i441 < _size437; ++_i441) { - std::string _key435; - xfer += iprot->readString(_key435); - std::string& _val436 = this->partitionSpecs[_key435]; - xfer += iprot->readString(_val436); + std::string _key442; + xfer += iprot->readString(_key442); + std::string& _val443 = this->partitionSpecs[_key442]; + xfer += iprot->readString(_val443); } xfer += iprot->readMapEnd(); } @@ -8914,11 +8914,11 @@ uint32_t ThriftHiveMetastore_exchange_partition_args::write(::apache::thrift::pr xfer += oprot->writeFieldBegin("partitionSpecs", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->partitionSpecs.size())); - std::map ::const_iterator _iter437; - for (_iter437 = this->partitionSpecs.begin(); _iter437 != this->partitionSpecs.end(); ++_iter437) + std::map ::const_iterator _iter444; + for (_iter444 = this->partitionSpecs.begin(); _iter444 != this->partitionSpecs.end(); ++_iter444) { - xfer += oprot->writeString(_iter437->first); - xfer += oprot->writeString(_iter437->second); + xfer += oprot->writeString(_iter444->first); + xfer += oprot->writeString(_iter444->second); } xfer += oprot->writeMapEnd(); } @@ -8952,11 +8952,11 @@ uint32_t ThriftHiveMetastore_exchange_partition_pargs::write(::apache::thrift::p xfer += oprot->writeFieldBegin("partitionSpecs", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast((*(this->partitionSpecs)).size())); - std::map ::const_iterator _iter438; - for (_iter438 = (*(this->partitionSpecs)).begin(); _iter438 != (*(this->partitionSpecs)).end(); ++_iter438) + std::map ::const_iterator _iter445; + for (_iter445 = (*(this->partitionSpecs)).begin(); _iter445 != (*(this->partitionSpecs)).end(); ++_iter445) { - xfer += oprot->writeString(_iter438->first); - xfer += oprot->writeString(_iter438->second); + xfer += oprot->writeString(_iter445->first); + xfer += oprot->writeString(_iter445->second); } xfer += oprot->writeMapEnd(); } @@ -9199,14 +9199,14 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_args::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size439; - ::apache::thrift::protocol::TType _etype442; - xfer += iprot->readListBegin(_etype442, _size439); - this->part_vals.resize(_size439); - uint32_t _i443; - for (_i443 = 0; _i443 < _size439; ++_i443) + uint32_t _size446; + ::apache::thrift::protocol::TType _etype449; + xfer += iprot->readListBegin(_etype449, _size446); + this->part_vals.resize(_size446); + uint32_t _i450; + for (_i450 = 0; _i450 < _size446; ++_i450) { - xfer += iprot->readString(this->part_vals[_i443]); + xfer += iprot->readString(this->part_vals[_i450]); } xfer += iprot->readListEnd(); } @@ -9227,14 +9227,14 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_args::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { this->group_names.clear(); - uint32_t _size444; - ::apache::thrift::protocol::TType _etype447; - xfer += iprot->readListBegin(_etype447, _size444); - this->group_names.resize(_size444); - uint32_t _i448; - for (_i448 = 0; _i448 < _size444; ++_i448) + uint32_t _size451; + ::apache::thrift::protocol::TType _etype454; + xfer += iprot->readListBegin(_etype454, _size451); + this->group_names.resize(_size451); + uint32_t _i455; + for (_i455 = 0; _i455 < _size451; ++_i455) { - xfer += iprot->readString(this->group_names[_i448]); + xfer += iprot->readString(this->group_names[_i455]); } xfer += iprot->readListEnd(); } @@ -9270,10 +9270,10 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_args::write(::apache::thrif xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter449; - for (_iter449 = this->part_vals.begin(); _iter449 != this->part_vals.end(); ++_iter449) + std::vector ::const_iterator _iter456; + for (_iter456 = this->part_vals.begin(); _iter456 != this->part_vals.end(); ++_iter456) { - xfer += oprot->writeString((*_iter449)); + xfer += oprot->writeString((*_iter456)); } xfer += oprot->writeListEnd(); } @@ -9286,10 +9286,10 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_args::write(::apache::thrif xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size())); - std::vector ::const_iterator _iter450; - for (_iter450 = this->group_names.begin(); _iter450 != this->group_names.end(); ++_iter450) + std::vector ::const_iterator _iter457; + for (_iter457 = this->group_names.begin(); _iter457 != this->group_names.end(); ++_iter457) { - xfer += oprot->writeString((*_iter450)); + xfer += oprot->writeString((*_iter457)); } xfer += oprot->writeListEnd(); } @@ -9315,10 +9315,10 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_pargs::write(::apache::thri xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter451; - for (_iter451 = (*(this->part_vals)).begin(); _iter451 != (*(this->part_vals)).end(); ++_iter451) + std::vector ::const_iterator _iter458; + for (_iter458 = (*(this->part_vals)).begin(); _iter458 != (*(this->part_vals)).end(); ++_iter458) { - xfer += oprot->writeString((*_iter451)); + xfer += oprot->writeString((*_iter458)); } xfer += oprot->writeListEnd(); } @@ -9331,10 +9331,10 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_pargs::write(::apache::thri xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size())); - std::vector ::const_iterator _iter452; - for (_iter452 = (*(this->group_names)).begin(); _iter452 != (*(this->group_names)).end(); ++_iter452) + std::vector ::const_iterator _iter459; + for (_iter459 = (*(this->group_names)).begin(); _iter459 != (*(this->group_names)).end(); ++_iter459) { - xfer += oprot->writeString((*_iter452)); + xfer += oprot->writeString((*_iter459)); } xfer += oprot->writeListEnd(); } @@ -9837,14 +9837,14 @@ uint32_t ThriftHiveMetastore_get_partitions_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size453; - ::apache::thrift::protocol::TType _etype456; - xfer += iprot->readListBegin(_etype456, _size453); - this->success.resize(_size453); - uint32_t _i457; - for (_i457 = 0; _i457 < _size453; ++_i457) + uint32_t _size460; + ::apache::thrift::protocol::TType _etype463; + xfer += iprot->readListBegin(_etype463, _size460); + this->success.resize(_size460); + uint32_t _i464; + for (_i464 = 0; _i464 < _size460; ++_i464) { - xfer += this->success[_i457].read(iprot); + xfer += this->success[_i464].read(iprot); } xfer += iprot->readListEnd(); } @@ -9891,10 +9891,10 @@ uint32_t ThriftHiveMetastore_get_partitions_result::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter458; - for (_iter458 = this->success.begin(); _iter458 != this->success.end(); ++_iter458) + std::vector ::const_iterator _iter465; + for (_iter465 = this->success.begin(); _iter465 != this->success.end(); ++_iter465) { - xfer += (*_iter458).write(oprot); + xfer += (*_iter465).write(oprot); } xfer += oprot->writeListEnd(); } @@ -9937,14 +9937,14 @@ uint32_t ThriftHiveMetastore_get_partitions_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size459; - ::apache::thrift::protocol::TType _etype462; - xfer += iprot->readListBegin(_etype462, _size459); - (*(this->success)).resize(_size459); - uint32_t _i463; - for (_i463 = 0; _i463 < _size459; ++_i463) + uint32_t _size466; + ::apache::thrift::protocol::TType _etype469; + xfer += iprot->readListBegin(_etype469, _size466); + (*(this->success)).resize(_size466); + uint32_t _i470; + for (_i470 = 0; _i470 < _size466; ++_i470) { - xfer += (*(this->success))[_i463].read(iprot); + xfer += (*(this->success))[_i470].read(iprot); } xfer += iprot->readListEnd(); } @@ -10037,14 +10037,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_args::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->group_names.clear(); - uint32_t _size464; - ::apache::thrift::protocol::TType _etype467; - xfer += iprot->readListBegin(_etype467, _size464); - this->group_names.resize(_size464); - uint32_t _i468; - for (_i468 = 0; _i468 < _size464; ++_i468) + uint32_t _size471; + ::apache::thrift::protocol::TType _etype474; + xfer += iprot->readListBegin(_etype474, _size471); + this->group_names.resize(_size471); + uint32_t _i475; + for (_i475 = 0; _i475 < _size471; ++_i475) { - xfer += iprot->readString(this->group_names[_i468]); + xfer += iprot->readString(this->group_names[_i475]); } xfer += iprot->readListEnd(); } @@ -10088,10 +10088,10 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_args::write(::apache::thri xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size())); - std::vector ::const_iterator _iter469; - for (_iter469 = this->group_names.begin(); _iter469 != this->group_names.end(); ++_iter469) + std::vector ::const_iterator _iter476; + for (_iter476 = this->group_names.begin(); _iter476 != this->group_names.end(); ++_iter476) { - xfer += oprot->writeString((*_iter469)); + xfer += oprot->writeString((*_iter476)); } xfer += oprot->writeListEnd(); } @@ -10125,10 +10125,10 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_pargs::write(::apache::thr xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size())); - std::vector ::const_iterator _iter470; - for (_iter470 = (*(this->group_names)).begin(); _iter470 != (*(this->group_names)).end(); ++_iter470) + std::vector ::const_iterator _iter477; + for (_iter477 = (*(this->group_names)).begin(); _iter477 != (*(this->group_names)).end(); ++_iter477) { - xfer += oprot->writeString((*_iter470)); + xfer += oprot->writeString((*_iter477)); } xfer += oprot->writeListEnd(); } @@ -10163,14 +10163,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_result::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size471; - ::apache::thrift::protocol::TType _etype474; - xfer += iprot->readListBegin(_etype474, _size471); - this->success.resize(_size471); - uint32_t _i475; - for (_i475 = 0; _i475 < _size471; ++_i475) + uint32_t _size478; + ::apache::thrift::protocol::TType _etype481; + xfer += iprot->readListBegin(_etype481, _size478); + this->success.resize(_size478); + uint32_t _i482; + for (_i482 = 0; _i482 < _size478; ++_i482) { - xfer += this->success[_i475].read(iprot); + xfer += this->success[_i482].read(iprot); } xfer += iprot->readListEnd(); } @@ -10217,10 +10217,10 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_result::write(::apache::th xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter476; - for (_iter476 = this->success.begin(); _iter476 != this->success.end(); ++_iter476) + std::vector ::const_iterator _iter483; + for (_iter483 = this->success.begin(); _iter483 != this->success.end(); ++_iter483) { - xfer += (*_iter476).write(oprot); + xfer += (*_iter483).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10263,14 +10263,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_presult::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size477; - ::apache::thrift::protocol::TType _etype480; - xfer += iprot->readListBegin(_etype480, _size477); - (*(this->success)).resize(_size477); - uint32_t _i481; - for (_i481 = 0; _i481 < _size477; ++_i481) + uint32_t _size484; + ::apache::thrift::protocol::TType _etype487; + xfer += iprot->readListBegin(_etype487, _size484); + (*(this->success)).resize(_size484); + uint32_t _i488; + for (_i488 = 0; _i488 < _size484; ++_i488) { - xfer += (*(this->success))[_i481].read(iprot); + xfer += (*(this->success))[_i488].read(iprot); } xfer += iprot->readListEnd(); } @@ -10429,14 +10429,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_result::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size482; - ::apache::thrift::protocol::TType _etype485; - xfer += iprot->readListBegin(_etype485, _size482); - this->success.resize(_size482); - uint32_t _i486; - for (_i486 = 0; _i486 < _size482; ++_i486) + uint32_t _size489; + ::apache::thrift::protocol::TType _etype492; + xfer += iprot->readListBegin(_etype492, _size489); + this->success.resize(_size489); + uint32_t _i493; + for (_i493 = 0; _i493 < _size489; ++_i493) { - xfer += iprot->readString(this->success[_i486]); + xfer += iprot->readString(this->success[_i493]); } xfer += iprot->readListEnd(); } @@ -10475,10 +10475,10 @@ uint32_t ThriftHiveMetastore_get_partition_names_result::write(::apache::thrift: xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter487; - for (_iter487 = this->success.begin(); _iter487 != this->success.end(); ++_iter487) + std::vector ::const_iterator _iter494; + for (_iter494 = this->success.begin(); _iter494 != this->success.end(); ++_iter494) { - xfer += oprot->writeString((*_iter487)); + xfer += oprot->writeString((*_iter494)); } xfer += oprot->writeListEnd(); } @@ -10517,14 +10517,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_presult::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size488; - ::apache::thrift::protocol::TType _etype491; - xfer += iprot->readListBegin(_etype491, _size488); - (*(this->success)).resize(_size488); - uint32_t _i492; - for (_i492 = 0; _i492 < _size488; ++_i492) + uint32_t _size495; + ::apache::thrift::protocol::TType _etype498; + xfer += iprot->readListBegin(_etype498, _size495); + (*(this->success)).resize(_size495); + uint32_t _i499; + for (_i499 = 0; _i499 < _size495; ++_i499) { - xfer += iprot->readString((*(this->success))[_i492]); + xfer += iprot->readString((*(this->success))[_i499]); } xfer += iprot->readListEnd(); } @@ -10593,14 +10593,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_args::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size493; - ::apache::thrift::protocol::TType _etype496; - xfer += iprot->readListBegin(_etype496, _size493); - this->part_vals.resize(_size493); - uint32_t _i497; - for (_i497 = 0; _i497 < _size493; ++_i497) + uint32_t _size500; + ::apache::thrift::protocol::TType _etype503; + xfer += iprot->readListBegin(_etype503, _size500); + this->part_vals.resize(_size500); + uint32_t _i504; + for (_i504 = 0; _i504 < _size500; ++_i504) { - xfer += iprot->readString(this->part_vals[_i497]); + xfer += iprot->readString(this->part_vals[_i504]); } xfer += iprot->readListEnd(); } @@ -10644,10 +10644,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_args::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter498; - for (_iter498 = this->part_vals.begin(); _iter498 != this->part_vals.end(); ++_iter498) + std::vector ::const_iterator _iter505; + for (_iter505 = this->part_vals.begin(); _iter505 != this->part_vals.end(); ++_iter505) { - xfer += oprot->writeString((*_iter498)); + xfer += oprot->writeString((*_iter505)); } xfer += oprot->writeListEnd(); } @@ -10677,10 +10677,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_pargs::write(::apache::thrift::pr xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter499; - for (_iter499 = (*(this->part_vals)).begin(); _iter499 != (*(this->part_vals)).end(); ++_iter499) + std::vector ::const_iterator _iter506; + for (_iter506 = (*(this->part_vals)).begin(); _iter506 != (*(this->part_vals)).end(); ++_iter506) { - xfer += oprot->writeString((*_iter499)); + xfer += oprot->writeString((*_iter506)); } xfer += oprot->writeListEnd(); } @@ -10719,14 +10719,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_result::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size500; - ::apache::thrift::protocol::TType _etype503; - xfer += iprot->readListBegin(_etype503, _size500); - this->success.resize(_size500); - uint32_t _i504; - for (_i504 = 0; _i504 < _size500; ++_i504) + uint32_t _size507; + ::apache::thrift::protocol::TType _etype510; + xfer += iprot->readListBegin(_etype510, _size507); + this->success.resize(_size507); + uint32_t _i511; + for (_i511 = 0; _i511 < _size507; ++_i511) { - xfer += this->success[_i504].read(iprot); + xfer += this->success[_i511].read(iprot); } xfer += iprot->readListEnd(); } @@ -10773,10 +10773,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_result::write(::apache::thrift::p xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter505; - for (_iter505 = this->success.begin(); _iter505 != this->success.end(); ++_iter505) + std::vector ::const_iterator _iter512; + for (_iter512 = this->success.begin(); _iter512 != this->success.end(); ++_iter512) { - xfer += (*_iter505).write(oprot); + xfer += (*_iter512).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10819,14 +10819,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_presult::read(::apache::thrift::p if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size506; - ::apache::thrift::protocol::TType _etype509; - xfer += iprot->readListBegin(_etype509, _size506); - (*(this->success)).resize(_size506); - uint32_t _i510; - for (_i510 = 0; _i510 < _size506; ++_i510) + uint32_t _size513; + ::apache::thrift::protocol::TType _etype516; + xfer += iprot->readListBegin(_etype516, _size513); + (*(this->success)).resize(_size513); + uint32_t _i517; + for (_i517 = 0; _i517 < _size513; ++_i517) { - xfer += (*(this->success))[_i510].read(iprot); + xfer += (*(this->success))[_i517].read(iprot); } xfer += iprot->readListEnd(); } @@ -10903,14 +10903,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_args::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size511; - ::apache::thrift::protocol::TType _etype514; - xfer += iprot->readListBegin(_etype514, _size511); - this->part_vals.resize(_size511); - uint32_t _i515; - for (_i515 = 0; _i515 < _size511; ++_i515) + uint32_t _size518; + ::apache::thrift::protocol::TType _etype521; + xfer += iprot->readListBegin(_etype521, _size518); + this->part_vals.resize(_size518); + uint32_t _i522; + for (_i522 = 0; _i522 < _size518; ++_i522) { - xfer += iprot->readString(this->part_vals[_i515]); + xfer += iprot->readString(this->part_vals[_i522]); } xfer += iprot->readListEnd(); } @@ -10939,14 +10939,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_args::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { this->group_names.clear(); - uint32_t _size516; - ::apache::thrift::protocol::TType _etype519; - xfer += iprot->readListBegin(_etype519, _size516); - this->group_names.resize(_size516); - uint32_t _i520; - for (_i520 = 0; _i520 < _size516; ++_i520) + uint32_t _size523; + ::apache::thrift::protocol::TType _etype526; + xfer += iprot->readListBegin(_etype526, _size523); + this->group_names.resize(_size523); + uint32_t _i527; + for (_i527 = 0; _i527 < _size523; ++_i527) { - xfer += iprot->readString(this->group_names[_i520]); + xfer += iprot->readString(this->group_names[_i527]); } xfer += iprot->readListEnd(); } @@ -10982,10 +10982,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_args::write(::apache::t xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter521; - for (_iter521 = this->part_vals.begin(); _iter521 != this->part_vals.end(); ++_iter521) + std::vector ::const_iterator _iter528; + for (_iter528 = this->part_vals.begin(); _iter528 != this->part_vals.end(); ++_iter528) { - xfer += oprot->writeString((*_iter521)); + xfer += oprot->writeString((*_iter528)); } xfer += oprot->writeListEnd(); } @@ -11002,10 +11002,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_args::write(::apache::t xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 6); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size())); - std::vector ::const_iterator _iter522; - for (_iter522 = this->group_names.begin(); _iter522 != this->group_names.end(); ++_iter522) + std::vector ::const_iterator _iter529; + for (_iter529 = this->group_names.begin(); _iter529 != this->group_names.end(); ++_iter529) { - xfer += oprot->writeString((*_iter522)); + xfer += oprot->writeString((*_iter529)); } xfer += oprot->writeListEnd(); } @@ -11031,10 +11031,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_pargs::write(::apache:: xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter523; - for (_iter523 = (*(this->part_vals)).begin(); _iter523 != (*(this->part_vals)).end(); ++_iter523) + std::vector ::const_iterator _iter530; + for (_iter530 = (*(this->part_vals)).begin(); _iter530 != (*(this->part_vals)).end(); ++_iter530) { - xfer += oprot->writeString((*_iter523)); + xfer += oprot->writeString((*_iter530)); } xfer += oprot->writeListEnd(); } @@ -11051,10 +11051,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_pargs::write(::apache:: xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 6); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size())); - std::vector ::const_iterator _iter524; - for (_iter524 = (*(this->group_names)).begin(); _iter524 != (*(this->group_names)).end(); ++_iter524) + std::vector ::const_iterator _iter531; + for (_iter531 = (*(this->group_names)).begin(); _iter531 != (*(this->group_names)).end(); ++_iter531) { - xfer += oprot->writeString((*_iter524)); + xfer += oprot->writeString((*_iter531)); } xfer += oprot->writeListEnd(); } @@ -11089,14 +11089,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_result::read(::apache:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size525; - ::apache::thrift::protocol::TType _etype528; - xfer += iprot->readListBegin(_etype528, _size525); - this->success.resize(_size525); - uint32_t _i529; - for (_i529 = 0; _i529 < _size525; ++_i529) + uint32_t _size532; + ::apache::thrift::protocol::TType _etype535; + xfer += iprot->readListBegin(_etype535, _size532); + this->success.resize(_size532); + uint32_t _i536; + for (_i536 = 0; _i536 < _size532; ++_i536) { - xfer += this->success[_i529].read(iprot); + xfer += this->success[_i536].read(iprot); } xfer += iprot->readListEnd(); } @@ -11143,10 +11143,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_result::write(::apache: xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter530; - for (_iter530 = this->success.begin(); _iter530 != this->success.end(); ++_iter530) + std::vector ::const_iterator _iter537; + for (_iter537 = this->success.begin(); _iter537 != this->success.end(); ++_iter537) { - xfer += (*_iter530).write(oprot); + xfer += (*_iter537).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11189,14 +11189,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_presult::read(::apache: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size531; - ::apache::thrift::protocol::TType _etype534; - xfer += iprot->readListBegin(_etype534, _size531); - (*(this->success)).resize(_size531); - uint32_t _i535; - for (_i535 = 0; _i535 < _size531; ++_i535) + uint32_t _size538; + ::apache::thrift::protocol::TType _etype541; + xfer += iprot->readListBegin(_etype541, _size538); + (*(this->success)).resize(_size538); + uint32_t _i542; + for (_i542 = 0; _i542 < _size538; ++_i542) { - xfer += (*(this->success))[_i535].read(iprot); + xfer += (*(this->success))[_i542].read(iprot); } xfer += iprot->readListEnd(); } @@ -11273,14 +11273,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_args::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size536; - ::apache::thrift::protocol::TType _etype539; - xfer += iprot->readListBegin(_etype539, _size536); - this->part_vals.resize(_size536); - uint32_t _i540; - for (_i540 = 0; _i540 < _size536; ++_i540) + uint32_t _size543; + ::apache::thrift::protocol::TType _etype546; + xfer += iprot->readListBegin(_etype546, _size543); + this->part_vals.resize(_size543); + uint32_t _i547; + for (_i547 = 0; _i547 < _size543; ++_i547) { - xfer += iprot->readString(this->part_vals[_i540]); + xfer += iprot->readString(this->part_vals[_i547]); } xfer += iprot->readListEnd(); } @@ -11324,10 +11324,10 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_args::write(::apache::thrift xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter541; - for (_iter541 = this->part_vals.begin(); _iter541 != this->part_vals.end(); ++_iter541) + std::vector ::const_iterator _iter548; + for (_iter548 = this->part_vals.begin(); _iter548 != this->part_vals.end(); ++_iter548) { - xfer += oprot->writeString((*_iter541)); + xfer += oprot->writeString((*_iter548)); } xfer += oprot->writeListEnd(); } @@ -11357,10 +11357,10 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_pargs::write(::apache::thrif xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter542; - for (_iter542 = (*(this->part_vals)).begin(); _iter542 != (*(this->part_vals)).end(); ++_iter542) + std::vector ::const_iterator _iter549; + for (_iter549 = (*(this->part_vals)).begin(); _iter549 != (*(this->part_vals)).end(); ++_iter549) { - xfer += oprot->writeString((*_iter542)); + xfer += oprot->writeString((*_iter549)); } xfer += oprot->writeListEnd(); } @@ -11399,14 +11399,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size543; - ::apache::thrift::protocol::TType _etype546; - xfer += iprot->readListBegin(_etype546, _size543); - this->success.resize(_size543); - uint32_t _i547; - for (_i547 = 0; _i547 < _size543; ++_i547) + uint32_t _size550; + ::apache::thrift::protocol::TType _etype553; + xfer += iprot->readListBegin(_etype553, _size550); + this->success.resize(_size550); + uint32_t _i554; + for (_i554 = 0; _i554 < _size550; ++_i554) { - xfer += iprot->readString(this->success[_i547]); + xfer += iprot->readString(this->success[_i554]); } xfer += iprot->readListEnd(); } @@ -11453,10 +11453,10 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_result::write(::apache::thri xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter548; - for (_iter548 = this->success.begin(); _iter548 != this->success.end(); ++_iter548) + std::vector ::const_iterator _iter555; + for (_iter555 = this->success.begin(); _iter555 != this->success.end(); ++_iter555) { - xfer += oprot->writeString((*_iter548)); + xfer += oprot->writeString((*_iter555)); } xfer += oprot->writeListEnd(); } @@ -11499,14 +11499,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size549; - ::apache::thrift::protocol::TType _etype552; - xfer += iprot->readListBegin(_etype552, _size549); - (*(this->success)).resize(_size549); - uint32_t _i553; - for (_i553 = 0; _i553 < _size549; ++_i553) + uint32_t _size556; + ::apache::thrift::protocol::TType _etype559; + xfer += iprot->readListBegin(_etype559, _size556); + (*(this->success)).resize(_size556); + uint32_t _i560; + for (_i560 = 0; _i560 < _size556; ++_i560) { - xfer += iprot->readString((*(this->success))[_i553]); + xfer += iprot->readString((*(this->success))[_i560]); } xfer += iprot->readListEnd(); } @@ -11681,14 +11681,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_result::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size554; - ::apache::thrift::protocol::TType _etype557; - xfer += iprot->readListBegin(_etype557, _size554); - this->success.resize(_size554); - uint32_t _i558; - for (_i558 = 0; _i558 < _size554; ++_i558) + uint32_t _size561; + ::apache::thrift::protocol::TType _etype564; + xfer += iprot->readListBegin(_etype564, _size561); + this->success.resize(_size561); + uint32_t _i565; + for (_i565 = 0; _i565 < _size561; ++_i565) { - xfer += this->success[_i558].read(iprot); + xfer += this->success[_i565].read(iprot); } xfer += iprot->readListEnd(); } @@ -11735,10 +11735,10 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_result::write(::apache::th xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter559; - for (_iter559 = this->success.begin(); _iter559 != this->success.end(); ++_iter559) + std::vector ::const_iterator _iter566; + for (_iter566 = this->success.begin(); _iter566 != this->success.end(); ++_iter566) { - xfer += (*_iter559).write(oprot); + xfer += (*_iter566).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11781,14 +11781,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_presult::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size560; - ::apache::thrift::protocol::TType _etype563; - xfer += iprot->readListBegin(_etype563, _size560); - (*(this->success)).resize(_size560); - uint32_t _i564; - for (_i564 = 0; _i564 < _size560; ++_i564) + uint32_t _size567; + ::apache::thrift::protocol::TType _etype570; + xfer += iprot->readListBegin(_etype570, _size567); + (*(this->success)).resize(_size567); + uint32_t _i571; + for (_i571 = 0; _i571 < _size567; ++_i571) { - xfer += (*(this->success))[_i564].read(iprot); + xfer += (*(this->success))[_i571].read(iprot); } xfer += iprot->readListEnd(); } @@ -12067,14 +12067,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_args::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { this->names.clear(); - uint32_t _size565; - ::apache::thrift::protocol::TType _etype568; - xfer += iprot->readListBegin(_etype568, _size565); - this->names.resize(_size565); - uint32_t _i569; - for (_i569 = 0; _i569 < _size565; ++_i569) + uint32_t _size572; + ::apache::thrift::protocol::TType _etype575; + xfer += iprot->readListBegin(_etype575, _size572); + this->names.resize(_size572); + uint32_t _i576; + for (_i576 = 0; _i576 < _size572; ++_i576) { - xfer += iprot->readString(this->names[_i569]); + xfer += iprot->readString(this->names[_i576]); } xfer += iprot->readListEnd(); } @@ -12110,10 +12110,10 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_args::write(::apache::thrif xfer += oprot->writeFieldBegin("names", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->names.size())); - std::vector ::const_iterator _iter570; - for (_iter570 = this->names.begin(); _iter570 != this->names.end(); ++_iter570) + std::vector ::const_iterator _iter577; + for (_iter577 = this->names.begin(); _iter577 != this->names.end(); ++_iter577) { - xfer += oprot->writeString((*_iter570)); + xfer += oprot->writeString((*_iter577)); } xfer += oprot->writeListEnd(); } @@ -12139,10 +12139,10 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_pargs::write(::apache::thri xfer += oprot->writeFieldBegin("names", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->names)).size())); - std::vector ::const_iterator _iter571; - for (_iter571 = (*(this->names)).begin(); _iter571 != (*(this->names)).end(); ++_iter571) + std::vector ::const_iterator _iter578; + for (_iter578 = (*(this->names)).begin(); _iter578 != (*(this->names)).end(); ++_iter578) { - xfer += oprot->writeString((*_iter571)); + xfer += oprot->writeString((*_iter578)); } xfer += oprot->writeListEnd(); } @@ -12177,14 +12177,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_result::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size572; - ::apache::thrift::protocol::TType _etype575; - xfer += iprot->readListBegin(_etype575, _size572); - this->success.resize(_size572); - uint32_t _i576; - for (_i576 = 0; _i576 < _size572; ++_i576) + uint32_t _size579; + ::apache::thrift::protocol::TType _etype582; + xfer += iprot->readListBegin(_etype582, _size579); + this->success.resize(_size579); + uint32_t _i583; + for (_i583 = 0; _i583 < _size579; ++_i583) { - xfer += this->success[_i576].read(iprot); + xfer += this->success[_i583].read(iprot); } xfer += iprot->readListEnd(); } @@ -12231,10 +12231,10 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_result::write(::apache::thr xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter577; - for (_iter577 = this->success.begin(); _iter577 != this->success.end(); ++_iter577) + std::vector ::const_iterator _iter584; + for (_iter584 = this->success.begin(); _iter584 != this->success.end(); ++_iter584) { - xfer += (*_iter577).write(oprot); + xfer += (*_iter584).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12277,14 +12277,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_presult::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size578; - ::apache::thrift::protocol::TType _etype581; - xfer += iprot->readListBegin(_etype581, _size578); - (*(this->success)).resize(_size578); - uint32_t _i582; - for (_i582 = 0; _i582 < _size578; ++_i582) + uint32_t _size585; + ::apache::thrift::protocol::TType _etype588; + xfer += iprot->readListBegin(_etype588, _size585); + (*(this->success)).resize(_size585); + uint32_t _i589; + for (_i589 = 0; _i589 < _size585; ++_i589) { - xfer += (*(this->success))[_i582].read(iprot); + xfer += (*(this->success))[_i589].read(iprot); } xfer += iprot->readListEnd(); } @@ -12575,14 +12575,14 @@ uint32_t ThriftHiveMetastore_alter_partitions_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size583; - ::apache::thrift::protocol::TType _etype586; - xfer += iprot->readListBegin(_etype586, _size583); - this->new_parts.resize(_size583); - uint32_t _i587; - for (_i587 = 0; _i587 < _size583; ++_i587) + uint32_t _size590; + ::apache::thrift::protocol::TType _etype593; + xfer += iprot->readListBegin(_etype593, _size590); + this->new_parts.resize(_size590); + uint32_t _i594; + for (_i594 = 0; _i594 < _size590; ++_i594) { - xfer += this->new_parts[_i587].read(iprot); + xfer += this->new_parts[_i594].read(iprot); } xfer += iprot->readListEnd(); } @@ -12618,10 +12618,10 @@ uint32_t ThriftHiveMetastore_alter_partitions_args::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->new_parts.size())); - std::vector ::const_iterator _iter588; - for (_iter588 = this->new_parts.begin(); _iter588 != this->new_parts.end(); ++_iter588) + std::vector ::const_iterator _iter595; + for (_iter595 = this->new_parts.begin(); _iter595 != this->new_parts.end(); ++_iter595) { - xfer += (*_iter588).write(oprot); + xfer += (*_iter595).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12647,10 +12647,10 @@ uint32_t ThriftHiveMetastore_alter_partitions_pargs::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*(this->new_parts)).size())); - std::vector ::const_iterator _iter589; - for (_iter589 = (*(this->new_parts)).begin(); _iter589 != (*(this->new_parts)).end(); ++_iter589) + std::vector ::const_iterator _iter596; + for (_iter596 = (*(this->new_parts)).begin(); _iter596 != (*(this->new_parts)).end(); ++_iter596) { - xfer += (*_iter589).write(oprot); + xfer += (*_iter596).write(oprot); } xfer += oprot->writeListEnd(); } @@ -13047,14 +13047,14 @@ uint32_t ThriftHiveMetastore_rename_partition_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size590; - ::apache::thrift::protocol::TType _etype593; - xfer += iprot->readListBegin(_etype593, _size590); - this->part_vals.resize(_size590); - uint32_t _i594; - for (_i594 = 0; _i594 < _size590; ++_i594) + uint32_t _size597; + ::apache::thrift::protocol::TType _etype600; + xfer += iprot->readListBegin(_etype600, _size597); + this->part_vals.resize(_size597); + uint32_t _i601; + for (_i601 = 0; _i601 < _size597; ++_i601) { - xfer += iprot->readString(this->part_vals[_i594]); + xfer += iprot->readString(this->part_vals[_i601]); } xfer += iprot->readListEnd(); } @@ -13098,10 +13098,10 @@ uint32_t ThriftHiveMetastore_rename_partition_args::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter595; - for (_iter595 = this->part_vals.begin(); _iter595 != this->part_vals.end(); ++_iter595) + std::vector ::const_iterator _iter602; + for (_iter602 = this->part_vals.begin(); _iter602 != this->part_vals.end(); ++_iter602) { - xfer += oprot->writeString((*_iter595)); + xfer += oprot->writeString((*_iter602)); } xfer += oprot->writeListEnd(); } @@ -13131,10 +13131,10 @@ uint32_t ThriftHiveMetastore_rename_partition_pargs::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter596; - for (_iter596 = (*(this->part_vals)).begin(); _iter596 != (*(this->part_vals)).end(); ++_iter596) + std::vector ::const_iterator _iter603; + for (_iter603 = (*(this->part_vals)).begin(); _iter603 != (*(this->part_vals)).end(); ++_iter603) { - xfer += oprot->writeString((*_iter596)); + xfer += oprot->writeString((*_iter603)); } xfer += oprot->writeListEnd(); } @@ -13289,14 +13289,14 @@ uint32_t ThriftHiveMetastore_partition_name_has_valid_characters_args::read(::ap if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size597; - ::apache::thrift::protocol::TType _etype600; - xfer += iprot->readListBegin(_etype600, _size597); - this->part_vals.resize(_size597); - uint32_t _i601; - for (_i601 = 0; _i601 < _size597; ++_i601) + uint32_t _size604; + ::apache::thrift::protocol::TType _etype607; + xfer += iprot->readListBegin(_etype607, _size604); + this->part_vals.resize(_size604); + uint32_t _i608; + for (_i608 = 0; _i608 < _size604; ++_i608) { - xfer += iprot->readString(this->part_vals[_i601]); + xfer += iprot->readString(this->part_vals[_i608]); } xfer += iprot->readListEnd(); } @@ -13332,10 +13332,10 @@ uint32_t ThriftHiveMetastore_partition_name_has_valid_characters_args::write(::a xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter602; - for (_iter602 = this->part_vals.begin(); _iter602 != this->part_vals.end(); ++_iter602) + std::vector ::const_iterator _iter609; + for (_iter609 = this->part_vals.begin(); _iter609 != this->part_vals.end(); ++_iter609) { - xfer += oprot->writeString((*_iter602)); + xfer += oprot->writeString((*_iter609)); } xfer += oprot->writeListEnd(); } @@ -13357,10 +13357,10 @@ uint32_t ThriftHiveMetastore_partition_name_has_valid_characters_pargs::write(:: xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter603; - for (_iter603 = (*(this->part_vals)).begin(); _iter603 != (*(this->part_vals)).end(); ++_iter603) + std::vector ::const_iterator _iter610; + for (_iter610 = (*(this->part_vals)).begin(); _iter610 != (*(this->part_vals)).end(); ++_iter610) { - xfer += oprot->writeString((*_iter603)); + xfer += oprot->writeString((*_iter610)); } xfer += oprot->writeListEnd(); } @@ -13779,14 +13779,14 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size604; - ::apache::thrift::protocol::TType _etype607; - xfer += iprot->readListBegin(_etype607, _size604); - this->success.resize(_size604); - uint32_t _i608; - for (_i608 = 0; _i608 < _size604; ++_i608) + uint32_t _size611; + ::apache::thrift::protocol::TType _etype614; + xfer += iprot->readListBegin(_etype614, _size611); + this->success.resize(_size611); + uint32_t _i615; + for (_i615 = 0; _i615 < _size611; ++_i615) { - xfer += iprot->readString(this->success[_i608]); + xfer += iprot->readString(this->success[_i615]); } xfer += iprot->readListEnd(); } @@ -13825,10 +13825,10 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_result::write(::apache::thri xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter609; - for (_iter609 = this->success.begin(); _iter609 != this->success.end(); ++_iter609) + std::vector ::const_iterator _iter616; + for (_iter616 = this->success.begin(); _iter616 != this->success.end(); ++_iter616) { - xfer += oprot->writeString((*_iter609)); + xfer += oprot->writeString((*_iter616)); } xfer += oprot->writeListEnd(); } @@ -13867,14 +13867,14 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size610; - ::apache::thrift::protocol::TType _etype613; - xfer += iprot->readListBegin(_etype613, _size610); - (*(this->success)).resize(_size610); - uint32_t _i614; - for (_i614 = 0; _i614 < _size610; ++_i614) + uint32_t _size617; + ::apache::thrift::protocol::TType _etype620; + xfer += iprot->readListBegin(_etype620, _size617); + (*(this->success)).resize(_size617); + uint32_t _i621; + for (_i621 = 0; _i621 < _size617; ++_i621) { - xfer += iprot->readString((*(this->success))[_i614]); + xfer += iprot->readString((*(this->success))[_i621]); } xfer += iprot->readListEnd(); } @@ -13993,17 +13993,17 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_MAP) { { this->success.clear(); - uint32_t _size615; - ::apache::thrift::protocol::TType _ktype616; - ::apache::thrift::protocol::TType _vtype617; - xfer += iprot->readMapBegin(_ktype616, _vtype617, _size615); - uint32_t _i619; - for (_i619 = 0; _i619 < _size615; ++_i619) + uint32_t _size622; + ::apache::thrift::protocol::TType _ktype623; + ::apache::thrift::protocol::TType _vtype624; + xfer += iprot->readMapBegin(_ktype623, _vtype624, _size622); + uint32_t _i626; + for (_i626 = 0; _i626 < _size622; ++_i626) { - std::string _key620; - xfer += iprot->readString(_key620); - std::string& _val621 = this->success[_key620]; - xfer += iprot->readString(_val621); + std::string _key627; + xfer += iprot->readString(_key627); + std::string& _val628 = this->success[_key627]; + xfer += iprot->readString(_val628); } xfer += iprot->readMapEnd(); } @@ -14042,11 +14042,11 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_result::write(::apache::thri xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::map ::const_iterator _iter622; - for (_iter622 = this->success.begin(); _iter622 != this->success.end(); ++_iter622) + std::map ::const_iterator _iter629; + for (_iter629 = this->success.begin(); _iter629 != this->success.end(); ++_iter629) { - xfer += oprot->writeString(_iter622->first); - xfer += oprot->writeString(_iter622->second); + xfer += oprot->writeString(_iter629->first); + xfer += oprot->writeString(_iter629->second); } xfer += oprot->writeMapEnd(); } @@ -14085,17 +14085,17 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_MAP) { { (*(this->success)).clear(); - uint32_t _size623; - ::apache::thrift::protocol::TType _ktype624; - ::apache::thrift::protocol::TType _vtype625; - xfer += iprot->readMapBegin(_ktype624, _vtype625, _size623); - uint32_t _i627; - for (_i627 = 0; _i627 < _size623; ++_i627) + uint32_t _size630; + ::apache::thrift::protocol::TType _ktype631; + ::apache::thrift::protocol::TType _vtype632; + xfer += iprot->readMapBegin(_ktype631, _vtype632, _size630); + uint32_t _i634; + for (_i634 = 0; _i634 < _size630; ++_i634) { - std::string _key628; - xfer += iprot->readString(_key628); - std::string& _val629 = (*(this->success))[_key628]; - xfer += iprot->readString(_val629); + std::string _key635; + xfer += iprot->readString(_key635); + std::string& _val636 = (*(this->success))[_key635]; + xfer += iprot->readString(_val636); } xfer += iprot->readMapEnd(); } @@ -14164,17 +14164,17 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_MAP) { { this->part_vals.clear(); - uint32_t _size630; - ::apache::thrift::protocol::TType _ktype631; - ::apache::thrift::protocol::TType _vtype632; - xfer += iprot->readMapBegin(_ktype631, _vtype632, _size630); - uint32_t _i634; - for (_i634 = 0; _i634 < _size630; ++_i634) + uint32_t _size637; + ::apache::thrift::protocol::TType _ktype638; + ::apache::thrift::protocol::TType _vtype639; + xfer += iprot->readMapBegin(_ktype638, _vtype639, _size637); + uint32_t _i641; + for (_i641 = 0; _i641 < _size637; ++_i641) { - std::string _key635; - xfer += iprot->readString(_key635); - std::string& _val636 = this->part_vals[_key635]; - xfer += iprot->readString(_val636); + std::string _key642; + xfer += iprot->readString(_key642); + std::string& _val643 = this->part_vals[_key642]; + xfer += iprot->readString(_val643); } xfer += iprot->readMapEnd(); } @@ -14185,9 +14185,9 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::read(::apache::thrift:: break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast637; - xfer += iprot->readI32(ecast637); - this->eventType = (PartitionEventType::type)ecast637; + int32_t ecast644; + xfer += iprot->readI32(ecast644); + this->eventType = (PartitionEventType::type)ecast644; this->__isset.eventType = true; } else { xfer += iprot->skip(ftype); @@ -14220,11 +14220,11 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::write(::apache::thrift: xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_MAP, 3); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::map ::const_iterator _iter638; - for (_iter638 = this->part_vals.begin(); _iter638 != this->part_vals.end(); ++_iter638) + std::map ::const_iterator _iter645; + for (_iter645 = this->part_vals.begin(); _iter645 != this->part_vals.end(); ++_iter645) { - xfer += oprot->writeString(_iter638->first); - xfer += oprot->writeString(_iter638->second); + xfer += oprot->writeString(_iter645->first); + xfer += oprot->writeString(_iter645->second); } xfer += oprot->writeMapEnd(); } @@ -14254,11 +14254,11 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_pargs::write(::apache::thrift xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_MAP, 3); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::map ::const_iterator _iter639; - for (_iter639 = (*(this->part_vals)).begin(); _iter639 != (*(this->part_vals)).end(); ++_iter639) + std::map ::const_iterator _iter646; + for (_iter646 = (*(this->part_vals)).begin(); _iter646 != (*(this->part_vals)).end(); ++_iter646) { - xfer += oprot->writeString(_iter639->first); - xfer += oprot->writeString(_iter639->second); + xfer += oprot->writeString(_iter646->first); + xfer += oprot->writeString(_iter646->second); } xfer += oprot->writeMapEnd(); } @@ -14509,17 +14509,17 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_MAP) { { this->part_vals.clear(); - uint32_t _size640; - ::apache::thrift::protocol::TType _ktype641; - ::apache::thrift::protocol::TType _vtype642; - xfer += iprot->readMapBegin(_ktype641, _vtype642, _size640); - uint32_t _i644; - for (_i644 = 0; _i644 < _size640; ++_i644) + uint32_t _size647; + ::apache::thrift::protocol::TType _ktype648; + ::apache::thrift::protocol::TType _vtype649; + xfer += iprot->readMapBegin(_ktype648, _vtype649, _size647); + uint32_t _i651; + for (_i651 = 0; _i651 < _size647; ++_i651) { - std::string _key645; - xfer += iprot->readString(_key645); - std::string& _val646 = this->part_vals[_key645]; - xfer += iprot->readString(_val646); + std::string _key652; + xfer += iprot->readString(_key652); + std::string& _val653 = this->part_vals[_key652]; + xfer += iprot->readString(_val653); } xfer += iprot->readMapEnd(); } @@ -14530,9 +14530,9 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::read(::apache::thri break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast647; - xfer += iprot->readI32(ecast647); - this->eventType = (PartitionEventType::type)ecast647; + int32_t ecast654; + xfer += iprot->readI32(ecast654); + this->eventType = (PartitionEventType::type)ecast654; this->__isset.eventType = true; } else { xfer += iprot->skip(ftype); @@ -14565,11 +14565,11 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::write(::apache::thr xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_MAP, 3); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::map ::const_iterator _iter648; - for (_iter648 = this->part_vals.begin(); _iter648 != this->part_vals.end(); ++_iter648) + std::map ::const_iterator _iter655; + for (_iter655 = this->part_vals.begin(); _iter655 != this->part_vals.end(); ++_iter655) { - xfer += oprot->writeString(_iter648->first); - xfer += oprot->writeString(_iter648->second); + xfer += oprot->writeString(_iter655->first); + xfer += oprot->writeString(_iter655->second); } xfer += oprot->writeMapEnd(); } @@ -14599,11 +14599,11 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_pargs::write(::apache::th xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_MAP, 3); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::map ::const_iterator _iter649; - for (_iter649 = (*(this->part_vals)).begin(); _iter649 != (*(this->part_vals)).end(); ++_iter649) + std::map ::const_iterator _iter656; + for (_iter656 = (*(this->part_vals)).begin(); _iter656 != (*(this->part_vals)).end(); ++_iter656) { - xfer += oprot->writeString(_iter649->first); - xfer += oprot->writeString(_iter649->second); + xfer += oprot->writeString(_iter656->first); + xfer += oprot->writeString(_iter656->second); } xfer += oprot->writeMapEnd(); } @@ -15908,14 +15908,14 @@ uint32_t ThriftHiveMetastore_get_indexes_result::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size650; - ::apache::thrift::protocol::TType _etype653; - xfer += iprot->readListBegin(_etype653, _size650); - this->success.resize(_size650); - uint32_t _i654; - for (_i654 = 0; _i654 < _size650; ++_i654) + uint32_t _size657; + ::apache::thrift::protocol::TType _etype660; + xfer += iprot->readListBegin(_etype660, _size657); + this->success.resize(_size657); + uint32_t _i661; + for (_i661 = 0; _i661 < _size657; ++_i661) { - xfer += this->success[_i654].read(iprot); + xfer += this->success[_i661].read(iprot); } xfer += iprot->readListEnd(); } @@ -15962,10 +15962,10 @@ uint32_t ThriftHiveMetastore_get_indexes_result::write(::apache::thrift::protoco xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter655; - for (_iter655 = this->success.begin(); _iter655 != this->success.end(); ++_iter655) + std::vector ::const_iterator _iter662; + for (_iter662 = this->success.begin(); _iter662 != this->success.end(); ++_iter662) { - xfer += (*_iter655).write(oprot); + xfer += (*_iter662).write(oprot); } xfer += oprot->writeListEnd(); } @@ -16008,14 +16008,14 @@ uint32_t ThriftHiveMetastore_get_indexes_presult::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size656; - ::apache::thrift::protocol::TType _etype659; - xfer += iprot->readListBegin(_etype659, _size656); - (*(this->success)).resize(_size656); - uint32_t _i660; - for (_i660 = 0; _i660 < _size656; ++_i660) + uint32_t _size663; + ::apache::thrift::protocol::TType _etype666; + xfer += iprot->readListBegin(_etype666, _size663); + (*(this->success)).resize(_size663); + uint32_t _i667; + for (_i667 = 0; _i667 < _size663; ++_i667) { - xfer += (*(this->success))[_i660].read(iprot); + xfer += (*(this->success))[_i667].read(iprot); } xfer += iprot->readListEnd(); } @@ -16174,14 +16174,14 @@ uint32_t ThriftHiveMetastore_get_index_names_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size661; - ::apache::thrift::protocol::TType _etype664; - xfer += iprot->readListBegin(_etype664, _size661); - this->success.resize(_size661); - uint32_t _i665; - for (_i665 = 0; _i665 < _size661; ++_i665) + uint32_t _size668; + ::apache::thrift::protocol::TType _etype671; + xfer += iprot->readListBegin(_etype671, _size668); + this->success.resize(_size668); + uint32_t _i672; + for (_i672 = 0; _i672 < _size668; ++_i672) { - xfer += iprot->readString(this->success[_i665]); + xfer += iprot->readString(this->success[_i672]); } xfer += iprot->readListEnd(); } @@ -16220,10 +16220,10 @@ uint32_t ThriftHiveMetastore_get_index_names_result::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter666; - for (_iter666 = this->success.begin(); _iter666 != this->success.end(); ++_iter666) + std::vector ::const_iterator _iter673; + for (_iter673 = this->success.begin(); _iter673 != this->success.end(); ++_iter673) { - xfer += oprot->writeString((*_iter666)); + xfer += oprot->writeString((*_iter673)); } xfer += oprot->writeListEnd(); } @@ -16262,14 +16262,14 @@ uint32_t ThriftHiveMetastore_get_index_names_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size667; - ::apache::thrift::protocol::TType _etype670; - xfer += iprot->readListBegin(_etype670, _size667); - (*(this->success)).resize(_size667); - uint32_t _i671; - for (_i671 = 0; _i671 < _size667; ++_i671) + uint32_t _size674; + ::apache::thrift::protocol::TType _etype677; + xfer += iprot->readListBegin(_etype677, _size674); + (*(this->success)).resize(_size674); + uint32_t _i678; + for (_i678 = 0; _i678 < _size674; ++_i678) { - xfer += iprot->readString((*(this->success))[_i671]); + xfer += iprot->readString((*(this->success))[_i678]); } xfer += iprot->readListEnd(); } @@ -19054,14 +19054,14 @@ uint32_t ThriftHiveMetastore_get_functions_result::read(::apache::thrift::protoc if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size672; - ::apache::thrift::protocol::TType _etype675; - xfer += iprot->readListBegin(_etype675, _size672); - this->success.resize(_size672); - uint32_t _i676; - for (_i676 = 0; _i676 < _size672; ++_i676) + uint32_t _size679; + ::apache::thrift::protocol::TType _etype682; + xfer += iprot->readListBegin(_etype682, _size679); + this->success.resize(_size679); + uint32_t _i683; + for (_i683 = 0; _i683 < _size679; ++_i683) { - xfer += iprot->readString(this->success[_i676]); + xfer += iprot->readString(this->success[_i683]); } xfer += iprot->readListEnd(); } @@ -19100,10 +19100,10 @@ uint32_t ThriftHiveMetastore_get_functions_result::write(::apache::thrift::proto xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter677; - for (_iter677 = this->success.begin(); _iter677 != this->success.end(); ++_iter677) + std::vector ::const_iterator _iter684; + for (_iter684 = this->success.begin(); _iter684 != this->success.end(); ++_iter684) { - xfer += oprot->writeString((*_iter677)); + xfer += oprot->writeString((*_iter684)); } xfer += oprot->writeListEnd(); } @@ -19142,14 +19142,14 @@ uint32_t ThriftHiveMetastore_get_functions_presult::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size678; - ::apache::thrift::protocol::TType _etype681; - xfer += iprot->readListBegin(_etype681, _size678); - (*(this->success)).resize(_size678); - uint32_t _i682; - for (_i682 = 0; _i682 < _size678; ++_i682) + uint32_t _size685; + ::apache::thrift::protocol::TType _etype688; + xfer += iprot->readListBegin(_etype688, _size685); + (*(this->success)).resize(_size685); + uint32_t _i689; + for (_i689 = 0; _i689 < _size685; ++_i689) { - xfer += iprot->readString((*(this->success))[_i682]); + xfer += iprot->readString((*(this->success))[_i689]); } xfer += iprot->readListEnd(); } @@ -19829,14 +19829,14 @@ uint32_t ThriftHiveMetastore_get_role_names_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size683; - ::apache::thrift::protocol::TType _etype686; - xfer += iprot->readListBegin(_etype686, _size683); - this->success.resize(_size683); - uint32_t _i687; - for (_i687 = 0; _i687 < _size683; ++_i687) + uint32_t _size690; + ::apache::thrift::protocol::TType _etype693; + xfer += iprot->readListBegin(_etype693, _size690); + this->success.resize(_size690); + uint32_t _i694; + for (_i694 = 0; _i694 < _size690; ++_i694) { - xfer += iprot->readString(this->success[_i687]); + xfer += iprot->readString(this->success[_i694]); } xfer += iprot->readListEnd(); } @@ -19875,10 +19875,10 @@ uint32_t ThriftHiveMetastore_get_role_names_result::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter688; - for (_iter688 = this->success.begin(); _iter688 != this->success.end(); ++_iter688) + std::vector ::const_iterator _iter695; + for (_iter695 = this->success.begin(); _iter695 != this->success.end(); ++_iter695) { - xfer += oprot->writeString((*_iter688)); + xfer += oprot->writeString((*_iter695)); } xfer += oprot->writeListEnd(); } @@ -19917,14 +19917,14 @@ uint32_t ThriftHiveMetastore_get_role_names_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size689; - ::apache::thrift::protocol::TType _etype692; - xfer += iprot->readListBegin(_etype692, _size689); - (*(this->success)).resize(_size689); - uint32_t _i693; - for (_i693 = 0; _i693 < _size689; ++_i693) + uint32_t _size696; + ::apache::thrift::protocol::TType _etype699; + xfer += iprot->readListBegin(_etype699, _size696); + (*(this->success)).resize(_size696); + uint32_t _i700; + for (_i700 = 0; _i700 < _size696; ++_i700) { - xfer += iprot->readString((*(this->success))[_i693]); + xfer += iprot->readString((*(this->success))[_i700]); } xfer += iprot->readListEnd(); } @@ -19991,9 +19991,9 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast694; - xfer += iprot->readI32(ecast694); - this->principal_type = (PrincipalType::type)ecast694; + int32_t ecast701; + xfer += iprot->readI32(ecast701); + this->principal_type = (PrincipalType::type)ecast701; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -20009,9 +20009,9 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast695; - xfer += iprot->readI32(ecast695); - this->grantorType = (PrincipalType::type)ecast695; + int32_t ecast702; + xfer += iprot->readI32(ecast702); + this->grantorType = (PrincipalType::type)ecast702; this->__isset.grantorType = true; } else { xfer += iprot->skip(ftype); @@ -20257,9 +20257,9 @@ uint32_t ThriftHiveMetastore_revoke_role_args::read(::apache::thrift::protocol:: break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast696; - xfer += iprot->readI32(ecast696); - this->principal_type = (PrincipalType::type)ecast696; + int32_t ecast703; + xfer += iprot->readI32(ecast703); + this->principal_type = (PrincipalType::type)ecast703; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -20465,9 +20465,9 @@ uint32_t ThriftHiveMetastore_list_roles_args::read(::apache::thrift::protocol::T break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast697; - xfer += iprot->readI32(ecast697); - this->principal_type = (PrincipalType::type)ecast697; + int32_t ecast704; + xfer += iprot->readI32(ecast704); + this->principal_type = (PrincipalType::type)ecast704; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -20543,14 +20543,14 @@ uint32_t ThriftHiveMetastore_list_roles_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size698; - ::apache::thrift::protocol::TType _etype701; - xfer += iprot->readListBegin(_etype701, _size698); - this->success.resize(_size698); - uint32_t _i702; - for (_i702 = 0; _i702 < _size698; ++_i702) + uint32_t _size705; + ::apache::thrift::protocol::TType _etype708; + xfer += iprot->readListBegin(_etype708, _size705); + this->success.resize(_size705); + uint32_t _i709; + for (_i709 = 0; _i709 < _size705; ++_i709) { - xfer += this->success[_i702].read(iprot); + xfer += this->success[_i709].read(iprot); } xfer += iprot->readListEnd(); } @@ -20589,10 +20589,10 @@ uint32_t ThriftHiveMetastore_list_roles_result::write(::apache::thrift::protocol xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter703; - for (_iter703 = this->success.begin(); _iter703 != this->success.end(); ++_iter703) + std::vector ::const_iterator _iter710; + for (_iter710 = this->success.begin(); _iter710 != this->success.end(); ++_iter710) { - xfer += (*_iter703).write(oprot); + xfer += (*_iter710).write(oprot); } xfer += oprot->writeListEnd(); } @@ -20631,14 +20631,14 @@ uint32_t ThriftHiveMetastore_list_roles_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size704; - ::apache::thrift::protocol::TType _etype707; - xfer += iprot->readListBegin(_etype707, _size704); - (*(this->success)).resize(_size704); - uint32_t _i708; - for (_i708 = 0; _i708 < _size704; ++_i708) + uint32_t _size711; + ::apache::thrift::protocol::TType _etype714; + xfer += iprot->readListBegin(_etype714, _size711); + (*(this->success)).resize(_size711); + uint32_t _i715; + for (_i715 = 0; _i715 < _size711; ++_i715) { - xfer += (*(this->success))[_i708].read(iprot); + xfer += (*(this->success))[_i715].read(iprot); } xfer += iprot->readListEnd(); } @@ -20707,14 +20707,14 @@ uint32_t ThriftHiveMetastore_get_privilege_set_args::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->group_names.clear(); - uint32_t _size709; - ::apache::thrift::protocol::TType _etype712; - xfer += iprot->readListBegin(_etype712, _size709); - this->group_names.resize(_size709); - uint32_t _i713; - for (_i713 = 0; _i713 < _size709; ++_i713) + uint32_t _size716; + ::apache::thrift::protocol::TType _etype719; + xfer += iprot->readListBegin(_etype719, _size716); + this->group_names.resize(_size716); + uint32_t _i720; + for (_i720 = 0; _i720 < _size716; ++_i720) { - xfer += iprot->readString(this->group_names[_i713]); + xfer += iprot->readString(this->group_names[_i720]); } xfer += iprot->readListEnd(); } @@ -20750,10 +20750,10 @@ uint32_t ThriftHiveMetastore_get_privilege_set_args::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size())); - std::vector ::const_iterator _iter714; - for (_iter714 = this->group_names.begin(); _iter714 != this->group_names.end(); ++_iter714) + std::vector ::const_iterator _iter721; + for (_iter721 = this->group_names.begin(); _iter721 != this->group_names.end(); ++_iter721) { - xfer += oprot->writeString((*_iter714)); + xfer += oprot->writeString((*_iter721)); } xfer += oprot->writeListEnd(); } @@ -20779,10 +20779,10 @@ uint32_t ThriftHiveMetastore_get_privilege_set_pargs::write(::apache::thrift::pr xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size())); - std::vector ::const_iterator _iter715; - for (_iter715 = (*(this->group_names)).begin(); _iter715 != (*(this->group_names)).end(); ++_iter715) + std::vector ::const_iterator _iter722; + for (_iter722 = (*(this->group_names)).begin(); _iter722 != (*(this->group_names)).end(); ++_iter722) { - xfer += oprot->writeString((*_iter715)); + xfer += oprot->writeString((*_iter722)); } xfer += oprot->writeListEnd(); } @@ -20939,9 +20939,9 @@ uint32_t ThriftHiveMetastore_list_privileges_args::read(::apache::thrift::protoc break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast716; - xfer += iprot->readI32(ecast716); - this->principal_type = (PrincipalType::type)ecast716; + int32_t ecast723; + xfer += iprot->readI32(ecast723); + this->principal_type = (PrincipalType::type)ecast723; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -21033,14 +21033,14 @@ uint32_t ThriftHiveMetastore_list_privileges_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size717; - ::apache::thrift::protocol::TType _etype720; - xfer += iprot->readListBegin(_etype720, _size717); - this->success.resize(_size717); - uint32_t _i721; - for (_i721 = 0; _i721 < _size717; ++_i721) + uint32_t _size724; + ::apache::thrift::protocol::TType _etype727; + xfer += iprot->readListBegin(_etype727, _size724); + this->success.resize(_size724); + uint32_t _i728; + for (_i728 = 0; _i728 < _size724; ++_i728) { - xfer += this->success[_i721].read(iprot); + xfer += this->success[_i728].read(iprot); } xfer += iprot->readListEnd(); } @@ -21079,10 +21079,10 @@ uint32_t ThriftHiveMetastore_list_privileges_result::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter722; - for (_iter722 = this->success.begin(); _iter722 != this->success.end(); ++_iter722) + std::vector ::const_iterator _iter729; + for (_iter729 = this->success.begin(); _iter729 != this->success.end(); ++_iter729) { - xfer += (*_iter722).write(oprot); + xfer += (*_iter729).write(oprot); } xfer += oprot->writeListEnd(); } @@ -21121,14 +21121,14 @@ uint32_t ThriftHiveMetastore_list_privileges_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size723; - ::apache::thrift::protocol::TType _etype726; - xfer += iprot->readListBegin(_etype726, _size723); - (*(this->success)).resize(_size723); - uint32_t _i727; - for (_i727 = 0; _i727 < _size723; ++_i727) + uint32_t _size730; + ::apache::thrift::protocol::TType _etype733; + xfer += iprot->readListBegin(_etype733, _size730); + (*(this->success)).resize(_size730); + uint32_t _i734; + for (_i734 = 0; _i734 < _size730; ++_i734) { - xfer += (*(this->success))[_i727].read(iprot); + xfer += (*(this->success))[_i734].read(iprot); } xfer += iprot->readListEnd(); } @@ -21553,14 +21553,14 @@ uint32_t ThriftHiveMetastore_set_ugi_args::read(::apache::thrift::protocol::TPro if (ftype == ::apache::thrift::protocol::T_LIST) { { this->group_names.clear(); - uint32_t _size728; - ::apache::thrift::protocol::TType _etype731; - xfer += iprot->readListBegin(_etype731, _size728); - this->group_names.resize(_size728); - uint32_t _i732; - for (_i732 = 0; _i732 < _size728; ++_i732) + uint32_t _size735; + ::apache::thrift::protocol::TType _etype738; + xfer += iprot->readListBegin(_etype738, _size735); + this->group_names.resize(_size735); + uint32_t _i739; + for (_i739 = 0; _i739 < _size735; ++_i739) { - xfer += iprot->readString(this->group_names[_i732]); + xfer += iprot->readString(this->group_names[_i739]); } xfer += iprot->readListEnd(); } @@ -21592,10 +21592,10 @@ uint32_t ThriftHiveMetastore_set_ugi_args::write(::apache::thrift::protocol::TPr xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size())); - std::vector ::const_iterator _iter733; - for (_iter733 = this->group_names.begin(); _iter733 != this->group_names.end(); ++_iter733) + std::vector ::const_iterator _iter740; + for (_iter740 = this->group_names.begin(); _iter740 != this->group_names.end(); ++_iter740) { - xfer += oprot->writeString((*_iter733)); + xfer += oprot->writeString((*_iter740)); } xfer += oprot->writeListEnd(); } @@ -21617,10 +21617,10 @@ uint32_t ThriftHiveMetastore_set_ugi_pargs::write(::apache::thrift::protocol::TP xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size())); - std::vector ::const_iterator _iter734; - for (_iter734 = (*(this->group_names)).begin(); _iter734 != (*(this->group_names)).end(); ++_iter734) + std::vector ::const_iterator _iter741; + for (_iter741 = (*(this->group_names)).begin(); _iter741 != (*(this->group_names)).end(); ++_iter741) { - xfer += oprot->writeString((*_iter734)); + xfer += oprot->writeString((*_iter741)); } xfer += oprot->writeListEnd(); } @@ -21655,14 +21655,14 @@ uint32_t ThriftHiveMetastore_set_ugi_result::read(::apache::thrift::protocol::TP if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size735; - ::apache::thrift::protocol::TType _etype738; - xfer += iprot->readListBegin(_etype738, _size735); - this->success.resize(_size735); - uint32_t _i739; - for (_i739 = 0; _i739 < _size735; ++_i739) + uint32_t _size742; + ::apache::thrift::protocol::TType _etype745; + xfer += iprot->readListBegin(_etype745, _size742); + this->success.resize(_size742); + uint32_t _i746; + for (_i746 = 0; _i746 < _size742; ++_i746) { - xfer += iprot->readString(this->success[_i739]); + xfer += iprot->readString(this->success[_i746]); } xfer += iprot->readListEnd(); } @@ -21701,10 +21701,10 @@ uint32_t ThriftHiveMetastore_set_ugi_result::write(::apache::thrift::protocol::T xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter740; - for (_iter740 = this->success.begin(); _iter740 != this->success.end(); ++_iter740) + std::vector ::const_iterator _iter747; + for (_iter747 = this->success.begin(); _iter747 != this->success.end(); ++_iter747) { - xfer += oprot->writeString((*_iter740)); + xfer += oprot->writeString((*_iter747)); } xfer += oprot->writeListEnd(); } @@ -21743,14 +21743,14 @@ uint32_t ThriftHiveMetastore_set_ugi_presult::read(::apache::thrift::protocol::T if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size741; - ::apache::thrift::protocol::TType _etype744; - xfer += iprot->readListBegin(_etype744, _size741); - (*(this->success)).resize(_size741); - uint32_t _i745; - for (_i745 = 0; _i745 < _size741; ++_i745) + uint32_t _size748; + ::apache::thrift::protocol::TType _etype751; + xfer += iprot->readListBegin(_etype751, _size748); + (*(this->success)).resize(_size748); + uint32_t _i752; + for (_i752 = 0; _i752 < _size748; ++_i752) { - xfer += iprot->readString((*(this->success))[_i745]); + xfer += iprot->readString((*(this->success))[_i752]); } xfer += iprot->readListEnd(); } diff --git metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp index 7efe954..b00bd55 100644 --- metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp +++ metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp @@ -54,6 +54,18 @@ const char* _kFunctionTypeNames[] = { }; const std::map _FunctionType_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(1, _kFunctionTypeValues, _kFunctionTypeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); +int _kResourceTypeValues[] = { + ResourceType::JAR, + ResourceType::FILE, + ResourceType::ARCHIVE +}; +const char* _kResourceTypeNames[] = { + "JAR", + "FILE", + "ARCHIVE" +}; +const std::map _ResourceType_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(3, _kResourceTypeValues, _kResourceTypeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + const char* Version::ascii_fingerprint = "07A9615F837F7D0A952B595DD3020972"; const uint8_t Version::binary_fingerprint[16] = {0x07,0xA9,0x61,0x5F,0x83,0x7F,0x7D,0x0A,0x95,0x2B,0x59,0x5D,0xD3,0x02,0x09,0x72}; @@ -5186,8 +5198,85 @@ void swap(DropPartitionsRequest &a, DropPartitionsRequest &b) { swap(a.__isset, b.__isset); } -const char* Function::ascii_fingerprint = "86DDA615E907A95BA1CF7EDB4925A7F5"; -const uint8_t Function::binary_fingerprint[16] = {0x86,0xDD,0xA6,0x15,0xE9,0x07,0xA9,0x5B,0xA1,0xCF,0x7E,0xDB,0x49,0x25,0xA7,0xF5}; +const char* ResourceUri::ascii_fingerprint = "19B5240589E680301A7E32DF3971EFBE"; +const uint8_t ResourceUri::binary_fingerprint[16] = {0x19,0xB5,0x24,0x05,0x89,0xE6,0x80,0x30,0x1A,0x7E,0x32,0xDF,0x39,0x71,0xEF,0xBE}; + +uint32_t ResourceUri::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast276; + xfer += iprot->readI32(ecast276); + this->resourceType = (ResourceType::type)ecast276; + this->__isset.resourceType = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->uri); + this->__isset.uri = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ResourceUri::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("ResourceUri"); + + xfer += oprot->writeFieldBegin("resourceType", ::apache::thrift::protocol::T_I32, 1); + xfer += oprot->writeI32((int32_t)this->resourceType); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("uri", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->uri); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(ResourceUri &a, ResourceUri &b) { + using ::std::swap; + swap(a.resourceType, b.resourceType); + swap(a.uri, b.uri); + swap(a.__isset, b.__isset); +} + +const char* Function::ascii_fingerprint = "72279C515E70F888568542F97616ADB8"; +const uint8_t Function::binary_fingerprint[16] = {0x72,0x27,0x9C,0x51,0x5E,0x70,0xF8,0x88,0x56,0x85,0x42,0xF9,0x76,0x16,0xAD,0xB8}; uint32_t Function::read(::apache::thrift::protocol::TProtocol* iprot) { @@ -5243,9 +5332,9 @@ uint32_t Function::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast276; - xfer += iprot->readI32(ecast276); - this->ownerType = (PrincipalType::type)ecast276; + int32_t ecast277; + xfer += iprot->readI32(ecast277); + this->ownerType = (PrincipalType::type)ecast277; this->__isset.ownerType = true; } else { xfer += iprot->skip(ftype); @@ -5261,14 +5350,34 @@ uint32_t Function::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 7: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast277; - xfer += iprot->readI32(ecast277); - this->functionType = (FunctionType::type)ecast277; + int32_t ecast278; + xfer += iprot->readI32(ecast278); + this->functionType = (FunctionType::type)ecast278; this->__isset.functionType = true; } else { xfer += iprot->skip(ftype); } break; + case 8: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->resourceUris.clear(); + uint32_t _size279; + ::apache::thrift::protocol::TType _etype282; + xfer += iprot->readListBegin(_etype282, _size279); + this->resourceUris.resize(_size279); + uint32_t _i283; + for (_i283 = 0; _i283 < _size279; ++_i283) + { + xfer += this->resourceUris[_i283].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.resourceUris = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -5313,6 +5422,18 @@ uint32_t Function::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeI32((int32_t)this->functionType); xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("resourceUris", ::apache::thrift::protocol::T_LIST, 8); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->resourceUris.size())); + std::vector ::const_iterator _iter284; + for (_iter284 = this->resourceUris.begin(); _iter284 != this->resourceUris.end(); ++_iter284) + { + xfer += (*_iter284).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; @@ -5327,6 +5448,7 @@ void swap(Function &a, Function &b) { swap(a.ownerType, b.ownerType); swap(a.createTime, b.createTime); swap(a.functionType, b.functionType); + swap(a.resourceUris, b.resourceUris); swap(a.__isset, b.__isset); } diff --git metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h index 7308d9f..33f5766 100644 --- metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h +++ metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h @@ -55,6 +55,16 @@ struct FunctionType { extern const std::map _FunctionType_VALUES_TO_NAMES; +struct ResourceType { + enum type { + JAR = 1, + FILE = 2, + ARCHIVE = 3 + }; +}; + +extern const std::map _ResourceType_VALUES_TO_NAMES; + typedef struct _Version__isset { _Version__isset() : version(false), comments(false) {} bool version; @@ -2743,8 +2753,59 @@ class DropPartitionsRequest { void swap(DropPartitionsRequest &a, DropPartitionsRequest &b); +typedef struct _ResourceUri__isset { + _ResourceUri__isset() : resourceType(false), uri(false) {} + bool resourceType; + bool uri; +} _ResourceUri__isset; + +class ResourceUri { + public: + + static const char* ascii_fingerprint; // = "19B5240589E680301A7E32DF3971EFBE"; + static const uint8_t binary_fingerprint[16]; // = {0x19,0xB5,0x24,0x05,0x89,0xE6,0x80,0x30,0x1A,0x7E,0x32,0xDF,0x39,0x71,0xEF,0xBE}; + + ResourceUri() : resourceType((ResourceType::type)0), uri() { + } + + virtual ~ResourceUri() throw() {} + + ResourceType::type resourceType; + std::string uri; + + _ResourceUri__isset __isset; + + void __set_resourceType(const ResourceType::type val) { + resourceType = val; + } + + void __set_uri(const std::string& val) { + uri = val; + } + + bool operator == (const ResourceUri & rhs) const + { + if (!(resourceType == rhs.resourceType)) + return false; + if (!(uri == rhs.uri)) + return false; + return true; + } + bool operator != (const ResourceUri &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ResourceUri & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +void swap(ResourceUri &a, ResourceUri &b); + typedef struct _Function__isset { - _Function__isset() : functionName(false), dbName(false), className(false), ownerName(false), ownerType(false), createTime(false), functionType(false) {} + _Function__isset() : functionName(false), dbName(false), className(false), ownerName(false), ownerType(false), createTime(false), functionType(false), resourceUris(false) {} bool functionName; bool dbName; bool className; @@ -2752,13 +2813,14 @@ typedef struct _Function__isset { bool ownerType; bool createTime; bool functionType; + bool resourceUris; } _Function__isset; class Function { public: - static const char* ascii_fingerprint; // = "86DDA615E907A95BA1CF7EDB4925A7F5"; - static const uint8_t binary_fingerprint[16]; // = {0x86,0xDD,0xA6,0x15,0xE9,0x07,0xA9,0x5B,0xA1,0xCF,0x7E,0xDB,0x49,0x25,0xA7,0xF5}; + static const char* ascii_fingerprint; // = "72279C515E70F888568542F97616ADB8"; + static const uint8_t binary_fingerprint[16]; // = {0x72,0x27,0x9C,0x51,0x5E,0x70,0xF8,0x88,0x56,0x85,0x42,0xF9,0x76,0x16,0xAD,0xB8}; Function() : functionName(), dbName(), className(), ownerName(), ownerType((PrincipalType::type)0), createTime(0), functionType((FunctionType::type)0) { } @@ -2772,6 +2834,7 @@ class Function { PrincipalType::type ownerType; int32_t createTime; FunctionType::type functionType; + std::vector resourceUris; _Function__isset __isset; @@ -2803,6 +2866,10 @@ class Function { functionType = val; } + void __set_resourceUris(const std::vector & val) { + resourceUris = val; + } + bool operator == (const Function & rhs) const { if (!(functionName == rhs.functionName)) @@ -2819,6 +2886,8 @@ class Function { return false; if (!(functionType == rhs.functionType)) return false; + if (!(resourceUris == rhs.resourceUris)) + return false; return true; } bool operator != (const Function &rhs) const { diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java index 71dc8d7..9f895ad 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java @@ -41,6 +41,7 @@ private static final org.apache.thrift.protocol.TField OWNER_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("ownerType", org.apache.thrift.protocol.TType.I32, (short)5); private static final org.apache.thrift.protocol.TField CREATE_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("createTime", org.apache.thrift.protocol.TType.I32, (short)6); private static final org.apache.thrift.protocol.TField FUNCTION_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("functionType", org.apache.thrift.protocol.TType.I32, (short)7); + private static final org.apache.thrift.protocol.TField RESOURCE_URIS_FIELD_DESC = new org.apache.thrift.protocol.TField("resourceUris", org.apache.thrift.protocol.TType.LIST, (short)8); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -55,6 +56,7 @@ private PrincipalType ownerType; // required private int createTime; // required private FunctionType functionType; // required + private List resourceUris; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -72,7 +74,8 @@ * * @see FunctionType */ - FUNCTION_TYPE((short)7, "functionType"); + FUNCTION_TYPE((short)7, "functionType"), + RESOURCE_URIS((short)8, "resourceUris"); private static final Map byName = new HashMap(); @@ -101,6 +104,8 @@ public static _Fields findByThriftId(int fieldId) { return CREATE_TIME; case 7: // FUNCTION_TYPE return FUNCTION_TYPE; + case 8: // RESOURCE_URIS + return RESOURCE_URIS; default: return null; } @@ -160,6 +165,9 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); tmpMap.put(_Fields.FUNCTION_TYPE, new org.apache.thrift.meta_data.FieldMetaData("functionType", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, FunctionType.class))); + tmpMap.put(_Fields.RESOURCE_URIS, new org.apache.thrift.meta_data.FieldMetaData("resourceUris", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ResourceUri.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Function.class, metaDataMap); } @@ -174,7 +182,8 @@ public Function( String ownerName, PrincipalType ownerType, int createTime, - FunctionType functionType) + FunctionType functionType, + List resourceUris) { this(); this.functionName = functionName; @@ -185,6 +194,7 @@ public Function( this.createTime = createTime; setCreateTimeIsSet(true); this.functionType = functionType; + this.resourceUris = resourceUris; } /** @@ -211,6 +221,13 @@ public Function(Function other) { if (other.isSetFunctionType()) { this.functionType = other.functionType; } + if (other.isSetResourceUris()) { + List __this__resourceUris = new ArrayList(); + for (ResourceUri other_element : other.resourceUris) { + __this__resourceUris.add(new ResourceUri(other_element)); + } + this.resourceUris = __this__resourceUris; + } } public Function deepCopy() { @@ -227,6 +244,7 @@ public void clear() { setCreateTimeIsSet(false); this.createTime = 0; this.functionType = null; + this.resourceUris = null; } public String getFunctionName() { @@ -405,6 +423,44 @@ public void setFunctionTypeIsSet(boolean value) { } } + public int getResourceUrisSize() { + return (this.resourceUris == null) ? 0 : this.resourceUris.size(); + } + + public java.util.Iterator getResourceUrisIterator() { + return (this.resourceUris == null) ? null : this.resourceUris.iterator(); + } + + public void addToResourceUris(ResourceUri elem) { + if (this.resourceUris == null) { + this.resourceUris = new ArrayList(); + } + this.resourceUris.add(elem); + } + + public List getResourceUris() { + return this.resourceUris; + } + + public void setResourceUris(List resourceUris) { + this.resourceUris = resourceUris; + } + + public void unsetResourceUris() { + this.resourceUris = null; + } + + /** Returns true if field resourceUris is set (has been assigned a value) and false otherwise */ + public boolean isSetResourceUris() { + return this.resourceUris != null; + } + + public void setResourceUrisIsSet(boolean value) { + if (!value) { + this.resourceUris = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case FUNCTION_NAME: @@ -463,6 +519,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case RESOURCE_URIS: + if (value == null) { + unsetResourceUris(); + } else { + setResourceUris((List)value); + } + break; + } } @@ -489,6 +553,9 @@ public Object getFieldValue(_Fields field) { case FUNCTION_TYPE: return getFunctionType(); + case RESOURCE_URIS: + return getResourceUris(); + } throw new IllegalStateException(); } @@ -514,6 +581,8 @@ public boolean isSet(_Fields field) { return isSetCreateTime(); case FUNCTION_TYPE: return isSetFunctionType(); + case RESOURCE_URIS: + return isSetResourceUris(); } throw new IllegalStateException(); } @@ -594,6 +663,15 @@ public boolean equals(Function that) { return false; } + boolean this_present_resourceUris = true && this.isSetResourceUris(); + boolean that_present_resourceUris = true && that.isSetResourceUris(); + if (this_present_resourceUris || that_present_resourceUris) { + if (!(this_present_resourceUris && that_present_resourceUris)) + return false; + if (!this.resourceUris.equals(that.resourceUris)) + return false; + } + return true; } @@ -636,6 +714,11 @@ public int hashCode() { if (present_functionType) builder.append(functionType.getValue()); + boolean present_resourceUris = true && (isSetResourceUris()); + builder.append(present_resourceUris); + if (present_resourceUris) + builder.append(resourceUris); + return builder.toHashCode(); } @@ -717,6 +800,16 @@ public int compareTo(Function other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetResourceUris()).compareTo(typedOther.isSetResourceUris()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetResourceUris()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.resourceUris, typedOther.resourceUris); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -788,6 +881,14 @@ public String toString() { sb.append(this.functionType); } first = false; + if (!first) sb.append(", "); + sb.append("resourceUris:"); + if (this.resourceUris == null) { + sb.append("null"); + } else { + sb.append(this.resourceUris); + } + first = false; sb.append(")"); return sb.toString(); } @@ -889,6 +990,25 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Function struct) th org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 8: // RESOURCE_URIS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list354 = iprot.readListBegin(); + struct.resourceUris = new ArrayList(_list354.size); + for (int _i355 = 0; _i355 < _list354.size; ++_i355) + { + ResourceUri _elem356; // optional + _elem356 = new ResourceUri(); + _elem356.read(iprot); + struct.resourceUris.add(_elem356); + } + iprot.readListEnd(); + } + struct.setResourceUrisIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -935,6 +1055,18 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, Function struct) t oprot.writeI32(struct.functionType.getValue()); oprot.writeFieldEnd(); } + if (struct.resourceUris != null) { + oprot.writeFieldBegin(RESOURCE_URIS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.resourceUris.size())); + for (ResourceUri _iter357 : struct.resourceUris) + { + _iter357.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -974,7 +1106,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Function struct) th if (struct.isSetFunctionType()) { optionals.set(6); } - oprot.writeBitSet(optionals, 7); + if (struct.isSetResourceUris()) { + optionals.set(7); + } + oprot.writeBitSet(optionals, 8); if (struct.isSetFunctionName()) { oprot.writeString(struct.functionName); } @@ -996,12 +1131,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Function struct) th if (struct.isSetFunctionType()) { oprot.writeI32(struct.functionType.getValue()); } + if (struct.isSetResourceUris()) { + { + oprot.writeI32(struct.resourceUris.size()); + for (ResourceUri _iter358 : struct.resourceUris) + { + _iter358.write(oprot); + } + } + } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, Function struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(7); + BitSet incoming = iprot.readBitSet(8); if (incoming.get(0)) { struct.functionName = iprot.readString(); struct.setFunctionNameIsSet(true); @@ -1030,6 +1174,20 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Function struct) thr struct.functionType = FunctionType.findByValue(iprot.readI32()); struct.setFunctionTypeIsSet(true); } + if (incoming.get(7)) { + { + org.apache.thrift.protocol.TList _list359 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.resourceUris = new ArrayList(_list359.size); + for (int _i360 = 0; _i360 < _list359.size; ++_i360) + { + ResourceUri _elem361; // optional + _elem361 = new ResourceUri(); + _elem361.read(iprot); + struct.resourceUris.add(_elem361); + } + } + struct.setResourceUrisIsSet(true); + } } } diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ResourceType.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ResourceType.java new file mode 100644 index 0000000..b8cb4f1 --- /dev/null +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ResourceType.java @@ -0,0 +1,48 @@ +/** + * Autogenerated by Thrift Compiler (0.9.0) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +package org.apache.hadoop.hive.metastore.api; + + +import java.util.Map; +import java.util.HashMap; +import org.apache.thrift.TEnum; + +public enum ResourceType implements org.apache.thrift.TEnum { + JAR(1), + FILE(2), + ARCHIVE(3); + + private final int value; + + private ResourceType(int value) { + this.value = value; + } + + /** + * Get the integer value of this enum value, as defined in the Thrift IDL. + */ + public int getValue() { + return value; + } + + /** + * Find a the enum type by its integer value, as defined in the Thrift IDL. + * @return null if the value is not found. + */ + public static ResourceType findByValue(int value) { + switch (value) { + case 1: + return JAR; + case 2: + return FILE; + case 3: + return ARCHIVE; + default: + return null; + } + } +} diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ResourceUri.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ResourceUri.java new file mode 100644 index 0000000..c230eab --- /dev/null +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ResourceUri.java @@ -0,0 +1,507 @@ +/** + * Autogenerated by Thrift Compiler (0.9.0) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +package org.apache.hadoop.hive.metastore.api; + +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.thrift.scheme.IScheme; +import org.apache.thrift.scheme.SchemeFactory; +import org.apache.thrift.scheme.StandardScheme; + +import org.apache.thrift.scheme.TupleScheme; +import org.apache.thrift.protocol.TTupleProtocol; +import org.apache.thrift.protocol.TProtocolException; +import org.apache.thrift.EncodingUtils; +import org.apache.thrift.TException; +import java.util.List; +import java.util.ArrayList; +import java.util.Map; +import java.util.HashMap; +import java.util.EnumMap; +import java.util.Set; +import java.util.HashSet; +import java.util.EnumSet; +import java.util.Collections; +import java.util.BitSet; +import java.nio.ByteBuffer; +import java.util.Arrays; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +public class ResourceUri implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ResourceUri"); + + private static final org.apache.thrift.protocol.TField RESOURCE_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("resourceType", org.apache.thrift.protocol.TType.I32, (short)1); + private static final org.apache.thrift.protocol.TField URI_FIELD_DESC = new org.apache.thrift.protocol.TField("uri", org.apache.thrift.protocol.TType.STRING, (short)2); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new ResourceUriStandardSchemeFactory()); + schemes.put(TupleScheme.class, new ResourceUriTupleSchemeFactory()); + } + + private ResourceType resourceType; // required + private String uri; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + /** + * + * @see ResourceType + */ + RESOURCE_TYPE((short)1, "resourceType"), + URI((short)2, "uri"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // RESOURCE_TYPE + return RESOURCE_TYPE; + case 2: // URI + return URI; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.RESOURCE_TYPE, new org.apache.thrift.meta_data.FieldMetaData("resourceType", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ResourceType.class))); + tmpMap.put(_Fields.URI, new org.apache.thrift.meta_data.FieldMetaData("uri", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ResourceUri.class, metaDataMap); + } + + public ResourceUri() { + } + + public ResourceUri( + ResourceType resourceType, + String uri) + { + this(); + this.resourceType = resourceType; + this.uri = uri; + } + + /** + * Performs a deep copy on other. + */ + public ResourceUri(ResourceUri other) { + if (other.isSetResourceType()) { + this.resourceType = other.resourceType; + } + if (other.isSetUri()) { + this.uri = other.uri; + } + } + + public ResourceUri deepCopy() { + return new ResourceUri(this); + } + + @Override + public void clear() { + this.resourceType = null; + this.uri = null; + } + + /** + * + * @see ResourceType + */ + public ResourceType getResourceType() { + return this.resourceType; + } + + /** + * + * @see ResourceType + */ + public void setResourceType(ResourceType resourceType) { + this.resourceType = resourceType; + } + + public void unsetResourceType() { + this.resourceType = null; + } + + /** Returns true if field resourceType is set (has been assigned a value) and false otherwise */ + public boolean isSetResourceType() { + return this.resourceType != null; + } + + public void setResourceTypeIsSet(boolean value) { + if (!value) { + this.resourceType = null; + } + } + + public String getUri() { + return this.uri; + } + + public void setUri(String uri) { + this.uri = uri; + } + + public void unsetUri() { + this.uri = null; + } + + /** Returns true if field uri is set (has been assigned a value) and false otherwise */ + public boolean isSetUri() { + return this.uri != null; + } + + public void setUriIsSet(boolean value) { + if (!value) { + this.uri = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case RESOURCE_TYPE: + if (value == null) { + unsetResourceType(); + } else { + setResourceType((ResourceType)value); + } + break; + + case URI: + if (value == null) { + unsetUri(); + } else { + setUri((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case RESOURCE_TYPE: + return getResourceType(); + + case URI: + return getUri(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case RESOURCE_TYPE: + return isSetResourceType(); + case URI: + return isSetUri(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof ResourceUri) + return this.equals((ResourceUri)that); + return false; + } + + public boolean equals(ResourceUri that) { + if (that == null) + return false; + + boolean this_present_resourceType = true && this.isSetResourceType(); + boolean that_present_resourceType = true && that.isSetResourceType(); + if (this_present_resourceType || that_present_resourceType) { + if (!(this_present_resourceType && that_present_resourceType)) + return false; + if (!this.resourceType.equals(that.resourceType)) + return false; + } + + boolean this_present_uri = true && this.isSetUri(); + boolean that_present_uri = true && that.isSetUri(); + if (this_present_uri || that_present_uri) { + if (!(this_present_uri && that_present_uri)) + return false; + if (!this.uri.equals(that.uri)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + HashCodeBuilder builder = new HashCodeBuilder(); + + boolean present_resourceType = true && (isSetResourceType()); + builder.append(present_resourceType); + if (present_resourceType) + builder.append(resourceType.getValue()); + + boolean present_uri = true && (isSetUri()); + builder.append(present_uri); + if (present_uri) + builder.append(uri); + + return builder.toHashCode(); + } + + public int compareTo(ResourceUri other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + ResourceUri typedOther = (ResourceUri)other; + + lastComparison = Boolean.valueOf(isSetResourceType()).compareTo(typedOther.isSetResourceType()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetResourceType()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.resourceType, typedOther.resourceType); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetUri()).compareTo(typedOther.isSetUri()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUri()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.uri, typedOther.uri); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("ResourceUri("); + boolean first = true; + + sb.append("resourceType:"); + if (this.resourceType == null) { + sb.append("null"); + } else { + sb.append(this.resourceType); + } + first = false; + if (!first) sb.append(", "); + sb.append("uri:"); + if (this.uri == null) { + sb.append("null"); + } else { + sb.append(this.uri); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class ResourceUriStandardSchemeFactory implements SchemeFactory { + public ResourceUriStandardScheme getScheme() { + return new ResourceUriStandardScheme(); + } + } + + private static class ResourceUriStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, ResourceUri struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // RESOURCE_TYPE + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.resourceType = ResourceType.findByValue(iprot.readI32()); + struct.setResourceTypeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // URI + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.uri = iprot.readString(); + struct.setUriIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, ResourceUri struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.resourceType != null) { + oprot.writeFieldBegin(RESOURCE_TYPE_FIELD_DESC); + oprot.writeI32(struct.resourceType.getValue()); + oprot.writeFieldEnd(); + } + if (struct.uri != null) { + oprot.writeFieldBegin(URI_FIELD_DESC); + oprot.writeString(struct.uri); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class ResourceUriTupleSchemeFactory implements SchemeFactory { + public ResourceUriTupleScheme getScheme() { + return new ResourceUriTupleScheme(); + } + } + + private static class ResourceUriTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, ResourceUri struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetResourceType()) { + optionals.set(0); + } + if (struct.isSetUri()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetResourceType()) { + oprot.writeI32(struct.resourceType.getValue()); + } + if (struct.isSetUri()) { + oprot.writeString(struct.uri); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, ResourceUri struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.resourceType = ResourceType.findByValue(iprot.readI32()); + struct.setResourceTypeIsSet(true); + } + if (incoming.get(1)) { + struct.uri = iprot.readString(); + struct.setUriIsSet(true); + } + } + } + +} + diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java index be1e549..00be43c 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java @@ -12930,13 +12930,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_databases_resul case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list354 = iprot.readListBegin(); - struct.success = new ArrayList(_list354.size); - for (int _i355 = 0; _i355 < _list354.size; ++_i355) + org.apache.thrift.protocol.TList _list362 = iprot.readListBegin(); + struct.success = new ArrayList(_list362.size); + for (int _i363 = 0; _i363 < _list362.size; ++_i363) { - String _elem356; // optional - _elem356 = iprot.readString(); - struct.success.add(_elem356); + String _elem364; // optional + _elem364 = iprot.readString(); + struct.success.add(_elem364); } iprot.readListEnd(); } @@ -12971,9 +12971,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_databases_resu oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter357 : struct.success) + for (String _iter365 : struct.success) { - oprot.writeString(_iter357); + oprot.writeString(_iter365); } oprot.writeListEnd(); } @@ -13012,9 +13012,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_databases_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter358 : struct.success) + for (String _iter366 : struct.success) { - oprot.writeString(_iter358); + oprot.writeString(_iter366); } } } @@ -13029,13 +13029,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_databases_result BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list359 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list359.size); - for (int _i360 = 0; _i360 < _list359.size; ++_i360) + org.apache.thrift.protocol.TList _list367 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list367.size); + for (int _i368 = 0; _i368 < _list367.size; ++_i368) { - String _elem361; // optional - _elem361 = iprot.readString(); - struct.success.add(_elem361); + String _elem369; // optional + _elem369 = iprot.readString(); + struct.success.add(_elem369); } } struct.setSuccessIsSet(true); @@ -13692,13 +13692,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_databases_r case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list362 = iprot.readListBegin(); - struct.success = new ArrayList(_list362.size); - for (int _i363 = 0; _i363 < _list362.size; ++_i363) + org.apache.thrift.protocol.TList _list370 = iprot.readListBegin(); + struct.success = new ArrayList(_list370.size); + for (int _i371 = 0; _i371 < _list370.size; ++_i371) { - String _elem364; // optional - _elem364 = iprot.readString(); - struct.success.add(_elem364); + String _elem372; // optional + _elem372 = iprot.readString(); + struct.success.add(_elem372); } iprot.readListEnd(); } @@ -13733,9 +13733,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_databases_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter365 : struct.success) + for (String _iter373 : struct.success) { - oprot.writeString(_iter365); + oprot.writeString(_iter373); } oprot.writeListEnd(); } @@ -13774,9 +13774,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_databases_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter366 : struct.success) + for (String _iter374 : struct.success) { - oprot.writeString(_iter366); + oprot.writeString(_iter374); } } } @@ -13791,13 +13791,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_databases_re BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list367 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list367.size); - for (int _i368 = 0; _i368 < _list367.size; ++_i368) + org.apache.thrift.protocol.TList _list375 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list375.size); + for (int _i376 = 0; _i376 < _list375.size; ++_i376) { - String _elem369; // optional - _elem369 = iprot.readString(); - struct.success.add(_elem369); + String _elem377; // optional + _elem377 = iprot.readString(); + struct.success.add(_elem377); } } struct.setSuccessIsSet(true); @@ -18404,16 +18404,16 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_type_all_result case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map370 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map370.size); - for (int _i371 = 0; _i371 < _map370.size; ++_i371) + org.apache.thrift.protocol.TMap _map378 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map378.size); + for (int _i379 = 0; _i379 < _map378.size; ++_i379) { - String _key372; // required - Type _val373; // required - _key372 = iprot.readString(); - _val373 = new Type(); - _val373.read(iprot); - struct.success.put(_key372, _val373); + String _key380; // required + Type _val381; // required + _key380 = iprot.readString(); + _val381 = new Type(); + _val381.read(iprot); + struct.success.put(_key380, _val381); } iprot.readMapEnd(); } @@ -18448,10 +18448,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_type_all_resul oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Map.Entry _iter374 : struct.success.entrySet()) + for (Map.Entry _iter382 : struct.success.entrySet()) { - oprot.writeString(_iter374.getKey()); - _iter374.getValue().write(oprot); + oprot.writeString(_iter382.getKey()); + _iter382.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -18490,10 +18490,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_type_all_result if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry _iter375 : struct.success.entrySet()) + for (Map.Entry _iter383 : struct.success.entrySet()) { - oprot.writeString(_iter375.getKey()); - _iter375.getValue().write(oprot); + oprot.writeString(_iter383.getKey()); + _iter383.getValue().write(oprot); } } } @@ -18508,16 +18508,16 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_type_all_result BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map376 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new HashMap(2*_map376.size); - for (int _i377 = 0; _i377 < _map376.size; ++_i377) + org.apache.thrift.protocol.TMap _map384 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new HashMap(2*_map384.size); + for (int _i385 = 0; _i385 < _map384.size; ++_i385) { - String _key378; // required - Type _val379; // required - _key378 = iprot.readString(); - _val379 = new Type(); - _val379.read(iprot); - struct.success.put(_key378, _val379); + String _key386; // required + Type _val387; // required + _key386 = iprot.readString(); + _val387 = new Type(); + _val387.read(iprot); + struct.success.put(_key386, _val387); } } struct.setSuccessIsSet(true); @@ -19552,14 +19552,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_fields_result s case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list380 = iprot.readListBegin(); - struct.success = new ArrayList(_list380.size); - for (int _i381 = 0; _i381 < _list380.size; ++_i381) + org.apache.thrift.protocol.TList _list388 = iprot.readListBegin(); + struct.success = new ArrayList(_list388.size); + for (int _i389 = 0; _i389 < _list388.size; ++_i389) { - FieldSchema _elem382; // optional - _elem382 = new FieldSchema(); - _elem382.read(iprot); - struct.success.add(_elem382); + FieldSchema _elem390; // optional + _elem390 = new FieldSchema(); + _elem390.read(iprot); + struct.success.add(_elem390); } iprot.readListEnd(); } @@ -19612,9 +19612,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_fields_result oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (FieldSchema _iter383 : struct.success) + for (FieldSchema _iter391 : struct.success) { - _iter383.write(oprot); + _iter391.write(oprot); } oprot.writeListEnd(); } @@ -19669,9 +19669,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter384 : struct.success) + for (FieldSchema _iter392 : struct.success) { - _iter384.write(oprot); + _iter392.write(oprot); } } } @@ -19692,14 +19692,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_fields_result st BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list385 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list385.size); - for (int _i386 = 0; _i386 < _list385.size; ++_i386) + org.apache.thrift.protocol.TList _list393 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list393.size); + for (int _i394 = 0; _i394 < _list393.size; ++_i394) { - FieldSchema _elem387; // optional - _elem387 = new FieldSchema(); - _elem387.read(iprot); - struct.success.add(_elem387); + FieldSchema _elem395; // optional + _elem395 = new FieldSchema(); + _elem395.read(iprot); + struct.success.add(_elem395); } } struct.setSuccessIsSet(true); @@ -20744,14 +20744,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_result s case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list388 = iprot.readListBegin(); - struct.success = new ArrayList(_list388.size); - for (int _i389 = 0; _i389 < _list388.size; ++_i389) + org.apache.thrift.protocol.TList _list396 = iprot.readListBegin(); + struct.success = new ArrayList(_list396.size); + for (int _i397 = 0; _i397 < _list396.size; ++_i397) { - FieldSchema _elem390; // optional - _elem390 = new FieldSchema(); - _elem390.read(iprot); - struct.success.add(_elem390); + FieldSchema _elem398; // optional + _elem398 = new FieldSchema(); + _elem398.read(iprot); + struct.success.add(_elem398); } iprot.readListEnd(); } @@ -20804,9 +20804,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_schema_result oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (FieldSchema _iter391 : struct.success) + for (FieldSchema _iter399 : struct.success) { - _iter391.write(oprot); + _iter399.write(oprot); } oprot.writeListEnd(); } @@ -20861,9 +20861,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter392 : struct.success) + for (FieldSchema _iter400 : struct.success) { - _iter392.write(oprot); + _iter400.write(oprot); } } } @@ -20884,14 +20884,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_result st BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list393 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list393.size); - for (int _i394 = 0; _i394 < _list393.size; ++_i394) + org.apache.thrift.protocol.TList _list401 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list401.size); + for (int _i402 = 0; _i402 < _list401.size; ++_i402) { - FieldSchema _elem395; // optional - _elem395 = new FieldSchema(); - _elem395.read(iprot); - struct.success.add(_elem395); + FieldSchema _elem403; // optional + _elem403 = new FieldSchema(); + _elem403.read(iprot); + struct.success.add(_elem403); } } struct.setSuccessIsSet(true); @@ -26134,13 +26134,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_result s case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list396 = iprot.readListBegin(); - struct.success = new ArrayList(_list396.size); - for (int _i397 = 0; _i397 < _list396.size; ++_i397) + org.apache.thrift.protocol.TList _list404 = iprot.readListBegin(); + struct.success = new ArrayList(_list404.size); + for (int _i405 = 0; _i405 < _list404.size; ++_i405) { - String _elem398; // optional - _elem398 = iprot.readString(); - struct.success.add(_elem398); + String _elem406; // optional + _elem406 = iprot.readString(); + struct.success.add(_elem406); } iprot.readListEnd(); } @@ -26175,9 +26175,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_result oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter399 : struct.success) + for (String _iter407 : struct.success) { - oprot.writeString(_iter399); + oprot.writeString(_iter407); } oprot.writeListEnd(); } @@ -26216,9 +26216,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter400 : struct.success) + for (String _iter408 : struct.success) { - oprot.writeString(_iter400); + oprot.writeString(_iter408); } } } @@ -26233,13 +26233,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_result st BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list401 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list401.size); - for (int _i402 = 0; _i402 < _list401.size; ++_i402) + org.apache.thrift.protocol.TList _list409 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list409.size); + for (int _i410 = 0; _i410 < _list409.size; ++_i410) { - String _elem403; // optional - _elem403 = iprot.readString(); - struct.success.add(_elem403); + String _elem411; // optional + _elem411 = iprot.readString(); + struct.success.add(_elem411); } } struct.setSuccessIsSet(true); @@ -27008,13 +27008,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_tables_resu case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list404 = iprot.readListBegin(); - struct.success = new ArrayList(_list404.size); - for (int _i405 = 0; _i405 < _list404.size; ++_i405) + org.apache.thrift.protocol.TList _list412 = iprot.readListBegin(); + struct.success = new ArrayList(_list412.size); + for (int _i413 = 0; _i413 < _list412.size; ++_i413) { - String _elem406; // optional - _elem406 = iprot.readString(); - struct.success.add(_elem406); + String _elem414; // optional + _elem414 = iprot.readString(); + struct.success.add(_elem414); } iprot.readListEnd(); } @@ -27049,9 +27049,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_tables_res oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter407 : struct.success) + for (String _iter415 : struct.success) { - oprot.writeString(_iter407); + oprot.writeString(_iter415); } oprot.writeListEnd(); } @@ -27090,9 +27090,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_tables_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter408 : struct.success) + for (String _iter416 : struct.success) { - oprot.writeString(_iter408); + oprot.writeString(_iter416); } } } @@ -27107,13 +27107,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_tables_resul BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list409 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list409.size); - for (int _i410 = 0; _i410 < _list409.size; ++_i410) + org.apache.thrift.protocol.TList _list417 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list417.size); + for (int _i418 = 0; _i418 < _list417.size; ++_i418) { - String _elem411; // optional - _elem411 = iprot.readString(); - struct.success.add(_elem411); + String _elem419; // optional + _elem419 = iprot.readString(); + struct.success.add(_elem419); } } struct.setSuccessIsSet(true); @@ -28569,13 +28569,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_b case 2: // TBL_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list412 = iprot.readListBegin(); - struct.tbl_names = new ArrayList(_list412.size); - for (int _i413 = 0; _i413 < _list412.size; ++_i413) + org.apache.thrift.protocol.TList _list420 = iprot.readListBegin(); + struct.tbl_names = new ArrayList(_list420.size); + for (int _i421 = 0; _i421 < _list420.size; ++_i421) { - String _elem414; // optional - _elem414 = iprot.readString(); - struct.tbl_names.add(_elem414); + String _elem422; // optional + _elem422 = iprot.readString(); + struct.tbl_names.add(_elem422); } iprot.readListEnd(); } @@ -28606,9 +28606,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_ oprot.writeFieldBegin(TBL_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.tbl_names.size())); - for (String _iter415 : struct.tbl_names) + for (String _iter423 : struct.tbl_names) { - oprot.writeString(_iter415); + oprot.writeString(_iter423); } oprot.writeListEnd(); } @@ -28645,9 +28645,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_b if (struct.isSetTbl_names()) { { oprot.writeI32(struct.tbl_names.size()); - for (String _iter416 : struct.tbl_names) + for (String _iter424 : struct.tbl_names) { - oprot.writeString(_iter416); + oprot.writeString(_iter424); } } } @@ -28663,13 +28663,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list417 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tbl_names = new ArrayList(_list417.size); - for (int _i418 = 0; _i418 < _list417.size; ++_i418) + org.apache.thrift.protocol.TList _list425 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tbl_names = new ArrayList(_list425.size); + for (int _i426 = 0; _i426 < _list425.size; ++_i426) { - String _elem419; // optional - _elem419 = iprot.readString(); - struct.tbl_names.add(_elem419); + String _elem427; // optional + _elem427 = iprot.readString(); + struct.tbl_names.add(_elem427); } } struct.setTbl_namesIsSet(true); @@ -29237,14 +29237,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_b case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list420 = iprot.readListBegin(); - struct.success = new ArrayList
(_list420.size); - for (int _i421 = 0; _i421 < _list420.size; ++_i421) + org.apache.thrift.protocol.TList _list428 = iprot.readListBegin(); + struct.success = new ArrayList
(_list428.size); + for (int _i429 = 0; _i429 < _list428.size; ++_i429) { - Table _elem422; // optional - _elem422 = new Table(); - _elem422.read(iprot); - struct.success.add(_elem422); + Table _elem430; // optional + _elem430 = new Table(); + _elem430.read(iprot); + struct.success.add(_elem430); } iprot.readListEnd(); } @@ -29297,9 +29297,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Table _iter423 : struct.success) + for (Table _iter431 : struct.success) { - _iter423.write(oprot); + _iter431.write(oprot); } oprot.writeListEnd(); } @@ -29354,9 +29354,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_b if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Table _iter424 : struct.success) + for (Table _iter432 : struct.success) { - _iter424.write(oprot); + _iter432.write(oprot); } } } @@ -29377,14 +29377,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list425 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList
(_list425.size); - for (int _i426 = 0; _i426 < _list425.size; ++_i426) + org.apache.thrift.protocol.TList _list433 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList
(_list433.size); + for (int _i434 = 0; _i434 < _list433.size; ++_i434) { - Table _elem427; // optional - _elem427 = new Table(); - _elem427.read(iprot); - struct.success.add(_elem427); + Table _elem435; // optional + _elem435 = new Table(); + _elem435.read(iprot); + struct.success.add(_elem435); } } struct.setSuccessIsSet(true); @@ -30533,13 +30533,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_names_by_ case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list428 = iprot.readListBegin(); - struct.success = new ArrayList(_list428.size); - for (int _i429 = 0; _i429 < _list428.size; ++_i429) + org.apache.thrift.protocol.TList _list436 = iprot.readListBegin(); + struct.success = new ArrayList(_list436.size); + for (int _i437 = 0; _i437 < _list436.size; ++_i437) { - String _elem430; // optional - _elem430 = iprot.readString(); - struct.success.add(_elem430); + String _elem438; // optional + _elem438 = iprot.readString(); + struct.success.add(_elem438); } iprot.readListEnd(); } @@ -30592,9 +30592,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_names_by oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter431 : struct.success) + for (String _iter439 : struct.success) { - oprot.writeString(_iter431); + oprot.writeString(_iter439); } oprot.writeListEnd(); } @@ -30649,9 +30649,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_ if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter432 : struct.success) + for (String _iter440 : struct.success) { - oprot.writeString(_iter432); + oprot.writeString(_iter440); } } } @@ -30672,13 +30672,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_f BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list433 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list433.size); - for (int _i434 = 0; _i434 < _list433.size; ++_i434) + org.apache.thrift.protocol.TList _list441 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list441.size); + for (int _i442 = 0; _i442 < _list441.size; ++_i442) { - String _elem435; // optional - _elem435 = iprot.readString(); - struct.success.add(_elem435); + String _elem443; // optional + _elem443 = iprot.readString(); + struct.success.add(_elem443); } } struct.setSuccessIsSet(true); @@ -35398,14 +35398,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_args case 1: // NEW_PARTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list436 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list436.size); - for (int _i437 = 0; _i437 < _list436.size; ++_i437) + org.apache.thrift.protocol.TList _list444 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list444.size); + for (int _i445 = 0; _i445 < _list444.size; ++_i445) { - Partition _elem438; // optional - _elem438 = new Partition(); - _elem438.read(iprot); - struct.new_parts.add(_elem438); + Partition _elem446; // optional + _elem446 = new Partition(); + _elem446.read(iprot); + struct.new_parts.add(_elem446); } iprot.readListEnd(); } @@ -35431,9 +35431,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_arg oprot.writeFieldBegin(NEW_PARTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.new_parts.size())); - for (Partition _iter439 : struct.new_parts) + for (Partition _iter447 : struct.new_parts) { - _iter439.write(oprot); + _iter447.write(oprot); } oprot.writeListEnd(); } @@ -35464,9 +35464,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_args if (struct.isSetNew_parts()) { { oprot.writeI32(struct.new_parts.size()); - for (Partition _iter440 : struct.new_parts) + for (Partition _iter448 : struct.new_parts) { - _iter440.write(oprot); + _iter448.write(oprot); } } } @@ -35478,14 +35478,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_args BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list441 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list441.size); - for (int _i442 = 0; _i442 < _list441.size; ++_i442) + org.apache.thrift.protocol.TList _list449 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list449.size); + for (int _i450 = 0; _i450 < _list449.size; ++_i450) { - Partition _elem443; // optional - _elem443 = new Partition(); - _elem443.read(iprot); - struct.new_parts.add(_elem443); + Partition _elem451; // optional + _elem451 = new Partition(); + _elem451.read(iprot); + struct.new_parts.add(_elem451); } } struct.setNew_partsIsSet(true); @@ -36664,13 +36664,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_ar case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list444 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list444.size); - for (int _i445 = 0; _i445 < _list444.size; ++_i445) + org.apache.thrift.protocol.TList _list452 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list452.size); + for (int _i453 = 0; _i453 < _list452.size; ++_i453) { - String _elem446; // optional - _elem446 = iprot.readString(); - struct.part_vals.add(_elem446); + String _elem454; // optional + _elem454 = iprot.readString(); + struct.part_vals.add(_elem454); } iprot.readListEnd(); } @@ -36706,9 +36706,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_a oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter447 : struct.part_vals) + for (String _iter455 : struct.part_vals) { - oprot.writeString(_iter447); + oprot.writeString(_iter455); } oprot.writeListEnd(); } @@ -36751,9 +36751,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_ar if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter448 : struct.part_vals) + for (String _iter456 : struct.part_vals) { - oprot.writeString(_iter448); + oprot.writeString(_iter456); } } } @@ -36773,13 +36773,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list449 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list449.size); - for (int _i450 = 0; _i450 < _list449.size; ++_i450) + org.apache.thrift.protocol.TList _list457 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list457.size); + for (int _i458 = 0; _i458 < _list457.size; ++_i458) { - String _elem451; // optional - _elem451 = iprot.readString(); - struct.part_vals.add(_elem451); + String _elem459; // optional + _elem459 = iprot.readString(); + struct.part_vals.add(_elem459); } } struct.setPart_valsIsSet(true); @@ -39091,13 +39091,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_wi case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list452 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list452.size); - for (int _i453 = 0; _i453 < _list452.size; ++_i453) + org.apache.thrift.protocol.TList _list460 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list460.size); + for (int _i461 = 0; _i461 < _list460.size; ++_i461) { - String _elem454; // optional - _elem454 = iprot.readString(); - struct.part_vals.add(_elem454); + String _elem462; // optional + _elem462 = iprot.readString(); + struct.part_vals.add(_elem462); } iprot.readListEnd(); } @@ -39142,9 +39142,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_w oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter455 : struct.part_vals) + for (String _iter463 : struct.part_vals) { - oprot.writeString(_iter455); + oprot.writeString(_iter463); } oprot.writeListEnd(); } @@ -39195,9 +39195,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_wi if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter456 : struct.part_vals) + for (String _iter464 : struct.part_vals) { - oprot.writeString(_iter456); + oprot.writeString(_iter464); } } } @@ -39220,13 +39220,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_wit } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list457 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list457.size); - for (int _i458 = 0; _i458 < _list457.size; ++_i458) + org.apache.thrift.protocol.TList _list465 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list465.size); + for (int _i466 = 0; _i466 < _list465.size; ++_i466) { - String _elem459; // optional - _elem459 = iprot.readString(); - struct.part_vals.add(_elem459); + String _elem467; // optional + _elem467 = iprot.readString(); + struct.part_vals.add(_elem467); } } struct.setPart_valsIsSet(true); @@ -43099,13 +43099,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_args case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list460 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list460.size); - for (int _i461 = 0; _i461 < _list460.size; ++_i461) + org.apache.thrift.protocol.TList _list468 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list468.size); + for (int _i469 = 0; _i469 < _list468.size; ++_i469) { - String _elem462; // optional - _elem462 = iprot.readString(); - struct.part_vals.add(_elem462); + String _elem470; // optional + _elem470 = iprot.readString(); + struct.part_vals.add(_elem470); } iprot.readListEnd(); } @@ -43149,9 +43149,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_arg oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter463 : struct.part_vals) + for (String _iter471 : struct.part_vals) { - oprot.writeString(_iter463); + oprot.writeString(_iter471); } oprot.writeListEnd(); } @@ -43200,9 +43200,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_args if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter464 : struct.part_vals) + for (String _iter472 : struct.part_vals) { - oprot.writeString(_iter464); + oprot.writeString(_iter472); } } } @@ -43225,13 +43225,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_args } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list465 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list465.size); - for (int _i466 = 0; _i466 < _list465.size; ++_i466) + org.apache.thrift.protocol.TList _list473 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list473.size); + for (int _i474 = 0; _i474 < _list473.size; ++_i474) { - String _elem467; // optional - _elem467 = iprot.readString(); - struct.part_vals.add(_elem467); + String _elem475; // optional + _elem475 = iprot.readString(); + struct.part_vals.add(_elem475); } } struct.setPart_valsIsSet(true); @@ -44473,13 +44473,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_with case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list468 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list468.size); - for (int _i469 = 0; _i469 < _list468.size; ++_i469) + org.apache.thrift.protocol.TList _list476 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list476.size); + for (int _i477 = 0; _i477 < _list476.size; ++_i477) { - String _elem470; // optional - _elem470 = iprot.readString(); - struct.part_vals.add(_elem470); + String _elem478; // optional + _elem478 = iprot.readString(); + struct.part_vals.add(_elem478); } iprot.readListEnd(); } @@ -44532,9 +44532,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_wit oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter471 : struct.part_vals) + for (String _iter479 : struct.part_vals) { - oprot.writeString(_iter471); + oprot.writeString(_iter479); } oprot.writeListEnd(); } @@ -44591,9 +44591,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_with if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter472 : struct.part_vals) + for (String _iter480 : struct.part_vals) { - oprot.writeString(_iter472); + oprot.writeString(_iter480); } } } @@ -44619,13 +44619,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_ } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list473 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list473.size); - for (int _i474 = 0; _i474 < _list473.size; ++_i474) + org.apache.thrift.protocol.TList _list481 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list481.size); + for (int _i482 = 0; _i482 < _list481.size; ++_i482) { - String _elem475; // optional - _elem475 = iprot.readString(); - struct.part_vals.add(_elem475); + String _elem483; // optional + _elem483 = iprot.readString(); + struct.part_vals.add(_elem483); } } struct.setPart_valsIsSet(true); @@ -49230,13 +49230,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_args case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list476 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list476.size); - for (int _i477 = 0; _i477 < _list476.size; ++_i477) + org.apache.thrift.protocol.TList _list484 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list484.size); + for (int _i485 = 0; _i485 < _list484.size; ++_i485) { - String _elem478; // optional - _elem478 = iprot.readString(); - struct.part_vals.add(_elem478); + String _elem486; // optional + _elem486 = iprot.readString(); + struct.part_vals.add(_elem486); } iprot.readListEnd(); } @@ -49272,9 +49272,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_args oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter479 : struct.part_vals) + for (String _iter487 : struct.part_vals) { - oprot.writeString(_iter479); + oprot.writeString(_iter487); } oprot.writeListEnd(); } @@ -49317,9 +49317,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_args if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter480 : struct.part_vals) + for (String _iter488 : struct.part_vals) { - oprot.writeString(_iter480); + oprot.writeString(_iter488); } } } @@ -49339,13 +49339,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_args s } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list481 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list481.size); - for (int _i482 = 0; _i482 < _list481.size; ++_i482) + org.apache.thrift.protocol.TList _list489 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list489.size); + for (int _i490 = 0; _i490 < _list489.size; ++_i490) { - String _elem483; // optional - _elem483 = iprot.readString(); - struct.part_vals.add(_elem483); + String _elem491; // optional + _elem491 = iprot.readString(); + struct.part_vals.add(_elem491); } } struct.setPart_valsIsSet(true); @@ -50574,15 +50574,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partition_ case 1: // PARTITION_SPECS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map484 = iprot.readMapBegin(); - struct.partitionSpecs = new HashMap(2*_map484.size); - for (int _i485 = 0; _i485 < _map484.size; ++_i485) + org.apache.thrift.protocol.TMap _map492 = iprot.readMapBegin(); + struct.partitionSpecs = new HashMap(2*_map492.size); + for (int _i493 = 0; _i493 < _map492.size; ++_i493) { - String _key486; // required - String _val487; // required - _key486 = iprot.readString(); - _val487 = iprot.readString(); - struct.partitionSpecs.put(_key486, _val487); + String _key494; // required + String _val495; // required + _key494 = iprot.readString(); + _val495 = iprot.readString(); + struct.partitionSpecs.put(_key494, _val495); } iprot.readMapEnd(); } @@ -50640,10 +50640,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition oprot.writeFieldBegin(PARTITION_SPECS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.partitionSpecs.size())); - for (Map.Entry _iter488 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter496 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter488.getKey()); - oprot.writeString(_iter488.getValue()); + oprot.writeString(_iter496.getKey()); + oprot.writeString(_iter496.getValue()); } oprot.writeMapEnd(); } @@ -50706,10 +50706,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_ if (struct.isSetPartitionSpecs()) { { oprot.writeI32(struct.partitionSpecs.size()); - for (Map.Entry _iter489 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter497 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter489.getKey()); - oprot.writeString(_iter489.getValue()); + oprot.writeString(_iter497.getKey()); + oprot.writeString(_iter497.getValue()); } } } @@ -50733,15 +50733,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partition_a BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map490 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partitionSpecs = new HashMap(2*_map490.size); - for (int _i491 = 0; _i491 < _map490.size; ++_i491) + org.apache.thrift.protocol.TMap _map498 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionSpecs = new HashMap(2*_map498.size); + for (int _i499 = 0; _i499 < _map498.size; ++_i499) { - String _key492; // required - String _val493; // required - _key492 = iprot.readString(); - _val493 = iprot.readString(); - struct.partitionSpecs.put(_key492, _val493); + String _key500; // required + String _val501; // required + _key500 = iprot.readString(); + _val501 = iprot.readString(); + struct.partitionSpecs.put(_key500, _val501); } } struct.setPartitionSpecsIsSet(true); @@ -52229,13 +52229,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_ case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list494 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list494.size); - for (int _i495 = 0; _i495 < _list494.size; ++_i495) + org.apache.thrift.protocol.TList _list502 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list502.size); + for (int _i503 = 0; _i503 < _list502.size; ++_i503) { - String _elem496; // optional - _elem496 = iprot.readString(); - struct.part_vals.add(_elem496); + String _elem504; // optional + _elem504 = iprot.readString(); + struct.part_vals.add(_elem504); } iprot.readListEnd(); } @@ -52255,13 +52255,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_ case 5: // GROUP_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list497 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list497.size); - for (int _i498 = 0; _i498 < _list497.size; ++_i498) + org.apache.thrift.protocol.TList _list505 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list505.size); + for (int _i506 = 0; _i506 < _list505.size; ++_i506) { - String _elem499; // optional - _elem499 = iprot.readString(); - struct.group_names.add(_elem499); + String _elem507; // optional + _elem507 = iprot.readString(); + struct.group_names.add(_elem507); } iprot.readListEnd(); } @@ -52297,9 +52297,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_with oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter500 : struct.part_vals) + for (String _iter508 : struct.part_vals) { - oprot.writeString(_iter500); + oprot.writeString(_iter508); } oprot.writeListEnd(); } @@ -52314,9 +52314,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_with oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); - for (String _iter501 : struct.group_names) + for (String _iter509 : struct.group_names) { - oprot.writeString(_iter501); + oprot.writeString(_iter509); } oprot.writeListEnd(); } @@ -52365,9 +52365,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_with_ if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter502 : struct.part_vals) + for (String _iter510 : struct.part_vals) { - oprot.writeString(_iter502); + oprot.writeString(_iter510); } } } @@ -52377,9 +52377,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_with_ if (struct.isSetGroup_names()) { { oprot.writeI32(struct.group_names.size()); - for (String _iter503 : struct.group_names) + for (String _iter511 : struct.group_names) { - oprot.writeString(_iter503); + oprot.writeString(_iter511); } } } @@ -52399,13 +52399,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list504 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list504.size); - for (int _i505 = 0; _i505 < _list504.size; ++_i505) + org.apache.thrift.protocol.TList _list512 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list512.size); + for (int _i513 = 0; _i513 < _list512.size; ++_i513) { - String _elem506; // optional - _elem506 = iprot.readString(); - struct.part_vals.add(_elem506); + String _elem514; // optional + _elem514 = iprot.readString(); + struct.part_vals.add(_elem514); } } struct.setPart_valsIsSet(true); @@ -52416,13 +52416,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list507 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list507.size); - for (int _i508 = 0; _i508 < _list507.size; ++_i508) + org.apache.thrift.protocol.TList _list515 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list515.size); + for (int _i516 = 0; _i516 < _list515.size; ++_i516) { - String _elem509; // optional - _elem509 = iprot.readString(); - struct.group_names.add(_elem509); + String _elem517; // optional + _elem517 = iprot.readString(); + struct.group_names.add(_elem517); } } struct.setGroup_namesIsSet(true); @@ -55191,14 +55191,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_resu case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list510 = iprot.readListBegin(); - struct.success = new ArrayList(_list510.size); - for (int _i511 = 0; _i511 < _list510.size; ++_i511) + org.apache.thrift.protocol.TList _list518 = iprot.readListBegin(); + struct.success = new ArrayList(_list518.size); + for (int _i519 = 0; _i519 < _list518.size; ++_i519) { - Partition _elem512; // optional - _elem512 = new Partition(); - _elem512.read(iprot); - struct.success.add(_elem512); + Partition _elem520; // optional + _elem520 = new Partition(); + _elem520.read(iprot); + struct.success.add(_elem520); } iprot.readListEnd(); } @@ -55242,9 +55242,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_res oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter513 : struct.success) + for (Partition _iter521 : struct.success) { - _iter513.write(oprot); + _iter521.write(oprot); } oprot.writeListEnd(); } @@ -55291,9 +55291,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter514 : struct.success) + for (Partition _iter522 : struct.success) { - _iter514.write(oprot); + _iter522.write(oprot); } } } @@ -55311,14 +55311,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_resul BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list515 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list515.size); - for (int _i516 = 0; _i516 < _list515.size; ++_i516) + org.apache.thrift.protocol.TList _list523 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list523.size); + for (int _i524 = 0; _i524 < _list523.size; ++_i524) { - Partition _elem517; // optional - _elem517 = new Partition(); - _elem517.read(iprot); - struct.success.add(_elem517); + Partition _elem525; // optional + _elem525 = new Partition(); + _elem525.read(iprot); + struct.success.add(_elem525); } } struct.setSuccessIsSet(true); @@ -56011,13 +56011,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with case 5: // GROUP_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list518 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list518.size); - for (int _i519 = 0; _i519 < _list518.size; ++_i519) + org.apache.thrift.protocol.TList _list526 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list526.size); + for (int _i527 = 0; _i527 < _list526.size; ++_i527) { - String _elem520; // optional - _elem520 = iprot.readString(); - struct.group_names.add(_elem520); + String _elem528; // optional + _elem528 = iprot.readString(); + struct.group_names.add(_elem528); } iprot.readListEnd(); } @@ -56061,9 +56061,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_wit oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); - for (String _iter521 : struct.group_names) + for (String _iter529 : struct.group_names) { - oprot.writeString(_iter521); + oprot.writeString(_iter529); } oprot.writeListEnd(); } @@ -56118,9 +56118,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with if (struct.isSetGroup_names()) { { oprot.writeI32(struct.group_names.size()); - for (String _iter522 : struct.group_names) + for (String _iter530 : struct.group_names) { - oprot.writeString(_iter522); + oprot.writeString(_iter530); } } } @@ -56148,13 +56148,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list523 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list523.size); - for (int _i524 = 0; _i524 < _list523.size; ++_i524) + org.apache.thrift.protocol.TList _list531 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list531.size); + for (int _i532 = 0; _i532 < _list531.size; ++_i532) { - String _elem525; // optional - _elem525 = iprot.readString(); - struct.group_names.add(_elem525); + String _elem533; // optional + _elem533 = iprot.readString(); + struct.group_names.add(_elem533); } } struct.setGroup_namesIsSet(true); @@ -56641,14 +56641,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list526 = iprot.readListBegin(); - struct.success = new ArrayList(_list526.size); - for (int _i527 = 0; _i527 < _list526.size; ++_i527) + org.apache.thrift.protocol.TList _list534 = iprot.readListBegin(); + struct.success = new ArrayList(_list534.size); + for (int _i535 = 0; _i535 < _list534.size; ++_i535) { - Partition _elem528; // optional - _elem528 = new Partition(); - _elem528.read(iprot); - struct.success.add(_elem528); + Partition _elem536; // optional + _elem536 = new Partition(); + _elem536.read(iprot); + struct.success.add(_elem536); } iprot.readListEnd(); } @@ -56692,9 +56692,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_wit oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter529 : struct.success) + for (Partition _iter537 : struct.success) { - _iter529.write(oprot); + _iter537.write(oprot); } oprot.writeListEnd(); } @@ -56741,9 +56741,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter530 : struct.success) + for (Partition _iter538 : struct.success) { - _iter530.write(oprot); + _iter538.write(oprot); } } } @@ -56761,14 +56761,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list531 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list531.size); - for (int _i532 = 0; _i532 < _list531.size; ++_i532) + org.apache.thrift.protocol.TList _list539 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list539.size); + for (int _i540 = 0; _i540 < _list539.size; ++_i540) { - Partition _elem533; // optional - _elem533 = new Partition(); - _elem533.read(iprot); - struct.success.add(_elem533); + Partition _elem541; // optional + _elem541 = new Partition(); + _elem541.read(iprot); + struct.success.add(_elem541); } } struct.setSuccessIsSet(true); @@ -57750,13 +57750,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list534 = iprot.readListBegin(); - struct.success = new ArrayList(_list534.size); - for (int _i535 = 0; _i535 < _list534.size; ++_i535) + org.apache.thrift.protocol.TList _list542 = iprot.readListBegin(); + struct.success = new ArrayList(_list542.size); + for (int _i543 = 0; _i543 < _list542.size; ++_i543) { - String _elem536; // optional - _elem536 = iprot.readString(); - struct.success.add(_elem536); + String _elem544; // optional + _elem544 = iprot.readString(); + struct.success.add(_elem544); } iprot.readListEnd(); } @@ -57791,9 +57791,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_name oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter537 : struct.success) + for (String _iter545 : struct.success) { - oprot.writeString(_iter537); + oprot.writeString(_iter545); } oprot.writeListEnd(); } @@ -57832,9 +57832,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter538 : struct.success) + for (String _iter546 : struct.success) { - oprot.writeString(_iter538); + oprot.writeString(_iter546); } } } @@ -57849,13 +57849,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list539 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list539.size); - for (int _i540 = 0; _i540 < _list539.size; ++_i540) + org.apache.thrift.protocol.TList _list547 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list547.size); + for (int _i548 = 0; _i548 < _list547.size; ++_i548) { - String _elem541; // optional - _elem541 = iprot.readString(); - struct.success.add(_elem541); + String _elem549; // optional + _elem549 = iprot.readString(); + struct.success.add(_elem549); } } struct.setSuccessIsSet(true); @@ -58446,13 +58446,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_a case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list542 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list542.size); - for (int _i543 = 0; _i543 < _list542.size; ++_i543) + org.apache.thrift.protocol.TList _list550 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list550.size); + for (int _i551 = 0; _i551 < _list550.size; ++_i551) { - String _elem544; // optional - _elem544 = iprot.readString(); - struct.part_vals.add(_elem544); + String _elem552; // optional + _elem552 = iprot.readString(); + struct.part_vals.add(_elem552); } iprot.readListEnd(); } @@ -58496,9 +58496,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter545 : struct.part_vals) + for (String _iter553 : struct.part_vals) { - oprot.writeString(_iter545); + oprot.writeString(_iter553); } oprot.writeListEnd(); } @@ -58547,9 +58547,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_a if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter546 : struct.part_vals) + for (String _iter554 : struct.part_vals) { - oprot.writeString(_iter546); + oprot.writeString(_iter554); } } } @@ -58572,13 +58572,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list547 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list547.size); - for (int _i548 = 0; _i548 < _list547.size; ++_i548) + org.apache.thrift.protocol.TList _list555 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list555.size); + for (int _i556 = 0; _i556 < _list555.size; ++_i556) { - String _elem549; // optional - _elem549 = iprot.readString(); - struct.part_vals.add(_elem549); + String _elem557; // optional + _elem557 = iprot.readString(); + struct.part_vals.add(_elem557); } } struct.setPart_valsIsSet(true); @@ -59069,14 +59069,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_r case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list550 = iprot.readListBegin(); - struct.success = new ArrayList(_list550.size); - for (int _i551 = 0; _i551 < _list550.size; ++_i551) + org.apache.thrift.protocol.TList _list558 = iprot.readListBegin(); + struct.success = new ArrayList(_list558.size); + for (int _i559 = 0; _i559 < _list558.size; ++_i559) { - Partition _elem552; // optional - _elem552 = new Partition(); - _elem552.read(iprot); - struct.success.add(_elem552); + Partition _elem560; // optional + _elem560 = new Partition(); + _elem560.read(iprot); + struct.success.add(_elem560); } iprot.readListEnd(); } @@ -59120,9 +59120,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter553 : struct.success) + for (Partition _iter561 : struct.success) { - _iter553.write(oprot); + _iter561.write(oprot); } oprot.writeListEnd(); } @@ -59169,9 +59169,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter554 : struct.success) + for (Partition _iter562 : struct.success) { - _iter554.write(oprot); + _iter562.write(oprot); } } } @@ -59189,14 +59189,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_re BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list555 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list555.size); - for (int _i556 = 0; _i556 < _list555.size; ++_i556) + org.apache.thrift.protocol.TList _list563 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list563.size); + for (int _i564 = 0; _i564 < _list563.size; ++_i564) { - Partition _elem557; // optional - _elem557 = new Partition(); - _elem557.read(iprot); - struct.success.add(_elem557); + Partition _elem565; // optional + _elem565 = new Partition(); + _elem565.read(iprot); + struct.success.add(_elem565); } } struct.setSuccessIsSet(true); @@ -59974,13 +59974,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list558 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list558.size); - for (int _i559 = 0; _i559 < _list558.size; ++_i559) + org.apache.thrift.protocol.TList _list566 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list566.size); + for (int _i567 = 0; _i567 < _list566.size; ++_i567) { - String _elem560; // optional - _elem560 = iprot.readString(); - struct.part_vals.add(_elem560); + String _elem568; // optional + _elem568 = iprot.readString(); + struct.part_vals.add(_elem568); } iprot.readListEnd(); } @@ -60008,13 +60008,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w case 6: // GROUP_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list561 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list561.size); - for (int _i562 = 0; _i562 < _list561.size; ++_i562) + org.apache.thrift.protocol.TList _list569 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list569.size); + for (int _i570 = 0; _i570 < _list569.size; ++_i570) { - String _elem563; // optional - _elem563 = iprot.readString(); - struct.group_names.add(_elem563); + String _elem571; // optional + _elem571 = iprot.readString(); + struct.group_names.add(_elem571); } iprot.readListEnd(); } @@ -60050,9 +60050,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter564 : struct.part_vals) + for (String _iter572 : struct.part_vals) { - oprot.writeString(_iter564); + oprot.writeString(_iter572); } oprot.writeListEnd(); } @@ -60070,9 +60070,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); - for (String _iter565 : struct.group_names) + for (String _iter573 : struct.group_names) { - oprot.writeString(_iter565); + oprot.writeString(_iter573); } oprot.writeListEnd(); } @@ -60124,9 +60124,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter566 : struct.part_vals) + for (String _iter574 : struct.part_vals) { - oprot.writeString(_iter566); + oprot.writeString(_iter574); } } } @@ -60139,9 +60139,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetGroup_names()) { { oprot.writeI32(struct.group_names.size()); - for (String _iter567 : struct.group_names) + for (String _iter575 : struct.group_names) { - oprot.writeString(_iter567); + oprot.writeString(_iter575); } } } @@ -60161,13 +60161,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list568 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list568.size); - for (int _i569 = 0; _i569 < _list568.size; ++_i569) + org.apache.thrift.protocol.TList _list576 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list576.size); + for (int _i577 = 0; _i577 < _list576.size; ++_i577) { - String _elem570; // optional - _elem570 = iprot.readString(); - struct.part_vals.add(_elem570); + String _elem578; // optional + _elem578 = iprot.readString(); + struct.part_vals.add(_elem578); } } struct.setPart_valsIsSet(true); @@ -60182,13 +60182,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(5)) { { - org.apache.thrift.protocol.TList _list571 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list571.size); - for (int _i572 = 0; _i572 < _list571.size; ++_i572) + org.apache.thrift.protocol.TList _list579 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list579.size); + for (int _i580 = 0; _i580 < _list579.size; ++_i580) { - String _elem573; // optional - _elem573 = iprot.readString(); - struct.group_names.add(_elem573); + String _elem581; // optional + _elem581 = iprot.readString(); + struct.group_names.add(_elem581); } } struct.setGroup_namesIsSet(true); @@ -60675,14 +60675,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list574 = iprot.readListBegin(); - struct.success = new ArrayList(_list574.size); - for (int _i575 = 0; _i575 < _list574.size; ++_i575) + org.apache.thrift.protocol.TList _list582 = iprot.readListBegin(); + struct.success = new ArrayList(_list582.size); + for (int _i583 = 0; _i583 < _list582.size; ++_i583) { - Partition _elem576; // optional - _elem576 = new Partition(); - _elem576.read(iprot); - struct.success.add(_elem576); + Partition _elem584; // optional + _elem584 = new Partition(); + _elem584.read(iprot); + struct.success.add(_elem584); } iprot.readListEnd(); } @@ -60726,9 +60726,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter577 : struct.success) + for (Partition _iter585 : struct.success) { - _iter577.write(oprot); + _iter585.write(oprot); } oprot.writeListEnd(); } @@ -60775,9 +60775,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter578 : struct.success) + for (Partition _iter586 : struct.success) { - _iter578.write(oprot); + _iter586.write(oprot); } } } @@ -60795,14 +60795,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list579 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list579.size); - for (int _i580 = 0; _i580 < _list579.size; ++_i580) + org.apache.thrift.protocol.TList _list587 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list587.size); + for (int _i588 = 0; _i588 < _list587.size; ++_i588) { - Partition _elem581; // optional - _elem581 = new Partition(); - _elem581.read(iprot); - struct.success.add(_elem581); + Partition _elem589; // optional + _elem589 = new Partition(); + _elem589.read(iprot); + struct.success.add(_elem589); } } struct.setSuccessIsSet(true); @@ -61398,13 +61398,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list582 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list582.size); - for (int _i583 = 0; _i583 < _list582.size; ++_i583) + org.apache.thrift.protocol.TList _list590 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list590.size); + for (int _i591 = 0; _i591 < _list590.size; ++_i591) { - String _elem584; // optional - _elem584 = iprot.readString(); - struct.part_vals.add(_elem584); + String _elem592; // optional + _elem592 = iprot.readString(); + struct.part_vals.add(_elem592); } iprot.readListEnd(); } @@ -61448,9 +61448,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_name oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter585 : struct.part_vals) + for (String _iter593 : struct.part_vals) { - oprot.writeString(_iter585); + oprot.writeString(_iter593); } oprot.writeListEnd(); } @@ -61499,9 +61499,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter586 : struct.part_vals) + for (String _iter594 : struct.part_vals) { - oprot.writeString(_iter586); + oprot.writeString(_iter594); } } } @@ -61524,13 +61524,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list587 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list587.size); - for (int _i588 = 0; _i588 < _list587.size; ++_i588) + org.apache.thrift.protocol.TList _list595 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list595.size); + for (int _i596 = 0; _i596 < _list595.size; ++_i596) { - String _elem589; // optional - _elem589 = iprot.readString(); - struct.part_vals.add(_elem589); + String _elem597; // optional + _elem597 = iprot.readString(); + struct.part_vals.add(_elem597); } } struct.setPart_valsIsSet(true); @@ -62021,13 +62021,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list590 = iprot.readListBegin(); - struct.success = new ArrayList(_list590.size); - for (int _i591 = 0; _i591 < _list590.size; ++_i591) + org.apache.thrift.protocol.TList _list598 = iprot.readListBegin(); + struct.success = new ArrayList(_list598.size); + for (int _i599 = 0; _i599 < _list598.size; ++_i599) { - String _elem592; // optional - _elem592 = iprot.readString(); - struct.success.add(_elem592); + String _elem600; // optional + _elem600 = iprot.readString(); + struct.success.add(_elem600); } iprot.readListEnd(); } @@ -62071,9 +62071,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_name oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter593 : struct.success) + for (String _iter601 : struct.success) { - oprot.writeString(_iter593); + oprot.writeString(_iter601); } oprot.writeListEnd(); } @@ -62120,9 +62120,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter594 : struct.success) + for (String _iter602 : struct.success) { - oprot.writeString(_iter594); + oprot.writeString(_iter602); } } } @@ -62140,13 +62140,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list595 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list595.size); - for (int _i596 = 0; _i596 < _list595.size; ++_i596) + org.apache.thrift.protocol.TList _list603 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list603.size); + for (int _i604 = 0; _i604 < _list603.size; ++_i604) { - String _elem597; // optional - _elem597 = iprot.readString(); - struct.success.add(_elem597); + String _elem605; // optional + _elem605 = iprot.readString(); + struct.success.add(_elem605); } } struct.setSuccessIsSet(true); @@ -63313,14 +63313,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_f case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list598 = iprot.readListBegin(); - struct.success = new ArrayList(_list598.size); - for (int _i599 = 0; _i599 < _list598.size; ++_i599) + org.apache.thrift.protocol.TList _list606 = iprot.readListBegin(); + struct.success = new ArrayList(_list606.size); + for (int _i607 = 0; _i607 < _list606.size; ++_i607) { - Partition _elem600; // optional - _elem600 = new Partition(); - _elem600.read(iprot); - struct.success.add(_elem600); + Partition _elem608; // optional + _elem608 = new Partition(); + _elem608.read(iprot); + struct.success.add(_elem608); } iprot.readListEnd(); } @@ -63364,9 +63364,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter601 : struct.success) + for (Partition _iter609 : struct.success) { - _iter601.write(oprot); + _iter609.write(oprot); } oprot.writeListEnd(); } @@ -63413,9 +63413,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_f if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter602 : struct.success) + for (Partition _iter610 : struct.success) { - _iter602.write(oprot); + _iter610.write(oprot); } } } @@ -63433,14 +63433,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_fi BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list603 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list603.size); - for (int _i604 = 0; _i604 < _list603.size; ++_i604) + org.apache.thrift.protocol.TList _list611 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list611.size); + for (int _i612 = 0; _i612 < _list611.size; ++_i612) { - Partition _elem605; // optional - _elem605 = new Partition(); - _elem605.read(iprot); - struct.success.add(_elem605); + Partition _elem613; // optional + _elem613 = new Partition(); + _elem613.read(iprot); + struct.success.add(_elem613); } } struct.setSuccessIsSet(true); @@ -64891,13 +64891,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_n case 3: // NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list606 = iprot.readListBegin(); - struct.names = new ArrayList(_list606.size); - for (int _i607 = 0; _i607 < _list606.size; ++_i607) + org.apache.thrift.protocol.TList _list614 = iprot.readListBegin(); + struct.names = new ArrayList(_list614.size); + for (int _i615 = 0; _i615 < _list614.size; ++_i615) { - String _elem608; // optional - _elem608 = iprot.readString(); - struct.names.add(_elem608); + String _elem616; // optional + _elem616 = iprot.readString(); + struct.names.add(_elem616); } iprot.readListEnd(); } @@ -64933,9 +64933,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_ oprot.writeFieldBegin(NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.names.size())); - for (String _iter609 : struct.names) + for (String _iter617 : struct.names) { - oprot.writeString(_iter609); + oprot.writeString(_iter617); } oprot.writeListEnd(); } @@ -64978,9 +64978,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetNames()) { { oprot.writeI32(struct.names.size()); - for (String _iter610 : struct.names) + for (String _iter618 : struct.names) { - oprot.writeString(_iter610); + oprot.writeString(_iter618); } } } @@ -65000,13 +65000,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_na } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list611 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.names = new ArrayList(_list611.size); - for (int _i612 = 0; _i612 < _list611.size; ++_i612) + org.apache.thrift.protocol.TList _list619 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.names = new ArrayList(_list619.size); + for (int _i620 = 0; _i620 < _list619.size; ++_i620) { - String _elem613; // optional - _elem613 = iprot.readString(); - struct.names.add(_elem613); + String _elem621; // optional + _elem621 = iprot.readString(); + struct.names.add(_elem621); } } struct.setNamesIsSet(true); @@ -65493,14 +65493,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_n case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list614 = iprot.readListBegin(); - struct.success = new ArrayList(_list614.size); - for (int _i615 = 0; _i615 < _list614.size; ++_i615) + org.apache.thrift.protocol.TList _list622 = iprot.readListBegin(); + struct.success = new ArrayList(_list622.size); + for (int _i623 = 0; _i623 < _list622.size; ++_i623) { - Partition _elem616; // optional - _elem616 = new Partition(); - _elem616.read(iprot); - struct.success.add(_elem616); + Partition _elem624; // optional + _elem624 = new Partition(); + _elem624.read(iprot); + struct.success.add(_elem624); } iprot.readListEnd(); } @@ -65544,9 +65544,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter617 : struct.success) + for (Partition _iter625 : struct.success) { - _iter617.write(oprot); + _iter625.write(oprot); } oprot.writeListEnd(); } @@ -65593,9 +65593,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter618 : struct.success) + for (Partition _iter626 : struct.success) { - _iter618.write(oprot); + _iter626.write(oprot); } } } @@ -65613,14 +65613,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_na BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list619 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list619.size); - for (int _i620 = 0; _i620 < _list619.size; ++_i620) + org.apache.thrift.protocol.TList _list627 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list627.size); + for (int _i628 = 0; _i628 < _list627.size; ++_i628) { - Partition _elem621; // optional - _elem621 = new Partition(); - _elem621.read(iprot); - struct.success.add(_elem621); + Partition _elem629; // optional + _elem629 = new Partition(); + _elem629.read(iprot); + struct.success.add(_elem629); } } struct.setSuccessIsSet(true); @@ -67170,14 +67170,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partitions_ar case 3: // NEW_PARTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list622 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list622.size); - for (int _i623 = 0; _i623 < _list622.size; ++_i623) + org.apache.thrift.protocol.TList _list630 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list630.size); + for (int _i631 = 0; _i631 < _list630.size; ++_i631) { - Partition _elem624; // optional - _elem624 = new Partition(); - _elem624.read(iprot); - struct.new_parts.add(_elem624); + Partition _elem632; // optional + _elem632 = new Partition(); + _elem632.read(iprot); + struct.new_parts.add(_elem632); } iprot.readListEnd(); } @@ -67213,9 +67213,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partitions_a oprot.writeFieldBegin(NEW_PARTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.new_parts.size())); - for (Partition _iter625 : struct.new_parts) + for (Partition _iter633 : struct.new_parts) { - _iter625.write(oprot); + _iter633.write(oprot); } oprot.writeListEnd(); } @@ -67258,9 +67258,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, alter_partitions_ar if (struct.isSetNew_parts()) { { oprot.writeI32(struct.new_parts.size()); - for (Partition _iter626 : struct.new_parts) + for (Partition _iter634 : struct.new_parts) { - _iter626.write(oprot); + _iter634.write(oprot); } } } @@ -67280,14 +67280,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list627 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list627.size); - for (int _i628 = 0; _i628 < _list627.size; ++_i628) + org.apache.thrift.protocol.TList _list635 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list635.size); + for (int _i636 = 0; _i636 < _list635.size; ++_i636) { - Partition _elem629; // optional - _elem629 = new Partition(); - _elem629.read(iprot); - struct.new_parts.add(_elem629); + Partition _elem637; // optional + _elem637 = new Partition(); + _elem637.read(iprot); + struct.new_parts.add(_elem637); } } struct.setNew_partsIsSet(true); @@ -69486,13 +69486,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, rename_partition_ar case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list630 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list630.size); - for (int _i631 = 0; _i631 < _list630.size; ++_i631) + org.apache.thrift.protocol.TList _list638 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list638.size); + for (int _i639 = 0; _i639 < _list638.size; ++_i639) { - String _elem632; // optional - _elem632 = iprot.readString(); - struct.part_vals.add(_elem632); + String _elem640; // optional + _elem640 = iprot.readString(); + struct.part_vals.add(_elem640); } iprot.readListEnd(); } @@ -69537,9 +69537,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, rename_partition_a oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter633 : struct.part_vals) + for (String _iter641 : struct.part_vals) { - oprot.writeString(_iter633); + oprot.writeString(_iter641); } oprot.writeListEnd(); } @@ -69590,9 +69590,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, rename_partition_ar if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter634 : struct.part_vals) + for (String _iter642 : struct.part_vals) { - oprot.writeString(_iter634); + oprot.writeString(_iter642); } } } @@ -69615,13 +69615,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, rename_partition_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list635 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list635.size); - for (int _i636 = 0; _i636 < _list635.size; ++_i636) + org.apache.thrift.protocol.TList _list643 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list643.size); + for (int _i644 = 0; _i644 < _list643.size; ++_i644) { - String _elem637; // optional - _elem637 = iprot.readString(); - struct.part_vals.add(_elem637); + String _elem645; // optional + _elem645 = iprot.readString(); + struct.part_vals.add(_elem645); } } struct.setPart_valsIsSet(true); @@ -70498,13 +70498,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_has_ case 1: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list638 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list638.size); - for (int _i639 = 0; _i639 < _list638.size; ++_i639) + org.apache.thrift.protocol.TList _list646 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list646.size); + for (int _i647 = 0; _i647 < _list646.size; ++_i647) { - String _elem640; // optional - _elem640 = iprot.readString(); - struct.part_vals.add(_elem640); + String _elem648; // optional + _elem648 = iprot.readString(); + struct.part_vals.add(_elem648); } iprot.readListEnd(); } @@ -70538,9 +70538,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, partition_name_has oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter641 : struct.part_vals) + for (String _iter649 : struct.part_vals) { - oprot.writeString(_iter641); + oprot.writeString(_iter649); } oprot.writeListEnd(); } @@ -70577,9 +70577,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_has_ if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter642 : struct.part_vals) + for (String _iter650 : struct.part_vals) { - oprot.writeString(_iter642); + oprot.writeString(_iter650); } } } @@ -70594,13 +70594,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_has_v BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list643 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list643.size); - for (int _i644 = 0; _i644 < _list643.size; ++_i644) + org.apache.thrift.protocol.TList _list651 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list651.size); + for (int _i652 = 0; _i652 < _list651.size; ++_i652) { - String _elem645; // optional - _elem645 = iprot.readString(); - struct.part_vals.add(_elem645); + String _elem653; // optional + _elem653 = iprot.readString(); + struct.part_vals.add(_elem653); } } struct.setPart_valsIsSet(true); @@ -72758,13 +72758,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_to_v case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list646 = iprot.readListBegin(); - struct.success = new ArrayList(_list646.size); - for (int _i647 = 0; _i647 < _list646.size; ++_i647) + org.apache.thrift.protocol.TList _list654 = iprot.readListBegin(); + struct.success = new ArrayList(_list654.size); + for (int _i655 = 0; _i655 < _list654.size; ++_i655) { - String _elem648; // optional - _elem648 = iprot.readString(); - struct.success.add(_elem648); + String _elem656; // optional + _elem656 = iprot.readString(); + struct.success.add(_elem656); } iprot.readListEnd(); } @@ -72799,9 +72799,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, partition_name_to_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter649 : struct.success) + for (String _iter657 : struct.success) { - oprot.writeString(_iter649); + oprot.writeString(_iter657); } oprot.writeListEnd(); } @@ -72840,9 +72840,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_to_v if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter650 : struct.success) + for (String _iter658 : struct.success) { - oprot.writeString(_iter650); + oprot.writeString(_iter658); } } } @@ -72857,13 +72857,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_to_va BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list651 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list651.size); - for (int _i652 = 0; _i652 < _list651.size; ++_i652) + org.apache.thrift.protocol.TList _list659 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list659.size); + for (int _i660 = 0; _i660 < _list659.size; ++_i660) { - String _elem653; // optional - _elem653 = iprot.readString(); - struct.success.add(_elem653); + String _elem661; // optional + _elem661 = iprot.readString(); + struct.success.add(_elem661); } } struct.setSuccessIsSet(true); @@ -73637,15 +73637,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_to_s case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map654 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map654.size); - for (int _i655 = 0; _i655 < _map654.size; ++_i655) + org.apache.thrift.protocol.TMap _map662 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map662.size); + for (int _i663 = 0; _i663 < _map662.size; ++_i663) { - String _key656; // required - String _val657; // required - _key656 = iprot.readString(); - _val657 = iprot.readString(); - struct.success.put(_key656, _val657); + String _key664; // required + String _val665; // required + _key664 = iprot.readString(); + _val665 = iprot.readString(); + struct.success.put(_key664, _val665); } iprot.readMapEnd(); } @@ -73680,10 +73680,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, partition_name_to_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (Map.Entry _iter658 : struct.success.entrySet()) + for (Map.Entry _iter666 : struct.success.entrySet()) { - oprot.writeString(_iter658.getKey()); - oprot.writeString(_iter658.getValue()); + oprot.writeString(_iter666.getKey()); + oprot.writeString(_iter666.getValue()); } oprot.writeMapEnd(); } @@ -73722,10 +73722,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_to_s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry _iter659 : struct.success.entrySet()) + for (Map.Entry _iter667 : struct.success.entrySet()) { - oprot.writeString(_iter659.getKey()); - oprot.writeString(_iter659.getValue()); + oprot.writeString(_iter667.getKey()); + oprot.writeString(_iter667.getValue()); } } } @@ -73740,15 +73740,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_to_sp BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map660 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new HashMap(2*_map660.size); - for (int _i661 = 0; _i661 < _map660.size; ++_i661) + org.apache.thrift.protocol.TMap _map668 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new HashMap(2*_map668.size); + for (int _i669 = 0; _i669 < _map668.size; ++_i669) { - String _key662; // required - String _val663; // required - _key662 = iprot.readString(); - _val663 = iprot.readString(); - struct.success.put(_key662, _val663); + String _key670; // required + String _val671; // required + _key670 = iprot.readString(); + _val671 = iprot.readString(); + struct.success.put(_key670, _val671); } } struct.setSuccessIsSet(true); @@ -74354,15 +74354,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, markPartitionForEve case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map664 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map664.size); - for (int _i665 = 0; _i665 < _map664.size; ++_i665) + org.apache.thrift.protocol.TMap _map672 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map672.size); + for (int _i673 = 0; _i673 < _map672.size; ++_i673) { - String _key666; // required - String _val667; // required - _key666 = iprot.readString(); - _val667 = iprot.readString(); - struct.part_vals.put(_key666, _val667); + String _key674; // required + String _val675; // required + _key674 = iprot.readString(); + _val675 = iprot.readString(); + struct.part_vals.put(_key674, _val675); } iprot.readMapEnd(); } @@ -74406,10 +74406,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, markPartitionForEv oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (Map.Entry _iter668 : struct.part_vals.entrySet()) + for (Map.Entry _iter676 : struct.part_vals.entrySet()) { - oprot.writeString(_iter668.getKey()); - oprot.writeString(_iter668.getValue()); + oprot.writeString(_iter676.getKey()); + oprot.writeString(_iter676.getValue()); } oprot.writeMapEnd(); } @@ -74460,10 +74460,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, markPartitionForEve if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter669 : struct.part_vals.entrySet()) + for (Map.Entry _iter677 : struct.part_vals.entrySet()) { - oprot.writeString(_iter669.getKey()); - oprot.writeString(_iter669.getValue()); + oprot.writeString(_iter677.getKey()); + oprot.writeString(_iter677.getValue()); } } } @@ -74486,15 +74486,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, markPartitionForEven } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map670 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new HashMap(2*_map670.size); - for (int _i671 = 0; _i671 < _map670.size; ++_i671) + org.apache.thrift.protocol.TMap _map678 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new HashMap(2*_map678.size); + for (int _i679 = 0; _i679 < _map678.size; ++_i679) { - String _key672; // required - String _val673; // required - _key672 = iprot.readString(); - _val673 = iprot.readString(); - struct.part_vals.put(_key672, _val673); + String _key680; // required + String _val681; // required + _key680 = iprot.readString(); + _val681 = iprot.readString(); + struct.part_vals.put(_key680, _val681); } } struct.setPart_valsIsSet(true); @@ -75989,15 +75989,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, isPartitionMarkedFo case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map674 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map674.size); - for (int _i675 = 0; _i675 < _map674.size; ++_i675) + org.apache.thrift.protocol.TMap _map682 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map682.size); + for (int _i683 = 0; _i683 < _map682.size; ++_i683) { - String _key676; // required - String _val677; // required - _key676 = iprot.readString(); - _val677 = iprot.readString(); - struct.part_vals.put(_key676, _val677); + String _key684; // required + String _val685; // required + _key684 = iprot.readString(); + _val685 = iprot.readString(); + struct.part_vals.put(_key684, _val685); } iprot.readMapEnd(); } @@ -76041,10 +76041,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, isPartitionMarkedF oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (Map.Entry _iter678 : struct.part_vals.entrySet()) + for (Map.Entry _iter686 : struct.part_vals.entrySet()) { - oprot.writeString(_iter678.getKey()); - oprot.writeString(_iter678.getValue()); + oprot.writeString(_iter686.getKey()); + oprot.writeString(_iter686.getValue()); } oprot.writeMapEnd(); } @@ -76095,10 +76095,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFo if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter679 : struct.part_vals.entrySet()) + for (Map.Entry _iter687 : struct.part_vals.entrySet()) { - oprot.writeString(_iter679.getKey()); - oprot.writeString(_iter679.getValue()); + oprot.writeString(_iter687.getKey()); + oprot.writeString(_iter687.getValue()); } } } @@ -76121,15 +76121,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFor } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map680 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new HashMap(2*_map680.size); - for (int _i681 = 0; _i681 < _map680.size; ++_i681) + org.apache.thrift.protocol.TMap _map688 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new HashMap(2*_map688.size); + for (int _i689 = 0; _i689 < _map688.size; ++_i689) { - String _key682; // required - String _val683; // required - _key682 = iprot.readString(); - _val683 = iprot.readString(); - struct.part_vals.put(_key682, _val683); + String _key690; // required + String _val691; // required + _key690 = iprot.readString(); + _val691 = iprot.readString(); + struct.part_vals.put(_key690, _val691); } } struct.setPart_valsIsSet(true); @@ -82853,14 +82853,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_indexes_result case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list684 = iprot.readListBegin(); - struct.success = new ArrayList(_list684.size); - for (int _i685 = 0; _i685 < _list684.size; ++_i685) + org.apache.thrift.protocol.TList _list692 = iprot.readListBegin(); + struct.success = new ArrayList(_list692.size); + for (int _i693 = 0; _i693 < _list692.size; ++_i693) { - Index _elem686; // optional - _elem686 = new Index(); - _elem686.read(iprot); - struct.success.add(_elem686); + Index _elem694; // optional + _elem694 = new Index(); + _elem694.read(iprot); + struct.success.add(_elem694); } iprot.readListEnd(); } @@ -82904,9 +82904,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_indexes_result oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Index _iter687 : struct.success) + for (Index _iter695 : struct.success) { - _iter687.write(oprot); + _iter695.write(oprot); } oprot.writeListEnd(); } @@ -82953,9 +82953,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_indexes_result if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Index _iter688 : struct.success) + for (Index _iter696 : struct.success) { - _iter688.write(oprot); + _iter696.write(oprot); } } } @@ -82973,14 +82973,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_indexes_result s BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list689 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list689.size); - for (int _i690 = 0; _i690 < _list689.size; ++_i690) + org.apache.thrift.protocol.TList _list697 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list697.size); + for (int _i698 = 0; _i698 < _list697.size; ++_i698) { - Index _elem691; // optional - _elem691 = new Index(); - _elem691.read(iprot); - struct.success.add(_elem691); + Index _elem699; // optional + _elem699 = new Index(); + _elem699.read(iprot); + struct.success.add(_elem699); } } struct.setSuccessIsSet(true); @@ -83962,13 +83962,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_names_res case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list692 = iprot.readListBegin(); - struct.success = new ArrayList(_list692.size); - for (int _i693 = 0; _i693 < _list692.size; ++_i693) + org.apache.thrift.protocol.TList _list700 = iprot.readListBegin(); + struct.success = new ArrayList(_list700.size); + for (int _i701 = 0; _i701 < _list700.size; ++_i701) { - String _elem694; // optional - _elem694 = iprot.readString(); - struct.success.add(_elem694); + String _elem702; // optional + _elem702 = iprot.readString(); + struct.success.add(_elem702); } iprot.readListEnd(); } @@ -84003,9 +84003,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_index_names_re oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter695 : struct.success) + for (String _iter703 : struct.success) { - oprot.writeString(_iter695); + oprot.writeString(_iter703); } oprot.writeListEnd(); } @@ -84044,9 +84044,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_index_names_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter696 : struct.success) + for (String _iter704 : struct.success) { - oprot.writeString(_iter696); + oprot.writeString(_iter704); } } } @@ -84061,13 +84061,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_index_names_resu BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list697 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list697.size); - for (int _i698 = 0; _i698 < _list697.size; ++_i698) + org.apache.thrift.protocol.TList _list705 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list705.size); + for (int _i706 = 0; _i706 < _list705.size; ++_i706) { - String _elem699; // optional - _elem699 = iprot.readString(); - struct.success.add(_elem699); + String _elem707; // optional + _elem707 = iprot.readString(); + struct.success.add(_elem707); } } struct.setSuccessIsSet(true); @@ -97722,13 +97722,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_functions_resul case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list700 = iprot.readListBegin(); - struct.success = new ArrayList(_list700.size); - for (int _i701 = 0; _i701 < _list700.size; ++_i701) + org.apache.thrift.protocol.TList _list708 = iprot.readListBegin(); + struct.success = new ArrayList(_list708.size); + for (int _i709 = 0; _i709 < _list708.size; ++_i709) { - String _elem702; // optional - _elem702 = iprot.readString(); - struct.success.add(_elem702); + String _elem710; // optional + _elem710 = iprot.readString(); + struct.success.add(_elem710); } iprot.readListEnd(); } @@ -97763,9 +97763,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_functions_resu oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter703 : struct.success) + for (String _iter711 : struct.success) { - oprot.writeString(_iter703); + oprot.writeString(_iter711); } oprot.writeListEnd(); } @@ -97804,9 +97804,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_functions_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter704 : struct.success) + for (String _iter712 : struct.success) { - oprot.writeString(_iter704); + oprot.writeString(_iter712); } } } @@ -97821,13 +97821,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_functions_result BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list705 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list705.size); - for (int _i706 = 0; _i706 < _list705.size; ++_i706) + org.apache.thrift.protocol.TList _list713 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list713.size); + for (int _i714 = 0; _i714 < _list713.size; ++_i714) { - String _elem707; // optional - _elem707 = iprot.readString(); - struct.success.add(_elem707); + String _elem715; // optional + _elem715 = iprot.readString(); + struct.success.add(_elem715); } } struct.setSuccessIsSet(true); @@ -101170,13 +101170,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_role_names_resu case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list708 = iprot.readListBegin(); - struct.success = new ArrayList(_list708.size); - for (int _i709 = 0; _i709 < _list708.size; ++_i709) + org.apache.thrift.protocol.TList _list716 = iprot.readListBegin(); + struct.success = new ArrayList(_list716.size); + for (int _i717 = 0; _i717 < _list716.size; ++_i717) { - String _elem710; // optional - _elem710 = iprot.readString(); - struct.success.add(_elem710); + String _elem718; // optional + _elem718 = iprot.readString(); + struct.success.add(_elem718); } iprot.readListEnd(); } @@ -101211,9 +101211,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_role_names_res oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter711 : struct.success) + for (String _iter719 : struct.success) { - oprot.writeString(_iter711); + oprot.writeString(_iter719); } oprot.writeListEnd(); } @@ -101252,9 +101252,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_role_names_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter712 : struct.success) + for (String _iter720 : struct.success) { - oprot.writeString(_iter712); + oprot.writeString(_iter720); } } } @@ -101269,13 +101269,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_role_names_resul BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list713 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list713.size); - for (int _i714 = 0; _i714 < _list713.size; ++_i714) + org.apache.thrift.protocol.TList _list721 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list721.size); + for (int _i722 = 0; _i722 < _list721.size; ++_i722) { - String _elem715; // optional - _elem715 = iprot.readString(); - struct.success.add(_elem715); + String _elem723; // optional + _elem723 = iprot.readString(); + struct.success.add(_elem723); } } struct.setSuccessIsSet(true); @@ -104566,14 +104566,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, list_roles_result s case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list716 = iprot.readListBegin(); - struct.success = new ArrayList(_list716.size); - for (int _i717 = 0; _i717 < _list716.size; ++_i717) + org.apache.thrift.protocol.TList _list724 = iprot.readListBegin(); + struct.success = new ArrayList(_list724.size); + for (int _i725 = 0; _i725 < _list724.size; ++_i725) { - Role _elem718; // optional - _elem718 = new Role(); - _elem718.read(iprot); - struct.success.add(_elem718); + Role _elem726; // optional + _elem726 = new Role(); + _elem726.read(iprot); + struct.success.add(_elem726); } iprot.readListEnd(); } @@ -104608,9 +104608,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, list_roles_result oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Role _iter719 : struct.success) + for (Role _iter727 : struct.success) { - _iter719.write(oprot); + _iter727.write(oprot); } oprot.writeListEnd(); } @@ -104649,9 +104649,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_roles_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Role _iter720 : struct.success) + for (Role _iter728 : struct.success) { - _iter720.write(oprot); + _iter728.write(oprot); } } } @@ -104666,14 +104666,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, list_roles_result st BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list721 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list721.size); - for (int _i722 = 0; _i722 < _list721.size; ++_i722) + org.apache.thrift.protocol.TList _list729 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list729.size); + for (int _i730 = 0; _i730 < _list729.size; ++_i730) { - Role _elem723; // optional - _elem723 = new Role(); - _elem723.read(iprot); - struct.success.add(_elem723); + Role _elem731; // optional + _elem731 = new Role(); + _elem731.read(iprot); + struct.success.add(_elem731); } } struct.setSuccessIsSet(true); @@ -105185,13 +105185,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_privilege_set_a case 3: // GROUP_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list724 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list724.size); - for (int _i725 = 0; _i725 < _list724.size; ++_i725) + org.apache.thrift.protocol.TList _list732 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list732.size); + for (int _i733 = 0; _i733 < _list732.size; ++_i733) { - String _elem726; // optional - _elem726 = iprot.readString(); - struct.group_names.add(_elem726); + String _elem734; // optional + _elem734 = iprot.readString(); + struct.group_names.add(_elem734); } iprot.readListEnd(); } @@ -105227,9 +105227,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_privilege_set_ oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); - for (String _iter727 : struct.group_names) + for (String _iter735 : struct.group_names) { - oprot.writeString(_iter727); + oprot.writeString(_iter735); } oprot.writeListEnd(); } @@ -105272,9 +105272,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_privilege_set_a if (struct.isSetGroup_names()) { { oprot.writeI32(struct.group_names.size()); - for (String _iter728 : struct.group_names) + for (String _iter736 : struct.group_names) { - oprot.writeString(_iter728); + oprot.writeString(_iter736); } } } @@ -105295,13 +105295,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_privilege_set_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list729 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list729.size); - for (int _i730 = 0; _i730 < _list729.size; ++_i730) + org.apache.thrift.protocol.TList _list737 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list737.size); + for (int _i738 = 0; _i738 < _list737.size; ++_i738) { - String _elem731; // optional - _elem731 = iprot.readString(); - struct.group_names.add(_elem731); + String _elem739; // optional + _elem739 = iprot.readString(); + struct.group_names.add(_elem739); } } struct.setGroup_namesIsSet(true); @@ -106759,14 +106759,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, list_privileges_res case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list732 = iprot.readListBegin(); - struct.success = new ArrayList(_list732.size); - for (int _i733 = 0; _i733 < _list732.size; ++_i733) + org.apache.thrift.protocol.TList _list740 = iprot.readListBegin(); + struct.success = new ArrayList(_list740.size); + for (int _i741 = 0; _i741 < _list740.size; ++_i741) { - HiveObjectPrivilege _elem734; // optional - _elem734 = new HiveObjectPrivilege(); - _elem734.read(iprot); - struct.success.add(_elem734); + HiveObjectPrivilege _elem742; // optional + _elem742 = new HiveObjectPrivilege(); + _elem742.read(iprot); + struct.success.add(_elem742); } iprot.readListEnd(); } @@ -106801,9 +106801,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, list_privileges_re oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (HiveObjectPrivilege _iter735 : struct.success) + for (HiveObjectPrivilege _iter743 : struct.success) { - _iter735.write(oprot); + _iter743.write(oprot); } oprot.writeListEnd(); } @@ -106842,9 +106842,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_privileges_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (HiveObjectPrivilege _iter736 : struct.success) + for (HiveObjectPrivilege _iter744 : struct.success) { - _iter736.write(oprot); + _iter744.write(oprot); } } } @@ -106859,14 +106859,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, list_privileges_resu BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list737 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list737.size); - for (int _i738 = 0; _i738 < _list737.size; ++_i738) + org.apache.thrift.protocol.TList _list745 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list745.size); + for (int _i746 = 0; _i746 < _list745.size; ++_i746) { - HiveObjectPrivilege _elem739; // optional - _elem739 = new HiveObjectPrivilege(); - _elem739.read(iprot); - struct.success.add(_elem739); + HiveObjectPrivilege _elem747; // optional + _elem747 = new HiveObjectPrivilege(); + _elem747.read(iprot); + struct.success.add(_elem747); } } struct.setSuccessIsSet(true); @@ -108939,13 +108939,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, set_ugi_args struct case 2: // GROUP_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list740 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list740.size); - for (int _i741 = 0; _i741 < _list740.size; ++_i741) + org.apache.thrift.protocol.TList _list748 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list748.size); + for (int _i749 = 0; _i749 < _list748.size; ++_i749) { - String _elem742; // optional - _elem742 = iprot.readString(); - struct.group_names.add(_elem742); + String _elem750; // optional + _elem750 = iprot.readString(); + struct.group_names.add(_elem750); } iprot.readListEnd(); } @@ -108976,9 +108976,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, set_ugi_args struc oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); - for (String _iter743 : struct.group_names) + for (String _iter751 : struct.group_names) { - oprot.writeString(_iter743); + oprot.writeString(_iter751); } oprot.writeListEnd(); } @@ -109015,9 +109015,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, set_ugi_args struct if (struct.isSetGroup_names()) { { oprot.writeI32(struct.group_names.size()); - for (String _iter744 : struct.group_names) + for (String _iter752 : struct.group_names) { - oprot.writeString(_iter744); + oprot.writeString(_iter752); } } } @@ -109033,13 +109033,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_ugi_args struct) } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list745 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list745.size); - for (int _i746 = 0; _i746 < _list745.size; ++_i746) + org.apache.thrift.protocol.TList _list753 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list753.size); + for (int _i754 = 0; _i754 < _list753.size; ++_i754) { - String _elem747; // optional - _elem747 = iprot.readString(); - struct.group_names.add(_elem747); + String _elem755; // optional + _elem755 = iprot.readString(); + struct.group_names.add(_elem755); } } struct.setGroup_namesIsSet(true); @@ -109445,13 +109445,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, set_ugi_result stru case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list748 = iprot.readListBegin(); - struct.success = new ArrayList(_list748.size); - for (int _i749 = 0; _i749 < _list748.size; ++_i749) + org.apache.thrift.protocol.TList _list756 = iprot.readListBegin(); + struct.success = new ArrayList(_list756.size); + for (int _i757 = 0; _i757 < _list756.size; ++_i757) { - String _elem750; // optional - _elem750 = iprot.readString(); - struct.success.add(_elem750); + String _elem758; // optional + _elem758 = iprot.readString(); + struct.success.add(_elem758); } iprot.readListEnd(); } @@ -109486,9 +109486,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, set_ugi_result str oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter751 : struct.success) + for (String _iter759 : struct.success) { - oprot.writeString(_iter751); + oprot.writeString(_iter759); } oprot.writeListEnd(); } @@ -109527,9 +109527,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, set_ugi_result stru if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter752 : struct.success) + for (String _iter760 : struct.success) { - oprot.writeString(_iter752); + oprot.writeString(_iter760); } } } @@ -109544,13 +109544,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_ugi_result struc BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list753 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list753.size); - for (int _i754 = 0; _i754 < _list753.size; ++_i754) + org.apache.thrift.protocol.TList _list761 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list761.size); + for (int _i762 = 0; _i762 < _list761.size; ++_i762) { - String _elem755; // optional - _elem755 = iprot.readString(); - struct.success.add(_elem755); + String _elem763; // optional + _elem763 = iprot.readString(); + struct.success.add(_elem763); } } struct.setSuccessIsSet(true); diff --git metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php index da9be44..be3329a 100644 --- metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php +++ metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php @@ -6246,14 +6246,14 @@ class ThriftHiveMetastore_get_databases_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size313 = 0; - $_etype316 = 0; - $xfer += $input->readListBegin($_etype316, $_size313); - for ($_i317 = 0; $_i317 < $_size313; ++$_i317) + $_size320 = 0; + $_etype323 = 0; + $xfer += $input->readListBegin($_etype323, $_size320); + for ($_i324 = 0; $_i324 < $_size320; ++$_i324) { - $elem318 = null; - $xfer += $input->readString($elem318); - $this->success []= $elem318; + $elem325 = null; + $xfer += $input->readString($elem325); + $this->success []= $elem325; } $xfer += $input->readListEnd(); } else { @@ -6289,9 +6289,9 @@ class ThriftHiveMetastore_get_databases_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter319) + foreach ($this->success as $iter326) { - $xfer += $output->writeString($iter319); + $xfer += $output->writeString($iter326); } } $output->writeListEnd(); @@ -6416,14 +6416,14 @@ class ThriftHiveMetastore_get_all_databases_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size320 = 0; - $_etype323 = 0; - $xfer += $input->readListBegin($_etype323, $_size320); - for ($_i324 = 0; $_i324 < $_size320; ++$_i324) + $_size327 = 0; + $_etype330 = 0; + $xfer += $input->readListBegin($_etype330, $_size327); + for ($_i331 = 0; $_i331 < $_size327; ++$_i331) { - $elem325 = null; - $xfer += $input->readString($elem325); - $this->success []= $elem325; + $elem332 = null; + $xfer += $input->readString($elem332); + $this->success []= $elem332; } $xfer += $input->readListEnd(); } else { @@ -6459,9 +6459,9 @@ class ThriftHiveMetastore_get_all_databases_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter326) + foreach ($this->success as $iter333) { - $xfer += $output->writeString($iter326); + $xfer += $output->writeString($iter333); } } $output->writeListEnd(); @@ -7402,18 +7402,18 @@ class ThriftHiveMetastore_get_type_all_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size327 = 0; - $_ktype328 = 0; - $_vtype329 = 0; - $xfer += $input->readMapBegin($_ktype328, $_vtype329, $_size327); - for ($_i331 = 0; $_i331 < $_size327; ++$_i331) + $_size334 = 0; + $_ktype335 = 0; + $_vtype336 = 0; + $xfer += $input->readMapBegin($_ktype335, $_vtype336, $_size334); + for ($_i338 = 0; $_i338 < $_size334; ++$_i338) { - $key332 = ''; - $val333 = new \metastore\Type(); - $xfer += $input->readString($key332); - $val333 = new \metastore\Type(); - $xfer += $val333->read($input); - $this->success[$key332] = $val333; + $key339 = ''; + $val340 = new \metastore\Type(); + $xfer += $input->readString($key339); + $val340 = new \metastore\Type(); + $xfer += $val340->read($input); + $this->success[$key339] = $val340; } $xfer += $input->readMapEnd(); } else { @@ -7449,10 +7449,10 @@ class ThriftHiveMetastore_get_type_all_result { { $output->writeMapBegin(TType::STRING, TType::STRUCT, count($this->success)); { - foreach ($this->success as $kiter334 => $viter335) + foreach ($this->success as $kiter341 => $viter342) { - $xfer += $output->writeString($kiter334); - $xfer += $viter335->write($output); + $xfer += $output->writeString($kiter341); + $xfer += $viter342->write($output); } } $output->writeMapEnd(); @@ -7638,15 +7638,15 @@ class ThriftHiveMetastore_get_fields_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size336 = 0; - $_etype339 = 0; - $xfer += $input->readListBegin($_etype339, $_size336); - for ($_i340 = 0; $_i340 < $_size336; ++$_i340) + $_size343 = 0; + $_etype346 = 0; + $xfer += $input->readListBegin($_etype346, $_size343); + for ($_i347 = 0; $_i347 < $_size343; ++$_i347) { - $elem341 = null; - $elem341 = new \metastore\FieldSchema(); - $xfer += $elem341->read($input); - $this->success []= $elem341; + $elem348 = null; + $elem348 = new \metastore\FieldSchema(); + $xfer += $elem348->read($input); + $this->success []= $elem348; } $xfer += $input->readListEnd(); } else { @@ -7698,9 +7698,9 @@ class ThriftHiveMetastore_get_fields_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter342) + foreach ($this->success as $iter349) { - $xfer += $iter342->write($output); + $xfer += $iter349->write($output); } } $output->writeListEnd(); @@ -7896,15 +7896,15 @@ class ThriftHiveMetastore_get_schema_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size343 = 0; - $_etype346 = 0; - $xfer += $input->readListBegin($_etype346, $_size343); - for ($_i347 = 0; $_i347 < $_size343; ++$_i347) + $_size350 = 0; + $_etype353 = 0; + $xfer += $input->readListBegin($_etype353, $_size350); + for ($_i354 = 0; $_i354 < $_size350; ++$_i354) { - $elem348 = null; - $elem348 = new \metastore\FieldSchema(); - $xfer += $elem348->read($input); - $this->success []= $elem348; + $elem355 = null; + $elem355 = new \metastore\FieldSchema(); + $xfer += $elem355->read($input); + $this->success []= $elem355; } $xfer += $input->readListEnd(); } else { @@ -7956,9 +7956,9 @@ class ThriftHiveMetastore_get_schema_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter349) + foreach ($this->success as $iter356) { - $xfer += $iter349->write($output); + $xfer += $iter356->write($output); } } $output->writeListEnd(); @@ -9035,14 +9035,14 @@ class ThriftHiveMetastore_get_tables_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size350 = 0; - $_etype353 = 0; - $xfer += $input->readListBegin($_etype353, $_size350); - for ($_i354 = 0; $_i354 < $_size350; ++$_i354) + $_size357 = 0; + $_etype360 = 0; + $xfer += $input->readListBegin($_etype360, $_size357); + for ($_i361 = 0; $_i361 < $_size357; ++$_i361) { - $elem355 = null; - $xfer += $input->readString($elem355); - $this->success []= $elem355; + $elem362 = null; + $xfer += $input->readString($elem362); + $this->success []= $elem362; } $xfer += $input->readListEnd(); } else { @@ -9078,9 +9078,9 @@ class ThriftHiveMetastore_get_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter356) + foreach ($this->success as $iter363) { - $xfer += $output->writeString($iter356); + $xfer += $output->writeString($iter363); } } $output->writeListEnd(); @@ -9227,14 +9227,14 @@ class ThriftHiveMetastore_get_all_tables_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size357 = 0; - $_etype360 = 0; - $xfer += $input->readListBegin($_etype360, $_size357); - for ($_i361 = 0; $_i361 < $_size357; ++$_i361) + $_size364 = 0; + $_etype367 = 0; + $xfer += $input->readListBegin($_etype367, $_size364); + for ($_i368 = 0; $_i368 < $_size364; ++$_i368) { - $elem362 = null; - $xfer += $input->readString($elem362); - $this->success []= $elem362; + $elem369 = null; + $xfer += $input->readString($elem369); + $this->success []= $elem369; } $xfer += $input->readListEnd(); } else { @@ -9270,9 +9270,9 @@ class ThriftHiveMetastore_get_all_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter363) + foreach ($this->success as $iter370) { - $xfer += $output->writeString($iter363); + $xfer += $output->writeString($iter370); } } $output->writeListEnd(); @@ -9566,14 +9566,14 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { case 2: if ($ftype == TType::LST) { $this->tbl_names = array(); - $_size364 = 0; - $_etype367 = 0; - $xfer += $input->readListBegin($_etype367, $_size364); - for ($_i368 = 0; $_i368 < $_size364; ++$_i368) + $_size371 = 0; + $_etype374 = 0; + $xfer += $input->readListBegin($_etype374, $_size371); + for ($_i375 = 0; $_i375 < $_size371; ++$_i375) { - $elem369 = null; - $xfer += $input->readString($elem369); - $this->tbl_names []= $elem369; + $elem376 = null; + $xfer += $input->readString($elem376); + $this->tbl_names []= $elem376; } $xfer += $input->readListEnd(); } else { @@ -9606,9 +9606,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { { $output->writeListBegin(TType::STRING, count($this->tbl_names)); { - foreach ($this->tbl_names as $iter370) + foreach ($this->tbl_names as $iter377) { - $xfer += $output->writeString($iter370); + $xfer += $output->writeString($iter377); } } $output->writeListEnd(); @@ -9697,15 +9697,15 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size371 = 0; - $_etype374 = 0; - $xfer += $input->readListBegin($_etype374, $_size371); - for ($_i375 = 0; $_i375 < $_size371; ++$_i375) + $_size378 = 0; + $_etype381 = 0; + $xfer += $input->readListBegin($_etype381, $_size378); + for ($_i382 = 0; $_i382 < $_size378; ++$_i382) { - $elem376 = null; - $elem376 = new \metastore\Table(); - $xfer += $elem376->read($input); - $this->success []= $elem376; + $elem383 = null; + $elem383 = new \metastore\Table(); + $xfer += $elem383->read($input); + $this->success []= $elem383; } $xfer += $input->readListEnd(); } else { @@ -9757,9 +9757,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter377) + foreach ($this->success as $iter384) { - $xfer += $iter377->write($output); + $xfer += $iter384->write($output); } } $output->writeListEnd(); @@ -9974,14 +9974,14 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size378 = 0; - $_etype381 = 0; - $xfer += $input->readListBegin($_etype381, $_size378); - for ($_i382 = 0; $_i382 < $_size378; ++$_i382) + $_size385 = 0; + $_etype388 = 0; + $xfer += $input->readListBegin($_etype388, $_size385); + for ($_i389 = 0; $_i389 < $_size385; ++$_i389) { - $elem383 = null; - $xfer += $input->readString($elem383); - $this->success []= $elem383; + $elem390 = null; + $xfer += $input->readString($elem390); + $this->success []= $elem390; } $xfer += $input->readListEnd(); } else { @@ -10033,9 +10033,9 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter384) + foreach ($this->success as $iter391) { - $xfer += $output->writeString($iter384); + $xfer += $output->writeString($iter391); } } $output->writeListEnd(); @@ -11028,15 +11028,15 @@ class ThriftHiveMetastore_add_partitions_args { case 1: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size385 = 0; - $_etype388 = 0; - $xfer += $input->readListBegin($_etype388, $_size385); - for ($_i389 = 0; $_i389 < $_size385; ++$_i389) + $_size392 = 0; + $_etype395 = 0; + $xfer += $input->readListBegin($_etype395, $_size392); + for ($_i396 = 0; $_i396 < $_size392; ++$_i396) { - $elem390 = null; - $elem390 = new \metastore\Partition(); - $xfer += $elem390->read($input); - $this->new_parts []= $elem390; + $elem397 = null; + $elem397 = new \metastore\Partition(); + $xfer += $elem397->read($input); + $this->new_parts []= $elem397; } $xfer += $input->readListEnd(); } else { @@ -11064,9 +11064,9 @@ class ThriftHiveMetastore_add_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter391) + foreach ($this->new_parts as $iter398) { - $xfer += $iter391->write($output); + $xfer += $iter398->write($output); } } $output->writeListEnd(); @@ -11295,14 +11295,14 @@ class ThriftHiveMetastore_append_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size392 = 0; - $_etype395 = 0; - $xfer += $input->readListBegin($_etype395, $_size392); - for ($_i396 = 0; $_i396 < $_size392; ++$_i396) + $_size399 = 0; + $_etype402 = 0; + $xfer += $input->readListBegin($_etype402, $_size399); + for ($_i403 = 0; $_i403 < $_size399; ++$_i403) { - $elem397 = null; - $xfer += $input->readString($elem397); - $this->part_vals []= $elem397; + $elem404 = null; + $xfer += $input->readString($elem404); + $this->part_vals []= $elem404; } $xfer += $input->readListEnd(); } else { @@ -11340,9 +11340,9 @@ class ThriftHiveMetastore_append_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter398) + foreach ($this->part_vals as $iter405) { - $xfer += $output->writeString($iter398); + $xfer += $output->writeString($iter405); } } $output->writeListEnd(); @@ -11805,14 +11805,14 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size399 = 0; - $_etype402 = 0; - $xfer += $input->readListBegin($_etype402, $_size399); - for ($_i403 = 0; $_i403 < $_size399; ++$_i403) + $_size406 = 0; + $_etype409 = 0; + $xfer += $input->readListBegin($_etype409, $_size406); + for ($_i410 = 0; $_i410 < $_size406; ++$_i410) { - $elem404 = null; - $xfer += $input->readString($elem404); - $this->part_vals []= $elem404; + $elem411 = null; + $xfer += $input->readString($elem411); + $this->part_vals []= $elem411; } $xfer += $input->readListEnd(); } else { @@ -11858,9 +11858,9 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter405) + foreach ($this->part_vals as $iter412) { - $xfer += $output->writeString($iter405); + $xfer += $output->writeString($iter412); } } $output->writeListEnd(); @@ -12645,14 +12645,14 @@ class ThriftHiveMetastore_drop_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size406 = 0; - $_etype409 = 0; - $xfer += $input->readListBegin($_etype409, $_size406); - for ($_i410 = 0; $_i410 < $_size406; ++$_i410) + $_size413 = 0; + $_etype416 = 0; + $xfer += $input->readListBegin($_etype416, $_size413); + for ($_i417 = 0; $_i417 < $_size413; ++$_i417) { - $elem411 = null; - $xfer += $input->readString($elem411); - $this->part_vals []= $elem411; + $elem418 = null; + $xfer += $input->readString($elem418); + $this->part_vals []= $elem418; } $xfer += $input->readListEnd(); } else { @@ -12697,9 +12697,9 @@ class ThriftHiveMetastore_drop_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter412) + foreach ($this->part_vals as $iter419) { - $xfer += $output->writeString($iter412); + $xfer += $output->writeString($iter419); } } $output->writeListEnd(); @@ -12928,14 +12928,14 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size413 = 0; - $_etype416 = 0; - $xfer += $input->readListBegin($_etype416, $_size413); - for ($_i417 = 0; $_i417 < $_size413; ++$_i417) + $_size420 = 0; + $_etype423 = 0; + $xfer += $input->readListBegin($_etype423, $_size420); + for ($_i424 = 0; $_i424 < $_size420; ++$_i424) { - $elem418 = null; - $xfer += $input->readString($elem418); - $this->part_vals []= $elem418; + $elem425 = null; + $xfer += $input->readString($elem425); + $this->part_vals []= $elem425; } $xfer += $input->readListEnd(); } else { @@ -12988,9 +12988,9 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter419) + foreach ($this->part_vals as $iter426) { - $xfer += $output->writeString($iter419); + $xfer += $output->writeString($iter426); } } $output->writeListEnd(); @@ -13929,14 +13929,14 @@ class ThriftHiveMetastore_get_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size420 = 0; - $_etype423 = 0; - $xfer += $input->readListBegin($_etype423, $_size420); - for ($_i424 = 0; $_i424 < $_size420; ++$_i424) + $_size427 = 0; + $_etype430 = 0; + $xfer += $input->readListBegin($_etype430, $_size427); + for ($_i431 = 0; $_i431 < $_size427; ++$_i431) { - $elem425 = null; - $xfer += $input->readString($elem425); - $this->part_vals []= $elem425; + $elem432 = null; + $xfer += $input->readString($elem432); + $this->part_vals []= $elem432; } $xfer += $input->readListEnd(); } else { @@ -13974,9 +13974,9 @@ class ThriftHiveMetastore_get_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter426) + foreach ($this->part_vals as $iter433) { - $xfer += $output->writeString($iter426); + $xfer += $output->writeString($iter433); } } $output->writeListEnd(); @@ -14194,17 +14194,17 @@ class ThriftHiveMetastore_exchange_partition_args { case 1: if ($ftype == TType::MAP) { $this->partitionSpecs = array(); - $_size427 = 0; - $_ktype428 = 0; - $_vtype429 = 0; - $xfer += $input->readMapBegin($_ktype428, $_vtype429, $_size427); - for ($_i431 = 0; $_i431 < $_size427; ++$_i431) + $_size434 = 0; + $_ktype435 = 0; + $_vtype436 = 0; + $xfer += $input->readMapBegin($_ktype435, $_vtype436, $_size434); + for ($_i438 = 0; $_i438 < $_size434; ++$_i438) { - $key432 = ''; - $val433 = ''; - $xfer += $input->readString($key432); - $xfer += $input->readString($val433); - $this->partitionSpecs[$key432] = $val433; + $key439 = ''; + $val440 = ''; + $xfer += $input->readString($key439); + $xfer += $input->readString($val440); + $this->partitionSpecs[$key439] = $val440; } $xfer += $input->readMapEnd(); } else { @@ -14260,10 +14260,10 @@ class ThriftHiveMetastore_exchange_partition_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); { - foreach ($this->partitionSpecs as $kiter434 => $viter435) + foreach ($this->partitionSpecs as $kiter441 => $viter442) { - $xfer += $output->writeString($kiter434); - $xfer += $output->writeString($viter435); + $xfer += $output->writeString($kiter441); + $xfer += $output->writeString($viter442); } } $output->writeMapEnd(); @@ -14559,14 +14559,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size436 = 0; - $_etype439 = 0; - $xfer += $input->readListBegin($_etype439, $_size436); - for ($_i440 = 0; $_i440 < $_size436; ++$_i440) + $_size443 = 0; + $_etype446 = 0; + $xfer += $input->readListBegin($_etype446, $_size443); + for ($_i447 = 0; $_i447 < $_size443; ++$_i447) { - $elem441 = null; - $xfer += $input->readString($elem441); - $this->part_vals []= $elem441; + $elem448 = null; + $xfer += $input->readString($elem448); + $this->part_vals []= $elem448; } $xfer += $input->readListEnd(); } else { @@ -14583,14 +14583,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size442 = 0; - $_etype445 = 0; - $xfer += $input->readListBegin($_etype445, $_size442); - for ($_i446 = 0; $_i446 < $_size442; ++$_i446) + $_size449 = 0; + $_etype452 = 0; + $xfer += $input->readListBegin($_etype452, $_size449); + for ($_i453 = 0; $_i453 < $_size449; ++$_i453) { - $elem447 = null; - $xfer += $input->readString($elem447); - $this->group_names []= $elem447; + $elem454 = null; + $xfer += $input->readString($elem454); + $this->group_names []= $elem454; } $xfer += $input->readListEnd(); } else { @@ -14628,9 +14628,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter448) + foreach ($this->part_vals as $iter455) { - $xfer += $output->writeString($iter448); + $xfer += $output->writeString($iter455); } } $output->writeListEnd(); @@ -14650,9 +14650,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter449) + foreach ($this->group_names as $iter456) { - $xfer += $output->writeString($iter449); + $xfer += $output->writeString($iter456); } } $output->writeListEnd(); @@ -15198,15 +15198,15 @@ class ThriftHiveMetastore_get_partitions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size450 = 0; - $_etype453 = 0; - $xfer += $input->readListBegin($_etype453, $_size450); - for ($_i454 = 0; $_i454 < $_size450; ++$_i454) + $_size457 = 0; + $_etype460 = 0; + $xfer += $input->readListBegin($_etype460, $_size457); + for ($_i461 = 0; $_i461 < $_size457; ++$_i461) { - $elem455 = null; - $elem455 = new \metastore\Partition(); - $xfer += $elem455->read($input); - $this->success []= $elem455; + $elem462 = null; + $elem462 = new \metastore\Partition(); + $xfer += $elem462->read($input); + $this->success []= $elem462; } $xfer += $input->readListEnd(); } else { @@ -15250,9 +15250,9 @@ class ThriftHiveMetastore_get_partitions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter456) + foreach ($this->success as $iter463) { - $xfer += $iter456->write($output); + $xfer += $iter463->write($output); } } $output->writeListEnd(); @@ -15383,14 +15383,14 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size457 = 0; - $_etype460 = 0; - $xfer += $input->readListBegin($_etype460, $_size457); - for ($_i461 = 0; $_i461 < $_size457; ++$_i461) + $_size464 = 0; + $_etype467 = 0; + $xfer += $input->readListBegin($_etype467, $_size464); + for ($_i468 = 0; $_i468 < $_size464; ++$_i468) { - $elem462 = null; - $xfer += $input->readString($elem462); - $this->group_names []= $elem462; + $elem469 = null; + $xfer += $input->readString($elem469); + $this->group_names []= $elem469; } $xfer += $input->readListEnd(); } else { @@ -15438,9 +15438,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter463) + foreach ($this->group_names as $iter470) { - $xfer += $output->writeString($iter463); + $xfer += $output->writeString($iter470); } } $output->writeListEnd(); @@ -15520,15 +15520,15 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size464 = 0; - $_etype467 = 0; - $xfer += $input->readListBegin($_etype467, $_size464); - for ($_i468 = 0; $_i468 < $_size464; ++$_i468) + $_size471 = 0; + $_etype474 = 0; + $xfer += $input->readListBegin($_etype474, $_size471); + for ($_i475 = 0; $_i475 < $_size471; ++$_i475) { - $elem469 = null; - $elem469 = new \metastore\Partition(); - $xfer += $elem469->read($input); - $this->success []= $elem469; + $elem476 = null; + $elem476 = new \metastore\Partition(); + $xfer += $elem476->read($input); + $this->success []= $elem476; } $xfer += $input->readListEnd(); } else { @@ -15572,9 +15572,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter470) + foreach ($this->success as $iter477) { - $xfer += $iter470->write($output); + $xfer += $iter477->write($output); } } $output->writeListEnd(); @@ -15766,14 +15766,14 @@ class ThriftHiveMetastore_get_partition_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size471 = 0; - $_etype474 = 0; - $xfer += $input->readListBegin($_etype474, $_size471); - for ($_i475 = 0; $_i475 < $_size471; ++$_i475) + $_size478 = 0; + $_etype481 = 0; + $xfer += $input->readListBegin($_etype481, $_size478); + for ($_i482 = 0; $_i482 < $_size478; ++$_i482) { - $elem476 = null; - $xfer += $input->readString($elem476); - $this->success []= $elem476; + $elem483 = null; + $xfer += $input->readString($elem483); + $this->success []= $elem483; } $xfer += $input->readListEnd(); } else { @@ -15809,9 +15809,9 @@ class ThriftHiveMetastore_get_partition_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter477) + foreach ($this->success as $iter484) { - $xfer += $output->writeString($iter477); + $xfer += $output->writeString($iter484); } } $output->writeListEnd(); @@ -15915,14 +15915,14 @@ class ThriftHiveMetastore_get_partitions_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size478 = 0; - $_etype481 = 0; - $xfer += $input->readListBegin($_etype481, $_size478); - for ($_i482 = 0; $_i482 < $_size478; ++$_i482) + $_size485 = 0; + $_etype488 = 0; + $xfer += $input->readListBegin($_etype488, $_size485); + for ($_i489 = 0; $_i489 < $_size485; ++$_i489) { - $elem483 = null; - $xfer += $input->readString($elem483); - $this->part_vals []= $elem483; + $elem490 = null; + $xfer += $input->readString($elem490); + $this->part_vals []= $elem490; } $xfer += $input->readListEnd(); } else { @@ -15967,9 +15967,9 @@ class ThriftHiveMetastore_get_partitions_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter484) + foreach ($this->part_vals as $iter491) { - $xfer += $output->writeString($iter484); + $xfer += $output->writeString($iter491); } } $output->writeListEnd(); @@ -16054,15 +16054,15 @@ class ThriftHiveMetastore_get_partitions_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size485 = 0; - $_etype488 = 0; - $xfer += $input->readListBegin($_etype488, $_size485); - for ($_i489 = 0; $_i489 < $_size485; ++$_i489) + $_size492 = 0; + $_etype495 = 0; + $xfer += $input->readListBegin($_etype495, $_size492); + for ($_i496 = 0; $_i496 < $_size492; ++$_i496) { - $elem490 = null; - $elem490 = new \metastore\Partition(); - $xfer += $elem490->read($input); - $this->success []= $elem490; + $elem497 = null; + $elem497 = new \metastore\Partition(); + $xfer += $elem497->read($input); + $this->success []= $elem497; } $xfer += $input->readListEnd(); } else { @@ -16106,9 +16106,9 @@ class ThriftHiveMetastore_get_partitions_ps_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter491) + foreach ($this->success as $iter498) { - $xfer += $iter491->write($output); + $xfer += $iter498->write($output); } } $output->writeListEnd(); @@ -16237,14 +16237,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size492 = 0; - $_etype495 = 0; - $xfer += $input->readListBegin($_etype495, $_size492); - for ($_i496 = 0; $_i496 < $_size492; ++$_i496) + $_size499 = 0; + $_etype502 = 0; + $xfer += $input->readListBegin($_etype502, $_size499); + for ($_i503 = 0; $_i503 < $_size499; ++$_i503) { - $elem497 = null; - $xfer += $input->readString($elem497); - $this->part_vals []= $elem497; + $elem504 = null; + $xfer += $input->readString($elem504); + $this->part_vals []= $elem504; } $xfer += $input->readListEnd(); } else { @@ -16268,14 +16268,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 6: if ($ftype == TType::LST) { $this->group_names = array(); - $_size498 = 0; - $_etype501 = 0; - $xfer += $input->readListBegin($_etype501, $_size498); - for ($_i502 = 0; $_i502 < $_size498; ++$_i502) + $_size505 = 0; + $_etype508 = 0; + $xfer += $input->readListBegin($_etype508, $_size505); + for ($_i509 = 0; $_i509 < $_size505; ++$_i509) { - $elem503 = null; - $xfer += $input->readString($elem503); - $this->group_names []= $elem503; + $elem510 = null; + $xfer += $input->readString($elem510); + $this->group_names []= $elem510; } $xfer += $input->readListEnd(); } else { @@ -16313,9 +16313,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter504) + foreach ($this->part_vals as $iter511) { - $xfer += $output->writeString($iter504); + $xfer += $output->writeString($iter511); } } $output->writeListEnd(); @@ -16340,9 +16340,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter505) + foreach ($this->group_names as $iter512) { - $xfer += $output->writeString($iter505); + $xfer += $output->writeString($iter512); } } $output->writeListEnd(); @@ -16422,15 +16422,15 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size506 = 0; - $_etype509 = 0; - $xfer += $input->readListBegin($_etype509, $_size506); - for ($_i510 = 0; $_i510 < $_size506; ++$_i510) + $_size513 = 0; + $_etype516 = 0; + $xfer += $input->readListBegin($_etype516, $_size513); + for ($_i517 = 0; $_i517 < $_size513; ++$_i517) { - $elem511 = null; - $elem511 = new \metastore\Partition(); - $xfer += $elem511->read($input); - $this->success []= $elem511; + $elem518 = null; + $elem518 = new \metastore\Partition(); + $xfer += $elem518->read($input); + $this->success []= $elem518; } $xfer += $input->readListEnd(); } else { @@ -16474,9 +16474,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter512) + foreach ($this->success as $iter519) { - $xfer += $iter512->write($output); + $xfer += $iter519->write($output); } } $output->writeListEnd(); @@ -16585,14 +16585,14 @@ class ThriftHiveMetastore_get_partition_names_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size513 = 0; - $_etype516 = 0; - $xfer += $input->readListBegin($_etype516, $_size513); - for ($_i517 = 0; $_i517 < $_size513; ++$_i517) + $_size520 = 0; + $_etype523 = 0; + $xfer += $input->readListBegin($_etype523, $_size520); + for ($_i524 = 0; $_i524 < $_size520; ++$_i524) { - $elem518 = null; - $xfer += $input->readString($elem518); - $this->part_vals []= $elem518; + $elem525 = null; + $xfer += $input->readString($elem525); + $this->part_vals []= $elem525; } $xfer += $input->readListEnd(); } else { @@ -16637,9 +16637,9 @@ class ThriftHiveMetastore_get_partition_names_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter519) + foreach ($this->part_vals as $iter526) { - $xfer += $output->writeString($iter519); + $xfer += $output->writeString($iter526); } } $output->writeListEnd(); @@ -16723,14 +16723,14 @@ class ThriftHiveMetastore_get_partition_names_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size520 = 0; - $_etype523 = 0; - $xfer += $input->readListBegin($_etype523, $_size520); - for ($_i524 = 0; $_i524 < $_size520; ++$_i524) + $_size527 = 0; + $_etype530 = 0; + $xfer += $input->readListBegin($_etype530, $_size527); + for ($_i531 = 0; $_i531 < $_size527; ++$_i531) { - $elem525 = null; - $xfer += $input->readString($elem525); - $this->success []= $elem525; + $elem532 = null; + $xfer += $input->readString($elem532); + $this->success []= $elem532; } $xfer += $input->readListEnd(); } else { @@ -16774,9 +16774,9 @@ class ThriftHiveMetastore_get_partition_names_ps_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter526) + foreach ($this->success as $iter533) { - $xfer += $output->writeString($iter526); + $xfer += $output->writeString($iter533); } } $output->writeListEnd(); @@ -16998,15 +16998,15 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size527 = 0; - $_etype530 = 0; - $xfer += $input->readListBegin($_etype530, $_size527); - for ($_i531 = 0; $_i531 < $_size527; ++$_i531) + $_size534 = 0; + $_etype537 = 0; + $xfer += $input->readListBegin($_etype537, $_size534); + for ($_i538 = 0; $_i538 < $_size534; ++$_i538) { - $elem532 = null; - $elem532 = new \metastore\Partition(); - $xfer += $elem532->read($input); - $this->success []= $elem532; + $elem539 = null; + $elem539 = new \metastore\Partition(); + $xfer += $elem539->read($input); + $this->success []= $elem539; } $xfer += $input->readListEnd(); } else { @@ -17050,9 +17050,9 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter533) + foreach ($this->success as $iter540) { - $xfer += $iter533->write($output); + $xfer += $iter540->write($output); } } $output->writeListEnd(); @@ -17351,14 +17351,14 @@ class ThriftHiveMetastore_get_partitions_by_names_args { case 3: if ($ftype == TType::LST) { $this->names = array(); - $_size534 = 0; - $_etype537 = 0; - $xfer += $input->readListBegin($_etype537, $_size534); - for ($_i538 = 0; $_i538 < $_size534; ++$_i538) + $_size541 = 0; + $_etype544 = 0; + $xfer += $input->readListBegin($_etype544, $_size541); + for ($_i545 = 0; $_i545 < $_size541; ++$_i545) { - $elem539 = null; - $xfer += $input->readString($elem539); - $this->names []= $elem539; + $elem546 = null; + $xfer += $input->readString($elem546); + $this->names []= $elem546; } $xfer += $input->readListEnd(); } else { @@ -17396,9 +17396,9 @@ class ThriftHiveMetastore_get_partitions_by_names_args { { $output->writeListBegin(TType::STRING, count($this->names)); { - foreach ($this->names as $iter540) + foreach ($this->names as $iter547) { - $xfer += $output->writeString($iter540); + $xfer += $output->writeString($iter547); } } $output->writeListEnd(); @@ -17478,15 +17478,15 @@ class ThriftHiveMetastore_get_partitions_by_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size541 = 0; - $_etype544 = 0; - $xfer += $input->readListBegin($_etype544, $_size541); - for ($_i545 = 0; $_i545 < $_size541; ++$_i545) + $_size548 = 0; + $_etype551 = 0; + $xfer += $input->readListBegin($_etype551, $_size548); + for ($_i552 = 0; $_i552 < $_size548; ++$_i552) { - $elem546 = null; - $elem546 = new \metastore\Partition(); - $xfer += $elem546->read($input); - $this->success []= $elem546; + $elem553 = null; + $elem553 = new \metastore\Partition(); + $xfer += $elem553->read($input); + $this->success []= $elem553; } $xfer += $input->readListEnd(); } else { @@ -17530,9 +17530,9 @@ class ThriftHiveMetastore_get_partitions_by_names_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter547) + foreach ($this->success as $iter554) { - $xfer += $iter547->write($output); + $xfer += $iter554->write($output); } } $output->writeListEnd(); @@ -17847,15 +17847,15 @@ class ThriftHiveMetastore_alter_partitions_args { case 3: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size548 = 0; - $_etype551 = 0; - $xfer += $input->readListBegin($_etype551, $_size548); - for ($_i552 = 0; $_i552 < $_size548; ++$_i552) + $_size555 = 0; + $_etype558 = 0; + $xfer += $input->readListBegin($_etype558, $_size555); + for ($_i559 = 0; $_i559 < $_size555; ++$_i559) { - $elem553 = null; - $elem553 = new \metastore\Partition(); - $xfer += $elem553->read($input); - $this->new_parts []= $elem553; + $elem560 = null; + $elem560 = new \metastore\Partition(); + $xfer += $elem560->read($input); + $this->new_parts []= $elem560; } $xfer += $input->readListEnd(); } else { @@ -17893,9 +17893,9 @@ class ThriftHiveMetastore_alter_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter554) + foreach ($this->new_parts as $iter561) { - $xfer += $iter554->write($output); + $xfer += $iter561->write($output); } } $output->writeListEnd(); @@ -18329,14 +18329,14 @@ class ThriftHiveMetastore_rename_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size555 = 0; - $_etype558 = 0; - $xfer += $input->readListBegin($_etype558, $_size555); - for ($_i559 = 0; $_i559 < $_size555; ++$_i559) + $_size562 = 0; + $_etype565 = 0; + $xfer += $input->readListBegin($_etype565, $_size562); + for ($_i566 = 0; $_i566 < $_size562; ++$_i566) { - $elem560 = null; - $xfer += $input->readString($elem560); - $this->part_vals []= $elem560; + $elem567 = null; + $xfer += $input->readString($elem567); + $this->part_vals []= $elem567; } $xfer += $input->readListEnd(); } else { @@ -18382,9 +18382,9 @@ class ThriftHiveMetastore_rename_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter561) + foreach ($this->part_vals as $iter568) { - $xfer += $output->writeString($iter561); + $xfer += $output->writeString($iter568); } } $output->writeListEnd(); @@ -18557,14 +18557,14 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { case 1: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size562 = 0; - $_etype565 = 0; - $xfer += $input->readListBegin($_etype565, $_size562); - for ($_i566 = 0; $_i566 < $_size562; ++$_i566) + $_size569 = 0; + $_etype572 = 0; + $xfer += $input->readListBegin($_etype572, $_size569); + for ($_i573 = 0; $_i573 < $_size569; ++$_i573) { - $elem567 = null; - $xfer += $input->readString($elem567); - $this->part_vals []= $elem567; + $elem574 = null; + $xfer += $input->readString($elem574); + $this->part_vals []= $elem574; } $xfer += $input->readListEnd(); } else { @@ -18599,9 +18599,9 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter568) + foreach ($this->part_vals as $iter575) { - $xfer += $output->writeString($iter568); + $xfer += $output->writeString($iter575); } } $output->writeListEnd(); @@ -19028,14 +19028,14 @@ class ThriftHiveMetastore_partition_name_to_vals_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size569 = 0; - $_etype572 = 0; - $xfer += $input->readListBegin($_etype572, $_size569); - for ($_i573 = 0; $_i573 < $_size569; ++$_i573) + $_size576 = 0; + $_etype579 = 0; + $xfer += $input->readListBegin($_etype579, $_size576); + for ($_i580 = 0; $_i580 < $_size576; ++$_i580) { - $elem574 = null; - $xfer += $input->readString($elem574); - $this->success []= $elem574; + $elem581 = null; + $xfer += $input->readString($elem581); + $this->success []= $elem581; } $xfer += $input->readListEnd(); } else { @@ -19071,9 +19071,9 @@ class ThriftHiveMetastore_partition_name_to_vals_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter575) + foreach ($this->success as $iter582) { - $xfer += $output->writeString($iter575); + $xfer += $output->writeString($iter582); } } $output->writeListEnd(); @@ -19224,17 +19224,17 @@ class ThriftHiveMetastore_partition_name_to_spec_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size576 = 0; - $_ktype577 = 0; - $_vtype578 = 0; - $xfer += $input->readMapBegin($_ktype577, $_vtype578, $_size576); - for ($_i580 = 0; $_i580 < $_size576; ++$_i580) + $_size583 = 0; + $_ktype584 = 0; + $_vtype585 = 0; + $xfer += $input->readMapBegin($_ktype584, $_vtype585, $_size583); + for ($_i587 = 0; $_i587 < $_size583; ++$_i587) { - $key581 = ''; - $val582 = ''; - $xfer += $input->readString($key581); - $xfer += $input->readString($val582); - $this->success[$key581] = $val582; + $key588 = ''; + $val589 = ''; + $xfer += $input->readString($key588); + $xfer += $input->readString($val589); + $this->success[$key588] = $val589; } $xfer += $input->readMapEnd(); } else { @@ -19270,10 +19270,10 @@ class ThriftHiveMetastore_partition_name_to_spec_result { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->success)); { - foreach ($this->success as $kiter583 => $viter584) + foreach ($this->success as $kiter590 => $viter591) { - $xfer += $output->writeString($kiter583); - $xfer += $output->writeString($viter584); + $xfer += $output->writeString($kiter590); + $xfer += $output->writeString($viter591); } } $output->writeMapEnd(); @@ -19381,17 +19381,17 @@ class ThriftHiveMetastore_markPartitionForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size585 = 0; - $_ktype586 = 0; - $_vtype587 = 0; - $xfer += $input->readMapBegin($_ktype586, $_vtype587, $_size585); - for ($_i589 = 0; $_i589 < $_size585; ++$_i589) + $_size592 = 0; + $_ktype593 = 0; + $_vtype594 = 0; + $xfer += $input->readMapBegin($_ktype593, $_vtype594, $_size592); + for ($_i596 = 0; $_i596 < $_size592; ++$_i596) { - $key590 = ''; - $val591 = ''; - $xfer += $input->readString($key590); - $xfer += $input->readString($val591); - $this->part_vals[$key590] = $val591; + $key597 = ''; + $val598 = ''; + $xfer += $input->readString($key597); + $xfer += $input->readString($val598); + $this->part_vals[$key597] = $val598; } $xfer += $input->readMapEnd(); } else { @@ -19436,10 +19436,10 @@ class ThriftHiveMetastore_markPartitionForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter592 => $viter593) + foreach ($this->part_vals as $kiter599 => $viter600) { - $xfer += $output->writeString($kiter592); - $xfer += $output->writeString($viter593); + $xfer += $output->writeString($kiter599); + $xfer += $output->writeString($viter600); } } $output->writeMapEnd(); @@ -19731,17 +19731,17 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size594 = 0; - $_ktype595 = 0; - $_vtype596 = 0; - $xfer += $input->readMapBegin($_ktype595, $_vtype596, $_size594); - for ($_i598 = 0; $_i598 < $_size594; ++$_i598) + $_size601 = 0; + $_ktype602 = 0; + $_vtype603 = 0; + $xfer += $input->readMapBegin($_ktype602, $_vtype603, $_size601); + for ($_i605 = 0; $_i605 < $_size601; ++$_i605) { - $key599 = ''; - $val600 = ''; - $xfer += $input->readString($key599); - $xfer += $input->readString($val600); - $this->part_vals[$key599] = $val600; + $key606 = ''; + $val607 = ''; + $xfer += $input->readString($key606); + $xfer += $input->readString($val607); + $this->part_vals[$key606] = $val607; } $xfer += $input->readMapEnd(); } else { @@ -19786,10 +19786,10 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter601 => $viter602) + foreach ($this->part_vals as $kiter608 => $viter609) { - $xfer += $output->writeString($kiter601); - $xfer += $output->writeString($viter602); + $xfer += $output->writeString($kiter608); + $xfer += $output->writeString($viter609); } } $output->writeMapEnd(); @@ -21149,15 +21149,15 @@ class ThriftHiveMetastore_get_indexes_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size603 = 0; - $_etype606 = 0; - $xfer += $input->readListBegin($_etype606, $_size603); - for ($_i607 = 0; $_i607 < $_size603; ++$_i607) + $_size610 = 0; + $_etype613 = 0; + $xfer += $input->readListBegin($_etype613, $_size610); + for ($_i614 = 0; $_i614 < $_size610; ++$_i614) { - $elem608 = null; - $elem608 = new \metastore\Index(); - $xfer += $elem608->read($input); - $this->success []= $elem608; + $elem615 = null; + $elem615 = new \metastore\Index(); + $xfer += $elem615->read($input); + $this->success []= $elem615; } $xfer += $input->readListEnd(); } else { @@ -21201,9 +21201,9 @@ class ThriftHiveMetastore_get_indexes_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter609) + foreach ($this->success as $iter616) { - $xfer += $iter609->write($output); + $xfer += $iter616->write($output); } } $output->writeListEnd(); @@ -21395,14 +21395,14 @@ class ThriftHiveMetastore_get_index_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size610 = 0; - $_etype613 = 0; - $xfer += $input->readListBegin($_etype613, $_size610); - for ($_i614 = 0; $_i614 < $_size610; ++$_i614) + $_size617 = 0; + $_etype620 = 0; + $xfer += $input->readListBegin($_etype620, $_size617); + for ($_i621 = 0; $_i621 < $_size617; ++$_i621) { - $elem615 = null; - $xfer += $input->readString($elem615); - $this->success []= $elem615; + $elem622 = null; + $xfer += $input->readString($elem622); + $this->success []= $elem622; } $xfer += $input->readListEnd(); } else { @@ -21438,9 +21438,9 @@ class ThriftHiveMetastore_get_index_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter616) + foreach ($this->success as $iter623) { - $xfer += $output->writeString($iter616); + $xfer += $output->writeString($iter623); } } $output->writeListEnd(); @@ -24233,14 +24233,14 @@ class ThriftHiveMetastore_get_functions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size617 = 0; - $_etype620 = 0; - $xfer += $input->readListBegin($_etype620, $_size617); - for ($_i621 = 0; $_i621 < $_size617; ++$_i621) + $_size624 = 0; + $_etype627 = 0; + $xfer += $input->readListBegin($_etype627, $_size624); + for ($_i628 = 0; $_i628 < $_size624; ++$_i628) { - $elem622 = null; - $xfer += $input->readString($elem622); - $this->success []= $elem622; + $elem629 = null; + $xfer += $input->readString($elem629); + $this->success []= $elem629; } $xfer += $input->readListEnd(); } else { @@ -24276,9 +24276,9 @@ class ThriftHiveMetastore_get_functions_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter623) + foreach ($this->success as $iter630) { - $xfer += $output->writeString($iter623); + $xfer += $output->writeString($iter630); } } $output->writeListEnd(); @@ -24953,14 +24953,14 @@ class ThriftHiveMetastore_get_role_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size624 = 0; - $_etype627 = 0; - $xfer += $input->readListBegin($_etype627, $_size624); - for ($_i628 = 0; $_i628 < $_size624; ++$_i628) + $_size631 = 0; + $_etype634 = 0; + $xfer += $input->readListBegin($_etype634, $_size631); + for ($_i635 = 0; $_i635 < $_size631; ++$_i635) { - $elem629 = null; - $xfer += $input->readString($elem629); - $this->success []= $elem629; + $elem636 = null; + $xfer += $input->readString($elem636); + $this->success []= $elem636; } $xfer += $input->readListEnd(); } else { @@ -24996,9 +24996,9 @@ class ThriftHiveMetastore_get_role_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter630) + foreach ($this->success as $iter637) { - $xfer += $output->writeString($iter630); + $xfer += $output->writeString($iter637); } } $output->writeListEnd(); @@ -25638,15 +25638,15 @@ class ThriftHiveMetastore_list_roles_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size631 = 0; - $_etype634 = 0; - $xfer += $input->readListBegin($_etype634, $_size631); - for ($_i635 = 0; $_i635 < $_size631; ++$_i635) + $_size638 = 0; + $_etype641 = 0; + $xfer += $input->readListBegin($_etype641, $_size638); + for ($_i642 = 0; $_i642 < $_size638; ++$_i642) { - $elem636 = null; - $elem636 = new \metastore\Role(); - $xfer += $elem636->read($input); - $this->success []= $elem636; + $elem643 = null; + $elem643 = new \metastore\Role(); + $xfer += $elem643->read($input); + $this->success []= $elem643; } $xfer += $input->readListEnd(); } else { @@ -25682,9 +25682,9 @@ class ThriftHiveMetastore_list_roles_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter637) + foreach ($this->success as $iter644) { - $xfer += $iter637->write($output); + $xfer += $iter644->write($output); } } $output->writeListEnd(); @@ -25782,14 +25782,14 @@ class ThriftHiveMetastore_get_privilege_set_args { case 3: if ($ftype == TType::LST) { $this->group_names = array(); - $_size638 = 0; - $_etype641 = 0; - $xfer += $input->readListBegin($_etype641, $_size638); - for ($_i642 = 0; $_i642 < $_size638; ++$_i642) + $_size645 = 0; + $_etype648 = 0; + $xfer += $input->readListBegin($_etype648, $_size645); + for ($_i649 = 0; $_i649 < $_size645; ++$_i649) { - $elem643 = null; - $xfer += $input->readString($elem643); - $this->group_names []= $elem643; + $elem650 = null; + $xfer += $input->readString($elem650); + $this->group_names []= $elem650; } $xfer += $input->readListEnd(); } else { @@ -25830,9 +25830,9 @@ class ThriftHiveMetastore_get_privilege_set_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter644) + foreach ($this->group_names as $iter651) { - $xfer += $output->writeString($iter644); + $xfer += $output->writeString($iter651); } } $output->writeListEnd(); @@ -26119,15 +26119,15 @@ class ThriftHiveMetastore_list_privileges_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size645 = 0; - $_etype648 = 0; - $xfer += $input->readListBegin($_etype648, $_size645); - for ($_i649 = 0; $_i649 < $_size645; ++$_i649) + $_size652 = 0; + $_etype655 = 0; + $xfer += $input->readListBegin($_etype655, $_size652); + for ($_i656 = 0; $_i656 < $_size652; ++$_i656) { - $elem650 = null; - $elem650 = new \metastore\HiveObjectPrivilege(); - $xfer += $elem650->read($input); - $this->success []= $elem650; + $elem657 = null; + $elem657 = new \metastore\HiveObjectPrivilege(); + $xfer += $elem657->read($input); + $this->success []= $elem657; } $xfer += $input->readListEnd(); } else { @@ -26163,9 +26163,9 @@ class ThriftHiveMetastore_list_privileges_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter651) + foreach ($this->success as $iter658) { - $xfer += $iter651->write($output); + $xfer += $iter658->write($output); } } $output->writeListEnd(); @@ -26588,14 +26588,14 @@ class ThriftHiveMetastore_set_ugi_args { case 2: if ($ftype == TType::LST) { $this->group_names = array(); - $_size652 = 0; - $_etype655 = 0; - $xfer += $input->readListBegin($_etype655, $_size652); - for ($_i656 = 0; $_i656 < $_size652; ++$_i656) + $_size659 = 0; + $_etype662 = 0; + $xfer += $input->readListBegin($_etype662, $_size659); + for ($_i663 = 0; $_i663 < $_size659; ++$_i663) { - $elem657 = null; - $xfer += $input->readString($elem657); - $this->group_names []= $elem657; + $elem664 = null; + $xfer += $input->readString($elem664); + $this->group_names []= $elem664; } $xfer += $input->readListEnd(); } else { @@ -26628,9 +26628,9 @@ class ThriftHiveMetastore_set_ugi_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter658) + foreach ($this->group_names as $iter665) { - $xfer += $output->writeString($iter658); + $xfer += $output->writeString($iter665); } } $output->writeListEnd(); @@ -26700,14 +26700,14 @@ class ThriftHiveMetastore_set_ugi_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size659 = 0; - $_etype662 = 0; - $xfer += $input->readListBegin($_etype662, $_size659); - for ($_i663 = 0; $_i663 < $_size659; ++$_i663) + $_size666 = 0; + $_etype669 = 0; + $xfer += $input->readListBegin($_etype669, $_size666); + for ($_i670 = 0; $_i670 < $_size666; ++$_i670) { - $elem664 = null; - $xfer += $input->readString($elem664); - $this->success []= $elem664; + $elem671 = null; + $xfer += $input->readString($elem671); + $this->success []= $elem671; } $xfer += $input->readListEnd(); } else { @@ -26743,9 +26743,9 @@ class ThriftHiveMetastore_set_ugi_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter665) + foreach ($this->success as $iter672) { - $xfer += $output->writeString($iter665); + $xfer += $output->writeString($iter672); } } $output->writeListEnd(); diff --git metastore/src/gen/thrift/gen-php/metastore/Types.php metastore/src/gen/thrift/gen-php/metastore/Types.php index 83b32bf..eda2bde 100644 --- metastore/src/gen/thrift/gen-php/metastore/Types.php +++ metastore/src/gen/thrift/gen-php/metastore/Types.php @@ -56,6 +56,17 @@ final class FunctionType { ); } +final class ResourceType { + const JAR = 1; + const FILE = 2; + const ARCHIVE = 3; + static public $__names = array( + 1 => 'JAR', + 2 => 'FILE', + 3 => 'ARCHIVE', + ); +} + class Version { static $_TSPEC; @@ -6697,6 +6708,98 @@ class DropPartitionsRequest { } +class ResourceUri { + static $_TSPEC; + + public $resourceType = null; + public $uri = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'resourceType', + 'type' => TType::I32, + ), + 2 => array( + 'var' => 'uri', + 'type' => TType::STRING, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['resourceType'])) { + $this->resourceType = $vals['resourceType']; + } + if (isset($vals['uri'])) { + $this->uri = $vals['uri']; + } + } + } + + public function getName() { + return 'ResourceUri'; + } + + 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->resourceType); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->uri); + } 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('ResourceUri'); + if ($this->resourceType !== null) { + $xfer += $output->writeFieldBegin('resourceType', TType::I32, 1); + $xfer += $output->writeI32($this->resourceType); + $xfer += $output->writeFieldEnd(); + } + if ($this->uri !== null) { + $xfer += $output->writeFieldBegin('uri', TType::STRING, 2); + $xfer += $output->writeString($this->uri); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + class Function { static $_TSPEC; @@ -6707,6 +6810,7 @@ class Function { public $ownerType = null; public $createTime = null; public $functionType = null; + public $resourceUris = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -6739,6 +6843,15 @@ class Function { 'var' => 'functionType', 'type' => TType::I32, ), + 8 => array( + 'var' => 'resourceUris', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\ResourceUri', + ), + ), ); } if (is_array($vals)) { @@ -6763,6 +6876,9 @@ class Function { if (isset($vals['functionType'])) { $this->functionType = $vals['functionType']; } + if (isset($vals['resourceUris'])) { + $this->resourceUris = $vals['resourceUris']; + } } } @@ -6834,6 +6950,24 @@ class Function { $xfer += $input->skip($ftype); } break; + case 8: + if ($ftype == TType::LST) { + $this->resourceUris = array(); + $_size313 = 0; + $_etype316 = 0; + $xfer += $input->readListBegin($_etype316, $_size313); + for ($_i317 = 0; $_i317 < $_size313; ++$_i317) + { + $elem318 = null; + $elem318 = new \metastore\ResourceUri(); + $xfer += $elem318->read($input); + $this->resourceUris []= $elem318; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -6882,6 +7016,23 @@ class Function { $xfer += $output->writeI32($this->functionType); $xfer += $output->writeFieldEnd(); } + if ($this->resourceUris !== null) { + if (!is_array($this->resourceUris)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('resourceUris', TType::LST, 8); + { + $output->writeListBegin(TType::STRUCT, count($this->resourceUris)); + { + foreach ($this->resourceUris as $iter319) + { + $xfer += $iter319->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; diff --git metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py index 4b310c1..eb0736a 100644 --- metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py +++ metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py @@ -6384,10 +6384,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype316, _size313) = iprot.readListBegin() - for _i317 in xrange(_size313): - _elem318 = iprot.readString(); - self.success.append(_elem318) + (_etype323, _size320) = iprot.readListBegin() + for _i324 in xrange(_size320): + _elem325 = iprot.readString(); + self.success.append(_elem325) iprot.readListEnd() else: iprot.skip(ftype) @@ -6410,8 +6410,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter319 in self.success: - oprot.writeString(iter319) + for iter326 in self.success: + oprot.writeString(iter326) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -6506,10 +6506,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype323, _size320) = iprot.readListBegin() - for _i324 in xrange(_size320): - _elem325 = iprot.readString(); - self.success.append(_elem325) + (_etype330, _size327) = iprot.readListBegin() + for _i331 in xrange(_size327): + _elem332 = iprot.readString(); + self.success.append(_elem332) iprot.readListEnd() else: iprot.skip(ftype) @@ -6532,8 +6532,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter326 in self.success: - oprot.writeString(iter326) + for iter333 in self.success: + oprot.writeString(iter333) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -7243,12 +7243,12 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype328, _vtype329, _size327 ) = iprot.readMapBegin() - for _i331 in xrange(_size327): - _key332 = iprot.readString(); - _val333 = Type() - _val333.read(iprot) - self.success[_key332] = _val333 + (_ktype335, _vtype336, _size334 ) = iprot.readMapBegin() + for _i338 in xrange(_size334): + _key339 = iprot.readString(); + _val340 = Type() + _val340.read(iprot) + self.success[_key339] = _val340 iprot.readMapEnd() else: iprot.skip(ftype) @@ -7271,9 +7271,9 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success)) - for kiter334,viter335 in self.success.items(): - oprot.writeString(kiter334) - viter335.write(oprot) + for kiter341,viter342 in self.success.items(): + oprot.writeString(kiter341) + viter342.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -7404,11 +7404,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype339, _size336) = iprot.readListBegin() - for _i340 in xrange(_size336): - _elem341 = FieldSchema() - _elem341.read(iprot) - self.success.append(_elem341) + (_etype346, _size343) = iprot.readListBegin() + for _i347 in xrange(_size343): + _elem348 = FieldSchema() + _elem348.read(iprot) + self.success.append(_elem348) iprot.readListEnd() else: iprot.skip(ftype) @@ -7443,8 +7443,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter342 in self.success: - iter342.write(oprot) + for iter349 in self.success: + iter349.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -7583,11 +7583,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype346, _size343) = iprot.readListBegin() - for _i347 in xrange(_size343): - _elem348 = FieldSchema() - _elem348.read(iprot) - self.success.append(_elem348) + (_etype353, _size350) = iprot.readListBegin() + for _i354 in xrange(_size350): + _elem355 = FieldSchema() + _elem355.read(iprot) + self.success.append(_elem355) iprot.readListEnd() else: iprot.skip(ftype) @@ -7622,8 +7622,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter349 in self.success: - iter349.write(oprot) + for iter356 in self.success: + iter356.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -8420,10 +8420,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype353, _size350) = iprot.readListBegin() - for _i354 in xrange(_size350): - _elem355 = iprot.readString(); - self.success.append(_elem355) + (_etype360, _size357) = iprot.readListBegin() + for _i361 in xrange(_size357): + _elem362 = iprot.readString(); + self.success.append(_elem362) iprot.readListEnd() else: iprot.skip(ftype) @@ -8446,8 +8446,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter356 in self.success: - oprot.writeString(iter356) + for iter363 in self.success: + oprot.writeString(iter363) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -8560,10 +8560,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype360, _size357) = iprot.readListBegin() - for _i361 in xrange(_size357): - _elem362 = iprot.readString(); - self.success.append(_elem362) + (_etype367, _size364) = iprot.readListBegin() + for _i368 in xrange(_size364): + _elem369 = iprot.readString(); + self.success.append(_elem369) iprot.readListEnd() else: iprot.skip(ftype) @@ -8586,8 +8586,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter363 in self.success: - oprot.writeString(iter363) + for iter370 in self.success: + oprot.writeString(iter370) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -8804,10 +8804,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.tbl_names = [] - (_etype367, _size364) = iprot.readListBegin() - for _i368 in xrange(_size364): - _elem369 = iprot.readString(); - self.tbl_names.append(_elem369) + (_etype374, _size371) = iprot.readListBegin() + for _i375 in xrange(_size371): + _elem376 = iprot.readString(); + self.tbl_names.append(_elem376) iprot.readListEnd() else: iprot.skip(ftype) @@ -8828,8 +8828,8 @@ def write(self, oprot): if self.tbl_names is not None: oprot.writeFieldBegin('tbl_names', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.tbl_names)) - for iter370 in self.tbl_names: - oprot.writeString(iter370) + for iter377 in self.tbl_names: + oprot.writeString(iter377) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8884,11 +8884,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype374, _size371) = iprot.readListBegin() - for _i375 in xrange(_size371): - _elem376 = Table() - _elem376.read(iprot) - self.success.append(_elem376) + (_etype381, _size378) = iprot.readListBegin() + for _i382 in xrange(_size378): + _elem383 = Table() + _elem383.read(iprot) + self.success.append(_elem383) iprot.readListEnd() else: iprot.skip(ftype) @@ -8923,8 +8923,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter377 in self.success: - iter377.write(oprot) + for iter384 in self.success: + iter384.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -9075,10 +9075,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype381, _size378) = iprot.readListBegin() - for _i382 in xrange(_size378): - _elem383 = iprot.readString(); - self.success.append(_elem383) + (_etype388, _size385) = iprot.readListBegin() + for _i389 in xrange(_size385): + _elem390 = iprot.readString(); + self.success.append(_elem390) iprot.readListEnd() else: iprot.skip(ftype) @@ -9113,8 +9113,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter384 in self.success: - oprot.writeString(iter384) + for iter391 in self.success: + oprot.writeString(iter391) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -9837,11 +9837,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.new_parts = [] - (_etype388, _size385) = iprot.readListBegin() - for _i389 in xrange(_size385): - _elem390 = Partition() - _elem390.read(iprot) - self.new_parts.append(_elem390) + (_etype395, _size392) = iprot.readListBegin() + for _i396 in xrange(_size392): + _elem397 = Partition() + _elem397.read(iprot) + self.new_parts.append(_elem397) iprot.readListEnd() else: iprot.skip(ftype) @@ -9858,8 +9858,8 @@ def write(self, oprot): if self.new_parts is not None: oprot.writeFieldBegin('new_parts', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.new_parts)) - for iter391 in self.new_parts: - iter391.write(oprot) + for iter398 in self.new_parts: + iter398.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10020,10 +10020,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype395, _size392) = iprot.readListBegin() - for _i396 in xrange(_size392): - _elem397 = iprot.readString(); - self.part_vals.append(_elem397) + (_etype402, _size399) = iprot.readListBegin() + for _i403 in xrange(_size399): + _elem404 = iprot.readString(); + self.part_vals.append(_elem404) iprot.readListEnd() else: iprot.skip(ftype) @@ -10048,8 +10048,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter398 in self.part_vals: - oprot.writeString(iter398) + for iter405 in self.part_vals: + oprot.writeString(iter405) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10374,10 +10374,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype402, _size399) = iprot.readListBegin() - for _i403 in xrange(_size399): - _elem404 = iprot.readString(); - self.part_vals.append(_elem404) + (_etype409, _size406) = iprot.readListBegin() + for _i410 in xrange(_size406): + _elem411 = iprot.readString(); + self.part_vals.append(_elem411) iprot.readListEnd() else: iprot.skip(ftype) @@ -10408,8 +10408,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter405 in self.part_vals: - oprot.writeString(iter405) + for iter412 in self.part_vals: + oprot.writeString(iter412) oprot.writeListEnd() oprot.writeFieldEnd() if self.environment_context is not None: @@ -10957,10 +10957,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype409, _size406) = iprot.readListBegin() - for _i410 in xrange(_size406): - _elem411 = iprot.readString(); - self.part_vals.append(_elem411) + (_etype416, _size413) = iprot.readListBegin() + for _i417 in xrange(_size413): + _elem418 = iprot.readString(); + self.part_vals.append(_elem418) iprot.readListEnd() else: iprot.skip(ftype) @@ -10990,8 +10990,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter412 in self.part_vals: - oprot.writeString(iter412) + for iter419 in self.part_vals: + oprot.writeString(iter419) oprot.writeListEnd() oprot.writeFieldEnd() if self.deleteData is not None: @@ -11149,10 +11149,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype416, _size413) = iprot.readListBegin() - for _i417 in xrange(_size413): - _elem418 = iprot.readString(); - self.part_vals.append(_elem418) + (_etype423, _size420) = iprot.readListBegin() + for _i424 in xrange(_size420): + _elem425 = iprot.readString(); + self.part_vals.append(_elem425) iprot.readListEnd() else: iprot.skip(ftype) @@ -11188,8 +11188,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter419 in self.part_vals: - oprot.writeString(iter419) + for iter426 in self.part_vals: + oprot.writeString(iter426) oprot.writeListEnd() oprot.writeFieldEnd() if self.deleteData is not None: @@ -11867,10 +11867,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype423, _size420) = iprot.readListBegin() - for _i424 in xrange(_size420): - _elem425 = iprot.readString(); - self.part_vals.append(_elem425) + (_etype430, _size427) = iprot.readListBegin() + for _i431 in xrange(_size427): + _elem432 = iprot.readString(); + self.part_vals.append(_elem432) iprot.readListEnd() else: iprot.skip(ftype) @@ -11895,8 +11895,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter426 in self.part_vals: - oprot.writeString(iter426) + for iter433 in self.part_vals: + oprot.writeString(iter433) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12041,11 +12041,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partitionSpecs = {} - (_ktype428, _vtype429, _size427 ) = iprot.readMapBegin() - for _i431 in xrange(_size427): - _key432 = iprot.readString(); - _val433 = iprot.readString(); - self.partitionSpecs[_key432] = _val433 + (_ktype435, _vtype436, _size434 ) = iprot.readMapBegin() + for _i438 in xrange(_size434): + _key439 = iprot.readString(); + _val440 = iprot.readString(); + self.partitionSpecs[_key439] = _val440 iprot.readMapEnd() else: iprot.skip(ftype) @@ -12082,9 +12082,9 @@ def write(self, oprot): if self.partitionSpecs is not None: oprot.writeFieldBegin('partitionSpecs', TType.MAP, 1) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.partitionSpecs)) - for kiter434,viter435 in self.partitionSpecs.items(): - oprot.writeString(kiter434) - oprot.writeString(viter435) + for kiter441,viter442 in self.partitionSpecs.items(): + oprot.writeString(kiter441) + oprot.writeString(viter442) oprot.writeMapEnd() oprot.writeFieldEnd() if self.source_db is not None: @@ -12281,10 +12281,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype439, _size436) = iprot.readListBegin() - for _i440 in xrange(_size436): - _elem441 = iprot.readString(); - self.part_vals.append(_elem441) + (_etype446, _size443) = iprot.readListBegin() + for _i447 in xrange(_size443): + _elem448 = iprot.readString(); + self.part_vals.append(_elem448) iprot.readListEnd() else: iprot.skip(ftype) @@ -12296,10 +12296,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype445, _size442) = iprot.readListBegin() - for _i446 in xrange(_size442): - _elem447 = iprot.readString(); - self.group_names.append(_elem447) + (_etype452, _size449) = iprot.readListBegin() + for _i453 in xrange(_size449): + _elem454 = iprot.readString(); + self.group_names.append(_elem454) iprot.readListEnd() else: iprot.skip(ftype) @@ -12324,8 +12324,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter448 in self.part_vals: - oprot.writeString(iter448) + for iter455 in self.part_vals: + oprot.writeString(iter455) oprot.writeListEnd() oprot.writeFieldEnd() if self.user_name is not None: @@ -12335,8 +12335,8 @@ def write(self, oprot): if self.group_names is not None: oprot.writeFieldBegin('group_names', TType.LIST, 5) oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter449 in self.group_names: - oprot.writeString(iter449) + for iter456 in self.group_names: + oprot.writeString(iter456) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12728,11 +12728,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype453, _size450) = iprot.readListBegin() - for _i454 in xrange(_size450): - _elem455 = Partition() - _elem455.read(iprot) - self.success.append(_elem455) + (_etype460, _size457) = iprot.readListBegin() + for _i461 in xrange(_size457): + _elem462 = Partition() + _elem462.read(iprot) + self.success.append(_elem462) iprot.readListEnd() else: iprot.skip(ftype) @@ -12761,8 +12761,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter456 in self.success: - iter456.write(oprot) + for iter463 in self.success: + iter463.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -12849,10 +12849,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype460, _size457) = iprot.readListBegin() - for _i461 in xrange(_size457): - _elem462 = iprot.readString(); - self.group_names.append(_elem462) + (_etype467, _size464) = iprot.readListBegin() + for _i468 in xrange(_size464): + _elem469 = iprot.readString(); + self.group_names.append(_elem469) iprot.readListEnd() else: iprot.skip(ftype) @@ -12885,8 +12885,8 @@ def write(self, oprot): if self.group_names is not None: oprot.writeFieldBegin('group_names', TType.LIST, 5) oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter463 in self.group_names: - oprot.writeString(iter463) + for iter470 in self.group_names: + oprot.writeString(iter470) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12938,11 +12938,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype467, _size464) = iprot.readListBegin() - for _i468 in xrange(_size464): - _elem469 = Partition() - _elem469.read(iprot) - self.success.append(_elem469) + (_etype474, _size471) = iprot.readListBegin() + for _i475 in xrange(_size471): + _elem476 = Partition() + _elem476.read(iprot) + self.success.append(_elem476) iprot.readListEnd() else: iprot.skip(ftype) @@ -12971,8 +12971,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter470 in self.success: - iter470.write(oprot) + for iter477 in self.success: + iter477.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -13113,10 +13113,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype474, _size471) = iprot.readListBegin() - for _i475 in xrange(_size471): - _elem476 = iprot.readString(); - self.success.append(_elem476) + (_etype481, _size478) = iprot.readListBegin() + for _i482 in xrange(_size478): + _elem483 = iprot.readString(); + self.success.append(_elem483) iprot.readListEnd() else: iprot.skip(ftype) @@ -13139,8 +13139,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter477 in self.success: - oprot.writeString(iter477) + for iter484 in self.success: + oprot.writeString(iter484) oprot.writeListEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -13210,10 +13210,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype481, _size478) = iprot.readListBegin() - for _i482 in xrange(_size478): - _elem483 = iprot.readString(); - self.part_vals.append(_elem483) + (_etype488, _size485) = iprot.readListBegin() + for _i489 in xrange(_size485): + _elem490 = iprot.readString(); + self.part_vals.append(_elem490) iprot.readListEnd() else: iprot.skip(ftype) @@ -13243,8 +13243,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter484 in self.part_vals: - oprot.writeString(iter484) + for iter491 in self.part_vals: + oprot.writeString(iter491) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -13300,11 +13300,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype488, _size485) = iprot.readListBegin() - for _i489 in xrange(_size485): - _elem490 = Partition() - _elem490.read(iprot) - self.success.append(_elem490) + (_etype495, _size492) = iprot.readListBegin() + for _i496 in xrange(_size492): + _elem497 = Partition() + _elem497.read(iprot) + self.success.append(_elem497) iprot.readListEnd() else: iprot.skip(ftype) @@ -13333,8 +13333,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter491 in self.success: - iter491.write(oprot) + for iter498 in self.success: + iter498.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -13414,10 +13414,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype495, _size492) = iprot.readListBegin() - for _i496 in xrange(_size492): - _elem497 = iprot.readString(); - self.part_vals.append(_elem497) + (_etype502, _size499) = iprot.readListBegin() + for _i503 in xrange(_size499): + _elem504 = iprot.readString(); + self.part_vals.append(_elem504) iprot.readListEnd() else: iprot.skip(ftype) @@ -13434,10 +13434,10 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.group_names = [] - (_etype501, _size498) = iprot.readListBegin() - for _i502 in xrange(_size498): - _elem503 = iprot.readString(); - self.group_names.append(_elem503) + (_etype508, _size505) = iprot.readListBegin() + for _i509 in xrange(_size505): + _elem510 = iprot.readString(); + self.group_names.append(_elem510) iprot.readListEnd() else: iprot.skip(ftype) @@ -13462,8 +13462,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter504 in self.part_vals: - oprot.writeString(iter504) + for iter511 in self.part_vals: + oprot.writeString(iter511) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -13477,8 +13477,8 @@ def write(self, oprot): if self.group_names is not None: oprot.writeFieldBegin('group_names', TType.LIST, 6) oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter505 in self.group_names: - oprot.writeString(iter505) + for iter512 in self.group_names: + oprot.writeString(iter512) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13530,11 +13530,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype509, _size506) = iprot.readListBegin() - for _i510 in xrange(_size506): - _elem511 = Partition() - _elem511.read(iprot) - self.success.append(_elem511) + (_etype516, _size513) = iprot.readListBegin() + for _i517 in xrange(_size513): + _elem518 = Partition() + _elem518.read(iprot) + self.success.append(_elem518) iprot.readListEnd() else: iprot.skip(ftype) @@ -13563,8 +13563,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter512 in self.success: - iter512.write(oprot) + for iter519 in self.success: + iter519.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -13638,10 +13638,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype516, _size513) = iprot.readListBegin() - for _i517 in xrange(_size513): - _elem518 = iprot.readString(); - self.part_vals.append(_elem518) + (_etype523, _size520) = iprot.readListBegin() + for _i524 in xrange(_size520): + _elem525 = iprot.readString(); + self.part_vals.append(_elem525) iprot.readListEnd() else: iprot.skip(ftype) @@ -13671,8 +13671,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter519 in self.part_vals: - oprot.writeString(iter519) + for iter526 in self.part_vals: + oprot.writeString(iter526) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -13728,10 +13728,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype523, _size520) = iprot.readListBegin() - for _i524 in xrange(_size520): - _elem525 = iprot.readString(); - self.success.append(_elem525) + (_etype530, _size527) = iprot.readListBegin() + for _i531 in xrange(_size527): + _elem532 = iprot.readString(); + self.success.append(_elem532) iprot.readListEnd() else: iprot.skip(ftype) @@ -13760,8 +13760,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter526 in self.success: - oprot.writeString(iter526) + for iter533 in self.success: + oprot.writeString(iter533) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -13917,11 +13917,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype530, _size527) = iprot.readListBegin() - for _i531 in xrange(_size527): - _elem532 = Partition() - _elem532.read(iprot) - self.success.append(_elem532) + (_etype537, _size534) = iprot.readListBegin() + for _i538 in xrange(_size534): + _elem539 = Partition() + _elem539.read(iprot) + self.success.append(_elem539) iprot.readListEnd() else: iprot.skip(ftype) @@ -13950,8 +13950,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter533 in self.success: - iter533.write(oprot) + for iter540 in self.success: + iter540.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -14169,10 +14169,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.names = [] - (_etype537, _size534) = iprot.readListBegin() - for _i538 in xrange(_size534): - _elem539 = iprot.readString(); - self.names.append(_elem539) + (_etype544, _size541) = iprot.readListBegin() + for _i545 in xrange(_size541): + _elem546 = iprot.readString(); + self.names.append(_elem546) iprot.readListEnd() else: iprot.skip(ftype) @@ -14197,8 +14197,8 @@ def write(self, oprot): if self.names is not None: oprot.writeFieldBegin('names', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.names)) - for iter540 in self.names: - oprot.writeString(iter540) + for iter547 in self.names: + oprot.writeString(iter547) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14250,11 +14250,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype544, _size541) = iprot.readListBegin() - for _i545 in xrange(_size541): - _elem546 = Partition() - _elem546.read(iprot) - self.success.append(_elem546) + (_etype551, _size548) = iprot.readListBegin() + for _i552 in xrange(_size548): + _elem553 = Partition() + _elem553.read(iprot) + self.success.append(_elem553) iprot.readListEnd() else: iprot.skip(ftype) @@ -14283,8 +14283,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter547 in self.success: - iter547.write(oprot) + for iter554 in self.success: + iter554.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -14514,11 +14514,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.new_parts = [] - (_etype551, _size548) = iprot.readListBegin() - for _i552 in xrange(_size548): - _elem553 = Partition() - _elem553.read(iprot) - self.new_parts.append(_elem553) + (_etype558, _size555) = iprot.readListBegin() + for _i559 in xrange(_size555): + _elem560 = Partition() + _elem560.read(iprot) + self.new_parts.append(_elem560) iprot.readListEnd() else: iprot.skip(ftype) @@ -14543,8 +14543,8 @@ def write(self, oprot): if self.new_parts is not None: oprot.writeFieldBegin('new_parts', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.new_parts)) - for iter554 in self.new_parts: - iter554.write(oprot) + for iter561 in self.new_parts: + iter561.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14856,10 +14856,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype558, _size555) = iprot.readListBegin() - for _i559 in xrange(_size555): - _elem560 = iprot.readString(); - self.part_vals.append(_elem560) + (_etype565, _size562) = iprot.readListBegin() + for _i566 in xrange(_size562): + _elem567 = iprot.readString(); + self.part_vals.append(_elem567) iprot.readListEnd() else: iprot.skip(ftype) @@ -14890,8 +14890,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter561 in self.part_vals: - oprot.writeString(iter561) + for iter568 in self.part_vals: + oprot.writeString(iter568) oprot.writeListEnd() oprot.writeFieldEnd() if self.new_part is not None: @@ -15019,10 +15019,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.part_vals = [] - (_etype565, _size562) = iprot.readListBegin() - for _i566 in xrange(_size562): - _elem567 = iprot.readString(); - self.part_vals.append(_elem567) + (_etype572, _size569) = iprot.readListBegin() + for _i573 in xrange(_size569): + _elem574 = iprot.readString(); + self.part_vals.append(_elem574) iprot.readListEnd() else: iprot.skip(ftype) @@ -15044,8 +15044,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter568 in self.part_vals: - oprot.writeString(iter568) + for iter575 in self.part_vals: + oprot.writeString(iter575) oprot.writeListEnd() oprot.writeFieldEnd() if self.throw_exception is not None: @@ -15374,10 +15374,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype572, _size569) = iprot.readListBegin() - for _i573 in xrange(_size569): - _elem574 = iprot.readString(); - self.success.append(_elem574) + (_etype579, _size576) = iprot.readListBegin() + for _i580 in xrange(_size576): + _elem581 = iprot.readString(); + self.success.append(_elem581) iprot.readListEnd() else: iprot.skip(ftype) @@ -15400,8 +15400,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter575 in self.success: - oprot.writeString(iter575) + for iter582 in self.success: + oprot.writeString(iter582) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -15514,11 +15514,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype577, _vtype578, _size576 ) = iprot.readMapBegin() - for _i580 in xrange(_size576): - _key581 = iprot.readString(); - _val582 = iprot.readString(); - self.success[_key581] = _val582 + (_ktype584, _vtype585, _size583 ) = iprot.readMapBegin() + for _i587 in xrange(_size583): + _key588 = iprot.readString(); + _val589 = iprot.readString(); + self.success[_key588] = _val589 iprot.readMapEnd() else: iprot.skip(ftype) @@ -15541,9 +15541,9 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) - for kiter583,viter584 in self.success.items(): - oprot.writeString(kiter583) - oprot.writeString(viter584) + for kiter590,viter591 in self.success.items(): + oprot.writeString(kiter590) + oprot.writeString(viter591) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -15613,11 +15613,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype586, _vtype587, _size585 ) = iprot.readMapBegin() - for _i589 in xrange(_size585): - _key590 = iprot.readString(); - _val591 = iprot.readString(); - self.part_vals[_key590] = _val591 + (_ktype593, _vtype594, _size592 ) = iprot.readMapBegin() + for _i596 in xrange(_size592): + _key597 = iprot.readString(); + _val598 = iprot.readString(); + self.part_vals[_key597] = _val598 iprot.readMapEnd() else: iprot.skip(ftype) @@ -15647,9 +15647,9 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.MAP, 3) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.part_vals)) - for kiter592,viter593 in self.part_vals.items(): - oprot.writeString(kiter592) - oprot.writeString(viter593) + for kiter599,viter600 in self.part_vals.items(): + oprot.writeString(kiter599) + oprot.writeString(viter600) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -15845,11 +15845,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype595, _vtype596, _size594 ) = iprot.readMapBegin() - for _i598 in xrange(_size594): - _key599 = iprot.readString(); - _val600 = iprot.readString(); - self.part_vals[_key599] = _val600 + (_ktype602, _vtype603, _size601 ) = iprot.readMapBegin() + for _i605 in xrange(_size601): + _key606 = iprot.readString(); + _val607 = iprot.readString(); + self.part_vals[_key606] = _val607 iprot.readMapEnd() else: iprot.skip(ftype) @@ -15879,9 +15879,9 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.MAP, 3) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.part_vals)) - for kiter601,viter602 in self.part_vals.items(): - oprot.writeString(kiter601) - oprot.writeString(viter602) + for kiter608,viter609 in self.part_vals.items(): + oprot.writeString(kiter608) + oprot.writeString(viter609) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -16853,11 +16853,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype606, _size603) = iprot.readListBegin() - for _i607 in xrange(_size603): - _elem608 = Index() - _elem608.read(iprot) - self.success.append(_elem608) + (_etype613, _size610) = iprot.readListBegin() + for _i614 in xrange(_size610): + _elem615 = Index() + _elem615.read(iprot) + self.success.append(_elem615) iprot.readListEnd() else: iprot.skip(ftype) @@ -16886,8 +16886,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter609 in self.success: - iter609.write(oprot) + for iter616 in self.success: + iter616.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -17028,10 +17028,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype613, _size610) = iprot.readListBegin() - for _i614 in xrange(_size610): - _elem615 = iprot.readString(); - self.success.append(_elem615) + (_etype620, _size617) = iprot.readListBegin() + for _i621 in xrange(_size617): + _elem622 = iprot.readString(); + self.success.append(_elem622) iprot.readListEnd() else: iprot.skip(ftype) @@ -17054,8 +17054,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter616 in self.success: - oprot.writeString(iter616) + for iter623 in self.success: + oprot.writeString(iter623) oprot.writeListEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -19090,10 +19090,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype620, _size617) = iprot.readListBegin() - for _i621 in xrange(_size617): - _elem622 = iprot.readString(); - self.success.append(_elem622) + (_etype627, _size624) = iprot.readListBegin() + for _i628 in xrange(_size624): + _elem629 = iprot.readString(); + self.success.append(_elem629) iprot.readListEnd() else: iprot.skip(ftype) @@ -19116,8 +19116,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter623 in self.success: - oprot.writeString(iter623) + for iter630 in self.success: + oprot.writeString(iter630) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -19635,10 +19635,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype627, _size624) = iprot.readListBegin() - for _i628 in xrange(_size624): - _elem629 = iprot.readString(); - self.success.append(_elem629) + (_etype634, _size631) = iprot.readListBegin() + for _i635 in xrange(_size631): + _elem636 = iprot.readString(); + self.success.append(_elem636) iprot.readListEnd() else: iprot.skip(ftype) @@ -19661,8 +19661,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter630 in self.success: - oprot.writeString(iter630) + for iter637 in self.success: + oprot.writeString(iter637) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -20135,11 +20135,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype634, _size631) = iprot.readListBegin() - for _i635 in xrange(_size631): - _elem636 = Role() - _elem636.read(iprot) - self.success.append(_elem636) + (_etype641, _size638) = iprot.readListBegin() + for _i642 in xrange(_size638): + _elem643 = Role() + _elem643.read(iprot) + self.success.append(_elem643) iprot.readListEnd() else: iprot.skip(ftype) @@ -20162,8 +20162,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter637 in self.success: - iter637.write(oprot) + for iter644 in self.success: + iter644.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -20231,10 +20231,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.group_names = [] - (_etype641, _size638) = iprot.readListBegin() - for _i642 in xrange(_size638): - _elem643 = iprot.readString(); - self.group_names.append(_elem643) + (_etype648, _size645) = iprot.readListBegin() + for _i649 in xrange(_size645): + _elem650 = iprot.readString(); + self.group_names.append(_elem650) iprot.readListEnd() else: iprot.skip(ftype) @@ -20259,8 +20259,8 @@ def write(self, oprot): if self.group_names is not None: oprot.writeFieldBegin('group_names', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter644 in self.group_names: - oprot.writeString(iter644) + for iter651 in self.group_names: + oprot.writeString(iter651) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20467,11 +20467,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype648, _size645) = iprot.readListBegin() - for _i649 in xrange(_size645): - _elem650 = HiveObjectPrivilege() - _elem650.read(iprot) - self.success.append(_elem650) + (_etype655, _size652) = iprot.readListBegin() + for _i656 in xrange(_size652): + _elem657 = HiveObjectPrivilege() + _elem657.read(iprot) + self.success.append(_elem657) iprot.readListEnd() else: iprot.skip(ftype) @@ -20494,8 +20494,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter651 in self.success: - iter651.write(oprot) + for iter658 in self.success: + iter658.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -20820,10 +20820,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.group_names = [] - (_etype655, _size652) = iprot.readListBegin() - for _i656 in xrange(_size652): - _elem657 = iprot.readString(); - self.group_names.append(_elem657) + (_etype662, _size659) = iprot.readListBegin() + for _i663 in xrange(_size659): + _elem664 = iprot.readString(); + self.group_names.append(_elem664) iprot.readListEnd() else: iprot.skip(ftype) @@ -20844,8 +20844,8 @@ def write(self, oprot): if self.group_names is not None: oprot.writeFieldBegin('group_names', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter658 in self.group_names: - oprot.writeString(iter658) + for iter665 in self.group_names: + oprot.writeString(iter665) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20894,10 +20894,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype662, _size659) = iprot.readListBegin() - for _i663 in xrange(_size659): - _elem664 = iprot.readString(); - self.success.append(_elem664) + (_etype669, _size666) = iprot.readListBegin() + for _i670 in xrange(_size666): + _elem671 = iprot.readString(); + self.success.append(_elem671) iprot.readListEnd() else: iprot.skip(ftype) @@ -20920,8 +20920,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter665 in self.success: - oprot.writeString(iter665) + for iter672 in self.success: + oprot.writeString(iter672) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: diff --git metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py index 81fa87f..8ab1f03 100644 --- metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py +++ metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py @@ -80,6 +80,23 @@ class FunctionType: "JAVA": 1, } +class ResourceType: + JAR = 1 + FILE = 2 + ARCHIVE = 3 + + _VALUES_TO_NAMES = { + 1: "JAR", + 2: "FILE", + 3: "ARCHIVE", + } + + _NAMES_TO_VALUES = { + "JAR": 1, + "FILE": 2, + "ARCHIVE": 3, + } + class Version: """ @@ -4455,6 +4472,78 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +class ResourceUri: + """ + Attributes: + - resourceType + - uri + """ + + thrift_spec = ( + None, # 0 + (1, TType.I32, 'resourceType', None, None, ), # 1 + (2, TType.STRING, 'uri', None, None, ), # 2 + ) + + def __init__(self, resourceType=None, uri=None,): + self.resourceType = resourceType + self.uri = uri + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.I32: + self.resourceType = iprot.readI32(); + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.uri = iprot.readString(); + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('ResourceUri') + if self.resourceType is not None: + oprot.writeFieldBegin('resourceType', TType.I32, 1) + oprot.writeI32(self.resourceType) + oprot.writeFieldEnd() + if self.uri is not None: + oprot.writeFieldBegin('uri', TType.STRING, 2) + oprot.writeString(self.uri) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + class Function: """ Attributes: @@ -4465,6 +4554,7 @@ class Function: - ownerType - createTime - functionType + - resourceUris """ thrift_spec = ( @@ -4476,9 +4566,10 @@ class Function: (5, TType.I32, 'ownerType', None, None, ), # 5 (6, TType.I32, 'createTime', None, None, ), # 6 (7, TType.I32, 'functionType', None, None, ), # 7 + (8, TType.LIST, 'resourceUris', (TType.STRUCT,(ResourceUri, ResourceUri.thrift_spec)), None, ), # 8 ) - def __init__(self, functionName=None, dbName=None, className=None, ownerName=None, ownerType=None, createTime=None, functionType=None,): + def __init__(self, functionName=None, dbName=None, className=None, ownerName=None, ownerType=None, createTime=None, functionType=None, resourceUris=None,): self.functionName = functionName self.dbName = dbName self.className = className @@ -4486,6 +4577,7 @@ def __init__(self, functionName=None, dbName=None, className=None, ownerName=Non self.ownerType = ownerType self.createTime = createTime self.functionType = functionType + self.resourceUris = resourceUris def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -4531,6 +4623,17 @@ def read(self, iprot): self.functionType = iprot.readI32(); else: iprot.skip(ftype) + elif fid == 8: + if ftype == TType.LIST: + self.resourceUris = [] + (_etype316, _size313) = iprot.readListBegin() + for _i317 in xrange(_size313): + _elem318 = ResourceUri() + _elem318.read(iprot) + self.resourceUris.append(_elem318) + iprot.readListEnd() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -4569,6 +4672,13 @@ def write(self, oprot): oprot.writeFieldBegin('functionType', TType.I32, 7) oprot.writeI32(self.functionType) oprot.writeFieldEnd() + if self.resourceUris is not None: + oprot.writeFieldBegin('resourceUris', TType.LIST, 8) + oprot.writeListBegin(TType.STRUCT, len(self.resourceUris)) + for iter319 in self.resourceUris: + iter319.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() diff --git metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb index e73d62c..fba024a 100644 --- metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb +++ metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb @@ -38,6 +38,14 @@ module FunctionType VALID_VALUES = Set.new([JAVA]).freeze end +module ResourceType + JAR = 1 + FILE = 2 + ARCHIVE = 3 + VALUE_MAP = {1 => "JAR", 2 => "FILE", 3 => "ARCHIVE"} + VALID_VALUES = Set.new([JAR, FILE, ARCHIVE]).freeze +end + class Version include ::Thrift::Struct, ::Thrift::Struct_Union VERSION = 1 @@ -1020,6 +1028,27 @@ class DropPartitionsRequest ::Thrift::Struct.generate_accessors self end +class ResourceUri + include ::Thrift::Struct, ::Thrift::Struct_Union + RESOURCETYPE = 1 + URI = 2 + + FIELDS = { + RESOURCETYPE => {:type => ::Thrift::Types::I32, :name => 'resourceType', :enum_class => ::ResourceType}, + URI => {:type => ::Thrift::Types::STRING, :name => 'uri'} + } + + def struct_fields; FIELDS; end + + def validate + unless @resourceType.nil? || ::ResourceType::VALID_VALUES.include?(@resourceType) + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field resourceType!') + end + end + + ::Thrift::Struct.generate_accessors self +end + class Function include ::Thrift::Struct, ::Thrift::Struct_Union FUNCTIONNAME = 1 @@ -1029,6 +1058,7 @@ class Function OWNERTYPE = 5 CREATETIME = 6 FUNCTIONTYPE = 7 + RESOURCEURIS = 8 FIELDS = { FUNCTIONNAME => {:type => ::Thrift::Types::STRING, :name => 'functionName'}, @@ -1037,7 +1067,8 @@ class Function OWNERNAME => {:type => ::Thrift::Types::STRING, :name => 'ownerName'}, OWNERTYPE => {:type => ::Thrift::Types::I32, :name => 'ownerType', :enum_class => ::PrincipalType}, CREATETIME => {:type => ::Thrift::Types::I32, :name => 'createTime'}, - FUNCTIONTYPE => {:type => ::Thrift::Types::I32, :name => 'functionType', :enum_class => ::FunctionType} + FUNCTIONTYPE => {:type => ::Thrift::Types::I32, :name => 'functionType', :enum_class => ::FunctionType}, + RESOURCEURIS => {:type => ::Thrift::Types::LIST, :name => 'resourceUris', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ResourceUri}} } def struct_fields; FIELDS; end diff --git metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java index c0b68c6..7c74e79 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java @@ -4582,19 +4582,6 @@ private void validateFunctionInfo(Function func) throws InvalidObjectException, if (className == null) { throw new InvalidObjectException("Function class name cannot be null"); } - - // Not sure if we can verify that the class is actually a UDF, - // since from metastore we do not have access to ql where UDF classes live. - // We can at least verify that the class name is a valid class. - try { - Class functionClass = Class.forName(className, true, JavaUtils.getClassLoader()); - if (functionClass == null) { - throw new ClassNotFoundException(className + " was null"); - } - } catch (ClassNotFoundException e) { - throw new MetaException("Cannot load class " + className + " for function " - + func.getDbName() + "." + func.getFunctionName() + ": " + e); - } } @Override diff --git metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java index 885ac99..0070185 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java @@ -90,6 +90,8 @@ import org.apache.hadoop.hive.metastore.api.PrincipalType; import org.apache.hadoop.hive.metastore.api.PrivilegeBag; import org.apache.hadoop.hive.metastore.api.PrivilegeGrantInfo; +import org.apache.hadoop.hive.metastore.api.ResourceType; +import org.apache.hadoop.hive.metastore.api.ResourceUri; import org.apache.hadoop.hive.metastore.api.Role; import org.apache.hadoop.hive.metastore.api.SerDeInfo; import org.apache.hadoop.hive.metastore.api.SkewedInfo; @@ -115,6 +117,7 @@ import org.apache.hadoop.hive.metastore.model.MPartitionColumnStatistics; import org.apache.hadoop.hive.metastore.model.MPartitionEvent; import org.apache.hadoop.hive.metastore.model.MPartitionPrivilege; +import org.apache.hadoop.hive.metastore.model.MResourceUri; import org.apache.hadoop.hive.metastore.model.MRole; import org.apache.hadoop.hive.metastore.model.MRoleMap; import org.apache.hadoop.hive.metastore.model.MSerDeInfo; @@ -6389,7 +6392,8 @@ private Function convertToFunction(MFunction mfunc) { mfunc.getOwnerName(), PrincipalType.valueOf(mfunc.getOwnerType()), mfunc.getCreateTime(), - FunctionType.findByValue(mfunc.getFunctionType())); + FunctionType.findByValue(mfunc.getFunctionType()), + convertToResourceUriList(mfunc.getResourceUris())); return func; } @@ -6412,10 +6416,34 @@ private MFunction convertToMFunction(Function func) throws InvalidObjectExceptio func.getOwnerName(), func.getOwnerType().name(), func.getCreateTime(), - func.getFunctionType().getValue()); + func.getFunctionType().getValue(), + convertToMResourceUriList(func.getResourceUris())); return mfunc; } + private List convertToResourceUriList(List mresourceUriList) { + List resourceUriList = null; + if (mresourceUriList != null) { + resourceUriList = new ArrayList(mresourceUriList.size()); + for (MResourceUri mres : mresourceUriList) { + resourceUriList.add( + new ResourceUri(ResourceType.findByValue(mres.getResourceType()), mres.getUri())); + } + } + return resourceUriList; + } + + private List convertToMResourceUriList(List resourceUriList) { + List mresourceUriList = null; + if (resourceUriList != null) { + mresourceUriList = new ArrayList(resourceUriList.size()); + for (ResourceUri res : resourceUriList) { + mresourceUriList.add(new MResourceUri(res.getResourceType().getValue(), res.getUri())); + } + } + return mresourceUriList; + } + public void createFunction(Function func) throws InvalidObjectException, MetaException { boolean committed = false; try { diff --git metastore/src/model/org/apache/hadoop/hive/metastore/model/MFunction.java metastore/src/model/org/apache/hadoop/hive/metastore/model/MFunction.java index fe9b234..59dbc49 100644 --- metastore/src/model/org/apache/hadoop/hive/metastore/model/MFunction.java +++ metastore/src/model/org/apache/hadoop/hive/metastore/model/MFunction.java @@ -19,6 +19,7 @@ package org.apache.hadoop.hive.metastore.model; import org.apache.hadoop.hive.metastore.api.PrincipalType; +import java.util.List; public class MFunction { @@ -29,6 +30,7 @@ private String ownerType; private int createTime; private int functionType; + private List resourceUris; public MFunction() { } @@ -39,7 +41,8 @@ public MFunction(String functionName, String ownerName, String ownerType, int createTime, - int functionType) { + int functionType, + List resourceUris) { this.setFunctionName(functionName); this.setDatabase(database); this.setFunctionType(functionType); @@ -47,6 +50,7 @@ public MFunction(String functionName, this.setOwnerName(ownerName); this.setOwnerType(ownerType); this.setCreateTime(createTime); + this.setResourceUris(resourceUris); } public String getFunctionName() { @@ -104,4 +108,12 @@ public int getFunctionType() { public void setFunctionType(int functionType) { this.functionType = functionType; } + + public List getResourceUris() { + return resourceUris; + } + + public void setResourceUris(List resourceUris) { + this.resourceUris = resourceUris; + } } diff --git metastore/src/model/org/apache/hadoop/hive/metastore/model/MResourceUri.java metastore/src/model/org/apache/hadoop/hive/metastore/model/MResourceUri.java new file mode 100644 index 0000000..0998cf7 --- /dev/null +++ metastore/src/model/org/apache/hadoop/hive/metastore/model/MResourceUri.java @@ -0,0 +1,49 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.hadoop.hive.metastore.model; + +public class MResourceUri { + private int resourceType; + private String uri; + + public MResourceUri() { + } + + public MResourceUri(int resourceType, String uri) { + super(); + this.resourceType = resourceType; + this.uri = uri; + } + + public int getResourceType() { + return resourceType; + } + + public void setResourceType(int resourceType) { + this.resourceType = resourceType; + } + + public String getUri() { + return uri; + } + + public void setUri(String uri) { + this.uri = uri; + } +} diff --git metastore/src/model/package.jdo metastore/src/model/package.jdo index 22b8abf..c29560e 100644 --- metastore/src/model/package.jdo +++ metastore/src/model/package.jdo @@ -917,6 +917,15 @@ + + + + + + + + + @@ -946,6 +955,22 @@ + + + + + + + + + + + + + + + + diff --git ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionRegistry.java ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionRegistry.java index 6c55063..99cd402 100644 --- ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionRegistry.java +++ ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionRegistry.java @@ -44,6 +44,8 @@ import org.apache.hadoop.hive.common.type.HiveDecimal; import org.apache.hadoop.hive.conf.HiveConf; import org.apache.hadoop.hive.metastore.api.Function; +import org.apache.hadoop.hive.metastore.api.ResourceType; +import org.apache.hadoop.hive.metastore.api.ResourceUri; import org.apache.hadoop.hive.ql.exec.FunctionUtils.UDFClassType; import org.apache.hadoop.hive.ql.metadata.Hive; import org.apache.hadoop.hive.ql.metadata.HiveException; @@ -525,6 +527,31 @@ public static void registerGenericUDTF(boolean isNative, String functionName, } } + private static SessionState.ResourceType getResourceType(ResourceType rt) throws HiveException { + switch (rt) { + case JAR: + return SessionState.ResourceType.JAR; + case FILE: + return SessionState.ResourceType.FILE; + case ARCHIVE: + return SessionState.ResourceType.ARCHIVE; + default: + throw new HiveException("Unexpected resource type " + rt); + } + } + + public static void addFunctionResources(List resources) throws HiveException { + if (resources != null) { + for (ResourceUri res : resources) { + String addedResource = + SessionState.get().add_resource(getResourceType(res.getResourceType()), res.getUri()); + if (addedResource == null) { + throw new HiveException("Unable to load " + res.getResourceType() + " " + res.getUri()); + } + } + } + } + private static FunctionInfo getFunctionInfoFromMetastore(String functionName) { FunctionInfo ret = null; @@ -547,6 +574,13 @@ private static FunctionInfo getFunctionInfoFromMetastore(String functionName) { if (func != null) { // Found UDF in metastore - now add it to the function registry // At this point we should add any relevant jars that would be needed for the UDf. + try { + addFunctionResources(func.getResourceUris()); + } catch (Exception e) { + LOG.error("Unable to load resources for " + dbName + "." + fName + ":" + e); + return null; + } + Class udfClass = Class.forName(func.getClassName(), true, JavaUtils.getClassLoader()); if (registerTemporaryFunction(functionName, udfClass)) { ret = mFunctions.get(functionName); diff --git ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionTask.java ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionTask.java index 8fc5e34..f76646c 100644 --- ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionTask.java +++ ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionTask.java @@ -21,13 +21,17 @@ import static org.apache.hadoop.util.StringUtils.stringifyException; import java.io.IOException; +import java.net.URI; +import java.util.List; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.hive.common.JavaUtils; import org.apache.hadoop.hive.conf.HiveConf; import org.apache.hadoop.hive.metastore.api.Function; import org.apache.hadoop.hive.metastore.api.PrincipalType; +import org.apache.hadoop.hive.metastore.api.ResourceUri; import org.apache.hadoop.hive.ql.Context; import org.apache.hadoop.hive.ql.DriverContext; import org.apache.hadoop.hive.ql.QueryPlan; @@ -123,6 +127,12 @@ private int createPermanentFunction(Hive db, CreateFunctionDesc createFunctionDe boolean addedToRegistry = false; try { + // For permanent functions, check for any resources from local filesystem. + checkLocalFunctionResources(db, createFunctionDesc.getResources()); + + // Add any required resources + FunctionRegistry.addFunctionResources(createFunctionDesc.getResources()); + // UDF class should exist Class udfClass = getUdfClass(createFunctionDesc); if (FunctionUtils.getUDFClassType(udfClass) == UDFClassType.UNKNOWN) { @@ -147,7 +157,9 @@ private int createPermanentFunction(Hive db, CreateFunctionDesc createFunctionDe SessionState.get().getUserName(), PrincipalType.USER, (int) (System.currentTimeMillis() / 1000), - org.apache.hadoop.hive.metastore.api.FunctionType.JAVA); + org.apache.hadoop.hive.metastore.api.FunctionType.JAVA, + createFunctionDesc.getResources() + ); db.createFunction(func); return 0; } catch (ClassNotFoundException e) { @@ -162,6 +174,9 @@ private int createPermanentFunction(Hive db, CreateFunctionDesc createFunctionDe private int createTemporaryFunction(CreateFunctionDesc createFunctionDesc) { try { + // Add any required resources + FunctionRegistry.addFunctionResources(createFunctionDesc.getResources()); + Class udfClass = getUdfClass(createFunctionDesc); boolean registered = FunctionRegistry.registerTemporaryFunction( createFunctionDesc.getFunctionName(), @@ -172,7 +187,12 @@ private int createTemporaryFunction(CreateFunctionDesc createFunctionDesc) { console.printError("FAILED: Class " + createFunctionDesc.getClassName() + " does not implement UDF, GenericUDF, or UDAF"); return 1; + } catch (HiveException e) { + console.printError("FAILED: " + e.toString()); + LOG.info("create function: " + StringUtils.stringifyException(e)); + return 1; } catch (ClassNotFoundException e) { + console.printError("FAILED: Class " + createFunctionDesc.getClassName() + " not found"); LOG.info("create function: " + StringUtils.stringifyException(e)); return 1; @@ -230,6 +250,37 @@ private int dropTemporaryFunction(DropFunctionDesc dropFunctionDesc) { } } + private void checkLocalFunctionResources(Hive db, List resources) + throws HiveException { + // If this is a non-local warehouse, then adding resources from the local filesystem + // may mean that other clients will not be able to access the resources. + // So disallow resources from local filesystem in this case. + if (resources != null && resources.size() > 0) { + try { + String localFsScheme = FileSystem.getLocal(db.getConf()).getUri().getScheme(); + String configuredFsScheme = FileSystem.get(db.getConf()).getUri().getScheme(); + if (configuredFsScheme.equals(localFsScheme)) { + // Configured warehouse FS is local, don't need to bother checking. + return; + } + + for (ResourceUri res : resources) { + String resUri = res.getUri(); + if (!SessionState.canDownloadResource(resUri)) { + throw new HiveException("Hive warehouse is non-local, but " + + res.getUri() + " specifies file on local filesystem. " + + "Resources on non-local warehouse should specify a non-local scheme/path"); + } + } + } catch (HiveException e) { + throw e; + } catch (Exception e) { + LOG.error(e); + throw new HiveException(e); + } + } + } + @SuppressWarnings("unchecked") private Class getUdfClass(CreateFunctionDesc desc) throws ClassNotFoundException { return Class.forName(desc.getClassName(), true, JavaUtils.getClassLoader()); diff --git ql/src/java/org/apache/hadoop/hive/ql/parse/FunctionSemanticAnalyzer.java ql/src/java/org/apache/hadoop/hive/ql/parse/FunctionSemanticAnalyzer.java index 971769a..68a25e0 100644 --- ql/src/java/org/apache/hadoop/hive/ql/parse/FunctionSemanticAnalyzer.java +++ ql/src/java/org/apache/hadoop/hive/ql/parse/FunctionSemanticAnalyzer.java @@ -17,11 +17,16 @@ */ package org.apache.hadoop.hive.ql.parse; +import java.util.ArrayList; +import java.util.List; + import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.hadoop.hive.conf.HiveConf; import org.apache.hadoop.hive.conf.HiveConf.ConfVars; import org.apache.hadoop.hive.metastore.api.Database; +import org.apache.hadoop.hive.metastore.api.ResourceType; +import org.apache.hadoop.hive.metastore.api.ResourceUri; import org.apache.hadoop.hive.ql.ErrorMsg; import org.apache.hadoop.hive.ql.exec.FunctionRegistry; import org.apache.hadoop.hive.ql.exec.FunctionUtils; @@ -31,6 +36,7 @@ import org.apache.hadoop.hive.ql.plan.CreateFunctionDesc; import org.apache.hadoop.hive.ql.plan.DropFunctionDesc; import org.apache.hadoop.hive.ql.plan.FunctionWork; +import org.apache.hadoop.hive.ql.plan.PlanUtils; import org.apache.hadoop.hive.ql.session.SessionState; /** @@ -68,7 +74,11 @@ private void analyzeCreateFunction(ASTNode ast) throws SemanticException { throw new SemanticException("Temporary function cannot be created with a qualified name."); } - CreateFunctionDesc desc = new CreateFunctionDesc(functionName, isTemporaryFunction, className); + // find any referenced resources + List resources = getResourceList(ast); + + CreateFunctionDesc desc = + new CreateFunctionDesc(functionName, isTemporaryFunction, className, resources); rootTasks.add(TaskFactory.get(new FunctionWork(desc), conf)); } @@ -94,4 +104,44 @@ private void analyzeDropFunction(ASTNode ast) throws SemanticException { DropFunctionDesc desc = new DropFunctionDesc(functionName, isTemporaryFunction); rootTasks.add(TaskFactory.get(new FunctionWork(desc), conf)); } + + private ResourceType getResourceType(ASTNode token) throws SemanticException { + switch (token.getType()) { + case HiveParser.TOK_JAR: + return ResourceType.JAR; + case HiveParser.TOK_FILE: + return ResourceType.FILE; + case HiveParser.TOK_ARCHIVE: + return ResourceType.ARCHIVE; + default: + throw new SemanticException("Unexpected token " + token.toString()); + } + } + + private List getResourceList(ASTNode ast) throws SemanticException { + List resources = null; + ASTNode resourcesNode = (ASTNode) ast.getFirstChildWithType(HiveParser.TOK_RESOURCE_LIST); + + if (resourcesNode != null) { + resources = new ArrayList(); + for (int idx = 0; idx < resourcesNode.getChildCount(); ++idx) { + // ^(TOK_RESOURCE_URI $resType $resPath) + ASTNode resNode = (ASTNode) resourcesNode.getChild(idx); + if (resNode.getToken().getType() != HiveParser.TOK_RESOURCE_URI) { + throw new SemanticException("Expected token type TOK_RESOURCE_URI but found " + + resNode.getToken().toString()); + } + if (resNode.getChildCount() != 2) { + throw new SemanticException("Expected 2 child nodes of TOK_RESOURCE_URI but found " + + resNode.getChildCount()); + } + ASTNode resTypeNode = (ASTNode) resNode.getChild(0); + ASTNode resUriNode = (ASTNode) resNode.getChild(1); + ResourceType resourceType = getResourceType(resTypeNode); + resources.add(new ResourceUri(resourceType, PlanUtils.stripQuotes(resUriNode.getText()))); + } + } + + return resources; + } } diff --git ql/src/java/org/apache/hadoop/hive/ql/parse/HiveLexer.g ql/src/java/org/apache/hadoop/hive/ql/parse/HiveLexer.g index aea9c1c..8356155 100644 --- ql/src/java/org/apache/hadoop/hive/ql/parse/HiveLexer.g +++ ql/src/java/org/apache/hadoop/hive/ql/parse/HiveLexer.g @@ -177,6 +177,8 @@ KW_REGEXP: 'REGEXP'; KW_TEMPORARY: 'TEMPORARY'; KW_FUNCTION: 'FUNCTION'; KW_MACRO: 'MACRO'; +KW_FILE: 'FILE'; +KW_JAR: 'JAR'; KW_EXPLAIN: 'EXPLAIN'; KW_EXTENDED: 'EXTENDED'; KW_FORMATTED: 'FORMATTED'; diff --git ql/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g ql/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g index 31ab1a9..8e19d6e 100644 --- ql/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g +++ ql/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g @@ -321,6 +321,11 @@ TOK_SUBQUERY_OP_NOTEXISTS; TOK_DB_TYPE; TOK_TABLE_TYPE; TOK_CTE; +TOK_ARCHIVE; +TOK_FILE; +TOK_JAR; +TOK_RESOURCE_URI; +TOK_RESOURCE_LIST; } @@ -1494,12 +1499,38 @@ metastoreCheck -> ^(TOK_MSCK $repair? ($table partitionSpec*)?) ; +resourceList +@init { pushMsg("resource list", state); } +@after { popMsg(state); } + : + resource (COMMA resource)* -> ^(TOK_RESOURCE_LIST resource+) + ; + +resource +@init { pushMsg("resource", state); } +@after { popMsg(state); } + : + resType=resourceType resPath=StringLiteral -> ^(TOK_RESOURCE_URI $resType $resPath) + ; + +resourceType +@init { pushMsg("resource type", state); } +@after { popMsg(state); } + : + KW_JAR -> ^(TOK_JAR) + | + KW_FILE -> ^(TOK_FILE) + | + KW_ARCHIVE -> ^(TOK_ARCHIVE) + ; + createFunctionStatement @init { pushMsg("create function statement", state); } @after { popMsg(state); } : KW_CREATE (temp=KW_TEMPORARY)? KW_FUNCTION functionIdentifier KW_AS StringLiteral - -> {$temp != null}? ^(TOK_CREATEFUNCTION functionIdentifier StringLiteral TOK_TEMPORARY) - -> ^(TOK_CREATEFUNCTION functionIdentifier StringLiteral) + (KW_USING rList=resourceList)? + -> {$temp != null}? ^(TOK_CREATEFUNCTION functionIdentifier StringLiteral $rList? TOK_TEMPORARY) + -> ^(TOK_CREATEFUNCTION functionIdentifier StringLiteral $rList?) ; dropFunctionStatement @@ -2111,5 +2142,3 @@ limitClause : KW_LIMIT num=Number -> ^(TOK_LIMIT $num) ; - - diff --git ql/src/java/org/apache/hadoop/hive/ql/parse/IdentifiersParser.g ql/src/java/org/apache/hadoop/hive/ql/parse/IdentifiersParser.g index fd4d1a5..6bf2a17 100644 --- ql/src/java/org/apache/hadoop/hive/ql/parse/IdentifiersParser.g +++ ql/src/java/org/apache/hadoop/hive/ql/parse/IdentifiersParser.g @@ -544,5 +544,5 @@ functionIdentifier nonReserved : - KW_TRUE | KW_FALSE | KW_LIKE | KW_EXISTS | KW_ASC | KW_DESC | KW_ORDER | KW_GROUP | KW_BY | KW_AS | KW_INSERT | KW_OVERWRITE | KW_OUTER | KW_LEFT | KW_RIGHT | KW_FULL | KW_PARTITION | KW_PARTITIONS | KW_TABLE | KW_TABLES | KW_COLUMNS | KW_INDEX | KW_INDEXES | KW_REBUILD | KW_FUNCTIONS | KW_SHOW | KW_MSCK | KW_REPAIR | KW_DIRECTORY | KW_LOCAL | KW_USING | KW_CLUSTER | KW_DISTRIBUTE | KW_SORT | KW_UNION | KW_LOAD | KW_EXPORT | KW_IMPORT | KW_DATA | KW_INPATH | KW_IS | KW_NULL | KW_CREATE | KW_EXTERNAL | KW_ALTER | KW_CHANGE | KW_FIRST | KW_AFTER | KW_DESCRIBE | KW_DROP | KW_RENAME | KW_IGNORE | KW_PROTECTION | KW_TO | KW_COMMENT | KW_BOOLEAN | KW_TINYINT | KW_SMALLINT | KW_INT | KW_BIGINT | KW_FLOAT | KW_DOUBLE | KW_DATE | KW_DATETIME | KW_TIMESTAMP | KW_DECIMAL | KW_STRING | KW_ARRAY | KW_STRUCT | KW_UNIONTYPE | KW_PARTITIONED | KW_CLUSTERED | KW_SORTED | KW_INTO | KW_BUCKETS | KW_ROW | KW_ROWS | KW_FORMAT | KW_DELIMITED | KW_FIELDS | KW_TERMINATED | KW_ESCAPED | KW_COLLECTION | KW_ITEMS | KW_KEYS | KW_KEY_TYPE | KW_LINES | KW_STORED | KW_FILEFORMAT | KW_SEQUENCEFILE | KW_TEXTFILE | KW_RCFILE | KW_ORCFILE | KW_PARQUETFILE | KW_INPUTFORMAT | KW_OUTPUTFORMAT | KW_INPUTDRIVER | KW_OUTPUTDRIVER | KW_OFFLINE | KW_ENABLE | KW_DISABLE | KW_READONLY | KW_NO_DROP | KW_LOCATION | KW_BUCKET | KW_OUT | KW_OF | KW_PERCENT | KW_ADD | KW_REPLACE | KW_RLIKE | KW_REGEXP | KW_TEMPORARY | KW_EXPLAIN | KW_FORMATTED | KW_PRETTY | KW_DEPENDENCY | KW_LOGICAL | KW_SERDE | KW_WITH | KW_DEFERRED | KW_SERDEPROPERTIES | KW_DBPROPERTIES | KW_LIMIT | KW_SET | KW_UNSET | KW_TBLPROPERTIES | KW_IDXPROPERTIES | KW_VALUE_TYPE | KW_ELEM_TYPE | KW_MAPJOIN | KW_STREAMTABLE | KW_HOLD_DDLTIME | KW_CLUSTERSTATUS | KW_UTC | KW_UTCTIMESTAMP | KW_LONG | KW_DELETE | KW_PLUS | KW_MINUS | KW_FETCH | KW_INTERSECT | KW_VIEW | KW_IN | KW_DATABASES | KW_MATERIALIZED | KW_SCHEMA | KW_SCHEMAS | KW_GRANT | KW_REVOKE | KW_SSL | KW_UNDO | KW_LOCK | KW_LOCKS | KW_UNLOCK | KW_SHARED | KW_EXCLUSIVE | KW_PROCEDURE | KW_UNSIGNED | KW_WHILE | KW_READ | KW_READS | KW_PURGE | KW_RANGE | KW_ANALYZE | KW_BEFORE | KW_BETWEEN | KW_BOTH | KW_BINARY | KW_CONTINUE | KW_CURSOR | KW_TRIGGER | KW_RECORDREADER | KW_RECORDWRITER | KW_SEMI | KW_LATERAL | KW_TOUCH | KW_ARCHIVE | KW_UNARCHIVE | KW_COMPUTE | KW_STATISTICS | KW_USE | KW_OPTION | KW_CONCATENATE | KW_SHOW_DATABASE | KW_UPDATE | KW_RESTRICT | KW_CASCADE | KW_SKEWED | KW_ROLLUP | KW_CUBE | KW_DIRECTORIES | KW_FOR | KW_GROUPING | KW_SETS | KW_TRUNCATE | KW_NOSCAN | KW_USER | KW_ROLE | KW_ROLES | KW_INNER | KW_DEFINED | KW_ADMIN + KW_TRUE | KW_FALSE | KW_LIKE | KW_EXISTS | KW_ASC | KW_DESC | KW_ORDER | KW_GROUP | KW_BY | KW_AS | KW_INSERT | KW_OVERWRITE | KW_OUTER | KW_LEFT | KW_RIGHT | KW_FULL | KW_PARTITION | KW_PARTITIONS | KW_TABLE | KW_TABLES | KW_COLUMNS | KW_INDEX | KW_INDEXES | KW_REBUILD | KW_FUNCTIONS | KW_SHOW | KW_MSCK | KW_REPAIR | KW_DIRECTORY | KW_LOCAL | KW_USING | KW_CLUSTER | KW_DISTRIBUTE | KW_SORT | KW_UNION | KW_LOAD | KW_EXPORT | KW_IMPORT | KW_DATA | KW_INPATH | KW_IS | KW_NULL | KW_CREATE | KW_EXTERNAL | KW_ALTER | KW_CHANGE | KW_FIRST | KW_AFTER | KW_DESCRIBE | KW_DROP | KW_RENAME | KW_IGNORE | KW_PROTECTION | KW_TO | KW_COMMENT | KW_BOOLEAN | KW_TINYINT | KW_SMALLINT | KW_INT | KW_BIGINT | KW_FLOAT | KW_DOUBLE | KW_DATE | KW_DATETIME | KW_TIMESTAMP | KW_DECIMAL | KW_STRING | KW_ARRAY | KW_STRUCT | KW_UNIONTYPE | KW_PARTITIONED | KW_CLUSTERED | KW_SORTED | KW_INTO | KW_BUCKETS | KW_ROW | KW_ROWS | KW_FORMAT | KW_DELIMITED | KW_FIELDS | KW_TERMINATED | KW_ESCAPED | KW_COLLECTION | KW_ITEMS | KW_KEYS | KW_KEY_TYPE | KW_LINES | KW_STORED | KW_FILEFORMAT | KW_SEQUENCEFILE | KW_TEXTFILE | KW_RCFILE | KW_ORCFILE | KW_PARQUETFILE | KW_INPUTFORMAT | KW_OUTPUTFORMAT | KW_INPUTDRIVER | KW_OUTPUTDRIVER | KW_OFFLINE | KW_ENABLE | KW_DISABLE | KW_READONLY | KW_NO_DROP | KW_LOCATION | KW_BUCKET | KW_OUT | KW_OF | KW_PERCENT | KW_ADD | KW_REPLACE | KW_RLIKE | KW_REGEXP | KW_TEMPORARY | KW_EXPLAIN | KW_FORMATTED | KW_PRETTY | KW_DEPENDENCY | KW_LOGICAL | KW_SERDE | KW_WITH | KW_DEFERRED | KW_SERDEPROPERTIES | KW_DBPROPERTIES | KW_LIMIT | KW_SET | KW_UNSET | KW_TBLPROPERTIES | KW_IDXPROPERTIES | KW_VALUE_TYPE | KW_ELEM_TYPE | KW_MAPJOIN | KW_STREAMTABLE | KW_HOLD_DDLTIME | KW_CLUSTERSTATUS | KW_UTC | KW_UTCTIMESTAMP | KW_LONG | KW_DELETE | KW_PLUS | KW_MINUS | KW_FETCH | KW_INTERSECT | KW_VIEW | KW_IN | KW_DATABASES | KW_MATERIALIZED | KW_SCHEMA | KW_SCHEMAS | KW_GRANT | KW_REVOKE | KW_SSL | KW_UNDO | KW_LOCK | KW_LOCKS | KW_UNLOCK | KW_SHARED | KW_EXCLUSIVE | KW_PROCEDURE | KW_UNSIGNED | KW_WHILE | KW_READ | KW_READS | KW_PURGE | KW_RANGE | KW_ANALYZE | KW_BEFORE | KW_BETWEEN | KW_BOTH | KW_BINARY | KW_CONTINUE | KW_CURSOR | KW_TRIGGER | KW_RECORDREADER | KW_RECORDWRITER | KW_SEMI | KW_LATERAL | KW_TOUCH | KW_ARCHIVE | KW_UNARCHIVE | KW_COMPUTE | KW_STATISTICS | KW_USE | KW_OPTION | KW_CONCATENATE | KW_SHOW_DATABASE | KW_UPDATE | KW_RESTRICT | KW_CASCADE | KW_SKEWED | KW_ROLLUP | KW_CUBE | KW_DIRECTORIES | KW_FOR | KW_GROUPING | KW_SETS | KW_TRUNCATE | KW_NOSCAN | KW_USER | KW_ROLE | KW_ROLES | KW_INNER | KW_DEFINED | KW_ADMIN | KW_JAR | KW_FILE ; diff --git ql/src/java/org/apache/hadoop/hive/ql/plan/CreateFunctionDesc.java ql/src/java/org/apache/hadoop/hive/ql/plan/CreateFunctionDesc.java index 0ec570a..dce5ece 100644 --- ql/src/java/org/apache/hadoop/hive/ql/plan/CreateFunctionDesc.java +++ ql/src/java/org/apache/hadoop/hive/ql/plan/CreateFunctionDesc.java @@ -19,6 +19,9 @@ package org.apache.hadoop.hive.ql.plan; import java.io.Serializable; +import java.util.List; + +import org.apache.hadoop.hive.metastore.api.ResourceUri; /** * CreateFunctionDesc. @@ -31,6 +34,7 @@ private String functionName; private String className; private boolean isTemp; + private List resources; /** * For serialization only. @@ -38,10 +42,12 @@ public CreateFunctionDesc() { } - public CreateFunctionDesc(String functionName, boolean isTemp, String className) { + public CreateFunctionDesc(String functionName, boolean isTemp, String className, + List resources) { this.functionName = functionName; this.isTemp = isTemp; this.className = className; + this.resources = resources; } @Explain(displayName = "name") @@ -70,4 +76,12 @@ public void setTemp(boolean isTemp) { this.isTemp = isTemp; } + public List getResources() { + return resources; + } + + public void setResources(List resources) { + this.resources = resources; + } + } diff --git ql/src/test/queries/clientnegative/udf_local_resource.q ql/src/test/queries/clientnegative/udf_local_resource.q new file mode 100644 index 0000000..bcfa217 --- /dev/null +++ ql/src/test/queries/clientnegative/udf_local_resource.q @@ -0,0 +1 @@ +create function lookup as 'org.apache.hadoop.hive.ql.udf.UDFFileLookup' using file '../../data/files/sales.txt'; diff --git ql/src/test/queries/clientnegative/udf_nonexistent_resource.q ql/src/test/queries/clientnegative/udf_nonexistent_resource.q new file mode 100644 index 0000000..d37665d --- /dev/null +++ ql/src/test/queries/clientnegative/udf_nonexistent_resource.q @@ -0,0 +1 @@ +create function lookup as 'org.apache.hadoop.hive.ql.udf.UDFFileLookup' using file 'nonexistent_file.txt'; diff --git ql/src/test/queries/clientpositive/udf_using.q ql/src/test/queries/clientpositive/udf_using.q new file mode 100644 index 0000000..093187d --- /dev/null +++ ql/src/test/queries/clientpositive/udf_using.q @@ -0,0 +1,15 @@ +dfs ${system:test.dfs.mkdir} hdfs:///tmp/udf_using; + +dfs -copyFromLocal ../../data/files/sales.txt hdfs:///tmp/udf_using/sales.txt; + +create function lookup as 'org.apache.hadoop.hive.ql.udf.UDFFileLookup' using file 'hdfs:///tmp/udf_using/sales.txt'; + +create table udf_using (c1 string); +insert overwrite table udf_using select 'Joe' from src limit 2; + +select c1, lookup(c1) from udf_using; + +drop table udf_using; +drop function lookup; + +dfs -rmr hdfs:///tmp/udf_using; diff --git ql/src/test/results/clientnegative/udf_local_resource.q.out ql/src/test/results/clientnegative/udf_local_resource.q.out new file mode 100644 index 0000000..b6ea77d --- /dev/null +++ ql/src/test/results/clientnegative/udf_local_resource.q.out @@ -0,0 +1,3 @@ +PREHOOK: query: create function lookup as 'org.apache.hadoop.hive.ql.udf.UDFFileLookup' using file '../../data/files/sales.txt' +PREHOOK: type: CREATEFUNCTION +FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.FunctionTask. Hive warehouse is non-local, but ../../data/files/sales.txt specifies file on local filesystem. Resources on non-local warehouse should specify a non-local scheme/path diff --git ql/src/test/results/clientnegative/udf_nonexistent_resource.q.out ql/src/test/results/clientnegative/udf_nonexistent_resource.q.out new file mode 100644 index 0000000..ad70d54 --- /dev/null +++ ql/src/test/results/clientnegative/udf_nonexistent_resource.q.out @@ -0,0 +1,4 @@ +PREHOOK: query: create function lookup as 'org.apache.hadoop.hive.ql.udf.UDFFileLookup' using file 'nonexistent_file.txt' +PREHOOK: type: CREATEFUNCTION +nonexistent_file.txt does not exist +FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.FunctionTask. Unable to load FILE nonexistent_file.txt diff --git ql/src/test/results/clientpositive/udf_using.q.out ql/src/test/results/clientpositive/udf_using.q.out new file mode 100644 index 0000000..69e5f3b --- /dev/null +++ ql/src/test/results/clientpositive/udf_using.q.out @@ -0,0 +1,44 @@ +#### A masked pattern was here #### +PREHOOK: type: CREATEFUNCTION +#### A masked pattern was here #### +POSTHOOK: type: CREATEFUNCTION +PREHOOK: query: create table udf_using (c1 string) +PREHOOK: type: CREATETABLE +POSTHOOK: query: create table udf_using (c1 string) +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: default@udf_using +PREHOOK: query: insert overwrite table udf_using select 'Joe' from src limit 2 +PREHOOK: type: QUERY +PREHOOK: Input: default@src +PREHOOK: Output: default@udf_using +POSTHOOK: query: insert overwrite table udf_using select 'Joe' from src limit 2 +POSTHOOK: type: QUERY +POSTHOOK: Input: default@src +POSTHOOK: Output: default@udf_using +POSTHOOK: Lineage: udf_using.c1 SIMPLE [] +PREHOOK: query: select c1, lookup(c1) from udf_using +PREHOOK: type: QUERY +PREHOOK: Input: default@udf_using +#### A masked pattern was here #### +POSTHOOK: query: select c1, lookup(c1) from udf_using +POSTHOOK: type: QUERY +POSTHOOK: Input: default@udf_using +#### A masked pattern was here #### +POSTHOOK: Lineage: udf_using.c1 SIMPLE [] +Joe 2 +Joe 2 +PREHOOK: query: drop table udf_using +PREHOOK: type: DROPTABLE +PREHOOK: Input: default@udf_using +PREHOOK: Output: default@udf_using +POSTHOOK: query: drop table udf_using +POSTHOOK: type: DROPTABLE +POSTHOOK: Input: default@udf_using +POSTHOOK: Output: default@udf_using +POSTHOOK: Lineage: udf_using.c1 SIMPLE [] +PREHOOK: query: drop function lookup +PREHOOK: type: DROPFUNCTION +POSTHOOK: query: drop function lookup +POSTHOOK: type: DROPFUNCTION +POSTHOOK: Lineage: udf_using.c1 SIMPLE [] +#### A masked pattern was here ####