diff --git a/hbase-handler/src/test/results/positive/hbase_queries.q.out b/hbase-handler/src/test/results/positive/hbase_queries.q.out index d887566..d044c7e 100644 --- a/hbase-handler/src/test/results/positive/hbase_queries.q.out +++ b/hbase-handler/src/test/results/positive/hbase_queries.q.out @@ -2,14 +2,14 @@ PREHOOK: query: DROP TABLE hbase_table_1 PREHOOK: type: DROPTABLE POSTHOOK: query: DROP TABLE hbase_table_1 POSTHOOK: type: DROPTABLE -PREHOOK: query: CREATE TABLE hbase_table_1(key int comment 'It is a column key', value string comment 'It is the column string value') +PREHOOK: query: CREATE TABLE hbase_table_1(key int comment 'It is a column key', value string comment 'It is the column string value') STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler' WITH SERDEPROPERTIES ("hbase.columns.mapping" = "cf:string") TBLPROPERTIES ("hbase.table.name" = "hbase_table_0") PREHOOK: type: CREATETABLE PREHOOK: Output: database:default PREHOOK: Output: default@hbase_table_1 -POSTHOOK: query: CREATE TABLE hbase_table_1(key int comment 'It is a column key', value string comment 'It is the column string value') +POSTHOOK: query: CREATE TABLE hbase_table_1(key int comment 'It is a column key', value string comment 'It is the column string value') STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler' WITH SERDEPROPERTIES ("hbase.columns.mapping" = "cf:string") TBLPROPERTIES ("hbase.table.name" = "hbase_table_0") diff --git a/itests/hive-unit/src/test/java/org/apache/hive/jdbc/TestJdbcDriver2.java b/itests/hive-unit/src/test/java/org/apache/hive/jdbc/TestJdbcDriver2.java index ced454f..8bb08e0 100644 --- a/itests/hive-unit/src/test/java/org/apache/hive/jdbc/TestJdbcDriver2.java +++ b/itests/hive-unit/src/test/java/org/apache/hive/jdbc/TestJdbcDriver2.java @@ -42,6 +42,9 @@ import org.slf4j.LoggerFactory; import java.io.InputStream; +import java.lang.Exception; +import java.lang.Object; +import java.lang.String; import java.sql.Connection; import java.sql.DatabaseMetaData; import java.sql.DriverManager; @@ -56,8 +59,11 @@ import java.sql.Types; import java.text.ParseException; import java.util.ArrayList; +import java.util.Arrays; import java.util.Date; +import java.util.HashSet; import java.util.HashMap; +import java.util.IdentityHashMap; import java.util.List; import java.util.Map; import java.util.Properties; @@ -134,6 +140,7 @@ public static void setUpBeforeClass() throws SQLException, ClassNotFoundExceptio stmt1.execute("DROP DATABASE " + db + " CASCADE"); } } + stmt1.execute("create database testdb"); stmt1.close(); con1.close(); } @@ -147,12 +154,20 @@ public void setUp() throws Exception { stmt.execute("set hive.support.concurrency = false"); - // drop table. ignore error. - try { - stmt.execute("drop table " + tableName); - } catch (Exception ex) { - fail(ex.toString()); - } + createTestTables(stmt, "", true); + createTestTables(stmt, "testdb.", false); + } + + private void createTestTables(Statement stmt, String prefix, boolean loadData) + throws SQLException { + + // drop test tables/views + dropTestTables(stmt, prefix); + + String tableName = prefix + this.tableName; + String partitionedTableName = prefix + this.partitionedTableName; + String dataTypeTableName = prefix + this.dataTypeTableName; + String viewName = prefix + this.viewName; // create table stmt.execute("create table " + tableName @@ -160,35 +175,25 @@ public void setUp() throws Exception { + tableComment + "'"); // load data - stmt.execute("load data local inpath '" - + dataFilePath.toString() + "' into table " + tableName); - - // also initialize a paritioned table to test against. - - // drop table. ignore error. - try { - stmt.execute("drop table " + partitionedTableName); - } catch (Exception ex) { - fail(ex.toString()); + if (loadData) { + stmt.execute("load data local inpath '" + + dataFilePath.toString() + "' into table " + tableName); } + // also initialize a paritioned table to test against. stmt.execute("create table " + partitionedTableName + " (under_col int, value string) comment '"+partitionedTableComment +"' partitioned by (" + partitionedColumnName + " STRING)"); // load data - stmt.execute("load data local inpath '" - + dataFilePath.toString() + "' into table " + partitionedTableName - + " PARTITION (" + partitionedColumnName + "=" - + partitionedColumnValue + ")"); - - // drop table. ignore error. - try { - stmt.execute("drop table " + dataTypeTableName); - } catch (Exception ex) { - fail(ex.toString()); + if (loadData) { + stmt.execute("load data local inpath '" + + dataFilePath.toString() + "' into table " + partitionedTableName + + " PARTITION (" + partitionedColumnName + "=" + + partitionedColumnValue + ")"); } + // tables with various types stmt.execute("create table " + dataTypeTableName + " (c1 int, c2 boolean, c3 double, c4 string," + " c5 array, c6 map, c7 map," @@ -208,15 +213,10 @@ public void setUp() throws Exception { + ") comment'" + dataTypeTableComment +"' partitioned by (dt STRING)"); - stmt.execute("load data local inpath '" - + dataTypeDataFilePath.toString() + "' into table " + dataTypeTableName - + " PARTITION (dt='20090619')"); - - // drop view. ignore error. - try { - stmt.execute("drop view " + viewName); - } catch (Exception ex) { - fail(ex.toString()); + if (loadData) { + stmt.execute("load data local inpath '" + + dataTypeDataFilePath.toString() + "' into table " + dataTypeTableName + + " PARTITION (dt='20090619')"); } // create view @@ -224,6 +224,28 @@ public void setUp() throws Exception { +"' as select * from "+ tableName); } + // drop test tables/views. ignore error. + private void dropTestTables(Statement stmt, String prefix) throws SQLException { + String tableName = prefix + this.tableName; + String partitionedTableName = prefix + this.partitionedTableName; + String dataTypeTableName = prefix + this.dataTypeTableName; + String viewName = prefix + this.viewName; + + executeWithIgnore(stmt, "drop table " + tableName); + executeWithIgnore(stmt, "drop table " + partitionedTableName); + executeWithIgnore(stmt, "drop table " + dataTypeTableName); + executeWithIgnore(stmt, "drop view " + viewName); + } + + private void executeWithIgnore(Statement stmt, String sql) throws SQLException { + // drop table. ignore error. + try { + stmt.execute(sql); + } catch (Exception ex) { + fail(ex.toString()); + } + } + private static Connection getConnection(String postfix) throws SQLException { Connection con1; if (standAloneServer) { @@ -244,9 +266,8 @@ public void tearDown() throws Exception { // drop table Statement stmt = con.createStatement(); assertNotNull("Statement is null", stmt); - stmt.execute("drop table " + tableName); - stmt.execute("drop table " + partitionedTableName); - stmt.execute("drop table " + dataTypeTableName); + dropTestTables(stmt, ""); + dropTestTables(stmt, "testdb."); con.close(); assertTrue("Connection should be closed", con.isClosed()); @@ -1123,25 +1144,77 @@ public void testMetaDataGetTablesClassic() throws SQLException { * @throws SQLException */ private void getTablesTest(String tableTypeName, String viewTypeName) throws SQLException { - Map tests = new HashMap(); - tests.put("test%jdbc%", new Object[]{"testhivejdbcdriver_table" - , "testhivejdbcdriverpartitionedtable" - , "testhivejdbcdriverview"}); - tests.put("%jdbcdriver\\_table", new Object[]{"testhivejdbcdriver_table"}); - tests.put("testhivejdbcdriver\\_table", new Object[]{"testhivejdbcdriver_table"}); - tests.put("test_ivejdbcdri_er\\_table", new Object[]{"testhivejdbcdriver_table"}); - tests.put("test_ivejdbcdri_er_table", new Object[]{"testhivejdbcdriver_table"}); - tests.put("test_ivejdbcdri_er%table", new Object[]{ - "testhivejdbcdriver_table", "testhivejdbcdriverpartitionedtable" }); - tests.put("%jdbc%", new Object[]{ "testhivejdbcdriver_table" - , "testhivejdbcdriverpartitionedtable" - , "testhivejdbcdriverview"}); - tests.put("", new Object[]{}); - - for (String checkPattern: tests.keySet()) { - ResultSet rs = con.getMetaData().getTables("default", null, checkPattern, null); + String[] ALL = null; + String[] VIEW_ONLY = {viewTypeName}; + String[] TABLE_ONLY = {tableTypeName}; + String[] VIEWORTABLE = {tableTypeName, viewTypeName}; + + Map tests = new IdentityHashMap(); + tests.put(new Object[] { null, "test%jdbc%", ALL}, new String[]{ + "default.testhivejdbcdriver_table", + "default.testhivejdbcdriverpartitionedtable", + "default.testhivejdbcdriverview", + "testdb.testhivejdbcdriver_table", + "testdb.testhivejdbcdriverpartitionedtable", + "testdb.testhivejdbcdriverview"}); + tests.put(new Object[] { "test%", "test%jdbc%", ALL}, new String[]{ + "testdb.testhivejdbcdriver_table", + "testdb.testhivejdbcdriverpartitionedtable", + "testdb.testhivejdbcdriverview"}); + tests.put(new Object[] { "test%", "test%jdbc%", VIEW_ONLY}, new String[]{ + "testdb.testhivejdbcdriverview"}); + + tests.put(new Object[] { null, "%jdbcdriver\\_table", VIEWORTABLE}, new String[]{ + "default.testhivejdbcdriver_table", + "testdb.testhivejdbcdriver_table"}); + tests.put(new Object[] { "def%", "%jdbcdriver\\_table", VIEWORTABLE}, new String[]{ + "default.testhivejdbcdriver_table"}); + tests.put(new Object[] { "def%", "%jdbcdriver\\_table", VIEW_ONLY}, new String[0]); + + tests.put(new Object[] { null, "testhivejdbcdriver\\_table", ALL}, new String[]{ + "default.testhivejdbcdriver_table", + "testdb.testhivejdbcdriver_table"}); + tests.put(new Object[] { "%faul%", "testhivejdbcdriver\\_table", ALL}, new String[]{ + "default.testhivejdbcdriver_table"}); + tests.put(new Object[] { "%faul%", "testhivejdbcdriver\\_table", TABLE_ONLY}, new String[]{ + "default.testhivejdbcdriver_table"}); + + tests.put(new Object[] { null, "test_ivejdbcdri_er\\_table", ALL}, new String[]{ + "default.testhivejdbcdriver_table", + "testdb.testhivejdbcdriver_table"}); + tests.put(new Object[] { "test__", "test_ivejdbcdri_er\\_table", ALL}, new String[]{ + "testdb.testhivejdbcdriver_table"}); + + tests.put(new Object[] { null, "test_ivejdbcdri_er_table", ALL}, new String[]{ + "default.testhivejdbcdriver_table", + "testdb.testhivejdbcdriver_table"}); + tests.put(new Object[] { null, "test_ivejdbcdri_er%table", ALL}, new String[]{ + "default.testhivejdbcdriver_table", + "default.testhivejdbcdriverpartitionedtable", + "testdb.testhivejdbcdriver_table", + "testdb.testhivejdbcdriverpartitionedtable"}); + tests.put(new Object[] { null, "%jdbc%", ALL}, new String[]{ + "default.testhivejdbcdriver_table", + "default.testhivejdbcdriverpartitionedtable", + "default.testhivejdbcdriverview", + "testdb.testhivejdbcdriver_table", + "testdb.testhivejdbcdriverpartitionedtable", + "testdb.testhivejdbcdriverview"}); + tests.put(new Object[] { "%", "%jdbc%", VIEW_ONLY}, new String[]{ + "default.testhivejdbcdriverview", + "testdb.testhivejdbcdriverview"}); + tests.put(new Object[] { null, "", ALL}, new String[]{}); + + for (Map.Entry entry : tests.entrySet()) { + Object[] checkPattern = entry.getKey(); + String debugString = checkPattern[0] + ", " + checkPattern[1] + ", " + + Arrays.toString((String[]) checkPattern[2]); + + Set expectedTables = new HashSet(Arrays.asList(entry.getValue())); + ResultSet rs = con.getMetaData().getTables(null, + (String)checkPattern[0], (String)checkPattern[1], (String[])checkPattern[2]); ResultSetMetaData resMeta = rs.getMetaData(); - assertEquals(5, resMeta.getColumnCount()); + assertEquals(10, resMeta.getColumnCount()); assertEquals("TABLE_CAT", resMeta.getColumnName(1)); assertEquals("TABLE_SCHEM", resMeta.getColumnName(2)); assertEquals("TABLE_NAME", resMeta.getColumnName(3)); @@ -1150,9 +1223,11 @@ private void getTablesTest(String tableTypeName, String viewTypeName) throws SQL int cnt = 0; while (rs.next()) { + String resultDbName = rs.getString("TABLE_SCHEM"); String resultTableName = rs.getString("TABLE_NAME"); - assertEquals("Get by index different from get by name.", rs.getString(3), resultTableName); - assertEquals("Excpected a different table.", tests.get(checkPattern)[cnt], resultTableName); + assertTrue("Invalid table " + resultDbName + "." + resultTableName + " for test " + debugString, + expectedTables.contains(resultDbName + "." + resultTableName)); + String resultTableComment = rs.getString("REMARKS"); assertTrue("Missing comment on the table.", resultTableComment.length()>0); String tableType = rs.getString("TABLE_TYPE"); @@ -1164,18 +1239,9 @@ private void getTablesTest(String tableTypeName, String viewTypeName) throws SQL cnt++; } rs.close(); - assertEquals("Received an incorrect number of tables.", tests.get(checkPattern).length, cnt); + assertEquals("Received an incorrect number of tables for test " + debugString, + expectedTables.size(), cnt); } - - // only ask for the views. - ResultSet rs = con.getMetaData().getTables("default", null, null - , new String[]{viewTypeName}); - int cnt=0; - while (rs.next()) { - cnt++; - } - rs.close(); - assertEquals("Incorrect number of views found.", 1, cnt); } @Test @@ -1198,6 +1264,8 @@ public void testMetaDataGetSchemas() throws SQLException { assertTrue(rs.next()); assertEquals("default", rs.getString(1)); + assertTrue(rs.next()); + assertEquals("testdb", rs.getString(1)); assertFalse(rs.next()); rs.close(); @@ -1270,7 +1338,7 @@ public void testMetaDataGetColumns() throws SQLException { tests.put(new String[]{"%jdbcdriver\\_table%", "_%"}, 2); for (String[] checkPattern: tests.keySet()) { - ResultSet rs = con.getMetaData().getColumns(null, null, checkPattern[0], + ResultSet rs = con.getMetaData().getColumns(null, "default", checkPattern[0], checkPattern[1]); // validate the metadata for the getColumns result set diff --git a/jdbc/src/java/org/apache/hive/jdbc/HiveDatabaseMetaData.java b/jdbc/src/java/org/apache/hive/jdbc/HiveDatabaseMetaData.java index 13e42b5..a73f443 100644 --- a/jdbc/src/java/org/apache/hive/jdbc/HiveDatabaseMetaData.java +++ b/jdbc/src/java/org/apache/hive/jdbc/HiveDatabaseMetaData.java @@ -646,9 +646,7 @@ public ResultSet getTables(String catalog, String schemaPattern, if (types != null) { getTableReq.setTableTypes(Arrays.asList(types)); } - if (schemaPattern != null) { - getTableReq.setSchemaName(schemaPattern); - } + getTableReq.setSchemaName(schemaPattern); try { getTableResp = client.GetTables(getTableReq); diff --git a/metastore/if/hive_metastore.thrift b/metastore/if/hive_metastore.thrift index 98fd42b..bb754f1 100755 --- a/metastore/if/hive_metastore.thrift +++ b/metastore/if/hive_metastore.thrift @@ -772,6 +772,13 @@ struct GetAllFunctionsResponse { 1: optional list functions } +struct TableMeta { + 1: required string dbName; + 2: required string tableName; + 3: required string tableType; + 4: optional string comments; +} + exception MetaException { 1: string message } @@ -890,6 +897,8 @@ service ThriftHiveMetastore extends fb303.FacebookService 4:EnvironmentContext environment_context) throws(1:NoSuchObjectException o1, 2:MetaException o3) list get_tables(1: string db_name, 2: string pattern) throws (1: MetaException o1) + list get_table_meta(1: string db_patterns, 2: string tbl_patterns, 3: list tbl_types) + throws (1: MetaException o1) list get_all_tables(1: string db_name) throws (1: MetaException o1) Table get_table(1:string dbname, 2:string tbl_name) diff --git a/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp b/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp index 6a80db7..0443f80 100644 --- a/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp +++ b/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp @@ -1240,14 +1240,14 @@ uint32_t ThriftHiveMetastore_get_databases_result::read(::apache::thrift::protoc if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size714; - ::apache::thrift::protocol::TType _etype717; - xfer += iprot->readListBegin(_etype717, _size714); - this->success.resize(_size714); - uint32_t _i718; - for (_i718 = 0; _i718 < _size714; ++_i718) + uint32_t _size716; + ::apache::thrift::protocol::TType _etype719; + xfer += iprot->readListBegin(_etype719, _size716); + this->success.resize(_size716); + uint32_t _i720; + for (_i720 = 0; _i720 < _size716; ++_i720) { - xfer += iprot->readString(this->success[_i718]); + xfer += iprot->readString(this->success[_i720]); } xfer += iprot->readListEnd(); } @@ -1286,10 +1286,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 _iter719; - for (_iter719 = this->success.begin(); _iter719 != this->success.end(); ++_iter719) + std::vector ::const_iterator _iter721; + for (_iter721 = this->success.begin(); _iter721 != this->success.end(); ++_iter721) { - xfer += oprot->writeString((*_iter719)); + xfer += oprot->writeString((*_iter721)); } xfer += oprot->writeListEnd(); } @@ -1334,14 +1334,14 @@ uint32_t ThriftHiveMetastore_get_databases_presult::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size720; - ::apache::thrift::protocol::TType _etype723; - xfer += iprot->readListBegin(_etype723, _size720); - (*(this->success)).resize(_size720); - uint32_t _i724; - for (_i724 = 0; _i724 < _size720; ++_i724) + uint32_t _size722; + ::apache::thrift::protocol::TType _etype725; + xfer += iprot->readListBegin(_etype725, _size722); + (*(this->success)).resize(_size722); + uint32_t _i726; + for (_i726 = 0; _i726 < _size722; ++_i726) { - xfer += iprot->readString((*(this->success))[_i724]); + xfer += iprot->readString((*(this->success))[_i726]); } xfer += iprot->readListEnd(); } @@ -1458,14 +1458,14 @@ uint32_t ThriftHiveMetastore_get_all_databases_result::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size725; - ::apache::thrift::protocol::TType _etype728; - xfer += iprot->readListBegin(_etype728, _size725); - this->success.resize(_size725); - uint32_t _i729; - for (_i729 = 0; _i729 < _size725; ++_i729) + uint32_t _size727; + ::apache::thrift::protocol::TType _etype730; + xfer += iprot->readListBegin(_etype730, _size727); + this->success.resize(_size727); + uint32_t _i731; + for (_i731 = 0; _i731 < _size727; ++_i731) { - xfer += iprot->readString(this->success[_i729]); + xfer += iprot->readString(this->success[_i731]); } xfer += iprot->readListEnd(); } @@ -1504,10 +1504,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 _iter730; - for (_iter730 = this->success.begin(); _iter730 != this->success.end(); ++_iter730) + std::vector ::const_iterator _iter732; + for (_iter732 = this->success.begin(); _iter732 != this->success.end(); ++_iter732) { - xfer += oprot->writeString((*_iter730)); + xfer += oprot->writeString((*_iter732)); } xfer += oprot->writeListEnd(); } @@ -1552,14 +1552,14 @@ uint32_t ThriftHiveMetastore_get_all_databases_presult::read(::apache::thrift::p if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size731; - ::apache::thrift::protocol::TType _etype734; - xfer += iprot->readListBegin(_etype734, _size731); - (*(this->success)).resize(_size731); - uint32_t _i735; - for (_i735 = 0; _i735 < _size731; ++_i735) + uint32_t _size733; + ::apache::thrift::protocol::TType _etype736; + xfer += iprot->readListBegin(_etype736, _size733); + (*(this->success)).resize(_size733); + uint32_t _i737; + for (_i737 = 0; _i737 < _size733; ++_i737) { - xfer += iprot->readString((*(this->success))[_i735]); + xfer += iprot->readString((*(this->success))[_i737]); } xfer += iprot->readListEnd(); } @@ -2621,17 +2621,17 @@ uint32_t ThriftHiveMetastore_get_type_all_result::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_MAP) { { this->success.clear(); - uint32_t _size736; - ::apache::thrift::protocol::TType _ktype737; - ::apache::thrift::protocol::TType _vtype738; - xfer += iprot->readMapBegin(_ktype737, _vtype738, _size736); - uint32_t _i740; - for (_i740 = 0; _i740 < _size736; ++_i740) + uint32_t _size738; + ::apache::thrift::protocol::TType _ktype739; + ::apache::thrift::protocol::TType _vtype740; + xfer += iprot->readMapBegin(_ktype739, _vtype740, _size738); + uint32_t _i742; + for (_i742 = 0; _i742 < _size738; ++_i742) { - std::string _key741; - xfer += iprot->readString(_key741); - Type& _val742 = this->success[_key741]; - xfer += _val742.read(iprot); + std::string _key743; + xfer += iprot->readString(_key743); + Type& _val744 = this->success[_key743]; + xfer += _val744.read(iprot); } xfer += iprot->readMapEnd(); } @@ -2670,11 +2670,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 _iter743; - for (_iter743 = this->success.begin(); _iter743 != this->success.end(); ++_iter743) + std::map ::const_iterator _iter745; + for (_iter745 = this->success.begin(); _iter745 != this->success.end(); ++_iter745) { - xfer += oprot->writeString(_iter743->first); - xfer += _iter743->second.write(oprot); + xfer += oprot->writeString(_iter745->first); + xfer += _iter745->second.write(oprot); } xfer += oprot->writeMapEnd(); } @@ -2719,17 +2719,17 @@ uint32_t ThriftHiveMetastore_get_type_all_presult::read(::apache::thrift::protoc if (ftype == ::apache::thrift::protocol::T_MAP) { { (*(this->success)).clear(); - uint32_t _size744; - ::apache::thrift::protocol::TType _ktype745; - ::apache::thrift::protocol::TType _vtype746; - xfer += iprot->readMapBegin(_ktype745, _vtype746, _size744); - uint32_t _i748; - for (_i748 = 0; _i748 < _size744; ++_i748) + uint32_t _size746; + ::apache::thrift::protocol::TType _ktype747; + ::apache::thrift::protocol::TType _vtype748; + xfer += iprot->readMapBegin(_ktype747, _vtype748, _size746); + uint32_t _i750; + for (_i750 = 0; _i750 < _size746; ++_i750) { - std::string _key749; - xfer += iprot->readString(_key749); - Type& _val750 = (*(this->success))[_key749]; - xfer += _val750.read(iprot); + std::string _key751; + xfer += iprot->readString(_key751); + Type& _val752 = (*(this->success))[_key751]; + xfer += _val752.read(iprot); } xfer += iprot->readMapEnd(); } @@ -2883,14 +2883,14 @@ uint32_t ThriftHiveMetastore_get_fields_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size751; - ::apache::thrift::protocol::TType _etype754; - xfer += iprot->readListBegin(_etype754, _size751); - this->success.resize(_size751); - uint32_t _i755; - for (_i755 = 0; _i755 < _size751; ++_i755) + uint32_t _size753; + ::apache::thrift::protocol::TType _etype756; + xfer += iprot->readListBegin(_etype756, _size753); + this->success.resize(_size753); + uint32_t _i757; + for (_i757 = 0; _i757 < _size753; ++_i757) { - xfer += this->success[_i755].read(iprot); + xfer += this->success[_i757].read(iprot); } xfer += iprot->readListEnd(); } @@ -2945,10 +2945,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 _iter756; - for (_iter756 = this->success.begin(); _iter756 != this->success.end(); ++_iter756) + std::vector ::const_iterator _iter758; + for (_iter758 = this->success.begin(); _iter758 != this->success.end(); ++_iter758) { - xfer += (*_iter756).write(oprot); + xfer += (*_iter758).write(oprot); } xfer += oprot->writeListEnd(); } @@ -3001,14 +3001,14 @@ uint32_t ThriftHiveMetastore_get_fields_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size757; - ::apache::thrift::protocol::TType _etype760; - xfer += iprot->readListBegin(_etype760, _size757); - (*(this->success)).resize(_size757); - uint32_t _i761; - for (_i761 = 0; _i761 < _size757; ++_i761) + uint32_t _size759; + ::apache::thrift::protocol::TType _etype762; + xfer += iprot->readListBegin(_etype762, _size759); + (*(this->success)).resize(_size759); + uint32_t _i763; + for (_i763 = 0; _i763 < _size759; ++_i763) { - xfer += (*(this->success))[_i761].read(iprot); + xfer += (*(this->success))[_i763].read(iprot); } xfer += iprot->readListEnd(); } @@ -3194,14 +3194,14 @@ uint32_t ThriftHiveMetastore_get_fields_with_environment_context_result::read(:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size762; - ::apache::thrift::protocol::TType _etype765; - xfer += iprot->readListBegin(_etype765, _size762); - this->success.resize(_size762); - uint32_t _i766; - for (_i766 = 0; _i766 < _size762; ++_i766) + uint32_t _size764; + ::apache::thrift::protocol::TType _etype767; + xfer += iprot->readListBegin(_etype767, _size764); + this->success.resize(_size764); + uint32_t _i768; + for (_i768 = 0; _i768 < _size764; ++_i768) { - xfer += this->success[_i766].read(iprot); + xfer += this->success[_i768].read(iprot); } xfer += iprot->readListEnd(); } @@ -3256,10 +3256,10 @@ uint32_t ThriftHiveMetastore_get_fields_with_environment_context_result::write(: 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 _iter767; - for (_iter767 = this->success.begin(); _iter767 != this->success.end(); ++_iter767) + std::vector ::const_iterator _iter769; + for (_iter769 = this->success.begin(); _iter769 != this->success.end(); ++_iter769) { - xfer += (*_iter767).write(oprot); + xfer += (*_iter769).write(oprot); } xfer += oprot->writeListEnd(); } @@ -3312,14 +3312,14 @@ uint32_t ThriftHiveMetastore_get_fields_with_environment_context_presult::read(: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size768; - ::apache::thrift::protocol::TType _etype771; - xfer += iprot->readListBegin(_etype771, _size768); - (*(this->success)).resize(_size768); - uint32_t _i772; - for (_i772 = 0; _i772 < _size768; ++_i772) + uint32_t _size770; + ::apache::thrift::protocol::TType _etype773; + xfer += iprot->readListBegin(_etype773, _size770); + (*(this->success)).resize(_size770); + uint32_t _i774; + for (_i774 = 0; _i774 < _size770; ++_i774) { - xfer += (*(this->success))[_i772].read(iprot); + xfer += (*(this->success))[_i774].read(iprot); } xfer += iprot->readListEnd(); } @@ -3489,14 +3489,14 @@ uint32_t ThriftHiveMetastore_get_schema_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size773; - ::apache::thrift::protocol::TType _etype776; - xfer += iprot->readListBegin(_etype776, _size773); - this->success.resize(_size773); - uint32_t _i777; - for (_i777 = 0; _i777 < _size773; ++_i777) + uint32_t _size775; + ::apache::thrift::protocol::TType _etype778; + xfer += iprot->readListBegin(_etype778, _size775); + this->success.resize(_size775); + uint32_t _i779; + for (_i779 = 0; _i779 < _size775; ++_i779) { - xfer += this->success[_i777].read(iprot); + xfer += this->success[_i779].read(iprot); } xfer += iprot->readListEnd(); } @@ -3551,10 +3551,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 _iter778; - for (_iter778 = this->success.begin(); _iter778 != this->success.end(); ++_iter778) + std::vector ::const_iterator _iter780; + for (_iter780 = this->success.begin(); _iter780 != this->success.end(); ++_iter780) { - xfer += (*_iter778).write(oprot); + xfer += (*_iter780).write(oprot); } xfer += oprot->writeListEnd(); } @@ -3607,14 +3607,14 @@ uint32_t ThriftHiveMetastore_get_schema_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size779; - ::apache::thrift::protocol::TType _etype782; - xfer += iprot->readListBegin(_etype782, _size779); - (*(this->success)).resize(_size779); - uint32_t _i783; - for (_i783 = 0; _i783 < _size779; ++_i783) + uint32_t _size781; + ::apache::thrift::protocol::TType _etype784; + xfer += iprot->readListBegin(_etype784, _size781); + (*(this->success)).resize(_size781); + uint32_t _i785; + for (_i785 = 0; _i785 < _size781; ++_i785) { - xfer += (*(this->success))[_i783].read(iprot); + xfer += (*(this->success))[_i785].read(iprot); } xfer += iprot->readListEnd(); } @@ -3800,14 +3800,14 @@ uint32_t ThriftHiveMetastore_get_schema_with_environment_context_result::read(:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size784; - ::apache::thrift::protocol::TType _etype787; - xfer += iprot->readListBegin(_etype787, _size784); - this->success.resize(_size784); - uint32_t _i788; - for (_i788 = 0; _i788 < _size784; ++_i788) + uint32_t _size786; + ::apache::thrift::protocol::TType _etype789; + xfer += iprot->readListBegin(_etype789, _size786); + this->success.resize(_size786); + uint32_t _i790; + for (_i790 = 0; _i790 < _size786; ++_i790) { - xfer += this->success[_i788].read(iprot); + xfer += this->success[_i790].read(iprot); } xfer += iprot->readListEnd(); } @@ -3862,10 +3862,10 @@ uint32_t ThriftHiveMetastore_get_schema_with_environment_context_result::write(: 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 _iter789; - for (_iter789 = this->success.begin(); _iter789 != this->success.end(); ++_iter789) + std::vector ::const_iterator _iter791; + for (_iter791 = this->success.begin(); _iter791 != this->success.end(); ++_iter791) { - xfer += (*_iter789).write(oprot); + xfer += (*_iter791).write(oprot); } xfer += oprot->writeListEnd(); } @@ -3918,14 +3918,14 @@ uint32_t ThriftHiveMetastore_get_schema_with_environment_context_presult::read(: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size790; - ::apache::thrift::protocol::TType _etype793; - xfer += iprot->readListBegin(_etype793, _size790); - (*(this->success)).resize(_size790); - uint32_t _i794; - for (_i794 = 0; _i794 < _size790; ++_i794) + uint32_t _size792; + ::apache::thrift::protocol::TType _etype795; + xfer += iprot->readListBegin(_etype795, _size792); + (*(this->success)).resize(_size792); + uint32_t _i796; + for (_i796 = 0; _i796 < _size792; ++_i796) { - xfer += (*(this->success))[_i794].read(iprot); + xfer += (*(this->success))[_i796].read(iprot); } xfer += iprot->readListEnd(); } @@ -5099,14 +5099,14 @@ uint32_t ThriftHiveMetastore_get_tables_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size795; - ::apache::thrift::protocol::TType _etype798; - xfer += iprot->readListBegin(_etype798, _size795); - this->success.resize(_size795); - uint32_t _i799; - for (_i799 = 0; _i799 < _size795; ++_i799) + uint32_t _size797; + ::apache::thrift::protocol::TType _etype800; + xfer += iprot->readListBegin(_etype800, _size797); + this->success.resize(_size797); + uint32_t _i801; + for (_i801 = 0; _i801 < _size797; ++_i801) { - xfer += iprot->readString(this->success[_i799]); + xfer += iprot->readString(this->success[_i801]); } xfer += iprot->readListEnd(); } @@ -5145,10 +5145,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 _iter800; - for (_iter800 = this->success.begin(); _iter800 != this->success.end(); ++_iter800) + std::vector ::const_iterator _iter802; + for (_iter802 = this->success.begin(); _iter802 != this->success.end(); ++_iter802) { - xfer += oprot->writeString((*_iter800)); + xfer += oprot->writeString((*_iter802)); } xfer += oprot->writeListEnd(); } @@ -5193,14 +5193,313 @@ uint32_t ThriftHiveMetastore_get_tables_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size801; - ::apache::thrift::protocol::TType _etype804; - xfer += iprot->readListBegin(_etype804, _size801); - (*(this->success)).resize(_size801); - uint32_t _i805; - for (_i805 = 0; _i805 < _size801; ++_i805) + uint32_t _size803; + ::apache::thrift::protocol::TType _etype806; + xfer += iprot->readListBegin(_etype806, _size803); + (*(this->success)).resize(_size803); + uint32_t _i807; + for (_i807 = 0; _i807 < _size803; ++_i807) { - xfer += iprot->readString((*(this->success))[_i805]); + xfer += iprot->readString((*(this->success))[_i807]); + } + xfer += iprot->readListEnd(); + } + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o1.read(iprot); + this->__isset.o1 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + + +ThriftHiveMetastore_get_table_meta_args::~ThriftHiveMetastore_get_table_meta_args() throw() { +} + + +uint32_t ThriftHiveMetastore_get_table_meta_args::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*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_STRING) { + xfer += iprot->readString(this->db_patterns); + this->__isset.db_patterns = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->tbl_patterns); + this->__isset.tbl_patterns = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->tbl_types.clear(); + uint32_t _size808; + ::apache::thrift::protocol::TType _etype811; + xfer += iprot->readListBegin(_etype811, _size808); + this->tbl_types.resize(_size808); + uint32_t _i812; + for (_i812 = 0; _i812 < _size808; ++_i812) + { + xfer += iprot->readString(this->tbl_types[_i812]); + } + xfer += iprot->readListEnd(); + } + this->__isset.tbl_types = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ThriftHiveMetastore_get_table_meta_args::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_meta_args"); + + xfer += oprot->writeFieldBegin("db_patterns", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->db_patterns); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("tbl_patterns", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->tbl_patterns); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("tbl_types", ::apache::thrift::protocol::T_LIST, 3); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->tbl_types.size())); + std::vector ::const_iterator _iter813; + for (_iter813 = this->tbl_types.begin(); _iter813 != this->tbl_types.end(); ++_iter813) + { + xfer += oprot->writeString((*_iter813)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_get_table_meta_pargs::~ThriftHiveMetastore_get_table_meta_pargs() throw() { +} + + +uint32_t ThriftHiveMetastore_get_table_meta_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_meta_pargs"); + + xfer += oprot->writeFieldBegin("db_patterns", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->db_patterns))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("tbl_patterns", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString((*(this->tbl_patterns))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("tbl_types", ::apache::thrift::protocol::T_LIST, 3); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->tbl_types)).size())); + std::vector ::const_iterator _iter814; + for (_iter814 = (*(this->tbl_types)).begin(); _iter814 != (*(this->tbl_types)).end(); ++_iter814) + { + xfer += oprot->writeString((*_iter814)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_get_table_meta_result::~ThriftHiveMetastore_get_table_meta_result() throw() { +} + + +uint32_t ThriftHiveMetastore_get_table_meta_result::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*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 0: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->success.clear(); + uint32_t _size815; + ::apache::thrift::protocol::TType _etype818; + xfer += iprot->readListBegin(_etype818, _size815); + this->success.resize(_size815); + uint32_t _i819; + for (_i819 = 0; _i819 < _size815; ++_i819) + { + xfer += this->success[_i819].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o1.read(iprot); + this->__isset.o1 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ThriftHiveMetastore_get_table_meta_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + + uint32_t xfer = 0; + + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_meta_result"); + + if (this->__isset.success) { + 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 _iter820; + for (_iter820 = this->success.begin(); _iter820 != this->success.end(); ++_iter820) + { + xfer += (*_iter820).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o1) { + xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->o1.write(oprot); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_get_table_meta_presult::~ThriftHiveMetastore_get_table_meta_presult() throw() { +} + + +uint32_t ThriftHiveMetastore_get_table_meta_presult::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*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 0: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + (*(this->success)).clear(); + uint32_t _size821; + ::apache::thrift::protocol::TType _etype824; + xfer += iprot->readListBegin(_etype824, _size821); + (*(this->success)).resize(_size821); + uint32_t _i825; + for (_i825 = 0; _i825 < _size821; ++_i825) + { + xfer += (*(this->success))[_i825].read(iprot); } xfer += iprot->readListEnd(); } @@ -5338,14 +5637,14 @@ uint32_t ThriftHiveMetastore_get_all_tables_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size806; - ::apache::thrift::protocol::TType _etype809; - xfer += iprot->readListBegin(_etype809, _size806); - this->success.resize(_size806); - uint32_t _i810; - for (_i810 = 0; _i810 < _size806; ++_i810) + uint32_t _size826; + ::apache::thrift::protocol::TType _etype829; + xfer += iprot->readListBegin(_etype829, _size826); + this->success.resize(_size826); + uint32_t _i830; + for (_i830 = 0; _i830 < _size826; ++_i830) { - xfer += iprot->readString(this->success[_i810]); + xfer += iprot->readString(this->success[_i830]); } xfer += iprot->readListEnd(); } @@ -5384,10 +5683,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 _iter811; - for (_iter811 = this->success.begin(); _iter811 != this->success.end(); ++_iter811) + std::vector ::const_iterator _iter831; + for (_iter831 = this->success.begin(); _iter831 != this->success.end(); ++_iter831) { - xfer += oprot->writeString((*_iter811)); + xfer += oprot->writeString((*_iter831)); } xfer += oprot->writeListEnd(); } @@ -5432,14 +5731,14 @@ uint32_t ThriftHiveMetastore_get_all_tables_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size812; - ::apache::thrift::protocol::TType _etype815; - xfer += iprot->readListBegin(_etype815, _size812); - (*(this->success)).resize(_size812); - uint32_t _i816; - for (_i816 = 0; _i816 < _size812; ++_i816) + uint32_t _size832; + ::apache::thrift::protocol::TType _etype835; + xfer += iprot->readListBegin(_etype835, _size832); + (*(this->success)).resize(_size832); + uint32_t _i836; + for (_i836 = 0; _i836 < _size832; ++_i836) { - xfer += iprot->readString((*(this->success))[_i816]); + xfer += iprot->readString((*(this->success))[_i836]); } xfer += iprot->readListEnd(); } @@ -5749,14 +6048,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 _size817; - ::apache::thrift::protocol::TType _etype820; - xfer += iprot->readListBegin(_etype820, _size817); - this->tbl_names.resize(_size817); - uint32_t _i821; - for (_i821 = 0; _i821 < _size817; ++_i821) + uint32_t _size837; + ::apache::thrift::protocol::TType _etype840; + xfer += iprot->readListBegin(_etype840, _size837); + this->tbl_names.resize(_size837); + uint32_t _i841; + for (_i841 = 0; _i841 < _size837; ++_i841) { - xfer += iprot->readString(this->tbl_names[_i821]); + xfer += iprot->readString(this->tbl_names[_i841]); } xfer += iprot->readListEnd(); } @@ -5789,10 +6088,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 _iter822; - for (_iter822 = this->tbl_names.begin(); _iter822 != this->tbl_names.end(); ++_iter822) + std::vector ::const_iterator _iter842; + for (_iter842 = this->tbl_names.begin(); _iter842 != this->tbl_names.end(); ++_iter842) { - xfer += oprot->writeString((*_iter822)); + xfer += oprot->writeString((*_iter842)); } xfer += oprot->writeListEnd(); } @@ -5820,10 +6119,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 _iter823; - for (_iter823 = (*(this->tbl_names)).begin(); _iter823 != (*(this->tbl_names)).end(); ++_iter823) + std::vector ::const_iterator _iter843; + for (_iter843 = (*(this->tbl_names)).begin(); _iter843 != (*(this->tbl_names)).end(); ++_iter843) { - xfer += oprot->writeString((*_iter823)); + xfer += oprot->writeString((*_iter843)); } xfer += oprot->writeListEnd(); } @@ -5864,14 +6163,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 _size824; - ::apache::thrift::protocol::TType _etype827; - xfer += iprot->readListBegin(_etype827, _size824); - this->success.resize(_size824); - uint32_t _i828; - for (_i828 = 0; _i828 < _size824; ++_i828) + uint32_t _size844; + ::apache::thrift::protocol::TType _etype847; + xfer += iprot->readListBegin(_etype847, _size844); + this->success.resize(_size844); + uint32_t _i848; + for (_i848 = 0; _i848 < _size844; ++_i848) { - xfer += this->success[_i828].read(iprot); + xfer += this->success[_i848].read(iprot); } xfer += iprot->readListEnd(); } @@ -5926,10 +6225,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 _iter829; - for (_iter829 = this->success.begin(); _iter829 != this->success.end(); ++_iter829) + std::vector
::const_iterator _iter849; + for (_iter849 = this->success.begin(); _iter849 != this->success.end(); ++_iter849) { - xfer += (*_iter829).write(oprot); + xfer += (*_iter849).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5982,14 +6281,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 _size830; - ::apache::thrift::protocol::TType _etype833; - xfer += iprot->readListBegin(_etype833, _size830); - (*(this->success)).resize(_size830); - uint32_t _i834; - for (_i834 = 0; _i834 < _size830; ++_i834) + uint32_t _size850; + ::apache::thrift::protocol::TType _etype853; + xfer += iprot->readListBegin(_etype853, _size850); + (*(this->success)).resize(_size850); + uint32_t _i854; + for (_i854 = 0; _i854 < _size850; ++_i854) { - xfer += (*(this->success))[_i834].read(iprot); + xfer += (*(this->success))[_i854].read(iprot); } xfer += iprot->readListEnd(); } @@ -6175,14 +6474,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 _size835; - ::apache::thrift::protocol::TType _etype838; - xfer += iprot->readListBegin(_etype838, _size835); - this->success.resize(_size835); - uint32_t _i839; - for (_i839 = 0; _i839 < _size835; ++_i839) + uint32_t _size855; + ::apache::thrift::protocol::TType _etype858; + xfer += iprot->readListBegin(_etype858, _size855); + this->success.resize(_size855); + uint32_t _i859; + for (_i859 = 0; _i859 < _size855; ++_i859) { - xfer += iprot->readString(this->success[_i839]); + xfer += iprot->readString(this->success[_i859]); } xfer += iprot->readListEnd(); } @@ -6237,10 +6536,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 _iter840; - for (_iter840 = this->success.begin(); _iter840 != this->success.end(); ++_iter840) + std::vector ::const_iterator _iter860; + for (_iter860 = this->success.begin(); _iter860 != this->success.end(); ++_iter860) { - xfer += oprot->writeString((*_iter840)); + xfer += oprot->writeString((*_iter860)); } xfer += oprot->writeListEnd(); } @@ -6293,14 +6592,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 _size841; - ::apache::thrift::protocol::TType _etype844; - xfer += iprot->readListBegin(_etype844, _size841); - (*(this->success)).resize(_size841); - uint32_t _i845; - for (_i845 = 0; _i845 < _size841; ++_i845) + uint32_t _size861; + ::apache::thrift::protocol::TType _etype864; + xfer += iprot->readListBegin(_etype864, _size861); + (*(this->success)).resize(_size861); + uint32_t _i865; + for (_i865 = 0; _i865 < _size861; ++_i865) { - xfer += iprot->readString((*(this->success))[_i845]); + xfer += iprot->readString((*(this->success))[_i865]); } xfer += iprot->readListEnd(); } @@ -7634,14 +7933,14 @@ uint32_t ThriftHiveMetastore_add_partitions_args::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size846; - ::apache::thrift::protocol::TType _etype849; - xfer += iprot->readListBegin(_etype849, _size846); - this->new_parts.resize(_size846); - uint32_t _i850; - for (_i850 = 0; _i850 < _size846; ++_i850) + uint32_t _size866; + ::apache::thrift::protocol::TType _etype869; + xfer += iprot->readListBegin(_etype869, _size866); + this->new_parts.resize(_size866); + uint32_t _i870; + for (_i870 = 0; _i870 < _size866; ++_i870) { - xfer += this->new_parts[_i850].read(iprot); + xfer += this->new_parts[_i870].read(iprot); } xfer += iprot->readListEnd(); } @@ -7670,10 +7969,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 _iter851; - for (_iter851 = this->new_parts.begin(); _iter851 != this->new_parts.end(); ++_iter851) + std::vector ::const_iterator _iter871; + for (_iter871 = this->new_parts.begin(); _iter871 != this->new_parts.end(); ++_iter871) { - xfer += (*_iter851).write(oprot); + xfer += (*_iter871).write(oprot); } xfer += oprot->writeListEnd(); } @@ -7697,10 +7996,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 _iter852; - for (_iter852 = (*(this->new_parts)).begin(); _iter852 != (*(this->new_parts)).end(); ++_iter852) + std::vector ::const_iterator _iter872; + for (_iter872 = (*(this->new_parts)).begin(); _iter872 != (*(this->new_parts)).end(); ++_iter872) { - xfer += (*_iter852).write(oprot); + xfer += (*_iter872).write(oprot); } xfer += oprot->writeListEnd(); } @@ -7909,14 +8208,14 @@ uint32_t ThriftHiveMetastore_add_partitions_pspec_args::read(::apache::thrift::p if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size853; - ::apache::thrift::protocol::TType _etype856; - xfer += iprot->readListBegin(_etype856, _size853); - this->new_parts.resize(_size853); - uint32_t _i857; - for (_i857 = 0; _i857 < _size853; ++_i857) + uint32_t _size873; + ::apache::thrift::protocol::TType _etype876; + xfer += iprot->readListBegin(_etype876, _size873); + this->new_parts.resize(_size873); + uint32_t _i877; + for (_i877 = 0; _i877 < _size873; ++_i877) { - xfer += this->new_parts[_i857].read(iprot); + xfer += this->new_parts[_i877].read(iprot); } xfer += iprot->readListEnd(); } @@ -7945,10 +8244,10 @@ uint32_t ThriftHiveMetastore_add_partitions_pspec_args::write(::apache::thrift:: 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 _iter858; - for (_iter858 = this->new_parts.begin(); _iter858 != this->new_parts.end(); ++_iter858) + std::vector ::const_iterator _iter878; + for (_iter878 = this->new_parts.begin(); _iter878 != this->new_parts.end(); ++_iter878) { - xfer += (*_iter858).write(oprot); + xfer += (*_iter878).write(oprot); } xfer += oprot->writeListEnd(); } @@ -7972,10 +8271,10 @@ uint32_t ThriftHiveMetastore_add_partitions_pspec_pargs::write(::apache::thrift: 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 _iter859; - for (_iter859 = (*(this->new_parts)).begin(); _iter859 != (*(this->new_parts)).end(); ++_iter859) + std::vector ::const_iterator _iter879; + for (_iter879 = (*(this->new_parts)).begin(); _iter879 != (*(this->new_parts)).end(); ++_iter879) { - xfer += (*_iter859).write(oprot); + xfer += (*_iter879).write(oprot); } xfer += oprot->writeListEnd(); } @@ -8200,14 +8499,14 @@ uint32_t ThriftHiveMetastore_append_partition_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size860; - ::apache::thrift::protocol::TType _etype863; - xfer += iprot->readListBegin(_etype863, _size860); - this->part_vals.resize(_size860); - uint32_t _i864; - for (_i864 = 0; _i864 < _size860; ++_i864) + uint32_t _size880; + ::apache::thrift::protocol::TType _etype883; + xfer += iprot->readListBegin(_etype883, _size880); + this->part_vals.resize(_size880); + uint32_t _i884; + for (_i884 = 0; _i884 < _size880; ++_i884) { - xfer += iprot->readString(this->part_vals[_i864]); + xfer += iprot->readString(this->part_vals[_i884]); } xfer += iprot->readListEnd(); } @@ -8244,10 +8543,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 _iter865; - for (_iter865 = this->part_vals.begin(); _iter865 != this->part_vals.end(); ++_iter865) + std::vector ::const_iterator _iter885; + for (_iter885 = this->part_vals.begin(); _iter885 != this->part_vals.end(); ++_iter885) { - xfer += oprot->writeString((*_iter865)); + xfer += oprot->writeString((*_iter885)); } xfer += oprot->writeListEnd(); } @@ -8279,10 +8578,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 _iter866; - for (_iter866 = (*(this->part_vals)).begin(); _iter866 != (*(this->part_vals)).end(); ++_iter866) + std::vector ::const_iterator _iter886; + for (_iter886 = (*(this->part_vals)).begin(); _iter886 != (*(this->part_vals)).end(); ++_iter886) { - xfer += oprot->writeString((*_iter866)); + xfer += oprot->writeString((*_iter886)); } xfer += oprot->writeListEnd(); } @@ -8754,14 +9053,14 @@ uint32_t ThriftHiveMetastore_append_partition_with_environment_context_args::rea if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size867; - ::apache::thrift::protocol::TType _etype870; - xfer += iprot->readListBegin(_etype870, _size867); - this->part_vals.resize(_size867); - uint32_t _i871; - for (_i871 = 0; _i871 < _size867; ++_i871) + uint32_t _size887; + ::apache::thrift::protocol::TType _etype890; + xfer += iprot->readListBegin(_etype890, _size887); + this->part_vals.resize(_size887); + uint32_t _i891; + for (_i891 = 0; _i891 < _size887; ++_i891) { - xfer += iprot->readString(this->part_vals[_i871]); + xfer += iprot->readString(this->part_vals[_i891]); } xfer += iprot->readListEnd(); } @@ -8806,10 +9105,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 _iter872; - for (_iter872 = this->part_vals.begin(); _iter872 != this->part_vals.end(); ++_iter872) + std::vector ::const_iterator _iter892; + for (_iter892 = this->part_vals.begin(); _iter892 != this->part_vals.end(); ++_iter892) { - xfer += oprot->writeString((*_iter872)); + xfer += oprot->writeString((*_iter892)); } xfer += oprot->writeListEnd(); } @@ -8845,10 +9144,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 _iter873; - for (_iter873 = (*(this->part_vals)).begin(); _iter873 != (*(this->part_vals)).end(); ++_iter873) + std::vector ::const_iterator _iter893; + for (_iter893 = (*(this->part_vals)).begin(); _iter893 != (*(this->part_vals)).end(); ++_iter893) { - xfer += oprot->writeString((*_iter873)); + xfer += oprot->writeString((*_iter893)); } xfer += oprot->writeListEnd(); } @@ -9651,14 +9950,14 @@ uint32_t ThriftHiveMetastore_drop_partition_args::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size874; - ::apache::thrift::protocol::TType _etype877; - xfer += iprot->readListBegin(_etype877, _size874); - this->part_vals.resize(_size874); - uint32_t _i878; - for (_i878 = 0; _i878 < _size874; ++_i878) + uint32_t _size894; + ::apache::thrift::protocol::TType _etype897; + xfer += iprot->readListBegin(_etype897, _size894); + this->part_vals.resize(_size894); + uint32_t _i898; + for (_i898 = 0; _i898 < _size894; ++_i898) { - xfer += iprot->readString(this->part_vals[_i878]); + xfer += iprot->readString(this->part_vals[_i898]); } xfer += iprot->readListEnd(); } @@ -9703,10 +10002,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 _iter879; - for (_iter879 = this->part_vals.begin(); _iter879 != this->part_vals.end(); ++_iter879) + std::vector ::const_iterator _iter899; + for (_iter899 = this->part_vals.begin(); _iter899 != this->part_vals.end(); ++_iter899) { - xfer += oprot->writeString((*_iter879)); + xfer += oprot->writeString((*_iter899)); } xfer += oprot->writeListEnd(); } @@ -9742,10 +10041,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 _iter880; - for (_iter880 = (*(this->part_vals)).begin(); _iter880 != (*(this->part_vals)).end(); ++_iter880) + std::vector ::const_iterator _iter900; + for (_iter900 = (*(this->part_vals)).begin(); _iter900 != (*(this->part_vals)).end(); ++_iter900) { - xfer += oprot->writeString((*_iter880)); + xfer += oprot->writeString((*_iter900)); } xfer += oprot->writeListEnd(); } @@ -9954,14 +10253,14 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_args::read( if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size881; - ::apache::thrift::protocol::TType _etype884; - xfer += iprot->readListBegin(_etype884, _size881); - this->part_vals.resize(_size881); - uint32_t _i885; - for (_i885 = 0; _i885 < _size881; ++_i885) + uint32_t _size901; + ::apache::thrift::protocol::TType _etype904; + xfer += iprot->readListBegin(_etype904, _size901); + this->part_vals.resize(_size901); + uint32_t _i905; + for (_i905 = 0; _i905 < _size901; ++_i905) { - xfer += iprot->readString(this->part_vals[_i885]); + xfer += iprot->readString(this->part_vals[_i905]); } xfer += iprot->readListEnd(); } @@ -10014,10 +10313,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 _iter886; - for (_iter886 = this->part_vals.begin(); _iter886 != this->part_vals.end(); ++_iter886) + std::vector ::const_iterator _iter906; + for (_iter906 = this->part_vals.begin(); _iter906 != this->part_vals.end(); ++_iter906) { - xfer += oprot->writeString((*_iter886)); + xfer += oprot->writeString((*_iter906)); } xfer += oprot->writeListEnd(); } @@ -10057,10 +10356,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 _iter887; - for (_iter887 = (*(this->part_vals)).begin(); _iter887 != (*(this->part_vals)).end(); ++_iter887) + std::vector ::const_iterator _iter907; + for (_iter907 = (*(this->part_vals)).begin(); _iter907 != (*(this->part_vals)).end(); ++_iter907) { - xfer += oprot->writeString((*_iter887)); + xfer += oprot->writeString((*_iter907)); } xfer += oprot->writeListEnd(); } @@ -11066,14 +11365,14 @@ uint32_t ThriftHiveMetastore_get_partition_args::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size888; - ::apache::thrift::protocol::TType _etype891; - xfer += iprot->readListBegin(_etype891, _size888); - this->part_vals.resize(_size888); - uint32_t _i892; - for (_i892 = 0; _i892 < _size888; ++_i892) + uint32_t _size908; + ::apache::thrift::protocol::TType _etype911; + xfer += iprot->readListBegin(_etype911, _size908); + this->part_vals.resize(_size908); + uint32_t _i912; + for (_i912 = 0; _i912 < _size908; ++_i912) { - xfer += iprot->readString(this->part_vals[_i892]); + xfer += iprot->readString(this->part_vals[_i912]); } xfer += iprot->readListEnd(); } @@ -11110,10 +11409,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 _iter893; - for (_iter893 = this->part_vals.begin(); _iter893 != this->part_vals.end(); ++_iter893) + std::vector ::const_iterator _iter913; + for (_iter913 = this->part_vals.begin(); _iter913 != this->part_vals.end(); ++_iter913) { - xfer += oprot->writeString((*_iter893)); + xfer += oprot->writeString((*_iter913)); } xfer += oprot->writeListEnd(); } @@ -11145,10 +11444,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 _iter894; - for (_iter894 = (*(this->part_vals)).begin(); _iter894 != (*(this->part_vals)).end(); ++_iter894) + std::vector ::const_iterator _iter914; + for (_iter914 = (*(this->part_vals)).begin(); _iter914 != (*(this->part_vals)).end(); ++_iter914) { - xfer += oprot->writeString((*_iter894)); + xfer += oprot->writeString((*_iter914)); } xfer += oprot->writeListEnd(); } @@ -11337,17 +11636,17 @@ uint32_t ThriftHiveMetastore_exchange_partition_args::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->partitionSpecs.clear(); - uint32_t _size895; - ::apache::thrift::protocol::TType _ktype896; - ::apache::thrift::protocol::TType _vtype897; - xfer += iprot->readMapBegin(_ktype896, _vtype897, _size895); - uint32_t _i899; - for (_i899 = 0; _i899 < _size895; ++_i899) + uint32_t _size915; + ::apache::thrift::protocol::TType _ktype916; + ::apache::thrift::protocol::TType _vtype917; + xfer += iprot->readMapBegin(_ktype916, _vtype917, _size915); + uint32_t _i919; + for (_i919 = 0; _i919 < _size915; ++_i919) { - std::string _key900; - xfer += iprot->readString(_key900); - std::string& _val901 = this->partitionSpecs[_key900]; - xfer += iprot->readString(_val901); + std::string _key920; + xfer += iprot->readString(_key920); + std::string& _val921 = this->partitionSpecs[_key920]; + xfer += iprot->readString(_val921); } xfer += iprot->readMapEnd(); } @@ -11408,11 +11707,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 _iter902; - for (_iter902 = this->partitionSpecs.begin(); _iter902 != this->partitionSpecs.end(); ++_iter902) + std::map ::const_iterator _iter922; + for (_iter922 = this->partitionSpecs.begin(); _iter922 != this->partitionSpecs.end(); ++_iter922) { - xfer += oprot->writeString(_iter902->first); - xfer += oprot->writeString(_iter902->second); + xfer += oprot->writeString(_iter922->first); + xfer += oprot->writeString(_iter922->second); } xfer += oprot->writeMapEnd(); } @@ -11452,11 +11751,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 _iter903; - for (_iter903 = (*(this->partitionSpecs)).begin(); _iter903 != (*(this->partitionSpecs)).end(); ++_iter903) + std::map ::const_iterator _iter923; + for (_iter923 = (*(this->partitionSpecs)).begin(); _iter923 != (*(this->partitionSpecs)).end(); ++_iter923) { - xfer += oprot->writeString(_iter903->first); - xfer += oprot->writeString(_iter903->second); + xfer += oprot->writeString(_iter923->first); + xfer += oprot->writeString(_iter923->second); } xfer += oprot->writeMapEnd(); } @@ -11701,17 +12000,17 @@ uint32_t ThriftHiveMetastore_exchange_partitions_args::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_MAP) { { this->partitionSpecs.clear(); - uint32_t _size904; - ::apache::thrift::protocol::TType _ktype905; - ::apache::thrift::protocol::TType _vtype906; - xfer += iprot->readMapBegin(_ktype905, _vtype906, _size904); - uint32_t _i908; - for (_i908 = 0; _i908 < _size904; ++_i908) + uint32_t _size924; + ::apache::thrift::protocol::TType _ktype925; + ::apache::thrift::protocol::TType _vtype926; + xfer += iprot->readMapBegin(_ktype925, _vtype926, _size924); + uint32_t _i928; + for (_i928 = 0; _i928 < _size924; ++_i928) { - std::string _key909; - xfer += iprot->readString(_key909); - std::string& _val910 = this->partitionSpecs[_key909]; - xfer += iprot->readString(_val910); + std::string _key929; + xfer += iprot->readString(_key929); + std::string& _val930 = this->partitionSpecs[_key929]; + xfer += iprot->readString(_val930); } xfer += iprot->readMapEnd(); } @@ -11772,11 +12071,11 @@ uint32_t ThriftHiveMetastore_exchange_partitions_args::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 _iter911; - for (_iter911 = this->partitionSpecs.begin(); _iter911 != this->partitionSpecs.end(); ++_iter911) + std::map ::const_iterator _iter931; + for (_iter931 = this->partitionSpecs.begin(); _iter931 != this->partitionSpecs.end(); ++_iter931) { - xfer += oprot->writeString(_iter911->first); - xfer += oprot->writeString(_iter911->second); + xfer += oprot->writeString(_iter931->first); + xfer += oprot->writeString(_iter931->second); } xfer += oprot->writeMapEnd(); } @@ -11816,11 +12115,11 @@ uint32_t ThriftHiveMetastore_exchange_partitions_pargs::write(::apache::thrift:: 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 _iter912; - for (_iter912 = (*(this->partitionSpecs)).begin(); _iter912 != (*(this->partitionSpecs)).end(); ++_iter912) + std::map ::const_iterator _iter932; + for (_iter932 = (*(this->partitionSpecs)).begin(); _iter932 != (*(this->partitionSpecs)).end(); ++_iter932) { - xfer += oprot->writeString(_iter912->first); - xfer += oprot->writeString(_iter912->second); + xfer += oprot->writeString(_iter932->first); + xfer += oprot->writeString(_iter932->second); } xfer += oprot->writeMapEnd(); } @@ -11877,14 +12176,14 @@ uint32_t ThriftHiveMetastore_exchange_partitions_result::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size913; - ::apache::thrift::protocol::TType _etype916; - xfer += iprot->readListBegin(_etype916, _size913); - this->success.resize(_size913); - uint32_t _i917; - for (_i917 = 0; _i917 < _size913; ++_i917) + uint32_t _size933; + ::apache::thrift::protocol::TType _etype936; + xfer += iprot->readListBegin(_etype936, _size933); + this->success.resize(_size933); + uint32_t _i937; + for (_i937 = 0; _i937 < _size933; ++_i937) { - xfer += this->success[_i917].read(iprot); + xfer += this->success[_i937].read(iprot); } xfer += iprot->readListEnd(); } @@ -11947,10 +12246,10 @@ uint32_t ThriftHiveMetastore_exchange_partitions_result::write(::apache::thrift: 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 _iter918; - for (_iter918 = this->success.begin(); _iter918 != this->success.end(); ++_iter918) + std::vector ::const_iterator _iter938; + for (_iter938 = this->success.begin(); _iter938 != this->success.end(); ++_iter938) { - xfer += (*_iter918).write(oprot); + xfer += (*_iter938).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12007,14 +12306,14 @@ uint32_t ThriftHiveMetastore_exchange_partitions_presult::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size919; - ::apache::thrift::protocol::TType _etype922; - xfer += iprot->readListBegin(_etype922, _size919); - (*(this->success)).resize(_size919); - uint32_t _i923; - for (_i923 = 0; _i923 < _size919; ++_i923) + uint32_t _size939; + ::apache::thrift::protocol::TType _etype942; + xfer += iprot->readListBegin(_etype942, _size939); + (*(this->success)).resize(_size939); + uint32_t _i943; + for (_i943 = 0; _i943 < _size939; ++_i943) { - xfer += (*(this->success))[_i923].read(iprot); + xfer += (*(this->success))[_i943].read(iprot); } xfer += iprot->readListEnd(); } @@ -12113,14 +12412,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 _size924; - ::apache::thrift::protocol::TType _etype927; - xfer += iprot->readListBegin(_etype927, _size924); - this->part_vals.resize(_size924); - uint32_t _i928; - for (_i928 = 0; _i928 < _size924; ++_i928) + uint32_t _size944; + ::apache::thrift::protocol::TType _etype947; + xfer += iprot->readListBegin(_etype947, _size944); + this->part_vals.resize(_size944); + uint32_t _i948; + for (_i948 = 0; _i948 < _size944; ++_i948) { - xfer += iprot->readString(this->part_vals[_i928]); + xfer += iprot->readString(this->part_vals[_i948]); } xfer += iprot->readListEnd(); } @@ -12141,14 +12440,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 _size929; - ::apache::thrift::protocol::TType _etype932; - xfer += iprot->readListBegin(_etype932, _size929); - this->group_names.resize(_size929); - uint32_t _i933; - for (_i933 = 0; _i933 < _size929; ++_i933) + uint32_t _size949; + ::apache::thrift::protocol::TType _etype952; + xfer += iprot->readListBegin(_etype952, _size949); + this->group_names.resize(_size949); + uint32_t _i953; + for (_i953 = 0; _i953 < _size949; ++_i953) { - xfer += iprot->readString(this->group_names[_i933]); + xfer += iprot->readString(this->group_names[_i953]); } xfer += iprot->readListEnd(); } @@ -12185,10 +12484,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 _iter934; - for (_iter934 = this->part_vals.begin(); _iter934 != this->part_vals.end(); ++_iter934) + std::vector ::const_iterator _iter954; + for (_iter954 = this->part_vals.begin(); _iter954 != this->part_vals.end(); ++_iter954) { - xfer += oprot->writeString((*_iter934)); + xfer += oprot->writeString((*_iter954)); } xfer += oprot->writeListEnd(); } @@ -12201,10 +12500,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 _iter935; - for (_iter935 = this->group_names.begin(); _iter935 != this->group_names.end(); ++_iter935) + std::vector ::const_iterator _iter955; + for (_iter955 = this->group_names.begin(); _iter955 != this->group_names.end(); ++_iter955) { - xfer += oprot->writeString((*_iter935)); + xfer += oprot->writeString((*_iter955)); } xfer += oprot->writeListEnd(); } @@ -12236,10 +12535,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 _iter936; - for (_iter936 = (*(this->part_vals)).begin(); _iter936 != (*(this->part_vals)).end(); ++_iter936) + std::vector ::const_iterator _iter956; + for (_iter956 = (*(this->part_vals)).begin(); _iter956 != (*(this->part_vals)).end(); ++_iter956) { - xfer += oprot->writeString((*_iter936)); + xfer += oprot->writeString((*_iter956)); } xfer += oprot->writeListEnd(); } @@ -12252,10 +12551,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 _iter937; - for (_iter937 = (*(this->group_names)).begin(); _iter937 != (*(this->group_names)).end(); ++_iter937) + std::vector ::const_iterator _iter957; + for (_iter957 = (*(this->group_names)).begin(); _iter957 != (*(this->group_names)).end(); ++_iter957) { - xfer += oprot->writeString((*_iter937)); + xfer += oprot->writeString((*_iter957)); } xfer += oprot->writeListEnd(); } @@ -12814,14 +13113,14 @@ uint32_t ThriftHiveMetastore_get_partitions_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size938; - ::apache::thrift::protocol::TType _etype941; - xfer += iprot->readListBegin(_etype941, _size938); - this->success.resize(_size938); - uint32_t _i942; - for (_i942 = 0; _i942 < _size938; ++_i942) + uint32_t _size958; + ::apache::thrift::protocol::TType _etype961; + xfer += iprot->readListBegin(_etype961, _size958); + this->success.resize(_size958); + uint32_t _i962; + for (_i962 = 0; _i962 < _size958; ++_i962) { - xfer += this->success[_i942].read(iprot); + xfer += this->success[_i962].read(iprot); } xfer += iprot->readListEnd(); } @@ -12868,10 +13167,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 _iter943; - for (_iter943 = this->success.begin(); _iter943 != this->success.end(); ++_iter943) + std::vector ::const_iterator _iter963; + for (_iter963 = this->success.begin(); _iter963 != this->success.end(); ++_iter963) { - xfer += (*_iter943).write(oprot); + xfer += (*_iter963).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12920,14 +13219,14 @@ uint32_t ThriftHiveMetastore_get_partitions_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size944; - ::apache::thrift::protocol::TType _etype947; - xfer += iprot->readListBegin(_etype947, _size944); - (*(this->success)).resize(_size944); - uint32_t _i948; - for (_i948 = 0; _i948 < _size944; ++_i948) + uint32_t _size964; + ::apache::thrift::protocol::TType _etype967; + xfer += iprot->readListBegin(_etype967, _size964); + (*(this->success)).resize(_size964); + uint32_t _i968; + for (_i968 = 0; _i968 < _size964; ++_i968) { - xfer += (*(this->success))[_i948].read(iprot); + xfer += (*(this->success))[_i968].read(iprot); } xfer += iprot->readListEnd(); } @@ -13026,14 +13325,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 _size949; - ::apache::thrift::protocol::TType _etype952; - xfer += iprot->readListBegin(_etype952, _size949); - this->group_names.resize(_size949); - uint32_t _i953; - for (_i953 = 0; _i953 < _size949; ++_i953) + uint32_t _size969; + ::apache::thrift::protocol::TType _etype972; + xfer += iprot->readListBegin(_etype972, _size969); + this->group_names.resize(_size969); + uint32_t _i973; + for (_i973 = 0; _i973 < _size969; ++_i973) { - xfer += iprot->readString(this->group_names[_i953]); + xfer += iprot->readString(this->group_names[_i973]); } xfer += iprot->readListEnd(); } @@ -13078,10 +13377,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 _iter954; - for (_iter954 = this->group_names.begin(); _iter954 != this->group_names.end(); ++_iter954) + std::vector ::const_iterator _iter974; + for (_iter974 = this->group_names.begin(); _iter974 != this->group_names.end(); ++_iter974) { - xfer += oprot->writeString((*_iter954)); + xfer += oprot->writeString((*_iter974)); } xfer += oprot->writeListEnd(); } @@ -13121,10 +13420,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 _iter955; - for (_iter955 = (*(this->group_names)).begin(); _iter955 != (*(this->group_names)).end(); ++_iter955) + std::vector ::const_iterator _iter975; + for (_iter975 = (*(this->group_names)).begin(); _iter975 != (*(this->group_names)).end(); ++_iter975) { - xfer += oprot->writeString((*_iter955)); + xfer += oprot->writeString((*_iter975)); } xfer += oprot->writeListEnd(); } @@ -13165,14 +13464,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_result::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size956; - ::apache::thrift::protocol::TType _etype959; - xfer += iprot->readListBegin(_etype959, _size956); - this->success.resize(_size956); - uint32_t _i960; - for (_i960 = 0; _i960 < _size956; ++_i960) + uint32_t _size976; + ::apache::thrift::protocol::TType _etype979; + xfer += iprot->readListBegin(_etype979, _size976); + this->success.resize(_size976); + uint32_t _i980; + for (_i980 = 0; _i980 < _size976; ++_i980) { - xfer += this->success[_i960].read(iprot); + xfer += this->success[_i980].read(iprot); } xfer += iprot->readListEnd(); } @@ -13219,10 +13518,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 _iter961; - for (_iter961 = this->success.begin(); _iter961 != this->success.end(); ++_iter961) + std::vector ::const_iterator _iter981; + for (_iter981 = this->success.begin(); _iter981 != this->success.end(); ++_iter981) { - xfer += (*_iter961).write(oprot); + xfer += (*_iter981).write(oprot); } xfer += oprot->writeListEnd(); } @@ -13271,14 +13570,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_presult::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size962; - ::apache::thrift::protocol::TType _etype965; - xfer += iprot->readListBegin(_etype965, _size962); - (*(this->success)).resize(_size962); - uint32_t _i966; - for (_i966 = 0; _i966 < _size962; ++_i966) + uint32_t _size982; + ::apache::thrift::protocol::TType _etype985; + xfer += iprot->readListBegin(_etype985, _size982); + (*(this->success)).resize(_size982); + uint32_t _i986; + for (_i986 = 0; _i986 < _size982; ++_i986) { - xfer += (*(this->success))[_i966].read(iprot); + xfer += (*(this->success))[_i986].read(iprot); } xfer += iprot->readListEnd(); } @@ -13456,14 +13755,14 @@ uint32_t ThriftHiveMetastore_get_partitions_pspec_result::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size967; - ::apache::thrift::protocol::TType _etype970; - xfer += iprot->readListBegin(_etype970, _size967); - this->success.resize(_size967); - uint32_t _i971; - for (_i971 = 0; _i971 < _size967; ++_i971) + uint32_t _size987; + ::apache::thrift::protocol::TType _etype990; + xfer += iprot->readListBegin(_etype990, _size987); + this->success.resize(_size987); + uint32_t _i991; + for (_i991 = 0; _i991 < _size987; ++_i991) { - xfer += this->success[_i971].read(iprot); + xfer += this->success[_i991].read(iprot); } xfer += iprot->readListEnd(); } @@ -13510,10 +13809,10 @@ uint32_t ThriftHiveMetastore_get_partitions_pspec_result::write(::apache::thrift 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 _iter972; - for (_iter972 = this->success.begin(); _iter972 != this->success.end(); ++_iter972) + std::vector ::const_iterator _iter992; + for (_iter992 = this->success.begin(); _iter992 != this->success.end(); ++_iter992) { - xfer += (*_iter972).write(oprot); + xfer += (*_iter992).write(oprot); } xfer += oprot->writeListEnd(); } @@ -13562,14 +13861,14 @@ uint32_t ThriftHiveMetastore_get_partitions_pspec_presult::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size973; - ::apache::thrift::protocol::TType _etype976; - xfer += iprot->readListBegin(_etype976, _size973); - (*(this->success)).resize(_size973); - uint32_t _i977; - for (_i977 = 0; _i977 < _size973; ++_i977) + uint32_t _size993; + ::apache::thrift::protocol::TType _etype996; + xfer += iprot->readListBegin(_etype996, _size993); + (*(this->success)).resize(_size993); + uint32_t _i997; + for (_i997 = 0; _i997 < _size993; ++_i997) { - xfer += (*(this->success))[_i977].read(iprot); + xfer += (*(this->success))[_i997].read(iprot); } xfer += iprot->readListEnd(); } @@ -13747,14 +14046,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_result::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size978; - ::apache::thrift::protocol::TType _etype981; - xfer += iprot->readListBegin(_etype981, _size978); - this->success.resize(_size978); - uint32_t _i982; - for (_i982 = 0; _i982 < _size978; ++_i982) + uint32_t _size998; + ::apache::thrift::protocol::TType _etype1001; + xfer += iprot->readListBegin(_etype1001, _size998); + this->success.resize(_size998); + uint32_t _i1002; + for (_i1002 = 0; _i1002 < _size998; ++_i1002) { - xfer += iprot->readString(this->success[_i982]); + xfer += iprot->readString(this->success[_i1002]); } xfer += iprot->readListEnd(); } @@ -13793,10 +14092,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 _iter983; - for (_iter983 = this->success.begin(); _iter983 != this->success.end(); ++_iter983) + std::vector ::const_iterator _iter1003; + for (_iter1003 = this->success.begin(); _iter1003 != this->success.end(); ++_iter1003) { - xfer += oprot->writeString((*_iter983)); + xfer += oprot->writeString((*_iter1003)); } xfer += oprot->writeListEnd(); } @@ -13841,14 +14140,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_presult::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size984; - ::apache::thrift::protocol::TType _etype987; - xfer += iprot->readListBegin(_etype987, _size984); - (*(this->success)).resize(_size984); - uint32_t _i988; - for (_i988 = 0; _i988 < _size984; ++_i988) + uint32_t _size1004; + ::apache::thrift::protocol::TType _etype1007; + xfer += iprot->readListBegin(_etype1007, _size1004); + (*(this->success)).resize(_size1004); + uint32_t _i1008; + for (_i1008 = 0; _i1008 < _size1004; ++_i1008) { - xfer += iprot->readString((*(this->success))[_i988]); + xfer += iprot->readString((*(this->success))[_i1008]); } xfer += iprot->readListEnd(); } @@ -13923,14 +14222,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 _size989; - ::apache::thrift::protocol::TType _etype992; - xfer += iprot->readListBegin(_etype992, _size989); - this->part_vals.resize(_size989); - uint32_t _i993; - for (_i993 = 0; _i993 < _size989; ++_i993) + uint32_t _size1009; + ::apache::thrift::protocol::TType _etype1012; + xfer += iprot->readListBegin(_etype1012, _size1009); + this->part_vals.resize(_size1009); + uint32_t _i1013; + for (_i1013 = 0; _i1013 < _size1009; ++_i1013) { - xfer += iprot->readString(this->part_vals[_i993]); + xfer += iprot->readString(this->part_vals[_i1013]); } xfer += iprot->readListEnd(); } @@ -13975,10 +14274,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 _iter994; - for (_iter994 = this->part_vals.begin(); _iter994 != this->part_vals.end(); ++_iter994) + std::vector ::const_iterator _iter1014; + for (_iter1014 = this->part_vals.begin(); _iter1014 != this->part_vals.end(); ++_iter1014) { - xfer += oprot->writeString((*_iter994)); + xfer += oprot->writeString((*_iter1014)); } xfer += oprot->writeListEnd(); } @@ -14014,10 +14313,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 _iter995; - for (_iter995 = (*(this->part_vals)).begin(); _iter995 != (*(this->part_vals)).end(); ++_iter995) + std::vector ::const_iterator _iter1015; + for (_iter1015 = (*(this->part_vals)).begin(); _iter1015 != (*(this->part_vals)).end(); ++_iter1015) { - xfer += oprot->writeString((*_iter995)); + xfer += oprot->writeString((*_iter1015)); } xfer += oprot->writeListEnd(); } @@ -14062,14 +14361,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_result::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size996; - ::apache::thrift::protocol::TType _etype999; - xfer += iprot->readListBegin(_etype999, _size996); - this->success.resize(_size996); - uint32_t _i1000; - for (_i1000 = 0; _i1000 < _size996; ++_i1000) + uint32_t _size1016; + ::apache::thrift::protocol::TType _etype1019; + xfer += iprot->readListBegin(_etype1019, _size1016); + this->success.resize(_size1016); + uint32_t _i1020; + for (_i1020 = 0; _i1020 < _size1016; ++_i1020) { - xfer += this->success[_i1000].read(iprot); + xfer += this->success[_i1020].read(iprot); } xfer += iprot->readListEnd(); } @@ -14116,10 +14415,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 _iter1001; - for (_iter1001 = this->success.begin(); _iter1001 != this->success.end(); ++_iter1001) + std::vector ::const_iterator _iter1021; + for (_iter1021 = this->success.begin(); _iter1021 != this->success.end(); ++_iter1021) { - xfer += (*_iter1001).write(oprot); + xfer += (*_iter1021).write(oprot); } xfer += oprot->writeListEnd(); } @@ -14168,14 +14467,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_presult::read(::apache::thrift::p if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1002; - ::apache::thrift::protocol::TType _etype1005; - xfer += iprot->readListBegin(_etype1005, _size1002); - (*(this->success)).resize(_size1002); - uint32_t _i1006; - for (_i1006 = 0; _i1006 < _size1002; ++_i1006) + uint32_t _size1022; + ::apache::thrift::protocol::TType _etype1025; + xfer += iprot->readListBegin(_etype1025, _size1022); + (*(this->success)).resize(_size1022); + uint32_t _i1026; + for (_i1026 = 0; _i1026 < _size1022; ++_i1026) { - xfer += (*(this->success))[_i1006].read(iprot); + xfer += (*(this->success))[_i1026].read(iprot); } xfer += iprot->readListEnd(); } @@ -14258,14 +14557,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 _size1007; - ::apache::thrift::protocol::TType _etype1010; - xfer += iprot->readListBegin(_etype1010, _size1007); - this->part_vals.resize(_size1007); - uint32_t _i1011; - for (_i1011 = 0; _i1011 < _size1007; ++_i1011) + uint32_t _size1027; + ::apache::thrift::protocol::TType _etype1030; + xfer += iprot->readListBegin(_etype1030, _size1027); + this->part_vals.resize(_size1027); + uint32_t _i1031; + for (_i1031 = 0; _i1031 < _size1027; ++_i1031) { - xfer += iprot->readString(this->part_vals[_i1011]); + xfer += iprot->readString(this->part_vals[_i1031]); } xfer += iprot->readListEnd(); } @@ -14294,14 +14593,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 _size1012; - ::apache::thrift::protocol::TType _etype1015; - xfer += iprot->readListBegin(_etype1015, _size1012); - this->group_names.resize(_size1012); - uint32_t _i1016; - for (_i1016 = 0; _i1016 < _size1012; ++_i1016) + uint32_t _size1032; + ::apache::thrift::protocol::TType _etype1035; + xfer += iprot->readListBegin(_etype1035, _size1032); + this->group_names.resize(_size1032); + uint32_t _i1036; + for (_i1036 = 0; _i1036 < _size1032; ++_i1036) { - xfer += iprot->readString(this->group_names[_i1016]); + xfer += iprot->readString(this->group_names[_i1036]); } xfer += iprot->readListEnd(); } @@ -14338,10 +14637,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 _iter1017; - for (_iter1017 = this->part_vals.begin(); _iter1017 != this->part_vals.end(); ++_iter1017) + std::vector ::const_iterator _iter1037; + for (_iter1037 = this->part_vals.begin(); _iter1037 != this->part_vals.end(); ++_iter1037) { - xfer += oprot->writeString((*_iter1017)); + xfer += oprot->writeString((*_iter1037)); } xfer += oprot->writeListEnd(); } @@ -14358,10 +14657,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 _iter1018; - for (_iter1018 = this->group_names.begin(); _iter1018 != this->group_names.end(); ++_iter1018) + std::vector ::const_iterator _iter1038; + for (_iter1038 = this->group_names.begin(); _iter1038 != this->group_names.end(); ++_iter1038) { - xfer += oprot->writeString((*_iter1018)); + xfer += oprot->writeString((*_iter1038)); } xfer += oprot->writeListEnd(); } @@ -14393,10 +14692,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 _iter1019; - for (_iter1019 = (*(this->part_vals)).begin(); _iter1019 != (*(this->part_vals)).end(); ++_iter1019) + std::vector ::const_iterator _iter1039; + for (_iter1039 = (*(this->part_vals)).begin(); _iter1039 != (*(this->part_vals)).end(); ++_iter1039) { - xfer += oprot->writeString((*_iter1019)); + xfer += oprot->writeString((*_iter1039)); } xfer += oprot->writeListEnd(); } @@ -14413,10 +14712,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 _iter1020; - for (_iter1020 = (*(this->group_names)).begin(); _iter1020 != (*(this->group_names)).end(); ++_iter1020) + std::vector ::const_iterator _iter1040; + for (_iter1040 = (*(this->group_names)).begin(); _iter1040 != (*(this->group_names)).end(); ++_iter1040) { - xfer += oprot->writeString((*_iter1020)); + xfer += oprot->writeString((*_iter1040)); } xfer += oprot->writeListEnd(); } @@ -14457,14 +14756,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_result::read(::apache:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1021; - ::apache::thrift::protocol::TType _etype1024; - xfer += iprot->readListBegin(_etype1024, _size1021); - this->success.resize(_size1021); - uint32_t _i1025; - for (_i1025 = 0; _i1025 < _size1021; ++_i1025) + uint32_t _size1041; + ::apache::thrift::protocol::TType _etype1044; + xfer += iprot->readListBegin(_etype1044, _size1041); + this->success.resize(_size1041); + uint32_t _i1045; + for (_i1045 = 0; _i1045 < _size1041; ++_i1045) { - xfer += this->success[_i1025].read(iprot); + xfer += this->success[_i1045].read(iprot); } xfer += iprot->readListEnd(); } @@ -14511,10 +14810,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 _iter1026; - for (_iter1026 = this->success.begin(); _iter1026 != this->success.end(); ++_iter1026) + std::vector ::const_iterator _iter1046; + for (_iter1046 = this->success.begin(); _iter1046 != this->success.end(); ++_iter1046) { - xfer += (*_iter1026).write(oprot); + xfer += (*_iter1046).write(oprot); } xfer += oprot->writeListEnd(); } @@ -14563,14 +14862,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_presult::read(::apache: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1027; - ::apache::thrift::protocol::TType _etype1030; - xfer += iprot->readListBegin(_etype1030, _size1027); - (*(this->success)).resize(_size1027); - uint32_t _i1031; - for (_i1031 = 0; _i1031 < _size1027; ++_i1031) + uint32_t _size1047; + ::apache::thrift::protocol::TType _etype1050; + xfer += iprot->readListBegin(_etype1050, _size1047); + (*(this->success)).resize(_size1047); + uint32_t _i1051; + for (_i1051 = 0; _i1051 < _size1047; ++_i1051) { - xfer += (*(this->success))[_i1031].read(iprot); + xfer += (*(this->success))[_i1051].read(iprot); } xfer += iprot->readListEnd(); } @@ -14653,14 +14952,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 _size1032; - ::apache::thrift::protocol::TType _etype1035; - xfer += iprot->readListBegin(_etype1035, _size1032); - this->part_vals.resize(_size1032); - uint32_t _i1036; - for (_i1036 = 0; _i1036 < _size1032; ++_i1036) + uint32_t _size1052; + ::apache::thrift::protocol::TType _etype1055; + xfer += iprot->readListBegin(_etype1055, _size1052); + this->part_vals.resize(_size1052); + uint32_t _i1056; + for (_i1056 = 0; _i1056 < _size1052; ++_i1056) { - xfer += iprot->readString(this->part_vals[_i1036]); + xfer += iprot->readString(this->part_vals[_i1056]); } xfer += iprot->readListEnd(); } @@ -14705,10 +15004,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 _iter1037; - for (_iter1037 = this->part_vals.begin(); _iter1037 != this->part_vals.end(); ++_iter1037) + std::vector ::const_iterator _iter1057; + for (_iter1057 = this->part_vals.begin(); _iter1057 != this->part_vals.end(); ++_iter1057) { - xfer += oprot->writeString((*_iter1037)); + xfer += oprot->writeString((*_iter1057)); } xfer += oprot->writeListEnd(); } @@ -14744,10 +15043,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 _iter1038; - for (_iter1038 = (*(this->part_vals)).begin(); _iter1038 != (*(this->part_vals)).end(); ++_iter1038) + std::vector ::const_iterator _iter1058; + for (_iter1058 = (*(this->part_vals)).begin(); _iter1058 != (*(this->part_vals)).end(); ++_iter1058) { - xfer += oprot->writeString((*_iter1038)); + xfer += oprot->writeString((*_iter1058)); } xfer += oprot->writeListEnd(); } @@ -14792,14 +15091,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1039; - ::apache::thrift::protocol::TType _etype1042; - xfer += iprot->readListBegin(_etype1042, _size1039); - this->success.resize(_size1039); - uint32_t _i1043; - for (_i1043 = 0; _i1043 < _size1039; ++_i1043) + uint32_t _size1059; + ::apache::thrift::protocol::TType _etype1062; + xfer += iprot->readListBegin(_etype1062, _size1059); + this->success.resize(_size1059); + uint32_t _i1063; + for (_i1063 = 0; _i1063 < _size1059; ++_i1063) { - xfer += iprot->readString(this->success[_i1043]); + xfer += iprot->readString(this->success[_i1063]); } xfer += iprot->readListEnd(); } @@ -14846,10 +15145,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 _iter1044; - for (_iter1044 = this->success.begin(); _iter1044 != this->success.end(); ++_iter1044) + std::vector ::const_iterator _iter1064; + for (_iter1064 = this->success.begin(); _iter1064 != this->success.end(); ++_iter1064) { - xfer += oprot->writeString((*_iter1044)); + xfer += oprot->writeString((*_iter1064)); } xfer += oprot->writeListEnd(); } @@ -14898,14 +15197,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1045; - ::apache::thrift::protocol::TType _etype1048; - xfer += iprot->readListBegin(_etype1048, _size1045); - (*(this->success)).resize(_size1045); - uint32_t _i1049; - for (_i1049 = 0; _i1049 < _size1045; ++_i1049) + uint32_t _size1065; + ::apache::thrift::protocol::TType _etype1068; + xfer += iprot->readListBegin(_etype1068, _size1065); + (*(this->success)).resize(_size1065); + uint32_t _i1069; + for (_i1069 = 0; _i1069 < _size1065; ++_i1069) { - xfer += iprot->readString((*(this->success))[_i1049]); + xfer += iprot->readString((*(this->success))[_i1069]); } xfer += iprot->readListEnd(); } @@ -15099,14 +15398,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_result::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1050; - ::apache::thrift::protocol::TType _etype1053; - xfer += iprot->readListBegin(_etype1053, _size1050); - this->success.resize(_size1050); - uint32_t _i1054; - for (_i1054 = 0; _i1054 < _size1050; ++_i1054) + uint32_t _size1070; + ::apache::thrift::protocol::TType _etype1073; + xfer += iprot->readListBegin(_etype1073, _size1070); + this->success.resize(_size1070); + uint32_t _i1074; + for (_i1074 = 0; _i1074 < _size1070; ++_i1074) { - xfer += this->success[_i1054].read(iprot); + xfer += this->success[_i1074].read(iprot); } xfer += iprot->readListEnd(); } @@ -15153,10 +15452,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 _iter1055; - for (_iter1055 = this->success.begin(); _iter1055 != this->success.end(); ++_iter1055) + std::vector ::const_iterator _iter1075; + for (_iter1075 = this->success.begin(); _iter1075 != this->success.end(); ++_iter1075) { - xfer += (*_iter1055).write(oprot); + xfer += (*_iter1075).write(oprot); } xfer += oprot->writeListEnd(); } @@ -15205,14 +15504,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_presult::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1056; - ::apache::thrift::protocol::TType _etype1059; - xfer += iprot->readListBegin(_etype1059, _size1056); - (*(this->success)).resize(_size1056); - uint32_t _i1060; - for (_i1060 = 0; _i1060 < _size1056; ++_i1060) + uint32_t _size1076; + ::apache::thrift::protocol::TType _etype1079; + xfer += iprot->readListBegin(_etype1079, _size1076); + (*(this->success)).resize(_size1076); + uint32_t _i1080; + for (_i1080 = 0; _i1080 < _size1076; ++_i1080) { - xfer += (*(this->success))[_i1060].read(iprot); + xfer += (*(this->success))[_i1080].read(iprot); } xfer += iprot->readListEnd(); } @@ -15406,14 +15705,14 @@ uint32_t ThriftHiveMetastore_get_part_specs_by_filter_result::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1061; - ::apache::thrift::protocol::TType _etype1064; - xfer += iprot->readListBegin(_etype1064, _size1061); - this->success.resize(_size1061); - uint32_t _i1065; - for (_i1065 = 0; _i1065 < _size1061; ++_i1065) + uint32_t _size1081; + ::apache::thrift::protocol::TType _etype1084; + xfer += iprot->readListBegin(_etype1084, _size1081); + this->success.resize(_size1081); + uint32_t _i1085; + for (_i1085 = 0; _i1085 < _size1081; ++_i1085) { - xfer += this->success[_i1065].read(iprot); + xfer += this->success[_i1085].read(iprot); } xfer += iprot->readListEnd(); } @@ -15460,10 +15759,10 @@ uint32_t ThriftHiveMetastore_get_part_specs_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 _iter1066; - for (_iter1066 = this->success.begin(); _iter1066 != this->success.end(); ++_iter1066) + std::vector ::const_iterator _iter1086; + for (_iter1086 = this->success.begin(); _iter1086 != this->success.end(); ++_iter1086) { - xfer += (*_iter1066).write(oprot); + xfer += (*_iter1086).write(oprot); } xfer += oprot->writeListEnd(); } @@ -15512,14 +15811,14 @@ uint32_t ThriftHiveMetastore_get_part_specs_by_filter_presult::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1067; - ::apache::thrift::protocol::TType _etype1070; - xfer += iprot->readListBegin(_etype1070, _size1067); - (*(this->success)).resize(_size1067); - uint32_t _i1071; - for (_i1071 = 0; _i1071 < _size1067; ++_i1071) + uint32_t _size1087; + ::apache::thrift::protocol::TType _etype1090; + xfer += iprot->readListBegin(_etype1090, _size1087); + (*(this->success)).resize(_size1087); + uint32_t _i1091; + for (_i1091 = 0; _i1091 < _size1087; ++_i1091) { - xfer += (*(this->success))[_i1071].read(iprot); + xfer += (*(this->success))[_i1091].read(iprot); } xfer += iprot->readListEnd(); } @@ -15829,14 +16128,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_args::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { this->names.clear(); - uint32_t _size1072; - ::apache::thrift::protocol::TType _etype1075; - xfer += iprot->readListBegin(_etype1075, _size1072); - this->names.resize(_size1072); - uint32_t _i1076; - for (_i1076 = 0; _i1076 < _size1072; ++_i1076) + uint32_t _size1092; + ::apache::thrift::protocol::TType _etype1095; + xfer += iprot->readListBegin(_etype1095, _size1092); + this->names.resize(_size1092); + uint32_t _i1096; + for (_i1096 = 0; _i1096 < _size1092; ++_i1096) { - xfer += iprot->readString(this->names[_i1076]); + xfer += iprot->readString(this->names[_i1096]); } xfer += iprot->readListEnd(); } @@ -15873,10 +16172,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 _iter1077; - for (_iter1077 = this->names.begin(); _iter1077 != this->names.end(); ++_iter1077) + std::vector ::const_iterator _iter1097; + for (_iter1097 = this->names.begin(); _iter1097 != this->names.end(); ++_iter1097) { - xfer += oprot->writeString((*_iter1077)); + xfer += oprot->writeString((*_iter1097)); } xfer += oprot->writeListEnd(); } @@ -15908,10 +16207,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 _iter1078; - for (_iter1078 = (*(this->names)).begin(); _iter1078 != (*(this->names)).end(); ++_iter1078) + std::vector ::const_iterator _iter1098; + for (_iter1098 = (*(this->names)).begin(); _iter1098 != (*(this->names)).end(); ++_iter1098) { - xfer += oprot->writeString((*_iter1078)); + xfer += oprot->writeString((*_iter1098)); } xfer += oprot->writeListEnd(); } @@ -15952,14 +16251,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_result::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1079; - ::apache::thrift::protocol::TType _etype1082; - xfer += iprot->readListBegin(_etype1082, _size1079); - this->success.resize(_size1079); - uint32_t _i1083; - for (_i1083 = 0; _i1083 < _size1079; ++_i1083) + uint32_t _size1099; + ::apache::thrift::protocol::TType _etype1102; + xfer += iprot->readListBegin(_etype1102, _size1099); + this->success.resize(_size1099); + uint32_t _i1103; + for (_i1103 = 0; _i1103 < _size1099; ++_i1103) { - xfer += this->success[_i1083].read(iprot); + xfer += this->success[_i1103].read(iprot); } xfer += iprot->readListEnd(); } @@ -16006,10 +16305,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 _iter1084; - for (_iter1084 = this->success.begin(); _iter1084 != this->success.end(); ++_iter1084) + std::vector ::const_iterator _iter1104; + for (_iter1104 = this->success.begin(); _iter1104 != this->success.end(); ++_iter1104) { - xfer += (*_iter1084).write(oprot); + xfer += (*_iter1104).write(oprot); } xfer += oprot->writeListEnd(); } @@ -16058,14 +16357,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_presult::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1085; - ::apache::thrift::protocol::TType _etype1088; - xfer += iprot->readListBegin(_etype1088, _size1085); - (*(this->success)).resize(_size1085); - uint32_t _i1089; - for (_i1089 = 0; _i1089 < _size1085; ++_i1089) + uint32_t _size1105; + ::apache::thrift::protocol::TType _etype1108; + xfer += iprot->readListBegin(_etype1108, _size1105); + (*(this->success)).resize(_size1105); + uint32_t _i1109; + for (_i1109 = 0; _i1109 < _size1105; ++_i1109) { - xfer += (*(this->success))[_i1089].read(iprot); + xfer += (*(this->success))[_i1109].read(iprot); } xfer += iprot->readListEnd(); } @@ -16387,14 +16686,14 @@ uint32_t ThriftHiveMetastore_alter_partitions_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size1090; - ::apache::thrift::protocol::TType _etype1093; - xfer += iprot->readListBegin(_etype1093, _size1090); - this->new_parts.resize(_size1090); - uint32_t _i1094; - for (_i1094 = 0; _i1094 < _size1090; ++_i1094) + uint32_t _size1110; + ::apache::thrift::protocol::TType _etype1113; + xfer += iprot->readListBegin(_etype1113, _size1110); + this->new_parts.resize(_size1110); + uint32_t _i1114; + for (_i1114 = 0; _i1114 < _size1110; ++_i1114) { - xfer += this->new_parts[_i1094].read(iprot); + xfer += this->new_parts[_i1114].read(iprot); } xfer += iprot->readListEnd(); } @@ -16431,10 +16730,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 _iter1095; - for (_iter1095 = this->new_parts.begin(); _iter1095 != this->new_parts.end(); ++_iter1095) + std::vector ::const_iterator _iter1115; + for (_iter1115 = this->new_parts.begin(); _iter1115 != this->new_parts.end(); ++_iter1115) { - xfer += (*_iter1095).write(oprot); + xfer += (*_iter1115).write(oprot); } xfer += oprot->writeListEnd(); } @@ -16466,10 +16765,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 _iter1096; - for (_iter1096 = (*(this->new_parts)).begin(); _iter1096 != (*(this->new_parts)).end(); ++_iter1096) + std::vector ::const_iterator _iter1116; + for (_iter1116 = (*(this->new_parts)).begin(); _iter1116 != (*(this->new_parts)).end(); ++_iter1116) { - xfer += (*_iter1096).write(oprot); + xfer += (*_iter1116).write(oprot); } xfer += oprot->writeListEnd(); } @@ -16909,14 +17208,14 @@ uint32_t ThriftHiveMetastore_rename_partition_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1097; - ::apache::thrift::protocol::TType _etype1100; - xfer += iprot->readListBegin(_etype1100, _size1097); - this->part_vals.resize(_size1097); - uint32_t _i1101; - for (_i1101 = 0; _i1101 < _size1097; ++_i1101) + uint32_t _size1117; + ::apache::thrift::protocol::TType _etype1120; + xfer += iprot->readListBegin(_etype1120, _size1117); + this->part_vals.resize(_size1117); + uint32_t _i1121; + for (_i1121 = 0; _i1121 < _size1117; ++_i1121) { - xfer += iprot->readString(this->part_vals[_i1101]); + xfer += iprot->readString(this->part_vals[_i1121]); } xfer += iprot->readListEnd(); } @@ -16961,10 +17260,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 _iter1102; - for (_iter1102 = this->part_vals.begin(); _iter1102 != this->part_vals.end(); ++_iter1102) + std::vector ::const_iterator _iter1122; + for (_iter1122 = this->part_vals.begin(); _iter1122 != this->part_vals.end(); ++_iter1122) { - xfer += oprot->writeString((*_iter1102)); + xfer += oprot->writeString((*_iter1122)); } xfer += oprot->writeListEnd(); } @@ -17000,10 +17299,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 _iter1103; - for (_iter1103 = (*(this->part_vals)).begin(); _iter1103 != (*(this->part_vals)).end(); ++_iter1103) + std::vector ::const_iterator _iter1123; + for (_iter1123 = (*(this->part_vals)).begin(); _iter1123 != (*(this->part_vals)).end(); ++_iter1123) { - xfer += oprot->writeString((*_iter1103)); + xfer += oprot->writeString((*_iter1123)); } xfer += oprot->writeListEnd(); } @@ -17176,14 +17475,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 _size1104; - ::apache::thrift::protocol::TType _etype1107; - xfer += iprot->readListBegin(_etype1107, _size1104); - this->part_vals.resize(_size1104); - uint32_t _i1108; - for (_i1108 = 0; _i1108 < _size1104; ++_i1108) + uint32_t _size1124; + ::apache::thrift::protocol::TType _etype1127; + xfer += iprot->readListBegin(_etype1127, _size1124); + this->part_vals.resize(_size1124); + uint32_t _i1128; + for (_i1128 = 0; _i1128 < _size1124; ++_i1128) { - xfer += iprot->readString(this->part_vals[_i1108]); + xfer += iprot->readString(this->part_vals[_i1128]); } xfer += iprot->readListEnd(); } @@ -17220,10 +17519,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 _iter1109; - for (_iter1109 = this->part_vals.begin(); _iter1109 != this->part_vals.end(); ++_iter1109) + std::vector ::const_iterator _iter1129; + for (_iter1129 = this->part_vals.begin(); _iter1129 != this->part_vals.end(); ++_iter1129) { - xfer += oprot->writeString((*_iter1109)); + xfer += oprot->writeString((*_iter1129)); } xfer += oprot->writeListEnd(); } @@ -17251,10 +17550,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 _iter1110; - for (_iter1110 = (*(this->part_vals)).begin(); _iter1110 != (*(this->part_vals)).end(); ++_iter1110) + std::vector ::const_iterator _iter1130; + for (_iter1130 = (*(this->part_vals)).begin(); _iter1130 != (*(this->part_vals)).end(); ++_iter1130) { - xfer += oprot->writeString((*_iter1110)); + xfer += oprot->writeString((*_iter1130)); } xfer += oprot->writeListEnd(); } @@ -17729,14 +18028,14 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1111; - ::apache::thrift::protocol::TType _etype1114; - xfer += iprot->readListBegin(_etype1114, _size1111); - this->success.resize(_size1111); - uint32_t _i1115; - for (_i1115 = 0; _i1115 < _size1111; ++_i1115) + uint32_t _size1131; + ::apache::thrift::protocol::TType _etype1134; + xfer += iprot->readListBegin(_etype1134, _size1131); + this->success.resize(_size1131); + uint32_t _i1135; + for (_i1135 = 0; _i1135 < _size1131; ++_i1135) { - xfer += iprot->readString(this->success[_i1115]); + xfer += iprot->readString(this->success[_i1135]); } xfer += iprot->readListEnd(); } @@ -17775,10 +18074,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 _iter1116; - for (_iter1116 = this->success.begin(); _iter1116 != this->success.end(); ++_iter1116) + std::vector ::const_iterator _iter1136; + for (_iter1136 = this->success.begin(); _iter1136 != this->success.end(); ++_iter1136) { - xfer += oprot->writeString((*_iter1116)); + xfer += oprot->writeString((*_iter1136)); } xfer += oprot->writeListEnd(); } @@ -17823,14 +18122,14 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1117; - ::apache::thrift::protocol::TType _etype1120; - xfer += iprot->readListBegin(_etype1120, _size1117); - (*(this->success)).resize(_size1117); - uint32_t _i1121; - for (_i1121 = 0; _i1121 < _size1117; ++_i1121) + uint32_t _size1137; + ::apache::thrift::protocol::TType _etype1140; + xfer += iprot->readListBegin(_etype1140, _size1137); + (*(this->success)).resize(_size1137); + uint32_t _i1141; + for (_i1141 = 0; _i1141 < _size1137; ++_i1141) { - xfer += iprot->readString((*(this->success))[_i1121]); + xfer += iprot->readString((*(this->success))[_i1141]); } xfer += iprot->readListEnd(); } @@ -17968,17 +18267,17 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_MAP) { { this->success.clear(); - uint32_t _size1122; - ::apache::thrift::protocol::TType _ktype1123; - ::apache::thrift::protocol::TType _vtype1124; - xfer += iprot->readMapBegin(_ktype1123, _vtype1124, _size1122); - uint32_t _i1126; - for (_i1126 = 0; _i1126 < _size1122; ++_i1126) + uint32_t _size1142; + ::apache::thrift::protocol::TType _ktype1143; + ::apache::thrift::protocol::TType _vtype1144; + xfer += iprot->readMapBegin(_ktype1143, _vtype1144, _size1142); + uint32_t _i1146; + for (_i1146 = 0; _i1146 < _size1142; ++_i1146) { - std::string _key1127; - xfer += iprot->readString(_key1127); - std::string& _val1128 = this->success[_key1127]; - xfer += iprot->readString(_val1128); + std::string _key1147; + xfer += iprot->readString(_key1147); + std::string& _val1148 = this->success[_key1147]; + xfer += iprot->readString(_val1148); } xfer += iprot->readMapEnd(); } @@ -18017,11 +18316,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 _iter1129; - for (_iter1129 = this->success.begin(); _iter1129 != this->success.end(); ++_iter1129) + std::map ::const_iterator _iter1149; + for (_iter1149 = this->success.begin(); _iter1149 != this->success.end(); ++_iter1149) { - xfer += oprot->writeString(_iter1129->first); - xfer += oprot->writeString(_iter1129->second); + xfer += oprot->writeString(_iter1149->first); + xfer += oprot->writeString(_iter1149->second); } xfer += oprot->writeMapEnd(); } @@ -18066,17 +18365,17 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_MAP) { { (*(this->success)).clear(); - uint32_t _size1130; - ::apache::thrift::protocol::TType _ktype1131; - ::apache::thrift::protocol::TType _vtype1132; - xfer += iprot->readMapBegin(_ktype1131, _vtype1132, _size1130); - uint32_t _i1134; - for (_i1134 = 0; _i1134 < _size1130; ++_i1134) + uint32_t _size1150; + ::apache::thrift::protocol::TType _ktype1151; + ::apache::thrift::protocol::TType _vtype1152; + xfer += iprot->readMapBegin(_ktype1151, _vtype1152, _size1150); + uint32_t _i1154; + for (_i1154 = 0; _i1154 < _size1150; ++_i1154) { - std::string _key1135; - xfer += iprot->readString(_key1135); - std::string& _val1136 = (*(this->success))[_key1135]; - xfer += iprot->readString(_val1136); + std::string _key1155; + xfer += iprot->readString(_key1155); + std::string& _val1156 = (*(this->success))[_key1155]; + xfer += iprot->readString(_val1156); } xfer += iprot->readMapEnd(); } @@ -18151,17 +18450,17 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_MAP) { { this->part_vals.clear(); - uint32_t _size1137; - ::apache::thrift::protocol::TType _ktype1138; - ::apache::thrift::protocol::TType _vtype1139; - xfer += iprot->readMapBegin(_ktype1138, _vtype1139, _size1137); - uint32_t _i1141; - for (_i1141 = 0; _i1141 < _size1137; ++_i1141) + uint32_t _size1157; + ::apache::thrift::protocol::TType _ktype1158; + ::apache::thrift::protocol::TType _vtype1159; + xfer += iprot->readMapBegin(_ktype1158, _vtype1159, _size1157); + uint32_t _i1161; + for (_i1161 = 0; _i1161 < _size1157; ++_i1161) { - std::string _key1142; - xfer += iprot->readString(_key1142); - std::string& _val1143 = this->part_vals[_key1142]; - xfer += iprot->readString(_val1143); + std::string _key1162; + xfer += iprot->readString(_key1162); + std::string& _val1163 = this->part_vals[_key1162]; + xfer += iprot->readString(_val1163); } xfer += iprot->readMapEnd(); } @@ -18172,9 +18471,9 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::read(::apache::thrift:: break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1144; - xfer += iprot->readI32(ecast1144); - this->eventType = (PartitionEventType::type)ecast1144; + int32_t ecast1164; + xfer += iprot->readI32(ecast1164); + this->eventType = (PartitionEventType::type)ecast1164; this->__isset.eventType = true; } else { xfer += iprot->skip(ftype); @@ -18208,11 +18507,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 _iter1145; - for (_iter1145 = this->part_vals.begin(); _iter1145 != this->part_vals.end(); ++_iter1145) + std::map ::const_iterator _iter1165; + for (_iter1165 = this->part_vals.begin(); _iter1165 != this->part_vals.end(); ++_iter1165) { - xfer += oprot->writeString(_iter1145->first); - xfer += oprot->writeString(_iter1145->second); + xfer += oprot->writeString(_iter1165->first); + xfer += oprot->writeString(_iter1165->second); } xfer += oprot->writeMapEnd(); } @@ -18248,11 +18547,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 _iter1146; - for (_iter1146 = (*(this->part_vals)).begin(); _iter1146 != (*(this->part_vals)).end(); ++_iter1146) + std::map ::const_iterator _iter1166; + for (_iter1166 = (*(this->part_vals)).begin(); _iter1166 != (*(this->part_vals)).end(); ++_iter1166) { - xfer += oprot->writeString(_iter1146->first); - xfer += oprot->writeString(_iter1146->second); + xfer += oprot->writeString(_iter1166->first); + xfer += oprot->writeString(_iter1166->second); } xfer += oprot->writeMapEnd(); } @@ -18521,17 +18820,17 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_MAP) { { this->part_vals.clear(); - uint32_t _size1147; - ::apache::thrift::protocol::TType _ktype1148; - ::apache::thrift::protocol::TType _vtype1149; - xfer += iprot->readMapBegin(_ktype1148, _vtype1149, _size1147); - uint32_t _i1151; - for (_i1151 = 0; _i1151 < _size1147; ++_i1151) + uint32_t _size1167; + ::apache::thrift::protocol::TType _ktype1168; + ::apache::thrift::protocol::TType _vtype1169; + xfer += iprot->readMapBegin(_ktype1168, _vtype1169, _size1167); + uint32_t _i1171; + for (_i1171 = 0; _i1171 < _size1167; ++_i1171) { - std::string _key1152; - xfer += iprot->readString(_key1152); - std::string& _val1153 = this->part_vals[_key1152]; - xfer += iprot->readString(_val1153); + std::string _key1172; + xfer += iprot->readString(_key1172); + std::string& _val1173 = this->part_vals[_key1172]; + xfer += iprot->readString(_val1173); } xfer += iprot->readMapEnd(); } @@ -18542,9 +18841,9 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::read(::apache::thri break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1154; - xfer += iprot->readI32(ecast1154); - this->eventType = (PartitionEventType::type)ecast1154; + int32_t ecast1174; + xfer += iprot->readI32(ecast1174); + this->eventType = (PartitionEventType::type)ecast1174; this->__isset.eventType = true; } else { xfer += iprot->skip(ftype); @@ -18578,11 +18877,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 _iter1155; - for (_iter1155 = this->part_vals.begin(); _iter1155 != this->part_vals.end(); ++_iter1155) + std::map ::const_iterator _iter1175; + for (_iter1175 = this->part_vals.begin(); _iter1175 != this->part_vals.end(); ++_iter1175) { - xfer += oprot->writeString(_iter1155->first); - xfer += oprot->writeString(_iter1155->second); + xfer += oprot->writeString(_iter1175->first); + xfer += oprot->writeString(_iter1175->second); } xfer += oprot->writeMapEnd(); } @@ -18618,11 +18917,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 _iter1156; - for (_iter1156 = (*(this->part_vals)).begin(); _iter1156 != (*(this->part_vals)).end(); ++_iter1156) + std::map ::const_iterator _iter1176; + for (_iter1176 = (*(this->part_vals)).begin(); _iter1176 != (*(this->part_vals)).end(); ++_iter1176) { - xfer += oprot->writeString(_iter1156->first); - xfer += oprot->writeString(_iter1156->second); + xfer += oprot->writeString(_iter1176->first); + xfer += oprot->writeString(_iter1176->second); } xfer += oprot->writeMapEnd(); } @@ -20058,14 +20357,14 @@ uint32_t ThriftHiveMetastore_get_indexes_result::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1157; - ::apache::thrift::protocol::TType _etype1160; - xfer += iprot->readListBegin(_etype1160, _size1157); - this->success.resize(_size1157); - uint32_t _i1161; - for (_i1161 = 0; _i1161 < _size1157; ++_i1161) + uint32_t _size1177; + ::apache::thrift::protocol::TType _etype1180; + xfer += iprot->readListBegin(_etype1180, _size1177); + this->success.resize(_size1177); + uint32_t _i1181; + for (_i1181 = 0; _i1181 < _size1177; ++_i1181) { - xfer += this->success[_i1161].read(iprot); + xfer += this->success[_i1181].read(iprot); } xfer += iprot->readListEnd(); } @@ -20112,10 +20411,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 _iter1162; - for (_iter1162 = this->success.begin(); _iter1162 != this->success.end(); ++_iter1162) + std::vector ::const_iterator _iter1182; + for (_iter1182 = this->success.begin(); _iter1182 != this->success.end(); ++_iter1182) { - xfer += (*_iter1162).write(oprot); + xfer += (*_iter1182).write(oprot); } xfer += oprot->writeListEnd(); } @@ -20164,14 +20463,14 @@ uint32_t ThriftHiveMetastore_get_indexes_presult::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1163; - ::apache::thrift::protocol::TType _etype1166; - xfer += iprot->readListBegin(_etype1166, _size1163); - (*(this->success)).resize(_size1163); - uint32_t _i1167; - for (_i1167 = 0; _i1167 < _size1163; ++_i1167) + uint32_t _size1183; + ::apache::thrift::protocol::TType _etype1186; + xfer += iprot->readListBegin(_etype1186, _size1183); + (*(this->success)).resize(_size1183); + uint32_t _i1187; + for (_i1187 = 0; _i1187 < _size1183; ++_i1187) { - xfer += (*(this->success))[_i1167].read(iprot); + xfer += (*(this->success))[_i1187].read(iprot); } xfer += iprot->readListEnd(); } @@ -20349,14 +20648,14 @@ uint32_t ThriftHiveMetastore_get_index_names_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1168; - ::apache::thrift::protocol::TType _etype1171; - xfer += iprot->readListBegin(_etype1171, _size1168); - this->success.resize(_size1168); - uint32_t _i1172; - for (_i1172 = 0; _i1172 < _size1168; ++_i1172) + uint32_t _size1188; + ::apache::thrift::protocol::TType _etype1191; + xfer += iprot->readListBegin(_etype1191, _size1188); + this->success.resize(_size1188); + uint32_t _i1192; + for (_i1192 = 0; _i1192 < _size1188; ++_i1192) { - xfer += iprot->readString(this->success[_i1172]); + xfer += iprot->readString(this->success[_i1192]); } xfer += iprot->readListEnd(); } @@ -20395,10 +20694,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 _iter1173; - for (_iter1173 = this->success.begin(); _iter1173 != this->success.end(); ++_iter1173) + std::vector ::const_iterator _iter1193; + for (_iter1193 = this->success.begin(); _iter1193 != this->success.end(); ++_iter1193) { - xfer += oprot->writeString((*_iter1173)); + xfer += oprot->writeString((*_iter1193)); } xfer += oprot->writeListEnd(); } @@ -20443,14 +20742,14 @@ uint32_t ThriftHiveMetastore_get_index_names_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1174; - ::apache::thrift::protocol::TType _etype1177; - xfer += iprot->readListBegin(_etype1177, _size1174); - (*(this->success)).resize(_size1174); - uint32_t _i1178; - for (_i1178 = 0; _i1178 < _size1174; ++_i1178) + uint32_t _size1194; + ::apache::thrift::protocol::TType _etype1197; + xfer += iprot->readListBegin(_etype1197, _size1194); + (*(this->success)).resize(_size1194); + uint32_t _i1198; + for (_i1198 = 0; _i1198 < _size1194; ++_i1198) { - xfer += iprot->readString((*(this->success))[_i1178]); + xfer += iprot->readString((*(this->success))[_i1198]); } xfer += iprot->readListEnd(); } @@ -24023,14 +24322,14 @@ uint32_t ThriftHiveMetastore_get_functions_result::read(::apache::thrift::protoc if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1179; - ::apache::thrift::protocol::TType _etype1182; - xfer += iprot->readListBegin(_etype1182, _size1179); - this->success.resize(_size1179); - uint32_t _i1183; - for (_i1183 = 0; _i1183 < _size1179; ++_i1183) + uint32_t _size1199; + ::apache::thrift::protocol::TType _etype1202; + xfer += iprot->readListBegin(_etype1202, _size1199); + this->success.resize(_size1199); + uint32_t _i1203; + for (_i1203 = 0; _i1203 < _size1199; ++_i1203) { - xfer += iprot->readString(this->success[_i1183]); + xfer += iprot->readString(this->success[_i1203]); } xfer += iprot->readListEnd(); } @@ -24069,10 +24368,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 _iter1184; - for (_iter1184 = this->success.begin(); _iter1184 != this->success.end(); ++_iter1184) + std::vector ::const_iterator _iter1204; + for (_iter1204 = this->success.begin(); _iter1204 != this->success.end(); ++_iter1204) { - xfer += oprot->writeString((*_iter1184)); + xfer += oprot->writeString((*_iter1204)); } xfer += oprot->writeListEnd(); } @@ -24117,14 +24416,14 @@ uint32_t ThriftHiveMetastore_get_functions_presult::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1185; - ::apache::thrift::protocol::TType _etype1188; - xfer += iprot->readListBegin(_etype1188, _size1185); - (*(this->success)).resize(_size1185); - uint32_t _i1189; - for (_i1189 = 0; _i1189 < _size1185; ++_i1189) + uint32_t _size1205; + ::apache::thrift::protocol::TType _etype1208; + xfer += iprot->readListBegin(_etype1208, _size1205); + (*(this->success)).resize(_size1205); + uint32_t _i1209; + for (_i1209 = 0; _i1209 < _size1205; ++_i1209) { - xfer += iprot->readString((*(this->success))[_i1189]); + xfer += iprot->readString((*(this->success))[_i1209]); } xfer += iprot->readListEnd(); } @@ -25084,14 +25383,14 @@ uint32_t ThriftHiveMetastore_get_role_names_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1190; - ::apache::thrift::protocol::TType _etype1193; - xfer += iprot->readListBegin(_etype1193, _size1190); - this->success.resize(_size1190); - uint32_t _i1194; - for (_i1194 = 0; _i1194 < _size1190; ++_i1194) + uint32_t _size1210; + ::apache::thrift::protocol::TType _etype1213; + xfer += iprot->readListBegin(_etype1213, _size1210); + this->success.resize(_size1210); + uint32_t _i1214; + for (_i1214 = 0; _i1214 < _size1210; ++_i1214) { - xfer += iprot->readString(this->success[_i1194]); + xfer += iprot->readString(this->success[_i1214]); } xfer += iprot->readListEnd(); } @@ -25130,10 +25429,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 _iter1195; - for (_iter1195 = this->success.begin(); _iter1195 != this->success.end(); ++_iter1195) + std::vector ::const_iterator _iter1215; + for (_iter1215 = this->success.begin(); _iter1215 != this->success.end(); ++_iter1215) { - xfer += oprot->writeString((*_iter1195)); + xfer += oprot->writeString((*_iter1215)); } xfer += oprot->writeListEnd(); } @@ -25178,14 +25477,14 @@ uint32_t ThriftHiveMetastore_get_role_names_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1196; - ::apache::thrift::protocol::TType _etype1199; - xfer += iprot->readListBegin(_etype1199, _size1196); - (*(this->success)).resize(_size1196); - uint32_t _i1200; - for (_i1200 = 0; _i1200 < _size1196; ++_i1200) + uint32_t _size1216; + ::apache::thrift::protocol::TType _etype1219; + xfer += iprot->readListBegin(_etype1219, _size1216); + (*(this->success)).resize(_size1216); + uint32_t _i1220; + for (_i1220 = 0; _i1220 < _size1216; ++_i1220) { - xfer += iprot->readString((*(this->success))[_i1200]); + xfer += iprot->readString((*(this->success))[_i1220]); } xfer += iprot->readListEnd(); } @@ -25258,9 +25557,9 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1201; - xfer += iprot->readI32(ecast1201); - this->principal_type = (PrincipalType::type)ecast1201; + int32_t ecast1221; + xfer += iprot->readI32(ecast1221); + this->principal_type = (PrincipalType::type)ecast1221; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -25276,9 +25575,9 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1202; - xfer += iprot->readI32(ecast1202); - this->grantorType = (PrincipalType::type)ecast1202; + int32_t ecast1222; + xfer += iprot->readI32(ecast1222); + this->grantorType = (PrincipalType::type)ecast1222; this->__isset.grantorType = true; } else { xfer += iprot->skip(ftype); @@ -25549,9 +25848,9 @@ uint32_t ThriftHiveMetastore_revoke_role_args::read(::apache::thrift::protocol:: break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1203; - xfer += iprot->readI32(ecast1203); - this->principal_type = (PrincipalType::type)ecast1203; + int32_t ecast1223; + xfer += iprot->readI32(ecast1223); + this->principal_type = (PrincipalType::type)ecast1223; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -25782,9 +26081,9 @@ uint32_t ThriftHiveMetastore_list_roles_args::read(::apache::thrift::protocol::T break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1204; - xfer += iprot->readI32(ecast1204); - this->principal_type = (PrincipalType::type)ecast1204; + int32_t ecast1224; + xfer += iprot->readI32(ecast1224); + this->principal_type = (PrincipalType::type)ecast1224; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -25873,14 +26172,14 @@ uint32_t ThriftHiveMetastore_list_roles_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1205; - ::apache::thrift::protocol::TType _etype1208; - xfer += iprot->readListBegin(_etype1208, _size1205); - this->success.resize(_size1205); - uint32_t _i1209; - for (_i1209 = 0; _i1209 < _size1205; ++_i1209) + uint32_t _size1225; + ::apache::thrift::protocol::TType _etype1228; + xfer += iprot->readListBegin(_etype1228, _size1225); + this->success.resize(_size1225); + uint32_t _i1229; + for (_i1229 = 0; _i1229 < _size1225; ++_i1229) { - xfer += this->success[_i1209].read(iprot); + xfer += this->success[_i1229].read(iprot); } xfer += iprot->readListEnd(); } @@ -25919,10 +26218,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 _iter1210; - for (_iter1210 = this->success.begin(); _iter1210 != this->success.end(); ++_iter1210) + std::vector ::const_iterator _iter1230; + for (_iter1230 = this->success.begin(); _iter1230 != this->success.end(); ++_iter1230) { - xfer += (*_iter1210).write(oprot); + xfer += (*_iter1230).write(oprot); } xfer += oprot->writeListEnd(); } @@ -25967,14 +26266,14 @@ uint32_t ThriftHiveMetastore_list_roles_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1211; - ::apache::thrift::protocol::TType _etype1214; - xfer += iprot->readListBegin(_etype1214, _size1211); - (*(this->success)).resize(_size1211); - uint32_t _i1215; - for (_i1215 = 0; _i1215 < _size1211; ++_i1215) + uint32_t _size1231; + ::apache::thrift::protocol::TType _etype1234; + xfer += iprot->readListBegin(_etype1234, _size1231); + (*(this->success)).resize(_size1231); + uint32_t _i1235; + for (_i1235 = 0; _i1235 < _size1231; ++_i1235) { - xfer += (*(this->success))[_i1215].read(iprot); + xfer += (*(this->success))[_i1235].read(iprot); } xfer += iprot->readListEnd(); } @@ -26670,14 +26969,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 _size1216; - ::apache::thrift::protocol::TType _etype1219; - xfer += iprot->readListBegin(_etype1219, _size1216); - this->group_names.resize(_size1216); - uint32_t _i1220; - for (_i1220 = 0; _i1220 < _size1216; ++_i1220) + uint32_t _size1236; + ::apache::thrift::protocol::TType _etype1239; + xfer += iprot->readListBegin(_etype1239, _size1236); + this->group_names.resize(_size1236); + uint32_t _i1240; + for (_i1240 = 0; _i1240 < _size1236; ++_i1240) { - xfer += iprot->readString(this->group_names[_i1220]); + xfer += iprot->readString(this->group_names[_i1240]); } xfer += iprot->readListEnd(); } @@ -26714,10 +27013,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 _iter1221; - for (_iter1221 = this->group_names.begin(); _iter1221 != this->group_names.end(); ++_iter1221) + std::vector ::const_iterator _iter1241; + for (_iter1241 = this->group_names.begin(); _iter1241 != this->group_names.end(); ++_iter1241) { - xfer += oprot->writeString((*_iter1221)); + xfer += oprot->writeString((*_iter1241)); } xfer += oprot->writeListEnd(); } @@ -26749,10 +27048,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 _iter1222; - for (_iter1222 = (*(this->group_names)).begin(); _iter1222 != (*(this->group_names)).end(); ++_iter1222) + std::vector ::const_iterator _iter1242; + for (_iter1242 = (*(this->group_names)).begin(); _iter1242 != (*(this->group_names)).end(); ++_iter1242) { - xfer += oprot->writeString((*_iter1222)); + xfer += oprot->writeString((*_iter1242)); } xfer += oprot->writeListEnd(); } @@ -26927,9 +27226,9 @@ uint32_t ThriftHiveMetastore_list_privileges_args::read(::apache::thrift::protoc break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1223; - xfer += iprot->readI32(ecast1223); - this->principal_type = (PrincipalType::type)ecast1223; + int32_t ecast1243; + xfer += iprot->readI32(ecast1243); + this->principal_type = (PrincipalType::type)ecast1243; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -27034,14 +27333,14 @@ uint32_t ThriftHiveMetastore_list_privileges_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1224; - ::apache::thrift::protocol::TType _etype1227; - xfer += iprot->readListBegin(_etype1227, _size1224); - this->success.resize(_size1224); - uint32_t _i1228; - for (_i1228 = 0; _i1228 < _size1224; ++_i1228) + uint32_t _size1244; + ::apache::thrift::protocol::TType _etype1247; + xfer += iprot->readListBegin(_etype1247, _size1244); + this->success.resize(_size1244); + uint32_t _i1248; + for (_i1248 = 0; _i1248 < _size1244; ++_i1248) { - xfer += this->success[_i1228].read(iprot); + xfer += this->success[_i1248].read(iprot); } xfer += iprot->readListEnd(); } @@ -27080,10 +27379,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 _iter1229; - for (_iter1229 = this->success.begin(); _iter1229 != this->success.end(); ++_iter1229) + std::vector ::const_iterator _iter1249; + for (_iter1249 = this->success.begin(); _iter1249 != this->success.end(); ++_iter1249) { - xfer += (*_iter1229).write(oprot); + xfer += (*_iter1249).write(oprot); } xfer += oprot->writeListEnd(); } @@ -27128,14 +27427,14 @@ uint32_t ThriftHiveMetastore_list_privileges_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1230; - ::apache::thrift::protocol::TType _etype1233; - xfer += iprot->readListBegin(_etype1233, _size1230); - (*(this->success)).resize(_size1230); - uint32_t _i1234; - for (_i1234 = 0; _i1234 < _size1230; ++_i1234) + uint32_t _size1250; + ::apache::thrift::protocol::TType _etype1253; + xfer += iprot->readListBegin(_etype1253, _size1250); + (*(this->success)).resize(_size1250); + uint32_t _i1254; + for (_i1254 = 0; _i1254 < _size1250; ++_i1254) { - xfer += (*(this->success))[_i1234].read(iprot); + xfer += (*(this->success))[_i1254].read(iprot); } xfer += iprot->readListEnd(); } @@ -27823,14 +28122,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 _size1235; - ::apache::thrift::protocol::TType _etype1238; - xfer += iprot->readListBegin(_etype1238, _size1235); - this->group_names.resize(_size1235); - uint32_t _i1239; - for (_i1239 = 0; _i1239 < _size1235; ++_i1239) + uint32_t _size1255; + ::apache::thrift::protocol::TType _etype1258; + xfer += iprot->readListBegin(_etype1258, _size1255); + this->group_names.resize(_size1255); + uint32_t _i1259; + for (_i1259 = 0; _i1259 < _size1255; ++_i1259) { - xfer += iprot->readString(this->group_names[_i1239]); + xfer += iprot->readString(this->group_names[_i1259]); } xfer += iprot->readListEnd(); } @@ -27863,10 +28162,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 _iter1240; - for (_iter1240 = this->group_names.begin(); _iter1240 != this->group_names.end(); ++_iter1240) + std::vector ::const_iterator _iter1260; + for (_iter1260 = this->group_names.begin(); _iter1260 != this->group_names.end(); ++_iter1260) { - xfer += oprot->writeString((*_iter1240)); + xfer += oprot->writeString((*_iter1260)); } xfer += oprot->writeListEnd(); } @@ -27894,10 +28193,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 _iter1241; - for (_iter1241 = (*(this->group_names)).begin(); _iter1241 != (*(this->group_names)).end(); ++_iter1241) + std::vector ::const_iterator _iter1261; + for (_iter1261 = (*(this->group_names)).begin(); _iter1261 != (*(this->group_names)).end(); ++_iter1261) { - xfer += oprot->writeString((*_iter1241)); + xfer += oprot->writeString((*_iter1261)); } xfer += oprot->writeListEnd(); } @@ -27938,14 +28237,14 @@ uint32_t ThriftHiveMetastore_set_ugi_result::read(::apache::thrift::protocol::TP if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1242; - ::apache::thrift::protocol::TType _etype1245; - xfer += iprot->readListBegin(_etype1245, _size1242); - this->success.resize(_size1242); - uint32_t _i1246; - for (_i1246 = 0; _i1246 < _size1242; ++_i1246) + uint32_t _size1262; + ::apache::thrift::protocol::TType _etype1265; + xfer += iprot->readListBegin(_etype1265, _size1262); + this->success.resize(_size1262); + uint32_t _i1266; + for (_i1266 = 0; _i1266 < _size1262; ++_i1266) { - xfer += iprot->readString(this->success[_i1246]); + xfer += iprot->readString(this->success[_i1266]); } xfer += iprot->readListEnd(); } @@ -27984,10 +28283,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 _iter1247; - for (_iter1247 = this->success.begin(); _iter1247 != this->success.end(); ++_iter1247) + std::vector ::const_iterator _iter1267; + for (_iter1267 = this->success.begin(); _iter1267 != this->success.end(); ++_iter1267) { - xfer += oprot->writeString((*_iter1247)); + xfer += oprot->writeString((*_iter1267)); } xfer += oprot->writeListEnd(); } @@ -28032,14 +28331,14 @@ uint32_t ThriftHiveMetastore_set_ugi_presult::read(::apache::thrift::protocol::T if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1248; - ::apache::thrift::protocol::TType _etype1251; - xfer += iprot->readListBegin(_etype1251, _size1248); - (*(this->success)).resize(_size1248); - uint32_t _i1252; - for (_i1252 = 0; _i1252 < _size1248; ++_i1252) + uint32_t _size1268; + ::apache::thrift::protocol::TType _etype1271; + xfer += iprot->readListBegin(_etype1271, _size1268); + (*(this->success)).resize(_size1268); + uint32_t _i1272; + for (_i1272 = 0; _i1272 < _size1268; ++_i1272) { - xfer += iprot->readString((*(this->success))[_i1252]); + xfer += iprot->readString((*(this->success))[_i1272]); } xfer += iprot->readListEnd(); } @@ -34188,6 +34487,69 @@ void ThriftHiveMetastoreClient::recv_get_tables(std::vector & _retu throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_tables failed: unknown result"); } +void ThriftHiveMetastoreClient::get_table_meta(std::vector & _return, const std::string& db_patterns, const std::string& tbl_patterns, const std::vector & tbl_types) +{ + send_get_table_meta(db_patterns, tbl_patterns, tbl_types); + recv_get_table_meta(_return); +} + +void ThriftHiveMetastoreClient::send_get_table_meta(const std::string& db_patterns, const std::string& tbl_patterns, const std::vector & tbl_types) +{ + int32_t cseqid = 0; + oprot_->writeMessageBegin("get_table_meta", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_get_table_meta_pargs args; + args.db_patterns = &db_patterns; + args.tbl_patterns = &tbl_patterns; + args.tbl_types = &tbl_types; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); +} + +void ThriftHiveMetastoreClient::recv_get_table_meta(std::vector & _return) +{ + + int32_t rseqid = 0; + std::string fname; + ::apache::thrift::protocol::TMessageType mtype; + + iprot_->readMessageBegin(fname, mtype, rseqid); + if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { + ::apache::thrift::TApplicationException x; + x.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + throw x; + } + if (mtype != ::apache::thrift::protocol::T_REPLY) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + if (fname.compare("get_table_meta") != 0) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + ThriftHiveMetastore_get_table_meta_presult result; + result.success = &_return; + result.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + if (result.__isset.success) { + // _return pointer has now been filled + return; + } + if (result.__isset.o1) { + throw result.o1; + } + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_table_meta failed: unknown result"); +} + void ThriftHiveMetastoreClient::get_all_tables(std::vector & _return, const std::string& db_name) { send_get_all_tables(db_name); @@ -42429,6 +42791,63 @@ void ThriftHiveMetastoreProcessor::process_get_tables(int32_t seqid, ::apache::t } } +void ThriftHiveMetastoreProcessor::process_get_table_meta(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) +{ + void* ctx = NULL; + if (this->eventHandler_.get() != NULL) { + ctx = this->eventHandler_->getContext("ThriftHiveMetastore.get_table_meta", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "ThriftHiveMetastore.get_table_meta"); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_table_meta"); + } + + ThriftHiveMetastore_get_table_meta_args args; + args.read(iprot); + iprot->readMessageEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_table_meta", bytes); + } + + ThriftHiveMetastore_get_table_meta_result result; + try { + iface_->get_table_meta(result.success, args.db_patterns, args.tbl_patterns, args.tbl_types); + result.__isset.success = true; + } catch (MetaException &o1) { + result.o1 = o1; + result.__isset.o1 = true; + } catch (const std::exception& e) { + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->handlerError(ctx, "ThriftHiveMetastore.get_table_meta"); + } + + ::apache::thrift::TApplicationException x(e.what()); + oprot->writeMessageBegin("get_table_meta", ::apache::thrift::protocol::T_EXCEPTION, seqid); + x.write(oprot); + oprot->writeMessageEnd(); + oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); + return; + } + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preWrite(ctx, "ThriftHiveMetastore.get_table_meta"); + } + + oprot->writeMessageBegin("get_table_meta", ::apache::thrift::protocol::T_REPLY, seqid); + result.write(oprot); + oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->postWrite(ctx, "ThriftHiveMetastore.get_table_meta", bytes); + } +} + void ThriftHiveMetastoreProcessor::process_get_all_tables(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { void* ctx = NULL; @@ -50828,6 +51247,96 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_tables(std::vector & _return, const std::string& db_patterns, const std::string& tbl_patterns, const std::vector & tbl_types) +{ + int32_t seqid = send_get_table_meta(db_patterns, tbl_patterns, tbl_types); + recv_get_table_meta(_return, seqid); +} + +int32_t ThriftHiveMetastoreConcurrentClient::send_get_table_meta(const std::string& db_patterns, const std::string& tbl_patterns, const std::vector & tbl_types) +{ + int32_t cseqid = this->sync_.generateSeqId(); + ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); + oprot_->writeMessageBegin("get_table_meta", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_get_table_meta_pargs args; + args.db_patterns = &db_patterns; + args.tbl_patterns = &tbl_patterns; + args.tbl_types = &tbl_types; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); + + sentry.commit(); + return cseqid; +} + +void ThriftHiveMetastoreConcurrentClient::recv_get_table_meta(std::vector & _return, const int32_t seqid) +{ + + int32_t rseqid = 0; + std::string fname; + ::apache::thrift::protocol::TMessageType mtype; + + // the read mutex gets dropped and reacquired as part of waitForWork() + // The destructor of this sentry wakes up other clients + ::apache::thrift::async::TConcurrentRecvSentry sentry(&this->sync_, seqid); + + while(true) { + if(!this->sync_.getPending(fname, mtype, rseqid)) { + iprot_->readMessageBegin(fname, mtype, rseqid); + } + if(seqid == rseqid) { + if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { + ::apache::thrift::TApplicationException x; + x.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + sentry.commit(); + throw x; + } + if (mtype != ::apache::thrift::protocol::T_REPLY) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + if (fname.compare("get_table_meta") != 0) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + // in a bad state, don't commit + using ::apache::thrift::protocol::TProtocolException; + throw TProtocolException(TProtocolException::INVALID_DATA); + } + ThriftHiveMetastore_get_table_meta_presult result; + result.success = &_return; + result.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + if (result.__isset.success) { + // _return pointer has now been filled + sentry.commit(); + return; + } + if (result.__isset.o1) { + sentry.commit(); + throw result.o1; + } + // in a bad state, don't commit + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_table_meta failed: unknown result"); + } + // seqid != rseqid + this->sync_.updatePending(fname, mtype, rseqid); + + // this will temporarily unlock the readMutex, and let other clients get work done + this->sync_.waitForWork(seqid); + } // end while(true) +} + void ThriftHiveMetastoreConcurrentClient::get_all_tables(std::vector & _return, const std::string& db_name) { int32_t seqid = send_get_all_tables(db_name); diff --git a/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h b/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h index 3d7cb18..cea9000 100644 --- a/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h +++ b/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h @@ -43,6 +43,7 @@ class ThriftHiveMetastoreIf : virtual public ::facebook::fb303::FacebookService virtual void drop_table(const std::string& dbname, const std::string& name, const bool deleteData) = 0; virtual void drop_table_with_environment_context(const std::string& dbname, const std::string& name, const bool deleteData, const EnvironmentContext& environment_context) = 0; virtual void get_tables(std::vector & _return, const std::string& db_name, const std::string& pattern) = 0; + virtual void get_table_meta(std::vector & _return, const std::string& db_patterns, const std::string& tbl_patterns, const std::vector & tbl_types) = 0; virtual void get_all_tables(std::vector & _return, const std::string& db_name) = 0; virtual void get_table(Table& _return, const std::string& dbname, const std::string& tbl_name) = 0; virtual void get_table_objects_by_name(std::vector
& _return, const std::string& dbname, const std::vector & tbl_names) = 0; @@ -246,6 +247,9 @@ class ThriftHiveMetastoreNull : virtual public ThriftHiveMetastoreIf , virtual p void get_tables(std::vector & /* _return */, const std::string& /* db_name */, const std::string& /* pattern */) { return; } + void get_table_meta(std::vector & /* _return */, const std::string& /* db_patterns */, const std::string& /* tbl_patterns */, const std::vector & /* tbl_types */) { + return; + } void get_all_tables(std::vector & /* _return */, const std::string& /* db_name */) { return; } @@ -3199,6 +3203,132 @@ class ThriftHiveMetastore_get_tables_presult { }; +typedef struct _ThriftHiveMetastore_get_table_meta_args__isset { + _ThriftHiveMetastore_get_table_meta_args__isset() : db_patterns(false), tbl_patterns(false), tbl_types(false) {} + bool db_patterns :1; + bool tbl_patterns :1; + bool tbl_types :1; +} _ThriftHiveMetastore_get_table_meta_args__isset; + +class ThriftHiveMetastore_get_table_meta_args { + public: + + ThriftHiveMetastore_get_table_meta_args(const ThriftHiveMetastore_get_table_meta_args&); + ThriftHiveMetastore_get_table_meta_args& operator=(const ThriftHiveMetastore_get_table_meta_args&); + ThriftHiveMetastore_get_table_meta_args() : db_patterns(), tbl_patterns() { + } + + virtual ~ThriftHiveMetastore_get_table_meta_args() throw(); + std::string db_patterns; + std::string tbl_patterns; + std::vector tbl_types; + + _ThriftHiveMetastore_get_table_meta_args__isset __isset; + + void __set_db_patterns(const std::string& val); + + void __set_tbl_patterns(const std::string& val); + + void __set_tbl_types(const std::vector & val); + + bool operator == (const ThriftHiveMetastore_get_table_meta_args & rhs) const + { + if (!(db_patterns == rhs.db_patterns)) + return false; + if (!(tbl_patterns == rhs.tbl_patterns)) + return false; + if (!(tbl_types == rhs.tbl_types)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_get_table_meta_args &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_get_table_meta_args & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + + +class ThriftHiveMetastore_get_table_meta_pargs { + public: + + + virtual ~ThriftHiveMetastore_get_table_meta_pargs() throw(); + const std::string* db_patterns; + const std::string* tbl_patterns; + const std::vector * tbl_types; + + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_get_table_meta_result__isset { + _ThriftHiveMetastore_get_table_meta_result__isset() : success(false), o1(false) {} + bool success :1; + bool o1 :1; +} _ThriftHiveMetastore_get_table_meta_result__isset; + +class ThriftHiveMetastore_get_table_meta_result { + public: + + ThriftHiveMetastore_get_table_meta_result(const ThriftHiveMetastore_get_table_meta_result&); + ThriftHiveMetastore_get_table_meta_result& operator=(const ThriftHiveMetastore_get_table_meta_result&); + ThriftHiveMetastore_get_table_meta_result() { + } + + virtual ~ThriftHiveMetastore_get_table_meta_result() throw(); + std::vector success; + MetaException o1; + + _ThriftHiveMetastore_get_table_meta_result__isset __isset; + + void __set_success(const std::vector & val); + + void __set_o1(const MetaException& val); + + bool operator == (const ThriftHiveMetastore_get_table_meta_result & rhs) const + { + if (!(success == rhs.success)) + return false; + if (!(o1 == rhs.o1)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_get_table_meta_result &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_get_table_meta_result & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_get_table_meta_presult__isset { + _ThriftHiveMetastore_get_table_meta_presult__isset() : success(false), o1(false) {} + bool success :1; + bool o1 :1; +} _ThriftHiveMetastore_get_table_meta_presult__isset; + +class ThriftHiveMetastore_get_table_meta_presult { + public: + + + virtual ~ThriftHiveMetastore_get_table_meta_presult() throw(); + std::vector * success; + MetaException o1; + + _ThriftHiveMetastore_get_table_meta_presult__isset __isset; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + +}; + typedef struct _ThriftHiveMetastore_get_all_tables_args__isset { _ThriftHiveMetastore_get_all_tables_args__isset() : db_name(false) {} bool db_name :1; @@ -16967,6 +17097,9 @@ class ThriftHiveMetastoreClient : virtual public ThriftHiveMetastoreIf, public void get_tables(std::vector & _return, const std::string& db_name, const std::string& pattern); void send_get_tables(const std::string& db_name, const std::string& pattern); void recv_get_tables(std::vector & _return); + void get_table_meta(std::vector & _return, const std::string& db_patterns, const std::string& tbl_patterns, const std::vector & tbl_types); + void send_get_table_meta(const std::string& db_patterns, const std::string& tbl_patterns, const std::vector & tbl_types); + void recv_get_table_meta(std::vector & _return); void get_all_tables(std::vector & _return, const std::string& db_name); void send_get_all_tables(const std::string& db_name); void recv_get_all_tables(std::vector & _return); @@ -17325,6 +17458,7 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP void process_drop_table(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_drop_table_with_environment_context(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_tables(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_get_table_meta(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_all_tables(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_table(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_table_objects_by_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); @@ -17459,6 +17593,7 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP processMap_["drop_table"] = &ThriftHiveMetastoreProcessor::process_drop_table; processMap_["drop_table_with_environment_context"] = &ThriftHiveMetastoreProcessor::process_drop_table_with_environment_context; processMap_["get_tables"] = &ThriftHiveMetastoreProcessor::process_get_tables; + processMap_["get_table_meta"] = &ThriftHiveMetastoreProcessor::process_get_table_meta; processMap_["get_all_tables"] = &ThriftHiveMetastoreProcessor::process_get_all_tables; processMap_["get_table"] = &ThriftHiveMetastoreProcessor::process_get_table; processMap_["get_table_objects_by_name"] = &ThriftHiveMetastoreProcessor::process_get_table_objects_by_name; @@ -17801,6 +17936,16 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi return; } + void get_table_meta(std::vector & _return, const std::string& db_patterns, const std::string& tbl_patterns, const std::vector & tbl_types) { + size_t sz = ifaces_.size(); + size_t i = 0; + for (; i < (sz - 1); ++i) { + ifaces_[i]->get_table_meta(_return, db_patterns, tbl_patterns, tbl_types); + } + ifaces_[i]->get_table_meta(_return, db_patterns, tbl_patterns, tbl_types); + return; + } + void get_all_tables(std::vector & _return, const std::string& db_name) { size_t sz = ifaces_.size(); size_t i = 0; @@ -18929,6 +19074,9 @@ class ThriftHiveMetastoreConcurrentClient : virtual public ThriftHiveMetastoreIf void get_tables(std::vector & _return, const std::string& db_name, const std::string& pattern); int32_t send_get_tables(const std::string& db_name, const std::string& pattern); void recv_get_tables(std::vector & _return, const int32_t seqid); + void get_table_meta(std::vector & _return, const std::string& db_patterns, const std::string& tbl_patterns, const std::vector & tbl_types); + int32_t send_get_table_meta(const std::string& db_patterns, const std::string& tbl_patterns, const std::vector & tbl_types); + void recv_get_table_meta(std::vector & _return, const int32_t seqid); void get_all_tables(std::vector & _return, const std::string& db_name); int32_t send_get_all_tables(const std::string& db_name); void recv_get_all_tables(std::vector & _return, const int32_t seqid); diff --git a/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp b/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp index a395729..c0d9401 100644 --- a/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp +++ b/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp @@ -127,6 +127,11 @@ class ThriftHiveMetastoreHandler : virtual public ThriftHiveMetastoreIf { printf("get_tables\n"); } + void get_table_meta(std::vector & _return, const std::string& db_patterns, const std::string& tbl_patterns, const std::vector & tbl_types) { + // Your implementation goes here + printf("get_table_meta\n"); + } + void get_all_tables(std::vector & _return, const std::string& db_name) { // Your implementation goes here printf("get_all_tables\n"); diff --git a/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp b/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp index 5fd4a90..ee28d0d 100644 --- a/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp +++ b/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp @@ -15157,6 +15157,163 @@ void GetAllFunctionsResponse::printTo(std::ostream& out) const { } +TableMeta::~TableMeta() throw() { +} + + +void TableMeta::__set_dbName(const std::string& val) { + this->dbName = val; +} + +void TableMeta::__set_tableName(const std::string& val) { + this->tableName = val; +} + +void TableMeta::__set_tableType(const std::string& val) { + this->tableType = val; +} + +void TableMeta::__set_comments(const std::string& val) { + this->comments = val; +__isset.comments = true; +} + +uint32_t TableMeta::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*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; + + bool isset_dbName = false; + bool isset_tableName = false; + bool isset_tableType = false; + + 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_STRING) { + xfer += iprot->readString(this->dbName); + isset_dbName = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->tableName); + isset_tableName = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->tableType); + isset_tableType = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->comments); + this->__isset.comments = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_dbName) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_tableName) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_tableType) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t TableMeta::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("TableMeta"); + + xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->dbName); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("tableName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->tableName); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("tableType", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->tableType); + xfer += oprot->writeFieldEnd(); + + if (this->__isset.comments) { + xfer += oprot->writeFieldBegin("comments", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->comments); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(TableMeta &a, TableMeta &b) { + using ::std::swap; + swap(a.dbName, b.dbName); + swap(a.tableName, b.tableName); + swap(a.tableType, b.tableType); + swap(a.comments, b.comments); + swap(a.__isset, b.__isset); +} + +TableMeta::TableMeta(const TableMeta& other682) { + dbName = other682.dbName; + tableName = other682.tableName; + tableType = other682.tableType; + comments = other682.comments; + __isset = other682.__isset; +} +TableMeta& TableMeta::operator=(const TableMeta& other683) { + dbName = other683.dbName; + tableName = other683.tableName; + tableType = other683.tableType; + comments = other683.comments; + __isset = other683.__isset; + return *this; +} +void TableMeta::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "TableMeta("; + out << "dbName=" << to_string(dbName); + out << ", " << "tableName=" << to_string(tableName); + out << ", " << "tableType=" << to_string(tableType); + out << ", " << "comments="; (__isset.comments ? (out << to_string(comments)) : (out << "")); + out << ")"; +} + + MetaException::~MetaException() throw() { } @@ -15226,13 +15383,13 @@ void swap(MetaException &a, MetaException &b) { swap(a.__isset, b.__isset); } -MetaException::MetaException(const MetaException& other682) : TException() { - message = other682.message; - __isset = other682.__isset; +MetaException::MetaException(const MetaException& other684) : TException() { + message = other684.message; + __isset = other684.__isset; } -MetaException& MetaException::operator=(const MetaException& other683) { - message = other683.message; - __isset = other683.__isset; +MetaException& MetaException::operator=(const MetaException& other685) { + message = other685.message; + __isset = other685.__isset; return *this; } void MetaException::printTo(std::ostream& out) const { @@ -15323,13 +15480,13 @@ void swap(UnknownTableException &a, UnknownTableException &b) { swap(a.__isset, b.__isset); } -UnknownTableException::UnknownTableException(const UnknownTableException& other684) : TException() { - message = other684.message; - __isset = other684.__isset; +UnknownTableException::UnknownTableException(const UnknownTableException& other686) : TException() { + message = other686.message; + __isset = other686.__isset; } -UnknownTableException& UnknownTableException::operator=(const UnknownTableException& other685) { - message = other685.message; - __isset = other685.__isset; +UnknownTableException& UnknownTableException::operator=(const UnknownTableException& other687) { + message = other687.message; + __isset = other687.__isset; return *this; } void UnknownTableException::printTo(std::ostream& out) const { @@ -15420,13 +15577,13 @@ void swap(UnknownDBException &a, UnknownDBException &b) { swap(a.__isset, b.__isset); } -UnknownDBException::UnknownDBException(const UnknownDBException& other686) : TException() { - message = other686.message; - __isset = other686.__isset; +UnknownDBException::UnknownDBException(const UnknownDBException& other688) : TException() { + message = other688.message; + __isset = other688.__isset; } -UnknownDBException& UnknownDBException::operator=(const UnknownDBException& other687) { - message = other687.message; - __isset = other687.__isset; +UnknownDBException& UnknownDBException::operator=(const UnknownDBException& other689) { + message = other689.message; + __isset = other689.__isset; return *this; } void UnknownDBException::printTo(std::ostream& out) const { @@ -15517,13 +15674,13 @@ void swap(AlreadyExistsException &a, AlreadyExistsException &b) { swap(a.__isset, b.__isset); } -AlreadyExistsException::AlreadyExistsException(const AlreadyExistsException& other688) : TException() { - message = other688.message; - __isset = other688.__isset; +AlreadyExistsException::AlreadyExistsException(const AlreadyExistsException& other690) : TException() { + message = other690.message; + __isset = other690.__isset; } -AlreadyExistsException& AlreadyExistsException::operator=(const AlreadyExistsException& other689) { - message = other689.message; - __isset = other689.__isset; +AlreadyExistsException& AlreadyExistsException::operator=(const AlreadyExistsException& other691) { + message = other691.message; + __isset = other691.__isset; return *this; } void AlreadyExistsException::printTo(std::ostream& out) const { @@ -15614,13 +15771,13 @@ void swap(InvalidPartitionException &a, InvalidPartitionException &b) { swap(a.__isset, b.__isset); } -InvalidPartitionException::InvalidPartitionException(const InvalidPartitionException& other690) : TException() { - message = other690.message; - __isset = other690.__isset; +InvalidPartitionException::InvalidPartitionException(const InvalidPartitionException& other692) : TException() { + message = other692.message; + __isset = other692.__isset; } -InvalidPartitionException& InvalidPartitionException::operator=(const InvalidPartitionException& other691) { - message = other691.message; - __isset = other691.__isset; +InvalidPartitionException& InvalidPartitionException::operator=(const InvalidPartitionException& other693) { + message = other693.message; + __isset = other693.__isset; return *this; } void InvalidPartitionException::printTo(std::ostream& out) const { @@ -15711,13 +15868,13 @@ void swap(UnknownPartitionException &a, UnknownPartitionException &b) { swap(a.__isset, b.__isset); } -UnknownPartitionException::UnknownPartitionException(const UnknownPartitionException& other692) : TException() { - message = other692.message; - __isset = other692.__isset; +UnknownPartitionException::UnknownPartitionException(const UnknownPartitionException& other694) : TException() { + message = other694.message; + __isset = other694.__isset; } -UnknownPartitionException& UnknownPartitionException::operator=(const UnknownPartitionException& other693) { - message = other693.message; - __isset = other693.__isset; +UnknownPartitionException& UnknownPartitionException::operator=(const UnknownPartitionException& other695) { + message = other695.message; + __isset = other695.__isset; return *this; } void UnknownPartitionException::printTo(std::ostream& out) const { @@ -15808,13 +15965,13 @@ void swap(InvalidObjectException &a, InvalidObjectException &b) { swap(a.__isset, b.__isset); } -InvalidObjectException::InvalidObjectException(const InvalidObjectException& other694) : TException() { - message = other694.message; - __isset = other694.__isset; +InvalidObjectException::InvalidObjectException(const InvalidObjectException& other696) : TException() { + message = other696.message; + __isset = other696.__isset; } -InvalidObjectException& InvalidObjectException::operator=(const InvalidObjectException& other695) { - message = other695.message; - __isset = other695.__isset; +InvalidObjectException& InvalidObjectException::operator=(const InvalidObjectException& other697) { + message = other697.message; + __isset = other697.__isset; return *this; } void InvalidObjectException::printTo(std::ostream& out) const { @@ -15905,13 +16062,13 @@ void swap(NoSuchObjectException &a, NoSuchObjectException &b) { swap(a.__isset, b.__isset); } -NoSuchObjectException::NoSuchObjectException(const NoSuchObjectException& other696) : TException() { - message = other696.message; - __isset = other696.__isset; +NoSuchObjectException::NoSuchObjectException(const NoSuchObjectException& other698) : TException() { + message = other698.message; + __isset = other698.__isset; } -NoSuchObjectException& NoSuchObjectException::operator=(const NoSuchObjectException& other697) { - message = other697.message; - __isset = other697.__isset; +NoSuchObjectException& NoSuchObjectException::operator=(const NoSuchObjectException& other699) { + message = other699.message; + __isset = other699.__isset; return *this; } void NoSuchObjectException::printTo(std::ostream& out) const { @@ -16002,13 +16159,13 @@ void swap(IndexAlreadyExistsException &a, IndexAlreadyExistsException &b) { swap(a.__isset, b.__isset); } -IndexAlreadyExistsException::IndexAlreadyExistsException(const IndexAlreadyExistsException& other698) : TException() { - message = other698.message; - __isset = other698.__isset; +IndexAlreadyExistsException::IndexAlreadyExistsException(const IndexAlreadyExistsException& other700) : TException() { + message = other700.message; + __isset = other700.__isset; } -IndexAlreadyExistsException& IndexAlreadyExistsException::operator=(const IndexAlreadyExistsException& other699) { - message = other699.message; - __isset = other699.__isset; +IndexAlreadyExistsException& IndexAlreadyExistsException::operator=(const IndexAlreadyExistsException& other701) { + message = other701.message; + __isset = other701.__isset; return *this; } void IndexAlreadyExistsException::printTo(std::ostream& out) const { @@ -16099,13 +16256,13 @@ void swap(InvalidOperationException &a, InvalidOperationException &b) { swap(a.__isset, b.__isset); } -InvalidOperationException::InvalidOperationException(const InvalidOperationException& other700) : TException() { - message = other700.message; - __isset = other700.__isset; +InvalidOperationException::InvalidOperationException(const InvalidOperationException& other702) : TException() { + message = other702.message; + __isset = other702.__isset; } -InvalidOperationException& InvalidOperationException::operator=(const InvalidOperationException& other701) { - message = other701.message; - __isset = other701.__isset; +InvalidOperationException& InvalidOperationException::operator=(const InvalidOperationException& other703) { + message = other703.message; + __isset = other703.__isset; return *this; } void InvalidOperationException::printTo(std::ostream& out) const { @@ -16196,13 +16353,13 @@ void swap(ConfigValSecurityException &a, ConfigValSecurityException &b) { swap(a.__isset, b.__isset); } -ConfigValSecurityException::ConfigValSecurityException(const ConfigValSecurityException& other702) : TException() { - message = other702.message; - __isset = other702.__isset; +ConfigValSecurityException::ConfigValSecurityException(const ConfigValSecurityException& other704) : TException() { + message = other704.message; + __isset = other704.__isset; } -ConfigValSecurityException& ConfigValSecurityException::operator=(const ConfigValSecurityException& other703) { - message = other703.message; - __isset = other703.__isset; +ConfigValSecurityException& ConfigValSecurityException::operator=(const ConfigValSecurityException& other705) { + message = other705.message; + __isset = other705.__isset; return *this; } void ConfigValSecurityException::printTo(std::ostream& out) const { @@ -16293,13 +16450,13 @@ void swap(InvalidInputException &a, InvalidInputException &b) { swap(a.__isset, b.__isset); } -InvalidInputException::InvalidInputException(const InvalidInputException& other704) : TException() { - message = other704.message; - __isset = other704.__isset; +InvalidInputException::InvalidInputException(const InvalidInputException& other706) : TException() { + message = other706.message; + __isset = other706.__isset; } -InvalidInputException& InvalidInputException::operator=(const InvalidInputException& other705) { - message = other705.message; - __isset = other705.__isset; +InvalidInputException& InvalidInputException::operator=(const InvalidInputException& other707) { + message = other707.message; + __isset = other707.__isset; return *this; } void InvalidInputException::printTo(std::ostream& out) const { @@ -16390,13 +16547,13 @@ void swap(NoSuchTxnException &a, NoSuchTxnException &b) { swap(a.__isset, b.__isset); } -NoSuchTxnException::NoSuchTxnException(const NoSuchTxnException& other706) : TException() { - message = other706.message; - __isset = other706.__isset; +NoSuchTxnException::NoSuchTxnException(const NoSuchTxnException& other708) : TException() { + message = other708.message; + __isset = other708.__isset; } -NoSuchTxnException& NoSuchTxnException::operator=(const NoSuchTxnException& other707) { - message = other707.message; - __isset = other707.__isset; +NoSuchTxnException& NoSuchTxnException::operator=(const NoSuchTxnException& other709) { + message = other709.message; + __isset = other709.__isset; return *this; } void NoSuchTxnException::printTo(std::ostream& out) const { @@ -16487,13 +16644,13 @@ void swap(TxnAbortedException &a, TxnAbortedException &b) { swap(a.__isset, b.__isset); } -TxnAbortedException::TxnAbortedException(const TxnAbortedException& other708) : TException() { - message = other708.message; - __isset = other708.__isset; +TxnAbortedException::TxnAbortedException(const TxnAbortedException& other710) : TException() { + message = other710.message; + __isset = other710.__isset; } -TxnAbortedException& TxnAbortedException::operator=(const TxnAbortedException& other709) { - message = other709.message; - __isset = other709.__isset; +TxnAbortedException& TxnAbortedException::operator=(const TxnAbortedException& other711) { + message = other711.message; + __isset = other711.__isset; return *this; } void TxnAbortedException::printTo(std::ostream& out) const { @@ -16584,13 +16741,13 @@ void swap(TxnOpenException &a, TxnOpenException &b) { swap(a.__isset, b.__isset); } -TxnOpenException::TxnOpenException(const TxnOpenException& other710) : TException() { - message = other710.message; - __isset = other710.__isset; +TxnOpenException::TxnOpenException(const TxnOpenException& other712) : TException() { + message = other712.message; + __isset = other712.__isset; } -TxnOpenException& TxnOpenException::operator=(const TxnOpenException& other711) { - message = other711.message; - __isset = other711.__isset; +TxnOpenException& TxnOpenException::operator=(const TxnOpenException& other713) { + message = other713.message; + __isset = other713.__isset; return *this; } void TxnOpenException::printTo(std::ostream& out) const { @@ -16681,13 +16838,13 @@ void swap(NoSuchLockException &a, NoSuchLockException &b) { swap(a.__isset, b.__isset); } -NoSuchLockException::NoSuchLockException(const NoSuchLockException& other712) : TException() { - message = other712.message; - __isset = other712.__isset; +NoSuchLockException::NoSuchLockException(const NoSuchLockException& other714) : TException() { + message = other714.message; + __isset = other714.__isset; } -NoSuchLockException& NoSuchLockException::operator=(const NoSuchLockException& other713) { - message = other713.message; - __isset = other713.__isset; +NoSuchLockException& NoSuchLockException::operator=(const NoSuchLockException& other715) { + message = other715.message; + __isset = other715.__isset; return *this; } void NoSuchLockException::printTo(std::ostream& out) const { diff --git a/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h b/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h index 53ab272..05c288c 100644 --- a/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h +++ b/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h @@ -349,6 +349,8 @@ class ClearFileMetadataRequest; class GetAllFunctionsResponse; +class TableMeta; + class MetaException; class UnknownTableException; @@ -6158,6 +6160,69 @@ inline std::ostream& operator<<(std::ostream& out, const GetAllFunctionsResponse return out; } +typedef struct _TableMeta__isset { + _TableMeta__isset() : comments(false) {} + bool comments :1; +} _TableMeta__isset; + +class TableMeta { + public: + + TableMeta(const TableMeta&); + TableMeta& operator=(const TableMeta&); + TableMeta() : dbName(), tableName(), tableType(), comments() { + } + + virtual ~TableMeta() throw(); + std::string dbName; + std::string tableName; + std::string tableType; + std::string comments; + + _TableMeta__isset __isset; + + void __set_dbName(const std::string& val); + + void __set_tableName(const std::string& val); + + void __set_tableType(const std::string& val); + + void __set_comments(const std::string& val); + + bool operator == (const TableMeta & rhs) const + { + if (!(dbName == rhs.dbName)) + return false; + if (!(tableName == rhs.tableName)) + return false; + if (!(tableType == rhs.tableType)) + return false; + if (__isset.comments != rhs.__isset.comments) + return false; + else if (__isset.comments && !(comments == rhs.comments)) + return false; + return true; + } + bool operator != (const TableMeta &rhs) const { + return !(*this == rhs); + } + + bool operator < (const TableMeta & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; +}; + +void swap(TableMeta &a, TableMeta &b); + +inline std::ostream& operator<<(std::ostream& out, const TableMeta& obj) +{ + obj.printTo(out); + return out; +} + typedef struct _MetaException__isset { _MetaException__isset() : message(false) {} bool message :1; diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableMeta.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableMeta.java new file mode 100644 index 0000000..08a8e36 --- /dev/null +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableMeta.java @@ -0,0 +1,701 @@ +/** + * Autogenerated by Thrift Compiler (0.9.3) + * + * 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.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 org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; +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 javax.annotation.Generated; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") +public class TableMeta implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TableMeta"); + + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbName", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField TABLE_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("tableType", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField COMMENTS_FIELD_DESC = new org.apache.thrift.protocol.TField("comments", org.apache.thrift.protocol.TType.STRING, (short)4); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new TableMetaStandardSchemeFactory()); + schemes.put(TupleScheme.class, new TableMetaTupleSchemeFactory()); + } + + private String dbName; // required + private String tableName; // required + private String tableType; // required + private String comments; // optional + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + DB_NAME((short)1, "dbName"), + TABLE_NAME((short)2, "tableName"), + TABLE_TYPE((short)3, "tableType"), + COMMENTS((short)4, "comments"); + + 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: // DB_NAME + return DB_NAME; + case 2: // TABLE_NAME + return TABLE_NAME; + case 3: // TABLE_TYPE + return TABLE_TYPE; + case 4: // COMMENTS + return COMMENTS; + 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 + private static final _Fields optionals[] = {_Fields.COMMENTS}; + 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.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("dbName", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TABLE_TYPE, new org.apache.thrift.meta_data.FieldMetaData("tableType", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.COMMENTS, new org.apache.thrift.meta_data.FieldMetaData("comments", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TableMeta.class, metaDataMap); + } + + public TableMeta() { + } + + public TableMeta( + String dbName, + String tableName, + String tableType) + { + this(); + this.dbName = dbName; + this.tableName = tableName; + this.tableType = tableType; + } + + /** + * Performs a deep copy on other. + */ + public TableMeta(TableMeta other) { + if (other.isSetDbName()) { + this.dbName = other.dbName; + } + if (other.isSetTableName()) { + this.tableName = other.tableName; + } + if (other.isSetTableType()) { + this.tableType = other.tableType; + } + if (other.isSetComments()) { + this.comments = other.comments; + } + } + + public TableMeta deepCopy() { + return new TableMeta(this); + } + + @Override + public void clear() { + this.dbName = null; + this.tableName = null; + this.tableType = null; + this.comments = null; + } + + public String getDbName() { + return this.dbName; + } + + public void setDbName(String dbName) { + this.dbName = dbName; + } + + public void unsetDbName() { + this.dbName = null; + } + + /** Returns true if field dbName is set (has been assigned a value) and false otherwise */ + public boolean isSetDbName() { + return this.dbName != null; + } + + public void setDbNameIsSet(boolean value) { + if (!value) { + this.dbName = null; + } + } + + public String getTableName() { + return this.tableName; + } + + public void setTableName(String tableName) { + this.tableName = tableName; + } + + public void unsetTableName() { + this.tableName = null; + } + + /** Returns true if field tableName is set (has been assigned a value) and false otherwise */ + public boolean isSetTableName() { + return this.tableName != null; + } + + public void setTableNameIsSet(boolean value) { + if (!value) { + this.tableName = null; + } + } + + public String getTableType() { + return this.tableType; + } + + public void setTableType(String tableType) { + this.tableType = tableType; + } + + public void unsetTableType() { + this.tableType = null; + } + + /** Returns true if field tableType is set (has been assigned a value) and false otherwise */ + public boolean isSetTableType() { + return this.tableType != null; + } + + public void setTableTypeIsSet(boolean value) { + if (!value) { + this.tableType = null; + } + } + + public String getComments() { + return this.comments; + } + + public void setComments(String comments) { + this.comments = comments; + } + + public void unsetComments() { + this.comments = null; + } + + /** Returns true if field comments is set (has been assigned a value) and false otherwise */ + public boolean isSetComments() { + return this.comments != null; + } + + public void setCommentsIsSet(boolean value) { + if (!value) { + this.comments = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case DB_NAME: + if (value == null) { + unsetDbName(); + } else { + setDbName((String)value); + } + break; + + case TABLE_NAME: + if (value == null) { + unsetTableName(); + } else { + setTableName((String)value); + } + break; + + case TABLE_TYPE: + if (value == null) { + unsetTableType(); + } else { + setTableType((String)value); + } + break; + + case COMMENTS: + if (value == null) { + unsetComments(); + } else { + setComments((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case DB_NAME: + return getDbName(); + + case TABLE_NAME: + return getTableName(); + + case TABLE_TYPE: + return getTableType(); + + case COMMENTS: + return getComments(); + + } + 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 DB_NAME: + return isSetDbName(); + case TABLE_NAME: + return isSetTableName(); + case TABLE_TYPE: + return isSetTableType(); + case COMMENTS: + return isSetComments(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof TableMeta) + return this.equals((TableMeta)that); + return false; + } + + public boolean equals(TableMeta that) { + if (that == null) + return false; + + boolean this_present_dbName = true && this.isSetDbName(); + boolean that_present_dbName = true && that.isSetDbName(); + if (this_present_dbName || that_present_dbName) { + if (!(this_present_dbName && that_present_dbName)) + return false; + if (!this.dbName.equals(that.dbName)) + return false; + } + + boolean this_present_tableName = true && this.isSetTableName(); + boolean that_present_tableName = true && that.isSetTableName(); + if (this_present_tableName || that_present_tableName) { + if (!(this_present_tableName && that_present_tableName)) + return false; + if (!this.tableName.equals(that.tableName)) + return false; + } + + boolean this_present_tableType = true && this.isSetTableType(); + boolean that_present_tableType = true && that.isSetTableType(); + if (this_present_tableType || that_present_tableType) { + if (!(this_present_tableType && that_present_tableType)) + return false; + if (!this.tableType.equals(that.tableType)) + return false; + } + + boolean this_present_comments = true && this.isSetComments(); + boolean that_present_comments = true && that.isSetComments(); + if (this_present_comments || that_present_comments) { + if (!(this_present_comments && that_present_comments)) + return false; + if (!this.comments.equals(that.comments)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_dbName = true && (isSetDbName()); + list.add(present_dbName); + if (present_dbName) + list.add(dbName); + + boolean present_tableName = true && (isSetTableName()); + list.add(present_tableName); + if (present_tableName) + list.add(tableName); + + boolean present_tableType = true && (isSetTableType()); + list.add(present_tableType); + if (present_tableType) + list.add(tableType); + + boolean present_comments = true && (isSetComments()); + list.add(present_comments); + if (present_comments) + list.add(comments); + + return list.hashCode(); + } + + @Override + public int compareTo(TableMeta other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDbName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, other.dbName); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTableName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTableType()).compareTo(other.isSetTableType()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTableType()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableType, other.tableType); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetComments()).compareTo(other.isSetComments()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetComments()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.comments, other.comments); + 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("TableMeta("); + boolean first = true; + + sb.append("dbName:"); + if (this.dbName == null) { + sb.append("null"); + } else { + sb.append(this.dbName); + } + first = false; + if (!first) sb.append(", "); + sb.append("tableName:"); + if (this.tableName == null) { + sb.append("null"); + } else { + sb.append(this.tableName); + } + first = false; + if (!first) sb.append(", "); + sb.append("tableType:"); + if (this.tableType == null) { + sb.append("null"); + } else { + sb.append(this.tableType); + } + first = false; + if (isSetComments()) { + if (!first) sb.append(", "); + sb.append("comments:"); + if (this.comments == null) { + sb.append("null"); + } else { + sb.append(this.comments); + } + first = false; + } + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (!isSetDbName()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'dbName' is unset! Struct:" + toString()); + } + + if (!isSetTableName()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'tableName' is unset! Struct:" + toString()); + } + + if (!isSetTableType()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'tableType' is unset! Struct:" + toString()); + } + + // 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 TableMetaStandardSchemeFactory implements SchemeFactory { + public TableMetaStandardScheme getScheme() { + return new TableMetaStandardScheme(); + } + } + + private static class TableMetaStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, TableMeta 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: // DB_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.dbName = iprot.readString(); + struct.setDbNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TABLE_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tableName = iprot.readString(); + struct.setTableNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TABLE_TYPE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tableType = iprot.readString(); + struct.setTableTypeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // COMMENTS + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.comments = iprot.readString(); + struct.setCommentsIsSet(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, TableMeta struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.dbName != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.dbName); + oprot.writeFieldEnd(); + } + if (struct.tableName != null) { + oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); + oprot.writeString(struct.tableName); + oprot.writeFieldEnd(); + } + if (struct.tableType != null) { + oprot.writeFieldBegin(TABLE_TYPE_FIELD_DESC); + oprot.writeString(struct.tableType); + oprot.writeFieldEnd(); + } + if (struct.comments != null) { + if (struct.isSetComments()) { + oprot.writeFieldBegin(COMMENTS_FIELD_DESC); + oprot.writeString(struct.comments); + oprot.writeFieldEnd(); + } + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class TableMetaTupleSchemeFactory implements SchemeFactory { + public TableMetaTupleScheme getScheme() { + return new TableMetaTupleScheme(); + } + } + + private static class TableMetaTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, TableMeta struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + oprot.writeString(struct.dbName); + oprot.writeString(struct.tableName); + oprot.writeString(struct.tableType); + BitSet optionals = new BitSet(); + if (struct.isSetComments()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetComments()) { + oprot.writeString(struct.comments); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, TableMeta struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + struct.dbName = iprot.readString(); + struct.setDbNameIsSet(true); + struct.tableName = iprot.readString(); + struct.setTableNameIsSet(true); + struct.tableType = iprot.readString(); + struct.setTableTypeIsSet(true); + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.comments = iprot.readString(); + struct.setCommentsIsSet(true); + } + } + } + +} + diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java index 3bc7e10..4690093 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java @@ -84,6 +84,8 @@ public List get_tables(String db_name, String pattern) throws MetaException, org.apache.thrift.TException; + public List get_table_meta(String db_patterns, String tbl_patterns, List tbl_types) throws MetaException, org.apache.thrift.TException; + public List get_all_tables(String db_name) throws MetaException, org.apache.thrift.TException; public Table get_table(String dbname, String tbl_name) throws MetaException, NoSuchObjectException, org.apache.thrift.TException; @@ -348,6 +350,8 @@ public void get_tables(String db_name, String pattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_table_meta(String db_patterns, String tbl_patterns, List tbl_types, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_all_tables(String db_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void get_table(String dbname, String tbl_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -1204,6 +1208,34 @@ public void send_get_tables(String db_name, String pattern) throws org.apache.th throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_tables failed: unknown result"); } + public List get_table_meta(String db_patterns, String tbl_patterns, List tbl_types) throws MetaException, org.apache.thrift.TException + { + send_get_table_meta(db_patterns, tbl_patterns, tbl_types); + return recv_get_table_meta(); + } + + public void send_get_table_meta(String db_patterns, String tbl_patterns, List tbl_types) throws org.apache.thrift.TException + { + get_table_meta_args args = new get_table_meta_args(); + args.setDb_patterns(db_patterns); + args.setTbl_patterns(tbl_patterns); + args.setTbl_types(tbl_types); + sendBase("get_table_meta", args); + } + + public List recv_get_table_meta() throws MetaException, org.apache.thrift.TException + { + get_table_meta_result result = new get_table_meta_result(); + receiveBase(result, "get_table_meta"); + if (result.isSetSuccess()) { + return result.success; + } + if (result.o1 != null) { + throw result.o1; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_table_meta failed: unknown result"); + } + public List get_all_tables(String db_name) throws MetaException, org.apache.thrift.TException { send_get_all_tables(db_name); @@ -5131,6 +5163,44 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } + public void get_table_meta(String db_patterns, String tbl_patterns, List tbl_types, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + get_table_meta_call method_call = new get_table_meta_call(db_patterns, tbl_patterns, tbl_types, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class get_table_meta_call extends org.apache.thrift.async.TAsyncMethodCall { + private String db_patterns; + private String tbl_patterns; + private List tbl_types; + public get_table_meta_call(String db_patterns, String tbl_patterns, List tbl_types, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.db_patterns = db_patterns; + this.tbl_patterns = tbl_patterns; + this.tbl_types = tbl_types; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_table_meta", org.apache.thrift.protocol.TMessageType.CALL, 0)); + get_table_meta_args args = new get_table_meta_args(); + args.setDb_patterns(db_patterns); + args.setTbl_patterns(tbl_patterns); + args.setTbl_types(tbl_types); + args.write(prot); + prot.writeMessageEnd(); + } + + public List getResult() throws MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_get_table_meta(); + } + } + public void get_all_tables(String db_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_all_tables_call method_call = new get_all_tables_call(db_name, resultHandler, this, ___protocolFactory, ___transport); @@ -9061,6 +9131,7 @@ protected Processor(I iface, Map extends org.apache.thrift.ProcessFunction { + public get_table_meta() { + super("get_table_meta"); + } + + public get_table_meta_args getEmptyArgsInstance() { + return new get_table_meta_args(); + } + + protected boolean isOneway() { + return false; + } + + public get_table_meta_result getResult(I iface, get_table_meta_args args) throws org.apache.thrift.TException { + get_table_meta_result result = new get_table_meta_result(); + try { + result.success = iface.get_table_meta(args.db_patterns, args.tbl_patterns, args.tbl_types); + } catch (MetaException o1) { + result.o1 = o1; + } + return result; + } + } + public static class get_all_tables extends org.apache.thrift.ProcessFunction { public get_all_tables() { super("get_all_tables"); @@ -12558,6 +12653,7 @@ protected AsyncProcessor(I iface, Map extends org.apache.thrift.AsyncProcessFunction> { + public get_table_meta() { + super("get_table_meta"); + } + + public get_table_meta_args getEmptyArgsInstance() { + return new get_table_meta_args(); + } + + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + get_table_meta_result result = new get_table_meta_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + get_table_meta_result result = new get_table_meta_result(); + if (e instanceof MetaException) { + result.o1 = (MetaException) e; + result.setO1IsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, get_table_meta_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.get_table_meta(args.db_patterns, args.tbl_patterns, args.tbl_types,resultHandler); + } + } + public static class get_all_tables extends org.apache.thrift.AsyncProcessFunction> { public get_all_tables() { super("get_all_tables"); @@ -40884,15 +41037,960 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class drop_table_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { - public drop_table_with_environment_context_resultStandardScheme getScheme() { - return new drop_table_with_environment_context_resultStandardScheme(); + private static class drop_table_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { + public drop_table_with_environment_context_resultStandardScheme getScheme() { + return new drop_table_with_environment_context_resultStandardScheme(); + } + } + + private static class drop_table_with_environment_context_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_with_environment_context_result 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: // O1 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o1 = new NoSuchObjectException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // O3 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o3 = new MetaException(); + struct.o3.read(iprot); + struct.setO3IsSet(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, drop_table_with_environment_context_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.o1 != null) { + oprot.writeFieldBegin(O1_FIELD_DESC); + struct.o1.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.o3 != null) { + oprot.writeFieldBegin(O3_FIELD_DESC); + struct.o3.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class drop_table_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { + public drop_table_with_environment_context_resultTupleScheme getScheme() { + return new drop_table_with_environment_context_resultTupleScheme(); + } + } + + private static class drop_table_with_environment_context_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, drop_table_with_environment_context_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetO1()) { + optionals.set(0); + } + if (struct.isSetO3()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetO1()) { + struct.o1.write(oprot); + } + if (struct.isSetO3()) { + struct.o3.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_with_environment_context_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.o1 = new NoSuchObjectException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } + if (incoming.get(1)) { + struct.o3 = new MetaException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } + } + } + + } + + public static class get_tables_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_tables_args"); + + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField PATTERN_FIELD_DESC = new org.apache.thrift.protocol.TField("pattern", org.apache.thrift.protocol.TType.STRING, (short)2); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new get_tables_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_tables_argsTupleSchemeFactory()); + } + + private String db_name; // required + private String pattern; // 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 { + DB_NAME((short)1, "db_name"), + PATTERN((short)2, "pattern"); + + 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: // DB_NAME + return DB_NAME; + case 2: // PATTERN + return PATTERN; + 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.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PATTERN, new org.apache.thrift.meta_data.FieldMetaData("pattern", 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(get_tables_args.class, metaDataMap); + } + + public get_tables_args() { + } + + public get_tables_args( + String db_name, + String pattern) + { + this(); + this.db_name = db_name; + this.pattern = pattern; + } + + /** + * Performs a deep copy on other. + */ + public get_tables_args(get_tables_args other) { + if (other.isSetDb_name()) { + this.db_name = other.db_name; + } + if (other.isSetPattern()) { + this.pattern = other.pattern; + } + } + + public get_tables_args deepCopy() { + return new get_tables_args(this); + } + + @Override + public void clear() { + this.db_name = null; + this.pattern = null; + } + + public String getDb_name() { + return this.db_name; + } + + public void setDb_name(String db_name) { + this.db_name = db_name; + } + + public void unsetDb_name() { + this.db_name = null; + } + + /** Returns true if field db_name is set (has been assigned a value) and false otherwise */ + public boolean isSetDb_name() { + return this.db_name != null; + } + + public void setDb_nameIsSet(boolean value) { + if (!value) { + this.db_name = null; + } + } + + public String getPattern() { + return this.pattern; + } + + public void setPattern(String pattern) { + this.pattern = pattern; + } + + public void unsetPattern() { + this.pattern = null; + } + + /** Returns true if field pattern is set (has been assigned a value) and false otherwise */ + public boolean isSetPattern() { + return this.pattern != null; + } + + public void setPatternIsSet(boolean value) { + if (!value) { + this.pattern = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case DB_NAME: + if (value == null) { + unsetDb_name(); + } else { + setDb_name((String)value); + } + break; + + case PATTERN: + if (value == null) { + unsetPattern(); + } else { + setPattern((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case DB_NAME: + return getDb_name(); + + case PATTERN: + return getPattern(); + + } + 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 DB_NAME: + return isSetDb_name(); + case PATTERN: + return isSetPattern(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof get_tables_args) + return this.equals((get_tables_args)that); + return false; + } + + public boolean equals(get_tables_args that) { + if (that == null) + return false; + + boolean this_present_db_name = true && this.isSetDb_name(); + boolean that_present_db_name = true && that.isSetDb_name(); + if (this_present_db_name || that_present_db_name) { + if (!(this_present_db_name && that_present_db_name)) + return false; + if (!this.db_name.equals(that.db_name)) + return false; + } + + boolean this_present_pattern = true && this.isSetPattern(); + boolean that_present_pattern = true && that.isSetPattern(); + if (this_present_pattern || that_present_pattern) { + if (!(this_present_pattern && that_present_pattern)) + return false; + if (!this.pattern.equals(that.pattern)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_db_name = true && (isSetDb_name()); + list.add(present_db_name); + if (present_db_name) + list.add(db_name); + + boolean present_pattern = true && (isSetPattern()); + list.add(present_pattern); + if (present_pattern) + list.add(pattern); + + return list.hashCode(); + } + + @Override + public int compareTo(get_tables_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDb_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPattern()).compareTo(other.isSetPattern()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPattern()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pattern, other.pattern); + 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("get_tables_args("); + boolean first = true; + + sb.append("db_name:"); + if (this.db_name == null) { + sb.append("null"); + } else { + sb.append(this.db_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("pattern:"); + if (this.pattern == null) { + sb.append("null"); + } else { + sb.append(this.pattern); + } + 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 get_tables_argsStandardSchemeFactory implements SchemeFactory { + public get_tables_argsStandardScheme getScheme() { + return new get_tables_argsStandardScheme(); + } + } + + private static class get_tables_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_args 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: // DB_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // PATTERN + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.pattern = iprot.readString(); + struct.setPatternIsSet(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, get_tables_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.db_name != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.db_name); + oprot.writeFieldEnd(); + } + if (struct.pattern != null) { + oprot.writeFieldBegin(PATTERN_FIELD_DESC); + oprot.writeString(struct.pattern); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class get_tables_argsTupleSchemeFactory implements SchemeFactory { + public get_tables_argsTupleScheme getScheme() { + return new get_tables_argsTupleScheme(); + } + } + + private static class get_tables_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetDb_name()) { + optionals.set(0); + } + if (struct.isSetPattern()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetDb_name()) { + oprot.writeString(struct.db_name); + } + if (struct.isSetPattern()) { + oprot.writeString(struct.pattern); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); + } + if (incoming.get(1)) { + struct.pattern = iprot.readString(); + struct.setPatternIsSet(true); + } + } + } + + } + + public static class get_tables_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_tables_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new get_tables_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_tables_resultTupleSchemeFactory()); + } + + private List success; // required + private MetaException o1; // 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 { + SUCCESS((short)0, "success"), + O1((short)1, "o1"); + + 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 0: // SUCCESS + return SUCCESS; + case 1: // O1 + return O1; + 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.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_tables_result.class, metaDataMap); + } + + public get_tables_result() { + } + + public get_tables_result( + List success, + MetaException o1) + { + this(); + this.success = success; + this.o1 = o1; + } + + /** + * Performs a deep copy on other. + */ + public get_tables_result(get_tables_result other) { + if (other.isSetSuccess()) { + List __this__success = new ArrayList(other.success); + this.success = __this__success; + } + if (other.isSetO1()) { + this.o1 = new MetaException(other.o1); + } + } + + public get_tables_result deepCopy() { + return new get_tables_result(this); + } + + @Override + public void clear() { + this.success = null; + this.o1 = null; + } + + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(String elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { + return this.success; + } + + public void setSuccess(List success) { + this.success = success; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } + } + + public MetaException getO1() { + return this.o1; + } + + public void setO1(MetaException o1) { + this.o1 = o1; + } + + public void unsetO1() { + this.o1 = null; + } + + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ + public boolean isSetO1() { + return this.o1 != null; + } + + public void setO1IsSet(boolean value) { + if (!value) { + this.o1 = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((List)value); + } + break; + + case O1: + if (value == null) { + unsetO1(); + } else { + setO1((MetaException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return getSuccess(); + + case O1: + return getO1(); + + } + 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 SUCCESS: + return isSetSuccess(); + case O1: + return isSetO1(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof get_tables_result) + return this.equals((get_tables_result)that); + return false; + } + + public boolean equals(get_tables_result that) { + if (that == null) + return false; + + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + + boolean this_present_o1 = true && this.isSetO1(); + boolean that_present_o1 = true && that.isSetO1(); + if (this_present_o1 || that_present_o1) { + if (!(this_present_o1 && that_present_o1)) + return false; + if (!this.o1.equals(that.o1)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_success = true && (isSetSuccess()); + list.add(present_success); + if (present_success) + list.add(success); + + boolean present_o1 = true && (isSetO1()); + list.add(present_o1); + if (present_o1) + list.add(o1); + + return list.hashCode(); + } + + @Override + public int compareTo(get_tables_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO1()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + 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("get_tables_result("); + boolean first = true; + + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + first = false; + if (!first) sb.append(", "); + sb.append("o1:"); + if (this.o1 == null) { + sb.append("null"); + } else { + sb.append(this.o1); + } + 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 get_tables_resultStandardSchemeFactory implements SchemeFactory { + public get_tables_resultStandardScheme getScheme() { + return new get_tables_resultStandardScheme(); } } - private static class drop_table_with_environment_context_resultStandardScheme extends StandardScheme { + private static class get_tables_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -40902,20 +42000,29 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_with_env break; } switch (schemeField.id) { - case 1: // O1 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new NoSuchObjectException(); - struct.o1.read(iprot); - struct.setO1IsSet(true); + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list650 = iprot.readListBegin(); + struct.success = new ArrayList(_list650.size); + String _elem651; + for (int _i652 = 0; _i652 < _list650.size; ++_i652) + { + _elem651 = iprot.readString(); + struct.success.add(_elem651); + } + iprot.readListEnd(); + } + struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // O3 + case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o3 = new MetaException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -40929,91 +42036,115 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_with_env struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_table_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); + for (String _iter653 : struct.success) + { + oprot.writeString(_iter653); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } if (struct.o1 != null) { oprot.writeFieldBegin(O1_FIELD_DESC); struct.o1.write(oprot); oprot.writeFieldEnd(); } - if (struct.o3 != null) { - oprot.writeFieldBegin(O3_FIELD_DESC); - struct.o3.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class drop_table_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { - public drop_table_with_environment_context_resultTupleScheme getScheme() { - return new drop_table_with_environment_context_resultTupleScheme(); + private static class get_tables_resultTupleSchemeFactory implements SchemeFactory { + public get_tables_resultTupleScheme getScheme() { + return new get_tables_resultTupleScheme(); } } - private static class drop_table_with_environment_context_resultTupleScheme extends TupleScheme { + private static class get_tables_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_table_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetO1()) { + if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetO3()) { + if (struct.isSetO1()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); + if (struct.isSetSuccess()) { + { + oprot.writeI32(struct.success.size()); + for (String _iter654 : struct.success) + { + oprot.writeString(_iter654); + } + } + } if (struct.isSetO1()) { struct.o1.write(oprot); } - if (struct.isSetO3()) { - struct.o3.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.o1 = new NoSuchObjectException(); - struct.o1.read(iprot); - struct.setO1IsSet(true); + { + org.apache.thrift.protocol.TList _list655 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list655.size); + String _elem656; + for (int _i657 = 0; _i657 < _list655.size; ++_i657) + { + _elem656 = iprot.readString(); + struct.success.add(_elem656); + } + } + struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o3 = new MetaException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); } } } } - public static class get_tables_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_tables_args"); + public static class get_table_meta_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_meta_args"); - private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField PATTERN_FIELD_DESC = new org.apache.thrift.protocol.TField("pattern", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField DB_PATTERNS_FIELD_DESC = new org.apache.thrift.protocol.TField("db_patterns", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TBL_PATTERNS_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_patterns", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField TBL_TYPES_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_types", org.apache.thrift.protocol.TType.LIST, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_tables_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_tables_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_table_meta_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_meta_argsTupleSchemeFactory()); } - private String db_name; // required - private String pattern; // required + private String db_patterns; // required + private String tbl_patterns; // required + private List tbl_types; // 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 { - DB_NAME((short)1, "db_name"), - PATTERN((short)2, "pattern"); + DB_PATTERNS((short)1, "db_patterns"), + TBL_PATTERNS((short)2, "tbl_patterns"), + TBL_TYPES((short)3, "tbl_types"); private static final Map byName = new HashMap(); @@ -41028,10 +42159,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_with_envi */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DB_NAME - return DB_NAME; - case 2: // PATTERN - return PATTERN; + case 1: // DB_PATTERNS + return DB_PATTERNS; + case 2: // TBL_PATTERNS + return TBL_PATTERNS; + case 3: // TBL_TYPES + return TBL_TYPES; default: return null; } @@ -41075,109 +42208,165 @@ public String getFieldName() { 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.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.DB_PATTERNS, new org.apache.thrift.meta_data.FieldMetaData("db_patterns", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.PATTERN, new org.apache.thrift.meta_data.FieldMetaData("pattern", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.TBL_PATTERNS, new org.apache.thrift.meta_data.FieldMetaData("tbl_patterns", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TBL_TYPES, new org.apache.thrift.meta_data.FieldMetaData("tbl_types", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_tables_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_meta_args.class, metaDataMap); } - public get_tables_args() { + public get_table_meta_args() { } - public get_tables_args( - String db_name, - String pattern) + public get_table_meta_args( + String db_patterns, + String tbl_patterns, + List tbl_types) { this(); - this.db_name = db_name; - this.pattern = pattern; + this.db_patterns = db_patterns; + this.tbl_patterns = tbl_patterns; + this.tbl_types = tbl_types; } /** * Performs a deep copy on other. */ - public get_tables_args(get_tables_args other) { - if (other.isSetDb_name()) { - this.db_name = other.db_name; + public get_table_meta_args(get_table_meta_args other) { + if (other.isSetDb_patterns()) { + this.db_patterns = other.db_patterns; } - if (other.isSetPattern()) { - this.pattern = other.pattern; + if (other.isSetTbl_patterns()) { + this.tbl_patterns = other.tbl_patterns; + } + if (other.isSetTbl_types()) { + List __this__tbl_types = new ArrayList(other.tbl_types); + this.tbl_types = __this__tbl_types; } } - public get_tables_args deepCopy() { - return new get_tables_args(this); + public get_table_meta_args deepCopy() { + return new get_table_meta_args(this); } @Override public void clear() { - this.db_name = null; - this.pattern = null; + this.db_patterns = null; + this.tbl_patterns = null; + this.tbl_types = null; } - public String getDb_name() { - return this.db_name; + public String getDb_patterns() { + return this.db_patterns; } - public void setDb_name(String db_name) { - this.db_name = db_name; + public void setDb_patterns(String db_patterns) { + this.db_patterns = db_patterns; } - public void unsetDb_name() { - this.db_name = null; + public void unsetDb_patterns() { + this.db_patterns = null; } - /** Returns true if field db_name is set (has been assigned a value) and false otherwise */ - public boolean isSetDb_name() { - return this.db_name != null; + /** Returns true if field db_patterns is set (has been assigned a value) and false otherwise */ + public boolean isSetDb_patterns() { + return this.db_patterns != null; } - public void setDb_nameIsSet(boolean value) { + public void setDb_patternsIsSet(boolean value) { if (!value) { - this.db_name = null; + this.db_patterns = null; } } - public String getPattern() { - return this.pattern; + public String getTbl_patterns() { + return this.tbl_patterns; } - public void setPattern(String pattern) { - this.pattern = pattern; + public void setTbl_patterns(String tbl_patterns) { + this.tbl_patterns = tbl_patterns; } - public void unsetPattern() { - this.pattern = null; + public void unsetTbl_patterns() { + this.tbl_patterns = null; } - /** Returns true if field pattern is set (has been assigned a value) and false otherwise */ - public boolean isSetPattern() { - return this.pattern != null; + /** Returns true if field tbl_patterns is set (has been assigned a value) and false otherwise */ + public boolean isSetTbl_patterns() { + return this.tbl_patterns != null; } - public void setPatternIsSet(boolean value) { + public void setTbl_patternsIsSet(boolean value) { if (!value) { - this.pattern = null; + this.tbl_patterns = null; + } + } + + public int getTbl_typesSize() { + return (this.tbl_types == null) ? 0 : this.tbl_types.size(); + } + + public java.util.Iterator getTbl_typesIterator() { + return (this.tbl_types == null) ? null : this.tbl_types.iterator(); + } + + public void addToTbl_types(String elem) { + if (this.tbl_types == null) { + this.tbl_types = new ArrayList(); + } + this.tbl_types.add(elem); + } + + public List getTbl_types() { + return this.tbl_types; + } + + public void setTbl_types(List tbl_types) { + this.tbl_types = tbl_types; + } + + public void unsetTbl_types() { + this.tbl_types = null; + } + + /** Returns true if field tbl_types is set (has been assigned a value) and false otherwise */ + public boolean isSetTbl_types() { + return this.tbl_types != null; + } + + public void setTbl_typesIsSet(boolean value) { + if (!value) { + this.tbl_types = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case DB_NAME: + case DB_PATTERNS: if (value == null) { - unsetDb_name(); + unsetDb_patterns(); } else { - setDb_name((String)value); + setDb_patterns((String)value); } break; - case PATTERN: + case TBL_PATTERNS: if (value == null) { - unsetPattern(); + unsetTbl_patterns(); } else { - setPattern((String)value); + setTbl_patterns((String)value); + } + break; + + case TBL_TYPES: + if (value == null) { + unsetTbl_types(); + } else { + setTbl_types((List)value); } break; @@ -41186,11 +42375,14 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DB_NAME: - return getDb_name(); + case DB_PATTERNS: + return getDb_patterns(); - case PATTERN: - return getPattern(); + case TBL_PATTERNS: + return getTbl_patterns(); + + case TBL_TYPES: + return getTbl_types(); } throw new IllegalStateException(); @@ -41203,10 +42395,12 @@ public boolean isSet(_Fields field) { } switch (field) { - case DB_NAME: - return isSetDb_name(); - case PATTERN: - return isSetPattern(); + case DB_PATTERNS: + return isSetDb_patterns(); + case TBL_PATTERNS: + return isSetTbl_patterns(); + case TBL_TYPES: + return isSetTbl_types(); } throw new IllegalStateException(); } @@ -41215,30 +42409,39 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_tables_args) - return this.equals((get_tables_args)that); + if (that instanceof get_table_meta_args) + return this.equals((get_table_meta_args)that); return false; } - public boolean equals(get_tables_args that) { + public boolean equals(get_table_meta_args that) { if (that == null) return false; - boolean this_present_db_name = true && this.isSetDb_name(); - boolean that_present_db_name = true && that.isSetDb_name(); - if (this_present_db_name || that_present_db_name) { - if (!(this_present_db_name && that_present_db_name)) + boolean this_present_db_patterns = true && this.isSetDb_patterns(); + boolean that_present_db_patterns = true && that.isSetDb_patterns(); + if (this_present_db_patterns || that_present_db_patterns) { + if (!(this_present_db_patterns && that_present_db_patterns)) return false; - if (!this.db_name.equals(that.db_name)) + if (!this.db_patterns.equals(that.db_patterns)) return false; } - boolean this_present_pattern = true && this.isSetPattern(); - boolean that_present_pattern = true && that.isSetPattern(); - if (this_present_pattern || that_present_pattern) { - if (!(this_present_pattern && that_present_pattern)) + boolean this_present_tbl_patterns = true && this.isSetTbl_patterns(); + boolean that_present_tbl_patterns = true && that.isSetTbl_patterns(); + if (this_present_tbl_patterns || that_present_tbl_patterns) { + if (!(this_present_tbl_patterns && that_present_tbl_patterns)) return false; - if (!this.pattern.equals(that.pattern)) + if (!this.tbl_patterns.equals(that.tbl_patterns)) + return false; + } + + boolean this_present_tbl_types = true && this.isSetTbl_types(); + boolean that_present_tbl_types = true && that.isSetTbl_types(); + if (this_present_tbl_types || that_present_tbl_types) { + if (!(this_present_tbl_types && that_present_tbl_types)) + return false; + if (!this.tbl_types.equals(that.tbl_types)) return false; } @@ -41249,43 +42452,58 @@ public boolean equals(get_tables_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); - if (present_db_name) - list.add(db_name); + boolean present_db_patterns = true && (isSetDb_patterns()); + list.add(present_db_patterns); + if (present_db_patterns) + list.add(db_patterns); - boolean present_pattern = true && (isSetPattern()); - list.add(present_pattern); - if (present_pattern) - list.add(pattern); + boolean present_tbl_patterns = true && (isSetTbl_patterns()); + list.add(present_tbl_patterns); + if (present_tbl_patterns) + list.add(tbl_patterns); + + boolean present_tbl_types = true && (isSetTbl_types()); + list.add(present_tbl_types); + if (present_tbl_types) + list.add(tbl_types); return list.hashCode(); } @Override - public int compareTo(get_tables_args other) { + public int compareTo(get_table_meta_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_patterns()).compareTo(other.isSetDb_patterns()); if (lastComparison != 0) { return lastComparison; } - if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + if (isSetDb_patterns()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_patterns, other.db_patterns); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPattern()).compareTo(other.isSetPattern()); + lastComparison = Boolean.valueOf(isSetTbl_patterns()).compareTo(other.isSetTbl_patterns()); if (lastComparison != 0) { return lastComparison; } - if (isSetPattern()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pattern, other.pattern); + if (isSetTbl_patterns()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_patterns, other.tbl_patterns); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTbl_types()).compareTo(other.isSetTbl_types()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTbl_types()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_types, other.tbl_types); if (lastComparison != 0) { return lastComparison; } @@ -41307,22 +42525,30 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_tables_args("); + StringBuilder sb = new StringBuilder("get_table_meta_args("); boolean first = true; - sb.append("db_name:"); - if (this.db_name == null) { + sb.append("db_patterns:"); + if (this.db_patterns == null) { sb.append("null"); } else { - sb.append(this.db_name); + sb.append(this.db_patterns); } first = false; if (!first) sb.append(", "); - sb.append("pattern:"); - if (this.pattern == null) { + sb.append("tbl_patterns:"); + if (this.tbl_patterns == null) { sb.append("null"); } else { - sb.append(this.pattern); + sb.append(this.tbl_patterns); + } + first = false; + if (!first) sb.append(", "); + sb.append("tbl_types:"); + if (this.tbl_types == null) { + sb.append("null"); + } else { + sb.append(this.tbl_types); } first = false; sb.append(")"); @@ -41350,15 +42576,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_tables_argsStandardSchemeFactory implements SchemeFactory { - public get_tables_argsStandardScheme getScheme() { - return new get_tables_argsStandardScheme(); + private static class get_table_meta_argsStandardSchemeFactory implements SchemeFactory { + public get_table_meta_argsStandardScheme getScheme() { + return new get_table_meta_argsStandardScheme(); } } - private static class get_tables_argsStandardScheme extends StandardScheme { + private static class get_table_meta_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_meta_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -41368,18 +42594,36 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_args str break; } switch (schemeField.id) { - case 1: // DB_NAME + case 1: // DB_PATTERNS if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); + struct.db_patterns = iprot.readString(); + struct.setDb_patternsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // PATTERN + case 2: // TBL_PATTERNS if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.pattern = iprot.readString(); - struct.setPatternIsSet(true); + struct.tbl_patterns = iprot.readString(); + struct.setTbl_patternsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TBL_TYPES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list658 = iprot.readListBegin(); + struct.tbl_types = new ArrayList(_list658.size); + String _elem659; + for (int _i660 = 0; _i660 < _list658.size; ++_i660) + { + _elem659 = iprot.readString(); + struct.tbl_types.add(_elem659); + } + iprot.readListEnd(); + } + struct.setTbl_typesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -41393,18 +42637,30 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_args str struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_meta_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.db_name != null) { - oprot.writeFieldBegin(DB_NAME_FIELD_DESC); - oprot.writeString(struct.db_name); + if (struct.db_patterns != null) { + oprot.writeFieldBegin(DB_PATTERNS_FIELD_DESC); + oprot.writeString(struct.db_patterns); oprot.writeFieldEnd(); } - if (struct.pattern != null) { - oprot.writeFieldBegin(PATTERN_FIELD_DESC); - oprot.writeString(struct.pattern); + if (struct.tbl_patterns != null) { + oprot.writeFieldBegin(TBL_PATTERNS_FIELD_DESC); + oprot.writeString(struct.tbl_patterns); + oprot.writeFieldEnd(); + } + if (struct.tbl_types != null) { + oprot.writeFieldBegin(TBL_TYPES_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.tbl_types.size())); + for (String _iter661 : struct.tbl_types) + { + oprot.writeString(_iter661); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -41413,63 +42669,88 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_args st } - private static class get_tables_argsTupleSchemeFactory implements SchemeFactory { - public get_tables_argsTupleScheme getScheme() { - return new get_tables_argsTupleScheme(); + private static class get_table_meta_argsTupleSchemeFactory implements SchemeFactory { + public get_table_meta_argsTupleScheme getScheme() { + return new get_table_meta_argsTupleScheme(); } } - private static class get_tables_argsTupleScheme extends TupleScheme { + private static class get_table_meta_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_table_meta_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDb_name()) { + if (struct.isSetDb_patterns()) { optionals.set(0); } - if (struct.isSetPattern()) { + if (struct.isSetTbl_patterns()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); - if (struct.isSetDb_name()) { - oprot.writeString(struct.db_name); + if (struct.isSetTbl_types()) { + optionals.set(2); } - if (struct.isSetPattern()) { - oprot.writeString(struct.pattern); + oprot.writeBitSet(optionals, 3); + if (struct.isSetDb_patterns()) { + oprot.writeString(struct.db_patterns); + } + if (struct.isSetTbl_patterns()) { + oprot.writeString(struct.tbl_patterns); + } + if (struct.isSetTbl_types()) { + { + oprot.writeI32(struct.tbl_types.size()); + for (String _iter662 : struct.tbl_types) + { + oprot.writeString(_iter662); + } + } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_table_meta_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); + struct.db_patterns = iprot.readString(); + struct.setDb_patternsIsSet(true); } if (incoming.get(1)) { - struct.pattern = iprot.readString(); - struct.setPatternIsSet(true); + struct.tbl_patterns = iprot.readString(); + struct.setTbl_patternsIsSet(true); + } + if (incoming.get(2)) { + { + org.apache.thrift.protocol.TList _list663 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tbl_types = new ArrayList(_list663.size); + String _elem664; + for (int _i665 = 0; _i665 < _list663.size; ++_i665) + { + _elem664 = iprot.readString(); + struct.tbl_types.add(_elem664); + } + } + struct.setTbl_typesIsSet(true); } } } } - public static class get_tables_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_tables_result"); + public static class get_table_meta_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_meta_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_tables_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_tables_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_table_meta_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_meta_resultTupleSchemeFactory()); } - private List success; // required + private List success; // required private MetaException o1; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -41539,18 +42820,18 @@ public String getFieldName() { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TableMeta.class)))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_tables_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_meta_result.class, metaDataMap); } - public get_tables_result() { + public get_table_meta_result() { } - public get_tables_result( - List success, + public get_table_meta_result( + List success, MetaException o1) { this(); @@ -41561,9 +42842,12 @@ public get_tables_result( /** * Performs a deep copy on other. */ - public get_tables_result(get_tables_result other) { + public get_table_meta_result(get_table_meta_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); + List __this__success = new ArrayList(other.success.size()); + for (TableMeta other_element : other.success) { + __this__success.add(new TableMeta(other_element)); + } this.success = __this__success; } if (other.isSetO1()) { @@ -41571,8 +42855,8 @@ public get_tables_result(get_tables_result other) { } } - public get_tables_result deepCopy() { - return new get_tables_result(this); + public get_table_meta_result deepCopy() { + return new get_table_meta_result(this); } @Override @@ -41585,22 +42869,22 @@ public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } - public java.util.Iterator getSuccessIterator() { + public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } - public void addToSuccess(String elem) { + public void addToSuccess(TableMeta elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new ArrayList(); } this.success.add(elem); } - public List getSuccess() { + public List getSuccess() { return this.success; } - public void setSuccess(List success) { + public void setSuccess(List success) { this.success = success; } @@ -41648,7 +42932,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -41694,12 +42978,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_tables_result) - return this.equals((get_tables_result)that); + if (that instanceof get_table_meta_result) + return this.equals((get_table_meta_result)that); return false; } - public boolean equals(get_tables_result that) { + public boolean equals(get_table_meta_result that) { if (that == null) return false; @@ -41742,7 +43026,7 @@ public int hashCode() { } @Override - public int compareTo(get_tables_result other) { + public int compareTo(get_table_meta_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -41786,7 +43070,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_tables_result("); + StringBuilder sb = new StringBuilder("get_table_meta_result("); boolean first = true; sb.append("success:"); @@ -41829,15 +43113,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_tables_resultStandardSchemeFactory implements SchemeFactory { - public get_tables_resultStandardScheme getScheme() { - return new get_tables_resultStandardScheme(); + private static class get_table_meta_resultStandardSchemeFactory implements SchemeFactory { + public get_table_meta_resultStandardScheme getScheme() { + return new get_table_meta_resultStandardScheme(); } } - private static class get_tables_resultStandardScheme extends StandardScheme { + private static class get_table_meta_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_meta_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -41850,13 +43134,14 @@ 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 _list650 = iprot.readListBegin(); - struct.success = new ArrayList(_list650.size); - String _elem651; - for (int _i652 = 0; _i652 < _list650.size; ++_i652) + org.apache.thrift.protocol.TList _list666 = iprot.readListBegin(); + struct.success = new ArrayList(_list666.size); + TableMeta _elem667; + for (int _i668 = 0; _i668 < _list666.size; ++_i668) { - _elem651 = iprot.readString(); - struct.success.add(_elem651); + _elem667 = new TableMeta(); + _elem667.read(iprot); + struct.success.add(_elem667); } iprot.readListEnd(); } @@ -41883,17 +43168,17 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_result s struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_meta_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter653 : struct.success) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (TableMeta _iter669 : struct.success) { - oprot.writeString(_iter653); + _iter669.write(oprot); } oprot.writeListEnd(); } @@ -41910,16 +43195,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_result } - private static class get_tables_resultTupleSchemeFactory implements SchemeFactory { - public get_tables_resultTupleScheme getScheme() { - return new get_tables_resultTupleScheme(); + private static class get_table_meta_resultTupleSchemeFactory implements SchemeFactory { + public get_table_meta_resultTupleScheme getScheme() { + return new get_table_meta_resultTupleScheme(); } } - private static class get_tables_resultTupleScheme extends TupleScheme { + private static class get_table_meta_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_table_meta_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -41932,9 +43217,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter654 : struct.success) + for (TableMeta _iter670 : struct.success) { - oprot.writeString(_iter654); + _iter670.write(oprot); } } } @@ -41944,18 +43229,19 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_result s } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_table_meta_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list655 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list655.size); - String _elem656; - for (int _i657 = 0; _i657 < _list655.size; ++_i657) + org.apache.thrift.protocol.TList _list671 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list671.size); + TableMeta _elem672; + for (int _i673 = 0; _i673 < _list671.size; ++_i673) { - _elem656 = iprot.readString(); - struct.success.add(_elem656); + _elem672 = new TableMeta(); + _elem672.read(iprot); + struct.success.add(_elem672); } } struct.setSuccessIsSet(true); @@ -42721,13 +44007,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 _list658 = iprot.readListBegin(); - struct.success = new ArrayList(_list658.size); - String _elem659; - for (int _i660 = 0; _i660 < _list658.size; ++_i660) + org.apache.thrift.protocol.TList _list674 = iprot.readListBegin(); + struct.success = new ArrayList(_list674.size); + String _elem675; + for (int _i676 = 0; _i676 < _list674.size; ++_i676) { - _elem659 = iprot.readString(); - struct.success.add(_elem659); + _elem675 = iprot.readString(); + struct.success.add(_elem675); } iprot.readListEnd(); } @@ -42762,9 +44048,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 _iter661 : struct.success) + for (String _iter677 : struct.success) { - oprot.writeString(_iter661); + oprot.writeString(_iter677); } oprot.writeListEnd(); } @@ -42803,9 +44089,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_tables_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter662 : struct.success) + for (String _iter678 : struct.success) { - oprot.writeString(_iter662); + oprot.writeString(_iter678); } } } @@ -42820,13 +44106,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 _list663 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list663.size); - String _elem664; - for (int _i665 = 0; _i665 < _list663.size; ++_i665) + org.apache.thrift.protocol.TList _list679 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list679.size); + String _elem680; + for (int _i681 = 0; _i681 < _list679.size; ++_i681) { - _elem664 = iprot.readString(); - struct.success.add(_elem664); + _elem680 = iprot.readString(); + struct.success.add(_elem680); } } struct.setSuccessIsSet(true); @@ -44279,13 +45565,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 _list666 = iprot.readListBegin(); - struct.tbl_names = new ArrayList(_list666.size); - String _elem667; - for (int _i668 = 0; _i668 < _list666.size; ++_i668) + org.apache.thrift.protocol.TList _list682 = iprot.readListBegin(); + struct.tbl_names = new ArrayList(_list682.size); + String _elem683; + for (int _i684 = 0; _i684 < _list682.size; ++_i684) { - _elem667 = iprot.readString(); - struct.tbl_names.add(_elem667); + _elem683 = iprot.readString(); + struct.tbl_names.add(_elem683); } iprot.readListEnd(); } @@ -44316,9 +45602,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 _iter669 : struct.tbl_names) + for (String _iter685 : struct.tbl_names) { - oprot.writeString(_iter669); + oprot.writeString(_iter685); } oprot.writeListEnd(); } @@ -44355,9 +45641,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 _iter670 : struct.tbl_names) + for (String _iter686 : struct.tbl_names) { - oprot.writeString(_iter670); + oprot.writeString(_iter686); } } } @@ -44373,13 +45659,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list671 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tbl_names = new ArrayList(_list671.size); - String _elem672; - for (int _i673 = 0; _i673 < _list671.size; ++_i673) + org.apache.thrift.protocol.TList _list687 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tbl_names = new ArrayList(_list687.size); + String _elem688; + for (int _i689 = 0; _i689 < _list687.size; ++_i689) { - _elem672 = iprot.readString(); - struct.tbl_names.add(_elem672); + _elem688 = iprot.readString(); + struct.tbl_names.add(_elem688); } } struct.setTbl_namesIsSet(true); @@ -44947,14 +46233,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 _list674 = iprot.readListBegin(); - struct.success = new ArrayList
(_list674.size); - Table _elem675; - for (int _i676 = 0; _i676 < _list674.size; ++_i676) + org.apache.thrift.protocol.TList _list690 = iprot.readListBegin(); + struct.success = new ArrayList
(_list690.size); + Table _elem691; + for (int _i692 = 0; _i692 < _list690.size; ++_i692) { - _elem675 = new Table(); - _elem675.read(iprot); - struct.success.add(_elem675); + _elem691 = new Table(); + _elem691.read(iprot); + struct.success.add(_elem691); } iprot.readListEnd(); } @@ -45007,9 +46293,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 _iter677 : struct.success) + for (Table _iter693 : struct.success) { - _iter677.write(oprot); + _iter693.write(oprot); } oprot.writeListEnd(); } @@ -45064,9 +46350,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_b if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Table _iter678 : struct.success) + for (Table _iter694 : struct.success) { - _iter678.write(oprot); + _iter694.write(oprot); } } } @@ -45087,14 +46373,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 _list679 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList
(_list679.size); - Table _elem680; - for (int _i681 = 0; _i681 < _list679.size; ++_i681) + org.apache.thrift.protocol.TList _list695 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList
(_list695.size); + Table _elem696; + for (int _i697 = 0; _i697 < _list695.size; ++_i697) { - _elem680 = new Table(); - _elem680.read(iprot); - struct.success.add(_elem680); + _elem696 = new Table(); + _elem696.read(iprot); + struct.success.add(_elem696); } } struct.setSuccessIsSet(true); @@ -46240,13 +47526,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 _list682 = iprot.readListBegin(); - struct.success = new ArrayList(_list682.size); - String _elem683; - for (int _i684 = 0; _i684 < _list682.size; ++_i684) + org.apache.thrift.protocol.TList _list698 = iprot.readListBegin(); + struct.success = new ArrayList(_list698.size); + String _elem699; + for (int _i700 = 0; _i700 < _list698.size; ++_i700) { - _elem683 = iprot.readString(); - struct.success.add(_elem683); + _elem699 = iprot.readString(); + struct.success.add(_elem699); } iprot.readListEnd(); } @@ -46299,9 +47585,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 _iter685 : struct.success) + for (String _iter701 : struct.success) { - oprot.writeString(_iter685); + oprot.writeString(_iter701); } oprot.writeListEnd(); } @@ -46356,9 +47642,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_ if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter686 : struct.success) + for (String _iter702 : struct.success) { - oprot.writeString(_iter686); + oprot.writeString(_iter702); } } } @@ -46379,13 +47665,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 _list687 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list687.size); - String _elem688; - for (int _i689 = 0; _i689 < _list687.size; ++_i689) + org.apache.thrift.protocol.TList _list703 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list703.size); + String _elem704; + for (int _i705 = 0; _i705 < _list703.size; ++_i705) { - _elem688 = iprot.readString(); - struct.success.add(_elem688); + _elem704 = iprot.readString(); + struct.success.add(_elem704); } } struct.setSuccessIsSet(true); @@ -52244,14 +53530,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 _list690 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list690.size); - Partition _elem691; - for (int _i692 = 0; _i692 < _list690.size; ++_i692) + org.apache.thrift.protocol.TList _list706 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list706.size); + Partition _elem707; + for (int _i708 = 0; _i708 < _list706.size; ++_i708) { - _elem691 = new Partition(); - _elem691.read(iprot); - struct.new_parts.add(_elem691); + _elem707 = new Partition(); + _elem707.read(iprot); + struct.new_parts.add(_elem707); } iprot.readListEnd(); } @@ -52277,9 +53563,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 _iter693 : struct.new_parts) + for (Partition _iter709 : struct.new_parts) { - _iter693.write(oprot); + _iter709.write(oprot); } oprot.writeListEnd(); } @@ -52310,9 +53596,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 _iter694 : struct.new_parts) + for (Partition _iter710 : struct.new_parts) { - _iter694.write(oprot); + _iter710.write(oprot); } } } @@ -52324,14 +53610,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 _list695 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list695.size); - Partition _elem696; - for (int _i697 = 0; _i697 < _list695.size; ++_i697) + org.apache.thrift.protocol.TList _list711 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list711.size); + Partition _elem712; + for (int _i713 = 0; _i713 < _list711.size; ++_i713) { - _elem696 = new Partition(); - _elem696.read(iprot); - struct.new_parts.add(_elem696); + _elem712 = new Partition(); + _elem712.read(iprot); + struct.new_parts.add(_elem712); } } struct.setNew_partsIsSet(true); @@ -53332,14 +54618,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_pspe case 1: // NEW_PARTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list698 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list698.size); - PartitionSpec _elem699; - for (int _i700 = 0; _i700 < _list698.size; ++_i700) + org.apache.thrift.protocol.TList _list714 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list714.size); + PartitionSpec _elem715; + for (int _i716 = 0; _i716 < _list714.size; ++_i716) { - _elem699 = new PartitionSpec(); - _elem699.read(iprot); - struct.new_parts.add(_elem699); + _elem715 = new PartitionSpec(); + _elem715.read(iprot); + struct.new_parts.add(_elem715); } iprot.readListEnd(); } @@ -53365,9 +54651,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_psp 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 (PartitionSpec _iter701 : struct.new_parts) + for (PartitionSpec _iter717 : struct.new_parts) { - _iter701.write(oprot); + _iter717.write(oprot); } oprot.writeListEnd(); } @@ -53398,9 +54684,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspe if (struct.isSetNew_parts()) { { oprot.writeI32(struct.new_parts.size()); - for (PartitionSpec _iter702 : struct.new_parts) + for (PartitionSpec _iter718 : struct.new_parts) { - _iter702.write(oprot); + _iter718.write(oprot); } } } @@ -53412,14 +54698,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspec BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list703 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list703.size); - PartitionSpec _elem704; - for (int _i705 = 0; _i705 < _list703.size; ++_i705) + org.apache.thrift.protocol.TList _list719 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list719.size); + PartitionSpec _elem720; + for (int _i721 = 0; _i721 < _list719.size; ++_i721) { - _elem704 = new PartitionSpec(); - _elem704.read(iprot); - struct.new_parts.add(_elem704); + _elem720 = new PartitionSpec(); + _elem720.read(iprot); + struct.new_parts.add(_elem720); } } struct.setNew_partsIsSet(true); @@ -54595,13 +55881,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 _list706 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list706.size); - String _elem707; - for (int _i708 = 0; _i708 < _list706.size; ++_i708) + org.apache.thrift.protocol.TList _list722 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list722.size); + String _elem723; + for (int _i724 = 0; _i724 < _list722.size; ++_i724) { - _elem707 = iprot.readString(); - struct.part_vals.add(_elem707); + _elem723 = iprot.readString(); + struct.part_vals.add(_elem723); } iprot.readListEnd(); } @@ -54637,9 +55923,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 _iter709 : struct.part_vals) + for (String _iter725 : struct.part_vals) { - oprot.writeString(_iter709); + oprot.writeString(_iter725); } oprot.writeListEnd(); } @@ -54682,9 +55968,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 _iter710 : struct.part_vals) + for (String _iter726 : struct.part_vals) { - oprot.writeString(_iter710); + oprot.writeString(_iter726); } } } @@ -54704,13 +55990,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list711 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list711.size); - String _elem712; - for (int _i713 = 0; _i713 < _list711.size; ++_i713) + org.apache.thrift.protocol.TList _list727 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list727.size); + String _elem728; + for (int _i729 = 0; _i729 < _list727.size; ++_i729) { - _elem712 = iprot.readString(); - struct.part_vals.add(_elem712); + _elem728 = iprot.readString(); + struct.part_vals.add(_elem728); } } struct.setPart_valsIsSet(true); @@ -57019,13 +58305,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 _list714 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list714.size); - String _elem715; - for (int _i716 = 0; _i716 < _list714.size; ++_i716) + org.apache.thrift.protocol.TList _list730 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list730.size); + String _elem731; + for (int _i732 = 0; _i732 < _list730.size; ++_i732) { - _elem715 = iprot.readString(); - struct.part_vals.add(_elem715); + _elem731 = iprot.readString(); + struct.part_vals.add(_elem731); } iprot.readListEnd(); } @@ -57070,9 +58356,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 _iter717 : struct.part_vals) + for (String _iter733 : struct.part_vals) { - oprot.writeString(_iter717); + oprot.writeString(_iter733); } oprot.writeListEnd(); } @@ -57123,9 +58409,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 _iter718 : struct.part_vals) + for (String _iter734 : struct.part_vals) { - oprot.writeString(_iter718); + oprot.writeString(_iter734); } } } @@ -57148,13 +58434,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_wit } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list719 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list719.size); - String _elem720; - for (int _i721 = 0; _i721 < _list719.size; ++_i721) + org.apache.thrift.protocol.TList _list735 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list735.size); + String _elem736; + for (int _i737 = 0; _i737 < _list735.size; ++_i737) { - _elem720 = iprot.readString(); - struct.part_vals.add(_elem720); + _elem736 = iprot.readString(); + struct.part_vals.add(_elem736); } } struct.setPart_valsIsSet(true); @@ -61024,13 +62310,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 _list722 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list722.size); - String _elem723; - for (int _i724 = 0; _i724 < _list722.size; ++_i724) + org.apache.thrift.protocol.TList _list738 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list738.size); + String _elem739; + for (int _i740 = 0; _i740 < _list738.size; ++_i740) { - _elem723 = iprot.readString(); - struct.part_vals.add(_elem723); + _elem739 = iprot.readString(); + struct.part_vals.add(_elem739); } iprot.readListEnd(); } @@ -61074,9 +62360,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 _iter725 : struct.part_vals) + for (String _iter741 : struct.part_vals) { - oprot.writeString(_iter725); + oprot.writeString(_iter741); } oprot.writeListEnd(); } @@ -61125,9 +62411,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 _iter726 : struct.part_vals) + for (String _iter742 : struct.part_vals) { - oprot.writeString(_iter726); + oprot.writeString(_iter742); } } } @@ -61150,13 +62436,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_args } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list727 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list727.size); - String _elem728; - for (int _i729 = 0; _i729 < _list727.size; ++_i729) + org.apache.thrift.protocol.TList _list743 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list743.size); + String _elem744; + for (int _i745 = 0; _i745 < _list743.size; ++_i745) { - _elem728 = iprot.readString(); - struct.part_vals.add(_elem728); + _elem744 = iprot.readString(); + struct.part_vals.add(_elem744); } } struct.setPart_valsIsSet(true); @@ -62395,13 +63681,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 _list730 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list730.size); - String _elem731; - for (int _i732 = 0; _i732 < _list730.size; ++_i732) + org.apache.thrift.protocol.TList _list746 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list746.size); + String _elem747; + for (int _i748 = 0; _i748 < _list746.size; ++_i748) { - _elem731 = iprot.readString(); - struct.part_vals.add(_elem731); + _elem747 = iprot.readString(); + struct.part_vals.add(_elem747); } iprot.readListEnd(); } @@ -62454,9 +63740,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 _iter733 : struct.part_vals) + for (String _iter749 : struct.part_vals) { - oprot.writeString(_iter733); + oprot.writeString(_iter749); } oprot.writeListEnd(); } @@ -62513,9 +63799,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 _iter734 : struct.part_vals) + for (String _iter750 : struct.part_vals) { - oprot.writeString(_iter734); + oprot.writeString(_iter750); } } } @@ -62541,13 +63827,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_ } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list735 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list735.size); - String _elem736; - for (int _i737 = 0; _i737 < _list735.size; ++_i737) + org.apache.thrift.protocol.TList _list751 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list751.size); + String _elem752; + for (int _i753 = 0; _i753 < _list751.size; ++_i753) { - _elem736 = iprot.readString(); - struct.part_vals.add(_elem736); + _elem752 = iprot.readString(); + struct.part_vals.add(_elem752); } } struct.setPart_valsIsSet(true); @@ -67149,13 +68435,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 _list738 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list738.size); - String _elem739; - for (int _i740 = 0; _i740 < _list738.size; ++_i740) + org.apache.thrift.protocol.TList _list754 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list754.size); + String _elem755; + for (int _i756 = 0; _i756 < _list754.size; ++_i756) { - _elem739 = iprot.readString(); - struct.part_vals.add(_elem739); + _elem755 = iprot.readString(); + struct.part_vals.add(_elem755); } iprot.readListEnd(); } @@ -67191,9 +68477,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 _iter741 : struct.part_vals) + for (String _iter757 : struct.part_vals) { - oprot.writeString(_iter741); + oprot.writeString(_iter757); } oprot.writeListEnd(); } @@ -67236,9 +68522,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 _iter742 : struct.part_vals) + for (String _iter758 : struct.part_vals) { - oprot.writeString(_iter742); + oprot.writeString(_iter758); } } } @@ -67258,13 +68544,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_args s } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list743 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list743.size); - String _elem744; - for (int _i745 = 0; _i745 < _list743.size; ++_i745) + org.apache.thrift.protocol.TList _list759 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list759.size); + String _elem760; + for (int _i761 = 0; _i761 < _list759.size; ++_i761) { - _elem744 = iprot.readString(); - struct.part_vals.add(_elem744); + _elem760 = iprot.readString(); + struct.part_vals.add(_elem760); } } struct.setPart_valsIsSet(true); @@ -68482,15 +69768,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 _map746 = iprot.readMapBegin(); - struct.partitionSpecs = new HashMap(2*_map746.size); - String _key747; - String _val748; - for (int _i749 = 0; _i749 < _map746.size; ++_i749) + org.apache.thrift.protocol.TMap _map762 = iprot.readMapBegin(); + struct.partitionSpecs = new HashMap(2*_map762.size); + String _key763; + String _val764; + for (int _i765 = 0; _i765 < _map762.size; ++_i765) { - _key747 = iprot.readString(); - _val748 = iprot.readString(); - struct.partitionSpecs.put(_key747, _val748); + _key763 = iprot.readString(); + _val764 = iprot.readString(); + struct.partitionSpecs.put(_key763, _val764); } iprot.readMapEnd(); } @@ -68548,10 +69834,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 _iter750 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter766 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter750.getKey()); - oprot.writeString(_iter750.getValue()); + oprot.writeString(_iter766.getKey()); + oprot.writeString(_iter766.getValue()); } oprot.writeMapEnd(); } @@ -68614,10 +69900,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_ if (struct.isSetPartitionSpecs()) { { oprot.writeI32(struct.partitionSpecs.size()); - for (Map.Entry _iter751 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter767 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter751.getKey()); - oprot.writeString(_iter751.getValue()); + oprot.writeString(_iter767.getKey()); + oprot.writeString(_iter767.getValue()); } } } @@ -68641,15 +69927,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 _map752 = 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*_map752.size); - String _key753; - String _val754; - for (int _i755 = 0; _i755 < _map752.size; ++_i755) + org.apache.thrift.protocol.TMap _map768 = 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*_map768.size); + String _key769; + String _val770; + for (int _i771 = 0; _i771 < _map768.size; ++_i771) { - _key753 = iprot.readString(); - _val754 = iprot.readString(); - struct.partitionSpecs.put(_key753, _val754); + _key769 = iprot.readString(); + _val770 = iprot.readString(); + struct.partitionSpecs.put(_key769, _val770); } } struct.setPartitionSpecsIsSet(true); @@ -70095,15 +71381,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partitions case 1: // PARTITION_SPECS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map756 = iprot.readMapBegin(); - struct.partitionSpecs = new HashMap(2*_map756.size); - String _key757; - String _val758; - for (int _i759 = 0; _i759 < _map756.size; ++_i759) + org.apache.thrift.protocol.TMap _map772 = iprot.readMapBegin(); + struct.partitionSpecs = new HashMap(2*_map772.size); + String _key773; + String _val774; + for (int _i775 = 0; _i775 < _map772.size; ++_i775) { - _key757 = iprot.readString(); - _val758 = iprot.readString(); - struct.partitionSpecs.put(_key757, _val758); + _key773 = iprot.readString(); + _val774 = iprot.readString(); + struct.partitionSpecs.put(_key773, _val774); } iprot.readMapEnd(); } @@ -70161,10 +71447,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 _iter760 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter776 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter760.getKey()); - oprot.writeString(_iter760.getValue()); + oprot.writeString(_iter776.getKey()); + oprot.writeString(_iter776.getValue()); } oprot.writeMapEnd(); } @@ -70227,10 +71513,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions if (struct.isSetPartitionSpecs()) { { oprot.writeI32(struct.partitionSpecs.size()); - for (Map.Entry _iter761 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter777 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter761.getKey()); - oprot.writeString(_iter761.getValue()); + oprot.writeString(_iter777.getKey()); + oprot.writeString(_iter777.getValue()); } } } @@ -70254,15 +71540,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_ BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map762 = 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*_map762.size); - String _key763; - String _val764; - for (int _i765 = 0; _i765 < _map762.size; ++_i765) + org.apache.thrift.protocol.TMap _map778 = 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*_map778.size); + String _key779; + String _val780; + for (int _i781 = 0; _i781 < _map778.size; ++_i781) { - _key763 = iprot.readString(); - _val764 = iprot.readString(); - struct.partitionSpecs.put(_key763, _val764); + _key779 = iprot.readString(); + _val780 = iprot.readString(); + struct.partitionSpecs.put(_key779, _val780); } } struct.setPartitionSpecsIsSet(true); @@ -70927,14 +72213,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partitions case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list766 = iprot.readListBegin(); - struct.success = new ArrayList(_list766.size); - Partition _elem767; - for (int _i768 = 0; _i768 < _list766.size; ++_i768) + org.apache.thrift.protocol.TList _list782 = iprot.readListBegin(); + struct.success = new ArrayList(_list782.size); + Partition _elem783; + for (int _i784 = 0; _i784 < _list782.size; ++_i784) { - _elem767 = new Partition(); - _elem767.read(iprot); - struct.success.add(_elem767); + _elem783 = new Partition(); + _elem783.read(iprot); + struct.success.add(_elem783); } iprot.readListEnd(); } @@ -70996,9 +72282,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter769 : struct.success) + for (Partition _iter785 : struct.success) { - _iter769.write(oprot); + _iter785.write(oprot); } oprot.writeListEnd(); } @@ -71061,9 +72347,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter770 : struct.success) + for (Partition _iter786 : struct.success) { - _iter770.write(oprot); + _iter786.write(oprot); } } } @@ -71087,14 +72373,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_ BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list771 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list771.size); - Partition _elem772; - for (int _i773 = 0; _i773 < _list771.size; ++_i773) + org.apache.thrift.protocol.TList _list787 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list787.size); + Partition _elem788; + for (int _i789 = 0; _i789 < _list787.size; ++_i789) { - _elem772 = new Partition(); - _elem772.read(iprot); - struct.success.add(_elem772); + _elem788 = new Partition(); + _elem788.read(iprot); + struct.success.add(_elem788); } } struct.setSuccessIsSet(true); @@ -71793,13 +73079,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 _list774 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list774.size); - String _elem775; - for (int _i776 = 0; _i776 < _list774.size; ++_i776) + org.apache.thrift.protocol.TList _list790 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list790.size); + String _elem791; + for (int _i792 = 0; _i792 < _list790.size; ++_i792) { - _elem775 = iprot.readString(); - struct.part_vals.add(_elem775); + _elem791 = iprot.readString(); + struct.part_vals.add(_elem791); } iprot.readListEnd(); } @@ -71819,13 +73105,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 _list777 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list777.size); - String _elem778; - for (int _i779 = 0; _i779 < _list777.size; ++_i779) + org.apache.thrift.protocol.TList _list793 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list793.size); + String _elem794; + for (int _i795 = 0; _i795 < _list793.size; ++_i795) { - _elem778 = iprot.readString(); - struct.group_names.add(_elem778); + _elem794 = iprot.readString(); + struct.group_names.add(_elem794); } iprot.readListEnd(); } @@ -71861,9 +73147,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 _iter780 : struct.part_vals) + for (String _iter796 : struct.part_vals) { - oprot.writeString(_iter780); + oprot.writeString(_iter796); } oprot.writeListEnd(); } @@ -71878,9 +73164,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 _iter781 : struct.group_names) + for (String _iter797 : struct.group_names) { - oprot.writeString(_iter781); + oprot.writeString(_iter797); } oprot.writeListEnd(); } @@ -71929,9 +73215,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 _iter782 : struct.part_vals) + for (String _iter798 : struct.part_vals) { - oprot.writeString(_iter782); + oprot.writeString(_iter798); } } } @@ -71941,9 +73227,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 _iter783 : struct.group_names) + for (String _iter799 : struct.group_names) { - oprot.writeString(_iter783); + oprot.writeString(_iter799); } } } @@ -71963,13 +73249,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list784 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list784.size); - String _elem785; - for (int _i786 = 0; _i786 < _list784.size; ++_i786) + org.apache.thrift.protocol.TList _list800 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list800.size); + String _elem801; + for (int _i802 = 0; _i802 < _list800.size; ++_i802) { - _elem785 = iprot.readString(); - struct.part_vals.add(_elem785); + _elem801 = iprot.readString(); + struct.part_vals.add(_elem801); } } struct.setPart_valsIsSet(true); @@ -71980,13 +73266,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list787 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list787.size); - String _elem788; - for (int _i789 = 0; _i789 < _list787.size; ++_i789) + org.apache.thrift.protocol.TList _list803 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list803.size); + String _elem804; + for (int _i805 = 0; _i805 < _list803.size; ++_i805) { - _elem788 = iprot.readString(); - struct.group_names.add(_elem788); + _elem804 = iprot.readString(); + struct.group_names.add(_elem804); } } struct.setGroup_namesIsSet(true); @@ -74755,14 +76041,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 _list790 = iprot.readListBegin(); - struct.success = new ArrayList(_list790.size); - Partition _elem791; - for (int _i792 = 0; _i792 < _list790.size; ++_i792) + org.apache.thrift.protocol.TList _list806 = iprot.readListBegin(); + struct.success = new ArrayList(_list806.size); + Partition _elem807; + for (int _i808 = 0; _i808 < _list806.size; ++_i808) { - _elem791 = new Partition(); - _elem791.read(iprot); - struct.success.add(_elem791); + _elem807 = new Partition(); + _elem807.read(iprot); + struct.success.add(_elem807); } iprot.readListEnd(); } @@ -74806,9 +76092,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 _iter793 : struct.success) + for (Partition _iter809 : struct.success) { - _iter793.write(oprot); + _iter809.write(oprot); } oprot.writeListEnd(); } @@ -74855,9 +76141,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter794 : struct.success) + for (Partition _iter810 : struct.success) { - _iter794.write(oprot); + _iter810.write(oprot); } } } @@ -74875,14 +76161,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 _list795 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list795.size); - Partition _elem796; - for (int _i797 = 0; _i797 < _list795.size; ++_i797) + org.apache.thrift.protocol.TList _list811 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list811.size); + Partition _elem812; + for (int _i813 = 0; _i813 < _list811.size; ++_i813) { - _elem796 = new Partition(); - _elem796.read(iprot); - struct.success.add(_elem796); + _elem812 = new Partition(); + _elem812.read(iprot); + struct.success.add(_elem812); } } struct.setSuccessIsSet(true); @@ -75572,13 +76858,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 _list798 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list798.size); - String _elem799; - for (int _i800 = 0; _i800 < _list798.size; ++_i800) + org.apache.thrift.protocol.TList _list814 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list814.size); + String _elem815; + for (int _i816 = 0; _i816 < _list814.size; ++_i816) { - _elem799 = iprot.readString(); - struct.group_names.add(_elem799); + _elem815 = iprot.readString(); + struct.group_names.add(_elem815); } iprot.readListEnd(); } @@ -75622,9 +76908,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 _iter801 : struct.group_names) + for (String _iter817 : struct.group_names) { - oprot.writeString(_iter801); + oprot.writeString(_iter817); } oprot.writeListEnd(); } @@ -75679,9 +76965,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 _iter802 : struct.group_names) + for (String _iter818 : struct.group_names) { - oprot.writeString(_iter802); + oprot.writeString(_iter818); } } } @@ -75709,13 +76995,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list803 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list803.size); - String _elem804; - for (int _i805 = 0; _i805 < _list803.size; ++_i805) + org.apache.thrift.protocol.TList _list819 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list819.size); + String _elem820; + for (int _i821 = 0; _i821 < _list819.size; ++_i821) { - _elem804 = iprot.readString(); - struct.group_names.add(_elem804); + _elem820 = iprot.readString(); + struct.group_names.add(_elem820); } } struct.setGroup_namesIsSet(true); @@ -76202,14 +77488,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 _list806 = iprot.readListBegin(); - struct.success = new ArrayList(_list806.size); - Partition _elem807; - for (int _i808 = 0; _i808 < _list806.size; ++_i808) + org.apache.thrift.protocol.TList _list822 = iprot.readListBegin(); + struct.success = new ArrayList(_list822.size); + Partition _elem823; + for (int _i824 = 0; _i824 < _list822.size; ++_i824) { - _elem807 = new Partition(); - _elem807.read(iprot); - struct.success.add(_elem807); + _elem823 = new Partition(); + _elem823.read(iprot); + struct.success.add(_elem823); } iprot.readListEnd(); } @@ -76253,9 +77539,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 _iter809 : struct.success) + for (Partition _iter825 : struct.success) { - _iter809.write(oprot); + _iter825.write(oprot); } oprot.writeListEnd(); } @@ -76302,9 +77588,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter810 : struct.success) + for (Partition _iter826 : struct.success) { - _iter810.write(oprot); + _iter826.write(oprot); } } } @@ -76322,14 +77608,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 _list811 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list811.size); - Partition _elem812; - for (int _i813 = 0; _i813 < _list811.size; ++_i813) + org.apache.thrift.protocol.TList _list827 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list827.size); + Partition _elem828; + for (int _i829 = 0; _i829 < _list827.size; ++_i829) { - _elem812 = new Partition(); - _elem812.read(iprot); - struct.success.add(_elem812); + _elem828 = new Partition(); + _elem828.read(iprot); + struct.success.add(_elem828); } } struct.setSuccessIsSet(true); @@ -77392,14 +78678,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_pspe case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list814 = iprot.readListBegin(); - struct.success = new ArrayList(_list814.size); - PartitionSpec _elem815; - for (int _i816 = 0; _i816 < _list814.size; ++_i816) + org.apache.thrift.protocol.TList _list830 = iprot.readListBegin(); + struct.success = new ArrayList(_list830.size); + PartitionSpec _elem831; + for (int _i832 = 0; _i832 < _list830.size; ++_i832) { - _elem815 = new PartitionSpec(); - _elem815.read(iprot); - struct.success.add(_elem815); + _elem831 = new PartitionSpec(); + _elem831.read(iprot); + struct.success.add(_elem831); } iprot.readListEnd(); } @@ -77443,9 +78729,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_psp oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (PartitionSpec _iter817 : struct.success) + for (PartitionSpec _iter833 : struct.success) { - _iter817.write(oprot); + _iter833.write(oprot); } oprot.writeListEnd(); } @@ -77492,9 +78778,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspe if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (PartitionSpec _iter818 : struct.success) + for (PartitionSpec _iter834 : struct.success) { - _iter818.write(oprot); + _iter834.write(oprot); } } } @@ -77512,14 +78798,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list819 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list819.size); - PartitionSpec _elem820; - for (int _i821 = 0; _i821 < _list819.size; ++_i821) + org.apache.thrift.protocol.TList _list835 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list835.size); + PartitionSpec _elem836; + for (int _i837 = 0; _i837 < _list835.size; ++_i837) { - _elem820 = new PartitionSpec(); - _elem820.read(iprot); - struct.success.add(_elem820); + _elem836 = new PartitionSpec(); + _elem836.read(iprot); + struct.success.add(_elem836); } } struct.setSuccessIsSet(true); @@ -78498,13 +79784,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 _list822 = iprot.readListBegin(); - struct.success = new ArrayList(_list822.size); - String _elem823; - for (int _i824 = 0; _i824 < _list822.size; ++_i824) + org.apache.thrift.protocol.TList _list838 = iprot.readListBegin(); + struct.success = new ArrayList(_list838.size); + String _elem839; + for (int _i840 = 0; _i840 < _list838.size; ++_i840) { - _elem823 = iprot.readString(); - struct.success.add(_elem823); + _elem839 = iprot.readString(); + struct.success.add(_elem839); } iprot.readListEnd(); } @@ -78539,9 +79825,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 _iter825 : struct.success) + for (String _iter841 : struct.success) { - oprot.writeString(_iter825); + oprot.writeString(_iter841); } oprot.writeListEnd(); } @@ -78580,9 +79866,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter826 : struct.success) + for (String _iter842 : struct.success) { - oprot.writeString(_iter826); + oprot.writeString(_iter842); } } } @@ -78597,13 +79883,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 _list827 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list827.size); - String _elem828; - for (int _i829 = 0; _i829 < _list827.size; ++_i829) + org.apache.thrift.protocol.TList _list843 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list843.size); + String _elem844; + for (int _i845 = 0; _i845 < _list843.size; ++_i845) { - _elem828 = iprot.readString(); - struct.success.add(_elem828); + _elem844 = iprot.readString(); + struct.success.add(_elem844); } } struct.setSuccessIsSet(true); @@ -79191,13 +80477,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 _list830 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list830.size); - String _elem831; - for (int _i832 = 0; _i832 < _list830.size; ++_i832) + org.apache.thrift.protocol.TList _list846 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list846.size); + String _elem847; + for (int _i848 = 0; _i848 < _list846.size; ++_i848) { - _elem831 = iprot.readString(); - struct.part_vals.add(_elem831); + _elem847 = iprot.readString(); + struct.part_vals.add(_elem847); } iprot.readListEnd(); } @@ -79241,9 +80527,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 _iter833 : struct.part_vals) + for (String _iter849 : struct.part_vals) { - oprot.writeString(_iter833); + oprot.writeString(_iter849); } oprot.writeListEnd(); } @@ -79292,9 +80578,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 _iter834 : struct.part_vals) + for (String _iter850 : struct.part_vals) { - oprot.writeString(_iter834); + oprot.writeString(_iter850); } } } @@ -79317,13 +80603,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list835 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list835.size); - String _elem836; - for (int _i837 = 0; _i837 < _list835.size; ++_i837) + org.apache.thrift.protocol.TList _list851 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list851.size); + String _elem852; + for (int _i853 = 0; _i853 < _list851.size; ++_i853) { - _elem836 = iprot.readString(); - struct.part_vals.add(_elem836); + _elem852 = iprot.readString(); + struct.part_vals.add(_elem852); } } struct.setPart_valsIsSet(true); @@ -79814,14 +81100,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 _list838 = iprot.readListBegin(); - struct.success = new ArrayList(_list838.size); - Partition _elem839; - for (int _i840 = 0; _i840 < _list838.size; ++_i840) + org.apache.thrift.protocol.TList _list854 = iprot.readListBegin(); + struct.success = new ArrayList(_list854.size); + Partition _elem855; + for (int _i856 = 0; _i856 < _list854.size; ++_i856) { - _elem839 = new Partition(); - _elem839.read(iprot); - struct.success.add(_elem839); + _elem855 = new Partition(); + _elem855.read(iprot); + struct.success.add(_elem855); } iprot.readListEnd(); } @@ -79865,9 +81151,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 _iter841 : struct.success) + for (Partition _iter857 : struct.success) { - _iter841.write(oprot); + _iter857.write(oprot); } oprot.writeListEnd(); } @@ -79914,9 +81200,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter842 : struct.success) + for (Partition _iter858 : struct.success) { - _iter842.write(oprot); + _iter858.write(oprot); } } } @@ -79934,14 +81220,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 _list843 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list843.size); - Partition _elem844; - for (int _i845 = 0; _i845 < _list843.size; ++_i845) + org.apache.thrift.protocol.TList _list859 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list859.size); + Partition _elem860; + for (int _i861 = 0; _i861 < _list859.size; ++_i861) { - _elem844 = new Partition(); - _elem844.read(iprot); - struct.success.add(_elem844); + _elem860 = new Partition(); + _elem860.read(iprot); + struct.success.add(_elem860); } } struct.setSuccessIsSet(true); @@ -80713,13 +81999,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 _list846 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list846.size); - String _elem847; - for (int _i848 = 0; _i848 < _list846.size; ++_i848) + org.apache.thrift.protocol.TList _list862 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list862.size); + String _elem863; + for (int _i864 = 0; _i864 < _list862.size; ++_i864) { - _elem847 = iprot.readString(); - struct.part_vals.add(_elem847); + _elem863 = iprot.readString(); + struct.part_vals.add(_elem863); } iprot.readListEnd(); } @@ -80747,13 +82033,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 _list849 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list849.size); - String _elem850; - for (int _i851 = 0; _i851 < _list849.size; ++_i851) + org.apache.thrift.protocol.TList _list865 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list865.size); + String _elem866; + for (int _i867 = 0; _i867 < _list865.size; ++_i867) { - _elem850 = iprot.readString(); - struct.group_names.add(_elem850); + _elem866 = iprot.readString(); + struct.group_names.add(_elem866); } iprot.readListEnd(); } @@ -80789,9 +82075,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 _iter852 : struct.part_vals) + for (String _iter868 : struct.part_vals) { - oprot.writeString(_iter852); + oprot.writeString(_iter868); } oprot.writeListEnd(); } @@ -80809,9 +82095,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 _iter853 : struct.group_names) + for (String _iter869 : struct.group_names) { - oprot.writeString(_iter853); + oprot.writeString(_iter869); } oprot.writeListEnd(); } @@ -80863,9 +82149,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 _iter854 : struct.part_vals) + for (String _iter870 : struct.part_vals) { - oprot.writeString(_iter854); + oprot.writeString(_iter870); } } } @@ -80878,9 +82164,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 _iter855 : struct.group_names) + for (String _iter871 : struct.group_names) { - oprot.writeString(_iter855); + oprot.writeString(_iter871); } } } @@ -80900,13 +82186,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list856 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list856.size); - String _elem857; - for (int _i858 = 0; _i858 < _list856.size; ++_i858) + org.apache.thrift.protocol.TList _list872 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list872.size); + String _elem873; + for (int _i874 = 0; _i874 < _list872.size; ++_i874) { - _elem857 = iprot.readString(); - struct.part_vals.add(_elem857); + _elem873 = iprot.readString(); + struct.part_vals.add(_elem873); } } struct.setPart_valsIsSet(true); @@ -80921,13 +82207,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(5)) { { - org.apache.thrift.protocol.TList _list859 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list859.size); - String _elem860; - for (int _i861 = 0; _i861 < _list859.size; ++_i861) + org.apache.thrift.protocol.TList _list875 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list875.size); + String _elem876; + for (int _i877 = 0; _i877 < _list875.size; ++_i877) { - _elem860 = iprot.readString(); - struct.group_names.add(_elem860); + _elem876 = iprot.readString(); + struct.group_names.add(_elem876); } } struct.setGroup_namesIsSet(true); @@ -81414,14 +82700,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 _list862 = iprot.readListBegin(); - struct.success = new ArrayList(_list862.size); - Partition _elem863; - for (int _i864 = 0; _i864 < _list862.size; ++_i864) + org.apache.thrift.protocol.TList _list878 = iprot.readListBegin(); + struct.success = new ArrayList(_list878.size); + Partition _elem879; + for (int _i880 = 0; _i880 < _list878.size; ++_i880) { - _elem863 = new Partition(); - _elem863.read(iprot); - struct.success.add(_elem863); + _elem879 = new Partition(); + _elem879.read(iprot); + struct.success.add(_elem879); } iprot.readListEnd(); } @@ -81465,9 +82751,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 _iter865 : struct.success) + for (Partition _iter881 : struct.success) { - _iter865.write(oprot); + _iter881.write(oprot); } oprot.writeListEnd(); } @@ -81514,9 +82800,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter866 : struct.success) + for (Partition _iter882 : struct.success) { - _iter866.write(oprot); + _iter882.write(oprot); } } } @@ -81534,14 +82820,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 _list867 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list867.size); - Partition _elem868; - for (int _i869 = 0; _i869 < _list867.size; ++_i869) + org.apache.thrift.protocol.TList _list883 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list883.size); + Partition _elem884; + for (int _i885 = 0; _i885 < _list883.size; ++_i885) { - _elem868 = new Partition(); - _elem868.read(iprot); - struct.success.add(_elem868); + _elem884 = new Partition(); + _elem884.read(iprot); + struct.success.add(_elem884); } } struct.setSuccessIsSet(true); @@ -82134,13 +83420,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 _list870 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list870.size); - String _elem871; - for (int _i872 = 0; _i872 < _list870.size; ++_i872) + org.apache.thrift.protocol.TList _list886 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list886.size); + String _elem887; + for (int _i888 = 0; _i888 < _list886.size; ++_i888) { - _elem871 = iprot.readString(); - struct.part_vals.add(_elem871); + _elem887 = iprot.readString(); + struct.part_vals.add(_elem887); } iprot.readListEnd(); } @@ -82184,9 +83470,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 _iter873 : struct.part_vals) + for (String _iter889 : struct.part_vals) { - oprot.writeString(_iter873); + oprot.writeString(_iter889); } oprot.writeListEnd(); } @@ -82235,9 +83521,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 _iter874 : struct.part_vals) + for (String _iter890 : struct.part_vals) { - oprot.writeString(_iter874); + oprot.writeString(_iter890); } } } @@ -82260,13 +83546,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list875 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list875.size); - String _elem876; - for (int _i877 = 0; _i877 < _list875.size; ++_i877) + org.apache.thrift.protocol.TList _list891 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list891.size); + String _elem892; + for (int _i893 = 0; _i893 < _list891.size; ++_i893) { - _elem876 = iprot.readString(); - struct.part_vals.add(_elem876); + _elem892 = iprot.readString(); + struct.part_vals.add(_elem892); } } struct.setPart_valsIsSet(true); @@ -82754,13 +84040,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 _list878 = iprot.readListBegin(); - struct.success = new ArrayList(_list878.size); - String _elem879; - for (int _i880 = 0; _i880 < _list878.size; ++_i880) + org.apache.thrift.protocol.TList _list894 = iprot.readListBegin(); + struct.success = new ArrayList(_list894.size); + String _elem895; + for (int _i896 = 0; _i896 < _list894.size; ++_i896) { - _elem879 = iprot.readString(); - struct.success.add(_elem879); + _elem895 = iprot.readString(); + struct.success.add(_elem895); } iprot.readListEnd(); } @@ -82804,9 +84090,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 _iter881 : struct.success) + for (String _iter897 : struct.success) { - oprot.writeString(_iter881); + oprot.writeString(_iter897); } oprot.writeListEnd(); } @@ -82853,9 +84139,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter882 : struct.success) + for (String _iter898 : struct.success) { - oprot.writeString(_iter882); + oprot.writeString(_iter898); } } } @@ -82873,13 +84159,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 _list883 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list883.size); - String _elem884; - for (int _i885 = 0; _i885 < _list883.size; ++_i885) + org.apache.thrift.protocol.TList _list899 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list899.size); + String _elem900; + for (int _i901 = 0; _i901 < _list899.size; ++_i901) { - _elem884 = iprot.readString(); - struct.success.add(_elem884); + _elem900 = iprot.readString(); + struct.success.add(_elem900); } } struct.setSuccessIsSet(true); @@ -84046,14 +85332,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 _list886 = iprot.readListBegin(); - struct.success = new ArrayList(_list886.size); - Partition _elem887; - for (int _i888 = 0; _i888 < _list886.size; ++_i888) + org.apache.thrift.protocol.TList _list902 = iprot.readListBegin(); + struct.success = new ArrayList(_list902.size); + Partition _elem903; + for (int _i904 = 0; _i904 < _list902.size; ++_i904) { - _elem887 = new Partition(); - _elem887.read(iprot); - struct.success.add(_elem887); + _elem903 = new Partition(); + _elem903.read(iprot); + struct.success.add(_elem903); } iprot.readListEnd(); } @@ -84097,9 +85383,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 _iter889 : struct.success) + for (Partition _iter905 : struct.success) { - _iter889.write(oprot); + _iter905.write(oprot); } oprot.writeListEnd(); } @@ -84146,9 +85432,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_f if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter890 : struct.success) + for (Partition _iter906 : struct.success) { - _iter890.write(oprot); + _iter906.write(oprot); } } } @@ -84166,14 +85452,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 _list891 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list891.size); - Partition _elem892; - for (int _i893 = 0; _i893 < _list891.size; ++_i893) + org.apache.thrift.protocol.TList _list907 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list907.size); + Partition _elem908; + for (int _i909 = 0; _i909 < _list907.size; ++_i909) { - _elem892 = new Partition(); - _elem892.read(iprot); - struct.success.add(_elem892); + _elem908 = new Partition(); + _elem908.read(iprot); + struct.success.add(_elem908); } } struct.setSuccessIsSet(true); @@ -85340,14 +86626,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_part_specs_by_f case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list894 = iprot.readListBegin(); - struct.success = new ArrayList(_list894.size); - PartitionSpec _elem895; - for (int _i896 = 0; _i896 < _list894.size; ++_i896) + org.apache.thrift.protocol.TList _list910 = iprot.readListBegin(); + struct.success = new ArrayList(_list910.size); + PartitionSpec _elem911; + for (int _i912 = 0; _i912 < _list910.size; ++_i912) { - _elem895 = new PartitionSpec(); - _elem895.read(iprot); - struct.success.add(_elem895); + _elem911 = new PartitionSpec(); + _elem911.read(iprot); + struct.success.add(_elem911); } iprot.readListEnd(); } @@ -85391,9 +86677,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_part_specs_by_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (PartitionSpec _iter897 : struct.success) + for (PartitionSpec _iter913 : struct.success) { - _iter897.write(oprot); + _iter913.write(oprot); } oprot.writeListEnd(); } @@ -85440,9 +86726,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_f if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (PartitionSpec _iter898 : struct.success) + for (PartitionSpec _iter914 : struct.success) { - _iter898.write(oprot); + _iter914.write(oprot); } } } @@ -85460,14 +86746,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_fi BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list899 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list899.size); - PartitionSpec _elem900; - for (int _i901 = 0; _i901 < _list899.size; ++_i901) + org.apache.thrift.protocol.TList _list915 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list915.size); + PartitionSpec _elem916; + for (int _i917 = 0; _i917 < _list915.size; ++_i917) { - _elem900 = new PartitionSpec(); - _elem900.read(iprot); - struct.success.add(_elem900); + _elem916 = new PartitionSpec(); + _elem916.read(iprot); + struct.success.add(_elem916); } } struct.setSuccessIsSet(true); @@ -86915,13 +88201,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 _list902 = iprot.readListBegin(); - struct.names = new ArrayList(_list902.size); - String _elem903; - for (int _i904 = 0; _i904 < _list902.size; ++_i904) + org.apache.thrift.protocol.TList _list918 = iprot.readListBegin(); + struct.names = new ArrayList(_list918.size); + String _elem919; + for (int _i920 = 0; _i920 < _list918.size; ++_i920) { - _elem903 = iprot.readString(); - struct.names.add(_elem903); + _elem919 = iprot.readString(); + struct.names.add(_elem919); } iprot.readListEnd(); } @@ -86957,9 +88243,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 _iter905 : struct.names) + for (String _iter921 : struct.names) { - oprot.writeString(_iter905); + oprot.writeString(_iter921); } oprot.writeListEnd(); } @@ -87002,9 +88288,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetNames()) { { oprot.writeI32(struct.names.size()); - for (String _iter906 : struct.names) + for (String _iter922 : struct.names) { - oprot.writeString(_iter906); + oprot.writeString(_iter922); } } } @@ -87024,13 +88310,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_na } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list907 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.names = new ArrayList(_list907.size); - String _elem908; - for (int _i909 = 0; _i909 < _list907.size; ++_i909) + org.apache.thrift.protocol.TList _list923 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.names = new ArrayList(_list923.size); + String _elem924; + for (int _i925 = 0; _i925 < _list923.size; ++_i925) { - _elem908 = iprot.readString(); - struct.names.add(_elem908); + _elem924 = iprot.readString(); + struct.names.add(_elem924); } } struct.setNamesIsSet(true); @@ -87517,14 +88803,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 _list910 = iprot.readListBegin(); - struct.success = new ArrayList(_list910.size); - Partition _elem911; - for (int _i912 = 0; _i912 < _list910.size; ++_i912) + org.apache.thrift.protocol.TList _list926 = iprot.readListBegin(); + struct.success = new ArrayList(_list926.size); + Partition _elem927; + for (int _i928 = 0; _i928 < _list926.size; ++_i928) { - _elem911 = new Partition(); - _elem911.read(iprot); - struct.success.add(_elem911); + _elem927 = new Partition(); + _elem927.read(iprot); + struct.success.add(_elem927); } iprot.readListEnd(); } @@ -87568,9 +88854,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 _iter913 : struct.success) + for (Partition _iter929 : struct.success) { - _iter913.write(oprot); + _iter929.write(oprot); } oprot.writeListEnd(); } @@ -87617,9 +88903,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter914 : struct.success) + for (Partition _iter930 : struct.success) { - _iter914.write(oprot); + _iter930.write(oprot); } } } @@ -87637,14 +88923,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 _list915 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list915.size); - Partition _elem916; - for (int _i917 = 0; _i917 < _list915.size; ++_i917) + org.apache.thrift.protocol.TList _list931 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list931.size); + Partition _elem932; + for (int _i933 = 0; _i933 < _list931.size; ++_i933) { - _elem916 = new Partition(); - _elem916.read(iprot); - struct.success.add(_elem916); + _elem932 = new Partition(); + _elem932.read(iprot); + struct.success.add(_elem932); } } struct.setSuccessIsSet(true); @@ -89194,14 +90480,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 _list918 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list918.size); - Partition _elem919; - for (int _i920 = 0; _i920 < _list918.size; ++_i920) + org.apache.thrift.protocol.TList _list934 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list934.size); + Partition _elem935; + for (int _i936 = 0; _i936 < _list934.size; ++_i936) { - _elem919 = new Partition(); - _elem919.read(iprot); - struct.new_parts.add(_elem919); + _elem935 = new Partition(); + _elem935.read(iprot); + struct.new_parts.add(_elem935); } iprot.readListEnd(); } @@ -89237,9 +90523,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 _iter921 : struct.new_parts) + for (Partition _iter937 : struct.new_parts) { - _iter921.write(oprot); + _iter937.write(oprot); } oprot.writeListEnd(); } @@ -89282,9 +90568,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 _iter922 : struct.new_parts) + for (Partition _iter938 : struct.new_parts) { - _iter922.write(oprot); + _iter938.write(oprot); } } } @@ -89304,14 +90590,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list923 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list923.size); - Partition _elem924; - for (int _i925 = 0; _i925 < _list923.size; ++_i925) + org.apache.thrift.protocol.TList _list939 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list939.size); + Partition _elem940; + for (int _i941 = 0; _i941 < _list939.size; ++_i941) { - _elem924 = new Partition(); - _elem924.read(iprot); - struct.new_parts.add(_elem924); + _elem940 = new Partition(); + _elem940.read(iprot); + struct.new_parts.add(_elem940); } } struct.setNew_partsIsSet(true); @@ -91507,13 +92793,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 _list926 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list926.size); - String _elem927; - for (int _i928 = 0; _i928 < _list926.size; ++_i928) + org.apache.thrift.protocol.TList _list942 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list942.size); + String _elem943; + for (int _i944 = 0; _i944 < _list942.size; ++_i944) { - _elem927 = iprot.readString(); - struct.part_vals.add(_elem927); + _elem943 = iprot.readString(); + struct.part_vals.add(_elem943); } iprot.readListEnd(); } @@ -91558,9 +92844,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 _iter929 : struct.part_vals) + for (String _iter945 : struct.part_vals) { - oprot.writeString(_iter929); + oprot.writeString(_iter945); } oprot.writeListEnd(); } @@ -91611,9 +92897,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 _iter930 : struct.part_vals) + for (String _iter946 : struct.part_vals) { - oprot.writeString(_iter930); + oprot.writeString(_iter946); } } } @@ -91636,13 +92922,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, rename_partition_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list931 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list931.size); - String _elem932; - for (int _i933 = 0; _i933 < _list931.size; ++_i933) + org.apache.thrift.protocol.TList _list947 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list947.size); + String _elem948; + for (int _i949 = 0; _i949 < _list947.size; ++_i949) { - _elem932 = iprot.readString(); - struct.part_vals.add(_elem932); + _elem948 = iprot.readString(); + struct.part_vals.add(_elem948); } } struct.setPart_valsIsSet(true); @@ -92516,13 +93802,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 _list934 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list934.size); - String _elem935; - for (int _i936 = 0; _i936 < _list934.size; ++_i936) + org.apache.thrift.protocol.TList _list950 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list950.size); + String _elem951; + for (int _i952 = 0; _i952 < _list950.size; ++_i952) { - _elem935 = iprot.readString(); - struct.part_vals.add(_elem935); + _elem951 = iprot.readString(); + struct.part_vals.add(_elem951); } iprot.readListEnd(); } @@ -92556,9 +93842,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 _iter937 : struct.part_vals) + for (String _iter953 : struct.part_vals) { - oprot.writeString(_iter937); + oprot.writeString(_iter953); } oprot.writeListEnd(); } @@ -92595,9 +93881,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 _iter938 : struct.part_vals) + for (String _iter954 : struct.part_vals) { - oprot.writeString(_iter938); + oprot.writeString(_iter954); } } } @@ -92612,13 +93898,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 _list939 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list939.size); - String _elem940; - for (int _i941 = 0; _i941 < _list939.size; ++_i941) + org.apache.thrift.protocol.TList _list955 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list955.size); + String _elem956; + for (int _i957 = 0; _i957 < _list955.size; ++_i957) { - _elem940 = iprot.readString(); - struct.part_vals.add(_elem940); + _elem956 = iprot.readString(); + struct.part_vals.add(_elem956); } } struct.setPart_valsIsSet(true); @@ -94773,13 +96059,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 _list942 = iprot.readListBegin(); - struct.success = new ArrayList(_list942.size); - String _elem943; - for (int _i944 = 0; _i944 < _list942.size; ++_i944) + org.apache.thrift.protocol.TList _list958 = iprot.readListBegin(); + struct.success = new ArrayList(_list958.size); + String _elem959; + for (int _i960 = 0; _i960 < _list958.size; ++_i960) { - _elem943 = iprot.readString(); - struct.success.add(_elem943); + _elem959 = iprot.readString(); + struct.success.add(_elem959); } iprot.readListEnd(); } @@ -94814,9 +96100,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 _iter945 : struct.success) + for (String _iter961 : struct.success) { - oprot.writeString(_iter945); + oprot.writeString(_iter961); } oprot.writeListEnd(); } @@ -94855,9 +96141,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_to_v if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter946 : struct.success) + for (String _iter962 : struct.success) { - oprot.writeString(_iter946); + oprot.writeString(_iter962); } } } @@ -94872,13 +96158,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 _list947 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list947.size); - String _elem948; - for (int _i949 = 0; _i949 < _list947.size; ++_i949) + org.apache.thrift.protocol.TList _list963 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list963.size); + String _elem964; + for (int _i965 = 0; _i965 < _list963.size; ++_i965) { - _elem948 = iprot.readString(); - struct.success.add(_elem948); + _elem964 = iprot.readString(); + struct.success.add(_elem964); } } struct.setSuccessIsSet(true); @@ -95641,15 +96927,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 _map950 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map950.size); - String _key951; - String _val952; - for (int _i953 = 0; _i953 < _map950.size; ++_i953) + org.apache.thrift.protocol.TMap _map966 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map966.size); + String _key967; + String _val968; + for (int _i969 = 0; _i969 < _map966.size; ++_i969) { - _key951 = iprot.readString(); - _val952 = iprot.readString(); - struct.success.put(_key951, _val952); + _key967 = iprot.readString(); + _val968 = iprot.readString(); + struct.success.put(_key967, _val968); } iprot.readMapEnd(); } @@ -95684,10 +96970,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 _iter954 : struct.success.entrySet()) + for (Map.Entry _iter970 : struct.success.entrySet()) { - oprot.writeString(_iter954.getKey()); - oprot.writeString(_iter954.getValue()); + oprot.writeString(_iter970.getKey()); + oprot.writeString(_iter970.getValue()); } oprot.writeMapEnd(); } @@ -95726,10 +97012,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 _iter955 : struct.success.entrySet()) + for (Map.Entry _iter971 : struct.success.entrySet()) { - oprot.writeString(_iter955.getKey()); - oprot.writeString(_iter955.getValue()); + oprot.writeString(_iter971.getKey()); + oprot.writeString(_iter971.getValue()); } } } @@ -95744,15 +97030,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 _map956 = 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*_map956.size); - String _key957; - String _val958; - for (int _i959 = 0; _i959 < _map956.size; ++_i959) + org.apache.thrift.protocol.TMap _map972 = 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*_map972.size); + String _key973; + String _val974; + for (int _i975 = 0; _i975 < _map972.size; ++_i975) { - _key957 = iprot.readString(); - _val958 = iprot.readString(); - struct.success.put(_key957, _val958); + _key973 = iprot.readString(); + _val974 = iprot.readString(); + struct.success.put(_key973, _val974); } } struct.setSuccessIsSet(true); @@ -96347,15 +97633,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 _map960 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map960.size); - String _key961; - String _val962; - for (int _i963 = 0; _i963 < _map960.size; ++_i963) + org.apache.thrift.protocol.TMap _map976 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map976.size); + String _key977; + String _val978; + for (int _i979 = 0; _i979 < _map976.size; ++_i979) { - _key961 = iprot.readString(); - _val962 = iprot.readString(); - struct.part_vals.put(_key961, _val962); + _key977 = iprot.readString(); + _val978 = iprot.readString(); + struct.part_vals.put(_key977, _val978); } iprot.readMapEnd(); } @@ -96399,10 +97685,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 _iter964 : struct.part_vals.entrySet()) + for (Map.Entry _iter980 : struct.part_vals.entrySet()) { - oprot.writeString(_iter964.getKey()); - oprot.writeString(_iter964.getValue()); + oprot.writeString(_iter980.getKey()); + oprot.writeString(_iter980.getValue()); } oprot.writeMapEnd(); } @@ -96453,10 +97739,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, markPartitionForEve if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter965 : struct.part_vals.entrySet()) + for (Map.Entry _iter981 : struct.part_vals.entrySet()) { - oprot.writeString(_iter965.getKey()); - oprot.writeString(_iter965.getValue()); + oprot.writeString(_iter981.getKey()); + oprot.writeString(_iter981.getValue()); } } } @@ -96479,15 +97765,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, markPartitionForEven } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map966 = 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*_map966.size); - String _key967; - String _val968; - for (int _i969 = 0; _i969 < _map966.size; ++_i969) + org.apache.thrift.protocol.TMap _map982 = 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*_map982.size); + String _key983; + String _val984; + for (int _i985 = 0; _i985 < _map982.size; ++_i985) { - _key967 = iprot.readString(); - _val968 = iprot.readString(); - struct.part_vals.put(_key967, _val968); + _key983 = iprot.readString(); + _val984 = iprot.readString(); + struct.part_vals.put(_key983, _val984); } } struct.setPart_valsIsSet(true); @@ -97971,15 +99257,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 _map970 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map970.size); - String _key971; - String _val972; - for (int _i973 = 0; _i973 < _map970.size; ++_i973) + org.apache.thrift.protocol.TMap _map986 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map986.size); + String _key987; + String _val988; + for (int _i989 = 0; _i989 < _map986.size; ++_i989) { - _key971 = iprot.readString(); - _val972 = iprot.readString(); - struct.part_vals.put(_key971, _val972); + _key987 = iprot.readString(); + _val988 = iprot.readString(); + struct.part_vals.put(_key987, _val988); } iprot.readMapEnd(); } @@ -98023,10 +99309,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 _iter974 : struct.part_vals.entrySet()) + for (Map.Entry _iter990 : struct.part_vals.entrySet()) { - oprot.writeString(_iter974.getKey()); - oprot.writeString(_iter974.getValue()); + oprot.writeString(_iter990.getKey()); + oprot.writeString(_iter990.getValue()); } oprot.writeMapEnd(); } @@ -98077,10 +99363,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFo if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter975 : struct.part_vals.entrySet()) + for (Map.Entry _iter991 : struct.part_vals.entrySet()) { - oprot.writeString(_iter975.getKey()); - oprot.writeString(_iter975.getValue()); + oprot.writeString(_iter991.getKey()); + oprot.writeString(_iter991.getValue()); } } } @@ -98103,15 +99389,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFor } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map976 = 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*_map976.size); - String _key977; - String _val978; - for (int _i979 = 0; _i979 < _map976.size; ++_i979) + org.apache.thrift.protocol.TMap _map992 = 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*_map992.size); + String _key993; + String _val994; + for (int _i995 = 0; _i995 < _map992.size; ++_i995) { - _key977 = iprot.readString(); - _val978 = iprot.readString(); - struct.part_vals.put(_key977, _val978); + _key993 = iprot.readString(); + _val994 = iprot.readString(); + struct.part_vals.put(_key993, _val994); } } struct.setPart_valsIsSet(true); @@ -104835,14 +106121,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 _list980 = iprot.readListBegin(); - struct.success = new ArrayList(_list980.size); - Index _elem981; - for (int _i982 = 0; _i982 < _list980.size; ++_i982) + org.apache.thrift.protocol.TList _list996 = iprot.readListBegin(); + struct.success = new ArrayList(_list996.size); + Index _elem997; + for (int _i998 = 0; _i998 < _list996.size; ++_i998) { - _elem981 = new Index(); - _elem981.read(iprot); - struct.success.add(_elem981); + _elem997 = new Index(); + _elem997.read(iprot); + struct.success.add(_elem997); } iprot.readListEnd(); } @@ -104886,9 +106172,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 _iter983 : struct.success) + for (Index _iter999 : struct.success) { - _iter983.write(oprot); + _iter999.write(oprot); } oprot.writeListEnd(); } @@ -104935,9 +106221,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_indexes_result if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Index _iter984 : struct.success) + for (Index _iter1000 : struct.success) { - _iter984.write(oprot); + _iter1000.write(oprot); } } } @@ -104955,14 +106241,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 _list985 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list985.size); - Index _elem986; - for (int _i987 = 0; _i987 < _list985.size; ++_i987) + org.apache.thrift.protocol.TList _list1001 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1001.size); + Index _elem1002; + for (int _i1003 = 0; _i1003 < _list1001.size; ++_i1003) { - _elem986 = new Index(); - _elem986.read(iprot); - struct.success.add(_elem986); + _elem1002 = new Index(); + _elem1002.read(iprot); + struct.success.add(_elem1002); } } struct.setSuccessIsSet(true); @@ -105941,13 +107227,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 _list988 = iprot.readListBegin(); - struct.success = new ArrayList(_list988.size); - String _elem989; - for (int _i990 = 0; _i990 < _list988.size; ++_i990) + org.apache.thrift.protocol.TList _list1004 = iprot.readListBegin(); + struct.success = new ArrayList(_list1004.size); + String _elem1005; + for (int _i1006 = 0; _i1006 < _list1004.size; ++_i1006) { - _elem989 = iprot.readString(); - struct.success.add(_elem989); + _elem1005 = iprot.readString(); + struct.success.add(_elem1005); } iprot.readListEnd(); } @@ -105982,9 +107268,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 _iter991 : struct.success) + for (String _iter1007 : struct.success) { - oprot.writeString(_iter991); + oprot.writeString(_iter1007); } oprot.writeListEnd(); } @@ -106023,9 +107309,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_index_names_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter992 : struct.success) + for (String _iter1008 : struct.success) { - oprot.writeString(_iter992); + oprot.writeString(_iter1008); } } } @@ -106040,13 +107326,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 _list993 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list993.size); - String _elem994; - for (int _i995 = 0; _i995 < _list993.size; ++_i995) + org.apache.thrift.protocol.TList _list1009 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1009.size); + String _elem1010; + for (int _i1011 = 0; _i1011 < _list1009.size; ++_i1011) { - _elem994 = iprot.readString(); - struct.success.add(_elem994); + _elem1010 = iprot.readString(); + struct.success.add(_elem1010); } } struct.setSuccessIsSet(true); @@ -121781,13 +123067,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 _list996 = iprot.readListBegin(); - struct.success = new ArrayList(_list996.size); - String _elem997; - for (int _i998 = 0; _i998 < _list996.size; ++_i998) + org.apache.thrift.protocol.TList _list1012 = iprot.readListBegin(); + struct.success = new ArrayList(_list1012.size); + String _elem1013; + for (int _i1014 = 0; _i1014 < _list1012.size; ++_i1014) { - _elem997 = iprot.readString(); - struct.success.add(_elem997); + _elem1013 = iprot.readString(); + struct.success.add(_elem1013); } iprot.readListEnd(); } @@ -121822,9 +123108,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 _iter999 : struct.success) + for (String _iter1015 : struct.success) { - oprot.writeString(_iter999); + oprot.writeString(_iter1015); } oprot.writeListEnd(); } @@ -121863,9 +123149,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_functions_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1000 : struct.success) + for (String _iter1016 : struct.success) { - oprot.writeString(_iter1000); + oprot.writeString(_iter1016); } } } @@ -121880,13 +123166,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 _list1001 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1001.size); - String _elem1002; - for (int _i1003 = 0; _i1003 < _list1001.size; ++_i1003) + org.apache.thrift.protocol.TList _list1017 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1017.size); + String _elem1018; + for (int _i1019 = 0; _i1019 < _list1017.size; ++_i1019) { - _elem1002 = iprot.readString(); - struct.success.add(_elem1002); + _elem1018 = iprot.readString(); + struct.success.add(_elem1018); } } struct.setSuccessIsSet(true); @@ -125941,13 +127227,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 _list1004 = iprot.readListBegin(); - struct.success = new ArrayList(_list1004.size); - String _elem1005; - for (int _i1006 = 0; _i1006 < _list1004.size; ++_i1006) + org.apache.thrift.protocol.TList _list1020 = iprot.readListBegin(); + struct.success = new ArrayList(_list1020.size); + String _elem1021; + for (int _i1022 = 0; _i1022 < _list1020.size; ++_i1022) { - _elem1005 = iprot.readString(); - struct.success.add(_elem1005); + _elem1021 = iprot.readString(); + struct.success.add(_elem1021); } iprot.readListEnd(); } @@ -125982,9 +127268,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 _iter1007 : struct.success) + for (String _iter1023 : struct.success) { - oprot.writeString(_iter1007); + oprot.writeString(_iter1023); } oprot.writeListEnd(); } @@ -126023,9 +127309,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_role_names_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1008 : struct.success) + for (String _iter1024 : struct.success) { - oprot.writeString(_iter1008); + oprot.writeString(_iter1024); } } } @@ -126040,13 +127326,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 _list1009 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1009.size); - String _elem1010; - for (int _i1011 = 0; _i1011 < _list1009.size; ++_i1011) + org.apache.thrift.protocol.TList _list1025 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1025.size); + String _elem1026; + for (int _i1027 = 0; _i1027 < _list1025.size; ++_i1027) { - _elem1010 = iprot.readString(); - struct.success.add(_elem1010); + _elem1026 = iprot.readString(); + struct.success.add(_elem1026); } } struct.setSuccessIsSet(true); @@ -129337,14 +130623,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 _list1012 = iprot.readListBegin(); - struct.success = new ArrayList(_list1012.size); - Role _elem1013; - for (int _i1014 = 0; _i1014 < _list1012.size; ++_i1014) + org.apache.thrift.protocol.TList _list1028 = iprot.readListBegin(); + struct.success = new ArrayList(_list1028.size); + Role _elem1029; + for (int _i1030 = 0; _i1030 < _list1028.size; ++_i1030) { - _elem1013 = new Role(); - _elem1013.read(iprot); - struct.success.add(_elem1013); + _elem1029 = new Role(); + _elem1029.read(iprot); + struct.success.add(_elem1029); } iprot.readListEnd(); } @@ -129379,9 +130665,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 _iter1015 : struct.success) + for (Role _iter1031 : struct.success) { - _iter1015.write(oprot); + _iter1031.write(oprot); } oprot.writeListEnd(); } @@ -129420,9 +130706,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_roles_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Role _iter1016 : struct.success) + for (Role _iter1032 : struct.success) { - _iter1016.write(oprot); + _iter1032.write(oprot); } } } @@ -129437,14 +130723,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 _list1017 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1017.size); - Role _elem1018; - for (int _i1019 = 0; _i1019 < _list1017.size; ++_i1019) + org.apache.thrift.protocol.TList _list1033 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1033.size); + Role _elem1034; + for (int _i1035 = 0; _i1035 < _list1033.size; ++_i1035) { - _elem1018 = new Role(); - _elem1018.read(iprot); - struct.success.add(_elem1018); + _elem1034 = new Role(); + _elem1034.read(iprot); + struct.success.add(_elem1034); } } struct.setSuccessIsSet(true); @@ -132449,13 +133735,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 _list1020 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1020.size); - String _elem1021; - for (int _i1022 = 0; _i1022 < _list1020.size; ++_i1022) + org.apache.thrift.protocol.TList _list1036 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1036.size); + String _elem1037; + for (int _i1038 = 0; _i1038 < _list1036.size; ++_i1038) { - _elem1021 = iprot.readString(); - struct.group_names.add(_elem1021); + _elem1037 = iprot.readString(); + struct.group_names.add(_elem1037); } iprot.readListEnd(); } @@ -132491,9 +133777,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 _iter1023 : struct.group_names) + for (String _iter1039 : struct.group_names) { - oprot.writeString(_iter1023); + oprot.writeString(_iter1039); } oprot.writeListEnd(); } @@ -132536,9 +133822,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 _iter1024 : struct.group_names) + for (String _iter1040 : struct.group_names) { - oprot.writeString(_iter1024); + oprot.writeString(_iter1040); } } } @@ -132559,13 +133845,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_privilege_set_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1025 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1025.size); - String _elem1026; - for (int _i1027 = 0; _i1027 < _list1025.size; ++_i1027) + org.apache.thrift.protocol.TList _list1041 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1041.size); + String _elem1042; + for (int _i1043 = 0; _i1043 < _list1041.size; ++_i1043) { - _elem1026 = iprot.readString(); - struct.group_names.add(_elem1026); + _elem1042 = iprot.readString(); + struct.group_names.add(_elem1042); } } struct.setGroup_namesIsSet(true); @@ -134023,14 +135309,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 _list1028 = iprot.readListBegin(); - struct.success = new ArrayList(_list1028.size); - HiveObjectPrivilege _elem1029; - for (int _i1030 = 0; _i1030 < _list1028.size; ++_i1030) + org.apache.thrift.protocol.TList _list1044 = iprot.readListBegin(); + struct.success = new ArrayList(_list1044.size); + HiveObjectPrivilege _elem1045; + for (int _i1046 = 0; _i1046 < _list1044.size; ++_i1046) { - _elem1029 = new HiveObjectPrivilege(); - _elem1029.read(iprot); - struct.success.add(_elem1029); + _elem1045 = new HiveObjectPrivilege(); + _elem1045.read(iprot); + struct.success.add(_elem1045); } iprot.readListEnd(); } @@ -134065,9 +135351,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 _iter1031 : struct.success) + for (HiveObjectPrivilege _iter1047 : struct.success) { - _iter1031.write(oprot); + _iter1047.write(oprot); } oprot.writeListEnd(); } @@ -134106,9 +135392,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_privileges_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (HiveObjectPrivilege _iter1032 : struct.success) + for (HiveObjectPrivilege _iter1048 : struct.success) { - _iter1032.write(oprot); + _iter1048.write(oprot); } } } @@ -134123,14 +135409,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 _list1033 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1033.size); - HiveObjectPrivilege _elem1034; - for (int _i1035 = 0; _i1035 < _list1033.size; ++_i1035) + org.apache.thrift.protocol.TList _list1049 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1049.size); + HiveObjectPrivilege _elem1050; + for (int _i1051 = 0; _i1051 < _list1049.size; ++_i1051) { - _elem1034 = new HiveObjectPrivilege(); - _elem1034.read(iprot); - struct.success.add(_elem1034); + _elem1050 = new HiveObjectPrivilege(); + _elem1050.read(iprot); + struct.success.add(_elem1050); } } struct.setSuccessIsSet(true); @@ -137032,13 +138318,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 _list1036 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1036.size); - String _elem1037; - for (int _i1038 = 0; _i1038 < _list1036.size; ++_i1038) + org.apache.thrift.protocol.TList _list1052 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1052.size); + String _elem1053; + for (int _i1054 = 0; _i1054 < _list1052.size; ++_i1054) { - _elem1037 = iprot.readString(); - struct.group_names.add(_elem1037); + _elem1053 = iprot.readString(); + struct.group_names.add(_elem1053); } iprot.readListEnd(); } @@ -137069,9 +138355,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 _iter1039 : struct.group_names) + for (String _iter1055 : struct.group_names) { - oprot.writeString(_iter1039); + oprot.writeString(_iter1055); } oprot.writeListEnd(); } @@ -137108,9 +138394,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 _iter1040 : struct.group_names) + for (String _iter1056 : struct.group_names) { - oprot.writeString(_iter1040); + oprot.writeString(_iter1056); } } } @@ -137126,13 +138412,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_ugi_args struct) } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list1041 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1041.size); - String _elem1042; - for (int _i1043 = 0; _i1043 < _list1041.size; ++_i1043) + org.apache.thrift.protocol.TList _list1057 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1057.size); + String _elem1058; + for (int _i1059 = 0; _i1059 < _list1057.size; ++_i1059) { - _elem1042 = iprot.readString(); - struct.group_names.add(_elem1042); + _elem1058 = iprot.readString(); + struct.group_names.add(_elem1058); } } struct.setGroup_namesIsSet(true); @@ -137535,13 +138821,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 _list1044 = iprot.readListBegin(); - struct.success = new ArrayList(_list1044.size); - String _elem1045; - for (int _i1046 = 0; _i1046 < _list1044.size; ++_i1046) + org.apache.thrift.protocol.TList _list1060 = iprot.readListBegin(); + struct.success = new ArrayList(_list1060.size); + String _elem1061; + for (int _i1062 = 0; _i1062 < _list1060.size; ++_i1062) { - _elem1045 = iprot.readString(); - struct.success.add(_elem1045); + _elem1061 = iprot.readString(); + struct.success.add(_elem1061); } iprot.readListEnd(); } @@ -137576,9 +138862,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 _iter1047 : struct.success) + for (String _iter1063 : struct.success) { - oprot.writeString(_iter1047); + oprot.writeString(_iter1063); } oprot.writeListEnd(); } @@ -137617,9 +138903,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, set_ugi_result stru if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1048 : struct.success) + for (String _iter1064 : struct.success) { - oprot.writeString(_iter1048); + oprot.writeString(_iter1064); } } } @@ -137634,13 +138920,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 _list1049 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1049.size); - String _elem1050; - for (int _i1051 = 0; _i1051 < _list1049.size; ++_i1051) + org.apache.thrift.protocol.TList _list1065 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1065.size); + String _elem1066; + for (int _i1067 = 0; _i1067 < _list1065.size; ++_i1067) { - _elem1050 = iprot.readString(); - struct.success.add(_elem1050); + _elem1066 = iprot.readString(); + struct.success.add(_elem1066); } } struct.setSuccessIsSet(true); diff --git a/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php b/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php index a6862be..34c2205 100644 --- a/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php +++ b/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php @@ -181,6 +181,14 @@ interface ThriftHiveMetastoreIf extends \FacebookServiceIf { */ public function get_tables($db_name, $pattern); /** + * @param string $db_patterns + * @param string $tbl_patterns + * @param string[] $tbl_types + * @return \metastore\TableMeta[] + * @throws \metastore\MetaException + */ + public function get_table_meta($db_patterns, $tbl_patterns, array $tbl_types); + /** * @param string $db_name * @return string[] * @throws \metastore\MetaException @@ -2254,6 +2262,62 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("get_tables failed: unknown result"); } + public function get_table_meta($db_patterns, $tbl_patterns, array $tbl_types) + { + $this->send_get_table_meta($db_patterns, $tbl_patterns, $tbl_types); + return $this->recv_get_table_meta(); + } + + public function send_get_table_meta($db_patterns, $tbl_patterns, array $tbl_types) + { + $args = new \metastore\ThriftHiveMetastore_get_table_meta_args(); + $args->db_patterns = $db_patterns; + $args->tbl_patterns = $tbl_patterns; + $args->tbl_types = $tbl_types; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'get_table_meta', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('get_table_meta', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_get_table_meta() + { + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_table_meta_result', $this->input_->isStrictRead()); + else + { + $rseqid = 0; + $fname = null; + $mtype = 0; + + $this->input_->readMessageBegin($fname, $mtype, $rseqid); + if ($mtype == TMessageType::EXCEPTION) { + $x = new TApplicationException(); + $x->read($this->input_); + $this->input_->readMessageEnd(); + throw $x; + } + $result = new \metastore\ThriftHiveMetastore_get_table_meta_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + if ($result->success !== null) { + return $result->success; + } + if ($result->o1 !== null) { + throw $result->o1; + } + throw new \Exception("get_table_meta failed: unknown result"); + } + public function get_all_tables($db_name) { $this->send_get_all_tables($db_name); @@ -13287,6 +13351,281 @@ class ThriftHiveMetastore_get_tables_result { } +class ThriftHiveMetastore_get_table_meta_args { + static $_TSPEC; + + /** + * @var string + */ + public $db_patterns = null; + /** + * @var string + */ + public $tbl_patterns = null; + /** + * @var string[] + */ + public $tbl_types = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'db_patterns', + 'type' => TType::STRING, + ), + 2 => array( + 'var' => 'tbl_patterns', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'tbl_types', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + ); + } + if (is_array($vals)) { + if (isset($vals['db_patterns'])) { + $this->db_patterns = $vals['db_patterns']; + } + if (isset($vals['tbl_patterns'])) { + $this->tbl_patterns = $vals['tbl_patterns']; + } + if (isset($vals['tbl_types'])) { + $this->tbl_types = $vals['tbl_types']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_table_meta_args'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->db_patterns); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->tbl_patterns); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::LST) { + $this->tbl_types = array(); + $_size583 = 0; + $_etype586 = 0; + $xfer += $input->readListBegin($_etype586, $_size583); + for ($_i587 = 0; $_i587 < $_size583; ++$_i587) + { + $elem588 = null; + $xfer += $input->readString($elem588); + $this->tbl_types []= $elem588; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_table_meta_args'); + if ($this->db_patterns !== null) { + $xfer += $output->writeFieldBegin('db_patterns', TType::STRING, 1); + $xfer += $output->writeString($this->db_patterns); + $xfer += $output->writeFieldEnd(); + } + if ($this->tbl_patterns !== null) { + $xfer += $output->writeFieldBegin('tbl_patterns', TType::STRING, 2); + $xfer += $output->writeString($this->tbl_patterns); + $xfer += $output->writeFieldEnd(); + } + if ($this->tbl_types !== null) { + if (!is_array($this->tbl_types)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('tbl_types', TType::LST, 3); + { + $output->writeListBegin(TType::STRING, count($this->tbl_types)); + { + foreach ($this->tbl_types as $iter589) + { + $xfer += $output->writeString($iter589); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_get_table_meta_result { + static $_TSPEC; + + /** + * @var \metastore\TableMeta[] + */ + public $success = null; + /** + * @var \metastore\MetaException + */ + public $o1 = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 0 => array( + 'var' => 'success', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\TableMeta', + ), + ), + 1 => array( + 'var' => 'o1', + 'type' => TType::STRUCT, + 'class' => '\metastore\MetaException', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['success'])) { + $this->success = $vals['success']; + } + if (isset($vals['o1'])) { + $this->o1 = $vals['o1']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_table_meta_result'; + } + + 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 0: + if ($ftype == TType::LST) { + $this->success = array(); + $_size590 = 0; + $_etype593 = 0; + $xfer += $input->readListBegin($_etype593, $_size590); + for ($_i594 = 0; $_i594 < $_size590; ++$_i594) + { + $elem595 = null; + $elem595 = new \metastore\TableMeta(); + $xfer += $elem595->read($input); + $this->success []= $elem595; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 1: + if ($ftype == TType::STRUCT) { + $this->o1 = new \metastore\MetaException(); + $xfer += $this->o1->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_table_meta_result'); + if ($this->success !== null) { + if (!is_array($this->success)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('success', TType::LST, 0); + { + $output->writeListBegin(TType::STRUCT, count($this->success)); + { + foreach ($this->success as $iter596) + { + $xfer += $iter596->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->o1 !== null) { + $xfer += $output->writeFieldBegin('o1', TType::STRUCT, 1); + $xfer += $this->o1->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + class ThriftHiveMetastore_get_all_tables_args { static $_TSPEC; @@ -13424,14 +13763,14 @@ class ThriftHiveMetastore_get_all_tables_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size583 = 0; - $_etype586 = 0; - $xfer += $input->readListBegin($_etype586, $_size583); - for ($_i587 = 0; $_i587 < $_size583; ++$_i587) + $_size597 = 0; + $_etype600 = 0; + $xfer += $input->readListBegin($_etype600, $_size597); + for ($_i601 = 0; $_i601 < $_size597; ++$_i601) { - $elem588 = null; - $xfer += $input->readString($elem588); - $this->success []= $elem588; + $elem602 = null; + $xfer += $input->readString($elem602); + $this->success []= $elem602; } $xfer += $input->readListEnd(); } else { @@ -13467,9 +13806,9 @@ class ThriftHiveMetastore_get_all_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter589) + foreach ($this->success as $iter603) { - $xfer += $output->writeString($iter589); + $xfer += $output->writeString($iter603); } } $output->writeListEnd(); @@ -13784,14 +14123,14 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { case 2: if ($ftype == TType::LST) { $this->tbl_names = array(); - $_size590 = 0; - $_etype593 = 0; - $xfer += $input->readListBegin($_etype593, $_size590); - for ($_i594 = 0; $_i594 < $_size590; ++$_i594) + $_size604 = 0; + $_etype607 = 0; + $xfer += $input->readListBegin($_etype607, $_size604); + for ($_i608 = 0; $_i608 < $_size604; ++$_i608) { - $elem595 = null; - $xfer += $input->readString($elem595); - $this->tbl_names []= $elem595; + $elem609 = null; + $xfer += $input->readString($elem609); + $this->tbl_names []= $elem609; } $xfer += $input->readListEnd(); } else { @@ -13824,9 +14163,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { { $output->writeListBegin(TType::STRING, count($this->tbl_names)); { - foreach ($this->tbl_names as $iter596) + foreach ($this->tbl_names as $iter610) { - $xfer += $output->writeString($iter596); + $xfer += $output->writeString($iter610); } } $output->writeListEnd(); @@ -13927,15 +14266,15 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size597 = 0; - $_etype600 = 0; - $xfer += $input->readListBegin($_etype600, $_size597); - for ($_i601 = 0; $_i601 < $_size597; ++$_i601) + $_size611 = 0; + $_etype614 = 0; + $xfer += $input->readListBegin($_etype614, $_size611); + for ($_i615 = 0; $_i615 < $_size611; ++$_i615) { - $elem602 = null; - $elem602 = new \metastore\Table(); - $xfer += $elem602->read($input); - $this->success []= $elem602; + $elem616 = null; + $elem616 = new \metastore\Table(); + $xfer += $elem616->read($input); + $this->success []= $elem616; } $xfer += $input->readListEnd(); } else { @@ -13987,9 +14326,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter603) + foreach ($this->success as $iter617) { - $xfer += $iter603->write($output); + $xfer += $iter617->write($output); } } $output->writeListEnd(); @@ -14225,14 +14564,14 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size604 = 0; - $_etype607 = 0; - $xfer += $input->readListBegin($_etype607, $_size604); - for ($_i608 = 0; $_i608 < $_size604; ++$_i608) + $_size618 = 0; + $_etype621 = 0; + $xfer += $input->readListBegin($_etype621, $_size618); + for ($_i622 = 0; $_i622 < $_size618; ++$_i622) { - $elem609 = null; - $xfer += $input->readString($elem609); - $this->success []= $elem609; + $elem623 = null; + $xfer += $input->readString($elem623); + $this->success []= $elem623; } $xfer += $input->readListEnd(); } else { @@ -14284,9 +14623,9 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter610) + foreach ($this->success as $iter624) { - $xfer += $output->writeString($iter610); + $xfer += $output->writeString($iter624); } } $output->writeListEnd(); @@ -15599,15 +15938,15 @@ class ThriftHiveMetastore_add_partitions_args { case 1: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size611 = 0; - $_etype614 = 0; - $xfer += $input->readListBegin($_etype614, $_size611); - for ($_i615 = 0; $_i615 < $_size611; ++$_i615) + $_size625 = 0; + $_etype628 = 0; + $xfer += $input->readListBegin($_etype628, $_size625); + for ($_i629 = 0; $_i629 < $_size625; ++$_i629) { - $elem616 = null; - $elem616 = new \metastore\Partition(); - $xfer += $elem616->read($input); - $this->new_parts []= $elem616; + $elem630 = null; + $elem630 = new \metastore\Partition(); + $xfer += $elem630->read($input); + $this->new_parts []= $elem630; } $xfer += $input->readListEnd(); } else { @@ -15635,9 +15974,9 @@ class ThriftHiveMetastore_add_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter617) + foreach ($this->new_parts as $iter631) { - $xfer += $iter617->write($output); + $xfer += $iter631->write($output); } } $output->writeListEnd(); @@ -15852,15 +16191,15 @@ class ThriftHiveMetastore_add_partitions_pspec_args { case 1: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size618 = 0; - $_etype621 = 0; - $xfer += $input->readListBegin($_etype621, $_size618); - for ($_i622 = 0; $_i622 < $_size618; ++$_i622) + $_size632 = 0; + $_etype635 = 0; + $xfer += $input->readListBegin($_etype635, $_size632); + for ($_i636 = 0; $_i636 < $_size632; ++$_i636) { - $elem623 = null; - $elem623 = new \metastore\PartitionSpec(); - $xfer += $elem623->read($input); - $this->new_parts []= $elem623; + $elem637 = null; + $elem637 = new \metastore\PartitionSpec(); + $xfer += $elem637->read($input); + $this->new_parts []= $elem637; } $xfer += $input->readListEnd(); } else { @@ -15888,9 +16227,9 @@ class ThriftHiveMetastore_add_partitions_pspec_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter624) + foreach ($this->new_parts as $iter638) { - $xfer += $iter624->write($output); + $xfer += $iter638->write($output); } } $output->writeListEnd(); @@ -16140,14 +16479,14 @@ class ThriftHiveMetastore_append_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size625 = 0; - $_etype628 = 0; - $xfer += $input->readListBegin($_etype628, $_size625); - for ($_i629 = 0; $_i629 < $_size625; ++$_i629) + $_size639 = 0; + $_etype642 = 0; + $xfer += $input->readListBegin($_etype642, $_size639); + for ($_i643 = 0; $_i643 < $_size639; ++$_i643) { - $elem630 = null; - $xfer += $input->readString($elem630); - $this->part_vals []= $elem630; + $elem644 = null; + $xfer += $input->readString($elem644); + $this->part_vals []= $elem644; } $xfer += $input->readListEnd(); } else { @@ -16185,9 +16524,9 @@ class ThriftHiveMetastore_append_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter631) + foreach ($this->part_vals as $iter645) { - $xfer += $output->writeString($iter631); + $xfer += $output->writeString($iter645); } } $output->writeListEnd(); @@ -16689,14 +17028,14 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size632 = 0; - $_etype635 = 0; - $xfer += $input->readListBegin($_etype635, $_size632); - for ($_i636 = 0; $_i636 < $_size632; ++$_i636) + $_size646 = 0; + $_etype649 = 0; + $xfer += $input->readListBegin($_etype649, $_size646); + for ($_i650 = 0; $_i650 < $_size646; ++$_i650) { - $elem637 = null; - $xfer += $input->readString($elem637); - $this->part_vals []= $elem637; + $elem651 = null; + $xfer += $input->readString($elem651); + $this->part_vals []= $elem651; } $xfer += $input->readListEnd(); } else { @@ -16742,9 +17081,9 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter638) + foreach ($this->part_vals as $iter652) { - $xfer += $output->writeString($iter638); + $xfer += $output->writeString($iter652); } } $output->writeListEnd(); @@ -17598,14 +17937,14 @@ class ThriftHiveMetastore_drop_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size639 = 0; - $_etype642 = 0; - $xfer += $input->readListBegin($_etype642, $_size639); - for ($_i643 = 0; $_i643 < $_size639; ++$_i643) + $_size653 = 0; + $_etype656 = 0; + $xfer += $input->readListBegin($_etype656, $_size653); + for ($_i657 = 0; $_i657 < $_size653; ++$_i657) { - $elem644 = null; - $xfer += $input->readString($elem644); - $this->part_vals []= $elem644; + $elem658 = null; + $xfer += $input->readString($elem658); + $this->part_vals []= $elem658; } $xfer += $input->readListEnd(); } else { @@ -17650,9 +17989,9 @@ class ThriftHiveMetastore_drop_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter645) + foreach ($this->part_vals as $iter659) { - $xfer += $output->writeString($iter645); + $xfer += $output->writeString($iter659); } } $output->writeListEnd(); @@ -17905,14 +18244,14 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size646 = 0; - $_etype649 = 0; - $xfer += $input->readListBegin($_etype649, $_size646); - for ($_i650 = 0; $_i650 < $_size646; ++$_i650) + $_size660 = 0; + $_etype663 = 0; + $xfer += $input->readListBegin($_etype663, $_size660); + for ($_i664 = 0; $_i664 < $_size660; ++$_i664) { - $elem651 = null; - $xfer += $input->readString($elem651); - $this->part_vals []= $elem651; + $elem665 = null; + $xfer += $input->readString($elem665); + $this->part_vals []= $elem665; } $xfer += $input->readListEnd(); } else { @@ -17965,9 +18304,9 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter652) + foreach ($this->part_vals as $iter666) { - $xfer += $output->writeString($iter652); + $xfer += $output->writeString($iter666); } } $output->writeListEnd(); @@ -18981,14 +19320,14 @@ class ThriftHiveMetastore_get_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size653 = 0; - $_etype656 = 0; - $xfer += $input->readListBegin($_etype656, $_size653); - for ($_i657 = 0; $_i657 < $_size653; ++$_i657) + $_size667 = 0; + $_etype670 = 0; + $xfer += $input->readListBegin($_etype670, $_size667); + for ($_i671 = 0; $_i671 < $_size667; ++$_i671) { - $elem658 = null; - $xfer += $input->readString($elem658); - $this->part_vals []= $elem658; + $elem672 = null; + $xfer += $input->readString($elem672); + $this->part_vals []= $elem672; } $xfer += $input->readListEnd(); } else { @@ -19026,9 +19365,9 @@ class ThriftHiveMetastore_get_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter659) + foreach ($this->part_vals as $iter673) { - $xfer += $output->writeString($iter659); + $xfer += $output->writeString($iter673); } } $output->writeListEnd(); @@ -19270,17 +19609,17 @@ class ThriftHiveMetastore_exchange_partition_args { case 1: if ($ftype == TType::MAP) { $this->partitionSpecs = array(); - $_size660 = 0; - $_ktype661 = 0; - $_vtype662 = 0; - $xfer += $input->readMapBegin($_ktype661, $_vtype662, $_size660); - for ($_i664 = 0; $_i664 < $_size660; ++$_i664) + $_size674 = 0; + $_ktype675 = 0; + $_vtype676 = 0; + $xfer += $input->readMapBegin($_ktype675, $_vtype676, $_size674); + for ($_i678 = 0; $_i678 < $_size674; ++$_i678) { - $key665 = ''; - $val666 = ''; - $xfer += $input->readString($key665); - $xfer += $input->readString($val666); - $this->partitionSpecs[$key665] = $val666; + $key679 = ''; + $val680 = ''; + $xfer += $input->readString($key679); + $xfer += $input->readString($val680); + $this->partitionSpecs[$key679] = $val680; } $xfer += $input->readMapEnd(); } else { @@ -19336,10 +19675,10 @@ class ThriftHiveMetastore_exchange_partition_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); { - foreach ($this->partitionSpecs as $kiter667 => $viter668) + foreach ($this->partitionSpecs as $kiter681 => $viter682) { - $xfer += $output->writeString($kiter667); - $xfer += $output->writeString($viter668); + $xfer += $output->writeString($kiter681); + $xfer += $output->writeString($viter682); } } $output->writeMapEnd(); @@ -19651,17 +19990,17 @@ class ThriftHiveMetastore_exchange_partitions_args { case 1: if ($ftype == TType::MAP) { $this->partitionSpecs = array(); - $_size669 = 0; - $_ktype670 = 0; - $_vtype671 = 0; - $xfer += $input->readMapBegin($_ktype670, $_vtype671, $_size669); - for ($_i673 = 0; $_i673 < $_size669; ++$_i673) + $_size683 = 0; + $_ktype684 = 0; + $_vtype685 = 0; + $xfer += $input->readMapBegin($_ktype684, $_vtype685, $_size683); + for ($_i687 = 0; $_i687 < $_size683; ++$_i687) { - $key674 = ''; - $val675 = ''; - $xfer += $input->readString($key674); - $xfer += $input->readString($val675); - $this->partitionSpecs[$key674] = $val675; + $key688 = ''; + $val689 = ''; + $xfer += $input->readString($key688); + $xfer += $input->readString($val689); + $this->partitionSpecs[$key688] = $val689; } $xfer += $input->readMapEnd(); } else { @@ -19717,10 +20056,10 @@ class ThriftHiveMetastore_exchange_partitions_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); { - foreach ($this->partitionSpecs as $kiter676 => $viter677) + foreach ($this->partitionSpecs as $kiter690 => $viter691) { - $xfer += $output->writeString($kiter676); - $xfer += $output->writeString($viter677); + $xfer += $output->writeString($kiter690); + $xfer += $output->writeString($viter691); } } $output->writeMapEnd(); @@ -19853,15 +20192,15 @@ class ThriftHiveMetastore_exchange_partitions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size678 = 0; - $_etype681 = 0; - $xfer += $input->readListBegin($_etype681, $_size678); - for ($_i682 = 0; $_i682 < $_size678; ++$_i682) + $_size692 = 0; + $_etype695 = 0; + $xfer += $input->readListBegin($_etype695, $_size692); + for ($_i696 = 0; $_i696 < $_size692; ++$_i696) { - $elem683 = null; - $elem683 = new \metastore\Partition(); - $xfer += $elem683->read($input); - $this->success []= $elem683; + $elem697 = null; + $elem697 = new \metastore\Partition(); + $xfer += $elem697->read($input); + $this->success []= $elem697; } $xfer += $input->readListEnd(); } else { @@ -19921,9 +20260,9 @@ class ThriftHiveMetastore_exchange_partitions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter684) + foreach ($this->success as $iter698) { - $xfer += $iter684->write($output); + $xfer += $iter698->write($output); } } $output->writeListEnd(); @@ -20069,14 +20408,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size685 = 0; - $_etype688 = 0; - $xfer += $input->readListBegin($_etype688, $_size685); - for ($_i689 = 0; $_i689 < $_size685; ++$_i689) + $_size699 = 0; + $_etype702 = 0; + $xfer += $input->readListBegin($_etype702, $_size699); + for ($_i703 = 0; $_i703 < $_size699; ++$_i703) { - $elem690 = null; - $xfer += $input->readString($elem690); - $this->part_vals []= $elem690; + $elem704 = null; + $xfer += $input->readString($elem704); + $this->part_vals []= $elem704; } $xfer += $input->readListEnd(); } else { @@ -20093,14 +20432,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size691 = 0; - $_etype694 = 0; - $xfer += $input->readListBegin($_etype694, $_size691); - for ($_i695 = 0; $_i695 < $_size691; ++$_i695) + $_size705 = 0; + $_etype708 = 0; + $xfer += $input->readListBegin($_etype708, $_size705); + for ($_i709 = 0; $_i709 < $_size705; ++$_i709) { - $elem696 = null; - $xfer += $input->readString($elem696); - $this->group_names []= $elem696; + $elem710 = null; + $xfer += $input->readString($elem710); + $this->group_names []= $elem710; } $xfer += $input->readListEnd(); } else { @@ -20138,9 +20477,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter697) + foreach ($this->part_vals as $iter711) { - $xfer += $output->writeString($iter697); + $xfer += $output->writeString($iter711); } } $output->writeListEnd(); @@ -20160,9 +20499,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter698) + foreach ($this->group_names as $iter712) { - $xfer += $output->writeString($iter698); + $xfer += $output->writeString($iter712); } } $output->writeListEnd(); @@ -20753,15 +21092,15 @@ class ThriftHiveMetastore_get_partitions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size699 = 0; - $_etype702 = 0; - $xfer += $input->readListBegin($_etype702, $_size699); - for ($_i703 = 0; $_i703 < $_size699; ++$_i703) + $_size713 = 0; + $_etype716 = 0; + $xfer += $input->readListBegin($_etype716, $_size713); + for ($_i717 = 0; $_i717 < $_size713; ++$_i717) { - $elem704 = null; - $elem704 = new \metastore\Partition(); - $xfer += $elem704->read($input); - $this->success []= $elem704; + $elem718 = null; + $elem718 = new \metastore\Partition(); + $xfer += $elem718->read($input); + $this->success []= $elem718; } $xfer += $input->readListEnd(); } else { @@ -20805,9 +21144,9 @@ class ThriftHiveMetastore_get_partitions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter705) + foreach ($this->success as $iter719) { - $xfer += $iter705->write($output); + $xfer += $iter719->write($output); } } $output->writeListEnd(); @@ -20953,14 +21292,14 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size706 = 0; - $_etype709 = 0; - $xfer += $input->readListBegin($_etype709, $_size706); - for ($_i710 = 0; $_i710 < $_size706; ++$_i710) + $_size720 = 0; + $_etype723 = 0; + $xfer += $input->readListBegin($_etype723, $_size720); + for ($_i724 = 0; $_i724 < $_size720; ++$_i724) { - $elem711 = null; - $xfer += $input->readString($elem711); - $this->group_names []= $elem711; + $elem725 = null; + $xfer += $input->readString($elem725); + $this->group_names []= $elem725; } $xfer += $input->readListEnd(); } else { @@ -21008,9 +21347,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter712) + foreach ($this->group_names as $iter726) { - $xfer += $output->writeString($iter712); + $xfer += $output->writeString($iter726); } } $output->writeListEnd(); @@ -21099,15 +21438,15 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size713 = 0; - $_etype716 = 0; - $xfer += $input->readListBegin($_etype716, $_size713); - for ($_i717 = 0; $_i717 < $_size713; ++$_i717) + $_size727 = 0; + $_etype730 = 0; + $xfer += $input->readListBegin($_etype730, $_size727); + for ($_i731 = 0; $_i731 < $_size727; ++$_i731) { - $elem718 = null; - $elem718 = new \metastore\Partition(); - $xfer += $elem718->read($input); - $this->success []= $elem718; + $elem732 = null; + $elem732 = new \metastore\Partition(); + $xfer += $elem732->read($input); + $this->success []= $elem732; } $xfer += $input->readListEnd(); } else { @@ -21151,9 +21490,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter719) + foreach ($this->success as $iter733) { - $xfer += $iter719->write($output); + $xfer += $iter733->write($output); } } $output->writeListEnd(); @@ -21373,15 +21712,15 @@ class ThriftHiveMetastore_get_partitions_pspec_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size720 = 0; - $_etype723 = 0; - $xfer += $input->readListBegin($_etype723, $_size720); - for ($_i724 = 0; $_i724 < $_size720; ++$_i724) + $_size734 = 0; + $_etype737 = 0; + $xfer += $input->readListBegin($_etype737, $_size734); + for ($_i738 = 0; $_i738 < $_size734; ++$_i738) { - $elem725 = null; - $elem725 = new \metastore\PartitionSpec(); - $xfer += $elem725->read($input); - $this->success []= $elem725; + $elem739 = null; + $elem739 = new \metastore\PartitionSpec(); + $xfer += $elem739->read($input); + $this->success []= $elem739; } $xfer += $input->readListEnd(); } else { @@ -21425,9 +21764,9 @@ class ThriftHiveMetastore_get_partitions_pspec_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter726) + foreach ($this->success as $iter740) { - $xfer += $iter726->write($output); + $xfer += $iter740->write($output); } } $output->writeListEnd(); @@ -21634,14 +21973,14 @@ class ThriftHiveMetastore_get_partition_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size727 = 0; - $_etype730 = 0; - $xfer += $input->readListBegin($_etype730, $_size727); - for ($_i731 = 0; $_i731 < $_size727; ++$_i731) + $_size741 = 0; + $_etype744 = 0; + $xfer += $input->readListBegin($_etype744, $_size741); + for ($_i745 = 0; $_i745 < $_size741; ++$_i745) { - $elem732 = null; - $xfer += $input->readString($elem732); - $this->success []= $elem732; + $elem746 = null; + $xfer += $input->readString($elem746); + $this->success []= $elem746; } $xfer += $input->readListEnd(); } else { @@ -21677,9 +22016,9 @@ class ThriftHiveMetastore_get_partition_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter733) + foreach ($this->success as $iter747) { - $xfer += $output->writeString($iter733); + $xfer += $output->writeString($iter747); } } $output->writeListEnd(); @@ -21795,14 +22134,14 @@ class ThriftHiveMetastore_get_partitions_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size734 = 0; - $_etype737 = 0; - $xfer += $input->readListBegin($_etype737, $_size734); - for ($_i738 = 0; $_i738 < $_size734; ++$_i738) + $_size748 = 0; + $_etype751 = 0; + $xfer += $input->readListBegin($_etype751, $_size748); + for ($_i752 = 0; $_i752 < $_size748; ++$_i752) { - $elem739 = null; - $xfer += $input->readString($elem739); - $this->part_vals []= $elem739; + $elem753 = null; + $xfer += $input->readString($elem753); + $this->part_vals []= $elem753; } $xfer += $input->readListEnd(); } else { @@ -21847,9 +22186,9 @@ class ThriftHiveMetastore_get_partitions_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter740) + foreach ($this->part_vals as $iter754) { - $xfer += $output->writeString($iter740); + $xfer += $output->writeString($iter754); } } $output->writeListEnd(); @@ -21943,15 +22282,15 @@ class ThriftHiveMetastore_get_partitions_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size741 = 0; - $_etype744 = 0; - $xfer += $input->readListBegin($_etype744, $_size741); - for ($_i745 = 0; $_i745 < $_size741; ++$_i745) + $_size755 = 0; + $_etype758 = 0; + $xfer += $input->readListBegin($_etype758, $_size755); + for ($_i759 = 0; $_i759 < $_size755; ++$_i759) { - $elem746 = null; - $elem746 = new \metastore\Partition(); - $xfer += $elem746->read($input); - $this->success []= $elem746; + $elem760 = null; + $elem760 = new \metastore\Partition(); + $xfer += $elem760->read($input); + $this->success []= $elem760; } $xfer += $input->readListEnd(); } else { @@ -21995,9 +22334,9 @@ class ThriftHiveMetastore_get_partitions_ps_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter747) + foreach ($this->success as $iter761) { - $xfer += $iter747->write($output); + $xfer += $iter761->write($output); } } $output->writeListEnd(); @@ -22144,14 +22483,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size748 = 0; - $_etype751 = 0; - $xfer += $input->readListBegin($_etype751, $_size748); - for ($_i752 = 0; $_i752 < $_size748; ++$_i752) + $_size762 = 0; + $_etype765 = 0; + $xfer += $input->readListBegin($_etype765, $_size762); + for ($_i766 = 0; $_i766 < $_size762; ++$_i766) { - $elem753 = null; - $xfer += $input->readString($elem753); - $this->part_vals []= $elem753; + $elem767 = null; + $xfer += $input->readString($elem767); + $this->part_vals []= $elem767; } $xfer += $input->readListEnd(); } else { @@ -22175,14 +22514,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 6: if ($ftype == TType::LST) { $this->group_names = array(); - $_size754 = 0; - $_etype757 = 0; - $xfer += $input->readListBegin($_etype757, $_size754); - for ($_i758 = 0; $_i758 < $_size754; ++$_i758) + $_size768 = 0; + $_etype771 = 0; + $xfer += $input->readListBegin($_etype771, $_size768); + for ($_i772 = 0; $_i772 < $_size768; ++$_i772) { - $elem759 = null; - $xfer += $input->readString($elem759); - $this->group_names []= $elem759; + $elem773 = null; + $xfer += $input->readString($elem773); + $this->group_names []= $elem773; } $xfer += $input->readListEnd(); } else { @@ -22220,9 +22559,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter760) + foreach ($this->part_vals as $iter774) { - $xfer += $output->writeString($iter760); + $xfer += $output->writeString($iter774); } } $output->writeListEnd(); @@ -22247,9 +22586,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter761) + foreach ($this->group_names as $iter775) { - $xfer += $output->writeString($iter761); + $xfer += $output->writeString($iter775); } } $output->writeListEnd(); @@ -22338,15 +22677,15 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size762 = 0; - $_etype765 = 0; - $xfer += $input->readListBegin($_etype765, $_size762); - for ($_i766 = 0; $_i766 < $_size762; ++$_i766) + $_size776 = 0; + $_etype779 = 0; + $xfer += $input->readListBegin($_etype779, $_size776); + for ($_i780 = 0; $_i780 < $_size776; ++$_i780) { - $elem767 = null; - $elem767 = new \metastore\Partition(); - $xfer += $elem767->read($input); - $this->success []= $elem767; + $elem781 = null; + $elem781 = new \metastore\Partition(); + $xfer += $elem781->read($input); + $this->success []= $elem781; } $xfer += $input->readListEnd(); } else { @@ -22390,9 +22729,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter768) + foreach ($this->success as $iter782) { - $xfer += $iter768->write($output); + $xfer += $iter782->write($output); } } $output->writeListEnd(); @@ -22513,14 +22852,14 @@ class ThriftHiveMetastore_get_partition_names_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size769 = 0; - $_etype772 = 0; - $xfer += $input->readListBegin($_etype772, $_size769); - for ($_i773 = 0; $_i773 < $_size769; ++$_i773) + $_size783 = 0; + $_etype786 = 0; + $xfer += $input->readListBegin($_etype786, $_size783); + for ($_i787 = 0; $_i787 < $_size783; ++$_i787) { - $elem774 = null; - $xfer += $input->readString($elem774); - $this->part_vals []= $elem774; + $elem788 = null; + $xfer += $input->readString($elem788); + $this->part_vals []= $elem788; } $xfer += $input->readListEnd(); } else { @@ -22565,9 +22904,9 @@ class ThriftHiveMetastore_get_partition_names_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter775) + foreach ($this->part_vals as $iter789) { - $xfer += $output->writeString($iter775); + $xfer += $output->writeString($iter789); } } $output->writeListEnd(); @@ -22660,14 +22999,14 @@ class ThriftHiveMetastore_get_partition_names_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size776 = 0; - $_etype779 = 0; - $xfer += $input->readListBegin($_etype779, $_size776); - for ($_i780 = 0; $_i780 < $_size776; ++$_i780) + $_size790 = 0; + $_etype793 = 0; + $xfer += $input->readListBegin($_etype793, $_size790); + for ($_i794 = 0; $_i794 < $_size790; ++$_i794) { - $elem781 = null; - $xfer += $input->readString($elem781); - $this->success []= $elem781; + $elem795 = null; + $xfer += $input->readString($elem795); + $this->success []= $elem795; } $xfer += $input->readListEnd(); } else { @@ -22711,9 +23050,9 @@ class ThriftHiveMetastore_get_partition_names_ps_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter782) + foreach ($this->success as $iter796) { - $xfer += $output->writeString($iter782); + $xfer += $output->writeString($iter796); } } $output->writeListEnd(); @@ -22956,15 +23295,15 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size783 = 0; - $_etype786 = 0; - $xfer += $input->readListBegin($_etype786, $_size783); - for ($_i787 = 0; $_i787 < $_size783; ++$_i787) + $_size797 = 0; + $_etype800 = 0; + $xfer += $input->readListBegin($_etype800, $_size797); + for ($_i801 = 0; $_i801 < $_size797; ++$_i801) { - $elem788 = null; - $elem788 = new \metastore\Partition(); - $xfer += $elem788->read($input); - $this->success []= $elem788; + $elem802 = null; + $elem802 = new \metastore\Partition(); + $xfer += $elem802->read($input); + $this->success []= $elem802; } $xfer += $input->readListEnd(); } else { @@ -23008,9 +23347,9 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter789) + foreach ($this->success as $iter803) { - $xfer += $iter789->write($output); + $xfer += $iter803->write($output); } } $output->writeListEnd(); @@ -23253,15 +23592,15 @@ class ThriftHiveMetastore_get_part_specs_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size790 = 0; - $_etype793 = 0; - $xfer += $input->readListBegin($_etype793, $_size790); - for ($_i794 = 0; $_i794 < $_size790; ++$_i794) + $_size804 = 0; + $_etype807 = 0; + $xfer += $input->readListBegin($_etype807, $_size804); + for ($_i808 = 0; $_i808 < $_size804; ++$_i808) { - $elem795 = null; - $elem795 = new \metastore\PartitionSpec(); - $xfer += $elem795->read($input); - $this->success []= $elem795; + $elem809 = null; + $elem809 = new \metastore\PartitionSpec(); + $xfer += $elem809->read($input); + $this->success []= $elem809; } $xfer += $input->readListEnd(); } else { @@ -23305,9 +23644,9 @@ class ThriftHiveMetastore_get_part_specs_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter796) + foreach ($this->success as $iter810) { - $xfer += $iter796->write($output); + $xfer += $iter810->write($output); } } $output->writeListEnd(); @@ -23627,14 +23966,14 @@ class ThriftHiveMetastore_get_partitions_by_names_args { case 3: if ($ftype == TType::LST) { $this->names = array(); - $_size797 = 0; - $_etype800 = 0; - $xfer += $input->readListBegin($_etype800, $_size797); - for ($_i801 = 0; $_i801 < $_size797; ++$_i801) + $_size811 = 0; + $_etype814 = 0; + $xfer += $input->readListBegin($_etype814, $_size811); + for ($_i815 = 0; $_i815 < $_size811; ++$_i815) { - $elem802 = null; - $xfer += $input->readString($elem802); - $this->names []= $elem802; + $elem816 = null; + $xfer += $input->readString($elem816); + $this->names []= $elem816; } $xfer += $input->readListEnd(); } else { @@ -23672,9 +24011,9 @@ class ThriftHiveMetastore_get_partitions_by_names_args { { $output->writeListBegin(TType::STRING, count($this->names)); { - foreach ($this->names as $iter803) + foreach ($this->names as $iter817) { - $xfer += $output->writeString($iter803); + $xfer += $output->writeString($iter817); } } $output->writeListEnd(); @@ -23763,15 +24102,15 @@ class ThriftHiveMetastore_get_partitions_by_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size804 = 0; - $_etype807 = 0; - $xfer += $input->readListBegin($_etype807, $_size804); - for ($_i808 = 0; $_i808 < $_size804; ++$_i808) + $_size818 = 0; + $_etype821 = 0; + $xfer += $input->readListBegin($_etype821, $_size818); + for ($_i822 = 0; $_i822 < $_size818; ++$_i822) { - $elem809 = null; - $elem809 = new \metastore\Partition(); - $xfer += $elem809->read($input); - $this->success []= $elem809; + $elem823 = null; + $elem823 = new \metastore\Partition(); + $xfer += $elem823->read($input); + $this->success []= $elem823; } $xfer += $input->readListEnd(); } else { @@ -23815,9 +24154,9 @@ class ThriftHiveMetastore_get_partitions_by_names_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter810) + foreach ($this->success as $iter824) { - $xfer += $iter810->write($output); + $xfer += $iter824->write($output); } } $output->writeListEnd(); @@ -24156,15 +24495,15 @@ class ThriftHiveMetastore_alter_partitions_args { case 3: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size811 = 0; - $_etype814 = 0; - $xfer += $input->readListBegin($_etype814, $_size811); - for ($_i815 = 0; $_i815 < $_size811; ++$_i815) + $_size825 = 0; + $_etype828 = 0; + $xfer += $input->readListBegin($_etype828, $_size825); + for ($_i829 = 0; $_i829 < $_size825; ++$_i829) { - $elem816 = null; - $elem816 = new \metastore\Partition(); - $xfer += $elem816->read($input); - $this->new_parts []= $elem816; + $elem830 = null; + $elem830 = new \metastore\Partition(); + $xfer += $elem830->read($input); + $this->new_parts []= $elem830; } $xfer += $input->readListEnd(); } else { @@ -24202,9 +24541,9 @@ class ThriftHiveMetastore_alter_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter817) + foreach ($this->new_parts as $iter831) { - $xfer += $iter817->write($output); + $xfer += $iter831->write($output); } } $output->writeListEnd(); @@ -24674,14 +25013,14 @@ class ThriftHiveMetastore_rename_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size818 = 0; - $_etype821 = 0; - $xfer += $input->readListBegin($_etype821, $_size818); - for ($_i822 = 0; $_i822 < $_size818; ++$_i822) + $_size832 = 0; + $_etype835 = 0; + $xfer += $input->readListBegin($_etype835, $_size832); + for ($_i836 = 0; $_i836 < $_size832; ++$_i836) { - $elem823 = null; - $xfer += $input->readString($elem823); - $this->part_vals []= $elem823; + $elem837 = null; + $xfer += $input->readString($elem837); + $this->part_vals []= $elem837; } $xfer += $input->readListEnd(); } else { @@ -24727,9 +25066,9 @@ class ThriftHiveMetastore_rename_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter824) + foreach ($this->part_vals as $iter838) { - $xfer += $output->writeString($iter824); + $xfer += $output->writeString($iter838); } } $output->writeListEnd(); @@ -24914,14 +25253,14 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { case 1: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size825 = 0; - $_etype828 = 0; - $xfer += $input->readListBegin($_etype828, $_size825); - for ($_i829 = 0; $_i829 < $_size825; ++$_i829) + $_size839 = 0; + $_etype842 = 0; + $xfer += $input->readListBegin($_etype842, $_size839); + for ($_i843 = 0; $_i843 < $_size839; ++$_i843) { - $elem830 = null; - $xfer += $input->readString($elem830); - $this->part_vals []= $elem830; + $elem844 = null; + $xfer += $input->readString($elem844); + $this->part_vals []= $elem844; } $xfer += $input->readListEnd(); } else { @@ -24956,9 +25295,9 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter831) + foreach ($this->part_vals as $iter845) { - $xfer += $output->writeString($iter831); + $xfer += $output->writeString($iter845); } } $output->writeListEnd(); @@ -25412,14 +25751,14 @@ class ThriftHiveMetastore_partition_name_to_vals_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size832 = 0; - $_etype835 = 0; - $xfer += $input->readListBegin($_etype835, $_size832); - for ($_i836 = 0; $_i836 < $_size832; ++$_i836) + $_size846 = 0; + $_etype849 = 0; + $xfer += $input->readListBegin($_etype849, $_size846); + for ($_i850 = 0; $_i850 < $_size846; ++$_i850) { - $elem837 = null; - $xfer += $input->readString($elem837); - $this->success []= $elem837; + $elem851 = null; + $xfer += $input->readString($elem851); + $this->success []= $elem851; } $xfer += $input->readListEnd(); } else { @@ -25455,9 +25794,9 @@ class ThriftHiveMetastore_partition_name_to_vals_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter838) + foreach ($this->success as $iter852) { - $xfer += $output->writeString($iter838); + $xfer += $output->writeString($iter852); } } $output->writeListEnd(); @@ -25617,17 +25956,17 @@ class ThriftHiveMetastore_partition_name_to_spec_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size839 = 0; - $_ktype840 = 0; - $_vtype841 = 0; - $xfer += $input->readMapBegin($_ktype840, $_vtype841, $_size839); - for ($_i843 = 0; $_i843 < $_size839; ++$_i843) + $_size853 = 0; + $_ktype854 = 0; + $_vtype855 = 0; + $xfer += $input->readMapBegin($_ktype854, $_vtype855, $_size853); + for ($_i857 = 0; $_i857 < $_size853; ++$_i857) { - $key844 = ''; - $val845 = ''; - $xfer += $input->readString($key844); - $xfer += $input->readString($val845); - $this->success[$key844] = $val845; + $key858 = ''; + $val859 = ''; + $xfer += $input->readString($key858); + $xfer += $input->readString($val859); + $this->success[$key858] = $val859; } $xfer += $input->readMapEnd(); } else { @@ -25663,10 +26002,10 @@ class ThriftHiveMetastore_partition_name_to_spec_result { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->success)); { - foreach ($this->success as $kiter846 => $viter847) + foreach ($this->success as $kiter860 => $viter861) { - $xfer += $output->writeString($kiter846); - $xfer += $output->writeString($viter847); + $xfer += $output->writeString($kiter860); + $xfer += $output->writeString($viter861); } } $output->writeMapEnd(); @@ -25786,17 +26125,17 @@ class ThriftHiveMetastore_markPartitionForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size848 = 0; - $_ktype849 = 0; - $_vtype850 = 0; - $xfer += $input->readMapBegin($_ktype849, $_vtype850, $_size848); - for ($_i852 = 0; $_i852 < $_size848; ++$_i852) + $_size862 = 0; + $_ktype863 = 0; + $_vtype864 = 0; + $xfer += $input->readMapBegin($_ktype863, $_vtype864, $_size862); + for ($_i866 = 0; $_i866 < $_size862; ++$_i866) { - $key853 = ''; - $val854 = ''; - $xfer += $input->readString($key853); - $xfer += $input->readString($val854); - $this->part_vals[$key853] = $val854; + $key867 = ''; + $val868 = ''; + $xfer += $input->readString($key867); + $xfer += $input->readString($val868); + $this->part_vals[$key867] = $val868; } $xfer += $input->readMapEnd(); } else { @@ -25841,10 +26180,10 @@ class ThriftHiveMetastore_markPartitionForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter855 => $viter856) + foreach ($this->part_vals as $kiter869 => $viter870) { - $xfer += $output->writeString($kiter855); - $xfer += $output->writeString($viter856); + $xfer += $output->writeString($kiter869); + $xfer += $output->writeString($viter870); } } $output->writeMapEnd(); @@ -26166,17 +26505,17 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size857 = 0; - $_ktype858 = 0; - $_vtype859 = 0; - $xfer += $input->readMapBegin($_ktype858, $_vtype859, $_size857); - for ($_i861 = 0; $_i861 < $_size857; ++$_i861) + $_size871 = 0; + $_ktype872 = 0; + $_vtype873 = 0; + $xfer += $input->readMapBegin($_ktype872, $_vtype873, $_size871); + for ($_i875 = 0; $_i875 < $_size871; ++$_i875) { - $key862 = ''; - $val863 = ''; - $xfer += $input->readString($key862); - $xfer += $input->readString($val863); - $this->part_vals[$key862] = $val863; + $key876 = ''; + $val877 = ''; + $xfer += $input->readString($key876); + $xfer += $input->readString($val877); + $this->part_vals[$key876] = $val877; } $xfer += $input->readMapEnd(); } else { @@ -26221,10 +26560,10 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter864 => $viter865) + foreach ($this->part_vals as $kiter878 => $viter879) { - $xfer += $output->writeString($kiter864); - $xfer += $output->writeString($viter865); + $xfer += $output->writeString($kiter878); + $xfer += $output->writeString($viter879); } } $output->writeMapEnd(); @@ -27698,15 +28037,15 @@ class ThriftHiveMetastore_get_indexes_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size866 = 0; - $_etype869 = 0; - $xfer += $input->readListBegin($_etype869, $_size866); - for ($_i870 = 0; $_i870 < $_size866; ++$_i870) + $_size880 = 0; + $_etype883 = 0; + $xfer += $input->readListBegin($_etype883, $_size880); + for ($_i884 = 0; $_i884 < $_size880; ++$_i884) { - $elem871 = null; - $elem871 = new \metastore\Index(); - $xfer += $elem871->read($input); - $this->success []= $elem871; + $elem885 = null; + $elem885 = new \metastore\Index(); + $xfer += $elem885->read($input); + $this->success []= $elem885; } $xfer += $input->readListEnd(); } else { @@ -27750,9 +28089,9 @@ class ThriftHiveMetastore_get_indexes_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter872) + foreach ($this->success as $iter886) { - $xfer += $iter872->write($output); + $xfer += $iter886->write($output); } } $output->writeListEnd(); @@ -27959,14 +28298,14 @@ class ThriftHiveMetastore_get_index_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size873 = 0; - $_etype876 = 0; - $xfer += $input->readListBegin($_etype876, $_size873); - for ($_i877 = 0; $_i877 < $_size873; ++$_i877) + $_size887 = 0; + $_etype890 = 0; + $xfer += $input->readListBegin($_etype890, $_size887); + for ($_i891 = 0; $_i891 < $_size887; ++$_i891) { - $elem878 = null; - $xfer += $input->readString($elem878); - $this->success []= $elem878; + $elem892 = null; + $xfer += $input->readString($elem892); + $this->success []= $elem892; } $xfer += $input->readListEnd(); } else { @@ -28002,9 +28341,9 @@ class ThriftHiveMetastore_get_index_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter879) + foreach ($this->success as $iter893) { - $xfer += $output->writeString($iter879); + $xfer += $output->writeString($iter893); } } $output->writeListEnd(); @@ -31478,14 +31817,14 @@ class ThriftHiveMetastore_get_functions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size880 = 0; - $_etype883 = 0; - $xfer += $input->readListBegin($_etype883, $_size880); - for ($_i884 = 0; $_i884 < $_size880; ++$_i884) + $_size894 = 0; + $_etype897 = 0; + $xfer += $input->readListBegin($_etype897, $_size894); + for ($_i898 = 0; $_i898 < $_size894; ++$_i898) { - $elem885 = null; - $xfer += $input->readString($elem885); - $this->success []= $elem885; + $elem899 = null; + $xfer += $input->readString($elem899); + $this->success []= $elem899; } $xfer += $input->readListEnd(); } else { @@ -31521,9 +31860,9 @@ class ThriftHiveMetastore_get_functions_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter886) + foreach ($this->success as $iter900) { - $xfer += $output->writeString($iter886); + $xfer += $output->writeString($iter900); } } $output->writeListEnd(); @@ -32392,14 +32731,14 @@ class ThriftHiveMetastore_get_role_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size887 = 0; - $_etype890 = 0; - $xfer += $input->readListBegin($_etype890, $_size887); - for ($_i891 = 0; $_i891 < $_size887; ++$_i891) + $_size901 = 0; + $_etype904 = 0; + $xfer += $input->readListBegin($_etype904, $_size901); + for ($_i905 = 0; $_i905 < $_size901; ++$_i905) { - $elem892 = null; - $xfer += $input->readString($elem892); - $this->success []= $elem892; + $elem906 = null; + $xfer += $input->readString($elem906); + $this->success []= $elem906; } $xfer += $input->readListEnd(); } else { @@ -32435,9 +32774,9 @@ class ThriftHiveMetastore_get_role_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter893) + foreach ($this->success as $iter907) { - $xfer += $output->writeString($iter893); + $xfer += $output->writeString($iter907); } } $output->writeListEnd(); @@ -33128,15 +33467,15 @@ class ThriftHiveMetastore_list_roles_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size894 = 0; - $_etype897 = 0; - $xfer += $input->readListBegin($_etype897, $_size894); - for ($_i898 = 0; $_i898 < $_size894; ++$_i898) + $_size908 = 0; + $_etype911 = 0; + $xfer += $input->readListBegin($_etype911, $_size908); + for ($_i912 = 0; $_i912 < $_size908; ++$_i912) { - $elem899 = null; - $elem899 = new \metastore\Role(); - $xfer += $elem899->read($input); - $this->success []= $elem899; + $elem913 = null; + $elem913 = new \metastore\Role(); + $xfer += $elem913->read($input); + $this->success []= $elem913; } $xfer += $input->readListEnd(); } else { @@ -33172,9 +33511,9 @@ class ThriftHiveMetastore_list_roles_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter900) + foreach ($this->success as $iter914) { - $xfer += $iter900->write($output); + $xfer += $iter914->write($output); } } $output->writeListEnd(); @@ -33836,14 +34175,14 @@ class ThriftHiveMetastore_get_privilege_set_args { case 3: if ($ftype == TType::LST) { $this->group_names = array(); - $_size901 = 0; - $_etype904 = 0; - $xfer += $input->readListBegin($_etype904, $_size901); - for ($_i905 = 0; $_i905 < $_size901; ++$_i905) + $_size915 = 0; + $_etype918 = 0; + $xfer += $input->readListBegin($_etype918, $_size915); + for ($_i919 = 0; $_i919 < $_size915; ++$_i919) { - $elem906 = null; - $xfer += $input->readString($elem906); - $this->group_names []= $elem906; + $elem920 = null; + $xfer += $input->readString($elem920); + $this->group_names []= $elem920; } $xfer += $input->readListEnd(); } else { @@ -33884,9 +34223,9 @@ class ThriftHiveMetastore_get_privilege_set_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter907) + foreach ($this->group_names as $iter921) { - $xfer += $output->writeString($iter907); + $xfer += $output->writeString($iter921); } } $output->writeListEnd(); @@ -34194,15 +34533,15 @@ class ThriftHiveMetastore_list_privileges_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size908 = 0; - $_etype911 = 0; - $xfer += $input->readListBegin($_etype911, $_size908); - for ($_i912 = 0; $_i912 < $_size908; ++$_i912) + $_size922 = 0; + $_etype925 = 0; + $xfer += $input->readListBegin($_etype925, $_size922); + for ($_i926 = 0; $_i926 < $_size922; ++$_i926) { - $elem913 = null; - $elem913 = new \metastore\HiveObjectPrivilege(); - $xfer += $elem913->read($input); - $this->success []= $elem913; + $elem927 = null; + $elem927 = new \metastore\HiveObjectPrivilege(); + $xfer += $elem927->read($input); + $this->success []= $elem927; } $xfer += $input->readListEnd(); } else { @@ -34238,9 +34577,9 @@ class ThriftHiveMetastore_list_privileges_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter914) + foreach ($this->success as $iter928) { - $xfer += $iter914->write($output); + $xfer += $iter928->write($output); } } $output->writeListEnd(); @@ -34872,14 +35211,14 @@ class ThriftHiveMetastore_set_ugi_args { case 2: if ($ftype == TType::LST) { $this->group_names = array(); - $_size915 = 0; - $_etype918 = 0; - $xfer += $input->readListBegin($_etype918, $_size915); - for ($_i919 = 0; $_i919 < $_size915; ++$_i919) + $_size929 = 0; + $_etype932 = 0; + $xfer += $input->readListBegin($_etype932, $_size929); + for ($_i933 = 0; $_i933 < $_size929; ++$_i933) { - $elem920 = null; - $xfer += $input->readString($elem920); - $this->group_names []= $elem920; + $elem934 = null; + $xfer += $input->readString($elem934); + $this->group_names []= $elem934; } $xfer += $input->readListEnd(); } else { @@ -34912,9 +35251,9 @@ class ThriftHiveMetastore_set_ugi_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter921) + foreach ($this->group_names as $iter935) { - $xfer += $output->writeString($iter921); + $xfer += $output->writeString($iter935); } } $output->writeListEnd(); @@ -34990,14 +35329,14 @@ class ThriftHiveMetastore_set_ugi_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size922 = 0; - $_etype925 = 0; - $xfer += $input->readListBegin($_etype925, $_size922); - for ($_i926 = 0; $_i926 < $_size922; ++$_i926) + $_size936 = 0; + $_etype939 = 0; + $xfer += $input->readListBegin($_etype939, $_size936); + for ($_i940 = 0; $_i940 < $_size936; ++$_i940) { - $elem927 = null; - $xfer += $input->readString($elem927); - $this->success []= $elem927; + $elem941 = null; + $xfer += $input->readString($elem941); + $this->success []= $elem941; } $xfer += $input->readListEnd(); } else { @@ -35033,9 +35372,9 @@ class ThriftHiveMetastore_set_ugi_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter928) + foreach ($this->success as $iter942) { - $xfer += $output->writeString($iter928); + $xfer += $output->writeString($iter942); } } $output->writeListEnd(); diff --git a/metastore/src/gen/thrift/gen-php/metastore/Types.php b/metastore/src/gen/thrift/gen-php/metastore/Types.php index e63213d..e43a13d 100644 --- a/metastore/src/gen/thrift/gen-php/metastore/Types.php +++ b/metastore/src/gen/thrift/gen-php/metastore/Types.php @@ -14957,6 +14957,150 @@ class GetAllFunctionsResponse { } +class TableMeta { + static $_TSPEC; + + /** + * @var string + */ + public $dbName = null; + /** + * @var string + */ + public $tableName = null; + /** + * @var string + */ + public $tableType = null; + /** + * @var string + */ + public $comments = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'dbName', + 'type' => TType::STRING, + ), + 2 => array( + 'var' => 'tableName', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'tableType', + 'type' => TType::STRING, + ), + 4 => array( + 'var' => 'comments', + 'type' => TType::STRING, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['dbName'])) { + $this->dbName = $vals['dbName']; + } + if (isset($vals['tableName'])) { + $this->tableName = $vals['tableName']; + } + if (isset($vals['tableType'])) { + $this->tableType = $vals['tableType']; + } + if (isset($vals['comments'])) { + $this->comments = $vals['comments']; + } + } + } + + public function getName() { + return 'TableMeta'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->dbName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->tableName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->tableType); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->comments); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('TableMeta'); + if ($this->dbName !== null) { + $xfer += $output->writeFieldBegin('dbName', TType::STRING, 1); + $xfer += $output->writeString($this->dbName); + $xfer += $output->writeFieldEnd(); + } + if ($this->tableName !== null) { + $xfer += $output->writeFieldBegin('tableName', TType::STRING, 2); + $xfer += $output->writeString($this->tableName); + $xfer += $output->writeFieldEnd(); + } + if ($this->tableType !== null) { + $xfer += $output->writeFieldBegin('tableType', TType::STRING, 3); + $xfer += $output->writeString($this->tableType); + $xfer += $output->writeFieldEnd(); + } + if ($this->comments !== null) { + $xfer += $output->writeFieldBegin('comments', TType::STRING, 4); + $xfer += $output->writeString($this->comments); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + class MetaException extends TException { static $_TSPEC; diff --git a/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote b/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote index 65ba10e..22d794f 100755 --- a/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote +++ b/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote @@ -45,6 +45,7 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help': print(' void drop_table(string dbname, string name, bool deleteData)') print(' void drop_table_with_environment_context(string dbname, string name, bool deleteData, EnvironmentContext environment_context)') print(' get_tables(string db_name, string pattern)') + print(' get_table_meta(string db_patterns, string tbl_patterns, tbl_types)') print(' get_all_tables(string db_name)') print(' Table get_table(string dbname, string tbl_name)') print(' get_table_objects_by_name(string dbname, tbl_names)') @@ -349,6 +350,12 @@ elif cmd == 'get_tables': sys.exit(1) pp.pprint(client.get_tables(args[0],args[1],)) +elif cmd == 'get_table_meta': + if len(args) != 3: + print('get_table_meta requires 3 args') + sys.exit(1) + pp.pprint(client.get_table_meta(args[0],args[1],eval(args[2]),)) + elif cmd == 'get_all_tables': if len(args) != 1: print('get_all_tables requires 1 args') diff --git a/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py b/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py index 9873810..5c72a27 100644 --- a/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py +++ b/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py @@ -183,6 +183,15 @@ def get_tables(self, db_name, pattern): """ pass + def get_table_meta(self, db_patterns, tbl_patterns, tbl_types): + """ + Parameters: + - db_patterns + - tbl_patterns + - tbl_types + """ + pass + def get_all_tables(self, db_name): """ Parameters: @@ -1830,6 +1839,43 @@ def recv_get_tables(self): raise result.o1 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_tables failed: unknown result") + def get_table_meta(self, db_patterns, tbl_patterns, tbl_types): + """ + Parameters: + - db_patterns + - tbl_patterns + - tbl_types + """ + self.send_get_table_meta(db_patterns, tbl_patterns, tbl_types) + return self.recv_get_table_meta() + + def send_get_table_meta(self, db_patterns, tbl_patterns, tbl_types): + self._oprot.writeMessageBegin('get_table_meta', TMessageType.CALL, self._seqid) + args = get_table_meta_args() + args.db_patterns = db_patterns + args.tbl_patterns = tbl_patterns + args.tbl_types = tbl_types + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_get_table_meta(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = get_table_meta_result() + result.read(iprot) + iprot.readMessageEnd() + if result.success is not None: + return result.success + if result.o1 is not None: + raise result.o1 + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_table_meta failed: unknown result") + def get_all_tables(self, db_name): """ Parameters: @@ -5852,6 +5898,7 @@ def __init__(self, handler): self._processMap["drop_table"] = Processor.process_drop_table self._processMap["drop_table_with_environment_context"] = Processor.process_drop_table_with_environment_context self._processMap["get_tables"] = Processor.process_get_tables + self._processMap["get_table_meta"] = Processor.process_get_table_meta self._processMap["get_all_tables"] = Processor.process_get_all_tables self._processMap["get_table"] = Processor.process_get_table self._processMap["get_table_objects_by_name"] = Processor.process_get_table_objects_by_name @@ -6517,6 +6564,28 @@ def process_get_tables(self, seqid, iprot, oprot): oprot.writeMessageEnd() oprot.trans.flush() + def process_get_table_meta(self, seqid, iprot, oprot): + args = get_table_meta_args() + args.read(iprot) + iprot.readMessageEnd() + result = get_table_meta_result() + try: + result.success = self._handler.get_table_meta(args.db_patterns, args.tbl_patterns, args.tbl_types) + msg_type = TMessageType.REPLY + except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + raise + except MetaException as o1: + msg_type = TMessageType.REPLY + result.o1 = o1 + except Exception as ex: + msg_type = TMessageType.EXCEPTION + logging.exception(ex) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("get_table_meta", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + def process_get_all_tables(self, seqid, iprot, oprot): args = get_all_tables_args() args.read(iprot) @@ -12752,6 +12821,192 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +class get_table_meta_args: + """ + Attributes: + - db_patterns + - tbl_patterns + - tbl_types + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRING, 'db_patterns', None, None, ), # 1 + (2, TType.STRING, 'tbl_patterns', None, None, ), # 2 + (3, TType.LIST, 'tbl_types', (TType.STRING,None), None, ), # 3 + ) + + def __init__(self, db_patterns=None, tbl_patterns=None, tbl_types=None,): + self.db_patterns = db_patterns + self.tbl_patterns = tbl_patterns + self.tbl_types = tbl_types + + 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.STRING: + self.db_patterns = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.tbl_patterns = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.LIST: + self.tbl_types = [] + (_etype583, _size580) = iprot.readListBegin() + for _i584 in xrange(_size580): + _elem585 = iprot.readString() + self.tbl_types.append(_elem585) + iprot.readListEnd() + 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('get_table_meta_args') + if self.db_patterns is not None: + oprot.writeFieldBegin('db_patterns', TType.STRING, 1) + oprot.writeString(self.db_patterns) + oprot.writeFieldEnd() + if self.tbl_patterns is not None: + oprot.writeFieldBegin('tbl_patterns', TType.STRING, 2) + oprot.writeString(self.tbl_patterns) + oprot.writeFieldEnd() + if self.tbl_types is not None: + oprot.writeFieldBegin('tbl_types', TType.LIST, 3) + oprot.writeListBegin(TType.STRING, len(self.tbl_types)) + for iter586 in self.tbl_types: + oprot.writeString(iter586) + oprot.writeListEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.db_patterns) + value = (value * 31) ^ hash(self.tbl_patterns) + value = (value * 31) ^ hash(self.tbl_types) + return value + + 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 get_table_meta_result: + """ + Attributes: + - success + - o1 + """ + + thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT,(TableMeta, TableMeta.thrift_spec)), None, ), # 0 + (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 + ) + + def __init__(self, success=None, o1=None,): + self.success = success + self.o1 = o1 + + 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 == 0: + if ftype == TType.LIST: + self.success = [] + (_etype590, _size587) = iprot.readListBegin() + for _i591 in xrange(_size587): + _elem592 = TableMeta() + _elem592.read(iprot) + self.success.append(_elem592) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = MetaException() + self.o1.read(iprot) + 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('get_table_meta_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter593 in self.success: + iter593.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.o1 is not None: + oprot.writeFieldBegin('o1', TType.STRUCT, 1) + self.o1.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.success) + value = (value * 31) ^ hash(self.o1) + return value + + 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 get_all_tables_args: """ Attributes: @@ -12845,10 +13100,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype583, _size580) = iprot.readListBegin() - for _i584 in xrange(_size580): - _elem585 = iprot.readString() - self.success.append(_elem585) + (_etype597, _size594) = iprot.readListBegin() + for _i598 in xrange(_size594): + _elem599 = iprot.readString() + self.success.append(_elem599) iprot.readListEnd() else: iprot.skip(ftype) @@ -12871,8 +13126,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 iter586 in self.success: - oprot.writeString(iter586) + for iter600 in self.success: + oprot.writeString(iter600) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -13108,10 +13363,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.tbl_names = [] - (_etype590, _size587) = iprot.readListBegin() - for _i591 in xrange(_size587): - _elem592 = iprot.readString() - self.tbl_names.append(_elem592) + (_etype604, _size601) = iprot.readListBegin() + for _i605 in xrange(_size601): + _elem606 = iprot.readString() + self.tbl_names.append(_elem606) iprot.readListEnd() else: iprot.skip(ftype) @@ -13132,8 +13387,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 iter593 in self.tbl_names: - oprot.writeString(iter593) + for iter607 in self.tbl_names: + oprot.writeString(iter607) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13194,11 +13449,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype597, _size594) = iprot.readListBegin() - for _i598 in xrange(_size594): - _elem599 = Table() - _elem599.read(iprot) - self.success.append(_elem599) + (_etype611, _size608) = iprot.readListBegin() + for _i612 in xrange(_size608): + _elem613 = Table() + _elem613.read(iprot) + self.success.append(_elem613) iprot.readListEnd() else: iprot.skip(ftype) @@ -13233,8 +13488,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 iter600 in self.success: - iter600.write(oprot) + for iter614 in self.success: + iter614.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -13400,10 +13655,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype604, _size601) = iprot.readListBegin() - for _i605 in xrange(_size601): - _elem606 = iprot.readString() - self.success.append(_elem606) + (_etype618, _size615) = iprot.readListBegin() + for _i619 in xrange(_size615): + _elem620 = iprot.readString() + self.success.append(_elem620) iprot.readListEnd() else: iprot.skip(ftype) @@ -13438,8 +13693,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 iter607 in self.success: - oprot.writeString(iter607) + for iter621 in self.success: + oprot.writeString(iter621) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -14409,11 +14664,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.new_parts = [] - (_etype611, _size608) = iprot.readListBegin() - for _i612 in xrange(_size608): - _elem613 = Partition() - _elem613.read(iprot) - self.new_parts.append(_elem613) + (_etype625, _size622) = iprot.readListBegin() + for _i626 in xrange(_size622): + _elem627 = Partition() + _elem627.read(iprot) + self.new_parts.append(_elem627) iprot.readListEnd() else: iprot.skip(ftype) @@ -14430,8 +14685,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 iter614 in self.new_parts: - iter614.write(oprot) + for iter628 in self.new_parts: + iter628.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14589,11 +14844,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.new_parts = [] - (_etype618, _size615) = iprot.readListBegin() - for _i619 in xrange(_size615): - _elem620 = PartitionSpec() - _elem620.read(iprot) - self.new_parts.append(_elem620) + (_etype632, _size629) = iprot.readListBegin() + for _i633 in xrange(_size629): + _elem634 = PartitionSpec() + _elem634.read(iprot) + self.new_parts.append(_elem634) iprot.readListEnd() else: iprot.skip(ftype) @@ -14610,8 +14865,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 iter621 in self.new_parts: - iter621.write(oprot) + for iter635 in self.new_parts: + iter635.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14785,10 +15040,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype625, _size622) = iprot.readListBegin() - for _i626 in xrange(_size622): - _elem627 = iprot.readString() - self.part_vals.append(_elem627) + (_etype639, _size636) = iprot.readListBegin() + for _i640 in xrange(_size636): + _elem641 = iprot.readString() + self.part_vals.append(_elem641) iprot.readListEnd() else: iprot.skip(ftype) @@ -14813,8 +15068,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 iter628 in self.part_vals: - oprot.writeString(iter628) + for iter642 in self.part_vals: + oprot.writeString(iter642) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15167,10 +15422,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype632, _size629) = iprot.readListBegin() - for _i633 in xrange(_size629): - _elem634 = iprot.readString() - self.part_vals.append(_elem634) + (_etype646, _size643) = iprot.readListBegin() + for _i647 in xrange(_size643): + _elem648 = iprot.readString() + self.part_vals.append(_elem648) iprot.readListEnd() else: iprot.skip(ftype) @@ -15201,8 +15456,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 iter635 in self.part_vals: - oprot.writeString(iter635) + for iter649 in self.part_vals: + oprot.writeString(iter649) oprot.writeListEnd() oprot.writeFieldEnd() if self.environment_context is not None: @@ -15797,10 +16052,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype639, _size636) = iprot.readListBegin() - for _i640 in xrange(_size636): - _elem641 = iprot.readString() - self.part_vals.append(_elem641) + (_etype653, _size650) = iprot.readListBegin() + for _i654 in xrange(_size650): + _elem655 = iprot.readString() + self.part_vals.append(_elem655) iprot.readListEnd() else: iprot.skip(ftype) @@ -15830,8 +16085,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 iter642 in self.part_vals: - oprot.writeString(iter642) + for iter656 in self.part_vals: + oprot.writeString(iter656) oprot.writeListEnd() oprot.writeFieldEnd() if self.deleteData is not None: @@ -16004,10 +16259,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype646, _size643) = iprot.readListBegin() - for _i647 in xrange(_size643): - _elem648 = iprot.readString() - self.part_vals.append(_elem648) + (_etype660, _size657) = iprot.readListBegin() + for _i661 in xrange(_size657): + _elem662 = iprot.readString() + self.part_vals.append(_elem662) iprot.readListEnd() else: iprot.skip(ftype) @@ -16043,8 +16298,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 iter649 in self.part_vals: - oprot.writeString(iter649) + for iter663 in self.part_vals: + oprot.writeString(iter663) oprot.writeListEnd() oprot.writeFieldEnd() if self.deleteData is not None: @@ -16781,10 +17036,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype653, _size650) = iprot.readListBegin() - for _i654 in xrange(_size650): - _elem655 = iprot.readString() - self.part_vals.append(_elem655) + (_etype667, _size664) = iprot.readListBegin() + for _i668 in xrange(_size664): + _elem669 = iprot.readString() + self.part_vals.append(_elem669) iprot.readListEnd() else: iprot.skip(ftype) @@ -16809,8 +17064,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 iter656 in self.part_vals: - oprot.writeString(iter656) + for iter670 in self.part_vals: + oprot.writeString(iter670) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16969,11 +17224,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partitionSpecs = {} - (_ktype658, _vtype659, _size657 ) = iprot.readMapBegin() - for _i661 in xrange(_size657): - _key662 = iprot.readString() - _val663 = iprot.readString() - self.partitionSpecs[_key662] = _val663 + (_ktype672, _vtype673, _size671 ) = iprot.readMapBegin() + for _i675 in xrange(_size671): + _key676 = iprot.readString() + _val677 = iprot.readString() + self.partitionSpecs[_key676] = _val677 iprot.readMapEnd() else: iprot.skip(ftype) @@ -17010,9 +17265,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 kiter664,viter665 in self.partitionSpecs.items(): - oprot.writeString(kiter664) - oprot.writeString(viter665) + for kiter678,viter679 in self.partitionSpecs.items(): + oprot.writeString(kiter678) + oprot.writeString(viter679) oprot.writeMapEnd() oprot.writeFieldEnd() if self.source_db is not None: @@ -17217,11 +17472,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partitionSpecs = {} - (_ktype667, _vtype668, _size666 ) = iprot.readMapBegin() - for _i670 in xrange(_size666): - _key671 = iprot.readString() - _val672 = iprot.readString() - self.partitionSpecs[_key671] = _val672 + (_ktype681, _vtype682, _size680 ) = iprot.readMapBegin() + for _i684 in xrange(_size680): + _key685 = iprot.readString() + _val686 = iprot.readString() + self.partitionSpecs[_key685] = _val686 iprot.readMapEnd() else: iprot.skip(ftype) @@ -17258,9 +17513,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 kiter673,viter674 in self.partitionSpecs.items(): - oprot.writeString(kiter673) - oprot.writeString(viter674) + for kiter687,viter688 in self.partitionSpecs.items(): + oprot.writeString(kiter687) + oprot.writeString(viter688) oprot.writeMapEnd() oprot.writeFieldEnd() if self.source_db is not None: @@ -17343,11 +17598,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype678, _size675) = iprot.readListBegin() - for _i679 in xrange(_size675): - _elem680 = Partition() - _elem680.read(iprot) - self.success.append(_elem680) + (_etype692, _size689) = iprot.readListBegin() + for _i693 in xrange(_size689): + _elem694 = Partition() + _elem694.read(iprot) + self.success.append(_elem694) iprot.readListEnd() else: iprot.skip(ftype) @@ -17388,8 +17643,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 iter681 in self.success: - iter681.write(oprot) + for iter695 in self.success: + iter695.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -17483,10 +17738,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype685, _size682) = iprot.readListBegin() - for _i686 in xrange(_size682): - _elem687 = iprot.readString() - self.part_vals.append(_elem687) + (_etype699, _size696) = iprot.readListBegin() + for _i700 in xrange(_size696): + _elem701 = iprot.readString() + self.part_vals.append(_elem701) iprot.readListEnd() else: iprot.skip(ftype) @@ -17498,10 +17753,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype691, _size688) = iprot.readListBegin() - for _i692 in xrange(_size688): - _elem693 = iprot.readString() - self.group_names.append(_elem693) + (_etype705, _size702) = iprot.readListBegin() + for _i706 in xrange(_size702): + _elem707 = iprot.readString() + self.group_names.append(_elem707) iprot.readListEnd() else: iprot.skip(ftype) @@ -17526,8 +17781,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 iter694 in self.part_vals: - oprot.writeString(iter694) + for iter708 in self.part_vals: + oprot.writeString(iter708) oprot.writeListEnd() oprot.writeFieldEnd() if self.user_name is not None: @@ -17537,8 +17792,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 iter695 in self.group_names: - oprot.writeString(iter695) + for iter709 in self.group_names: + oprot.writeString(iter709) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -17967,11 +18222,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype699, _size696) = iprot.readListBegin() - for _i700 in xrange(_size696): - _elem701 = Partition() - _elem701.read(iprot) - self.success.append(_elem701) + (_etype713, _size710) = iprot.readListBegin() + for _i714 in xrange(_size710): + _elem715 = Partition() + _elem715.read(iprot) + self.success.append(_elem715) iprot.readListEnd() else: iprot.skip(ftype) @@ -18000,8 +18255,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 iter702 in self.success: - iter702.write(oprot) + for iter716 in self.success: + iter716.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -18095,10 +18350,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype706, _size703) = iprot.readListBegin() - for _i707 in xrange(_size703): - _elem708 = iprot.readString() - self.group_names.append(_elem708) + (_etype720, _size717) = iprot.readListBegin() + for _i721 in xrange(_size717): + _elem722 = iprot.readString() + self.group_names.append(_elem722) iprot.readListEnd() else: iprot.skip(ftype) @@ -18131,8 +18386,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 iter709 in self.group_names: - oprot.writeString(iter709) + for iter723 in self.group_names: + oprot.writeString(iter723) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -18193,11 +18448,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype713, _size710) = iprot.readListBegin() - for _i714 in xrange(_size710): - _elem715 = Partition() - _elem715.read(iprot) - self.success.append(_elem715) + (_etype727, _size724) = iprot.readListBegin() + for _i728 in xrange(_size724): + _elem729 = Partition() + _elem729.read(iprot) + self.success.append(_elem729) iprot.readListEnd() else: iprot.skip(ftype) @@ -18226,8 +18481,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 iter716 in self.success: - iter716.write(oprot) + for iter730 in self.success: + iter730.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -18385,11 +18640,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype720, _size717) = iprot.readListBegin() - for _i721 in xrange(_size717): - _elem722 = PartitionSpec() - _elem722.read(iprot) - self.success.append(_elem722) + (_etype734, _size731) = iprot.readListBegin() + for _i735 in xrange(_size731): + _elem736 = PartitionSpec() + _elem736.read(iprot) + self.success.append(_elem736) iprot.readListEnd() else: iprot.skip(ftype) @@ -18418,8 +18673,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 iter723 in self.success: - iter723.write(oprot) + for iter737 in self.success: + iter737.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -18574,10 +18829,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype727, _size724) = iprot.readListBegin() - for _i728 in xrange(_size724): - _elem729 = iprot.readString() - self.success.append(_elem729) + (_etype741, _size738) = iprot.readListBegin() + for _i742 in xrange(_size738): + _elem743 = iprot.readString() + self.success.append(_elem743) iprot.readListEnd() else: iprot.skip(ftype) @@ -18600,8 +18855,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 iter730 in self.success: - oprot.writeString(iter730) + for iter744 in self.success: + oprot.writeString(iter744) oprot.writeListEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -18677,10 +18932,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype734, _size731) = iprot.readListBegin() - for _i735 in xrange(_size731): - _elem736 = iprot.readString() - self.part_vals.append(_elem736) + (_etype748, _size745) = iprot.readListBegin() + for _i749 in xrange(_size745): + _elem750 = iprot.readString() + self.part_vals.append(_elem750) iprot.readListEnd() else: iprot.skip(ftype) @@ -18710,8 +18965,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 iter737 in self.part_vals: - oprot.writeString(iter737) + for iter751 in self.part_vals: + oprot.writeString(iter751) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -18775,11 +19030,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype741, _size738) = iprot.readListBegin() - for _i742 in xrange(_size738): - _elem743 = Partition() - _elem743.read(iprot) - self.success.append(_elem743) + (_etype755, _size752) = iprot.readListBegin() + for _i756 in xrange(_size752): + _elem757 = Partition() + _elem757.read(iprot) + self.success.append(_elem757) iprot.readListEnd() else: iprot.skip(ftype) @@ -18808,8 +19063,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 iter744 in self.success: - iter744.write(oprot) + for iter758 in self.success: + iter758.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -18896,10 +19151,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype748, _size745) = iprot.readListBegin() - for _i749 in xrange(_size745): - _elem750 = iprot.readString() - self.part_vals.append(_elem750) + (_etype762, _size759) = iprot.readListBegin() + for _i763 in xrange(_size759): + _elem764 = iprot.readString() + self.part_vals.append(_elem764) iprot.readListEnd() else: iprot.skip(ftype) @@ -18916,10 +19171,10 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.group_names = [] - (_etype754, _size751) = iprot.readListBegin() - for _i755 in xrange(_size751): - _elem756 = iprot.readString() - self.group_names.append(_elem756) + (_etype768, _size765) = iprot.readListBegin() + for _i769 in xrange(_size765): + _elem770 = iprot.readString() + self.group_names.append(_elem770) iprot.readListEnd() else: iprot.skip(ftype) @@ -18944,8 +19199,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 iter757 in self.part_vals: - oprot.writeString(iter757) + for iter771 in self.part_vals: + oprot.writeString(iter771) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -18959,8 +19214,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 iter758 in self.group_names: - oprot.writeString(iter758) + for iter772 in self.group_names: + oprot.writeString(iter772) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -19022,11 +19277,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype762, _size759) = iprot.readListBegin() - for _i763 in xrange(_size759): - _elem764 = Partition() - _elem764.read(iprot) - self.success.append(_elem764) + (_etype776, _size773) = iprot.readListBegin() + for _i777 in xrange(_size773): + _elem778 = Partition() + _elem778.read(iprot) + self.success.append(_elem778) iprot.readListEnd() else: iprot.skip(ftype) @@ -19055,8 +19310,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 iter765 in self.success: - iter765.write(oprot) + for iter779 in self.success: + iter779.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -19137,10 +19392,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype769, _size766) = iprot.readListBegin() - for _i770 in xrange(_size766): - _elem771 = iprot.readString() - self.part_vals.append(_elem771) + (_etype783, _size780) = iprot.readListBegin() + for _i784 in xrange(_size780): + _elem785 = iprot.readString() + self.part_vals.append(_elem785) iprot.readListEnd() else: iprot.skip(ftype) @@ -19170,8 +19425,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 iter772 in self.part_vals: - oprot.writeString(iter772) + for iter786 in self.part_vals: + oprot.writeString(iter786) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -19235,10 +19490,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype776, _size773) = iprot.readListBegin() - for _i777 in xrange(_size773): - _elem778 = iprot.readString() - self.success.append(_elem778) + (_etype790, _size787) = iprot.readListBegin() + for _i791 in xrange(_size787): + _elem792 = iprot.readString() + self.success.append(_elem792) iprot.readListEnd() else: iprot.skip(ftype) @@ -19267,8 +19522,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 iter779 in self.success: - oprot.writeString(iter779) + for iter793 in self.success: + oprot.writeString(iter793) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -19439,11 +19694,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype783, _size780) = iprot.readListBegin() - for _i784 in xrange(_size780): - _elem785 = Partition() - _elem785.read(iprot) - self.success.append(_elem785) + (_etype797, _size794) = iprot.readListBegin() + for _i798 in xrange(_size794): + _elem799 = Partition() + _elem799.read(iprot) + self.success.append(_elem799) iprot.readListEnd() else: iprot.skip(ftype) @@ -19472,8 +19727,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 iter786 in self.success: - iter786.write(oprot) + for iter800 in self.success: + iter800.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -19644,11 +19899,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype790, _size787) = iprot.readListBegin() - for _i791 in xrange(_size787): - _elem792 = PartitionSpec() - _elem792.read(iprot) - self.success.append(_elem792) + (_etype804, _size801) = iprot.readListBegin() + for _i805 in xrange(_size801): + _elem806 = PartitionSpec() + _elem806.read(iprot) + self.success.append(_elem806) iprot.readListEnd() else: iprot.skip(ftype) @@ -19677,8 +19932,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 iter793 in self.success: - iter793.write(oprot) + for iter807 in self.success: + iter807.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -19915,10 +20170,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.names = [] - (_etype797, _size794) = iprot.readListBegin() - for _i798 in xrange(_size794): - _elem799 = iprot.readString() - self.names.append(_elem799) + (_etype811, _size808) = iprot.readListBegin() + for _i812 in xrange(_size808): + _elem813 = iprot.readString() + self.names.append(_elem813) iprot.readListEnd() else: iprot.skip(ftype) @@ -19943,8 +20198,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 iter800 in self.names: - oprot.writeString(iter800) + for iter814 in self.names: + oprot.writeString(iter814) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20003,11 +20258,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype804, _size801) = iprot.readListBegin() - for _i805 in xrange(_size801): - _elem806 = Partition() - _elem806.read(iprot) - self.success.append(_elem806) + (_etype818, _size815) = iprot.readListBegin() + for _i819 in xrange(_size815): + _elem820 = Partition() + _elem820.read(iprot) + self.success.append(_elem820) iprot.readListEnd() else: iprot.skip(ftype) @@ -20036,8 +20291,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 iter807 in self.success: - iter807.write(oprot) + for iter821 in self.success: + iter821.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -20287,11 +20542,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.new_parts = [] - (_etype811, _size808) = iprot.readListBegin() - for _i812 in xrange(_size808): - _elem813 = Partition() - _elem813.read(iprot) - self.new_parts.append(_elem813) + (_etype825, _size822) = iprot.readListBegin() + for _i826 in xrange(_size822): + _elem827 = Partition() + _elem827.read(iprot) + self.new_parts.append(_elem827) iprot.readListEnd() else: iprot.skip(ftype) @@ -20316,8 +20571,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 iter814 in self.new_parts: - iter814.write(oprot) + for iter828 in self.new_parts: + iter828.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20656,10 +20911,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype818, _size815) = iprot.readListBegin() - for _i819 in xrange(_size815): - _elem820 = iprot.readString() - self.part_vals.append(_elem820) + (_etype832, _size829) = iprot.readListBegin() + for _i833 in xrange(_size829): + _elem834 = iprot.readString() + self.part_vals.append(_elem834) iprot.readListEnd() else: iprot.skip(ftype) @@ -20690,8 +20945,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 iter821 in self.part_vals: - oprot.writeString(iter821) + for iter835 in self.part_vals: + oprot.writeString(iter835) oprot.writeListEnd() oprot.writeFieldEnd() if self.new_part is not None: @@ -20833,10 +21088,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.part_vals = [] - (_etype825, _size822) = iprot.readListBegin() - for _i826 in xrange(_size822): - _elem827 = iprot.readString() - self.part_vals.append(_elem827) + (_etype839, _size836) = iprot.readListBegin() + for _i840 in xrange(_size836): + _elem841 = iprot.readString() + self.part_vals.append(_elem841) iprot.readListEnd() else: iprot.skip(ftype) @@ -20858,8 +21113,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 iter828 in self.part_vals: - oprot.writeString(iter828) + for iter842 in self.part_vals: + oprot.writeString(iter842) oprot.writeListEnd() oprot.writeFieldEnd() if self.throw_exception is not None: @@ -21217,10 +21472,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype832, _size829) = iprot.readListBegin() - for _i833 in xrange(_size829): - _elem834 = iprot.readString() - self.success.append(_elem834) + (_etype846, _size843) = iprot.readListBegin() + for _i847 in xrange(_size843): + _elem848 = iprot.readString() + self.success.append(_elem848) iprot.readListEnd() else: iprot.skip(ftype) @@ -21243,8 +21498,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 iter835 in self.success: - oprot.writeString(iter835) + for iter849 in self.success: + oprot.writeString(iter849) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21368,11 +21623,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype837, _vtype838, _size836 ) = iprot.readMapBegin() - for _i840 in xrange(_size836): - _key841 = iprot.readString() - _val842 = iprot.readString() - self.success[_key841] = _val842 + (_ktype851, _vtype852, _size850 ) = iprot.readMapBegin() + for _i854 in xrange(_size850): + _key855 = iprot.readString() + _val856 = iprot.readString() + self.success[_key855] = _val856 iprot.readMapEnd() else: iprot.skip(ftype) @@ -21395,9 +21650,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 kiter843,viter844 in self.success.items(): - oprot.writeString(kiter843) - oprot.writeString(viter844) + for kiter857,viter858 in self.success.items(): + oprot.writeString(kiter857) + oprot.writeString(viter858) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21473,11 +21728,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype846, _vtype847, _size845 ) = iprot.readMapBegin() - for _i849 in xrange(_size845): - _key850 = iprot.readString() - _val851 = iprot.readString() - self.part_vals[_key850] = _val851 + (_ktype860, _vtype861, _size859 ) = iprot.readMapBegin() + for _i863 in xrange(_size859): + _key864 = iprot.readString() + _val865 = iprot.readString() + self.part_vals[_key864] = _val865 iprot.readMapEnd() else: iprot.skip(ftype) @@ -21507,9 +21762,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 kiter852,viter853 in self.part_vals.items(): - oprot.writeString(kiter852) - oprot.writeString(viter853) + for kiter866,viter867 in self.part_vals.items(): + oprot.writeString(kiter866) + oprot.writeString(viter867) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -21723,11 +21978,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype855, _vtype856, _size854 ) = iprot.readMapBegin() - for _i858 in xrange(_size854): - _key859 = iprot.readString() - _val860 = iprot.readString() - self.part_vals[_key859] = _val860 + (_ktype869, _vtype870, _size868 ) = iprot.readMapBegin() + for _i872 in xrange(_size868): + _key873 = iprot.readString() + _val874 = iprot.readString() + self.part_vals[_key873] = _val874 iprot.readMapEnd() else: iprot.skip(ftype) @@ -21757,9 +22012,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 kiter861,viter862 in self.part_vals.items(): - oprot.writeString(kiter861) - oprot.writeString(viter862) + for kiter875,viter876 in self.part_vals.items(): + oprot.writeString(kiter875) + oprot.writeString(viter876) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -22814,11 +23069,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype866, _size863) = iprot.readListBegin() - for _i867 in xrange(_size863): - _elem868 = Index() - _elem868.read(iprot) - self.success.append(_elem868) + (_etype880, _size877) = iprot.readListBegin() + for _i881 in xrange(_size877): + _elem882 = Index() + _elem882.read(iprot) + self.success.append(_elem882) iprot.readListEnd() else: iprot.skip(ftype) @@ -22847,8 +23102,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 iter869 in self.success: - iter869.write(oprot) + for iter883 in self.success: + iter883.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -23003,10 +23258,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype873, _size870) = iprot.readListBegin() - for _i874 in xrange(_size870): - _elem875 = iprot.readString() - self.success.append(_elem875) + (_etype887, _size884) = iprot.readListBegin() + for _i888 in xrange(_size884): + _elem889 = iprot.readString() + self.success.append(_elem889) iprot.readListEnd() else: iprot.skip(ftype) @@ -23029,8 +23284,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 iter876 in self.success: - oprot.writeString(iter876) + for iter890 in self.success: + oprot.writeString(iter890) oprot.writeListEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -25578,10 +25833,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype880, _size877) = iprot.readListBegin() - for _i881 in xrange(_size877): - _elem882 = iprot.readString() - self.success.append(_elem882) + (_etype894, _size891) = iprot.readListBegin() + for _i895 in xrange(_size891): + _elem896 = iprot.readString() + self.success.append(_elem896) iprot.readListEnd() else: iprot.skip(ftype) @@ -25604,8 +25859,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 iter883 in self.success: - oprot.writeString(iter883) + for iter897 in self.success: + oprot.writeString(iter897) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -26293,10 +26548,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype887, _size884) = iprot.readListBegin() - for _i888 in xrange(_size884): - _elem889 = iprot.readString() - self.success.append(_elem889) + (_etype901, _size898) = iprot.readListBegin() + for _i902 in xrange(_size898): + _elem903 = iprot.readString() + self.success.append(_elem903) iprot.readListEnd() else: iprot.skip(ftype) @@ -26319,8 +26574,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 iter890 in self.success: - oprot.writeString(iter890) + for iter904 in self.success: + oprot.writeString(iter904) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -26834,11 +27089,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype894, _size891) = iprot.readListBegin() - for _i895 in xrange(_size891): - _elem896 = Role() - _elem896.read(iprot) - self.success.append(_elem896) + (_etype908, _size905) = iprot.readListBegin() + for _i909 in xrange(_size905): + _elem910 = Role() + _elem910.read(iprot) + self.success.append(_elem910) iprot.readListEnd() else: iprot.skip(ftype) @@ -26861,8 +27116,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 iter897 in self.success: - iter897.write(oprot) + for iter911 in self.success: + iter911.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -27371,10 +27626,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.group_names = [] - (_etype901, _size898) = iprot.readListBegin() - for _i902 in xrange(_size898): - _elem903 = iprot.readString() - self.group_names.append(_elem903) + (_etype915, _size912) = iprot.readListBegin() + for _i916 in xrange(_size912): + _elem917 = iprot.readString() + self.group_names.append(_elem917) iprot.readListEnd() else: iprot.skip(ftype) @@ -27399,8 +27654,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 iter904 in self.group_names: - oprot.writeString(iter904) + for iter918 in self.group_names: + oprot.writeString(iter918) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -27627,11 +27882,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype908, _size905) = iprot.readListBegin() - for _i909 in xrange(_size905): - _elem910 = HiveObjectPrivilege() - _elem910.read(iprot) - self.success.append(_elem910) + (_etype922, _size919) = iprot.readListBegin() + for _i923 in xrange(_size919): + _elem924 = HiveObjectPrivilege() + _elem924.read(iprot) + self.success.append(_elem924) iprot.readListEnd() else: iprot.skip(ftype) @@ -27654,8 +27909,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 iter911 in self.success: - iter911.write(oprot) + for iter925 in self.success: + iter925.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -28153,10 +28408,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.group_names = [] - (_etype915, _size912) = iprot.readListBegin() - for _i916 in xrange(_size912): - _elem917 = iprot.readString() - self.group_names.append(_elem917) + (_etype929, _size926) = iprot.readListBegin() + for _i930 in xrange(_size926): + _elem931 = iprot.readString() + self.group_names.append(_elem931) iprot.readListEnd() else: iprot.skip(ftype) @@ -28177,8 +28432,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 iter918 in self.group_names: - oprot.writeString(iter918) + for iter932 in self.group_names: + oprot.writeString(iter932) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -28233,10 +28488,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype922, _size919) = iprot.readListBegin() - for _i923 in xrange(_size919): - _elem924 = iprot.readString() - self.success.append(_elem924) + (_etype936, _size933) = iprot.readListBegin() + for _i937 in xrange(_size933): + _elem938 = iprot.readString() + self.success.append(_elem938) iprot.readListEnd() else: iprot.skip(ftype) @@ -28259,8 +28514,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 iter925 in self.success: - oprot.writeString(iter925) + for iter939 in self.success: + oprot.writeString(iter939) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: diff --git a/metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py b/metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py index 8940dff..ba525ed 100644 --- a/metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py +++ b/metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py @@ -10554,6 +10554,116 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +class TableMeta: + """ + Attributes: + - dbName + - tableName + - tableType + - comments + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRING, 'dbName', None, None, ), # 1 + (2, TType.STRING, 'tableName', None, None, ), # 2 + (3, TType.STRING, 'tableType', None, None, ), # 3 + (4, TType.STRING, 'comments', None, None, ), # 4 + ) + + def __init__(self, dbName=None, tableName=None, tableType=None, comments=None,): + self.dbName = dbName + self.tableName = tableName + self.tableType = tableType + self.comments = comments + + 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.STRING: + self.dbName = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.tableName = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.tableType = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.comments = 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('TableMeta') + if self.dbName is not None: + oprot.writeFieldBegin('dbName', TType.STRING, 1) + oprot.writeString(self.dbName) + oprot.writeFieldEnd() + if self.tableName is not None: + oprot.writeFieldBegin('tableName', TType.STRING, 2) + oprot.writeString(self.tableName) + oprot.writeFieldEnd() + if self.tableType is not None: + oprot.writeFieldBegin('tableType', TType.STRING, 3) + oprot.writeString(self.tableType) + oprot.writeFieldEnd() + if self.comments is not None: + oprot.writeFieldBegin('comments', TType.STRING, 4) + oprot.writeString(self.comments) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.dbName is None: + raise TProtocol.TProtocolException(message='Required field dbName is unset!') + if self.tableName is None: + raise TProtocol.TProtocolException(message='Required field tableName is unset!') + if self.tableType is None: + raise TProtocol.TProtocolException(message='Required field tableType is unset!') + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.dbName) + value = (value * 31) ^ hash(self.tableName) + value = (value * 31) ^ hash(self.tableType) + value = (value * 31) ^ hash(self.comments) + return value + + 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 MetaException(TException): """ Attributes: diff --git a/metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb b/metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb index 08b9b06..f943f2d 100644 --- a/metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb +++ b/metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb @@ -2422,6 +2422,31 @@ class GetAllFunctionsResponse ::Thrift::Struct.generate_accessors self end +class TableMeta + include ::Thrift::Struct, ::Thrift::Struct_Union + DBNAME = 1 + TABLENAME = 2 + TABLETYPE = 3 + COMMENTS = 4 + + FIELDS = { + DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbName'}, + TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName'}, + TABLETYPE => {:type => ::Thrift::Types::STRING, :name => 'tableType'}, + COMMENTS => {:type => ::Thrift::Types::STRING, :name => 'comments', :optional => true} + } + + def struct_fields; FIELDS; end + + def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field dbName is unset!') unless @dbName + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field tableName is unset!') unless @tableName + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field tableType is unset!') unless @tableType + end + + ::Thrift::Struct.generate_accessors self +end + class MetaException < ::Thrift::Exception include ::Thrift::Struct, ::Thrift::Struct_Union def initialize(message=nil) diff --git a/metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb b/metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb index c613e4b..5fe54b5 100644 --- a/metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb +++ b/metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb @@ -366,6 +366,22 @@ module ThriftHiveMetastore raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_tables failed: unknown result') end + def get_table_meta(db_patterns, tbl_patterns, tbl_types) + send_get_table_meta(db_patterns, tbl_patterns, tbl_types) + return recv_get_table_meta() + end + + def send_get_table_meta(db_patterns, tbl_patterns, tbl_types) + send_message('get_table_meta', Get_table_meta_args, :db_patterns => db_patterns, :tbl_patterns => tbl_patterns, :tbl_types => tbl_types) + end + + def recv_get_table_meta() + result = receive_message(Get_table_meta_result) + return result.success unless result.success.nil? + raise result.o1 unless result.o1.nil? + raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_table_meta failed: unknown result') + end + def get_all_tables(db_name) send_get_all_tables(db_name) return recv_get_all_tables() @@ -2471,6 +2487,17 @@ module ThriftHiveMetastore write_result(result, oprot, 'get_tables', seqid) end + def process_get_table_meta(seqid, iprot, oprot) + args = read_args(iprot, Get_table_meta_args) + result = Get_table_meta_result.new() + begin + result.success = @handler.get_table_meta(args.db_patterns, args.tbl_patterns, args.tbl_types) + rescue ::MetaException => o1 + result.o1 = o1 + end + write_result(result, oprot, 'get_table_meta', seqid) + end + def process_get_all_tables(seqid, iprot, oprot) args = read_args(iprot, Get_all_tables_args) result = Get_all_tables_result.new() @@ -4613,6 +4640,44 @@ module ThriftHiveMetastore ::Thrift::Struct.generate_accessors self end + class Get_table_meta_args + include ::Thrift::Struct, ::Thrift::Struct_Union + DB_PATTERNS = 1 + TBL_PATTERNS = 2 + TBL_TYPES = 3 + + FIELDS = { + DB_PATTERNS => {:type => ::Thrift::Types::STRING, :name => 'db_patterns'}, + TBL_PATTERNS => {:type => ::Thrift::Types::STRING, :name => 'tbl_patterns'}, + TBL_TYPES => {:type => ::Thrift::Types::LIST, :name => 'tbl_types', :element => {:type => ::Thrift::Types::STRING}} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Get_table_meta_result + include ::Thrift::Struct, ::Thrift::Struct_Union + SUCCESS = 0 + O1 = 1 + + FIELDS = { + SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::TableMeta}}, + O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + class Get_all_tables_args include ::Thrift::Struct, ::Thrift::Struct_Union DB_NAME = 1 diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java b/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java index 2e9afaf..3c40d6e 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java @@ -110,7 +110,6 @@ import javax.jdo.JDOException; import java.io.IOException; -import java.lang.reflect.Field; import java.nio.ByteBuffer; import java.text.DateFormat; import java.text.SimpleDateFormat; @@ -1710,6 +1709,23 @@ public Table get_table(final String dbname, final String name) throws MetaExcept return t; } + @Override + public List get_table_meta(String dbnames, String tblNames, List tblTypes) + throws MetaException, NoSuchObjectException { + List t = null; + startTableFunction("get_table_metas", dbnames, tblNames); + Exception ex = null; + try { + t = getMS().getTableMeta(dbnames, tblNames, tblTypes); + } catch (Exception e) { + ex = e; + throw newMetaException(e); + } finally { + endFunction("get_table_metas", t != null, ex); + } + return t; + } + /** * Equivalent of get_table, but does not log audits and fire pre-event listener. * Meant to be used for calls made by other hive classes, that are not using the @@ -5249,6 +5265,9 @@ public boolean partition_name_has_valid_characters(List part_vals, } private static MetaException newMetaException(Exception e) { + if (e instanceof MetaException) { + return (MetaException)e; + } MetaException me = new MetaException(e.toString()); me.initCause(e); return me; diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java b/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java index f86ec45..c5e7a5f 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java @@ -131,6 +131,7 @@ import org.apache.hadoop.hive.metastore.api.ShowLocksRequest; import org.apache.hadoop.hive.metastore.api.ShowLocksResponse; import org.apache.hadoop.hive.metastore.api.Table; +import org.apache.hadoop.hive.metastore.api.TableMeta; import org.apache.hadoop.hive.metastore.api.TableStatsRequest; import org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore; import org.apache.hadoop.hive.metastore.api.TxnAbortedException; @@ -1314,6 +1315,37 @@ public Type getType(String name) throws NoSuchObjectException, MetaException, TE return null; } + @Override + public List getTableMeta(String dbPatterns, String tablePatterns, List tableTypes) + throws MetaException { + try { + return filterNames(client.get_table_meta(dbPatterns, tablePatterns, tableTypes)); + } catch (Exception e) { + MetaStoreUtils.logAndThrowMetaException(e); + } + return null; + } + + private List filterNames(List metas) throws MetaException { + Map sources = new LinkedHashMap<>(); + Map> dbTables = new LinkedHashMap<>(); + for (TableMeta meta : metas) { + sources.put(meta.getDbName() + "." + meta.getTableName(), meta); + List tables = dbTables.get(meta.getDbName()); + if (tables == null) { + dbTables.put(meta.getDbName(), tables = new ArrayList()); + } + tables.add(meta.getTableName()); + } + List filtered = new ArrayList<>(); + for (Map.Entry> entry : dbTables.entrySet()) { + for (String table : filterHook.filterTableNames(entry.getKey(), entry.getValue())) { + filtered.add(sources.get(entry.getKey() + "." + table)); + } + } + return filtered; + } + /** {@inheritDoc} */ @Override public List getAllTables(String dbname) throws MetaException { diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java b/metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java index 9279cf5..aa96f77 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java @@ -70,6 +70,7 @@ import org.apache.hadoop.hive.metastore.api.ShowCompactResponse; import org.apache.hadoop.hive.metastore.api.ShowLocksResponse; import org.apache.hadoop.hive.metastore.api.Table; +import org.apache.hadoop.hive.metastore.api.TableMeta; import org.apache.hadoop.hive.metastore.api.TxnAbortedException; import org.apache.hadoop.hive.metastore.api.TxnOpenException; import org.apache.hadoop.hive.metastore.api.UnknownDBException; @@ -161,6 +162,12 @@ throws MetaException, TException, UnknownDBException; /** + * For quick GetTablesOperation + */ + List getTableMeta(String dbPatterns, String tablePatterns, List tableTypes) + throws MetaException, TException, UnknownDBException; + + /** * Get the names of all tables in the specified database. * @param dbName * @return List of table names. diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java b/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java index 9f2f5f4..803c6e7 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java @@ -55,8 +55,6 @@ import javax.jdo.identity.IntIdentity; import com.google.common.annotations.VisibleForTesting; -import org.antlr.runtime.CommonTokenStream; -import org.antlr.runtime.RecognitionException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.apache.hadoop.conf.Configurable; @@ -109,6 +107,7 @@ import org.apache.hadoop.hive.metastore.api.SkewedInfo; import org.apache.hadoop.hive.metastore.api.StorageDescriptor; import org.apache.hadoop.hive.metastore.api.Table; +import org.apache.hadoop.hive.metastore.api.TableMeta; import org.apache.hadoop.hive.metastore.api.Type; import org.apache.hadoop.hive.metastore.api.UnknownDBException; import org.apache.hadoop.hive.metastore.api.UnknownPartitionException; @@ -143,12 +142,7 @@ import org.apache.hadoop.hive.metastore.model.MType; import org.apache.hadoop.hive.metastore.model.MVersionTable; import org.apache.hadoop.hive.metastore.parser.ExpressionTree; -import org.apache.hadoop.hive.metastore.parser.ExpressionTree.ANTLRNoCaseStringStream; import org.apache.hadoop.hive.metastore.parser.ExpressionTree.FilterBuilder; -import org.apache.hadoop.hive.metastore.parser.ExpressionTree.LeafNode; -import org.apache.hadoop.hive.metastore.parser.ExpressionTree.Operator; -import org.apache.hadoop.hive.metastore.parser.FilterLexer; -import org.apache.hadoop.hive.metastore.parser.FilterParser; import org.apache.hadoop.hive.serde2.typeinfo.PrimitiveTypeInfo; import org.apache.hadoop.hive.serde2.typeinfo.TypeInfoFactory; import org.apache.hadoop.hive.shims.ShimLoader; @@ -729,6 +723,9 @@ public boolean dropDatabase(String dbname) throws NoSuchObjectException, MetaExc @Override public List getDatabases(String pattern) throws MetaException { + if (pattern == null || pattern.equals("*")) { + return getAllDatabases(); + } boolean commited = false; List databases = null; Query query = null; @@ -770,7 +767,28 @@ public boolean dropDatabase(String dbname) throws NoSuchObjectException, MetaExc @Override public List getAllDatabases() throws MetaException { - return getDatabases(".*"); + boolean commited = false; + List databases = null; + + String queryStr = "select name from org.apache.hadoop.hive.metastore.model.MDatabase"; + Query query = null; + + openTransaction(); + try { + query = pm.newQuery(queryStr); + query.setResult("name"); + databases = new ArrayList((Collection) query.execute()); + commited = commitTransaction(); + } finally { + if (!commited) { + rollbackTransaction(); + } + if (query != null) { + query.closeAll(); + } + } + Collections.sort(databases); + return databases; } private MType getMType(Type type) { @@ -1050,6 +1068,84 @@ public Table getTable(String dbName, String tableName) throws MetaException { } @Override + public List getTableMeta(String dbNames, String tableNames, List tableTypes) + throws MetaException { + + boolean commited = false; + Query query = null; + List metas = new ArrayList(); + try { + openTransaction(); + // Take the pattern and split it on the | to get all the composing + // patterns + StringBuilder builder = new StringBuilder(); + if (dbNames != null && !dbNames.equals("*")) { + appendPatternCondition(builder, "database.name", dbNames); + } + if (tableNames != null && !tableNames.equals("*")) { + appendPatternCondition(builder, "tableName", tableNames); + } + if (tableTypes != null && !tableTypes.isEmpty()) { + appendSimpleCondition(builder, "tableType", tableTypes.toArray(new String[0])); + } + + query = pm.newQuery(MTable.class, builder.toString()); + Collection tables = (Collection) query.execute(); + for (MTable table : tables) { + TableMeta metaData = new TableMeta( + table.getDatabase().getName(), table.getTableName(), table.getTableType()); + metaData.setComments(table.getParameters().get("comment")); + metas.add(metaData); + } + commited = commitTransaction(); + } finally { + if (!commited) { + rollbackTransaction(); + } + if (query != null) { + query.closeAll(); + } + } + return metas; + } + + private StringBuilder appendPatternCondition(StringBuilder builder, + String fieldName, String elements) { + elements = HiveStringUtils.normalizeIdentifier(elements); + return appendCondition(builder, fieldName, elements.split("\\|"), true); + } + + private StringBuilder appendSimpleCondition(StringBuilder builder, + String fieldName, String[] elements) { + return appendCondition(builder, fieldName, elements, false); + } + + private StringBuilder appendCondition(StringBuilder builder, + String fieldName, String[] elements, boolean pattern) { + if (builder.length() > 0) { + builder.append(" && "); + } + builder.append(" ("); + int length = builder.length(); + for (String element : elements) { + if (pattern) { + element = "(?i)" + element.replaceAll("\\*", ".*"); + } + if (builder.length() > length) { + builder.append(" || "); + } + builder.append(fieldName); + if (pattern) { + builder.append(".matches(\"").append(element).append("\")"); + } else { + builder.append(" == \"").append(element).append("\""); + } + } + builder.append(" )"); + return builder; + } + + @Override public List getAllTables(String dbName) throws MetaException { return getTables(dbName, ".*"); } diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java b/metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java index 4aa17a5..5b36b03 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java @@ -51,6 +51,7 @@ import org.apache.hadoop.hive.metastore.api.Role; import org.apache.hadoop.hive.metastore.api.RolePrincipalGrant; import org.apache.hadoop.hive.metastore.api.Table; +import org.apache.hadoop.hive.metastore.api.TableMeta; import org.apache.hadoop.hive.metastore.api.Type; import org.apache.hadoop.hive.metastore.api.UnknownDBException; import org.apache.hadoop.hive.metastore.api.UnknownPartitionException; @@ -151,6 +152,9 @@ public abstract void alterTable(String dbname, String name, Table newTable) public List getTables(String dbName, String pattern) throws MetaException; + public List getTableMeta( + String dbNames, String tableNames, List tableTypes) throws MetaException; + /** * @param dbname * The name of the database from which to retrieve the tables diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/hbase/HBaseStore.java b/metastore/src/java/org/apache/hadoop/hive/metastore/hbase/HBaseStore.java index 5cc7c30..98e6c75 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/hbase/HBaseStore.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/hbase/HBaseStore.java @@ -62,6 +62,7 @@ import org.apache.hadoop.hive.metastore.api.Role; import org.apache.hadoop.hive.metastore.api.RolePrincipalGrant; import org.apache.hadoop.hive.metastore.api.Table; +import org.apache.hadoop.hive.metastore.api.TableMeta; import org.apache.hadoop.hive.metastore.api.Type; import org.apache.hadoop.hive.metastore.api.UnknownDBException; import org.apache.hadoop.hive.metastore.api.UnknownPartitionException; @@ -71,7 +72,6 @@ import org.apache.hadoop.hive.metastore.hbase.HBaseFilterPlanUtil.ScanPlan; import org.apache.hadoop.hive.metastore.parser.ExpressionTree; import org.apache.hadoop.hive.metastore.partition.spec.PartitionSpecProxy; -import org.apache.hadoop.hive.ql.io.sarg.SearchArgument; import org.apache.hadoop.hive.serde2.typeinfo.PrimitiveTypeInfo; import org.apache.hadoop.hive.serde2.typeinfo.TypeInfoFactory; import org.apache.hive.common.util.HiveStringUtils; @@ -487,10 +487,7 @@ public void alterTable(String dbName, String tableName, Table newTable) throws I boolean commit = false; openTransaction(); try { - List
tables = getHBase().scanTables(HiveStringUtils.normalizeIdentifier(dbName), - pattern==null?null:HiveStringUtils.normalizeIdentifier(likeToRegex(pattern))); - List tableNames = new ArrayList(tables.size()); - for (Table table : tables) tableNames.add(table.getTableName()); + List tableNames = getTableNamesInTx(dbName, pattern); commit = true; return tableNames; } catch (IOException e) { @@ -501,6 +498,41 @@ public void alterTable(String dbName, String tableName, Table newTable) throws I } } + private List getTableNamesInTx(String dbName, String pattern) throws IOException { + List
tables = getHBase().scanTables(HiveStringUtils.normalizeIdentifier(dbName), + pattern==null?null:HiveStringUtils.normalizeIdentifier(likeToRegex(pattern))); + List tableNames = new ArrayList(tables.size()); + for (Table table : tables) tableNames.add(table.getTableName()); + return tableNames; + } + + @Override + public List getTableMeta(String dbNames, String tableNames, List tableTypes) + throws MetaException { + boolean commit = false; + openTransaction(); + try { + List metas = new ArrayList<>(); + for (String dbName : getDatabases(dbNames)) { + for (Table table : getTableObjectsByName(dbName, getTableNamesInTx(dbName, tableNames))) { + if (tableTypes == null || tableTypes.contains(table.getTableType())) { + TableMeta metaData = new TableMeta( + table.getDbName(), table.getTableName(), table.getTableType()); + metaData.setComments(table.getParameters().get("comment")); + metas.add(metaData); + } + } + } + commit = true; + return metas; + } catch (Exception e) { + LOG.error("Unable to get tables ", e); + throw new MetaException("Unable to get tables, " + e.getMessage()); + } finally { + commitOrRoleBack(commit); + } + } + @Override public List
getTableObjectsByName(String dbname, List tableNames) throws MetaException, UnknownDBException { @@ -1660,7 +1692,7 @@ public ColumnStatistics getTableColumnStatistics(String dbName, String tableName openTransaction(); try { List cs = - getHBase().getPartitionStatistics(dbName, tblName, partNames, partVals, colNames); + getHBase().getPartitionStatistics(dbName, tblName, partNames, partVals, colNames); commit = true; return cs; } catch (IOException e) { diff --git a/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java b/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java index a100e9f..9a1d159 100644 --- a/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java +++ b/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java @@ -50,6 +50,7 @@ import org.apache.hadoop.hive.metastore.api.Role; import org.apache.hadoop.hive.metastore.api.RolePrincipalGrant; import org.apache.hadoop.hive.metastore.api.Table; +import org.apache.hadoop.hive.metastore.api.TableMeta; import org.apache.hadoop.hive.metastore.api.Type; import org.apache.hadoop.hive.metastore.api.UnknownDBException; import org.apache.hadoop.hive.metastore.api.UnknownPartitionException; @@ -220,6 +221,12 @@ public void alterTable(String dbName, String name, Table newTable) } @Override + public List getTableMeta(String dbNames, String tableNames, List tableTypes) + throws MetaException { + return objectStore.getTableMeta(dbNames, tableNames, tableTypes); + } + + @Override public List
getTableObjectsByName(String dbName, List tableNames) throws MetaException, UnknownDBException { return objectStore.getTableObjectsByName(dbName, tableNames); diff --git a/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java b/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java index f6100e6..8dde0af 100644 --- a/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java +++ b/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java @@ -51,6 +51,7 @@ import org.apache.hadoop.hive.metastore.api.Role; import org.apache.hadoop.hive.metastore.api.RolePrincipalGrant; import org.apache.hadoop.hive.metastore.api.Table; +import org.apache.hadoop.hive.metastore.api.TableMeta; import org.apache.hadoop.hive.metastore.api.Type; import org.apache.hadoop.hive.metastore.api.UnknownDBException; import org.apache.hadoop.hive.metastore.api.UnknownPartitionException; @@ -224,6 +225,12 @@ public void alterTable(String dbname, String name, Table newTable) throws Invali } @Override + public List getTableMeta(String dbNames, String tableNames, List tableTypes) + throws MetaException { + return Collections.emptyList(); + } + + @Override public List
getTableObjectsByName(String dbname, List tableNames) throws MetaException, UnknownDBException { diff --git a/ql/src/java/org/apache/hadoop/hive/ql/metadata/SessionHiveMetaStoreClient.java b/ql/src/java/org/apache/hadoop/hive/ql/metadata/SessionHiveMetaStoreClient.java index 7af9d85..581a919 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/metadata/SessionHiveMetaStoreClient.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/metadata/SessionHiveMetaStoreClient.java @@ -50,6 +50,7 @@ import org.apache.hadoop.hive.metastore.api.MetaException; import org.apache.hadoop.hive.metastore.api.NoSuchObjectException; import org.apache.hadoop.hive.metastore.api.PrincipalPrivilegeSet; +import org.apache.hadoop.hive.metastore.api.TableMeta; import org.apache.hadoop.hive.metastore.api.UnknownDBException; import org.apache.hadoop.hive.metastore.api.UnknownTableException; import org.apache.hadoop.hive.ql.session.SessionState; @@ -161,11 +162,7 @@ protected void drop_table_with_environment_context(String dbname, String name, Matcher matcher = pattern.matcher(""); Set combinedTableNames = new HashSet(); for (String tableName : tables.keySet()) { - if (matcher == null) { - matcher = pattern.matcher(tableName); - } else { - matcher.reset(tableName); - } + matcher.reset(tableName); if (matcher.matches()) { combinedTableNames.add(tableName); } @@ -177,6 +174,55 @@ protected void drop_table_with_environment_context(String dbname, String name, Collections.sort(tableNames); return tableNames; } + + @Override + public List getTableMeta(String dbPatterns, String tablePatterns, List tableTypes) + throws MetaException { + List tableMetas = super.getTableMeta(dbPatterns, tablePatterns, tableTypes); + Map> tmpTables = getTempTables(); + if (tmpTables.isEmpty()) { + return tableMetas; + } + + List dbPatternList = new ArrayList<>(); + for (String element : dbPatterns.split("\\|")) { + dbPatternList.add(Pattern.compile(element.replaceAll("\\*", ".*")).matcher("")); + } + List tblPatternList = new ArrayList<>(); + for (String element : tablePatterns.split("\\|")) { + tblPatternList.add(Pattern.compile(element.replaceAll("\\*", ".*")).matcher("")); + } + StringBuilder builder = new StringBuilder(); + for (Map.Entry> outer : tmpTables.entrySet()) { + if (!matchesAny(outer.getKey(), dbPatternList)) { + continue; + } + for (Map.Entry inner : outer.getValue().entrySet()) { + Table table = inner.getValue(); + String tableName = table.getTableName(); + String typeString = table.getTableType().name(); + if (tableTypes != null && !tableTypes.contains(typeString)) { + continue; + } + if (!matchesAny(inner.getKey(), tblPatternList)) { + continue; + } + TableMeta tableMeta = new TableMeta(table.getDbName(), tableName, typeString); + tableMeta.setComments(table.getProperty("comment")); + tableMetas.add(tableMeta); + } + } + return tableMetas; + } + + private boolean matchesAny(String string, List matchers) { + for (Matcher matcher : matchers) { + if (matcher.reset(string).matches()) { + return true; + } + } + return matchers.isEmpty(); + } @Override public List getTableObjectsByName(String dbName, @@ -508,12 +554,16 @@ private void dropTempTable(org.apache.hadoop.hive.metastore.api.Table table, boo } public static Map getTempTablesForDatabase(String dbName) { + return getTempTables().get(dbName); + } + + public static Map> getTempTables() { SessionState ss = SessionState.get(); if (ss == null) { LOG.debug("No current SessionState, skipping temp tables"); - return null; + return Collections.emptyMap(); } - return ss.getTempTables().get(dbName); + return ss.getTempTables(); } private Map getTempTableColumnStatsForTable(String dbName, diff --git a/service/src/java/org/apache/hive/service/cli/operation/GetTablesOperation.java b/service/src/java/org/apache/hive/service/cli/operation/GetTablesOperation.java index 296280f..65bbc1c 100644 --- a/service/src/java/org/apache/hive/service/cli/operation/GetTablesOperation.java +++ b/service/src/java/org/apache/hive/service/cli/operation/GetTablesOperation.java @@ -22,14 +22,11 @@ import java.util.List; import org.apache.hadoop.hive.conf.HiveConf; -import org.apache.hadoop.hive.conf.HiveConf.ConfVars; import org.apache.hadoop.hive.metastore.IMetaStoreClient; -import org.apache.hadoop.hive.metastore.api.Table; -import org.apache.hadoop.hive.ql.metadata.TableIterable; +import org.apache.hadoop.hive.metastore.api.TableMeta; import org.apache.hadoop.hive.ql.security.authorization.plugin.HiveOperationType; import org.apache.hadoop.hive.ql.security.authorization.plugin.HivePrivilegeObject; import org.apache.hadoop.hive.ql.security.authorization.plugin.HivePrivilegeObjectUtils; -import org.apache.hadoop.hive.ql.session.SessionState; import org.apache.hive.service.cli.FetchOrientation; import org.apache.hive.service.cli.HiveSQLException; import org.apache.hive.service.cli.OperationState; @@ -48,7 +45,7 @@ private final String catalogName; private final String schemaName; private final String tableName; - private final List tableTypes = new ArrayList(); + private final List tableTypeList; private final RowSet rowSet; private final TableTypeMapping tableTypeMapping; @@ -58,7 +55,14 @@ .addStringColumn("TABLE_SCHEM", "Schema name.") .addStringColumn("TABLE_NAME", "Table name.") .addStringColumn("TABLE_TYPE", "The table type, e.g. \"TABLE\", \"VIEW\", etc.") - .addStringColumn("REMARKS", "Comments about the table."); + .addStringColumn("REMARKS", "Comments about the table.") + .addStringColumn("TYPE_CAT", "The types catalog.") + .addStringColumn("TYPE_SCHEM", "The types schema.") + .addStringColumn("TYPE_NAME", "Type name.") + .addStringColumn("SELF_REFERENCING_COL_NAME", + "Name of the designated \"identifier\" column of a typed table.") + .addStringColumn("REF_GENERATION", + "Specifies how values in SELF_REFERENCING_COL_NAME are created."); protected GetTablesOperation(HiveSession parentSession, String catalogName, String schemaName, String tableName, @@ -72,7 +76,12 @@ protected GetTablesOperation(HiveSession parentSession, tableTypeMapping = TableTypeMappingFactory.getTableTypeMapping(tableMappingStr); if (tableTypes != null) { - this.tableTypes.addAll(tableTypes); + tableTypeList = new ArrayList(); + for (String tableType : tableTypes) { + tableTypeList.add(tableTypeMapping.mapToHiveType(tableType.trim())); + } + } else { + tableTypeList = null; } this.rowSet = RowSetFactory.create(RESULT_SET_SCHEMA, getProtocolVersion()); } @@ -91,23 +100,17 @@ public void runInternal() throws HiveSQLException { } String tablePattern = convertIdentifierPattern(tableName, true); - int maxBatchSize = SessionState.get().getConf().getIntVar(ConfVars.METASTORE_BATCH_RETRIEVE_MAX); - for (String dbName : metastoreClient.getDatabases(schemaPattern)) { - List tableNames = metastoreClient.getTables(dbName, tablePattern); - for (Table table : new TableIterable(metastoreClient, dbName, tableNames, maxBatchSize)) { - Object[] rowData = new Object[] { + for (TableMeta tableMeta : + metastoreClient.getTableMeta(schemaPattern, tablePattern, tableTypeList)) { + rowSet.addRow(new Object[] { DEFAULT_HIVE_CATALOG, - table.getDbName(), - table.getTableName(), - tableTypeMapping.mapToClientType(table.getTableType()), - table.getParameters().get("comment") - }; - if (tableTypes.isEmpty() || tableTypes.contains( - tableTypeMapping.mapToClientType(table.getTableType()))) { - rowSet.addRow(rowData); - } - } + tableMeta.getDbName(), + tableMeta.getTableName(), + tableTypeMapping.mapToClientType(tableMeta.getTableType()), + tableMeta.getComments(), + null, null, null, null, null + }); } setState(OperationState.FINISHED); } catch (Exception e) { diff --git a/service/src/java/org/apache/hive/service/cli/operation/MetadataOperation.java b/service/src/java/org/apache/hive/service/cli/operation/MetadataOperation.java index 4595ef5..285b4f9 100644 --- a/service/src/java/org/apache/hive/service/cli/operation/MetadataOperation.java +++ b/service/src/java/org/apache/hive/service/cli/operation/MetadataOperation.java @@ -18,7 +18,6 @@ package org.apache.hive.service.cli.operation; -import java.util.ArrayList; import java.util.List; import org.apache.hadoop.hive.conf.HiveConf; @@ -95,16 +94,30 @@ protected String convertSchemaPattern(final String pattern) { * other hand is done locally inside the hive code and that requires the regex wildchar * format '.*' This is driven by the datanucleusFormat flag. */ - private String convertPattern(final String pattern, boolean datanucleusFormat) { + private String convertPattern(String pattern, boolean datanucleusFormat) { String wStr; if (datanucleusFormat) { wStr = "*"; } else { wStr = ".*"; } - return pattern - .replaceAll("([^\\\\])%", "$1" + wStr).replaceAll("\\\\%", "%").replaceAll("^%", wStr) - .replaceAll("([^\\\\])_", "$1.").replaceAll("\\\\_", "_").replaceAll("^_", "."); + pattern = replaceAll(pattern, "([^\\\\])%", "$1" + wStr); + pattern = replaceAll(pattern, "\\\\%", "%"); + pattern = replaceAll(pattern, "^%", wStr); + pattern = replaceAll(pattern, "([^\\\\])_", "$1."); + pattern = replaceAll(pattern, "\\\\_", "_"); + pattern = replaceAll(pattern, "^_", "."); + return pattern; + } + + private String replaceAll(String input, final String pattern, final String replace) { + while (true) { + String replaced = input.replaceAll(pattern, replace); + if (replaced.equals(input)) { + return replaced; + } + input = replaced; + } } protected boolean isAuthV2Enabled(){