diff --git itests/hive-unit/src/test/java/org/apache/hadoop/hive/metastore/TestHiveMetastoreTransformer.java itests/hive-unit/src/test/java/org/apache/hadoop/hive/metastore/TestHiveMetastoreTransformer.java index e50b577ff7..4fea863d27 100644 --- itests/hive-unit/src/test/java/org/apache/hadoop/hive/metastore/TestHiveMetastoreTransformer.java +++ itests/hive-unit/src/test/java/org/apache/hadoop/hive/metastore/TestHiveMetastoreTransformer.java @@ -18,12 +18,16 @@ package org.apache.hadoop.hive.metastore; +import java.io.File; +import java.io.IOException; + import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.hadoop.hive.metastore.HiveMetaStoreClient.GetTablesRequestBuilder; +import org.apache.hadoop.hive.metastore.api.Database; import org.apache.hadoop.hive.metastore.api.ExtendedTableInfo; import org.apache.hadoop.hive.metastore.api.FieldSchema; import org.apache.hadoop.hive.metastore.api.GetTablesExtRequestFields; @@ -44,6 +48,7 @@ import static org.apache.hadoop.hive.metastore.api.hive_metastoreConstants.ACCESSTYPE_READONLY; import static org.apache.hadoop.hive.metastore.api.hive_metastoreConstants.ACCESSTYPE_READWRITE; import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; @@ -64,16 +69,27 @@ private static final Logger LOG = LoggerFactory.getLogger(TestHiveMetastoreTransformer.class); protected static HiveMetaStoreClient client; protected static Configuration conf; + File ext_wh = null; + File wh = null; - protected static boolean isThriftClient = false; + protected static boolean isThriftClient = true; private static final String CAPABILITIES_KEY = "OBJCAPABILITIES"; @Before public void setUp() throws Exception { conf = MetastoreConf.newMetastoreConf(); + wh = new File(System.getProperty("java.io.tmpdir") + File.separator + + "hive" + File.separator + "warehouse" + File.separator + "managed" + File.separator); + wh.mkdirs(); + + ext_wh = new File(System.getProperty("java.io.tmpdir") + File.separator + + "hive" + File.separator + "warehouse" + File.separator + "external" + File.separator); + ext_wh.mkdirs(); - MetastoreConf.setVar(conf, ConfVars.METASTORE_METADATA_TRANSFORMER_CLASS, "org.apache.hadoop.hive.metastore.MetastoreDefaultTransformer"); + MetastoreConf.setVar(conf, ConfVars.METASTORE_METADATA_TRANSFORMER_CLASS, + "org.apache.hadoop.hive.metastore.MetastoreDefaultTransformer"); MetastoreConf.setBoolVar(conf, ConfVars.HIVE_IN_TEST, false); + MetastoreConf.setVar(conf, ConfVars.WAREHOUSE_EXTERNAL, ext_wh.getAbsolutePath()); client = new HiveMetaStoreClient(conf); } @@ -1110,6 +1126,152 @@ public void testCreateTable() throws Exception { } } + @Test + public void testTransformerDatabase() throws Exception { + try { + resetHMSClient(); + + final String dbName = "testdb"; + try { + silentDropDatabase(dbName); + } catch (Exception e) { + LOG.info("Drop database failed for " + dbName); + } + + new DatabaseBuilder() + .setName(dbName) + .create(client, conf); + + List capabilities = new ArrayList<>(); + capabilities.add("EXTWRITE"); + setHMSClient("TestGetDatabaseEXTWRITE", (String[])(capabilities.toArray(new String[0]))); + Database db = client.getDatabase(dbName); + assertTrue("Database location not as expected:actual=" + db.getLocationUri(), + db.getLocationUri().contains(conf.get(MetastoreConf.ConfVars.WAREHOUSE_EXTERNAL.getVarname()))); + + capabilities = new ArrayList<>(); + capabilities.add("HIVEFULLACIDWRITE"); + setHMSClient("TestGetDatabaseACIDWRITE", (String[])(capabilities.toArray(new String[0]))); + + db = client.getDatabase(dbName); + assertFalse("Database location not expected to be external warehouse:actual=" + db.getLocationUri(), + db.getLocationUri().contains(conf.get(MetastoreConf.ConfVars.WAREHOUSE_EXTERNAL.getVarname()))); + resetHMSClient(); + + capabilities = new ArrayList<>(); + capabilities.add("HIVEMANAGEDINSERTWRITE"); + setHMSClient("TestGetDatabaseINSERTWRITE", (String[])(capabilities.toArray(new String[0]))); + + db = client.getDatabase(dbName); + assertFalse("Database location not expected to be external warehouse:actual=" + db.getLocationUri(), + db.getLocationUri().contains(conf.get(MetastoreConf.ConfVars.WAREHOUSE_EXTERNAL.getVarname()))); + resetHMSClient(); + } catch (Exception e) { + System.err.println(org.apache.hadoop.util.StringUtils.stringifyException(e)); + System.err.println("testTransformerDatabase() failed."); + fail("testTransformerDatabase failed:" + e.getMessage()); + } finally { + resetHMSClient(); + } + } + + @Test + public void testTransformerMultiTable() throws Exception { + try { + resetHMSClient(); + + final String dbName = "testdb"; + final String ext_table = "ext_table"; + final String acidTable = "managed_table"; + final String part_ext = "part_ext"; + + try { + silentDropDatabase(dbName); + } catch (Exception e) { + LOG.info("Drop database failed for " + dbName); + } + + new DatabaseBuilder() + .setName(dbName) + .create(client, conf); + + List capabilities = new ArrayList<>(); + capabilities.add("HIVEFULLACIDWRITE"); + setHMSClient("TestTransformerMultiTable", (String[])(capabilities.toArray(new String[0]))); + + Map tProps = new HashMap<>(); + tProps.put("DBNAME", dbName); + tProps.put("TBLNAME", ext_table); + tProps.put("TBLTYPE", TableType.EXTERNAL_TABLE); + tProps.put("DROPDB", Boolean.FALSE); + StringBuilder properties = new StringBuilder(); + properties.append("EXTERNAL").append("=").append("TRUE"); + tProps.put("PROPERTIES", properties.toString()); + Table tbl = createTableWithCapabilities(tProps); + + tProps.put("TBLNAME", acidTable); + tProps.put("TBLTYPE", TableType.MANAGED_TABLE); + properties = new StringBuilder(); + properties.append("transactional").append("=").append("true"); + tProps.put("PROPERTIES", properties.toString()); + tProps.put("DROPDB", Boolean.FALSE); + tbl = createTableWithCapabilities(tProps); + + tProps = new HashMap<>(); + tProps.put("DBNAME", dbName); + tProps.put("TBLNAME", part_ext); + tProps.put("TBLTYPE", TableType.EXTERNAL_TABLE); + tProps.put("DROPDB", Boolean.FALSE); + properties = new StringBuilder(); + properties.append("EXTERNAL").append("=").append("TRUE"); + tProps.put("PROPERTIES", properties.toString()); + tProps.put("PARTITIONS", 10); + tbl = createTableWithCapabilities(tProps); + + resetHMSClient(); + capabilities = new ArrayList<>(); + capabilities.add("EXTWRITE"); + capabilities.add("EXTREAD"); + setHMSClient("TestTransformerMultiTable", (String[])(capabilities.toArray(new String[0]))); + tbl = client.getTable(dbName, acidTable); + assertEquals("AccessType does not match", ACCESSTYPE_NONE, tbl.getAccessType()); + tbl = client.getTable(dbName, acidTable); + assertEquals("AccessType does not match", ACCESSTYPE_NONE, tbl.getAccessType()); + + tbl = client.getTable(dbName, ext_table); + assertEquals("AccessType does not match", ACCESSTYPE_READWRITE, tbl.getAccessType()); + tbl = client.getTable(dbName, acidTable); + assertEquals("AccessType does not match", ACCESSTYPE_NONE, tbl.getAccessType()); + resetHMSClient(); + + capabilities = new ArrayList<>(); + capabilities.add("EXTWRITE"); + capabilities.add("EXTREAD"); + capabilities.add("HIVESQL"); + capabilities.add("SPARKSQL"); + capabilities.add("HIVEBUCKET2"); + setHMSClient("TestTransformerMultiTable", (String[])(capabilities.toArray(new String[0]))); + tbl = client.getTable(dbName, acidTable); + assertEquals("AccessType does not match", ACCESSTYPE_NONE, tbl.getAccessType()); + tbl = client.getTable(dbName, acidTable); + assertEquals("AccessType does not match", ACCESSTYPE_NONE, tbl.getAccessType()); + + tbl = client.getTable(dbName, part_ext); + assertEquals("AccessType does not match", ACCESSTYPE_READWRITE, tbl.getAccessType()); + tbl = client.getTable(dbName, acidTable); + assertEquals("AccessType does not match", ACCESSTYPE_NONE, tbl.getAccessType()); + resetHMSClient(); + + } catch (Exception e) { + e.printStackTrace(); + System.err.println(org.apache.hadoop.util.StringUtils.stringifyException(e)); + System.err.println("testTransformerDatabase() failed."); + fail("testTransformerDatabase failed:" + e.getMessage()); + } finally { + resetHMSClient(); + } + } + private List createTables(Map props) throws Exception { int count = ((Integer)props.get("TABLECOUNT")).intValue(); String tblName = (String)props.get("TBLNAME"); @@ -1132,7 +1294,6 @@ public void testCreateTable() throws Exception { } catch (Exception e) { LOG.warn("Create table failed for " + newtblName); } - return ret; } diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AlterPartitionsRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AlterPartitionsRequest.java index 6453c93d79..d13d87c8bc 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AlterPartitionsRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AlterPartitionsRequest.java @@ -877,14 +877,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AlterPartitionsRequ case 4: // PARTITIONS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1104 = iprot.readListBegin(); - struct.partitions = new ArrayList(_list1104.size); - Partition _elem1105; - for (int _i1106 = 0; _i1106 < _list1104.size; ++_i1106) + org.apache.thrift.protocol.TList _list1112 = iprot.readListBegin(); + struct.partitions = new ArrayList(_list1112.size); + Partition _elem1113; + for (int _i1114 = 0; _i1114 < _list1112.size; ++_i1114) { - _elem1105 = new Partition(); - _elem1105.read(iprot); - struct.partitions.add(_elem1105); + _elem1113 = new Partition(); + _elem1113.read(iprot); + struct.partitions.add(_elem1113); } iprot.readListEnd(); } @@ -952,9 +952,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, AlterPartitionsReq oprot.writeFieldBegin(PARTITIONS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitions.size())); - for (Partition _iter1107 : struct.partitions) + for (Partition _iter1115 : struct.partitions) { - _iter1107.write(oprot); + _iter1115.write(oprot); } oprot.writeListEnd(); } @@ -1000,9 +1000,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AlterPartitionsRequ oprot.writeString(struct.tableName); { oprot.writeI32(struct.partitions.size()); - for (Partition _iter1108 : struct.partitions) + for (Partition _iter1116 : struct.partitions) { - _iter1108.write(oprot); + _iter1116.write(oprot); } } BitSet optionals = new BitSet(); @@ -1041,14 +1041,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, AlterPartitionsReque struct.tableName = iprot.readString(); struct.setTableNameIsSet(true); { - org.apache.thrift.protocol.TList _list1109 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitions = new ArrayList(_list1109.size); - Partition _elem1110; - for (int _i1111 = 0; _i1111 < _list1109.size; ++_i1111) + org.apache.thrift.protocol.TList _list1117 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitions = new ArrayList(_list1117.size); + Partition _elem1118; + for (int _i1119 = 0; _i1119 < _list1117.size; ++_i1119) { - _elem1110 = new Partition(); - _elem1110.read(iprot); - struct.partitions.add(_elem1110); + _elem1118 = new Partition(); + _elem1118.read(iprot); + struct.partitions.add(_elem1118); } } struct.setPartitionsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CreateTableRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CreateTableRequest.java index 5d42a80373..8fa1086f18 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CreateTableRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CreateTableRequest.java @@ -1225,14 +1225,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, CreateTableRequest case 3: // PRIMARY_KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1048 = iprot.readListBegin(); - struct.primaryKeys = new ArrayList(_list1048.size); - SQLPrimaryKey _elem1049; - for (int _i1050 = 0; _i1050 < _list1048.size; ++_i1050) + org.apache.thrift.protocol.TList _list1056 = iprot.readListBegin(); + struct.primaryKeys = new ArrayList(_list1056.size); + SQLPrimaryKey _elem1057; + for (int _i1058 = 0; _i1058 < _list1056.size; ++_i1058) { - _elem1049 = new SQLPrimaryKey(); - _elem1049.read(iprot); - struct.primaryKeys.add(_elem1049); + _elem1057 = new SQLPrimaryKey(); + _elem1057.read(iprot); + struct.primaryKeys.add(_elem1057); } iprot.readListEnd(); } @@ -1244,14 +1244,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, CreateTableRequest case 4: // FOREIGN_KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1051 = iprot.readListBegin(); - struct.foreignKeys = new ArrayList(_list1051.size); - SQLForeignKey _elem1052; - for (int _i1053 = 0; _i1053 < _list1051.size; ++_i1053) + org.apache.thrift.protocol.TList _list1059 = iprot.readListBegin(); + struct.foreignKeys = new ArrayList(_list1059.size); + SQLForeignKey _elem1060; + for (int _i1061 = 0; _i1061 < _list1059.size; ++_i1061) { - _elem1052 = new SQLForeignKey(); - _elem1052.read(iprot); - struct.foreignKeys.add(_elem1052); + _elem1060 = new SQLForeignKey(); + _elem1060.read(iprot); + struct.foreignKeys.add(_elem1060); } iprot.readListEnd(); } @@ -1263,14 +1263,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, CreateTableRequest case 5: // UNIQUE_CONSTRAINTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1054 = iprot.readListBegin(); - struct.uniqueConstraints = new ArrayList(_list1054.size); - SQLUniqueConstraint _elem1055; - for (int _i1056 = 0; _i1056 < _list1054.size; ++_i1056) + org.apache.thrift.protocol.TList _list1062 = iprot.readListBegin(); + struct.uniqueConstraints = new ArrayList(_list1062.size); + SQLUniqueConstraint _elem1063; + for (int _i1064 = 0; _i1064 < _list1062.size; ++_i1064) { - _elem1055 = new SQLUniqueConstraint(); - _elem1055.read(iprot); - struct.uniqueConstraints.add(_elem1055); + _elem1063 = new SQLUniqueConstraint(); + _elem1063.read(iprot); + struct.uniqueConstraints.add(_elem1063); } iprot.readListEnd(); } @@ -1282,14 +1282,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, CreateTableRequest case 6: // NOT_NULL_CONSTRAINTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1057 = iprot.readListBegin(); - struct.notNullConstraints = new ArrayList(_list1057.size); - SQLNotNullConstraint _elem1058; - for (int _i1059 = 0; _i1059 < _list1057.size; ++_i1059) + org.apache.thrift.protocol.TList _list1065 = iprot.readListBegin(); + struct.notNullConstraints = new ArrayList(_list1065.size); + SQLNotNullConstraint _elem1066; + for (int _i1067 = 0; _i1067 < _list1065.size; ++_i1067) { - _elem1058 = new SQLNotNullConstraint(); - _elem1058.read(iprot); - struct.notNullConstraints.add(_elem1058); + _elem1066 = new SQLNotNullConstraint(); + _elem1066.read(iprot); + struct.notNullConstraints.add(_elem1066); } iprot.readListEnd(); } @@ -1301,14 +1301,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, CreateTableRequest case 7: // DEFAULT_CONSTRAINTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1060 = iprot.readListBegin(); - struct.defaultConstraints = new ArrayList(_list1060.size); - SQLDefaultConstraint _elem1061; - for (int _i1062 = 0; _i1062 < _list1060.size; ++_i1062) + org.apache.thrift.protocol.TList _list1068 = iprot.readListBegin(); + struct.defaultConstraints = new ArrayList(_list1068.size); + SQLDefaultConstraint _elem1069; + for (int _i1070 = 0; _i1070 < _list1068.size; ++_i1070) { - _elem1061 = new SQLDefaultConstraint(); - _elem1061.read(iprot); - struct.defaultConstraints.add(_elem1061); + _elem1069 = new SQLDefaultConstraint(); + _elem1069.read(iprot); + struct.defaultConstraints.add(_elem1069); } iprot.readListEnd(); } @@ -1320,14 +1320,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, CreateTableRequest case 8: // CHECK_CONSTRAINTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1063 = iprot.readListBegin(); - struct.checkConstraints = new ArrayList(_list1063.size); - SQLCheckConstraint _elem1064; - for (int _i1065 = 0; _i1065 < _list1063.size; ++_i1065) + org.apache.thrift.protocol.TList _list1071 = iprot.readListBegin(); + struct.checkConstraints = new ArrayList(_list1071.size); + SQLCheckConstraint _elem1072; + for (int _i1073 = 0; _i1073 < _list1071.size; ++_i1073) { - _elem1064 = new SQLCheckConstraint(); - _elem1064.read(iprot); - struct.checkConstraints.add(_elem1064); + _elem1072 = new SQLCheckConstraint(); + _elem1072.read(iprot); + struct.checkConstraints.add(_elem1072); } iprot.readListEnd(); } @@ -1339,13 +1339,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, CreateTableRequest case 9: // PROCESSOR_CAPABILITIES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1066 = iprot.readListBegin(); - struct.processorCapabilities = new ArrayList(_list1066.size); - String _elem1067; - for (int _i1068 = 0; _i1068 < _list1066.size; ++_i1068) + org.apache.thrift.protocol.TList _list1074 = iprot.readListBegin(); + struct.processorCapabilities = new ArrayList(_list1074.size); + String _elem1075; + for (int _i1076 = 0; _i1076 < _list1074.size; ++_i1076) { - _elem1067 = iprot.readString(); - struct.processorCapabilities.add(_elem1067); + _elem1075 = iprot.readString(); + struct.processorCapabilities.add(_elem1075); } iprot.readListEnd(); } @@ -1392,9 +1392,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, CreateTableRequest oprot.writeFieldBegin(PRIMARY_KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.primaryKeys.size())); - for (SQLPrimaryKey _iter1069 : struct.primaryKeys) + for (SQLPrimaryKey _iter1077 : struct.primaryKeys) { - _iter1069.write(oprot); + _iter1077.write(oprot); } oprot.writeListEnd(); } @@ -1406,9 +1406,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, CreateTableRequest oprot.writeFieldBegin(FOREIGN_KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.foreignKeys.size())); - for (SQLForeignKey _iter1070 : struct.foreignKeys) + for (SQLForeignKey _iter1078 : struct.foreignKeys) { - _iter1070.write(oprot); + _iter1078.write(oprot); } oprot.writeListEnd(); } @@ -1420,9 +1420,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, CreateTableRequest oprot.writeFieldBegin(UNIQUE_CONSTRAINTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.uniqueConstraints.size())); - for (SQLUniqueConstraint _iter1071 : struct.uniqueConstraints) + for (SQLUniqueConstraint _iter1079 : struct.uniqueConstraints) { - _iter1071.write(oprot); + _iter1079.write(oprot); } oprot.writeListEnd(); } @@ -1434,9 +1434,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, CreateTableRequest oprot.writeFieldBegin(NOT_NULL_CONSTRAINTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.notNullConstraints.size())); - for (SQLNotNullConstraint _iter1072 : struct.notNullConstraints) + for (SQLNotNullConstraint _iter1080 : struct.notNullConstraints) { - _iter1072.write(oprot); + _iter1080.write(oprot); } oprot.writeListEnd(); } @@ -1448,9 +1448,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, CreateTableRequest oprot.writeFieldBegin(DEFAULT_CONSTRAINTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.defaultConstraints.size())); - for (SQLDefaultConstraint _iter1073 : struct.defaultConstraints) + for (SQLDefaultConstraint _iter1081 : struct.defaultConstraints) { - _iter1073.write(oprot); + _iter1081.write(oprot); } oprot.writeListEnd(); } @@ -1462,9 +1462,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, CreateTableRequest oprot.writeFieldBegin(CHECK_CONSTRAINTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.checkConstraints.size())); - for (SQLCheckConstraint _iter1074 : struct.checkConstraints) + for (SQLCheckConstraint _iter1082 : struct.checkConstraints) { - _iter1074.write(oprot); + _iter1082.write(oprot); } oprot.writeListEnd(); } @@ -1476,9 +1476,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, CreateTableRequest oprot.writeFieldBegin(PROCESSOR_CAPABILITIES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.processorCapabilities.size())); - for (String _iter1075 : struct.processorCapabilities) + for (String _iter1083 : struct.processorCapabilities) { - oprot.writeString(_iter1075); + oprot.writeString(_iter1083); } oprot.writeListEnd(); } @@ -1545,63 +1545,63 @@ public void write(org.apache.thrift.protocol.TProtocol prot, CreateTableRequest if (struct.isSetPrimaryKeys()) { { oprot.writeI32(struct.primaryKeys.size()); - for (SQLPrimaryKey _iter1076 : struct.primaryKeys) + for (SQLPrimaryKey _iter1084 : struct.primaryKeys) { - _iter1076.write(oprot); + _iter1084.write(oprot); } } } if (struct.isSetForeignKeys()) { { oprot.writeI32(struct.foreignKeys.size()); - for (SQLForeignKey _iter1077 : struct.foreignKeys) + for (SQLForeignKey _iter1085 : struct.foreignKeys) { - _iter1077.write(oprot); + _iter1085.write(oprot); } } } if (struct.isSetUniqueConstraints()) { { oprot.writeI32(struct.uniqueConstraints.size()); - for (SQLUniqueConstraint _iter1078 : struct.uniqueConstraints) + for (SQLUniqueConstraint _iter1086 : struct.uniqueConstraints) { - _iter1078.write(oprot); + _iter1086.write(oprot); } } } if (struct.isSetNotNullConstraints()) { { oprot.writeI32(struct.notNullConstraints.size()); - for (SQLNotNullConstraint _iter1079 : struct.notNullConstraints) + for (SQLNotNullConstraint _iter1087 : struct.notNullConstraints) { - _iter1079.write(oprot); + _iter1087.write(oprot); } } } if (struct.isSetDefaultConstraints()) { { oprot.writeI32(struct.defaultConstraints.size()); - for (SQLDefaultConstraint _iter1080 : struct.defaultConstraints) + for (SQLDefaultConstraint _iter1088 : struct.defaultConstraints) { - _iter1080.write(oprot); + _iter1088.write(oprot); } } } if (struct.isSetCheckConstraints()) { { oprot.writeI32(struct.checkConstraints.size()); - for (SQLCheckConstraint _iter1081 : struct.checkConstraints) + for (SQLCheckConstraint _iter1089 : struct.checkConstraints) { - _iter1081.write(oprot); + _iter1089.write(oprot); } } } if (struct.isSetProcessorCapabilities()) { { oprot.writeI32(struct.processorCapabilities.size()); - for (String _iter1082 : struct.processorCapabilities) + for (String _iter1090 : struct.processorCapabilities) { - oprot.writeString(_iter1082); + oprot.writeString(_iter1090); } } } @@ -1624,97 +1624,97 @@ public void read(org.apache.thrift.protocol.TProtocol prot, CreateTableRequest s } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list1083 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.primaryKeys = new ArrayList(_list1083.size); - SQLPrimaryKey _elem1084; - for (int _i1085 = 0; _i1085 < _list1083.size; ++_i1085) + org.apache.thrift.protocol.TList _list1091 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.primaryKeys = new ArrayList(_list1091.size); + SQLPrimaryKey _elem1092; + for (int _i1093 = 0; _i1093 < _list1091.size; ++_i1093) { - _elem1084 = new SQLPrimaryKey(); - _elem1084.read(iprot); - struct.primaryKeys.add(_elem1084); + _elem1092 = new SQLPrimaryKey(); + _elem1092.read(iprot); + struct.primaryKeys.add(_elem1092); } } struct.setPrimaryKeysIsSet(true); } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1086 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.foreignKeys = new ArrayList(_list1086.size); - SQLForeignKey _elem1087; - for (int _i1088 = 0; _i1088 < _list1086.size; ++_i1088) + org.apache.thrift.protocol.TList _list1094 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.foreignKeys = new ArrayList(_list1094.size); + SQLForeignKey _elem1095; + for (int _i1096 = 0; _i1096 < _list1094.size; ++_i1096) { - _elem1087 = new SQLForeignKey(); - _elem1087.read(iprot); - struct.foreignKeys.add(_elem1087); + _elem1095 = new SQLForeignKey(); + _elem1095.read(iprot); + struct.foreignKeys.add(_elem1095); } } struct.setForeignKeysIsSet(true); } if (incoming.get(3)) { { - org.apache.thrift.protocol.TList _list1089 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.uniqueConstraints = new ArrayList(_list1089.size); - SQLUniqueConstraint _elem1090; - for (int _i1091 = 0; _i1091 < _list1089.size; ++_i1091) + org.apache.thrift.protocol.TList _list1097 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.uniqueConstraints = new ArrayList(_list1097.size); + SQLUniqueConstraint _elem1098; + for (int _i1099 = 0; _i1099 < _list1097.size; ++_i1099) { - _elem1090 = new SQLUniqueConstraint(); - _elem1090.read(iprot); - struct.uniqueConstraints.add(_elem1090); + _elem1098 = new SQLUniqueConstraint(); + _elem1098.read(iprot); + struct.uniqueConstraints.add(_elem1098); } } struct.setUniqueConstraintsIsSet(true); } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list1092 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.notNullConstraints = new ArrayList(_list1092.size); - SQLNotNullConstraint _elem1093; - for (int _i1094 = 0; _i1094 < _list1092.size; ++_i1094) + org.apache.thrift.protocol.TList _list1100 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.notNullConstraints = new ArrayList(_list1100.size); + SQLNotNullConstraint _elem1101; + for (int _i1102 = 0; _i1102 < _list1100.size; ++_i1102) { - _elem1093 = new SQLNotNullConstraint(); - _elem1093.read(iprot); - struct.notNullConstraints.add(_elem1093); + _elem1101 = new SQLNotNullConstraint(); + _elem1101.read(iprot); + struct.notNullConstraints.add(_elem1101); } } struct.setNotNullConstraintsIsSet(true); } if (incoming.get(5)) { { - org.apache.thrift.protocol.TList _list1095 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.defaultConstraints = new ArrayList(_list1095.size); - SQLDefaultConstraint _elem1096; - for (int _i1097 = 0; _i1097 < _list1095.size; ++_i1097) + org.apache.thrift.protocol.TList _list1103 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.defaultConstraints = new ArrayList(_list1103.size); + SQLDefaultConstraint _elem1104; + for (int _i1105 = 0; _i1105 < _list1103.size; ++_i1105) { - _elem1096 = new SQLDefaultConstraint(); - _elem1096.read(iprot); - struct.defaultConstraints.add(_elem1096); + _elem1104 = new SQLDefaultConstraint(); + _elem1104.read(iprot); + struct.defaultConstraints.add(_elem1104); } } struct.setDefaultConstraintsIsSet(true); } if (incoming.get(6)) { { - org.apache.thrift.protocol.TList _list1098 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.checkConstraints = new ArrayList(_list1098.size); - SQLCheckConstraint _elem1099; - for (int _i1100 = 0; _i1100 < _list1098.size; ++_i1100) + org.apache.thrift.protocol.TList _list1106 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.checkConstraints = new ArrayList(_list1106.size); + SQLCheckConstraint _elem1107; + for (int _i1108 = 0; _i1108 < _list1106.size; ++_i1108) { - _elem1099 = new SQLCheckConstraint(); - _elem1099.read(iprot); - struct.checkConstraints.add(_elem1099); + _elem1107 = new SQLCheckConstraint(); + _elem1107.read(iprot); + struct.checkConstraints.add(_elem1107); } } struct.setCheckConstraintsIsSet(true); } if (incoming.get(7)) { { - org.apache.thrift.protocol.TList _list1101 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.processorCapabilities = new ArrayList(_list1101.size); - String _elem1102; - for (int _i1103 = 0; _i1103 < _list1101.size; ++_i1103) + org.apache.thrift.protocol.TList _list1109 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.processorCapabilities = new ArrayList(_list1109.size); + String _elem1110; + for (int _i1111 = 0; _i1111 < _list1109.size; ++_i1111) { - _elem1102 = iprot.readString(); - struct.processorCapabilities.add(_elem1102); + _elem1110 = iprot.readString(); + struct.processorCapabilities.add(_elem1110); } } struct.setProcessorCapabilitiesIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FindSchemasByColsResp.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FindSchemasByColsResp.java index 4024751ed3..d716e2f5db 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FindSchemasByColsResp.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FindSchemasByColsResp.java @@ -350,14 +350,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, FindSchemasByColsRe case 1: // SCHEMA_VERSIONS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1040 = iprot.readListBegin(); - struct.schemaVersions = new ArrayList(_list1040.size); - SchemaVersionDescriptor _elem1041; - for (int _i1042 = 0; _i1042 < _list1040.size; ++_i1042) + org.apache.thrift.protocol.TList _list1048 = iprot.readListBegin(); + struct.schemaVersions = new ArrayList(_list1048.size); + SchemaVersionDescriptor _elem1049; + for (int _i1050 = 0; _i1050 < _list1048.size; ++_i1050) { - _elem1041 = new SchemaVersionDescriptor(); - _elem1041.read(iprot); - struct.schemaVersions.add(_elem1041); + _elem1049 = new SchemaVersionDescriptor(); + _elem1049.read(iprot); + struct.schemaVersions.add(_elem1049); } iprot.readListEnd(); } @@ -383,9 +383,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, FindSchemasByColsR oprot.writeFieldBegin(SCHEMA_VERSIONS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.schemaVersions.size())); - for (SchemaVersionDescriptor _iter1043 : struct.schemaVersions) + for (SchemaVersionDescriptor _iter1051 : struct.schemaVersions) { - _iter1043.write(oprot); + _iter1051.write(oprot); } oprot.writeListEnd(); } @@ -416,9 +416,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, FindSchemasByColsRe if (struct.isSetSchemaVersions()) { { oprot.writeI32(struct.schemaVersions.size()); - for (SchemaVersionDescriptor _iter1044 : struct.schemaVersions) + for (SchemaVersionDescriptor _iter1052 : struct.schemaVersions) { - _iter1044.write(oprot); + _iter1052.write(oprot); } } } @@ -430,14 +430,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, FindSchemasByColsRes BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1045 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.schemaVersions = new ArrayList(_list1045.size); - SchemaVersionDescriptor _elem1046; - for (int _i1047 = 0; _i1047 < _list1045.size; ++_i1047) + org.apache.thrift.protocol.TList _list1053 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.schemaVersions = new ArrayList(_list1053.size); + SchemaVersionDescriptor _elem1054; + for (int _i1055 = 0; _i1055 < _list1053.size; ++_i1055) { - _elem1046 = new SchemaVersionDescriptor(); - _elem1046.read(iprot); - struct.schemaVersions.add(_elem1046); + _elem1054 = new SchemaVersionDescriptor(); + _elem1054.read(iprot); + struct.schemaVersions.add(_elem1054); } } struct.setSchemaVersionsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetDatabaseRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetDatabaseRequest.java new file mode 100644 index 0000000000..75b00ce7c5 --- /dev/null +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetDatabaseRequest.java @@ -0,0 +1,760 @@ +/** + * 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)") +@org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public class GetDatabaseRequest 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("GetDatabaseRequest"); + + private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField CATALOG_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("catalogName", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField PROCESSOR_CAPABILITIES_FIELD_DESC = new org.apache.thrift.protocol.TField("processorCapabilities", org.apache.thrift.protocol.TType.LIST, (short)3); + private static final org.apache.thrift.protocol.TField PROCESSOR_IDENTIFIER_FIELD_DESC = new org.apache.thrift.protocol.TField("processorIdentifier", org.apache.thrift.protocol.TType.STRING, (short)4); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new GetDatabaseRequestStandardSchemeFactory()); + schemes.put(TupleScheme.class, new GetDatabaseRequestTupleSchemeFactory()); + } + + private String name; // required + private String catalogName; // optional + private List processorCapabilities; // optional + private String processorIdentifier; // 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 { + NAME((short)1, "name"), + CATALOG_NAME((short)2, "catalogName"), + PROCESSOR_CAPABILITIES((short)3, "processorCapabilities"), + PROCESSOR_IDENTIFIER((short)4, "processorIdentifier"); + + 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: // NAME + return NAME; + case 2: // CATALOG_NAME + return CATALOG_NAME; + case 3: // PROCESSOR_CAPABILITIES + return PROCESSOR_CAPABILITIES; + case 4: // PROCESSOR_IDENTIFIER + return PROCESSOR_IDENTIFIER; + 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.CATALOG_NAME,_Fields.PROCESSOR_CAPABILITIES,_Fields.PROCESSOR_IDENTIFIER}; + 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.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.CATALOG_NAME, new org.apache.thrift.meta_data.FieldMetaData("catalogName", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PROCESSOR_CAPABILITIES, new org.apache.thrift.meta_data.FieldMetaData("processorCapabilities", org.apache.thrift.TFieldRequirementType.OPTIONAL, + 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.PROCESSOR_IDENTIFIER, new org.apache.thrift.meta_data.FieldMetaData("processorIdentifier", 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(GetDatabaseRequest.class, metaDataMap); + } + + public GetDatabaseRequest() { + } + + public GetDatabaseRequest( + String name) + { + this(); + this.name = name; + } + + /** + * Performs a deep copy on other. + */ + public GetDatabaseRequest(GetDatabaseRequest other) { + if (other.isSetName()) { + this.name = other.name; + } + if (other.isSetCatalogName()) { + this.catalogName = other.catalogName; + } + if (other.isSetProcessorCapabilities()) { + List __this__processorCapabilities = new ArrayList(other.processorCapabilities); + this.processorCapabilities = __this__processorCapabilities; + } + if (other.isSetProcessorIdentifier()) { + this.processorIdentifier = other.processorIdentifier; + } + } + + public GetDatabaseRequest deepCopy() { + return new GetDatabaseRequest(this); + } + + @Override + public void clear() { + this.name = null; + this.catalogName = null; + this.processorCapabilities = null; + this.processorIdentifier = null; + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + } + + public void unsetName() { + this.name = null; + } + + /** Returns true if field name is set (has been assigned a value) and false otherwise */ + public boolean isSetName() { + return this.name != null; + } + + public void setNameIsSet(boolean value) { + if (!value) { + this.name = null; + } + } + + public String getCatalogName() { + return this.catalogName; + } + + public void setCatalogName(String catalogName) { + this.catalogName = catalogName; + } + + public void unsetCatalogName() { + this.catalogName = null; + } + + /** Returns true if field catalogName is set (has been assigned a value) and false otherwise */ + public boolean isSetCatalogName() { + return this.catalogName != null; + } + + public void setCatalogNameIsSet(boolean value) { + if (!value) { + this.catalogName = null; + } + } + + public int getProcessorCapabilitiesSize() { + return (this.processorCapabilities == null) ? 0 : this.processorCapabilities.size(); + } + + public java.util.Iterator getProcessorCapabilitiesIterator() { + return (this.processorCapabilities == null) ? null : this.processorCapabilities.iterator(); + } + + public void addToProcessorCapabilities(String elem) { + if (this.processorCapabilities == null) { + this.processorCapabilities = new ArrayList(); + } + this.processorCapabilities.add(elem); + } + + public List getProcessorCapabilities() { + return this.processorCapabilities; + } + + public void setProcessorCapabilities(List processorCapabilities) { + this.processorCapabilities = processorCapabilities; + } + + public void unsetProcessorCapabilities() { + this.processorCapabilities = null; + } + + /** Returns true if field processorCapabilities is set (has been assigned a value) and false otherwise */ + public boolean isSetProcessorCapabilities() { + return this.processorCapabilities != null; + } + + public void setProcessorCapabilitiesIsSet(boolean value) { + if (!value) { + this.processorCapabilities = null; + } + } + + public String getProcessorIdentifier() { + return this.processorIdentifier; + } + + public void setProcessorIdentifier(String processorIdentifier) { + this.processorIdentifier = processorIdentifier; + } + + public void unsetProcessorIdentifier() { + this.processorIdentifier = null; + } + + /** Returns true if field processorIdentifier is set (has been assigned a value) and false otherwise */ + public boolean isSetProcessorIdentifier() { + return this.processorIdentifier != null; + } + + public void setProcessorIdentifierIsSet(boolean value) { + if (!value) { + this.processorIdentifier = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case NAME: + if (value == null) { + unsetName(); + } else { + setName((String)value); + } + break; + + case CATALOG_NAME: + if (value == null) { + unsetCatalogName(); + } else { + setCatalogName((String)value); + } + break; + + case PROCESSOR_CAPABILITIES: + if (value == null) { + unsetProcessorCapabilities(); + } else { + setProcessorCapabilities((List)value); + } + break; + + case PROCESSOR_IDENTIFIER: + if (value == null) { + unsetProcessorIdentifier(); + } else { + setProcessorIdentifier((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case NAME: + return getName(); + + case CATALOG_NAME: + return getCatalogName(); + + case PROCESSOR_CAPABILITIES: + return getProcessorCapabilities(); + + case PROCESSOR_IDENTIFIER: + return getProcessorIdentifier(); + + } + 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 NAME: + return isSetName(); + case CATALOG_NAME: + return isSetCatalogName(); + case PROCESSOR_CAPABILITIES: + return isSetProcessorCapabilities(); + case PROCESSOR_IDENTIFIER: + return isSetProcessorIdentifier(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof GetDatabaseRequest) + return this.equals((GetDatabaseRequest)that); + return false; + } + + public boolean equals(GetDatabaseRequest that) { + if (that == null) + return false; + + boolean this_present_name = true && this.isSetName(); + boolean that_present_name = true && that.isSetName(); + if (this_present_name || that_present_name) { + if (!(this_present_name && that_present_name)) + return false; + if (!this.name.equals(that.name)) + return false; + } + + boolean this_present_catalogName = true && this.isSetCatalogName(); + boolean that_present_catalogName = true && that.isSetCatalogName(); + if (this_present_catalogName || that_present_catalogName) { + if (!(this_present_catalogName && that_present_catalogName)) + return false; + if (!this.catalogName.equals(that.catalogName)) + return false; + } + + boolean this_present_processorCapabilities = true && this.isSetProcessorCapabilities(); + boolean that_present_processorCapabilities = true && that.isSetProcessorCapabilities(); + if (this_present_processorCapabilities || that_present_processorCapabilities) { + if (!(this_present_processorCapabilities && that_present_processorCapabilities)) + return false; + if (!this.processorCapabilities.equals(that.processorCapabilities)) + return false; + } + + boolean this_present_processorIdentifier = true && this.isSetProcessorIdentifier(); + boolean that_present_processorIdentifier = true && that.isSetProcessorIdentifier(); + if (this_present_processorIdentifier || that_present_processorIdentifier) { + if (!(this_present_processorIdentifier && that_present_processorIdentifier)) + return false; + if (!this.processorIdentifier.equals(that.processorIdentifier)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_name = true && (isSetName()); + list.add(present_name); + if (present_name) + list.add(name); + + boolean present_catalogName = true && (isSetCatalogName()); + list.add(present_catalogName); + if (present_catalogName) + list.add(catalogName); + + boolean present_processorCapabilities = true && (isSetProcessorCapabilities()); + list.add(present_processorCapabilities); + if (present_processorCapabilities) + list.add(processorCapabilities); + + boolean present_processorIdentifier = true && (isSetProcessorIdentifier()); + list.add(present_processorIdentifier); + if (present_processorIdentifier) + list.add(processorIdentifier); + + return list.hashCode(); + } + + @Override + public int compareTo(GetDatabaseRequest other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetCatalogName()).compareTo(other.isSetCatalogName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetCatalogName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogName, other.catalogName); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetProcessorCapabilities()).compareTo(other.isSetProcessorCapabilities()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetProcessorCapabilities()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.processorCapabilities, other.processorCapabilities); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetProcessorIdentifier()).compareTo(other.isSetProcessorIdentifier()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetProcessorIdentifier()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.processorIdentifier, other.processorIdentifier); + 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("GetDatabaseRequest("); + boolean first = true; + + sb.append("name:"); + if (this.name == null) { + sb.append("null"); + } else { + sb.append(this.name); + } + first = false; + if (isSetCatalogName()) { + if (!first) sb.append(", "); + sb.append("catalogName:"); + if (this.catalogName == null) { + sb.append("null"); + } else { + sb.append(this.catalogName); + } + first = false; + } + if (isSetProcessorCapabilities()) { + if (!first) sb.append(", "); + sb.append("processorCapabilities:"); + if (this.processorCapabilities == null) { + sb.append("null"); + } else { + sb.append(this.processorCapabilities); + } + first = false; + } + if (isSetProcessorIdentifier()) { + if (!first) sb.append(", "); + sb.append("processorIdentifier:"); + if (this.processorIdentifier == null) { + sb.append("null"); + } else { + sb.append(this.processorIdentifier); + } + first = false; + } + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (!isSetName()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'name' 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 GetDatabaseRequestStandardSchemeFactory implements SchemeFactory { + public GetDatabaseRequestStandardScheme getScheme() { + return new GetDatabaseRequestStandardScheme(); + } + } + + private static class GetDatabaseRequestStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, GetDatabaseRequest 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: // NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.name = iprot.readString(); + struct.setNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CATALOG_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.catalogName = iprot.readString(); + struct.setCatalogNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // PROCESSOR_CAPABILITIES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list968 = iprot.readListBegin(); + struct.processorCapabilities = new ArrayList(_list968.size); + String _elem969; + for (int _i970 = 0; _i970 < _list968.size; ++_i970) + { + _elem969 = iprot.readString(); + struct.processorCapabilities.add(_elem969); + } + iprot.readListEnd(); + } + struct.setProcessorCapabilitiesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // PROCESSOR_IDENTIFIER + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.processorIdentifier = iprot.readString(); + struct.setProcessorIdentifierIsSet(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, GetDatabaseRequest struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.name != null) { + oprot.writeFieldBegin(NAME_FIELD_DESC); + oprot.writeString(struct.name); + oprot.writeFieldEnd(); + } + if (struct.catalogName != null) { + if (struct.isSetCatalogName()) { + oprot.writeFieldBegin(CATALOG_NAME_FIELD_DESC); + oprot.writeString(struct.catalogName); + oprot.writeFieldEnd(); + } + } + if (struct.processorCapabilities != null) { + if (struct.isSetProcessorCapabilities()) { + oprot.writeFieldBegin(PROCESSOR_CAPABILITIES_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.processorCapabilities.size())); + for (String _iter971 : struct.processorCapabilities) + { + oprot.writeString(_iter971); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + } + if (struct.processorIdentifier != null) { + if (struct.isSetProcessorIdentifier()) { + oprot.writeFieldBegin(PROCESSOR_IDENTIFIER_FIELD_DESC); + oprot.writeString(struct.processorIdentifier); + oprot.writeFieldEnd(); + } + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class GetDatabaseRequestTupleSchemeFactory implements SchemeFactory { + public GetDatabaseRequestTupleScheme getScheme() { + return new GetDatabaseRequestTupleScheme(); + } + } + + private static class GetDatabaseRequestTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, GetDatabaseRequest struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + oprot.writeString(struct.name); + BitSet optionals = new BitSet(); + if (struct.isSetCatalogName()) { + optionals.set(0); + } + if (struct.isSetProcessorCapabilities()) { + optionals.set(1); + } + if (struct.isSetProcessorIdentifier()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetCatalogName()) { + oprot.writeString(struct.catalogName); + } + if (struct.isSetProcessorCapabilities()) { + { + oprot.writeI32(struct.processorCapabilities.size()); + for (String _iter972 : struct.processorCapabilities) + { + oprot.writeString(_iter972); + } + } + } + if (struct.isSetProcessorIdentifier()) { + oprot.writeString(struct.processorIdentifier); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, GetDatabaseRequest struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + struct.name = iprot.readString(); + struct.setNameIsSet(true); + BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.catalogName = iprot.readString(); + struct.setCatalogNameIsSet(true); + } + if (incoming.get(1)) { + { + org.apache.thrift.protocol.TList _list973 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.processorCapabilities = new ArrayList(_list973.size); + String _elem974; + for (int _i975 = 0; _i975 < _list973.size; ++_i975) + { + _elem974 = iprot.readString(); + struct.processorCapabilities.add(_elem974); + } + } + struct.setProcessorCapabilitiesIsSet(true); + } + if (incoming.get(2)) { + struct.processorIdentifier = iprot.readString(); + struct.setProcessorIdentifierIsSet(true); + } + } + } + +} + diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsFilterSpec.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsFilterSpec.java index fcba6ebb4d..0441c85dab 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsFilterSpec.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsFilterSpec.java @@ -444,13 +444,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetPartitionsFilter case 8: // FILTERS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1128 = iprot.readListBegin(); - struct.filters = new ArrayList(_list1128.size); - String _elem1129; - for (int _i1130 = 0; _i1130 < _list1128.size; ++_i1130) + org.apache.thrift.protocol.TList _list1136 = iprot.readListBegin(); + struct.filters = new ArrayList(_list1136.size); + String _elem1137; + for (int _i1138 = 0; _i1138 < _list1136.size; ++_i1138) { - _elem1129 = iprot.readString(); - struct.filters.add(_elem1129); + _elem1137 = iprot.readString(); + struct.filters.add(_elem1137); } iprot.readListEnd(); } @@ -484,9 +484,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetPartitionsFilte oprot.writeFieldBegin(FILTERS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.filters.size())); - for (String _iter1131 : struct.filters) + for (String _iter1139 : struct.filters) { - oprot.writeString(_iter1131); + oprot.writeString(_iter1139); } oprot.writeListEnd(); } @@ -524,9 +524,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetPartitionsFilter if (struct.isSetFilters()) { { oprot.writeI32(struct.filters.size()); - for (String _iter1132 : struct.filters) + for (String _iter1140 : struct.filters) { - oprot.writeString(_iter1132); + oprot.writeString(_iter1140); } } } @@ -542,13 +542,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetPartitionsFilterS } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list1133 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.filters = new ArrayList(_list1133.size); - String _elem1134; - for (int _i1135 = 0; _i1135 < _list1133.size; ++_i1135) + org.apache.thrift.protocol.TList _list1141 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.filters = new ArrayList(_list1141.size); + String _elem1142; + for (int _i1143 = 0; _i1143 < _list1141.size; ++_i1143) { - _elem1134 = iprot.readString(); - struct.filters.add(_elem1134); + _elem1142 = iprot.readString(); + struct.filters.add(_elem1142); } } struct.setFiltersIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsProjectionSpec.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsProjectionSpec.java index d94cbb1bcc..733a2857eb 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsProjectionSpec.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsProjectionSpec.java @@ -509,13 +509,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetPartitionsProjec case 1: // FIELD_LIST if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1120 = iprot.readListBegin(); - struct.fieldList = new ArrayList(_list1120.size); - String _elem1121; - for (int _i1122 = 0; _i1122 < _list1120.size; ++_i1122) + org.apache.thrift.protocol.TList _list1128 = iprot.readListBegin(); + struct.fieldList = new ArrayList(_list1128.size); + String _elem1129; + for (int _i1130 = 0; _i1130 < _list1128.size; ++_i1130) { - _elem1121 = iprot.readString(); - struct.fieldList.add(_elem1121); + _elem1129 = iprot.readString(); + struct.fieldList.add(_elem1129); } iprot.readListEnd(); } @@ -557,9 +557,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetPartitionsProje oprot.writeFieldBegin(FIELD_LIST_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.fieldList.size())); - for (String _iter1123 : struct.fieldList) + for (String _iter1131 : struct.fieldList) { - oprot.writeString(_iter1123); + oprot.writeString(_iter1131); } oprot.writeListEnd(); } @@ -606,9 +606,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetPartitionsProjec if (struct.isSetFieldList()) { { oprot.writeI32(struct.fieldList.size()); - for (String _iter1124 : struct.fieldList) + for (String _iter1132 : struct.fieldList) { - oprot.writeString(_iter1124); + oprot.writeString(_iter1132); } } } @@ -626,13 +626,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetPartitionsProject BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1125 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.fieldList = new ArrayList(_list1125.size); - String _elem1126; - for (int _i1127 = 0; _i1127 < _list1125.size; ++_i1127) + org.apache.thrift.protocol.TList _list1133 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.fieldList = new ArrayList(_list1133.size); + String _elem1134; + for (int _i1135 = 0; _i1135 < _list1133.size; ++_i1135) { - _elem1126 = iprot.readString(); - struct.fieldList.add(_elem1126); + _elem1134 = iprot.readString(); + struct.fieldList.add(_elem1134); } } struct.setFieldListIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsRequest.java index dd4bf8339a..e40469ed94 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsRequest.java @@ -1139,13 +1139,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetPartitionsReques case 6: // GROUP_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1144 = iprot.readListBegin(); - struct.groupNames = new ArrayList(_list1144.size); - String _elem1145; - for (int _i1146 = 0; _i1146 < _list1144.size; ++_i1146) + org.apache.thrift.protocol.TList _list1152 = iprot.readListBegin(); + struct.groupNames = new ArrayList(_list1152.size); + String _elem1153; + for (int _i1154 = 0; _i1154 < _list1152.size; ++_i1154) { - _elem1145 = iprot.readString(); - struct.groupNames.add(_elem1145); + _elem1153 = iprot.readString(); + struct.groupNames.add(_elem1153); } iprot.readListEnd(); } @@ -1175,13 +1175,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetPartitionsReques case 9: // PROCESSOR_CAPABILITIES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1147 = iprot.readListBegin(); - struct.processorCapabilities = new ArrayList(_list1147.size); - String _elem1148; - for (int _i1149 = 0; _i1149 < _list1147.size; ++_i1149) + org.apache.thrift.protocol.TList _list1155 = iprot.readListBegin(); + struct.processorCapabilities = new ArrayList(_list1155.size); + String _elem1156; + for (int _i1157 = 0; _i1157 < _list1155.size; ++_i1157) { - _elem1148 = iprot.readString(); - struct.processorCapabilities.add(_elem1148); + _elem1156 = iprot.readString(); + struct.processorCapabilities.add(_elem1156); } iprot.readListEnd(); } @@ -1245,9 +1245,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetPartitionsReque oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.groupNames.size())); - for (String _iter1150 : struct.groupNames) + for (String _iter1158 : struct.groupNames) { - oprot.writeString(_iter1150); + oprot.writeString(_iter1158); } oprot.writeListEnd(); } @@ -1269,9 +1269,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetPartitionsReque oprot.writeFieldBegin(PROCESSOR_CAPABILITIES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.processorCapabilities.size())); - for (String _iter1151 : struct.processorCapabilities) + for (String _iter1159 : struct.processorCapabilities) { - oprot.writeString(_iter1151); + oprot.writeString(_iter1159); } oprot.writeListEnd(); } @@ -1352,9 +1352,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetPartitionsReques if (struct.isSetGroupNames()) { { oprot.writeI32(struct.groupNames.size()); - for (String _iter1152 : struct.groupNames) + for (String _iter1160 : struct.groupNames) { - oprot.writeString(_iter1152); + oprot.writeString(_iter1160); } } } @@ -1367,9 +1367,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetPartitionsReques if (struct.isSetProcessorCapabilities()) { { oprot.writeI32(struct.processorCapabilities.size()); - for (String _iter1153 : struct.processorCapabilities) + for (String _iter1161 : struct.processorCapabilities) { - oprot.writeString(_iter1153); + oprot.writeString(_iter1161); } } } @@ -1404,13 +1404,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetPartitionsRequest } if (incoming.get(5)) { { - org.apache.thrift.protocol.TList _list1154 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.groupNames = new ArrayList(_list1154.size); - String _elem1155; - for (int _i1156 = 0; _i1156 < _list1154.size; ++_i1156) + org.apache.thrift.protocol.TList _list1162 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.groupNames = new ArrayList(_list1162.size); + String _elem1163; + for (int _i1164 = 0; _i1164 < _list1162.size; ++_i1164) { - _elem1155 = iprot.readString(); - struct.groupNames.add(_elem1155); + _elem1163 = iprot.readString(); + struct.groupNames.add(_elem1163); } } struct.setGroupNamesIsSet(true); @@ -1427,13 +1427,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetPartitionsRequest } if (incoming.get(8)) { { - org.apache.thrift.protocol.TList _list1157 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.processorCapabilities = new ArrayList(_list1157.size); - String _elem1158; - for (int _i1159 = 0; _i1159 < _list1157.size; ++_i1159) + org.apache.thrift.protocol.TList _list1165 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.processorCapabilities = new ArrayList(_list1165.size); + String _elem1166; + for (int _i1167 = 0; _i1167 < _list1165.size; ++_i1167) { - _elem1158 = iprot.readString(); - struct.processorCapabilities.add(_elem1158); + _elem1166 = iprot.readString(); + struct.processorCapabilities.add(_elem1166); } } struct.setProcessorCapabilitiesIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsResponse.java index ddfa59fb1c..423b827766 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsResponse.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsResponse.java @@ -350,14 +350,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetPartitionsRespon case 1: // PARTITION_SPEC if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1136 = iprot.readListBegin(); - struct.partitionSpec = new ArrayList(_list1136.size); - PartitionSpec _elem1137; - for (int _i1138 = 0; _i1138 < _list1136.size; ++_i1138) + org.apache.thrift.protocol.TList _list1144 = iprot.readListBegin(); + struct.partitionSpec = new ArrayList(_list1144.size); + PartitionSpec _elem1145; + for (int _i1146 = 0; _i1146 < _list1144.size; ++_i1146) { - _elem1137 = new PartitionSpec(); - _elem1137.read(iprot); - struct.partitionSpec.add(_elem1137); + _elem1145 = new PartitionSpec(); + _elem1145.read(iprot); + struct.partitionSpec.add(_elem1145); } iprot.readListEnd(); } @@ -383,9 +383,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetPartitionsRespo oprot.writeFieldBegin(PARTITION_SPEC_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitionSpec.size())); - for (PartitionSpec _iter1139 : struct.partitionSpec) + for (PartitionSpec _iter1147 : struct.partitionSpec) { - _iter1139.write(oprot); + _iter1147.write(oprot); } oprot.writeListEnd(); } @@ -416,9 +416,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetPartitionsRespon if (struct.isSetPartitionSpec()) { { oprot.writeI32(struct.partitionSpec.size()); - for (PartitionSpec _iter1140 : struct.partitionSpec) + for (PartitionSpec _iter1148 : struct.partitionSpec) { - _iter1140.write(oprot); + _iter1148.write(oprot); } } } @@ -430,14 +430,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetPartitionsRespons BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1141 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitionSpec = new ArrayList(_list1141.size); - PartitionSpec _elem1142; - for (int _i1143 = 0; _i1143 < _list1141.size; ++_i1143) + org.apache.thrift.protocol.TList _list1149 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitionSpec = new ArrayList(_list1149.size); + PartitionSpec _elem1150; + for (int _i1151 = 0; _i1151 < _list1149.size; ++_i1151) { - _elem1142 = new PartitionSpec(); - _elem1142.read(iprot); - struct.partitionSpec.add(_elem1142); + _elem1150 = new PartitionSpec(); + _elem1150.read(iprot); + struct.partitionSpec.add(_elem1150); } } struct.setPartitionSpecIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RenamePartitionRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RenamePartitionRequest.java index de467c298f..75842e14ea 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RenamePartitionRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RenamePartitionRequest.java @@ -796,13 +796,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, RenamePartitionRequ case 4: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1112 = iprot.readListBegin(); - struct.partVals = new ArrayList(_list1112.size); - String _elem1113; - for (int _i1114 = 0; _i1114 < _list1112.size; ++_i1114) + org.apache.thrift.protocol.TList _list1120 = iprot.readListBegin(); + struct.partVals = new ArrayList(_list1120.size); + String _elem1121; + for (int _i1122 = 0; _i1122 < _list1120.size; ++_i1122) { - _elem1113 = iprot.readString(); - struct.partVals.add(_elem1113); + _elem1121 = iprot.readString(); + struct.partVals.add(_elem1121); } iprot.readListEnd(); } @@ -862,9 +862,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, RenamePartitionReq oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.partVals.size())); - for (String _iter1115 : struct.partVals) + for (String _iter1123 : struct.partVals) { - oprot.writeString(_iter1115); + oprot.writeString(_iter1123); } oprot.writeListEnd(); } @@ -903,9 +903,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, RenamePartitionRequ oprot.writeString(struct.tableName); { oprot.writeI32(struct.partVals.size()); - for (String _iter1116 : struct.partVals) + for (String _iter1124 : struct.partVals) { - oprot.writeString(_iter1116); + oprot.writeString(_iter1124); } } struct.newPart.write(oprot); @@ -933,13 +933,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, RenamePartitionReque struct.tableName = iprot.readString(); struct.setTableNameIsSet(true); { - org.apache.thrift.protocol.TList _list1117 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partVals = new ArrayList(_list1117.size); - String _elem1118; - for (int _i1119 = 0; _i1119 < _list1117.size; ++_i1119) + org.apache.thrift.protocol.TList _list1125 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partVals = new ArrayList(_list1125.size); + String _elem1126; + for (int _i1127 = 0; _i1127 < _list1125.size; ++_i1127) { - _elem1118 = iprot.readString(); - struct.partVals.add(_elem1118); + _elem1126 = iprot.readString(); + struct.partVals.add(_elem1126); } } struct.setPartValsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SchemaVersion.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SchemaVersion.java index 09fcd476e9..31224876fb 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SchemaVersion.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SchemaVersion.java @@ -1119,14 +1119,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, SchemaVersion struc case 4: // COLS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1032 = iprot.readListBegin(); - struct.cols = new ArrayList(_list1032.size); - FieldSchema _elem1033; - for (int _i1034 = 0; _i1034 < _list1032.size; ++_i1034) + org.apache.thrift.protocol.TList _list1040 = iprot.readListBegin(); + struct.cols = new ArrayList(_list1040.size); + FieldSchema _elem1041; + for (int _i1042 = 0; _i1042 < _list1040.size; ++_i1042) { - _elem1033 = new FieldSchema(); - _elem1033.read(iprot); - struct.cols.add(_elem1033); + _elem1041 = new FieldSchema(); + _elem1041.read(iprot); + struct.cols.add(_elem1041); } iprot.readListEnd(); } @@ -1212,9 +1212,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, SchemaVersion stru oprot.writeFieldBegin(COLS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.cols.size())); - for (FieldSchema _iter1035 : struct.cols) + for (FieldSchema _iter1043 : struct.cols) { - _iter1035.write(oprot); + _iter1043.write(oprot); } oprot.writeListEnd(); } @@ -1323,9 +1323,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, SchemaVersion struc if (struct.isSetCols()) { { oprot.writeI32(struct.cols.size()); - for (FieldSchema _iter1036 : struct.cols) + for (FieldSchema _iter1044 : struct.cols) { - _iter1036.write(oprot); + _iter1044.write(oprot); } } } @@ -1368,14 +1368,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, SchemaVersion struct } if (incoming.get(3)) { { - org.apache.thrift.protocol.TList _list1037 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.cols = new ArrayList(_list1037.size); - FieldSchema _elem1038; - for (int _i1039 = 0; _i1039 < _list1037.size; ++_i1039) + org.apache.thrift.protocol.TList _list1045 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.cols = new ArrayList(_list1045.size); + FieldSchema _elem1046; + for (int _i1047 = 0; _i1047 < _list1045.size; ++_i1047) { - _elem1038 = new FieldSchema(); - _elem1038.read(iprot); - struct.cols.add(_elem1038); + _elem1046 = new FieldSchema(); + _elem1046.read(iprot); + struct.cols.add(_elem1046); } } struct.setColsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java index 6b117291a6..10fe5d42c6 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java @@ -60,6 +60,8 @@ public Database get_database(String name) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; + public Database get_database_req(GetDatabaseRequest request) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; + public void drop_database(String name, boolean deleteData, boolean cascade) throws NoSuchObjectException, InvalidOperationException, MetaException, org.apache.thrift.TException; public List get_databases(String pattern) throws MetaException, org.apache.thrift.TException; @@ -516,6 +518,8 @@ public void get_database(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_database_req(GetDatabaseRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void drop_database(String name, boolean deleteData, boolean cascade, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void get_databases(String pattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -1221,6 +1225,35 @@ public Database recv_get_database() throws NoSuchObjectException, MetaException, throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_database failed: unknown result"); } + public Database get_database_req(GetDatabaseRequest request) throws NoSuchObjectException, MetaException, org.apache.thrift.TException + { + send_get_database_req(request); + return recv_get_database_req(); + } + + public void send_get_database_req(GetDatabaseRequest request) throws org.apache.thrift.TException + { + get_database_req_args args = new get_database_req_args(); + args.setRequest(request); + sendBase("get_database_req", args); + } + + public Database recv_get_database_req() throws NoSuchObjectException, MetaException, org.apache.thrift.TException + { + get_database_req_result result = new get_database_req_result(); + receiveBase(result, "get_database_req"); + if (result.isSetSuccess()) { + return result.success; + } + if (result.o1 != null) { + throw result.o1; + } + if (result.o2 != null) { + throw result.o2; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_database_req failed: unknown result"); + } + public void drop_database(String name, boolean deleteData, boolean cascade) throws NoSuchObjectException, InvalidOperationException, MetaException, org.apache.thrift.TException { send_drop_database(name, deleteData, cascade); @@ -7726,6 +7759,38 @@ public Database getResult() throws NoSuchObjectException, MetaException, org.apa } } + public void get_database_req(GetDatabaseRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + get_database_req_call method_call = new get_database_req_call(request, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_database_req_call extends org.apache.thrift.async.TAsyncMethodCall { + private GetDatabaseRequest request; + public get_database_req_call(GetDatabaseRequest request, 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.request = request; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_database_req", org.apache.thrift.protocol.TMessageType.CALL, 0)); + get_database_req_args args = new get_database_req_args(); + args.setRequest(request); + args.write(prot); + prot.writeMessageEnd(); + } + + public Database getResult() throws NoSuchObjectException, 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_database_req(); + } + } + public void drop_database(String name, boolean deleteData, boolean cascade, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); drop_database_call method_call = new drop_database_call(name, deleteData, cascade, resultHandler, this, ___protocolFactory, ___transport); @@ -15193,6 +15258,7 @@ protected Processor(I iface, Map extends org.apache.thrift.ProcessFunction { + public get_database_req() { + super("get_database_req"); + } + + public get_database_req_args getEmptyArgsInstance() { + return new get_database_req_args(); + } + + protected boolean isOneway() { + return false; + } + + public get_database_req_result getResult(I iface, get_database_req_args args) throws org.apache.thrift.TException { + get_database_req_result result = new get_database_req_result(); + try { + result.success = iface.get_database_req(args.request); + } catch (NoSuchObjectException o1) { + result.o1 = o1; + } catch (MetaException o2) { + result.o2 = o2; + } + return result; + } + } + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_database extends org.apache.thrift.ProcessFunction { public drop_database() { super("drop_database"); @@ -21211,6 +21303,7 @@ protected AsyncProcessor(I iface, Map extends org.apache.thrift.AsyncProcessFunction { - public drop_database() { - super("drop_database"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_database_req extends org.apache.thrift.AsyncProcessFunction { + public get_database_req() { + super("get_database_req"); } - public drop_database_args getEmptyArgsInstance() { - return new drop_database_args(); + public get_database_req_args getEmptyArgsInstance() { + return new get_database_req_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - drop_database_result result = new drop_database_result(); + return new AsyncMethodCallback() { + public void onComplete(Database o) { + get_database_req_result result = new get_database_req_result(); + result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -22014,194 +22108,255 @@ public void onComplete(Void o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - drop_database_result result = new drop_database_result(); + get_database_req_result result = new get_database_req_result(); if (e instanceof NoSuchObjectException) { result.o1 = (NoSuchObjectException) e; result.setO1IsSet(true); msg = result; } - else if (e instanceof InvalidOperationException) { - result.o2 = (InvalidOperationException) e; - result.setO2IsSet(true); - msg = result; - } else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(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, drop_database_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.drop_database(args.name, args.deleteData, args.cascade,resultHandler); - } - } - - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_databases extends org.apache.thrift.AsyncProcessFunction> { - public get_databases() { - super("get_databases"); - } - - public get_databases_args getEmptyArgsInstance() { - return new get_databases_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_databases_result result = new get_databases_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_databases_result result = new get_databases_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_databases_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_databases(args.pattern,resultHandler); - } - } - - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_all_databases extends org.apache.thrift.AsyncProcessFunction> { - public get_all_databases() { - super("get_all_databases"); - } - - public get_all_databases_args getEmptyArgsInstance() { - return new get_all_databases_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_all_databases_result result = new get_all_databases_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_all_databases_result result = new get_all_databases_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_all_databases_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_all_databases(resultHandler); - } - } - - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class alter_database extends org.apache.thrift.AsyncProcessFunction { - public alter_database() { - super("alter_database"); - } - - public alter_database_args getEmptyArgsInstance() { - return new alter_database_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - alter_database_result result = new alter_database_result(); - 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; - alter_database_result result = new alter_database_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o2 = (NoSuchObjectException) e; + result.o2 = (MetaException) e; + result.setO2IsSet(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_database_req_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.get_database_req(args.request,resultHandler); + } + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_database extends org.apache.thrift.AsyncProcessFunction { + public drop_database() { + super("drop_database"); + } + + public drop_database_args getEmptyArgsInstance() { + return new drop_database_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + drop_database_result result = new drop_database_result(); + 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; + drop_database_result result = new drop_database_result(); + if (e instanceof NoSuchObjectException) { + result.o1 = (NoSuchObjectException) e; + result.setO1IsSet(true); + msg = result; + } + else if (e instanceof InvalidOperationException) { + result.o2 = (InvalidOperationException) e; + result.setO2IsSet(true); + msg = result; + } + else if (e instanceof MetaException) { + result.o3 = (MetaException) e; + result.setO3IsSet(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, drop_database_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.drop_database(args.name, args.deleteData, args.cascade,resultHandler); + } + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_databases extends org.apache.thrift.AsyncProcessFunction> { + public get_databases() { + super("get_databases"); + } + + public get_databases_args getEmptyArgsInstance() { + return new get_databases_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_databases_result result = new get_databases_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_databases_result result = new get_databases_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_databases_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.get_databases(args.pattern,resultHandler); + } + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_all_databases extends org.apache.thrift.AsyncProcessFunction> { + public get_all_databases() { + super("get_all_databases"); + } + + public get_all_databases_args getEmptyArgsInstance() { + return new get_all_databases_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_all_databases_result result = new get_all_databases_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_all_databases_result result = new get_all_databases_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_all_databases_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.get_all_databases(resultHandler); + } + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class alter_database extends org.apache.thrift.AsyncProcessFunction { + public alter_database() { + super("alter_database"); + } + + public alter_database_args getEmptyArgsInstance() { + return new alter_database_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + alter_database_result result = new alter_database_result(); + 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; + alter_database_result result = new alter_database_result(); + if (e instanceof MetaException) { + result.o1 = (MetaException) e; + result.setO1IsSet(true); + msg = result; + } + else if (e instanceof NoSuchObjectException) { + result.o2 = (NoSuchObjectException) e; result.setO2IsSet(true); msg = result; } @@ -43192,28 +43347,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_database_result } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_database_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("drop_database_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_database_req_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_database_req_args"); - private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField DELETE_DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("deleteData", org.apache.thrift.protocol.TType.BOOL, (short)2); - private static final org.apache.thrift.protocol.TField CASCADE_FIELD_DESC = new org.apache.thrift.protocol.TField("cascade", org.apache.thrift.protocol.TType.BOOL, (short)3); + private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_database_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_database_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_database_req_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_database_req_argsTupleSchemeFactory()); } - private String name; // required - private boolean deleteData; // required - private boolean cascade; // required + private GetDatabaseRequest request; // 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 { - NAME((short)1, "name"), - DELETE_DATA((short)2, "deleteData"), - CASCADE((short)3, "cascade"); + REQUEST((short)1, "request"); private static final Map byName = new HashMap(); @@ -43228,12 +43377,956 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_database_result */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // NAME - return NAME; - case 2: // DELETE_DATA - return DELETE_DATA; - case 3: // CASCADE - return CASCADE; + case 1: // REQUEST + return REQUEST; + 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.REQUEST, new org.apache.thrift.meta_data.FieldMetaData("request", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetDatabaseRequest.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_database_req_args.class, metaDataMap); + } + + public get_database_req_args() { + } + + public get_database_req_args( + GetDatabaseRequest request) + { + this(); + this.request = request; + } + + /** + * Performs a deep copy on other. + */ + public get_database_req_args(get_database_req_args other) { + if (other.isSetRequest()) { + this.request = new GetDatabaseRequest(other.request); + } + } + + public get_database_req_args deepCopy() { + return new get_database_req_args(this); + } + + @Override + public void clear() { + this.request = null; + } + + public GetDatabaseRequest getRequest() { + return this.request; + } + + public void setRequest(GetDatabaseRequest request) { + this.request = request; + } + + public void unsetRequest() { + this.request = null; + } + + /** Returns true if field request is set (has been assigned a value) and false otherwise */ + public boolean isSetRequest() { + return this.request != null; + } + + public void setRequestIsSet(boolean value) { + if (!value) { + this.request = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case REQUEST: + if (value == null) { + unsetRequest(); + } else { + setRequest((GetDatabaseRequest)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case REQUEST: + return getRequest(); + + } + 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 REQUEST: + return isSetRequest(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof get_database_req_args) + return this.equals((get_database_req_args)that); + return false; + } + + public boolean equals(get_database_req_args that) { + if (that == null) + return false; + + boolean this_present_request = true && this.isSetRequest(); + boolean that_present_request = true && that.isSetRequest(); + if (this_present_request || that_present_request) { + if (!(this_present_request && that_present_request)) + return false; + if (!this.request.equals(that.request)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_request = true && (isSetRequest()); + list.add(present_request); + if (present_request) + list.add(request); + + return list.hashCode(); + } + + @Override + public int compareTo(get_database_req_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetRequest()).compareTo(other.isSetRequest()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetRequest()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request); + 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_database_req_args("); + boolean first = true; + + sb.append("request:"); + if (this.request == null) { + sb.append("null"); + } else { + sb.append(this.request); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + if (request != null) { + request.validate(); + } + } + + 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_database_req_argsStandardSchemeFactory implements SchemeFactory { + public get_database_req_argsStandardScheme getScheme() { + return new get_database_req_argsStandardScheme(); + } + } + + private static class get_database_req_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, get_database_req_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: // REQUEST + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.request = new GetDatabaseRequest(); + struct.request.read(iprot); + struct.setRequestIsSet(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_database_req_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.request != null) { + oprot.writeFieldBegin(REQUEST_FIELD_DESC); + struct.request.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class get_database_req_argsTupleSchemeFactory implements SchemeFactory { + public get_database_req_argsTupleScheme getScheme() { + return new get_database_req_argsTupleScheme(); + } + } + + private static class get_database_req_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, get_database_req_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetRequest()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetRequest()) { + struct.request.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, get_database_req_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.request = new GetDatabaseRequest(); + struct.request.read(iprot); + struct.setRequestIsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_database_req_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_database_req_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (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 org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new get_database_req_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_database_req_resultTupleSchemeFactory()); + } + + private Database success; // required + private NoSuchObjectException o1; // required + private MetaException o2; // 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"), + O2((short)2, "o2"); + + 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; + case 2: // O2 + return O2; + 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.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Database.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))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", 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_database_req_result.class, metaDataMap); + } + + public get_database_req_result() { + } + + public get_database_req_result( + Database success, + NoSuchObjectException o1, + MetaException o2) + { + this(); + this.success = success; + this.o1 = o1; + this.o2 = o2; + } + + /** + * Performs a deep copy on other. + */ + public get_database_req_result(get_database_req_result other) { + if (other.isSetSuccess()) { + this.success = new Database(other.success); + } + if (other.isSetO1()) { + this.o1 = new NoSuchObjectException(other.o1); + } + if (other.isSetO2()) { + this.o2 = new MetaException(other.o2); + } + } + + public get_database_req_result deepCopy() { + return new get_database_req_result(this); + } + + @Override + public void clear() { + this.success = null; + this.o1 = null; + this.o2 = null; + } + + public Database getSuccess() { + return this.success; + } + + public void setSuccess(Database 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 NoSuchObjectException getO1() { + return this.o1; + } + + public void setO1(NoSuchObjectException 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 MetaException getO2() { + return this.o2; + } + + public void setO2(MetaException o2) { + this.o2 = o2; + } + + public void unsetO2() { + this.o2 = null; + } + + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ + public boolean isSetO2() { + return this.o2 != null; + } + + public void setO2IsSet(boolean value) { + if (!value) { + this.o2 = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((Database)value); + } + break; + + case O1: + if (value == null) { + unsetO1(); + } else { + setO1((NoSuchObjectException)value); + } + break; + + case O2: + if (value == null) { + unsetO2(); + } else { + setO2((MetaException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return getSuccess(); + + case O1: + return getO1(); + + case O2: + return getO2(); + + } + 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(); + case O2: + return isSetO2(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof get_database_req_result) + return this.equals((get_database_req_result)that); + return false; + } + + public boolean equals(get_database_req_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; + } + + boolean this_present_o2 = true && this.isSetO2(); + boolean that_present_o2 = true && that.isSetO2(); + if (this_present_o2 || that_present_o2) { + if (!(this_present_o2 && that_present_o2)) + return false; + if (!this.o2.equals(that.o2)) + 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); + + boolean present_o2 = true && (isSetO2()); + list.add(present_o2); + if (present_o2) + list.add(o2); + + return list.hashCode(); + } + + @Override + public int compareTo(get_database_req_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; + } + } + lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO2()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + 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_database_req_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; + if (!first) sb.append(", "); + sb.append("o2:"); + if (this.o2 == null) { + sb.append("null"); + } else { + sb.append(this.o2); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + if (success != null) { + success.validate(); + } + } + + 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_database_req_resultStandardSchemeFactory implements SchemeFactory { + public get_database_req_resultStandardScheme getScheme() { + return new get_database_req_resultStandardScheme(); + } + } + + private static class get_database_req_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, get_database_req_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 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new Database(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + 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: // O2 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o2 = new MetaException(); + struct.o2.read(iprot); + struct.setO2IsSet(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_database_req_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + struct.success.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.o1 != null) { + oprot.writeFieldBegin(O1_FIELD_DESC); + struct.o1.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.o2 != null) { + oprot.writeFieldBegin(O2_FIELD_DESC); + struct.o2.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class get_database_req_resultTupleSchemeFactory implements SchemeFactory { + public get_database_req_resultTupleScheme getScheme() { + return new get_database_req_resultTupleScheme(); + } + } + + private static class get_database_req_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, get_database_req_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + if (struct.isSetO1()) { + optionals.set(1); + } + if (struct.isSetO2()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetSuccess()) { + struct.success.write(oprot); + } + if (struct.isSetO1()) { + struct.o1.write(oprot); + } + if (struct.isSetO2()) { + struct.o2.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, get_database_req_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.success = new Database(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.o1 = new NoSuchObjectException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } + if (incoming.get(2)) { + struct.o2 = new MetaException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_database_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("drop_database_args"); + + private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField DELETE_DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("deleteData", org.apache.thrift.protocol.TType.BOOL, (short)2); + private static final org.apache.thrift.protocol.TField CASCADE_FIELD_DESC = new org.apache.thrift.protocol.TField("cascade", org.apache.thrift.protocol.TType.BOOL, (short)3); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new drop_database_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_database_argsTupleSchemeFactory()); + } + + private String name; // required + private boolean deleteData; // required + private boolean cascade; // 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 { + NAME((short)1, "name"), + DELETE_DATA((short)2, "deleteData"), + CASCADE((short)3, "cascade"); + + 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: // NAME + return NAME; + case 2: // DELETE_DATA + return DELETE_DATA; + case 3: // CASCADE + return CASCADE; default: return null; } @@ -45073,13 +46166,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_databases_resul case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1160 = iprot.readListBegin(); - struct.success = new ArrayList(_list1160.size); - String _elem1161; - for (int _i1162 = 0; _i1162 < _list1160.size; ++_i1162) + org.apache.thrift.protocol.TList _list1168 = iprot.readListBegin(); + struct.success = new ArrayList(_list1168.size); + String _elem1169; + for (int _i1170 = 0; _i1170 < _list1168.size; ++_i1170) { - _elem1161 = iprot.readString(); - struct.success.add(_elem1161); + _elem1169 = iprot.readString(); + struct.success.add(_elem1169); } iprot.readListEnd(); } @@ -45114,9 +46207,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_databases_resu oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1163 : struct.success) + for (String _iter1171 : struct.success) { - oprot.writeString(_iter1163); + oprot.writeString(_iter1171); } oprot.writeListEnd(); } @@ -45155,9 +46248,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_databases_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1164 : struct.success) + for (String _iter1172 : struct.success) { - oprot.writeString(_iter1164); + oprot.writeString(_iter1172); } } } @@ -45172,13 +46265,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_databases_result BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1165 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1165.size); - String _elem1166; - for (int _i1167 = 0; _i1167 < _list1165.size; ++_i1167) + org.apache.thrift.protocol.TList _list1173 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1173.size); + String _elem1174; + for (int _i1175 = 0; _i1175 < _list1173.size; ++_i1175) { - _elem1166 = iprot.readString(); - struct.success.add(_elem1166); + _elem1174 = iprot.readString(); + struct.success.add(_elem1174); } } struct.setSuccessIsSet(true); @@ -45832,13 +46925,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_databases_r case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1168 = iprot.readListBegin(); - struct.success = new ArrayList(_list1168.size); - String _elem1169; - for (int _i1170 = 0; _i1170 < _list1168.size; ++_i1170) + org.apache.thrift.protocol.TList _list1176 = iprot.readListBegin(); + struct.success = new ArrayList(_list1176.size); + String _elem1177; + for (int _i1178 = 0; _i1178 < _list1176.size; ++_i1178) { - _elem1169 = iprot.readString(); - struct.success.add(_elem1169); + _elem1177 = iprot.readString(); + struct.success.add(_elem1177); } iprot.readListEnd(); } @@ -45873,9 +46966,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_databases_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1171 : struct.success) + for (String _iter1179 : struct.success) { - oprot.writeString(_iter1171); + oprot.writeString(_iter1179); } oprot.writeListEnd(); } @@ -45914,9 +47007,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_databases_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1172 : struct.success) + for (String _iter1180 : struct.success) { - oprot.writeString(_iter1172); + oprot.writeString(_iter1180); } } } @@ -45931,13 +47024,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_databases_re BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1173 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1173.size); - String _elem1174; - for (int _i1175 = 0; _i1175 < _list1173.size; ++_i1175) + org.apache.thrift.protocol.TList _list1181 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1181.size); + String _elem1182; + for (int _i1183 = 0; _i1183 < _list1181.size; ++_i1183) { - _elem1174 = iprot.readString(); - struct.success.add(_elem1174); + _elem1182 = iprot.readString(); + struct.success.add(_elem1182); } } struct.setSuccessIsSet(true); @@ -50544,16 +51637,16 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_type_all_result case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map1176 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map1176.size); - String _key1177; - Type _val1178; - for (int _i1179 = 0; _i1179 < _map1176.size; ++_i1179) + org.apache.thrift.protocol.TMap _map1184 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map1184.size); + String _key1185; + Type _val1186; + for (int _i1187 = 0; _i1187 < _map1184.size; ++_i1187) { - _key1177 = iprot.readString(); - _val1178 = new Type(); - _val1178.read(iprot); - struct.success.put(_key1177, _val1178); + _key1185 = iprot.readString(); + _val1186 = new Type(); + _val1186.read(iprot); + struct.success.put(_key1185, _val1186); } iprot.readMapEnd(); } @@ -50588,10 +51681,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_type_all_resul oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Map.Entry _iter1180 : struct.success.entrySet()) + for (Map.Entry _iter1188 : struct.success.entrySet()) { - oprot.writeString(_iter1180.getKey()); - _iter1180.getValue().write(oprot); + oprot.writeString(_iter1188.getKey()); + _iter1188.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -50630,10 +51723,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_type_all_result if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry _iter1181 : struct.success.entrySet()) + for (Map.Entry _iter1189 : struct.success.entrySet()) { - oprot.writeString(_iter1181.getKey()); - _iter1181.getValue().write(oprot); + oprot.writeString(_iter1189.getKey()); + _iter1189.getValue().write(oprot); } } } @@ -50648,16 +51741,16 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_type_all_result BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map1182 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new HashMap(2*_map1182.size); - String _key1183; - Type _val1184; - for (int _i1185 = 0; _i1185 < _map1182.size; ++_i1185) + org.apache.thrift.protocol.TMap _map1190 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new HashMap(2*_map1190.size); + String _key1191; + Type _val1192; + for (int _i1193 = 0; _i1193 < _map1190.size; ++_i1193) { - _key1183 = iprot.readString(); - _val1184 = new Type(); - _val1184.read(iprot); - struct.success.put(_key1183, _val1184); + _key1191 = iprot.readString(); + _val1192 = new Type(); + _val1192.read(iprot); + struct.success.put(_key1191, _val1192); } } struct.setSuccessIsSet(true); @@ -51692,14 +52785,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_fields_result s case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1186 = iprot.readListBegin(); - struct.success = new ArrayList(_list1186.size); - FieldSchema _elem1187; - for (int _i1188 = 0; _i1188 < _list1186.size; ++_i1188) + org.apache.thrift.protocol.TList _list1194 = iprot.readListBegin(); + struct.success = new ArrayList(_list1194.size); + FieldSchema _elem1195; + for (int _i1196 = 0; _i1196 < _list1194.size; ++_i1196) { - _elem1187 = new FieldSchema(); - _elem1187.read(iprot); - struct.success.add(_elem1187); + _elem1195 = new FieldSchema(); + _elem1195.read(iprot); + struct.success.add(_elem1195); } iprot.readListEnd(); } @@ -51752,9 +52845,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_fields_result oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (FieldSchema _iter1189 : struct.success) + for (FieldSchema _iter1197 : struct.success) { - _iter1189.write(oprot); + _iter1197.write(oprot); } oprot.writeListEnd(); } @@ -51809,9 +52902,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter1190 : struct.success) + for (FieldSchema _iter1198 : struct.success) { - _iter1190.write(oprot); + _iter1198.write(oprot); } } } @@ -51832,14 +52925,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_fields_result st BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1191 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1191.size); - FieldSchema _elem1192; - for (int _i1193 = 0; _i1193 < _list1191.size; ++_i1193) + org.apache.thrift.protocol.TList _list1199 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1199.size); + FieldSchema _elem1200; + for (int _i1201 = 0; _i1201 < _list1199.size; ++_i1201) { - _elem1192 = new FieldSchema(); - _elem1192.read(iprot); - struct.success.add(_elem1192); + _elem1200 = new FieldSchema(); + _elem1200.read(iprot); + struct.success.add(_elem1200); } } struct.setSuccessIsSet(true); @@ -52993,14 +54086,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_fields_with_env case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1194 = iprot.readListBegin(); - struct.success = new ArrayList(_list1194.size); - FieldSchema _elem1195; - for (int _i1196 = 0; _i1196 < _list1194.size; ++_i1196) + org.apache.thrift.protocol.TList _list1202 = iprot.readListBegin(); + struct.success = new ArrayList(_list1202.size); + FieldSchema _elem1203; + for (int _i1204 = 0; _i1204 < _list1202.size; ++_i1204) { - _elem1195 = new FieldSchema(); - _elem1195.read(iprot); - struct.success.add(_elem1195); + _elem1203 = new FieldSchema(); + _elem1203.read(iprot); + struct.success.add(_elem1203); } iprot.readListEnd(); } @@ -53053,9 +54146,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_fields_with_en oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (FieldSchema _iter1197 : struct.success) + for (FieldSchema _iter1205 : struct.success) { - _iter1197.write(oprot); + _iter1205.write(oprot); } oprot.writeListEnd(); } @@ -53110,9 +54203,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_with_env if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter1198 : struct.success) + for (FieldSchema _iter1206 : struct.success) { - _iter1198.write(oprot); + _iter1206.write(oprot); } } } @@ -53133,14 +54226,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_fields_with_envi BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1199 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1199.size); - FieldSchema _elem1200; - for (int _i1201 = 0; _i1201 < _list1199.size; ++_i1201) + org.apache.thrift.protocol.TList _list1207 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1207.size); + FieldSchema _elem1208; + for (int _i1209 = 0; _i1209 < _list1207.size; ++_i1209) { - _elem1200 = new FieldSchema(); - _elem1200.read(iprot); - struct.success.add(_elem1200); + _elem1208 = new FieldSchema(); + _elem1208.read(iprot); + struct.success.add(_elem1208); } } struct.setSuccessIsSet(true); @@ -54185,14 +55278,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_result s case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1202 = iprot.readListBegin(); - struct.success = new ArrayList(_list1202.size); - FieldSchema _elem1203; - for (int _i1204 = 0; _i1204 < _list1202.size; ++_i1204) + org.apache.thrift.protocol.TList _list1210 = iprot.readListBegin(); + struct.success = new ArrayList(_list1210.size); + FieldSchema _elem1211; + for (int _i1212 = 0; _i1212 < _list1210.size; ++_i1212) { - _elem1203 = new FieldSchema(); - _elem1203.read(iprot); - struct.success.add(_elem1203); + _elem1211 = new FieldSchema(); + _elem1211.read(iprot); + struct.success.add(_elem1211); } iprot.readListEnd(); } @@ -54245,9 +55338,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_schema_result oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (FieldSchema _iter1205 : struct.success) + for (FieldSchema _iter1213 : struct.success) { - _iter1205.write(oprot); + _iter1213.write(oprot); } oprot.writeListEnd(); } @@ -54302,9 +55395,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter1206 : struct.success) + for (FieldSchema _iter1214 : struct.success) { - _iter1206.write(oprot); + _iter1214.write(oprot); } } } @@ -54325,14 +55418,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_result st BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1207 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1207.size); - FieldSchema _elem1208; - for (int _i1209 = 0; _i1209 < _list1207.size; ++_i1209) + org.apache.thrift.protocol.TList _list1215 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1215.size); + FieldSchema _elem1216; + for (int _i1217 = 0; _i1217 < _list1215.size; ++_i1217) { - _elem1208 = new FieldSchema(); - _elem1208.read(iprot); - struct.success.add(_elem1208); + _elem1216 = new FieldSchema(); + _elem1216.read(iprot); + struct.success.add(_elem1216); } } struct.setSuccessIsSet(true); @@ -55486,14 +56579,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_with_env case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1210 = iprot.readListBegin(); - struct.success = new ArrayList(_list1210.size); - FieldSchema _elem1211; - for (int _i1212 = 0; _i1212 < _list1210.size; ++_i1212) + org.apache.thrift.protocol.TList _list1218 = iprot.readListBegin(); + struct.success = new ArrayList(_list1218.size); + FieldSchema _elem1219; + for (int _i1220 = 0; _i1220 < _list1218.size; ++_i1220) { - _elem1211 = new FieldSchema(); - _elem1211.read(iprot); - struct.success.add(_elem1211); + _elem1219 = new FieldSchema(); + _elem1219.read(iprot); + struct.success.add(_elem1219); } iprot.readListEnd(); } @@ -55546,9 +56639,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_schema_with_en oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (FieldSchema _iter1213 : struct.success) + for (FieldSchema _iter1221 : struct.success) { - _iter1213.write(oprot); + _iter1221.write(oprot); } oprot.writeListEnd(); } @@ -55603,9 +56696,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_with_env if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter1214 : struct.success) + for (FieldSchema _iter1222 : struct.success) { - _iter1214.write(oprot); + _iter1222.write(oprot); } } } @@ -55626,14 +56719,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_with_envi BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1215 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1215.size); - FieldSchema _elem1216; - for (int _i1217 = 0; _i1217 < _list1215.size; ++_i1217) + org.apache.thrift.protocol.TList _list1223 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1223.size); + FieldSchema _elem1224; + for (int _i1225 = 0; _i1225 < _list1223.size; ++_i1225) { - _elem1216 = new FieldSchema(); - _elem1216.read(iprot); - struct.success.add(_elem1216); + _elem1224 = new FieldSchema(); + _elem1224.read(iprot); + struct.success.add(_elem1224); } } struct.setSuccessIsSet(true); @@ -58762,14 +59855,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_c case 2: // PRIMARY_KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1218 = iprot.readListBegin(); - struct.primaryKeys = new ArrayList(_list1218.size); - SQLPrimaryKey _elem1219; - for (int _i1220 = 0; _i1220 < _list1218.size; ++_i1220) + org.apache.thrift.protocol.TList _list1226 = iprot.readListBegin(); + struct.primaryKeys = new ArrayList(_list1226.size); + SQLPrimaryKey _elem1227; + for (int _i1228 = 0; _i1228 < _list1226.size; ++_i1228) { - _elem1219 = new SQLPrimaryKey(); - _elem1219.read(iprot); - struct.primaryKeys.add(_elem1219); + _elem1227 = new SQLPrimaryKey(); + _elem1227.read(iprot); + struct.primaryKeys.add(_elem1227); } iprot.readListEnd(); } @@ -58781,14 +59874,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_c case 3: // FOREIGN_KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1221 = iprot.readListBegin(); - struct.foreignKeys = new ArrayList(_list1221.size); - SQLForeignKey _elem1222; - for (int _i1223 = 0; _i1223 < _list1221.size; ++_i1223) + org.apache.thrift.protocol.TList _list1229 = iprot.readListBegin(); + struct.foreignKeys = new ArrayList(_list1229.size); + SQLForeignKey _elem1230; + for (int _i1231 = 0; _i1231 < _list1229.size; ++_i1231) { - _elem1222 = new SQLForeignKey(); - _elem1222.read(iprot); - struct.foreignKeys.add(_elem1222); + _elem1230 = new SQLForeignKey(); + _elem1230.read(iprot); + struct.foreignKeys.add(_elem1230); } iprot.readListEnd(); } @@ -58800,14 +59893,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_c case 4: // UNIQUE_CONSTRAINTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1224 = iprot.readListBegin(); - struct.uniqueConstraints = new ArrayList(_list1224.size); - SQLUniqueConstraint _elem1225; - for (int _i1226 = 0; _i1226 < _list1224.size; ++_i1226) + org.apache.thrift.protocol.TList _list1232 = iprot.readListBegin(); + struct.uniqueConstraints = new ArrayList(_list1232.size); + SQLUniqueConstraint _elem1233; + for (int _i1234 = 0; _i1234 < _list1232.size; ++_i1234) { - _elem1225 = new SQLUniqueConstraint(); - _elem1225.read(iprot); - struct.uniqueConstraints.add(_elem1225); + _elem1233 = new SQLUniqueConstraint(); + _elem1233.read(iprot); + struct.uniqueConstraints.add(_elem1233); } iprot.readListEnd(); } @@ -58819,14 +59912,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_c case 5: // NOT_NULL_CONSTRAINTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1227 = iprot.readListBegin(); - struct.notNullConstraints = new ArrayList(_list1227.size); - SQLNotNullConstraint _elem1228; - for (int _i1229 = 0; _i1229 < _list1227.size; ++_i1229) + org.apache.thrift.protocol.TList _list1235 = iprot.readListBegin(); + struct.notNullConstraints = new ArrayList(_list1235.size); + SQLNotNullConstraint _elem1236; + for (int _i1237 = 0; _i1237 < _list1235.size; ++_i1237) { - _elem1228 = new SQLNotNullConstraint(); - _elem1228.read(iprot); - struct.notNullConstraints.add(_elem1228); + _elem1236 = new SQLNotNullConstraint(); + _elem1236.read(iprot); + struct.notNullConstraints.add(_elem1236); } iprot.readListEnd(); } @@ -58838,14 +59931,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_c case 6: // DEFAULT_CONSTRAINTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1230 = iprot.readListBegin(); - struct.defaultConstraints = new ArrayList(_list1230.size); - SQLDefaultConstraint _elem1231; - for (int _i1232 = 0; _i1232 < _list1230.size; ++_i1232) + org.apache.thrift.protocol.TList _list1238 = iprot.readListBegin(); + struct.defaultConstraints = new ArrayList(_list1238.size); + SQLDefaultConstraint _elem1239; + for (int _i1240 = 0; _i1240 < _list1238.size; ++_i1240) { - _elem1231 = new SQLDefaultConstraint(); - _elem1231.read(iprot); - struct.defaultConstraints.add(_elem1231); + _elem1239 = new SQLDefaultConstraint(); + _elem1239.read(iprot); + struct.defaultConstraints.add(_elem1239); } iprot.readListEnd(); } @@ -58857,14 +59950,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_c case 7: // CHECK_CONSTRAINTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1233 = iprot.readListBegin(); - struct.checkConstraints = new ArrayList(_list1233.size); - SQLCheckConstraint _elem1234; - for (int _i1235 = 0; _i1235 < _list1233.size; ++_i1235) + org.apache.thrift.protocol.TList _list1241 = iprot.readListBegin(); + struct.checkConstraints = new ArrayList(_list1241.size); + SQLCheckConstraint _elem1242; + for (int _i1243 = 0; _i1243 < _list1241.size; ++_i1243) { - _elem1234 = new SQLCheckConstraint(); - _elem1234.read(iprot); - struct.checkConstraints.add(_elem1234); + _elem1242 = new SQLCheckConstraint(); + _elem1242.read(iprot); + struct.checkConstraints.add(_elem1242); } iprot.readListEnd(); } @@ -58895,9 +59988,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_with_ oprot.writeFieldBegin(PRIMARY_KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.primaryKeys.size())); - for (SQLPrimaryKey _iter1236 : struct.primaryKeys) + for (SQLPrimaryKey _iter1244 : struct.primaryKeys) { - _iter1236.write(oprot); + _iter1244.write(oprot); } oprot.writeListEnd(); } @@ -58907,9 +60000,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_with_ oprot.writeFieldBegin(FOREIGN_KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.foreignKeys.size())); - for (SQLForeignKey _iter1237 : struct.foreignKeys) + for (SQLForeignKey _iter1245 : struct.foreignKeys) { - _iter1237.write(oprot); + _iter1245.write(oprot); } oprot.writeListEnd(); } @@ -58919,9 +60012,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_with_ oprot.writeFieldBegin(UNIQUE_CONSTRAINTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.uniqueConstraints.size())); - for (SQLUniqueConstraint _iter1238 : struct.uniqueConstraints) + for (SQLUniqueConstraint _iter1246 : struct.uniqueConstraints) { - _iter1238.write(oprot); + _iter1246.write(oprot); } oprot.writeListEnd(); } @@ -58931,9 +60024,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_with_ oprot.writeFieldBegin(NOT_NULL_CONSTRAINTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.notNullConstraints.size())); - for (SQLNotNullConstraint _iter1239 : struct.notNullConstraints) + for (SQLNotNullConstraint _iter1247 : struct.notNullConstraints) { - _iter1239.write(oprot); + _iter1247.write(oprot); } oprot.writeListEnd(); } @@ -58943,9 +60036,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_with_ oprot.writeFieldBegin(DEFAULT_CONSTRAINTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.defaultConstraints.size())); - for (SQLDefaultConstraint _iter1240 : struct.defaultConstraints) + for (SQLDefaultConstraint _iter1248 : struct.defaultConstraints) { - _iter1240.write(oprot); + _iter1248.write(oprot); } oprot.writeListEnd(); } @@ -58955,9 +60048,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_with_ oprot.writeFieldBegin(CHECK_CONSTRAINTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.checkConstraints.size())); - for (SQLCheckConstraint _iter1241 : struct.checkConstraints) + for (SQLCheckConstraint _iter1249 : struct.checkConstraints) { - _iter1241.write(oprot); + _iter1249.write(oprot); } oprot.writeListEnd(); } @@ -59009,54 +60102,54 @@ public void write(org.apache.thrift.protocol.TProtocol prot, create_table_with_c if (struct.isSetPrimaryKeys()) { { oprot.writeI32(struct.primaryKeys.size()); - for (SQLPrimaryKey _iter1242 : struct.primaryKeys) + for (SQLPrimaryKey _iter1250 : struct.primaryKeys) { - _iter1242.write(oprot); + _iter1250.write(oprot); } } } if (struct.isSetForeignKeys()) { { oprot.writeI32(struct.foreignKeys.size()); - for (SQLForeignKey _iter1243 : struct.foreignKeys) + for (SQLForeignKey _iter1251 : struct.foreignKeys) { - _iter1243.write(oprot); + _iter1251.write(oprot); } } } if (struct.isSetUniqueConstraints()) { { oprot.writeI32(struct.uniqueConstraints.size()); - for (SQLUniqueConstraint _iter1244 : struct.uniqueConstraints) + for (SQLUniqueConstraint _iter1252 : struct.uniqueConstraints) { - _iter1244.write(oprot); + _iter1252.write(oprot); } } } if (struct.isSetNotNullConstraints()) { { oprot.writeI32(struct.notNullConstraints.size()); - for (SQLNotNullConstraint _iter1245 : struct.notNullConstraints) + for (SQLNotNullConstraint _iter1253 : struct.notNullConstraints) { - _iter1245.write(oprot); + _iter1253.write(oprot); } } } if (struct.isSetDefaultConstraints()) { { oprot.writeI32(struct.defaultConstraints.size()); - for (SQLDefaultConstraint _iter1246 : struct.defaultConstraints) + for (SQLDefaultConstraint _iter1254 : struct.defaultConstraints) { - _iter1246.write(oprot); + _iter1254.write(oprot); } } } if (struct.isSetCheckConstraints()) { { oprot.writeI32(struct.checkConstraints.size()); - for (SQLCheckConstraint _iter1247 : struct.checkConstraints) + for (SQLCheckConstraint _iter1255 : struct.checkConstraints) { - _iter1247.write(oprot); + _iter1255.write(oprot); } } } @@ -59073,84 +60166,84 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_table_with_co } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list1248 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.primaryKeys = new ArrayList(_list1248.size); - SQLPrimaryKey _elem1249; - for (int _i1250 = 0; _i1250 < _list1248.size; ++_i1250) + org.apache.thrift.protocol.TList _list1256 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.primaryKeys = new ArrayList(_list1256.size); + SQLPrimaryKey _elem1257; + for (int _i1258 = 0; _i1258 < _list1256.size; ++_i1258) { - _elem1249 = new SQLPrimaryKey(); - _elem1249.read(iprot); - struct.primaryKeys.add(_elem1249); + _elem1257 = new SQLPrimaryKey(); + _elem1257.read(iprot); + struct.primaryKeys.add(_elem1257); } } struct.setPrimaryKeysIsSet(true); } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1251 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.foreignKeys = new ArrayList(_list1251.size); - SQLForeignKey _elem1252; - for (int _i1253 = 0; _i1253 < _list1251.size; ++_i1253) + org.apache.thrift.protocol.TList _list1259 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.foreignKeys = new ArrayList(_list1259.size); + SQLForeignKey _elem1260; + for (int _i1261 = 0; _i1261 < _list1259.size; ++_i1261) { - _elem1252 = new SQLForeignKey(); - _elem1252.read(iprot); - struct.foreignKeys.add(_elem1252); + _elem1260 = new SQLForeignKey(); + _elem1260.read(iprot); + struct.foreignKeys.add(_elem1260); } } struct.setForeignKeysIsSet(true); } if (incoming.get(3)) { { - org.apache.thrift.protocol.TList _list1254 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.uniqueConstraints = new ArrayList(_list1254.size); - SQLUniqueConstraint _elem1255; - for (int _i1256 = 0; _i1256 < _list1254.size; ++_i1256) + org.apache.thrift.protocol.TList _list1262 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.uniqueConstraints = new ArrayList(_list1262.size); + SQLUniqueConstraint _elem1263; + for (int _i1264 = 0; _i1264 < _list1262.size; ++_i1264) { - _elem1255 = new SQLUniqueConstraint(); - _elem1255.read(iprot); - struct.uniqueConstraints.add(_elem1255); + _elem1263 = new SQLUniqueConstraint(); + _elem1263.read(iprot); + struct.uniqueConstraints.add(_elem1263); } } struct.setUniqueConstraintsIsSet(true); } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list1257 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.notNullConstraints = new ArrayList(_list1257.size); - SQLNotNullConstraint _elem1258; - for (int _i1259 = 0; _i1259 < _list1257.size; ++_i1259) + org.apache.thrift.protocol.TList _list1265 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.notNullConstraints = new ArrayList(_list1265.size); + SQLNotNullConstraint _elem1266; + for (int _i1267 = 0; _i1267 < _list1265.size; ++_i1267) { - _elem1258 = new SQLNotNullConstraint(); - _elem1258.read(iprot); - struct.notNullConstraints.add(_elem1258); + _elem1266 = new SQLNotNullConstraint(); + _elem1266.read(iprot); + struct.notNullConstraints.add(_elem1266); } } struct.setNotNullConstraintsIsSet(true); } if (incoming.get(5)) { { - org.apache.thrift.protocol.TList _list1260 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.defaultConstraints = new ArrayList(_list1260.size); - SQLDefaultConstraint _elem1261; - for (int _i1262 = 0; _i1262 < _list1260.size; ++_i1262) + org.apache.thrift.protocol.TList _list1268 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.defaultConstraints = new ArrayList(_list1268.size); + SQLDefaultConstraint _elem1269; + for (int _i1270 = 0; _i1270 < _list1268.size; ++_i1270) { - _elem1261 = new SQLDefaultConstraint(); - _elem1261.read(iprot); - struct.defaultConstraints.add(_elem1261); + _elem1269 = new SQLDefaultConstraint(); + _elem1269.read(iprot); + struct.defaultConstraints.add(_elem1269); } } struct.setDefaultConstraintsIsSet(true); } if (incoming.get(6)) { { - org.apache.thrift.protocol.TList _list1263 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.checkConstraints = new ArrayList(_list1263.size); - SQLCheckConstraint _elem1264; - for (int _i1265 = 0; _i1265 < _list1263.size; ++_i1265) + org.apache.thrift.protocol.TList _list1271 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.checkConstraints = new ArrayList(_list1271.size); + SQLCheckConstraint _elem1272; + for (int _i1273 = 0; _i1273 < _list1271.size; ++_i1273) { - _elem1264 = new SQLCheckConstraint(); - _elem1264.read(iprot); - struct.checkConstraints.add(_elem1264); + _elem1272 = new SQLCheckConstraint(); + _elem1272.read(iprot); + struct.checkConstraints.add(_elem1272); } } struct.setCheckConstraintsIsSet(true); @@ -69341,13 +70434,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, truncate_table_args case 3: // PART_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1266 = iprot.readListBegin(); - struct.partNames = new ArrayList(_list1266.size); - String _elem1267; - for (int _i1268 = 0; _i1268 < _list1266.size; ++_i1268) + org.apache.thrift.protocol.TList _list1274 = iprot.readListBegin(); + struct.partNames = new ArrayList(_list1274.size); + String _elem1275; + for (int _i1276 = 0; _i1276 < _list1274.size; ++_i1276) { - _elem1267 = iprot.readString(); - struct.partNames.add(_elem1267); + _elem1275 = iprot.readString(); + struct.partNames.add(_elem1275); } iprot.readListEnd(); } @@ -69383,9 +70476,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, truncate_table_arg oprot.writeFieldBegin(PART_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.partNames.size())); - for (String _iter1269 : struct.partNames) + for (String _iter1277 : struct.partNames) { - oprot.writeString(_iter1269); + oprot.writeString(_iter1277); } oprot.writeListEnd(); } @@ -69428,9 +70521,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, truncate_table_args if (struct.isSetPartNames()) { { oprot.writeI32(struct.partNames.size()); - for (String _iter1270 : struct.partNames) + for (String _iter1278 : struct.partNames) { - oprot.writeString(_iter1270); + oprot.writeString(_iter1278); } } } @@ -69450,13 +70543,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, truncate_table_args } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1271 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partNames = new ArrayList(_list1271.size); - String _elem1272; - for (int _i1273 = 0; _i1273 < _list1271.size; ++_i1273) + org.apache.thrift.protocol.TList _list1279 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partNames = new ArrayList(_list1279.size); + String _elem1280; + for (int _i1281 = 0; _i1281 < _list1279.size; ++_i1281) { - _elem1272 = iprot.readString(); - struct.partNames.add(_elem1272); + _elem1280 = iprot.readString(); + struct.partNames.add(_elem1280); } } struct.setPartNamesIsSet(true); @@ -71513,13 +72606,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_result s case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1274 = iprot.readListBegin(); - struct.success = new ArrayList(_list1274.size); - String _elem1275; - for (int _i1276 = 0; _i1276 < _list1274.size; ++_i1276) + org.apache.thrift.protocol.TList _list1282 = iprot.readListBegin(); + struct.success = new ArrayList(_list1282.size); + String _elem1283; + for (int _i1284 = 0; _i1284 < _list1282.size; ++_i1284) { - _elem1275 = iprot.readString(); - struct.success.add(_elem1275); + _elem1283 = iprot.readString(); + struct.success.add(_elem1283); } iprot.readListEnd(); } @@ -71554,9 +72647,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_result oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1277 : struct.success) + for (String _iter1285 : struct.success) { - oprot.writeString(_iter1277); + oprot.writeString(_iter1285); } oprot.writeListEnd(); } @@ -71595,9 +72688,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1278 : struct.success) + for (String _iter1286 : struct.success) { - oprot.writeString(_iter1278); + oprot.writeString(_iter1286); } } } @@ -71612,13 +72705,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_result st BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1279 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1279.size); - String _elem1280; - for (int _i1281 = 0; _i1281 < _list1279.size; ++_i1281) + org.apache.thrift.protocol.TList _list1287 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1287.size); + String _elem1288; + for (int _i1289 = 0; _i1289 < _list1287.size; ++_i1289) { - _elem1280 = iprot.readString(); - struct.success.add(_elem1280); + _elem1288 = iprot.readString(); + struct.success.add(_elem1288); } } struct.setSuccessIsSet(true); @@ -72592,13 +73685,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_by_type_ case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1282 = iprot.readListBegin(); - struct.success = new ArrayList(_list1282.size); - String _elem1283; - for (int _i1284 = 0; _i1284 < _list1282.size; ++_i1284) + org.apache.thrift.protocol.TList _list1290 = iprot.readListBegin(); + struct.success = new ArrayList(_list1290.size); + String _elem1291; + for (int _i1292 = 0; _i1292 < _list1290.size; ++_i1292) { - _elem1283 = iprot.readString(); - struct.success.add(_elem1283); + _elem1291 = iprot.readString(); + struct.success.add(_elem1291); } iprot.readListEnd(); } @@ -72633,9 +73726,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_by_type oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1285 : struct.success) + for (String _iter1293 : struct.success) { - oprot.writeString(_iter1285); + oprot.writeString(_iter1293); } oprot.writeListEnd(); } @@ -72674,9 +73767,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_ if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1286 : struct.success) + for (String _iter1294 : struct.success) { - oprot.writeString(_iter1286); + oprot.writeString(_iter1294); } } } @@ -72691,13 +73784,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_r BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1287 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1287.size); - String _elem1288; - for (int _i1289 = 0; _i1289 < _list1287.size; ++_i1289) + org.apache.thrift.protocol.TList _list1295 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1295.size); + String _elem1296; + for (int _i1297 = 0; _i1297 < _list1295.size; ++_i1297) { - _elem1288 = iprot.readString(); - struct.success.add(_elem1288); + _elem1296 = iprot.readString(); + struct.success.add(_elem1296); } } struct.setSuccessIsSet(true); @@ -73354,14 +74447,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_materialize case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1290 = iprot.readListBegin(); - struct.success = new ArrayList(_list1290.size); - Table _elem1291; - for (int _i1292 = 0; _i1292 < _list1290.size; ++_i1292) + org.apache.thrift.protocol.TList _list1298 = iprot.readListBegin(); + struct.success = new ArrayList
(_list1298.size); + Table _elem1299; + for (int _i1300 = 0; _i1300 < _list1298.size; ++_i1300) { - _elem1291 = new Table(); - _elem1291.read(iprot); - struct.success.add(_elem1291); + _elem1299 = new Table(); + _elem1299.read(iprot); + struct.success.add(_elem1299); } iprot.readListEnd(); } @@ -73396,9 +74489,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_materializ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Table _iter1293 : struct.success) + for (Table _iter1301 : struct.success) { - _iter1293.write(oprot); + _iter1301.write(oprot); } oprot.writeListEnd(); } @@ -73437,9 +74530,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_materialize if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Table _iter1294 : struct.success) + for (Table _iter1302 : struct.success) { - _iter1294.write(oprot); + _iter1302.write(oprot); } } } @@ -73454,14 +74547,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_materialized BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1295 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList
(_list1295.size); - Table _elem1296; - for (int _i1297 = 0; _i1297 < _list1295.size; ++_i1297) + org.apache.thrift.protocol.TList _list1303 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList
(_list1303.size); + Table _elem1304; + for (int _i1305 = 0; _i1305 < _list1303.size; ++_i1305) { - _elem1296 = new Table(); - _elem1296.read(iprot); - struct.success.add(_elem1296); + _elem1304 = new Table(); + _elem1304.read(iprot); + struct.success.add(_elem1304); } } struct.setSuccessIsSet(true); @@ -74227,13 +75320,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialized_vi case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1298 = iprot.readListBegin(); - struct.success = new ArrayList(_list1298.size); - String _elem1299; - for (int _i1300 = 0; _i1300 < _list1298.size; ++_i1300) + org.apache.thrift.protocol.TList _list1306 = iprot.readListBegin(); + struct.success = new ArrayList(_list1306.size); + String _elem1307; + for (int _i1308 = 0; _i1308 < _list1306.size; ++_i1308) { - _elem1299 = iprot.readString(); - struct.success.add(_elem1299); + _elem1307 = iprot.readString(); + struct.success.add(_elem1307); } iprot.readListEnd(); } @@ -74268,9 +75361,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_materialized_v oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1301 : struct.success) + for (String _iter1309 : struct.success) { - oprot.writeString(_iter1301); + oprot.writeString(_iter1309); } oprot.writeListEnd(); } @@ -74309,9 +75402,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_materialized_vi if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1302 : struct.success) + for (String _iter1310 : struct.success) { - oprot.writeString(_iter1302); + oprot.writeString(_iter1310); } } } @@ -74326,13 +75419,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_materialized_vie BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1303 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1303.size); - String _elem1304; - for (int _i1305 = 0; _i1305 < _list1303.size; ++_i1305) + org.apache.thrift.protocol.TList _list1311 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1311.size); + String _elem1312; + for (int _i1313 = 0; _i1313 < _list1311.size; ++_i1313) { - _elem1304 = iprot.readString(); - struct.success.add(_elem1304); + _elem1312 = iprot.readString(); + struct.success.add(_elem1312); } } struct.setSuccessIsSet(true); @@ -74837,13 +75930,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_meta_args case 3: // TBL_TYPES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1306 = iprot.readListBegin(); - struct.tbl_types = new ArrayList(_list1306.size); - String _elem1307; - for (int _i1308 = 0; _i1308 < _list1306.size; ++_i1308) + org.apache.thrift.protocol.TList _list1314 = iprot.readListBegin(); + struct.tbl_types = new ArrayList(_list1314.size); + String _elem1315; + for (int _i1316 = 0; _i1316 < _list1314.size; ++_i1316) { - _elem1307 = iprot.readString(); - struct.tbl_types.add(_elem1307); + _elem1315 = iprot.readString(); + struct.tbl_types.add(_elem1315); } iprot.readListEnd(); } @@ -74879,9 +75972,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_meta_arg 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 _iter1309 : struct.tbl_types) + for (String _iter1317 : struct.tbl_types) { - oprot.writeString(_iter1309); + oprot.writeString(_iter1317); } oprot.writeListEnd(); } @@ -74924,9 +76017,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_meta_args if (struct.isSetTbl_types()) { { oprot.writeI32(struct.tbl_types.size()); - for (String _iter1310 : struct.tbl_types) + for (String _iter1318 : struct.tbl_types) { - oprot.writeString(_iter1310); + oprot.writeString(_iter1318); } } } @@ -74946,13 +76039,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_meta_args } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1311 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tbl_types = new ArrayList(_list1311.size); - String _elem1312; - for (int _i1313 = 0; _i1313 < _list1311.size; ++_i1313) + org.apache.thrift.protocol.TList _list1319 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tbl_types = new ArrayList(_list1319.size); + String _elem1320; + for (int _i1321 = 0; _i1321 < _list1319.size; ++_i1321) { - _elem1312 = iprot.readString(); - struct.tbl_types.add(_elem1312); + _elem1320 = iprot.readString(); + struct.tbl_types.add(_elem1320); } } struct.setTbl_typesIsSet(true); @@ -75358,14 +76451,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_meta_resu case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1314 = iprot.readListBegin(); - struct.success = new ArrayList(_list1314.size); - TableMeta _elem1315; - for (int _i1316 = 0; _i1316 < _list1314.size; ++_i1316) + org.apache.thrift.protocol.TList _list1322 = iprot.readListBegin(); + struct.success = new ArrayList(_list1322.size); + TableMeta _elem1323; + for (int _i1324 = 0; _i1324 < _list1322.size; ++_i1324) { - _elem1315 = new TableMeta(); - _elem1315.read(iprot); - struct.success.add(_elem1315); + _elem1323 = new TableMeta(); + _elem1323.read(iprot); + struct.success.add(_elem1323); } iprot.readListEnd(); } @@ -75400,9 +76493,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_meta_res oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (TableMeta _iter1317 : struct.success) + for (TableMeta _iter1325 : struct.success) { - _iter1317.write(oprot); + _iter1325.write(oprot); } oprot.writeListEnd(); } @@ -75441,9 +76534,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_meta_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (TableMeta _iter1318 : struct.success) + for (TableMeta _iter1326 : struct.success) { - _iter1318.write(oprot); + _iter1326.write(oprot); } } } @@ -75458,14 +76551,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_meta_resul BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1319 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1319.size); - TableMeta _elem1320; - for (int _i1321 = 0; _i1321 < _list1319.size; ++_i1321) + org.apache.thrift.protocol.TList _list1327 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1327.size); + TableMeta _elem1328; + for (int _i1329 = 0; _i1329 < _list1327.size; ++_i1329) { - _elem1320 = new TableMeta(); - _elem1320.read(iprot); - struct.success.add(_elem1320); + _elem1328 = new TableMeta(); + _elem1328.read(iprot); + struct.success.add(_elem1328); } } struct.setSuccessIsSet(true); @@ -76231,13 +77324,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 _list1322 = iprot.readListBegin(); - struct.success = new ArrayList(_list1322.size); - String _elem1323; - for (int _i1324 = 0; _i1324 < _list1322.size; ++_i1324) + org.apache.thrift.protocol.TList _list1330 = iprot.readListBegin(); + struct.success = new ArrayList(_list1330.size); + String _elem1331; + for (int _i1332 = 0; _i1332 < _list1330.size; ++_i1332) { - _elem1323 = iprot.readString(); - struct.success.add(_elem1323); + _elem1331 = iprot.readString(); + struct.success.add(_elem1331); } iprot.readListEnd(); } @@ -76272,9 +77365,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 _iter1325 : struct.success) + for (String _iter1333 : struct.success) { - oprot.writeString(_iter1325); + oprot.writeString(_iter1333); } oprot.writeListEnd(); } @@ -76313,9 +77406,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_tables_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1326 : struct.success) + for (String _iter1334 : struct.success) { - oprot.writeString(_iter1326); + oprot.writeString(_iter1334); } } } @@ -76330,13 +77423,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 _list1327 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1327.size); - String _elem1328; - for (int _i1329 = 0; _i1329 < _list1327.size; ++_i1329) + org.apache.thrift.protocol.TList _list1335 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1335.size); + String _elem1336; + for (int _i1337 = 0; _i1337 < _list1335.size; ++_i1337) { - _elem1328 = iprot.readString(); - struct.success.add(_elem1328); + _elem1336 = iprot.readString(); + struct.success.add(_elem1336); } } struct.setSuccessIsSet(true); @@ -77789,13 +78882,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 _list1330 = iprot.readListBegin(); - struct.tbl_names = new ArrayList(_list1330.size); - String _elem1331; - for (int _i1332 = 0; _i1332 < _list1330.size; ++_i1332) + org.apache.thrift.protocol.TList _list1338 = iprot.readListBegin(); + struct.tbl_names = new ArrayList(_list1338.size); + String _elem1339; + for (int _i1340 = 0; _i1340 < _list1338.size; ++_i1340) { - _elem1331 = iprot.readString(); - struct.tbl_names.add(_elem1331); + _elem1339 = iprot.readString(); + struct.tbl_names.add(_elem1339); } iprot.readListEnd(); } @@ -77826,9 +78919,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 _iter1333 : struct.tbl_names) + for (String _iter1341 : struct.tbl_names) { - oprot.writeString(_iter1333); + oprot.writeString(_iter1341); } oprot.writeListEnd(); } @@ -77865,9 +78958,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 _iter1334 : struct.tbl_names) + for (String _iter1342 : struct.tbl_names) { - oprot.writeString(_iter1334); + oprot.writeString(_iter1342); } } } @@ -77883,13 +78976,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list1335 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tbl_names = new ArrayList(_list1335.size); - String _elem1336; - for (int _i1337 = 0; _i1337 < _list1335.size; ++_i1337) + org.apache.thrift.protocol.TList _list1343 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tbl_names = new ArrayList(_list1343.size); + String _elem1344; + for (int _i1345 = 0; _i1345 < _list1343.size; ++_i1345) { - _elem1336 = iprot.readString(); - struct.tbl_names.add(_elem1336); + _elem1344 = iprot.readString(); + struct.tbl_names.add(_elem1344); } } struct.setTbl_namesIsSet(true); @@ -78214,14 +79307,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 _list1338 = iprot.readListBegin(); - struct.success = new ArrayList
(_list1338.size); - Table _elem1339; - for (int _i1340 = 0; _i1340 < _list1338.size; ++_i1340) + org.apache.thrift.protocol.TList _list1346 = iprot.readListBegin(); + struct.success = new ArrayList
(_list1346.size); + Table _elem1347; + for (int _i1348 = 0; _i1348 < _list1346.size; ++_i1348) { - _elem1339 = new Table(); - _elem1339.read(iprot); - struct.success.add(_elem1339); + _elem1347 = new Table(); + _elem1347.read(iprot); + struct.success.add(_elem1347); } iprot.readListEnd(); } @@ -78247,9 +79340,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 _iter1341 : struct.success) + for (Table _iter1349 : struct.success) { - _iter1341.write(oprot); + _iter1349.write(oprot); } oprot.writeListEnd(); } @@ -78280,9 +79373,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_b if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Table _iter1342 : struct.success) + for (Table _iter1350 : struct.success) { - _iter1342.write(oprot); + _iter1350.write(oprot); } } } @@ -78294,14 +79387,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1343 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList
(_list1343.size); - Table _elem1344; - for (int _i1345 = 0; _i1345 < _list1343.size; ++_i1345) + org.apache.thrift.protocol.TList _list1351 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList
(_list1351.size); + Table _elem1352; + for (int _i1353 = 0; _i1353 < _list1351.size; ++_i1353) { - _elem1344 = new Table(); - _elem1344.read(iprot); - struct.success.add(_elem1344); + _elem1352 = new Table(); + _elem1352.read(iprot); + struct.success.add(_elem1352); } } struct.setSuccessIsSet(true); @@ -79070,14 +80163,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_ext_resu case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1346 = iprot.readListBegin(); - struct.success = new ArrayList(_list1346.size); - ExtendedTableInfo _elem1347; - for (int _i1348 = 0; _i1348 < _list1346.size; ++_i1348) + org.apache.thrift.protocol.TList _list1354 = iprot.readListBegin(); + struct.success = new ArrayList(_list1354.size); + ExtendedTableInfo _elem1355; + for (int _i1356 = 0; _i1356 < _list1354.size; ++_i1356) { - _elem1347 = new ExtendedTableInfo(); - _elem1347.read(iprot); - struct.success.add(_elem1347); + _elem1355 = new ExtendedTableInfo(); + _elem1355.read(iprot); + struct.success.add(_elem1355); } iprot.readListEnd(); } @@ -79112,9 +80205,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_ext_res oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (ExtendedTableInfo _iter1349 : struct.success) + for (ExtendedTableInfo _iter1357 : struct.success) { - _iter1349.write(oprot); + _iter1357.write(oprot); } oprot.writeListEnd(); } @@ -79153,9 +80246,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_ext_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (ExtendedTableInfo _iter1350 : struct.success) + for (ExtendedTableInfo _iter1358 : struct.success) { - _iter1350.write(oprot); + _iter1358.write(oprot); } } } @@ -79170,14 +80263,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_ext_resul BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1351 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1351.size); - ExtendedTableInfo _elem1352; - for (int _i1353 = 0; _i1353 < _list1351.size; ++_i1353) + org.apache.thrift.protocol.TList _list1359 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1359.size); + ExtendedTableInfo _elem1360; + for (int _i1361 = 0; _i1361 < _list1359.size; ++_i1361) { - _elem1352 = new ExtendedTableInfo(); - _elem1352.read(iprot); - struct.success.add(_elem1352); + _elem1360 = new ExtendedTableInfo(); + _elem1360.read(iprot); + struct.success.add(_elem1360); } } struct.setSuccessIsSet(true); @@ -84690,13 +85783,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 _list1354 = iprot.readListBegin(); - struct.success = new ArrayList(_list1354.size); - String _elem1355; - for (int _i1356 = 0; _i1356 < _list1354.size; ++_i1356) + org.apache.thrift.protocol.TList _list1362 = iprot.readListBegin(); + struct.success = new ArrayList(_list1362.size); + String _elem1363; + for (int _i1364 = 0; _i1364 < _list1362.size; ++_i1364) { - _elem1355 = iprot.readString(); - struct.success.add(_elem1355); + _elem1363 = iprot.readString(); + struct.success.add(_elem1363); } iprot.readListEnd(); } @@ -84749,9 +85842,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 _iter1357 : struct.success) + for (String _iter1365 : struct.success) { - oprot.writeString(_iter1357); + oprot.writeString(_iter1365); } oprot.writeListEnd(); } @@ -84806,9 +85899,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_ if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1358 : struct.success) + for (String _iter1366 : struct.success) { - oprot.writeString(_iter1358); + oprot.writeString(_iter1366); } } } @@ -84829,13 +85922,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 _list1359 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1359.size); - String _elem1360; - for (int _i1361 = 0; _i1361 < _list1359.size; ++_i1361) + org.apache.thrift.protocol.TList _list1367 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1367.size); + String _elem1368; + for (int _i1369 = 0; _i1369 < _list1367.size; ++_i1369) { - _elem1360 = iprot.readString(); - struct.success.add(_elem1360); + _elem1368 = iprot.readString(); + struct.success.add(_elem1368); } } struct.setSuccessIsSet(true); @@ -91632,14 +92725,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 _list1362 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1362.size); - Partition _elem1363; - for (int _i1364 = 0; _i1364 < _list1362.size; ++_i1364) + org.apache.thrift.protocol.TList _list1370 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1370.size); + Partition _elem1371; + for (int _i1372 = 0; _i1372 < _list1370.size; ++_i1372) { - _elem1363 = new Partition(); - _elem1363.read(iprot); - struct.new_parts.add(_elem1363); + _elem1371 = new Partition(); + _elem1371.read(iprot); + struct.new_parts.add(_elem1371); } iprot.readListEnd(); } @@ -91665,9 +92758,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 _iter1365 : struct.new_parts) + for (Partition _iter1373 : struct.new_parts) { - _iter1365.write(oprot); + _iter1373.write(oprot); } oprot.writeListEnd(); } @@ -91698,9 +92791,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 _iter1366 : struct.new_parts) + for (Partition _iter1374 : struct.new_parts) { - _iter1366.write(oprot); + _iter1374.write(oprot); } } } @@ -91712,14 +92805,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 _list1367 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1367.size); - Partition _elem1368; - for (int _i1369 = 0; _i1369 < _list1367.size; ++_i1369) + org.apache.thrift.protocol.TList _list1375 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1375.size); + Partition _elem1376; + for (int _i1377 = 0; _i1377 < _list1375.size; ++_i1377) { - _elem1368 = new Partition(); - _elem1368.read(iprot); - struct.new_parts.add(_elem1368); + _elem1376 = new Partition(); + _elem1376.read(iprot); + struct.new_parts.add(_elem1376); } } struct.setNew_partsIsSet(true); @@ -92720,14 +93813,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 _list1370 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1370.size); - PartitionSpec _elem1371; - for (int _i1372 = 0; _i1372 < _list1370.size; ++_i1372) + org.apache.thrift.protocol.TList _list1378 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1378.size); + PartitionSpec _elem1379; + for (int _i1380 = 0; _i1380 < _list1378.size; ++_i1380) { - _elem1371 = new PartitionSpec(); - _elem1371.read(iprot); - struct.new_parts.add(_elem1371); + _elem1379 = new PartitionSpec(); + _elem1379.read(iprot); + struct.new_parts.add(_elem1379); } iprot.readListEnd(); } @@ -92753,9 +93846,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 _iter1373 : struct.new_parts) + for (PartitionSpec _iter1381 : struct.new_parts) { - _iter1373.write(oprot); + _iter1381.write(oprot); } oprot.writeListEnd(); } @@ -92786,9 +93879,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 _iter1374 : struct.new_parts) + for (PartitionSpec _iter1382 : struct.new_parts) { - _iter1374.write(oprot); + _iter1382.write(oprot); } } } @@ -92800,14 +93893,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 _list1375 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1375.size); - PartitionSpec _elem1376; - for (int _i1377 = 0; _i1377 < _list1375.size; ++_i1377) + org.apache.thrift.protocol.TList _list1383 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1383.size); + PartitionSpec _elem1384; + for (int _i1385 = 0; _i1385 < _list1383.size; ++_i1385) { - _elem1376 = new PartitionSpec(); - _elem1376.read(iprot); - struct.new_parts.add(_elem1376); + _elem1384 = new PartitionSpec(); + _elem1384.read(iprot); + struct.new_parts.add(_elem1384); } } struct.setNew_partsIsSet(true); @@ -93983,13 +95076,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 _list1378 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1378.size); - String _elem1379; - for (int _i1380 = 0; _i1380 < _list1378.size; ++_i1380) + org.apache.thrift.protocol.TList _list1386 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1386.size); + String _elem1387; + for (int _i1388 = 0; _i1388 < _list1386.size; ++_i1388) { - _elem1379 = iprot.readString(); - struct.part_vals.add(_elem1379); + _elem1387 = iprot.readString(); + struct.part_vals.add(_elem1387); } iprot.readListEnd(); } @@ -94025,9 +95118,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 _iter1381 : struct.part_vals) + for (String _iter1389 : struct.part_vals) { - oprot.writeString(_iter1381); + oprot.writeString(_iter1389); } oprot.writeListEnd(); } @@ -94070,9 +95163,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 _iter1382 : struct.part_vals) + for (String _iter1390 : struct.part_vals) { - oprot.writeString(_iter1382); + oprot.writeString(_iter1390); } } } @@ -94092,13 +95185,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1383 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1383.size); - String _elem1384; - for (int _i1385 = 0; _i1385 < _list1383.size; ++_i1385) + org.apache.thrift.protocol.TList _list1391 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1391.size); + String _elem1392; + for (int _i1393 = 0; _i1393 < _list1391.size; ++_i1393) { - _elem1384 = iprot.readString(); - struct.part_vals.add(_elem1384); + _elem1392 = iprot.readString(); + struct.part_vals.add(_elem1392); } } struct.setPart_valsIsSet(true); @@ -96407,13 +97500,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 _list1386 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1386.size); - String _elem1387; - for (int _i1388 = 0; _i1388 < _list1386.size; ++_i1388) + org.apache.thrift.protocol.TList _list1394 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1394.size); + String _elem1395; + for (int _i1396 = 0; _i1396 < _list1394.size; ++_i1396) { - _elem1387 = iprot.readString(); - struct.part_vals.add(_elem1387); + _elem1395 = iprot.readString(); + struct.part_vals.add(_elem1395); } iprot.readListEnd(); } @@ -96458,9 +97551,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 _iter1389 : struct.part_vals) + for (String _iter1397 : struct.part_vals) { - oprot.writeString(_iter1389); + oprot.writeString(_iter1397); } oprot.writeListEnd(); } @@ -96511,9 +97604,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 _iter1390 : struct.part_vals) + for (String _iter1398 : struct.part_vals) { - oprot.writeString(_iter1390); + oprot.writeString(_iter1398); } } } @@ -96536,13 +97629,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_wit } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1391 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1391.size); - String _elem1392; - for (int _i1393 = 0; _i1393 < _list1391.size; ++_i1393) + org.apache.thrift.protocol.TList _list1399 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1399.size); + String _elem1400; + for (int _i1401 = 0; _i1401 < _list1399.size; ++_i1401) { - _elem1392 = iprot.readString(); - struct.part_vals.add(_elem1392); + _elem1400 = iprot.readString(); + struct.part_vals.add(_elem1400); } } struct.setPart_valsIsSet(true); @@ -100412,13 +101505,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 _list1394 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1394.size); - String _elem1395; - for (int _i1396 = 0; _i1396 < _list1394.size; ++_i1396) + org.apache.thrift.protocol.TList _list1402 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1402.size); + String _elem1403; + for (int _i1404 = 0; _i1404 < _list1402.size; ++_i1404) { - _elem1395 = iprot.readString(); - struct.part_vals.add(_elem1395); + _elem1403 = iprot.readString(); + struct.part_vals.add(_elem1403); } iprot.readListEnd(); } @@ -100462,9 +101555,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 _iter1397 : struct.part_vals) + for (String _iter1405 : struct.part_vals) { - oprot.writeString(_iter1397); + oprot.writeString(_iter1405); } oprot.writeListEnd(); } @@ -100513,9 +101606,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 _iter1398 : struct.part_vals) + for (String _iter1406 : struct.part_vals) { - oprot.writeString(_iter1398); + oprot.writeString(_iter1406); } } } @@ -100538,13 +101631,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_args } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1399 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1399.size); - String _elem1400; - for (int _i1401 = 0; _i1401 < _list1399.size; ++_i1401) + org.apache.thrift.protocol.TList _list1407 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1407.size); + String _elem1408; + for (int _i1409 = 0; _i1409 < _list1407.size; ++_i1409) { - _elem1400 = iprot.readString(); - struct.part_vals.add(_elem1400); + _elem1408 = iprot.readString(); + struct.part_vals.add(_elem1408); } } struct.setPart_valsIsSet(true); @@ -101783,13 +102876,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 _list1402 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1402.size); - String _elem1403; - for (int _i1404 = 0; _i1404 < _list1402.size; ++_i1404) + org.apache.thrift.protocol.TList _list1410 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1410.size); + String _elem1411; + for (int _i1412 = 0; _i1412 < _list1410.size; ++_i1412) { - _elem1403 = iprot.readString(); - struct.part_vals.add(_elem1403); + _elem1411 = iprot.readString(); + struct.part_vals.add(_elem1411); } iprot.readListEnd(); } @@ -101842,9 +102935,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 _iter1405 : struct.part_vals) + for (String _iter1413 : struct.part_vals) { - oprot.writeString(_iter1405); + oprot.writeString(_iter1413); } oprot.writeListEnd(); } @@ -101901,9 +102994,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 _iter1406 : struct.part_vals) + for (String _iter1414 : struct.part_vals) { - oprot.writeString(_iter1406); + oprot.writeString(_iter1414); } } } @@ -101929,13 +103022,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_ } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1407 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1407.size); - String _elem1408; - for (int _i1409 = 0; _i1409 < _list1407.size; ++_i1409) + org.apache.thrift.protocol.TList _list1415 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1415.size); + String _elem1416; + for (int _i1417 = 0; _i1417 < _list1415.size; ++_i1417) { - _elem1408 = iprot.readString(); - struct.part_vals.add(_elem1408); + _elem1416 = iprot.readString(); + struct.part_vals.add(_elem1416); } } struct.setPart_valsIsSet(true); @@ -106537,13 +107630,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 _list1410 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1410.size); - String _elem1411; - for (int _i1412 = 0; _i1412 < _list1410.size; ++_i1412) + org.apache.thrift.protocol.TList _list1418 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1418.size); + String _elem1419; + for (int _i1420 = 0; _i1420 < _list1418.size; ++_i1420) { - _elem1411 = iprot.readString(); - struct.part_vals.add(_elem1411); + _elem1419 = iprot.readString(); + struct.part_vals.add(_elem1419); } iprot.readListEnd(); } @@ -106579,9 +107672,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 _iter1413 : struct.part_vals) + for (String _iter1421 : struct.part_vals) { - oprot.writeString(_iter1413); + oprot.writeString(_iter1421); } oprot.writeListEnd(); } @@ -106624,9 +107717,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 _iter1414 : struct.part_vals) + for (String _iter1422 : struct.part_vals) { - oprot.writeString(_iter1414); + oprot.writeString(_iter1422); } } } @@ -106646,13 +107739,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_args s } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1415 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1415.size); - String _elem1416; - for (int _i1417 = 0; _i1417 < _list1415.size; ++_i1417) + org.apache.thrift.protocol.TList _list1423 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1423.size); + String _elem1424; + for (int _i1425 = 0; _i1425 < _list1423.size; ++_i1425) { - _elem1416 = iprot.readString(); - struct.part_vals.add(_elem1416); + _elem1424 = iprot.readString(); + struct.part_vals.add(_elem1424); } } struct.setPart_valsIsSet(true); @@ -107870,15 +108963,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 _map1418 = iprot.readMapBegin(); - struct.partitionSpecs = new HashMap(2*_map1418.size); - String _key1419; - String _val1420; - for (int _i1421 = 0; _i1421 < _map1418.size; ++_i1421) + org.apache.thrift.protocol.TMap _map1426 = iprot.readMapBegin(); + struct.partitionSpecs = new HashMap(2*_map1426.size); + String _key1427; + String _val1428; + for (int _i1429 = 0; _i1429 < _map1426.size; ++_i1429) { - _key1419 = iprot.readString(); - _val1420 = iprot.readString(); - struct.partitionSpecs.put(_key1419, _val1420); + _key1427 = iprot.readString(); + _val1428 = iprot.readString(); + struct.partitionSpecs.put(_key1427, _val1428); } iprot.readMapEnd(); } @@ -107936,10 +109029,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 _iter1422 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter1430 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1422.getKey()); - oprot.writeString(_iter1422.getValue()); + oprot.writeString(_iter1430.getKey()); + oprot.writeString(_iter1430.getValue()); } oprot.writeMapEnd(); } @@ -108002,10 +109095,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_ if (struct.isSetPartitionSpecs()) { { oprot.writeI32(struct.partitionSpecs.size()); - for (Map.Entry _iter1423 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter1431 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1423.getKey()); - oprot.writeString(_iter1423.getValue()); + oprot.writeString(_iter1431.getKey()); + oprot.writeString(_iter1431.getValue()); } } } @@ -108029,15 +109122,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 _map1424 = 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*_map1424.size); - String _key1425; - String _val1426; - for (int _i1427 = 0; _i1427 < _map1424.size; ++_i1427) + org.apache.thrift.protocol.TMap _map1432 = 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*_map1432.size); + String _key1433; + String _val1434; + for (int _i1435 = 0; _i1435 < _map1432.size; ++_i1435) { - _key1425 = iprot.readString(); - _val1426 = iprot.readString(); - struct.partitionSpecs.put(_key1425, _val1426); + _key1433 = iprot.readString(); + _val1434 = iprot.readString(); + struct.partitionSpecs.put(_key1433, _val1434); } } struct.setPartitionSpecsIsSet(true); @@ -109483,15 +110576,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 _map1428 = iprot.readMapBegin(); - struct.partitionSpecs = new HashMap(2*_map1428.size); - String _key1429; - String _val1430; - for (int _i1431 = 0; _i1431 < _map1428.size; ++_i1431) + org.apache.thrift.protocol.TMap _map1436 = iprot.readMapBegin(); + struct.partitionSpecs = new HashMap(2*_map1436.size); + String _key1437; + String _val1438; + for (int _i1439 = 0; _i1439 < _map1436.size; ++_i1439) { - _key1429 = iprot.readString(); - _val1430 = iprot.readString(); - struct.partitionSpecs.put(_key1429, _val1430); + _key1437 = iprot.readString(); + _val1438 = iprot.readString(); + struct.partitionSpecs.put(_key1437, _val1438); } iprot.readMapEnd(); } @@ -109549,10 +110642,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 _iter1432 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter1440 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1432.getKey()); - oprot.writeString(_iter1432.getValue()); + oprot.writeString(_iter1440.getKey()); + oprot.writeString(_iter1440.getValue()); } oprot.writeMapEnd(); } @@ -109615,10 +110708,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions if (struct.isSetPartitionSpecs()) { { oprot.writeI32(struct.partitionSpecs.size()); - for (Map.Entry _iter1433 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter1441 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1433.getKey()); - oprot.writeString(_iter1433.getValue()); + oprot.writeString(_iter1441.getKey()); + oprot.writeString(_iter1441.getValue()); } } } @@ -109642,15 +110735,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 _map1434 = 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*_map1434.size); - String _key1435; - String _val1436; - for (int _i1437 = 0; _i1437 < _map1434.size; ++_i1437) + org.apache.thrift.protocol.TMap _map1442 = 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*_map1442.size); + String _key1443; + String _val1444; + for (int _i1445 = 0; _i1445 < _map1442.size; ++_i1445) { - _key1435 = iprot.readString(); - _val1436 = iprot.readString(); - struct.partitionSpecs.put(_key1435, _val1436); + _key1443 = iprot.readString(); + _val1444 = iprot.readString(); + struct.partitionSpecs.put(_key1443, _val1444); } } struct.setPartitionSpecsIsSet(true); @@ -110315,14 +111408,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 _list1438 = iprot.readListBegin(); - struct.success = new ArrayList(_list1438.size); - Partition _elem1439; - for (int _i1440 = 0; _i1440 < _list1438.size; ++_i1440) + org.apache.thrift.protocol.TList _list1446 = iprot.readListBegin(); + struct.success = new ArrayList(_list1446.size); + Partition _elem1447; + for (int _i1448 = 0; _i1448 < _list1446.size; ++_i1448) { - _elem1439 = new Partition(); - _elem1439.read(iprot); - struct.success.add(_elem1439); + _elem1447 = new Partition(); + _elem1447.read(iprot); + struct.success.add(_elem1447); } iprot.readListEnd(); } @@ -110384,9 +111477,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 _iter1441 : struct.success) + for (Partition _iter1449 : struct.success) { - _iter1441.write(oprot); + _iter1449.write(oprot); } oprot.writeListEnd(); } @@ -110449,9 +111542,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1442 : struct.success) + for (Partition _iter1450 : struct.success) { - _iter1442.write(oprot); + _iter1450.write(oprot); } } } @@ -110475,14 +111568,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 _list1443 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1443.size); - Partition _elem1444; - for (int _i1445 = 0; _i1445 < _list1443.size; ++_i1445) + org.apache.thrift.protocol.TList _list1451 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1451.size); + Partition _elem1452; + for (int _i1453 = 0; _i1453 < _list1451.size; ++_i1453) { - _elem1444 = new Partition(); - _elem1444.read(iprot); - struct.success.add(_elem1444); + _elem1452 = new Partition(); + _elem1452.read(iprot); + struct.success.add(_elem1452); } } struct.setSuccessIsSet(true); @@ -111181,13 +112274,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 _list1446 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1446.size); - String _elem1447; - for (int _i1448 = 0; _i1448 < _list1446.size; ++_i1448) + org.apache.thrift.protocol.TList _list1454 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1454.size); + String _elem1455; + for (int _i1456 = 0; _i1456 < _list1454.size; ++_i1456) { - _elem1447 = iprot.readString(); - struct.part_vals.add(_elem1447); + _elem1455 = iprot.readString(); + struct.part_vals.add(_elem1455); } iprot.readListEnd(); } @@ -111207,13 +112300,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 _list1449 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1449.size); - String _elem1450; - for (int _i1451 = 0; _i1451 < _list1449.size; ++_i1451) + org.apache.thrift.protocol.TList _list1457 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1457.size); + String _elem1458; + for (int _i1459 = 0; _i1459 < _list1457.size; ++_i1459) { - _elem1450 = iprot.readString(); - struct.group_names.add(_elem1450); + _elem1458 = iprot.readString(); + struct.group_names.add(_elem1458); } iprot.readListEnd(); } @@ -111249,9 +112342,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 _iter1452 : struct.part_vals) + for (String _iter1460 : struct.part_vals) { - oprot.writeString(_iter1452); + oprot.writeString(_iter1460); } oprot.writeListEnd(); } @@ -111266,9 +112359,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 _iter1453 : struct.group_names) + for (String _iter1461 : struct.group_names) { - oprot.writeString(_iter1453); + oprot.writeString(_iter1461); } oprot.writeListEnd(); } @@ -111317,9 +112410,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 _iter1454 : struct.part_vals) + for (String _iter1462 : struct.part_vals) { - oprot.writeString(_iter1454); + oprot.writeString(_iter1462); } } } @@ -111329,9 +112422,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 _iter1455 : struct.group_names) + for (String _iter1463 : struct.group_names) { - oprot.writeString(_iter1455); + oprot.writeString(_iter1463); } } } @@ -111351,13 +112444,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1456 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1456.size); - String _elem1457; - for (int _i1458 = 0; _i1458 < _list1456.size; ++_i1458) + org.apache.thrift.protocol.TList _list1464 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1464.size); + String _elem1465; + for (int _i1466 = 0; _i1466 < _list1464.size; ++_i1466) { - _elem1457 = iprot.readString(); - struct.part_vals.add(_elem1457); + _elem1465 = iprot.readString(); + struct.part_vals.add(_elem1465); } } struct.setPart_valsIsSet(true); @@ -111368,13 +112461,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list1459 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1459.size); - String _elem1460; - for (int _i1461 = 0; _i1461 < _list1459.size; ++_i1461) + org.apache.thrift.protocol.TList _list1467 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1467.size); + String _elem1468; + for (int _i1469 = 0; _i1469 < _list1467.size; ++_i1469) { - _elem1460 = iprot.readString(); - struct.group_names.add(_elem1460); + _elem1468 = iprot.readString(); + struct.group_names.add(_elem1468); } } struct.setGroup_namesIsSet(true); @@ -114143,14 +115236,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 _list1462 = iprot.readListBegin(); - struct.success = new ArrayList(_list1462.size); - Partition _elem1463; - for (int _i1464 = 0; _i1464 < _list1462.size; ++_i1464) + org.apache.thrift.protocol.TList _list1470 = iprot.readListBegin(); + struct.success = new ArrayList(_list1470.size); + Partition _elem1471; + for (int _i1472 = 0; _i1472 < _list1470.size; ++_i1472) { - _elem1463 = new Partition(); - _elem1463.read(iprot); - struct.success.add(_elem1463); + _elem1471 = new Partition(); + _elem1471.read(iprot); + struct.success.add(_elem1471); } iprot.readListEnd(); } @@ -114194,9 +115287,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 _iter1465 : struct.success) + for (Partition _iter1473 : struct.success) { - _iter1465.write(oprot); + _iter1473.write(oprot); } oprot.writeListEnd(); } @@ -114243,9 +115336,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1466 : struct.success) + for (Partition _iter1474 : struct.success) { - _iter1466.write(oprot); + _iter1474.write(oprot); } } } @@ -114263,14 +115356,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 _list1467 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1467.size); - Partition _elem1468; - for (int _i1469 = 0; _i1469 < _list1467.size; ++_i1469) + org.apache.thrift.protocol.TList _list1475 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1475.size); + Partition _elem1476; + for (int _i1477 = 0; _i1477 < _list1475.size; ++_i1477) { - _elem1468 = new Partition(); - _elem1468.read(iprot); - struct.success.add(_elem1468); + _elem1476 = new Partition(); + _elem1476.read(iprot); + struct.success.add(_elem1476); } } struct.setSuccessIsSet(true); @@ -114960,13 +116053,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 _list1470 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1470.size); - String _elem1471; - for (int _i1472 = 0; _i1472 < _list1470.size; ++_i1472) + org.apache.thrift.protocol.TList _list1478 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1478.size); + String _elem1479; + for (int _i1480 = 0; _i1480 < _list1478.size; ++_i1480) { - _elem1471 = iprot.readString(); - struct.group_names.add(_elem1471); + _elem1479 = iprot.readString(); + struct.group_names.add(_elem1479); } iprot.readListEnd(); } @@ -115010,9 +116103,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 _iter1473 : struct.group_names) + for (String _iter1481 : struct.group_names) { - oprot.writeString(_iter1473); + oprot.writeString(_iter1481); } oprot.writeListEnd(); } @@ -115067,9 +116160,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 _iter1474 : struct.group_names) + for (String _iter1482 : struct.group_names) { - oprot.writeString(_iter1474); + oprot.writeString(_iter1482); } } } @@ -115097,13 +116190,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list1475 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1475.size); - String _elem1476; - for (int _i1477 = 0; _i1477 < _list1475.size; ++_i1477) + org.apache.thrift.protocol.TList _list1483 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1483.size); + String _elem1484; + for (int _i1485 = 0; _i1485 < _list1483.size; ++_i1485) { - _elem1476 = iprot.readString(); - struct.group_names.add(_elem1476); + _elem1484 = iprot.readString(); + struct.group_names.add(_elem1484); } } struct.setGroup_namesIsSet(true); @@ -115590,14 +116683,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 _list1478 = iprot.readListBegin(); - struct.success = new ArrayList(_list1478.size); - Partition _elem1479; - for (int _i1480 = 0; _i1480 < _list1478.size; ++_i1480) + org.apache.thrift.protocol.TList _list1486 = iprot.readListBegin(); + struct.success = new ArrayList(_list1486.size); + Partition _elem1487; + for (int _i1488 = 0; _i1488 < _list1486.size; ++_i1488) { - _elem1479 = new Partition(); - _elem1479.read(iprot); - struct.success.add(_elem1479); + _elem1487 = new Partition(); + _elem1487.read(iprot); + struct.success.add(_elem1487); } iprot.readListEnd(); } @@ -115641,9 +116734,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 _iter1481 : struct.success) + for (Partition _iter1489 : struct.success) { - _iter1481.write(oprot); + _iter1489.write(oprot); } oprot.writeListEnd(); } @@ -115690,9 +116783,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1482 : struct.success) + for (Partition _iter1490 : struct.success) { - _iter1482.write(oprot); + _iter1490.write(oprot); } } } @@ -115710,14 +116803,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 _list1483 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1483.size); - Partition _elem1484; - for (int _i1485 = 0; _i1485 < _list1483.size; ++_i1485) + org.apache.thrift.protocol.TList _list1491 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1491.size); + Partition _elem1492; + for (int _i1493 = 0; _i1493 < _list1491.size; ++_i1493) { - _elem1484 = new Partition(); - _elem1484.read(iprot); - struct.success.add(_elem1484); + _elem1492 = new Partition(); + _elem1492.read(iprot); + struct.success.add(_elem1492); } } struct.setSuccessIsSet(true); @@ -116780,14 +117873,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 _list1486 = iprot.readListBegin(); - struct.success = new ArrayList(_list1486.size); - PartitionSpec _elem1487; - for (int _i1488 = 0; _i1488 < _list1486.size; ++_i1488) + org.apache.thrift.protocol.TList _list1494 = iprot.readListBegin(); + struct.success = new ArrayList(_list1494.size); + PartitionSpec _elem1495; + for (int _i1496 = 0; _i1496 < _list1494.size; ++_i1496) { - _elem1487 = new PartitionSpec(); - _elem1487.read(iprot); - struct.success.add(_elem1487); + _elem1495 = new PartitionSpec(); + _elem1495.read(iprot); + struct.success.add(_elem1495); } iprot.readListEnd(); } @@ -116831,9 +117924,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 _iter1489 : struct.success) + for (PartitionSpec _iter1497 : struct.success) { - _iter1489.write(oprot); + _iter1497.write(oprot); } oprot.writeListEnd(); } @@ -116880,9 +117973,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspe if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (PartitionSpec _iter1490 : struct.success) + for (PartitionSpec _iter1498 : struct.success) { - _iter1490.write(oprot); + _iter1498.write(oprot); } } } @@ -116900,14 +117993,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 _list1491 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1491.size); - PartitionSpec _elem1492; - for (int _i1493 = 0; _i1493 < _list1491.size; ++_i1493) + org.apache.thrift.protocol.TList _list1499 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1499.size); + PartitionSpec _elem1500; + for (int _i1501 = 0; _i1501 < _list1499.size; ++_i1501) { - _elem1492 = new PartitionSpec(); - _elem1492.read(iprot); - struct.success.add(_elem1492); + _elem1500 = new PartitionSpec(); + _elem1500.read(iprot); + struct.success.add(_elem1500); } } struct.setSuccessIsSet(true); @@ -117967,13 +119060,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 _list1494 = iprot.readListBegin(); - struct.success = new ArrayList(_list1494.size); - String _elem1495; - for (int _i1496 = 0; _i1496 < _list1494.size; ++_i1496) + org.apache.thrift.protocol.TList _list1502 = iprot.readListBegin(); + struct.success = new ArrayList(_list1502.size); + String _elem1503; + for (int _i1504 = 0; _i1504 < _list1502.size; ++_i1504) { - _elem1495 = iprot.readString(); - struct.success.add(_elem1495); + _elem1503 = iprot.readString(); + struct.success.add(_elem1503); } iprot.readListEnd(); } @@ -118017,9 +119110,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 _iter1497 : struct.success) + for (String _iter1505 : struct.success) { - oprot.writeString(_iter1497); + oprot.writeString(_iter1505); } oprot.writeListEnd(); } @@ -118066,9 +119159,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1498 : struct.success) + for (String _iter1506 : struct.success) { - oprot.writeString(_iter1498); + oprot.writeString(_iter1506); } } } @@ -118086,13 +119179,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 _list1499 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1499.size); - String _elem1500; - for (int _i1501 = 0; _i1501 < _list1499.size; ++_i1501) + org.apache.thrift.protocol.TList _list1507 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1507.size); + String _elem1508; + for (int _i1509 = 0; _i1509 < _list1507.size; ++_i1509) { - _elem1500 = iprot.readString(); - struct.success.add(_elem1500); + _elem1508 = iprot.readString(); + struct.success.add(_elem1508); } } struct.setSuccessIsSet(true); @@ -119623,13 +120716,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 _list1502 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1502.size); - String _elem1503; - for (int _i1504 = 0; _i1504 < _list1502.size; ++_i1504) + org.apache.thrift.protocol.TList _list1510 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1510.size); + String _elem1511; + for (int _i1512 = 0; _i1512 < _list1510.size; ++_i1512) { - _elem1503 = iprot.readString(); - struct.part_vals.add(_elem1503); + _elem1511 = iprot.readString(); + struct.part_vals.add(_elem1511); } iprot.readListEnd(); } @@ -119673,9 +120766,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 _iter1505 : struct.part_vals) + for (String _iter1513 : struct.part_vals) { - oprot.writeString(_iter1505); + oprot.writeString(_iter1513); } oprot.writeListEnd(); } @@ -119724,9 +120817,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 _iter1506 : struct.part_vals) + for (String _iter1514 : struct.part_vals) { - oprot.writeString(_iter1506); + oprot.writeString(_iter1514); } } } @@ -119749,13 +120842,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1507 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1507.size); - String _elem1508; - for (int _i1509 = 0; _i1509 < _list1507.size; ++_i1509) + org.apache.thrift.protocol.TList _list1515 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1515.size); + String _elem1516; + for (int _i1517 = 0; _i1517 < _list1515.size; ++_i1517) { - _elem1508 = iprot.readString(); - struct.part_vals.add(_elem1508); + _elem1516 = iprot.readString(); + struct.part_vals.add(_elem1516); } } struct.setPart_valsIsSet(true); @@ -120246,14 +121339,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 _list1510 = iprot.readListBegin(); - struct.success = new ArrayList(_list1510.size); - Partition _elem1511; - for (int _i1512 = 0; _i1512 < _list1510.size; ++_i1512) + org.apache.thrift.protocol.TList _list1518 = iprot.readListBegin(); + struct.success = new ArrayList(_list1518.size); + Partition _elem1519; + for (int _i1520 = 0; _i1520 < _list1518.size; ++_i1520) { - _elem1511 = new Partition(); - _elem1511.read(iprot); - struct.success.add(_elem1511); + _elem1519 = new Partition(); + _elem1519.read(iprot); + struct.success.add(_elem1519); } iprot.readListEnd(); } @@ -120297,9 +121390,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 _iter1513 : struct.success) + for (Partition _iter1521 : struct.success) { - _iter1513.write(oprot); + _iter1521.write(oprot); } oprot.writeListEnd(); } @@ -120346,9 +121439,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1514 : struct.success) + for (Partition _iter1522 : struct.success) { - _iter1514.write(oprot); + _iter1522.write(oprot); } } } @@ -120366,14 +121459,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 _list1515 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1515.size); - Partition _elem1516; - for (int _i1517 = 0; _i1517 < _list1515.size; ++_i1517) + org.apache.thrift.protocol.TList _list1523 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1523.size); + Partition _elem1524; + for (int _i1525 = 0; _i1525 < _list1523.size; ++_i1525) { - _elem1516 = new Partition(); - _elem1516.read(iprot); - struct.success.add(_elem1516); + _elem1524 = new Partition(); + _elem1524.read(iprot); + struct.success.add(_elem1524); } } struct.setSuccessIsSet(true); @@ -121145,13 +122238,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 _list1518 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1518.size); - String _elem1519; - for (int _i1520 = 0; _i1520 < _list1518.size; ++_i1520) + org.apache.thrift.protocol.TList _list1526 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1526.size); + String _elem1527; + for (int _i1528 = 0; _i1528 < _list1526.size; ++_i1528) { - _elem1519 = iprot.readString(); - struct.part_vals.add(_elem1519); + _elem1527 = iprot.readString(); + struct.part_vals.add(_elem1527); } iprot.readListEnd(); } @@ -121179,13 +122272,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 _list1521 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1521.size); - String _elem1522; - for (int _i1523 = 0; _i1523 < _list1521.size; ++_i1523) + org.apache.thrift.protocol.TList _list1529 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1529.size); + String _elem1530; + for (int _i1531 = 0; _i1531 < _list1529.size; ++_i1531) { - _elem1522 = iprot.readString(); - struct.group_names.add(_elem1522); + _elem1530 = iprot.readString(); + struct.group_names.add(_elem1530); } iprot.readListEnd(); } @@ -121221,9 +122314,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 _iter1524 : struct.part_vals) + for (String _iter1532 : struct.part_vals) { - oprot.writeString(_iter1524); + oprot.writeString(_iter1532); } oprot.writeListEnd(); } @@ -121241,9 +122334,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 _iter1525 : struct.group_names) + for (String _iter1533 : struct.group_names) { - oprot.writeString(_iter1525); + oprot.writeString(_iter1533); } oprot.writeListEnd(); } @@ -121295,9 +122388,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 _iter1526 : struct.part_vals) + for (String _iter1534 : struct.part_vals) { - oprot.writeString(_iter1526); + oprot.writeString(_iter1534); } } } @@ -121310,9 +122403,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 _iter1527 : struct.group_names) + for (String _iter1535 : struct.group_names) { - oprot.writeString(_iter1527); + oprot.writeString(_iter1535); } } } @@ -121332,13 +122425,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1528 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1528.size); - String _elem1529; - for (int _i1530 = 0; _i1530 < _list1528.size; ++_i1530) + org.apache.thrift.protocol.TList _list1536 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1536.size); + String _elem1537; + for (int _i1538 = 0; _i1538 < _list1536.size; ++_i1538) { - _elem1529 = iprot.readString(); - struct.part_vals.add(_elem1529); + _elem1537 = iprot.readString(); + struct.part_vals.add(_elem1537); } } struct.setPart_valsIsSet(true); @@ -121353,13 +122446,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(5)) { { - org.apache.thrift.protocol.TList _list1531 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1531.size); - String _elem1532; - for (int _i1533 = 0; _i1533 < _list1531.size; ++_i1533) + org.apache.thrift.protocol.TList _list1539 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1539.size); + String _elem1540; + for (int _i1541 = 0; _i1541 < _list1539.size; ++_i1541) { - _elem1532 = iprot.readString(); - struct.group_names.add(_elem1532); + _elem1540 = iprot.readString(); + struct.group_names.add(_elem1540); } } struct.setGroup_namesIsSet(true); @@ -121846,14 +122939,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 _list1534 = iprot.readListBegin(); - struct.success = new ArrayList(_list1534.size); - Partition _elem1535; - for (int _i1536 = 0; _i1536 < _list1534.size; ++_i1536) + org.apache.thrift.protocol.TList _list1542 = iprot.readListBegin(); + struct.success = new ArrayList(_list1542.size); + Partition _elem1543; + for (int _i1544 = 0; _i1544 < _list1542.size; ++_i1544) { - _elem1535 = new Partition(); - _elem1535.read(iprot); - struct.success.add(_elem1535); + _elem1543 = new Partition(); + _elem1543.read(iprot); + struct.success.add(_elem1543); } iprot.readListEnd(); } @@ -121897,9 +122990,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 _iter1537 : struct.success) + for (Partition _iter1545 : struct.success) { - _iter1537.write(oprot); + _iter1545.write(oprot); } oprot.writeListEnd(); } @@ -121946,9 +123039,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1538 : struct.success) + for (Partition _iter1546 : struct.success) { - _iter1538.write(oprot); + _iter1546.write(oprot); } } } @@ -121966,14 +123059,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 _list1539 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1539.size); - Partition _elem1540; - for (int _i1541 = 0; _i1541 < _list1539.size; ++_i1541) + org.apache.thrift.protocol.TList _list1547 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1547.size); + Partition _elem1548; + for (int _i1549 = 0; _i1549 < _list1547.size; ++_i1549) { - _elem1540 = new Partition(); - _elem1540.read(iprot); - struct.success.add(_elem1540); + _elem1548 = new Partition(); + _elem1548.read(iprot); + struct.success.add(_elem1548); } } struct.setSuccessIsSet(true); @@ -122566,13 +123659,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 _list1542 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1542.size); - String _elem1543; - for (int _i1544 = 0; _i1544 < _list1542.size; ++_i1544) + org.apache.thrift.protocol.TList _list1550 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1550.size); + String _elem1551; + for (int _i1552 = 0; _i1552 < _list1550.size; ++_i1552) { - _elem1543 = iprot.readString(); - struct.part_vals.add(_elem1543); + _elem1551 = iprot.readString(); + struct.part_vals.add(_elem1551); } iprot.readListEnd(); } @@ -122616,9 +123709,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 _iter1545 : struct.part_vals) + for (String _iter1553 : struct.part_vals) { - oprot.writeString(_iter1545); + oprot.writeString(_iter1553); } oprot.writeListEnd(); } @@ -122667,9 +123760,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 _iter1546 : struct.part_vals) + for (String _iter1554 : struct.part_vals) { - oprot.writeString(_iter1546); + oprot.writeString(_iter1554); } } } @@ -122692,13 +123785,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1547 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1547.size); - String _elem1548; - for (int _i1549 = 0; _i1549 < _list1547.size; ++_i1549) + org.apache.thrift.protocol.TList _list1555 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1555.size); + String _elem1556; + for (int _i1557 = 0; _i1557 < _list1555.size; ++_i1557) { - _elem1548 = iprot.readString(); - struct.part_vals.add(_elem1548); + _elem1556 = iprot.readString(); + struct.part_vals.add(_elem1556); } } struct.setPart_valsIsSet(true); @@ -123186,13 +124279,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 _list1550 = iprot.readListBegin(); - struct.success = new ArrayList(_list1550.size); - String _elem1551; - for (int _i1552 = 0; _i1552 < _list1550.size; ++_i1552) + org.apache.thrift.protocol.TList _list1558 = iprot.readListBegin(); + struct.success = new ArrayList(_list1558.size); + String _elem1559; + for (int _i1560 = 0; _i1560 < _list1558.size; ++_i1560) { - _elem1551 = iprot.readString(); - struct.success.add(_elem1551); + _elem1559 = iprot.readString(); + struct.success.add(_elem1559); } iprot.readListEnd(); } @@ -123236,9 +124329,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 _iter1553 : struct.success) + for (String _iter1561 : struct.success) { - oprot.writeString(_iter1553); + oprot.writeString(_iter1561); } oprot.writeListEnd(); } @@ -123285,9 +124378,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1554 : struct.success) + for (String _iter1562 : struct.success) { - oprot.writeString(_iter1554); + oprot.writeString(_iter1562); } } } @@ -123305,13 +124398,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 _list1555 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1555.size); - String _elem1556; - for (int _i1557 = 0; _i1557 < _list1555.size; ++_i1557) + org.apache.thrift.protocol.TList _list1563 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1563.size); + String _elem1564; + for (int _i1565 = 0; _i1565 < _list1563.size; ++_i1565) { - _elem1556 = iprot.readString(); - struct.success.add(_elem1556); + _elem1564 = iprot.readString(); + struct.success.add(_elem1564); } } struct.setSuccessIsSet(true); @@ -124478,14 +125571,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 _list1558 = iprot.readListBegin(); - struct.success = new ArrayList(_list1558.size); - Partition _elem1559; - for (int _i1560 = 0; _i1560 < _list1558.size; ++_i1560) + org.apache.thrift.protocol.TList _list1566 = iprot.readListBegin(); + struct.success = new ArrayList(_list1566.size); + Partition _elem1567; + for (int _i1568 = 0; _i1568 < _list1566.size; ++_i1568) { - _elem1559 = new Partition(); - _elem1559.read(iprot); - struct.success.add(_elem1559); + _elem1567 = new Partition(); + _elem1567.read(iprot); + struct.success.add(_elem1567); } iprot.readListEnd(); } @@ -124529,9 +125622,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 _iter1561 : struct.success) + for (Partition _iter1569 : struct.success) { - _iter1561.write(oprot); + _iter1569.write(oprot); } oprot.writeListEnd(); } @@ -124578,9 +125671,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_f if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1562 : struct.success) + for (Partition _iter1570 : struct.success) { - _iter1562.write(oprot); + _iter1570.write(oprot); } } } @@ -124598,14 +125691,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 _list1563 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1563.size); - Partition _elem1564; - for (int _i1565 = 0; _i1565 < _list1563.size; ++_i1565) + org.apache.thrift.protocol.TList _list1571 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1571.size); + Partition _elem1572; + for (int _i1573 = 0; _i1573 < _list1571.size; ++_i1573) { - _elem1564 = new Partition(); - _elem1564.read(iprot); - struct.success.add(_elem1564); + _elem1572 = new Partition(); + _elem1572.read(iprot); + struct.success.add(_elem1572); } } struct.setSuccessIsSet(true); @@ -125772,14 +126865,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 _list1566 = iprot.readListBegin(); - struct.success = new ArrayList(_list1566.size); - PartitionSpec _elem1567; - for (int _i1568 = 0; _i1568 < _list1566.size; ++_i1568) + org.apache.thrift.protocol.TList _list1574 = iprot.readListBegin(); + struct.success = new ArrayList(_list1574.size); + PartitionSpec _elem1575; + for (int _i1576 = 0; _i1576 < _list1574.size; ++_i1576) { - _elem1567 = new PartitionSpec(); - _elem1567.read(iprot); - struct.success.add(_elem1567); + _elem1575 = new PartitionSpec(); + _elem1575.read(iprot); + struct.success.add(_elem1575); } iprot.readListEnd(); } @@ -125823,9 +126916,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 _iter1569 : struct.success) + for (PartitionSpec _iter1577 : struct.success) { - _iter1569.write(oprot); + _iter1577.write(oprot); } oprot.writeListEnd(); } @@ -125872,9 +126965,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 _iter1570 : struct.success) + for (PartitionSpec _iter1578 : struct.success) { - _iter1570.write(oprot); + _iter1578.write(oprot); } } } @@ -125892,14 +126985,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 _list1571 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1571.size); - PartitionSpec _elem1572; - for (int _i1573 = 0; _i1573 < _list1571.size; ++_i1573) + org.apache.thrift.protocol.TList _list1579 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1579.size); + PartitionSpec _elem1580; + for (int _i1581 = 0; _i1581 < _list1579.size; ++_i1581) { - _elem1572 = new PartitionSpec(); - _elem1572.read(iprot); - struct.success.add(_elem1572); + _elem1580 = new PartitionSpec(); + _elem1580.read(iprot); + struct.success.add(_elem1580); } } struct.setSuccessIsSet(true); @@ -128483,13 +129576,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 _list1574 = iprot.readListBegin(); - struct.names = new ArrayList(_list1574.size); - String _elem1575; - for (int _i1576 = 0; _i1576 < _list1574.size; ++_i1576) + org.apache.thrift.protocol.TList _list1582 = iprot.readListBegin(); + struct.names = new ArrayList(_list1582.size); + String _elem1583; + for (int _i1584 = 0; _i1584 < _list1582.size; ++_i1584) { - _elem1575 = iprot.readString(); - struct.names.add(_elem1575); + _elem1583 = iprot.readString(); + struct.names.add(_elem1583); } iprot.readListEnd(); } @@ -128525,9 +129618,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 _iter1577 : struct.names) + for (String _iter1585 : struct.names) { - oprot.writeString(_iter1577); + oprot.writeString(_iter1585); } oprot.writeListEnd(); } @@ -128570,9 +129663,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetNames()) { { oprot.writeI32(struct.names.size()); - for (String _iter1578 : struct.names) + for (String _iter1586 : struct.names) { - oprot.writeString(_iter1578); + oprot.writeString(_iter1586); } } } @@ -128592,13 +129685,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_na } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1579 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.names = new ArrayList(_list1579.size); - String _elem1580; - for (int _i1581 = 0; _i1581 < _list1579.size; ++_i1581) + org.apache.thrift.protocol.TList _list1587 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.names = new ArrayList(_list1587.size); + String _elem1588; + for (int _i1589 = 0; _i1589 < _list1587.size; ++_i1589) { - _elem1580 = iprot.readString(); - struct.names.add(_elem1580); + _elem1588 = iprot.readString(); + struct.names.add(_elem1588); } } struct.setNamesIsSet(true); @@ -129085,14 +130178,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 _list1582 = iprot.readListBegin(); - struct.success = new ArrayList(_list1582.size); - Partition _elem1583; - for (int _i1584 = 0; _i1584 < _list1582.size; ++_i1584) + org.apache.thrift.protocol.TList _list1590 = iprot.readListBegin(); + struct.success = new ArrayList(_list1590.size); + Partition _elem1591; + for (int _i1592 = 0; _i1592 < _list1590.size; ++_i1592) { - _elem1583 = new Partition(); - _elem1583.read(iprot); - struct.success.add(_elem1583); + _elem1591 = new Partition(); + _elem1591.read(iprot); + struct.success.add(_elem1591); } iprot.readListEnd(); } @@ -129136,9 +130229,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 _iter1585 : struct.success) + for (Partition _iter1593 : struct.success) { - _iter1585.write(oprot); + _iter1593.write(oprot); } oprot.writeListEnd(); } @@ -129185,9 +130278,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1586 : struct.success) + for (Partition _iter1594 : struct.success) { - _iter1586.write(oprot); + _iter1594.write(oprot); } } } @@ -129205,14 +130298,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 _list1587 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1587.size); - Partition _elem1588; - for (int _i1589 = 0; _i1589 < _list1587.size; ++_i1589) + org.apache.thrift.protocol.TList _list1595 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1595.size); + Partition _elem1596; + for (int _i1597 = 0; _i1597 < _list1595.size; ++_i1597) { - _elem1588 = new Partition(); - _elem1588.read(iprot); - struct.success.add(_elem1588); + _elem1596 = new Partition(); + _elem1596.read(iprot); + struct.success.add(_elem1596); } } struct.setSuccessIsSet(true); @@ -131700,14 +132793,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 _list1590 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1590.size); - Partition _elem1591; - for (int _i1592 = 0; _i1592 < _list1590.size; ++_i1592) + org.apache.thrift.protocol.TList _list1598 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1598.size); + Partition _elem1599; + for (int _i1600 = 0; _i1600 < _list1598.size; ++_i1600) { - _elem1591 = new Partition(); - _elem1591.read(iprot); - struct.new_parts.add(_elem1591); + _elem1599 = new Partition(); + _elem1599.read(iprot); + struct.new_parts.add(_elem1599); } iprot.readListEnd(); } @@ -131743,9 +132836,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 _iter1593 : struct.new_parts) + for (Partition _iter1601 : struct.new_parts) { - _iter1593.write(oprot); + _iter1601.write(oprot); } oprot.writeListEnd(); } @@ -131788,9 +132881,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 _iter1594 : struct.new_parts) + for (Partition _iter1602 : struct.new_parts) { - _iter1594.write(oprot); + _iter1602.write(oprot); } } } @@ -131810,14 +132903,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1595 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1595.size); - Partition _elem1596; - for (int _i1597 = 0; _i1597 < _list1595.size; ++_i1597) + org.apache.thrift.protocol.TList _list1603 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1603.size); + Partition _elem1604; + for (int _i1605 = 0; _i1605 < _list1603.size; ++_i1605) { - _elem1596 = new Partition(); - _elem1596.read(iprot); - struct.new_parts.add(_elem1596); + _elem1604 = new Partition(); + _elem1604.read(iprot); + struct.new_parts.add(_elem1604); } } struct.setNew_partsIsSet(true); @@ -132870,14 +133963,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partitions_wi case 3: // NEW_PARTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1598 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1598.size); - Partition _elem1599; - for (int _i1600 = 0; _i1600 < _list1598.size; ++_i1600) + org.apache.thrift.protocol.TList _list1606 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1606.size); + Partition _elem1607; + for (int _i1608 = 0; _i1608 < _list1606.size; ++_i1608) { - _elem1599 = new Partition(); - _elem1599.read(iprot); - struct.new_parts.add(_elem1599); + _elem1607 = new Partition(); + _elem1607.read(iprot); + struct.new_parts.add(_elem1607); } iprot.readListEnd(); } @@ -132922,9 +134015,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partitions_w 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 _iter1601 : struct.new_parts) + for (Partition _iter1609 : struct.new_parts) { - _iter1601.write(oprot); + _iter1609.write(oprot); } oprot.writeListEnd(); } @@ -132975,9 +134068,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, alter_partitions_wi if (struct.isSetNew_parts()) { { oprot.writeI32(struct.new_parts.size()); - for (Partition _iter1602 : struct.new_parts) + for (Partition _iter1610 : struct.new_parts) { - _iter1602.write(oprot); + _iter1610.write(oprot); } } } @@ -133000,14 +134093,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_wit } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1603 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1603.size); - Partition _elem1604; - for (int _i1605 = 0; _i1605 < _list1603.size; ++_i1605) + org.apache.thrift.protocol.TList _list1611 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1611.size); + Partition _elem1612; + for (int _i1613 = 0; _i1613 < _list1611.size; ++_i1613) { - _elem1604 = new Partition(); - _elem1604.read(iprot); - struct.new_parts.add(_elem1604); + _elem1612 = new Partition(); + _elem1612.read(iprot); + struct.new_parts.add(_elem1612); } } struct.setNew_partsIsSet(true); @@ -136146,13 +137239,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 _list1606 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1606.size); - String _elem1607; - for (int _i1608 = 0; _i1608 < _list1606.size; ++_i1608) + org.apache.thrift.protocol.TList _list1614 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1614.size); + String _elem1615; + for (int _i1616 = 0; _i1616 < _list1614.size; ++_i1616) { - _elem1607 = iprot.readString(); - struct.part_vals.add(_elem1607); + _elem1615 = iprot.readString(); + struct.part_vals.add(_elem1615); } iprot.readListEnd(); } @@ -136197,9 +137290,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 _iter1609 : struct.part_vals) + for (String _iter1617 : struct.part_vals) { - oprot.writeString(_iter1609); + oprot.writeString(_iter1617); } oprot.writeListEnd(); } @@ -136250,9 +137343,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 _iter1610 : struct.part_vals) + for (String _iter1618 : struct.part_vals) { - oprot.writeString(_iter1610); + oprot.writeString(_iter1618); } } } @@ -136275,13 +137368,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, rename_partition_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1611 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1611.size); - String _elem1612; - for (int _i1613 = 0; _i1613 < _list1611.size; ++_i1613) + org.apache.thrift.protocol.TList _list1619 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1619.size); + String _elem1620; + for (int _i1621 = 0; _i1621 < _list1619.size; ++_i1621) { - _elem1612 = iprot.readString(); - struct.part_vals.add(_elem1612); + _elem1620 = iprot.readString(); + struct.part_vals.add(_elem1620); } } struct.setPart_valsIsSet(true); @@ -138093,13 +139186,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 _list1614 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1614.size); - String _elem1615; - for (int _i1616 = 0; _i1616 < _list1614.size; ++_i1616) + org.apache.thrift.protocol.TList _list1622 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1622.size); + String _elem1623; + for (int _i1624 = 0; _i1624 < _list1622.size; ++_i1624) { - _elem1615 = iprot.readString(); - struct.part_vals.add(_elem1615); + _elem1623 = iprot.readString(); + struct.part_vals.add(_elem1623); } iprot.readListEnd(); } @@ -138133,9 +139226,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 _iter1617 : struct.part_vals) + for (String _iter1625 : struct.part_vals) { - oprot.writeString(_iter1617); + oprot.writeString(_iter1625); } oprot.writeListEnd(); } @@ -138172,9 +139265,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 _iter1618 : struct.part_vals) + for (String _iter1626 : struct.part_vals) { - oprot.writeString(_iter1618); + oprot.writeString(_iter1626); } } } @@ -138189,13 +139282,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 _list1619 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1619.size); - String _elem1620; - for (int _i1621 = 0; _i1621 < _list1619.size; ++_i1621) + org.apache.thrift.protocol.TList _list1627 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1627.size); + String _elem1628; + for (int _i1629 = 0; _i1629 < _list1627.size; ++_i1629) { - _elem1620 = iprot.readString(); - struct.part_vals.add(_elem1620); + _elem1628 = iprot.readString(); + struct.part_vals.add(_elem1628); } } struct.setPart_valsIsSet(true); @@ -140350,13 +141443,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 _list1622 = iprot.readListBegin(); - struct.success = new ArrayList(_list1622.size); - String _elem1623; - for (int _i1624 = 0; _i1624 < _list1622.size; ++_i1624) + org.apache.thrift.protocol.TList _list1630 = iprot.readListBegin(); + struct.success = new ArrayList(_list1630.size); + String _elem1631; + for (int _i1632 = 0; _i1632 < _list1630.size; ++_i1632) { - _elem1623 = iprot.readString(); - struct.success.add(_elem1623); + _elem1631 = iprot.readString(); + struct.success.add(_elem1631); } iprot.readListEnd(); } @@ -140391,9 +141484,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 _iter1625 : struct.success) + for (String _iter1633 : struct.success) { - oprot.writeString(_iter1625); + oprot.writeString(_iter1633); } oprot.writeListEnd(); } @@ -140432,9 +141525,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_to_v if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1626 : struct.success) + for (String _iter1634 : struct.success) { - oprot.writeString(_iter1626); + oprot.writeString(_iter1634); } } } @@ -140449,13 +141542,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 _list1627 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1627.size); - String _elem1628; - for (int _i1629 = 0; _i1629 < _list1627.size; ++_i1629) + org.apache.thrift.protocol.TList _list1635 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1635.size); + String _elem1636; + for (int _i1637 = 0; _i1637 < _list1635.size; ++_i1637) { - _elem1628 = iprot.readString(); - struct.success.add(_elem1628); + _elem1636 = iprot.readString(); + struct.success.add(_elem1636); } } struct.setSuccessIsSet(true); @@ -141218,15 +142311,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 _map1630 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map1630.size); - String _key1631; - String _val1632; - for (int _i1633 = 0; _i1633 < _map1630.size; ++_i1633) + org.apache.thrift.protocol.TMap _map1638 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map1638.size); + String _key1639; + String _val1640; + for (int _i1641 = 0; _i1641 < _map1638.size; ++_i1641) { - _key1631 = iprot.readString(); - _val1632 = iprot.readString(); - struct.success.put(_key1631, _val1632); + _key1639 = iprot.readString(); + _val1640 = iprot.readString(); + struct.success.put(_key1639, _val1640); } iprot.readMapEnd(); } @@ -141261,10 +142354,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 _iter1634 : struct.success.entrySet()) + for (Map.Entry _iter1642 : struct.success.entrySet()) { - oprot.writeString(_iter1634.getKey()); - oprot.writeString(_iter1634.getValue()); + oprot.writeString(_iter1642.getKey()); + oprot.writeString(_iter1642.getValue()); } oprot.writeMapEnd(); } @@ -141303,10 +142396,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 _iter1635 : struct.success.entrySet()) + for (Map.Entry _iter1643 : struct.success.entrySet()) { - oprot.writeString(_iter1635.getKey()); - oprot.writeString(_iter1635.getValue()); + oprot.writeString(_iter1643.getKey()); + oprot.writeString(_iter1643.getValue()); } } } @@ -141321,15 +142414,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 _map1636 = 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*_map1636.size); - String _key1637; - String _val1638; - for (int _i1639 = 0; _i1639 < _map1636.size; ++_i1639) + org.apache.thrift.protocol.TMap _map1644 = 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*_map1644.size); + String _key1645; + String _val1646; + for (int _i1647 = 0; _i1647 < _map1644.size; ++_i1647) { - _key1637 = iprot.readString(); - _val1638 = iprot.readString(); - struct.success.put(_key1637, _val1638); + _key1645 = iprot.readString(); + _val1646 = iprot.readString(); + struct.success.put(_key1645, _val1646); } } struct.setSuccessIsSet(true); @@ -141924,15 +143017,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 _map1640 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map1640.size); - String _key1641; - String _val1642; - for (int _i1643 = 0; _i1643 < _map1640.size; ++_i1643) + org.apache.thrift.protocol.TMap _map1648 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map1648.size); + String _key1649; + String _val1650; + for (int _i1651 = 0; _i1651 < _map1648.size; ++_i1651) { - _key1641 = iprot.readString(); - _val1642 = iprot.readString(); - struct.part_vals.put(_key1641, _val1642); + _key1649 = iprot.readString(); + _val1650 = iprot.readString(); + struct.part_vals.put(_key1649, _val1650); } iprot.readMapEnd(); } @@ -141976,10 +143069,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 _iter1644 : struct.part_vals.entrySet()) + for (Map.Entry _iter1652 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1644.getKey()); - oprot.writeString(_iter1644.getValue()); + oprot.writeString(_iter1652.getKey()); + oprot.writeString(_iter1652.getValue()); } oprot.writeMapEnd(); } @@ -142030,10 +143123,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, markPartitionForEve if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter1645 : struct.part_vals.entrySet()) + for (Map.Entry _iter1653 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1645.getKey()); - oprot.writeString(_iter1645.getValue()); + oprot.writeString(_iter1653.getKey()); + oprot.writeString(_iter1653.getValue()); } } } @@ -142056,15 +143149,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, markPartitionForEven } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map1646 = 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*_map1646.size); - String _key1647; - String _val1648; - for (int _i1649 = 0; _i1649 < _map1646.size; ++_i1649) + org.apache.thrift.protocol.TMap _map1654 = 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*_map1654.size); + String _key1655; + String _val1656; + for (int _i1657 = 0; _i1657 < _map1654.size; ++_i1657) { - _key1647 = iprot.readString(); - _val1648 = iprot.readString(); - struct.part_vals.put(_key1647, _val1648); + _key1655 = iprot.readString(); + _val1656 = iprot.readString(); + struct.part_vals.put(_key1655, _val1656); } } struct.setPart_valsIsSet(true); @@ -143548,15 +144641,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 _map1650 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map1650.size); - String _key1651; - String _val1652; - for (int _i1653 = 0; _i1653 < _map1650.size; ++_i1653) + org.apache.thrift.protocol.TMap _map1658 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map1658.size); + String _key1659; + String _val1660; + for (int _i1661 = 0; _i1661 < _map1658.size; ++_i1661) { - _key1651 = iprot.readString(); - _val1652 = iprot.readString(); - struct.part_vals.put(_key1651, _val1652); + _key1659 = iprot.readString(); + _val1660 = iprot.readString(); + struct.part_vals.put(_key1659, _val1660); } iprot.readMapEnd(); } @@ -143600,10 +144693,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 _iter1654 : struct.part_vals.entrySet()) + for (Map.Entry _iter1662 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1654.getKey()); - oprot.writeString(_iter1654.getValue()); + oprot.writeString(_iter1662.getKey()); + oprot.writeString(_iter1662.getValue()); } oprot.writeMapEnd(); } @@ -143654,10 +144747,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFo if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter1655 : struct.part_vals.entrySet()) + for (Map.Entry _iter1663 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1655.getKey()); - oprot.writeString(_iter1655.getValue()); + oprot.writeString(_iter1663.getKey()); + oprot.writeString(_iter1663.getValue()); } } } @@ -143680,15 +144773,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFor } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map1656 = 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*_map1656.size); - String _key1657; - String _val1658; - for (int _i1659 = 0; _i1659 < _map1656.size; ++_i1659) + org.apache.thrift.protocol.TMap _map1664 = 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*_map1664.size); + String _key1665; + String _val1666; + for (int _i1667 = 0; _i1667 < _map1664.size; ++_i1667) { - _key1657 = iprot.readString(); - _val1658 = iprot.readString(); - struct.part_vals.put(_key1657, _val1658); + _key1665 = iprot.readString(); + _val1666 = iprot.readString(); + struct.part_vals.put(_key1665, _val1666); } } struct.setPart_valsIsSet(true); @@ -168552,13 +169645,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 _list1660 = iprot.readListBegin(); - struct.success = new ArrayList(_list1660.size); - String _elem1661; - for (int _i1662 = 0; _i1662 < _list1660.size; ++_i1662) + org.apache.thrift.protocol.TList _list1668 = iprot.readListBegin(); + struct.success = new ArrayList(_list1668.size); + String _elem1669; + for (int _i1670 = 0; _i1670 < _list1668.size; ++_i1670) { - _elem1661 = iprot.readString(); - struct.success.add(_elem1661); + _elem1669 = iprot.readString(); + struct.success.add(_elem1669); } iprot.readListEnd(); } @@ -168593,9 +169686,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 _iter1663 : struct.success) + for (String _iter1671 : struct.success) { - oprot.writeString(_iter1663); + oprot.writeString(_iter1671); } oprot.writeListEnd(); } @@ -168634,9 +169727,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_functions_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1664 : struct.success) + for (String _iter1672 : struct.success) { - oprot.writeString(_iter1664); + oprot.writeString(_iter1672); } } } @@ -168651,13 +169744,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 _list1665 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1665.size); - String _elem1666; - for (int _i1667 = 0; _i1667 < _list1665.size; ++_i1667) + org.apache.thrift.protocol.TList _list1673 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1673.size); + String _elem1674; + for (int _i1675 = 0; _i1675 < _list1673.size; ++_i1675) { - _elem1666 = iprot.readString(); - struct.success.add(_elem1666); + _elem1674 = iprot.readString(); + struct.success.add(_elem1674); } } struct.setSuccessIsSet(true); @@ -172712,13 +173805,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 _list1668 = iprot.readListBegin(); - struct.success = new ArrayList(_list1668.size); - String _elem1669; - for (int _i1670 = 0; _i1670 < _list1668.size; ++_i1670) + org.apache.thrift.protocol.TList _list1676 = iprot.readListBegin(); + struct.success = new ArrayList(_list1676.size); + String _elem1677; + for (int _i1678 = 0; _i1678 < _list1676.size; ++_i1678) { - _elem1669 = iprot.readString(); - struct.success.add(_elem1669); + _elem1677 = iprot.readString(); + struct.success.add(_elem1677); } iprot.readListEnd(); } @@ -172753,9 +173846,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 _iter1671 : struct.success) + for (String _iter1679 : struct.success) { - oprot.writeString(_iter1671); + oprot.writeString(_iter1679); } oprot.writeListEnd(); } @@ -172794,9 +173887,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_role_names_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1672 : struct.success) + for (String _iter1680 : struct.success) { - oprot.writeString(_iter1672); + oprot.writeString(_iter1680); } } } @@ -172811,13 +173904,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 _list1673 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1673.size); - String _elem1674; - for (int _i1675 = 0; _i1675 < _list1673.size; ++_i1675) + org.apache.thrift.protocol.TList _list1681 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1681.size); + String _elem1682; + for (int _i1683 = 0; _i1683 < _list1681.size; ++_i1683) { - _elem1674 = iprot.readString(); - struct.success.add(_elem1674); + _elem1682 = iprot.readString(); + struct.success.add(_elem1682); } } struct.setSuccessIsSet(true); @@ -176108,14 +177201,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 _list1676 = iprot.readListBegin(); - struct.success = new ArrayList(_list1676.size); - Role _elem1677; - for (int _i1678 = 0; _i1678 < _list1676.size; ++_i1678) + org.apache.thrift.protocol.TList _list1684 = iprot.readListBegin(); + struct.success = new ArrayList(_list1684.size); + Role _elem1685; + for (int _i1686 = 0; _i1686 < _list1684.size; ++_i1686) { - _elem1677 = new Role(); - _elem1677.read(iprot); - struct.success.add(_elem1677); + _elem1685 = new Role(); + _elem1685.read(iprot); + struct.success.add(_elem1685); } iprot.readListEnd(); } @@ -176150,9 +177243,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 _iter1679 : struct.success) + for (Role _iter1687 : struct.success) { - _iter1679.write(oprot); + _iter1687.write(oprot); } oprot.writeListEnd(); } @@ -176191,9 +177284,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_roles_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Role _iter1680 : struct.success) + for (Role _iter1688 : struct.success) { - _iter1680.write(oprot); + _iter1688.write(oprot); } } } @@ -176208,14 +177301,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 _list1681 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1681.size); - Role _elem1682; - for (int _i1683 = 0; _i1683 < _list1681.size; ++_i1683) + org.apache.thrift.protocol.TList _list1689 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1689.size); + Role _elem1690; + for (int _i1691 = 0; _i1691 < _list1689.size; ++_i1691) { - _elem1682 = new Role(); - _elem1682.read(iprot); - struct.success.add(_elem1682); + _elem1690 = new Role(); + _elem1690.read(iprot); + struct.success.add(_elem1690); } } struct.setSuccessIsSet(true); @@ -179220,13 +180313,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 _list1684 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1684.size); - String _elem1685; - for (int _i1686 = 0; _i1686 < _list1684.size; ++_i1686) + org.apache.thrift.protocol.TList _list1692 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1692.size); + String _elem1693; + for (int _i1694 = 0; _i1694 < _list1692.size; ++_i1694) { - _elem1685 = iprot.readString(); - struct.group_names.add(_elem1685); + _elem1693 = iprot.readString(); + struct.group_names.add(_elem1693); } iprot.readListEnd(); } @@ -179262,9 +180355,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 _iter1687 : struct.group_names) + for (String _iter1695 : struct.group_names) { - oprot.writeString(_iter1687); + oprot.writeString(_iter1695); } oprot.writeListEnd(); } @@ -179307,9 +180400,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 _iter1688 : struct.group_names) + for (String _iter1696 : struct.group_names) { - oprot.writeString(_iter1688); + oprot.writeString(_iter1696); } } } @@ -179330,13 +180423,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_privilege_set_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1689 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1689.size); - String _elem1690; - for (int _i1691 = 0; _i1691 < _list1689.size; ++_i1691) + org.apache.thrift.protocol.TList _list1697 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1697.size); + String _elem1698; + for (int _i1699 = 0; _i1699 < _list1697.size; ++_i1699) { - _elem1690 = iprot.readString(); - struct.group_names.add(_elem1690); + _elem1698 = iprot.readString(); + struct.group_names.add(_elem1698); } } struct.setGroup_namesIsSet(true); @@ -180794,14 +181887,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 _list1692 = iprot.readListBegin(); - struct.success = new ArrayList(_list1692.size); - HiveObjectPrivilege _elem1693; - for (int _i1694 = 0; _i1694 < _list1692.size; ++_i1694) + org.apache.thrift.protocol.TList _list1700 = iprot.readListBegin(); + struct.success = new ArrayList(_list1700.size); + HiveObjectPrivilege _elem1701; + for (int _i1702 = 0; _i1702 < _list1700.size; ++_i1702) { - _elem1693 = new HiveObjectPrivilege(); - _elem1693.read(iprot); - struct.success.add(_elem1693); + _elem1701 = new HiveObjectPrivilege(); + _elem1701.read(iprot); + struct.success.add(_elem1701); } iprot.readListEnd(); } @@ -180836,9 +181929,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 _iter1695 : struct.success) + for (HiveObjectPrivilege _iter1703 : struct.success) { - _iter1695.write(oprot); + _iter1703.write(oprot); } oprot.writeListEnd(); } @@ -180877,9 +181970,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_privileges_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (HiveObjectPrivilege _iter1696 : struct.success) + for (HiveObjectPrivilege _iter1704 : struct.success) { - _iter1696.write(oprot); + _iter1704.write(oprot); } } } @@ -180894,14 +181987,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 _list1697 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1697.size); - HiveObjectPrivilege _elem1698; - for (int _i1699 = 0; _i1699 < _list1697.size; ++_i1699) + org.apache.thrift.protocol.TList _list1705 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1705.size); + HiveObjectPrivilege _elem1706; + for (int _i1707 = 0; _i1707 < _list1705.size; ++_i1707) { - _elem1698 = new HiveObjectPrivilege(); - _elem1698.read(iprot); - struct.success.add(_elem1698); + _elem1706 = new HiveObjectPrivilege(); + _elem1706.read(iprot); + struct.success.add(_elem1706); } } struct.setSuccessIsSet(true); @@ -184848,13 +185941,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 _list1700 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1700.size); - String _elem1701; - for (int _i1702 = 0; _i1702 < _list1700.size; ++_i1702) + org.apache.thrift.protocol.TList _list1708 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1708.size); + String _elem1709; + for (int _i1710 = 0; _i1710 < _list1708.size; ++_i1710) { - _elem1701 = iprot.readString(); - struct.group_names.add(_elem1701); + _elem1709 = iprot.readString(); + struct.group_names.add(_elem1709); } iprot.readListEnd(); } @@ -184885,9 +185978,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 _iter1703 : struct.group_names) + for (String _iter1711 : struct.group_names) { - oprot.writeString(_iter1703); + oprot.writeString(_iter1711); } oprot.writeListEnd(); } @@ -184924,9 +186017,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 _iter1704 : struct.group_names) + for (String _iter1712 : struct.group_names) { - oprot.writeString(_iter1704); + oprot.writeString(_iter1712); } } } @@ -184942,13 +186035,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_ugi_args struct) } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list1705 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1705.size); - String _elem1706; - for (int _i1707 = 0; _i1707 < _list1705.size; ++_i1707) + org.apache.thrift.protocol.TList _list1713 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1713.size); + String _elem1714; + for (int _i1715 = 0; _i1715 < _list1713.size; ++_i1715) { - _elem1706 = iprot.readString(); - struct.group_names.add(_elem1706); + _elem1714 = iprot.readString(); + struct.group_names.add(_elem1714); } } struct.setGroup_namesIsSet(true); @@ -185351,13 +186444,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 _list1708 = iprot.readListBegin(); - struct.success = new ArrayList(_list1708.size); - String _elem1709; - for (int _i1710 = 0; _i1710 < _list1708.size; ++_i1710) + org.apache.thrift.protocol.TList _list1716 = iprot.readListBegin(); + struct.success = new ArrayList(_list1716.size); + String _elem1717; + for (int _i1718 = 0; _i1718 < _list1716.size; ++_i1718) { - _elem1709 = iprot.readString(); - struct.success.add(_elem1709); + _elem1717 = iprot.readString(); + struct.success.add(_elem1717); } iprot.readListEnd(); } @@ -185392,9 +186485,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 _iter1711 : struct.success) + for (String _iter1719 : struct.success) { - oprot.writeString(_iter1711); + oprot.writeString(_iter1719); } oprot.writeListEnd(); } @@ -185433,9 +186526,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, set_ugi_result stru if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1712 : struct.success) + for (String _iter1720 : struct.success) { - oprot.writeString(_iter1712); + oprot.writeString(_iter1720); } } } @@ -185450,13 +186543,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 _list1713 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1713.size); - String _elem1714; - for (int _i1715 = 0; _i1715 < _list1713.size; ++_i1715) + org.apache.thrift.protocol.TList _list1721 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1721.size); + String _elem1722; + for (int _i1723 = 0; _i1723 < _list1721.size; ++_i1723) { - _elem1714 = iprot.readString(); - struct.success.add(_elem1714); + _elem1722 = iprot.readString(); + struct.success.add(_elem1722); } } struct.setSuccessIsSet(true); @@ -190747,13 +191840,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_token_ident case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1716 = iprot.readListBegin(); - struct.success = new ArrayList(_list1716.size); - String _elem1717; - for (int _i1718 = 0; _i1718 < _list1716.size; ++_i1718) + org.apache.thrift.protocol.TList _list1724 = iprot.readListBegin(); + struct.success = new ArrayList(_list1724.size); + String _elem1725; + for (int _i1726 = 0; _i1726 < _list1724.size; ++_i1726) { - _elem1717 = iprot.readString(); - struct.success.add(_elem1717); + _elem1725 = iprot.readString(); + struct.success.add(_elem1725); } iprot.readListEnd(); } @@ -190779,9 +191872,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_token_iden oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1719 : struct.success) + for (String _iter1727 : struct.success) { - oprot.writeString(_iter1719); + oprot.writeString(_iter1727); } oprot.writeListEnd(); } @@ -190812,9 +191905,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_token_ident if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1720 : struct.success) + for (String _iter1728 : struct.success) { - oprot.writeString(_iter1720); + oprot.writeString(_iter1728); } } } @@ -190826,13 +191919,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_token_identi BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1721 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1721.size); - String _elem1722; - for (int _i1723 = 0; _i1723 < _list1721.size; ++_i1723) + org.apache.thrift.protocol.TList _list1729 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1729.size); + String _elem1730; + for (int _i1731 = 0; _i1731 < _list1729.size; ++_i1731) { - _elem1722 = iprot.readString(); - struct.success.add(_elem1722); + _elem1730 = iprot.readString(); + struct.success.add(_elem1730); } } struct.setSuccessIsSet(true); @@ -193862,13 +194955,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_master_keys_res case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1724 = iprot.readListBegin(); - struct.success = new ArrayList(_list1724.size); - String _elem1725; - for (int _i1726 = 0; _i1726 < _list1724.size; ++_i1726) + org.apache.thrift.protocol.TList _list1732 = iprot.readListBegin(); + struct.success = new ArrayList(_list1732.size); + String _elem1733; + for (int _i1734 = 0; _i1734 < _list1732.size; ++_i1734) { - _elem1725 = iprot.readString(); - struct.success.add(_elem1725); + _elem1733 = iprot.readString(); + struct.success.add(_elem1733); } iprot.readListEnd(); } @@ -193894,9 +194987,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_master_keys_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 _iter1727 : struct.success) + for (String _iter1735 : struct.success) { - oprot.writeString(_iter1727); + oprot.writeString(_iter1735); } oprot.writeListEnd(); } @@ -193927,9 +195020,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_master_keys_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1728 : struct.success) + for (String _iter1736 : struct.success) { - oprot.writeString(_iter1728); + oprot.writeString(_iter1736); } } } @@ -193941,13 +195034,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_master_keys_resu BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1729 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1729.size); - String _elem1730; - for (int _i1731 = 0; _i1731 < _list1729.size; ++_i1731) + org.apache.thrift.protocol.TList _list1737 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1737.size); + String _elem1738; + for (int _i1739 = 0; _i1739 < _list1737.size; ++_i1739) { - _elem1730 = iprot.readString(); - struct.success.add(_elem1730); + _elem1738 = iprot.readString(); + struct.success.add(_elem1738); } } struct.setSuccessIsSet(true); @@ -211068,13 +212161,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, find_columns_with_s case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1732 = iprot.readListBegin(); - struct.success = new ArrayList(_list1732.size); - String _elem1733; - for (int _i1734 = 0; _i1734 < _list1732.size; ++_i1734) + org.apache.thrift.protocol.TList _list1740 = iprot.readListBegin(); + struct.success = new ArrayList(_list1740.size); + String _elem1741; + for (int _i1742 = 0; _i1742 < _list1740.size; ++_i1742) { - _elem1733 = iprot.readString(); - struct.success.add(_elem1733); + _elem1741 = iprot.readString(); + struct.success.add(_elem1741); } iprot.readListEnd(); } @@ -211100,9 +212193,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, find_columns_with_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1735 : struct.success) + for (String _iter1743 : struct.success) { - oprot.writeString(_iter1735); + oprot.writeString(_iter1743); } oprot.writeListEnd(); } @@ -211133,9 +212226,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, find_columns_with_s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1736 : struct.success) + for (String _iter1744 : struct.success) { - oprot.writeString(_iter1736); + oprot.writeString(_iter1744); } } } @@ -211147,13 +212240,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, find_columns_with_st BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1737 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1737.size); - String _elem1738; - for (int _i1739 = 0; _i1739 < _list1737.size; ++_i1739) + org.apache.thrift.protocol.TList _list1745 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1745.size); + String _elem1746; + for (int _i1747 = 0; _i1747 < _list1745.size; ++_i1747) { - _elem1738 = iprot.readString(); - struct.success.add(_elem1738); + _elem1746 = iprot.readString(); + struct.success.add(_elem1746); } } struct.setSuccessIsSet(true); @@ -248039,14 +249132,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_all_vers case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1740 = iprot.readListBegin(); - struct.success = new ArrayList(_list1740.size); - SchemaVersion _elem1741; - for (int _i1742 = 0; _i1742 < _list1740.size; ++_i1742) + org.apache.thrift.protocol.TList _list1748 = iprot.readListBegin(); + struct.success = new ArrayList(_list1748.size); + SchemaVersion _elem1749; + for (int _i1750 = 0; _i1750 < _list1748.size; ++_i1750) { - _elem1741 = new SchemaVersion(); - _elem1741.read(iprot); - struct.success.add(_elem1741); + _elem1749 = new SchemaVersion(); + _elem1749.read(iprot); + struct.success.add(_elem1749); } iprot.readListEnd(); } @@ -248090,9 +249183,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_schema_all_ver oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (SchemaVersion _iter1743 : struct.success) + for (SchemaVersion _iter1751 : struct.success) { - _iter1743.write(oprot); + _iter1751.write(oprot); } oprot.writeListEnd(); } @@ -248139,9 +249232,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_all_vers if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (SchemaVersion _iter1744 : struct.success) + for (SchemaVersion _iter1752 : struct.success) { - _iter1744.write(oprot); + _iter1752.write(oprot); } } } @@ -248159,14 +249252,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_all_versi BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1745 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1745.size); - SchemaVersion _elem1746; - for (int _i1747 = 0; _i1747 < _list1745.size; ++_i1747) + org.apache.thrift.protocol.TList _list1753 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1753.size); + SchemaVersion _elem1754; + for (int _i1755 = 0; _i1755 < _list1753.size; ++_i1755) { - _elem1746 = new SchemaVersion(); - _elem1746.read(iprot); - struct.success.add(_elem1746); + _elem1754 = new SchemaVersion(); + _elem1754.read(iprot); + struct.success.add(_elem1754); } } struct.setSuccessIsSet(true); @@ -256709,14 +257802,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_runtime_stats_r case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1748 = iprot.readListBegin(); - struct.success = new ArrayList(_list1748.size); - RuntimeStat _elem1749; - for (int _i1750 = 0; _i1750 < _list1748.size; ++_i1750) + org.apache.thrift.protocol.TList _list1756 = iprot.readListBegin(); + struct.success = new ArrayList(_list1756.size); + RuntimeStat _elem1757; + for (int _i1758 = 0; _i1758 < _list1756.size; ++_i1758) { - _elem1749 = new RuntimeStat(); - _elem1749.read(iprot); - struct.success.add(_elem1749); + _elem1757 = new RuntimeStat(); + _elem1757.read(iprot); + struct.success.add(_elem1757); } iprot.readListEnd(); } @@ -256751,9 +257844,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_runtime_stats_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (RuntimeStat _iter1751 : struct.success) + for (RuntimeStat _iter1759 : struct.success) { - _iter1751.write(oprot); + _iter1759.write(oprot); } oprot.writeListEnd(); } @@ -256792,9 +257885,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_runtime_stats_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (RuntimeStat _iter1752 : struct.success) + for (RuntimeStat _iter1760 : struct.success) { - _iter1752.write(oprot); + _iter1760.write(oprot); } } } @@ -256809,14 +257902,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_runtime_stats_re BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1753 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1753.size); - RuntimeStat _elem1754; - for (int _i1755 = 0; _i1755 < _list1753.size; ++_i1755) + org.apache.thrift.protocol.TList _list1761 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1761.size); + RuntimeStat _elem1762; + for (int _i1763 = 0; _i1763 < _list1761.size; ++_i1763) { - _elem1754 = new RuntimeStat(); - _elem1754.read(iprot); - struct.success.add(_elem1754); + _elem1762 = new RuntimeStat(); + _elem1762.read(iprot); + struct.success.add(_elem1762); } } struct.setSuccessIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMFullResourcePlan.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMFullResourcePlan.java index 080111d85b..a3fc814746 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMFullResourcePlan.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMFullResourcePlan.java @@ -755,14 +755,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, WMFullResourcePlan case 2: // POOLS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list968 = iprot.readListBegin(); - struct.pools = new ArrayList(_list968.size); - WMPool _elem969; - for (int _i970 = 0; _i970 < _list968.size; ++_i970) + org.apache.thrift.protocol.TList _list976 = iprot.readListBegin(); + struct.pools = new ArrayList(_list976.size); + WMPool _elem977; + for (int _i978 = 0; _i978 < _list976.size; ++_i978) { - _elem969 = new WMPool(); - _elem969.read(iprot); - struct.pools.add(_elem969); + _elem977 = new WMPool(); + _elem977.read(iprot); + struct.pools.add(_elem977); } iprot.readListEnd(); } @@ -774,14 +774,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, WMFullResourcePlan case 3: // MAPPINGS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list971 = iprot.readListBegin(); - struct.mappings = new ArrayList(_list971.size); - WMMapping _elem972; - for (int _i973 = 0; _i973 < _list971.size; ++_i973) + org.apache.thrift.protocol.TList _list979 = iprot.readListBegin(); + struct.mappings = new ArrayList(_list979.size); + WMMapping _elem980; + for (int _i981 = 0; _i981 < _list979.size; ++_i981) { - _elem972 = new WMMapping(); - _elem972.read(iprot); - struct.mappings.add(_elem972); + _elem980 = new WMMapping(); + _elem980.read(iprot); + struct.mappings.add(_elem980); } iprot.readListEnd(); } @@ -793,14 +793,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, WMFullResourcePlan case 4: // TRIGGERS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list974 = iprot.readListBegin(); - struct.triggers = new ArrayList(_list974.size); - WMTrigger _elem975; - for (int _i976 = 0; _i976 < _list974.size; ++_i976) + org.apache.thrift.protocol.TList _list982 = iprot.readListBegin(); + struct.triggers = new ArrayList(_list982.size); + WMTrigger _elem983; + for (int _i984 = 0; _i984 < _list982.size; ++_i984) { - _elem975 = new WMTrigger(); - _elem975.read(iprot); - struct.triggers.add(_elem975); + _elem983 = new WMTrigger(); + _elem983.read(iprot); + struct.triggers.add(_elem983); } iprot.readListEnd(); } @@ -812,14 +812,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, WMFullResourcePlan case 5: // POOL_TRIGGERS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list977 = iprot.readListBegin(); - struct.poolTriggers = new ArrayList(_list977.size); - WMPoolTrigger _elem978; - for (int _i979 = 0; _i979 < _list977.size; ++_i979) + org.apache.thrift.protocol.TList _list985 = iprot.readListBegin(); + struct.poolTriggers = new ArrayList(_list985.size); + WMPoolTrigger _elem986; + for (int _i987 = 0; _i987 < _list985.size; ++_i987) { - _elem978 = new WMPoolTrigger(); - _elem978.read(iprot); - struct.poolTriggers.add(_elem978); + _elem986 = new WMPoolTrigger(); + _elem986.read(iprot); + struct.poolTriggers.add(_elem986); } iprot.readListEnd(); } @@ -850,9 +850,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, WMFullResourcePlan oprot.writeFieldBegin(POOLS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.pools.size())); - for (WMPool _iter980 : struct.pools) + for (WMPool _iter988 : struct.pools) { - _iter980.write(oprot); + _iter988.write(oprot); } oprot.writeListEnd(); } @@ -863,9 +863,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, WMFullResourcePlan oprot.writeFieldBegin(MAPPINGS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.mappings.size())); - for (WMMapping _iter981 : struct.mappings) + for (WMMapping _iter989 : struct.mappings) { - _iter981.write(oprot); + _iter989.write(oprot); } oprot.writeListEnd(); } @@ -877,9 +877,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, WMFullResourcePlan oprot.writeFieldBegin(TRIGGERS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.triggers.size())); - for (WMTrigger _iter982 : struct.triggers) + for (WMTrigger _iter990 : struct.triggers) { - _iter982.write(oprot); + _iter990.write(oprot); } oprot.writeListEnd(); } @@ -891,9 +891,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, WMFullResourcePlan oprot.writeFieldBegin(POOL_TRIGGERS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.poolTriggers.size())); - for (WMPoolTrigger _iter983 : struct.poolTriggers) + for (WMPoolTrigger _iter991 : struct.poolTriggers) { - _iter983.write(oprot); + _iter991.write(oprot); } oprot.writeListEnd(); } @@ -920,9 +920,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, WMFullResourcePlan struct.plan.write(oprot); { oprot.writeI32(struct.pools.size()); - for (WMPool _iter984 : struct.pools) + for (WMPool _iter992 : struct.pools) { - _iter984.write(oprot); + _iter992.write(oprot); } } BitSet optionals = new BitSet(); @@ -939,27 +939,27 @@ public void write(org.apache.thrift.protocol.TProtocol prot, WMFullResourcePlan if (struct.isSetMappings()) { { oprot.writeI32(struct.mappings.size()); - for (WMMapping _iter985 : struct.mappings) + for (WMMapping _iter993 : struct.mappings) { - _iter985.write(oprot); + _iter993.write(oprot); } } } if (struct.isSetTriggers()) { { oprot.writeI32(struct.triggers.size()); - for (WMTrigger _iter986 : struct.triggers) + for (WMTrigger _iter994 : struct.triggers) { - _iter986.write(oprot); + _iter994.write(oprot); } } } if (struct.isSetPoolTriggers()) { { oprot.writeI32(struct.poolTriggers.size()); - for (WMPoolTrigger _iter987 : struct.poolTriggers) + for (WMPoolTrigger _iter995 : struct.poolTriggers) { - _iter987.write(oprot); + _iter995.write(oprot); } } } @@ -972,56 +972,56 @@ public void read(org.apache.thrift.protocol.TProtocol prot, WMFullResourcePlan s struct.plan.read(iprot); struct.setPlanIsSet(true); { - org.apache.thrift.protocol.TList _list988 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.pools = new ArrayList(_list988.size); - WMPool _elem989; - for (int _i990 = 0; _i990 < _list988.size; ++_i990) + org.apache.thrift.protocol.TList _list996 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.pools = new ArrayList(_list996.size); + WMPool _elem997; + for (int _i998 = 0; _i998 < _list996.size; ++_i998) { - _elem989 = new WMPool(); - _elem989.read(iprot); - struct.pools.add(_elem989); + _elem997 = new WMPool(); + _elem997.read(iprot); + struct.pools.add(_elem997); } } struct.setPoolsIsSet(true); BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list991 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.mappings = new ArrayList(_list991.size); - WMMapping _elem992; - for (int _i993 = 0; _i993 < _list991.size; ++_i993) + org.apache.thrift.protocol.TList _list999 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.mappings = new ArrayList(_list999.size); + WMMapping _elem1000; + for (int _i1001 = 0; _i1001 < _list999.size; ++_i1001) { - _elem992 = new WMMapping(); - _elem992.read(iprot); - struct.mappings.add(_elem992); + _elem1000 = new WMMapping(); + _elem1000.read(iprot); + struct.mappings.add(_elem1000); } } struct.setMappingsIsSet(true); } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list994 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.triggers = new ArrayList(_list994.size); - WMTrigger _elem995; - for (int _i996 = 0; _i996 < _list994.size; ++_i996) + org.apache.thrift.protocol.TList _list1002 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.triggers = new ArrayList(_list1002.size); + WMTrigger _elem1003; + for (int _i1004 = 0; _i1004 < _list1002.size; ++_i1004) { - _elem995 = new WMTrigger(); - _elem995.read(iprot); - struct.triggers.add(_elem995); + _elem1003 = new WMTrigger(); + _elem1003.read(iprot); + struct.triggers.add(_elem1003); } } struct.setTriggersIsSet(true); } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list997 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.poolTriggers = new ArrayList(_list997.size); - WMPoolTrigger _elem998; - for (int _i999 = 0; _i999 < _list997.size; ++_i999) + org.apache.thrift.protocol.TList _list1005 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.poolTriggers = new ArrayList(_list1005.size); + WMPoolTrigger _elem1006; + for (int _i1007 = 0; _i1007 < _list1005.size; ++_i1007) { - _elem998 = new WMPoolTrigger(); - _elem998.read(iprot); - struct.poolTriggers.add(_elem998); + _elem1006 = new WMPoolTrigger(); + _elem1006.read(iprot); + struct.poolTriggers.add(_elem1006); } } struct.setPoolTriggersIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetAllResourcePlanResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetAllResourcePlanResponse.java index d0174005ca..b98906e395 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetAllResourcePlanResponse.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetAllResourcePlanResponse.java @@ -346,14 +346,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, WMGetAllResourcePla case 1: // RESOURCE_PLANS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1000 = iprot.readListBegin(); - struct.resourcePlans = new ArrayList(_list1000.size); - WMResourcePlan _elem1001; - for (int _i1002 = 0; _i1002 < _list1000.size; ++_i1002) + org.apache.thrift.protocol.TList _list1008 = iprot.readListBegin(); + struct.resourcePlans = new ArrayList(_list1008.size); + WMResourcePlan _elem1009; + for (int _i1010 = 0; _i1010 < _list1008.size; ++_i1010) { - _elem1001 = new WMResourcePlan(); - _elem1001.read(iprot); - struct.resourcePlans.add(_elem1001); + _elem1009 = new WMResourcePlan(); + _elem1009.read(iprot); + struct.resourcePlans.add(_elem1009); } iprot.readListEnd(); } @@ -380,9 +380,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, WMGetAllResourcePl oprot.writeFieldBegin(RESOURCE_PLANS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.resourcePlans.size())); - for (WMResourcePlan _iter1003 : struct.resourcePlans) + for (WMResourcePlan _iter1011 : struct.resourcePlans) { - _iter1003.write(oprot); + _iter1011.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, WMGetAllResourcePla if (struct.isSetResourcePlans()) { { oprot.writeI32(struct.resourcePlans.size()); - for (WMResourcePlan _iter1004 : struct.resourcePlans) + for (WMResourcePlan _iter1012 : struct.resourcePlans) { - _iter1004.write(oprot); + _iter1012.write(oprot); } } } @@ -428,14 +428,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, WMGetAllResourcePlan BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1005 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.resourcePlans = new ArrayList(_list1005.size); - WMResourcePlan _elem1006; - for (int _i1007 = 0; _i1007 < _list1005.size; ++_i1007) + org.apache.thrift.protocol.TList _list1013 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.resourcePlans = new ArrayList(_list1013.size); + WMResourcePlan _elem1014; + for (int _i1015 = 0; _i1015 < _list1013.size; ++_i1015) { - _elem1006 = new WMResourcePlan(); - _elem1006.read(iprot); - struct.resourcePlans.add(_elem1006); + _elem1014 = new WMResourcePlan(); + _elem1014.read(iprot); + struct.resourcePlans.add(_elem1014); } } struct.setResourcePlansIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetTriggersForResourePlanResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetTriggersForResourePlanResponse.java index e5425909d4..52b4177f9e 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetTriggersForResourePlanResponse.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetTriggersForResourePlanResponse.java @@ -346,14 +346,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, WMGetTriggersForRes case 1: // TRIGGERS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1024 = iprot.readListBegin(); - struct.triggers = new ArrayList(_list1024.size); - WMTrigger _elem1025; - for (int _i1026 = 0; _i1026 < _list1024.size; ++_i1026) + org.apache.thrift.protocol.TList _list1032 = iprot.readListBegin(); + struct.triggers = new ArrayList(_list1032.size); + WMTrigger _elem1033; + for (int _i1034 = 0; _i1034 < _list1032.size; ++_i1034) { - _elem1025 = new WMTrigger(); - _elem1025.read(iprot); - struct.triggers.add(_elem1025); + _elem1033 = new WMTrigger(); + _elem1033.read(iprot); + struct.triggers.add(_elem1033); } iprot.readListEnd(); } @@ -380,9 +380,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, WMGetTriggersForRe oprot.writeFieldBegin(TRIGGERS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.triggers.size())); - for (WMTrigger _iter1027 : struct.triggers) + for (WMTrigger _iter1035 : struct.triggers) { - _iter1027.write(oprot); + _iter1035.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, WMGetTriggersForRes if (struct.isSetTriggers()) { { oprot.writeI32(struct.triggers.size()); - for (WMTrigger _iter1028 : struct.triggers) + for (WMTrigger _iter1036 : struct.triggers) { - _iter1028.write(oprot); + _iter1036.write(oprot); } } } @@ -428,14 +428,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, WMGetTriggersForReso BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1029 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.triggers = new ArrayList(_list1029.size); - WMTrigger _elem1030; - for (int _i1031 = 0; _i1031 < _list1029.size; ++_i1031) + org.apache.thrift.protocol.TList _list1037 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.triggers = new ArrayList(_list1037.size); + WMTrigger _elem1038; + for (int _i1039 = 0; _i1039 < _list1037.size; ++_i1039) { - _elem1030 = new WMTrigger(); - _elem1030.read(iprot); - struct.triggers.add(_elem1030); + _elem1038 = new WMTrigger(); + _elem1038.read(iprot); + struct.triggers.add(_elem1038); } } struct.setTriggersIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMValidateResourcePlanResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMValidateResourcePlanResponse.java index b12c2284a2..cbba529992 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMValidateResourcePlanResponse.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMValidateResourcePlanResponse.java @@ -441,13 +441,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, WMValidateResourceP case 1: // ERRORS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1008 = iprot.readListBegin(); - struct.errors = new ArrayList(_list1008.size); - String _elem1009; - for (int _i1010 = 0; _i1010 < _list1008.size; ++_i1010) + org.apache.thrift.protocol.TList _list1016 = iprot.readListBegin(); + struct.errors = new ArrayList(_list1016.size); + String _elem1017; + for (int _i1018 = 0; _i1018 < _list1016.size; ++_i1018) { - _elem1009 = iprot.readString(); - struct.errors.add(_elem1009); + _elem1017 = iprot.readString(); + struct.errors.add(_elem1017); } iprot.readListEnd(); } @@ -459,13 +459,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, WMValidateResourceP case 2: // WARNINGS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1011 = iprot.readListBegin(); - struct.warnings = new ArrayList(_list1011.size); - String _elem1012; - for (int _i1013 = 0; _i1013 < _list1011.size; ++_i1013) + org.apache.thrift.protocol.TList _list1019 = iprot.readListBegin(); + struct.warnings = new ArrayList(_list1019.size); + String _elem1020; + for (int _i1021 = 0; _i1021 < _list1019.size; ++_i1021) { - _elem1012 = iprot.readString(); - struct.warnings.add(_elem1012); + _elem1020 = iprot.readString(); + struct.warnings.add(_elem1020); } iprot.readListEnd(); } @@ -492,9 +492,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, WMValidateResource oprot.writeFieldBegin(ERRORS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.errors.size())); - for (String _iter1014 : struct.errors) + for (String _iter1022 : struct.errors) { - oprot.writeString(_iter1014); + oprot.writeString(_iter1022); } oprot.writeListEnd(); } @@ -506,9 +506,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, WMValidateResource oprot.writeFieldBegin(WARNINGS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.warnings.size())); - for (String _iter1015 : struct.warnings) + for (String _iter1023 : struct.warnings) { - oprot.writeString(_iter1015); + oprot.writeString(_iter1023); } oprot.writeListEnd(); } @@ -543,18 +543,18 @@ public void write(org.apache.thrift.protocol.TProtocol prot, WMValidateResourceP if (struct.isSetErrors()) { { oprot.writeI32(struct.errors.size()); - for (String _iter1016 : struct.errors) + for (String _iter1024 : struct.errors) { - oprot.writeString(_iter1016); + oprot.writeString(_iter1024); } } } if (struct.isSetWarnings()) { { oprot.writeI32(struct.warnings.size()); - for (String _iter1017 : struct.warnings) + for (String _iter1025 : struct.warnings) { - oprot.writeString(_iter1017); + oprot.writeString(_iter1025); } } } @@ -566,26 +566,26 @@ public void read(org.apache.thrift.protocol.TProtocol prot, WMValidateResourcePl BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1018 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.errors = new ArrayList(_list1018.size); - String _elem1019; - for (int _i1020 = 0; _i1020 < _list1018.size; ++_i1020) + org.apache.thrift.protocol.TList _list1026 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.errors = new ArrayList(_list1026.size); + String _elem1027; + for (int _i1028 = 0; _i1028 < _list1026.size; ++_i1028) { - _elem1019 = iprot.readString(); - struct.errors.add(_elem1019); + _elem1027 = iprot.readString(); + struct.errors.add(_elem1027); } } struct.setErrorsIsSet(true); } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list1021 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.warnings = new ArrayList(_list1021.size); - String _elem1022; - for (int _i1023 = 0; _i1023 < _list1021.size; ++_i1023) + org.apache.thrift.protocol.TList _list1029 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.warnings = new ArrayList(_list1029.size); + String _elem1030; + for (int _i1031 = 0; _i1031 < _list1029.size; ++_i1031) { - _elem1022 = iprot.readString(); - struct.warnings.add(_elem1022); + _elem1030 = iprot.readString(); + struct.warnings.add(_elem1030); } } struct.setWarningsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php index 4623e9ab5f..ce534f72b2 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php +++ standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php @@ -79,6 +79,13 @@ interface ThriftHiveMetastoreIf extends \FacebookServiceIf { * @throws \metastore\MetaException */ public function get_database($name); + /** + * @param \metastore\GetDatabaseRequest $request + * @return \metastore\Database + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ + public function get_database_req(\metastore\GetDatabaseRequest $request); /** * @param string $name * @param bool $deleteData @@ -2186,6 +2193,63 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("get_database failed: unknown result"); } + public function get_database_req(\metastore\GetDatabaseRequest $request) + { + $this->send_get_database_req($request); + return $this->recv_get_database_req(); + } + + public function send_get_database_req(\metastore\GetDatabaseRequest $request) + { + $args = new \metastore\ThriftHiveMetastore_get_database_req_args(); + $args->request = $request; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'get_database_req', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('get_database_req', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_get_database_req() + { + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_database_req_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_database_req_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + if ($result->success !== null) { + return $result->success; + } + if ($result->o1 !== null) { + throw $result->o1; + } + if ($result->o2 !== null) { + throw $result->o2; + } + throw new \Exception("get_database_req failed: unknown result"); + } + public function drop_database($name, $deleteData, $cascade) { $this->send_drop_database($name, $deleteData, $cascade); @@ -16213,6 +16277,216 @@ class ThriftHiveMetastore_get_database_result { } +class ThriftHiveMetastore_get_database_req_args { + static $_TSPEC; + + /** + * @var \metastore\GetDatabaseRequest + */ + public $request = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'request', + 'type' => TType::STRUCT, + 'class' => '\metastore\GetDatabaseRequest', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['request'])) { + $this->request = $vals['request']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_database_req_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::STRUCT) { + $this->request = new \metastore\GetDatabaseRequest(); + $xfer += $this->request->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_database_req_args'); + if ($this->request !== null) { + if (!is_object($this->request)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('request', TType::STRUCT, 1); + $xfer += $this->request->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_get_database_req_result { + static $_TSPEC; + + /** + * @var \metastore\Database + */ + public $success = null; + /** + * @var \metastore\NoSuchObjectException + */ + public $o1 = null; + /** + * @var \metastore\MetaException + */ + public $o2 = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 0 => array( + 'var' => 'success', + 'type' => TType::STRUCT, + 'class' => '\metastore\Database', + ), + 1 => array( + 'var' => 'o1', + 'type' => TType::STRUCT, + 'class' => '\metastore\NoSuchObjectException', + ), + 2 => array( + 'var' => 'o2', + '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']; + } + if (isset($vals['o2'])) { + $this->o2 = $vals['o2']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_database_req_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::STRUCT) { + $this->success = new \metastore\Database(); + $xfer += $this->success->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 1: + if ($ftype == TType::STRUCT) { + $this->o1 = new \metastore\NoSuchObjectException(); + $xfer += $this->o1->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRUCT) { + $this->o2 = new \metastore\MetaException(); + $xfer += $this->o2->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_database_req_result'); + if ($this->success !== null) { + if (!is_object($this->success)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0); + $xfer += $this->success->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->o1 !== null) { + $xfer += $output->writeFieldBegin('o1', TType::STRUCT, 1); + $xfer += $this->o1->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->o2 !== null) { + $xfer += $output->writeFieldBegin('o2', TType::STRUCT, 2); + $xfer += $this->o2->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + class ThriftHiveMetastore_drop_database_args { static $_TSPEC; @@ -16598,14 +16872,14 @@ class ThriftHiveMetastore_get_databases_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1022 = 0; - $_etype1025 = 0; - $xfer += $input->readListBegin($_etype1025, $_size1022); - for ($_i1026 = 0; $_i1026 < $_size1022; ++$_i1026) + $_size1029 = 0; + $_etype1032 = 0; + $xfer += $input->readListBegin($_etype1032, $_size1029); + for ($_i1033 = 0; $_i1033 < $_size1029; ++$_i1033) { - $elem1027 = null; - $xfer += $input->readString($elem1027); - $this->success []= $elem1027; + $elem1034 = null; + $xfer += $input->readString($elem1034); + $this->success []= $elem1034; } $xfer += $input->readListEnd(); } else { @@ -16641,9 +16915,9 @@ class ThriftHiveMetastore_get_databases_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1028) + foreach ($this->success as $iter1035) { - $xfer += $output->writeString($iter1028); + $xfer += $output->writeString($iter1035); } } $output->writeListEnd(); @@ -16774,14 +17048,14 @@ class ThriftHiveMetastore_get_all_databases_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1029 = 0; - $_etype1032 = 0; - $xfer += $input->readListBegin($_etype1032, $_size1029); - for ($_i1033 = 0; $_i1033 < $_size1029; ++$_i1033) + $_size1036 = 0; + $_etype1039 = 0; + $xfer += $input->readListBegin($_etype1039, $_size1036); + for ($_i1040 = 0; $_i1040 < $_size1036; ++$_i1040) { - $elem1034 = null; - $xfer += $input->readString($elem1034); - $this->success []= $elem1034; + $elem1041 = null; + $xfer += $input->readString($elem1041); + $this->success []= $elem1041; } $xfer += $input->readListEnd(); } else { @@ -16817,9 +17091,9 @@ class ThriftHiveMetastore_get_all_databases_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1035) + foreach ($this->success as $iter1042) { - $xfer += $output->writeString($iter1035); + $xfer += $output->writeString($iter1042); } } $output->writeListEnd(); @@ -17820,18 +18094,18 @@ class ThriftHiveMetastore_get_type_all_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size1036 = 0; - $_ktype1037 = 0; - $_vtype1038 = 0; - $xfer += $input->readMapBegin($_ktype1037, $_vtype1038, $_size1036); - for ($_i1040 = 0; $_i1040 < $_size1036; ++$_i1040) + $_size1043 = 0; + $_ktype1044 = 0; + $_vtype1045 = 0; + $xfer += $input->readMapBegin($_ktype1044, $_vtype1045, $_size1043); + for ($_i1047 = 0; $_i1047 < $_size1043; ++$_i1047) { - $key1041 = ''; - $val1042 = new \metastore\Type(); - $xfer += $input->readString($key1041); - $val1042 = new \metastore\Type(); - $xfer += $val1042->read($input); - $this->success[$key1041] = $val1042; + $key1048 = ''; + $val1049 = new \metastore\Type(); + $xfer += $input->readString($key1048); + $val1049 = new \metastore\Type(); + $xfer += $val1049->read($input); + $this->success[$key1048] = $val1049; } $xfer += $input->readMapEnd(); } else { @@ -17867,10 +18141,10 @@ class ThriftHiveMetastore_get_type_all_result { { $output->writeMapBegin(TType::STRING, TType::STRUCT, count($this->success)); { - foreach ($this->success as $kiter1043 => $viter1044) + foreach ($this->success as $kiter1050 => $viter1051) { - $xfer += $output->writeString($kiter1043); - $xfer += $viter1044->write($output); + $xfer += $output->writeString($kiter1050); + $xfer += $viter1051->write($output); } } $output->writeMapEnd(); @@ -18074,15 +18348,15 @@ class ThriftHiveMetastore_get_fields_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1045 = 0; - $_etype1048 = 0; - $xfer += $input->readListBegin($_etype1048, $_size1045); - for ($_i1049 = 0; $_i1049 < $_size1045; ++$_i1049) + $_size1052 = 0; + $_etype1055 = 0; + $xfer += $input->readListBegin($_etype1055, $_size1052); + for ($_i1056 = 0; $_i1056 < $_size1052; ++$_i1056) { - $elem1050 = null; - $elem1050 = new \metastore\FieldSchema(); - $xfer += $elem1050->read($input); - $this->success []= $elem1050; + $elem1057 = null; + $elem1057 = new \metastore\FieldSchema(); + $xfer += $elem1057->read($input); + $this->success []= $elem1057; } $xfer += $input->readListEnd(); } else { @@ -18134,9 +18408,9 @@ class ThriftHiveMetastore_get_fields_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1051) + foreach ($this->success as $iter1058) { - $xfer += $iter1051->write($output); + $xfer += $iter1058->write($output); } } $output->writeListEnd(); @@ -18378,15 +18652,15 @@ class ThriftHiveMetastore_get_fields_with_environment_context_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1052 = 0; - $_etype1055 = 0; - $xfer += $input->readListBegin($_etype1055, $_size1052); - for ($_i1056 = 0; $_i1056 < $_size1052; ++$_i1056) + $_size1059 = 0; + $_etype1062 = 0; + $xfer += $input->readListBegin($_etype1062, $_size1059); + for ($_i1063 = 0; $_i1063 < $_size1059; ++$_i1063) { - $elem1057 = null; - $elem1057 = new \metastore\FieldSchema(); - $xfer += $elem1057->read($input); - $this->success []= $elem1057; + $elem1064 = null; + $elem1064 = new \metastore\FieldSchema(); + $xfer += $elem1064->read($input); + $this->success []= $elem1064; } $xfer += $input->readListEnd(); } else { @@ -18438,9 +18712,9 @@ class ThriftHiveMetastore_get_fields_with_environment_context_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1058) + foreach ($this->success as $iter1065) { - $xfer += $iter1058->write($output); + $xfer += $iter1065->write($output); } } $output->writeListEnd(); @@ -18654,15 +18928,15 @@ class ThriftHiveMetastore_get_schema_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1059 = 0; - $_etype1062 = 0; - $xfer += $input->readListBegin($_etype1062, $_size1059); - for ($_i1063 = 0; $_i1063 < $_size1059; ++$_i1063) + $_size1066 = 0; + $_etype1069 = 0; + $xfer += $input->readListBegin($_etype1069, $_size1066); + for ($_i1070 = 0; $_i1070 < $_size1066; ++$_i1070) { - $elem1064 = null; - $elem1064 = new \metastore\FieldSchema(); - $xfer += $elem1064->read($input); - $this->success []= $elem1064; + $elem1071 = null; + $elem1071 = new \metastore\FieldSchema(); + $xfer += $elem1071->read($input); + $this->success []= $elem1071; } $xfer += $input->readListEnd(); } else { @@ -18714,9 +18988,9 @@ class ThriftHiveMetastore_get_schema_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1065) + foreach ($this->success as $iter1072) { - $xfer += $iter1065->write($output); + $xfer += $iter1072->write($output); } } $output->writeListEnd(); @@ -18958,15 +19232,15 @@ class ThriftHiveMetastore_get_schema_with_environment_context_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1066 = 0; - $_etype1069 = 0; - $xfer += $input->readListBegin($_etype1069, $_size1066); - for ($_i1070 = 0; $_i1070 < $_size1066; ++$_i1070) + $_size1073 = 0; + $_etype1076 = 0; + $xfer += $input->readListBegin($_etype1076, $_size1073); + for ($_i1077 = 0; $_i1077 < $_size1073; ++$_i1077) { - $elem1071 = null; - $elem1071 = new \metastore\FieldSchema(); - $xfer += $elem1071->read($input); - $this->success []= $elem1071; + $elem1078 = null; + $elem1078 = new \metastore\FieldSchema(); + $xfer += $elem1078->read($input); + $this->success []= $elem1078; } $xfer += $input->readListEnd(); } else { @@ -19018,9 +19292,9 @@ class ThriftHiveMetastore_get_schema_with_environment_context_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1072) + foreach ($this->success as $iter1079) { - $xfer += $iter1072->write($output); + $xfer += $iter1079->write($output); } } $output->writeListEnd(); @@ -19692,15 +19966,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 2: if ($ftype == TType::LST) { $this->primaryKeys = array(); - $_size1073 = 0; - $_etype1076 = 0; - $xfer += $input->readListBegin($_etype1076, $_size1073); - for ($_i1077 = 0; $_i1077 < $_size1073; ++$_i1077) + $_size1080 = 0; + $_etype1083 = 0; + $xfer += $input->readListBegin($_etype1083, $_size1080); + for ($_i1084 = 0; $_i1084 < $_size1080; ++$_i1084) { - $elem1078 = null; - $elem1078 = new \metastore\SQLPrimaryKey(); - $xfer += $elem1078->read($input); - $this->primaryKeys []= $elem1078; + $elem1085 = null; + $elem1085 = new \metastore\SQLPrimaryKey(); + $xfer += $elem1085->read($input); + $this->primaryKeys []= $elem1085; } $xfer += $input->readListEnd(); } else { @@ -19710,15 +19984,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 3: if ($ftype == TType::LST) { $this->foreignKeys = array(); - $_size1079 = 0; - $_etype1082 = 0; - $xfer += $input->readListBegin($_etype1082, $_size1079); - for ($_i1083 = 0; $_i1083 < $_size1079; ++$_i1083) + $_size1086 = 0; + $_etype1089 = 0; + $xfer += $input->readListBegin($_etype1089, $_size1086); + for ($_i1090 = 0; $_i1090 < $_size1086; ++$_i1090) { - $elem1084 = null; - $elem1084 = new \metastore\SQLForeignKey(); - $xfer += $elem1084->read($input); - $this->foreignKeys []= $elem1084; + $elem1091 = null; + $elem1091 = new \metastore\SQLForeignKey(); + $xfer += $elem1091->read($input); + $this->foreignKeys []= $elem1091; } $xfer += $input->readListEnd(); } else { @@ -19728,15 +20002,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 4: if ($ftype == TType::LST) { $this->uniqueConstraints = array(); - $_size1085 = 0; - $_etype1088 = 0; - $xfer += $input->readListBegin($_etype1088, $_size1085); - for ($_i1089 = 0; $_i1089 < $_size1085; ++$_i1089) + $_size1092 = 0; + $_etype1095 = 0; + $xfer += $input->readListBegin($_etype1095, $_size1092); + for ($_i1096 = 0; $_i1096 < $_size1092; ++$_i1096) { - $elem1090 = null; - $elem1090 = new \metastore\SQLUniqueConstraint(); - $xfer += $elem1090->read($input); - $this->uniqueConstraints []= $elem1090; + $elem1097 = null; + $elem1097 = new \metastore\SQLUniqueConstraint(); + $xfer += $elem1097->read($input); + $this->uniqueConstraints []= $elem1097; } $xfer += $input->readListEnd(); } else { @@ -19746,15 +20020,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 5: if ($ftype == TType::LST) { $this->notNullConstraints = array(); - $_size1091 = 0; - $_etype1094 = 0; - $xfer += $input->readListBegin($_etype1094, $_size1091); - for ($_i1095 = 0; $_i1095 < $_size1091; ++$_i1095) + $_size1098 = 0; + $_etype1101 = 0; + $xfer += $input->readListBegin($_etype1101, $_size1098); + for ($_i1102 = 0; $_i1102 < $_size1098; ++$_i1102) { - $elem1096 = null; - $elem1096 = new \metastore\SQLNotNullConstraint(); - $xfer += $elem1096->read($input); - $this->notNullConstraints []= $elem1096; + $elem1103 = null; + $elem1103 = new \metastore\SQLNotNullConstraint(); + $xfer += $elem1103->read($input); + $this->notNullConstraints []= $elem1103; } $xfer += $input->readListEnd(); } else { @@ -19764,15 +20038,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 6: if ($ftype == TType::LST) { $this->defaultConstraints = array(); - $_size1097 = 0; - $_etype1100 = 0; - $xfer += $input->readListBegin($_etype1100, $_size1097); - for ($_i1101 = 0; $_i1101 < $_size1097; ++$_i1101) + $_size1104 = 0; + $_etype1107 = 0; + $xfer += $input->readListBegin($_etype1107, $_size1104); + for ($_i1108 = 0; $_i1108 < $_size1104; ++$_i1108) { - $elem1102 = null; - $elem1102 = new \metastore\SQLDefaultConstraint(); - $xfer += $elem1102->read($input); - $this->defaultConstraints []= $elem1102; + $elem1109 = null; + $elem1109 = new \metastore\SQLDefaultConstraint(); + $xfer += $elem1109->read($input); + $this->defaultConstraints []= $elem1109; } $xfer += $input->readListEnd(); } else { @@ -19782,15 +20056,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 7: if ($ftype == TType::LST) { $this->checkConstraints = array(); - $_size1103 = 0; - $_etype1106 = 0; - $xfer += $input->readListBegin($_etype1106, $_size1103); - for ($_i1107 = 0; $_i1107 < $_size1103; ++$_i1107) + $_size1110 = 0; + $_etype1113 = 0; + $xfer += $input->readListBegin($_etype1113, $_size1110); + for ($_i1114 = 0; $_i1114 < $_size1110; ++$_i1114) { - $elem1108 = null; - $elem1108 = new \metastore\SQLCheckConstraint(); - $xfer += $elem1108->read($input); - $this->checkConstraints []= $elem1108; + $elem1115 = null; + $elem1115 = new \metastore\SQLCheckConstraint(); + $xfer += $elem1115->read($input); + $this->checkConstraints []= $elem1115; } $xfer += $input->readListEnd(); } else { @@ -19826,9 +20100,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->primaryKeys)); { - foreach ($this->primaryKeys as $iter1109) + foreach ($this->primaryKeys as $iter1116) { - $xfer += $iter1109->write($output); + $xfer += $iter1116->write($output); } } $output->writeListEnd(); @@ -19843,9 +20117,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->foreignKeys)); { - foreach ($this->foreignKeys as $iter1110) + foreach ($this->foreignKeys as $iter1117) { - $xfer += $iter1110->write($output); + $xfer += $iter1117->write($output); } } $output->writeListEnd(); @@ -19860,9 +20134,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->uniqueConstraints)); { - foreach ($this->uniqueConstraints as $iter1111) + foreach ($this->uniqueConstraints as $iter1118) { - $xfer += $iter1111->write($output); + $xfer += $iter1118->write($output); } } $output->writeListEnd(); @@ -19877,9 +20151,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->notNullConstraints)); { - foreach ($this->notNullConstraints as $iter1112) + foreach ($this->notNullConstraints as $iter1119) { - $xfer += $iter1112->write($output); + $xfer += $iter1119->write($output); } } $output->writeListEnd(); @@ -19894,9 +20168,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->defaultConstraints)); { - foreach ($this->defaultConstraints as $iter1113) + foreach ($this->defaultConstraints as $iter1120) { - $xfer += $iter1113->write($output); + $xfer += $iter1120->write($output); } } $output->writeListEnd(); @@ -19911,9 +20185,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->checkConstraints)); { - foreach ($this->checkConstraints as $iter1114) + foreach ($this->checkConstraints as $iter1121) { - $xfer += $iter1114->write($output); + $xfer += $iter1121->write($output); } } $output->writeListEnd(); @@ -22145,14 +22419,14 @@ class ThriftHiveMetastore_truncate_table_args { case 3: if ($ftype == TType::LST) { $this->partNames = array(); - $_size1115 = 0; - $_etype1118 = 0; - $xfer += $input->readListBegin($_etype1118, $_size1115); - for ($_i1119 = 0; $_i1119 < $_size1115; ++$_i1119) + $_size1122 = 0; + $_etype1125 = 0; + $xfer += $input->readListBegin($_etype1125, $_size1122); + for ($_i1126 = 0; $_i1126 < $_size1122; ++$_i1126) { - $elem1120 = null; - $xfer += $input->readString($elem1120); - $this->partNames []= $elem1120; + $elem1127 = null; + $xfer += $input->readString($elem1127); + $this->partNames []= $elem1127; } $xfer += $input->readListEnd(); } else { @@ -22190,9 +22464,9 @@ class ThriftHiveMetastore_truncate_table_args { { $output->writeListBegin(TType::STRING, count($this->partNames)); { - foreach ($this->partNames as $iter1121) + foreach ($this->partNames as $iter1128) { - $xfer += $output->writeString($iter1121); + $xfer += $output->writeString($iter1128); } } $output->writeListEnd(); @@ -22628,14 +22902,14 @@ class ThriftHiveMetastore_get_tables_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1122 = 0; - $_etype1125 = 0; - $xfer += $input->readListBegin($_etype1125, $_size1122); - for ($_i1126 = 0; $_i1126 < $_size1122; ++$_i1126) + $_size1129 = 0; + $_etype1132 = 0; + $xfer += $input->readListBegin($_etype1132, $_size1129); + for ($_i1133 = 0; $_i1133 < $_size1129; ++$_i1133) { - $elem1127 = null; - $xfer += $input->readString($elem1127); - $this->success []= $elem1127; + $elem1134 = null; + $xfer += $input->readString($elem1134); + $this->success []= $elem1134; } $xfer += $input->readListEnd(); } else { @@ -22671,9 +22945,9 @@ class ThriftHiveMetastore_get_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1128) + foreach ($this->success as $iter1135) { - $xfer += $output->writeString($iter1128); + $xfer += $output->writeString($iter1135); } } $output->writeListEnd(); @@ -22875,14 +23149,14 @@ class ThriftHiveMetastore_get_tables_by_type_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1129 = 0; - $_etype1132 = 0; - $xfer += $input->readListBegin($_etype1132, $_size1129); - for ($_i1133 = 0; $_i1133 < $_size1129; ++$_i1133) + $_size1136 = 0; + $_etype1139 = 0; + $xfer += $input->readListBegin($_etype1139, $_size1136); + for ($_i1140 = 0; $_i1140 < $_size1136; ++$_i1140) { - $elem1134 = null; - $xfer += $input->readString($elem1134); - $this->success []= $elem1134; + $elem1141 = null; + $xfer += $input->readString($elem1141); + $this->success []= $elem1141; } $xfer += $input->readListEnd(); } else { @@ -22918,9 +23192,9 @@ class ThriftHiveMetastore_get_tables_by_type_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1135) + foreach ($this->success as $iter1142) { - $xfer += $output->writeString($iter1135); + $xfer += $output->writeString($iter1142); } } $output->writeListEnd(); @@ -23052,15 +23326,15 @@ class ThriftHiveMetastore_get_all_materialized_view_objects_for_rewriting_result case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1136 = 0; - $_etype1139 = 0; - $xfer += $input->readListBegin($_etype1139, $_size1136); - for ($_i1140 = 0; $_i1140 < $_size1136; ++$_i1140) + $_size1143 = 0; + $_etype1146 = 0; + $xfer += $input->readListBegin($_etype1146, $_size1143); + for ($_i1147 = 0; $_i1147 < $_size1143; ++$_i1147) { - $elem1141 = null; - $elem1141 = new \metastore\Table(); - $xfer += $elem1141->read($input); - $this->success []= $elem1141; + $elem1148 = null; + $elem1148 = new \metastore\Table(); + $xfer += $elem1148->read($input); + $this->success []= $elem1148; } $xfer += $input->readListEnd(); } else { @@ -23096,9 +23370,9 @@ class ThriftHiveMetastore_get_all_materialized_view_objects_for_rewriting_result { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1142) + foreach ($this->success as $iter1149) { - $xfer += $iter1142->write($output); + $xfer += $iter1149->write($output); } } $output->writeListEnd(); @@ -23254,14 +23528,14 @@ class ThriftHiveMetastore_get_materialized_views_for_rewriting_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1143 = 0; - $_etype1146 = 0; - $xfer += $input->readListBegin($_etype1146, $_size1143); - for ($_i1147 = 0; $_i1147 < $_size1143; ++$_i1147) + $_size1150 = 0; + $_etype1153 = 0; + $xfer += $input->readListBegin($_etype1153, $_size1150); + for ($_i1154 = 0; $_i1154 < $_size1150; ++$_i1154) { - $elem1148 = null; - $xfer += $input->readString($elem1148); - $this->success []= $elem1148; + $elem1155 = null; + $xfer += $input->readString($elem1155); + $this->success []= $elem1155; } $xfer += $input->readListEnd(); } else { @@ -23297,9 +23571,9 @@ class ThriftHiveMetastore_get_materialized_views_for_rewriting_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1149) + foreach ($this->success as $iter1156) { - $xfer += $output->writeString($iter1149); + $xfer += $output->writeString($iter1156); } } $output->writeListEnd(); @@ -23404,14 +23678,14 @@ class ThriftHiveMetastore_get_table_meta_args { case 3: if ($ftype == TType::LST) { $this->tbl_types = array(); - $_size1150 = 0; - $_etype1153 = 0; - $xfer += $input->readListBegin($_etype1153, $_size1150); - for ($_i1154 = 0; $_i1154 < $_size1150; ++$_i1154) + $_size1157 = 0; + $_etype1160 = 0; + $xfer += $input->readListBegin($_etype1160, $_size1157); + for ($_i1161 = 0; $_i1161 < $_size1157; ++$_i1161) { - $elem1155 = null; - $xfer += $input->readString($elem1155); - $this->tbl_types []= $elem1155; + $elem1162 = null; + $xfer += $input->readString($elem1162); + $this->tbl_types []= $elem1162; } $xfer += $input->readListEnd(); } else { @@ -23449,9 +23723,9 @@ class ThriftHiveMetastore_get_table_meta_args { { $output->writeListBegin(TType::STRING, count($this->tbl_types)); { - foreach ($this->tbl_types as $iter1156) + foreach ($this->tbl_types as $iter1163) { - $xfer += $output->writeString($iter1156); + $xfer += $output->writeString($iter1163); } } $output->writeListEnd(); @@ -23528,15 +23802,15 @@ class ThriftHiveMetastore_get_table_meta_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1157 = 0; - $_etype1160 = 0; - $xfer += $input->readListBegin($_etype1160, $_size1157); - for ($_i1161 = 0; $_i1161 < $_size1157; ++$_i1161) + $_size1164 = 0; + $_etype1167 = 0; + $xfer += $input->readListBegin($_etype1167, $_size1164); + for ($_i1168 = 0; $_i1168 < $_size1164; ++$_i1168) { - $elem1162 = null; - $elem1162 = new \metastore\TableMeta(); - $xfer += $elem1162->read($input); - $this->success []= $elem1162; + $elem1169 = null; + $elem1169 = new \metastore\TableMeta(); + $xfer += $elem1169->read($input); + $this->success []= $elem1169; } $xfer += $input->readListEnd(); } else { @@ -23572,9 +23846,9 @@ class ThriftHiveMetastore_get_table_meta_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1163) + foreach ($this->success as $iter1170) { - $xfer += $iter1163->write($output); + $xfer += $iter1170->write($output); } } $output->writeListEnd(); @@ -23730,14 +24004,14 @@ class ThriftHiveMetastore_get_all_tables_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1164 = 0; - $_etype1167 = 0; - $xfer += $input->readListBegin($_etype1167, $_size1164); - for ($_i1168 = 0; $_i1168 < $_size1164; ++$_i1168) + $_size1171 = 0; + $_etype1174 = 0; + $xfer += $input->readListBegin($_etype1174, $_size1171); + for ($_i1175 = 0; $_i1175 < $_size1171; ++$_i1175) { - $elem1169 = null; - $xfer += $input->readString($elem1169); - $this->success []= $elem1169; + $elem1176 = null; + $xfer += $input->readString($elem1176); + $this->success []= $elem1176; } $xfer += $input->readListEnd(); } else { @@ -23773,9 +24047,9 @@ class ThriftHiveMetastore_get_all_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1170) + foreach ($this->success as $iter1177) { - $xfer += $output->writeString($iter1170); + $xfer += $output->writeString($iter1177); } } $output->writeListEnd(); @@ -24090,14 +24364,14 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { case 2: if ($ftype == TType::LST) { $this->tbl_names = array(); - $_size1171 = 0; - $_etype1174 = 0; - $xfer += $input->readListBegin($_etype1174, $_size1171); - for ($_i1175 = 0; $_i1175 < $_size1171; ++$_i1175) + $_size1178 = 0; + $_etype1181 = 0; + $xfer += $input->readListBegin($_etype1181, $_size1178); + for ($_i1182 = 0; $_i1182 < $_size1178; ++$_i1182) { - $elem1176 = null; - $xfer += $input->readString($elem1176); - $this->tbl_names []= $elem1176; + $elem1183 = null; + $xfer += $input->readString($elem1183); + $this->tbl_names []= $elem1183; } $xfer += $input->readListEnd(); } else { @@ -24130,9 +24404,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { { $output->writeListBegin(TType::STRING, count($this->tbl_names)); { - foreach ($this->tbl_names as $iter1177) + foreach ($this->tbl_names as $iter1184) { - $xfer += $output->writeString($iter1177); + $xfer += $output->writeString($iter1184); } } $output->writeListEnd(); @@ -24197,15 +24471,15 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1178 = 0; - $_etype1181 = 0; - $xfer += $input->readListBegin($_etype1181, $_size1178); - for ($_i1182 = 0; $_i1182 < $_size1178; ++$_i1182) + $_size1185 = 0; + $_etype1188 = 0; + $xfer += $input->readListBegin($_etype1188, $_size1185); + for ($_i1189 = 0; $_i1189 < $_size1185; ++$_i1189) { - $elem1183 = null; - $elem1183 = new \metastore\Table(); - $xfer += $elem1183->read($input); - $this->success []= $elem1183; + $elem1190 = null; + $elem1190 = new \metastore\Table(); + $xfer += $elem1190->read($input); + $this->success []= $elem1190; } $xfer += $input->readListEnd(); } else { @@ -24233,9 +24507,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1184) + foreach ($this->success as $iter1191) { - $xfer += $iter1184->write($output); + $xfer += $iter1191->write($output); } } $output->writeListEnd(); @@ -24392,15 +24666,15 @@ class ThriftHiveMetastore_get_tables_ext_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1185 = 0; - $_etype1188 = 0; - $xfer += $input->readListBegin($_etype1188, $_size1185); - for ($_i1189 = 0; $_i1189 < $_size1185; ++$_i1189) + $_size1192 = 0; + $_etype1195 = 0; + $xfer += $input->readListBegin($_etype1195, $_size1192); + for ($_i1196 = 0; $_i1196 < $_size1192; ++$_i1196) { - $elem1190 = null; - $elem1190 = new \metastore\ExtendedTableInfo(); - $xfer += $elem1190->read($input); - $this->success []= $elem1190; + $elem1197 = null; + $elem1197 = new \metastore\ExtendedTableInfo(); + $xfer += $elem1197->read($input); + $this->success []= $elem1197; } $xfer += $input->readListEnd(); } else { @@ -24436,9 +24710,9 @@ class ThriftHiveMetastore_get_tables_ext_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1191) + foreach ($this->success as $iter1198) { - $xfer += $iter1191->write($output); + $xfer += $iter1198->write($output); } } $output->writeListEnd(); @@ -25643,14 +25917,14 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1192 = 0; - $_etype1195 = 0; - $xfer += $input->readListBegin($_etype1195, $_size1192); - for ($_i1196 = 0; $_i1196 < $_size1192; ++$_i1196) + $_size1199 = 0; + $_etype1202 = 0; + $xfer += $input->readListBegin($_etype1202, $_size1199); + for ($_i1203 = 0; $_i1203 < $_size1199; ++$_i1203) { - $elem1197 = null; - $xfer += $input->readString($elem1197); - $this->success []= $elem1197; + $elem1204 = null; + $xfer += $input->readString($elem1204); + $this->success []= $elem1204; } $xfer += $input->readListEnd(); } else { @@ -25702,9 +25976,9 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1198) + foreach ($this->success as $iter1205) { - $xfer += $output->writeString($iter1198); + $xfer += $output->writeString($iter1205); } } $output->writeListEnd(); @@ -27227,15 +27501,15 @@ class ThriftHiveMetastore_add_partitions_args { case 1: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size1199 = 0; - $_etype1202 = 0; - $xfer += $input->readListBegin($_etype1202, $_size1199); - for ($_i1203 = 0; $_i1203 < $_size1199; ++$_i1203) + $_size1206 = 0; + $_etype1209 = 0; + $xfer += $input->readListBegin($_etype1209, $_size1206); + for ($_i1210 = 0; $_i1210 < $_size1206; ++$_i1210) { - $elem1204 = null; - $elem1204 = new \metastore\Partition(); - $xfer += $elem1204->read($input); - $this->new_parts []= $elem1204; + $elem1211 = null; + $elem1211 = new \metastore\Partition(); + $xfer += $elem1211->read($input); + $this->new_parts []= $elem1211; } $xfer += $input->readListEnd(); } else { @@ -27263,9 +27537,9 @@ class ThriftHiveMetastore_add_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter1205) + foreach ($this->new_parts as $iter1212) { - $xfer += $iter1205->write($output); + $xfer += $iter1212->write($output); } } $output->writeListEnd(); @@ -27480,15 +27754,15 @@ class ThriftHiveMetastore_add_partitions_pspec_args { case 1: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size1206 = 0; - $_etype1209 = 0; - $xfer += $input->readListBegin($_etype1209, $_size1206); - for ($_i1210 = 0; $_i1210 < $_size1206; ++$_i1210) + $_size1213 = 0; + $_etype1216 = 0; + $xfer += $input->readListBegin($_etype1216, $_size1213); + for ($_i1217 = 0; $_i1217 < $_size1213; ++$_i1217) { - $elem1211 = null; - $elem1211 = new \metastore\PartitionSpec(); - $xfer += $elem1211->read($input); - $this->new_parts []= $elem1211; + $elem1218 = null; + $elem1218 = new \metastore\PartitionSpec(); + $xfer += $elem1218->read($input); + $this->new_parts []= $elem1218; } $xfer += $input->readListEnd(); } else { @@ -27516,9 +27790,9 @@ class ThriftHiveMetastore_add_partitions_pspec_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter1212) + foreach ($this->new_parts as $iter1219) { - $xfer += $iter1212->write($output); + $xfer += $iter1219->write($output); } } $output->writeListEnd(); @@ -27768,14 +28042,14 @@ class ThriftHiveMetastore_append_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1213 = 0; - $_etype1216 = 0; - $xfer += $input->readListBegin($_etype1216, $_size1213); - for ($_i1217 = 0; $_i1217 < $_size1213; ++$_i1217) + $_size1220 = 0; + $_etype1223 = 0; + $xfer += $input->readListBegin($_etype1223, $_size1220); + for ($_i1224 = 0; $_i1224 < $_size1220; ++$_i1224) { - $elem1218 = null; - $xfer += $input->readString($elem1218); - $this->part_vals []= $elem1218; + $elem1225 = null; + $xfer += $input->readString($elem1225); + $this->part_vals []= $elem1225; } $xfer += $input->readListEnd(); } else { @@ -27813,9 +28087,9 @@ class ThriftHiveMetastore_append_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1219) + foreach ($this->part_vals as $iter1226) { - $xfer += $output->writeString($iter1219); + $xfer += $output->writeString($iter1226); } } $output->writeListEnd(); @@ -28317,14 +28591,14 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1220 = 0; - $_etype1223 = 0; - $xfer += $input->readListBegin($_etype1223, $_size1220); - for ($_i1224 = 0; $_i1224 < $_size1220; ++$_i1224) + $_size1227 = 0; + $_etype1230 = 0; + $xfer += $input->readListBegin($_etype1230, $_size1227); + for ($_i1231 = 0; $_i1231 < $_size1227; ++$_i1231) { - $elem1225 = null; - $xfer += $input->readString($elem1225); - $this->part_vals []= $elem1225; + $elem1232 = null; + $xfer += $input->readString($elem1232); + $this->part_vals []= $elem1232; } $xfer += $input->readListEnd(); } else { @@ -28370,9 +28644,9 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1226) + foreach ($this->part_vals as $iter1233) { - $xfer += $output->writeString($iter1226); + $xfer += $output->writeString($iter1233); } } $output->writeListEnd(); @@ -29226,14 +29500,14 @@ class ThriftHiveMetastore_drop_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1227 = 0; - $_etype1230 = 0; - $xfer += $input->readListBegin($_etype1230, $_size1227); - for ($_i1231 = 0; $_i1231 < $_size1227; ++$_i1231) + $_size1234 = 0; + $_etype1237 = 0; + $xfer += $input->readListBegin($_etype1237, $_size1234); + for ($_i1238 = 0; $_i1238 < $_size1234; ++$_i1238) { - $elem1232 = null; - $xfer += $input->readString($elem1232); - $this->part_vals []= $elem1232; + $elem1239 = null; + $xfer += $input->readString($elem1239); + $this->part_vals []= $elem1239; } $xfer += $input->readListEnd(); } else { @@ -29278,9 +29552,9 @@ class ThriftHiveMetastore_drop_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1233) + foreach ($this->part_vals as $iter1240) { - $xfer += $output->writeString($iter1233); + $xfer += $output->writeString($iter1240); } } $output->writeListEnd(); @@ -29533,14 +29807,14 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1234 = 0; - $_etype1237 = 0; - $xfer += $input->readListBegin($_etype1237, $_size1234); - for ($_i1238 = 0; $_i1238 < $_size1234; ++$_i1238) + $_size1241 = 0; + $_etype1244 = 0; + $xfer += $input->readListBegin($_etype1244, $_size1241); + for ($_i1245 = 0; $_i1245 < $_size1241; ++$_i1245) { - $elem1239 = null; - $xfer += $input->readString($elem1239); - $this->part_vals []= $elem1239; + $elem1246 = null; + $xfer += $input->readString($elem1246); + $this->part_vals []= $elem1246; } $xfer += $input->readListEnd(); } else { @@ -29593,9 +29867,9 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1240) + foreach ($this->part_vals as $iter1247) { - $xfer += $output->writeString($iter1240); + $xfer += $output->writeString($iter1247); } } $output->writeListEnd(); @@ -30609,14 +30883,14 @@ class ThriftHiveMetastore_get_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1241 = 0; - $_etype1244 = 0; - $xfer += $input->readListBegin($_etype1244, $_size1241); - for ($_i1245 = 0; $_i1245 < $_size1241; ++$_i1245) + $_size1248 = 0; + $_etype1251 = 0; + $xfer += $input->readListBegin($_etype1251, $_size1248); + for ($_i1252 = 0; $_i1252 < $_size1248; ++$_i1252) { - $elem1246 = null; - $xfer += $input->readString($elem1246); - $this->part_vals []= $elem1246; + $elem1253 = null; + $xfer += $input->readString($elem1253); + $this->part_vals []= $elem1253; } $xfer += $input->readListEnd(); } else { @@ -30654,9 +30928,9 @@ class ThriftHiveMetastore_get_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1247) + foreach ($this->part_vals as $iter1254) { - $xfer += $output->writeString($iter1247); + $xfer += $output->writeString($iter1254); } } $output->writeListEnd(); @@ -30898,17 +31172,17 @@ class ThriftHiveMetastore_exchange_partition_args { case 1: if ($ftype == TType::MAP) { $this->partitionSpecs = array(); - $_size1248 = 0; - $_ktype1249 = 0; - $_vtype1250 = 0; - $xfer += $input->readMapBegin($_ktype1249, $_vtype1250, $_size1248); - for ($_i1252 = 0; $_i1252 < $_size1248; ++$_i1252) + $_size1255 = 0; + $_ktype1256 = 0; + $_vtype1257 = 0; + $xfer += $input->readMapBegin($_ktype1256, $_vtype1257, $_size1255); + for ($_i1259 = 0; $_i1259 < $_size1255; ++$_i1259) { - $key1253 = ''; - $val1254 = ''; - $xfer += $input->readString($key1253); - $xfer += $input->readString($val1254); - $this->partitionSpecs[$key1253] = $val1254; + $key1260 = ''; + $val1261 = ''; + $xfer += $input->readString($key1260); + $xfer += $input->readString($val1261); + $this->partitionSpecs[$key1260] = $val1261; } $xfer += $input->readMapEnd(); } else { @@ -30964,10 +31238,10 @@ class ThriftHiveMetastore_exchange_partition_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); { - foreach ($this->partitionSpecs as $kiter1255 => $viter1256) + foreach ($this->partitionSpecs as $kiter1262 => $viter1263) { - $xfer += $output->writeString($kiter1255); - $xfer += $output->writeString($viter1256); + $xfer += $output->writeString($kiter1262); + $xfer += $output->writeString($viter1263); } } $output->writeMapEnd(); @@ -31279,17 +31553,17 @@ class ThriftHiveMetastore_exchange_partitions_args { case 1: if ($ftype == TType::MAP) { $this->partitionSpecs = array(); - $_size1257 = 0; - $_ktype1258 = 0; - $_vtype1259 = 0; - $xfer += $input->readMapBegin($_ktype1258, $_vtype1259, $_size1257); - for ($_i1261 = 0; $_i1261 < $_size1257; ++$_i1261) + $_size1264 = 0; + $_ktype1265 = 0; + $_vtype1266 = 0; + $xfer += $input->readMapBegin($_ktype1265, $_vtype1266, $_size1264); + for ($_i1268 = 0; $_i1268 < $_size1264; ++$_i1268) { - $key1262 = ''; - $val1263 = ''; - $xfer += $input->readString($key1262); - $xfer += $input->readString($val1263); - $this->partitionSpecs[$key1262] = $val1263; + $key1269 = ''; + $val1270 = ''; + $xfer += $input->readString($key1269); + $xfer += $input->readString($val1270); + $this->partitionSpecs[$key1269] = $val1270; } $xfer += $input->readMapEnd(); } else { @@ -31345,10 +31619,10 @@ class ThriftHiveMetastore_exchange_partitions_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); { - foreach ($this->partitionSpecs as $kiter1264 => $viter1265) + foreach ($this->partitionSpecs as $kiter1271 => $viter1272) { - $xfer += $output->writeString($kiter1264); - $xfer += $output->writeString($viter1265); + $xfer += $output->writeString($kiter1271); + $xfer += $output->writeString($viter1272); } } $output->writeMapEnd(); @@ -31481,15 +31755,15 @@ class ThriftHiveMetastore_exchange_partitions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1266 = 0; - $_etype1269 = 0; - $xfer += $input->readListBegin($_etype1269, $_size1266); - for ($_i1270 = 0; $_i1270 < $_size1266; ++$_i1270) + $_size1273 = 0; + $_etype1276 = 0; + $xfer += $input->readListBegin($_etype1276, $_size1273); + for ($_i1277 = 0; $_i1277 < $_size1273; ++$_i1277) { - $elem1271 = null; - $elem1271 = new \metastore\Partition(); - $xfer += $elem1271->read($input); - $this->success []= $elem1271; + $elem1278 = null; + $elem1278 = new \metastore\Partition(); + $xfer += $elem1278->read($input); + $this->success []= $elem1278; } $xfer += $input->readListEnd(); } else { @@ -31549,9 +31823,9 @@ class ThriftHiveMetastore_exchange_partitions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1272) + foreach ($this->success as $iter1279) { - $xfer += $iter1272->write($output); + $xfer += $iter1279->write($output); } } $output->writeListEnd(); @@ -31697,14 +31971,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1273 = 0; - $_etype1276 = 0; - $xfer += $input->readListBegin($_etype1276, $_size1273); - for ($_i1277 = 0; $_i1277 < $_size1273; ++$_i1277) + $_size1280 = 0; + $_etype1283 = 0; + $xfer += $input->readListBegin($_etype1283, $_size1280); + for ($_i1284 = 0; $_i1284 < $_size1280; ++$_i1284) { - $elem1278 = null; - $xfer += $input->readString($elem1278); - $this->part_vals []= $elem1278; + $elem1285 = null; + $xfer += $input->readString($elem1285); + $this->part_vals []= $elem1285; } $xfer += $input->readListEnd(); } else { @@ -31721,14 +31995,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1279 = 0; - $_etype1282 = 0; - $xfer += $input->readListBegin($_etype1282, $_size1279); - for ($_i1283 = 0; $_i1283 < $_size1279; ++$_i1283) + $_size1286 = 0; + $_etype1289 = 0; + $xfer += $input->readListBegin($_etype1289, $_size1286); + for ($_i1290 = 0; $_i1290 < $_size1286; ++$_i1290) { - $elem1284 = null; - $xfer += $input->readString($elem1284); - $this->group_names []= $elem1284; + $elem1291 = null; + $xfer += $input->readString($elem1291); + $this->group_names []= $elem1291; } $xfer += $input->readListEnd(); } else { @@ -31766,9 +32040,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1285) + foreach ($this->part_vals as $iter1292) { - $xfer += $output->writeString($iter1285); + $xfer += $output->writeString($iter1292); } } $output->writeListEnd(); @@ -31788,9 +32062,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1286) + foreach ($this->group_names as $iter1293) { - $xfer += $output->writeString($iter1286); + $xfer += $output->writeString($iter1293); } } $output->writeListEnd(); @@ -32381,15 +32655,15 @@ class ThriftHiveMetastore_get_partitions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1287 = 0; - $_etype1290 = 0; - $xfer += $input->readListBegin($_etype1290, $_size1287); - for ($_i1291 = 0; $_i1291 < $_size1287; ++$_i1291) + $_size1294 = 0; + $_etype1297 = 0; + $xfer += $input->readListBegin($_etype1297, $_size1294); + for ($_i1298 = 0; $_i1298 < $_size1294; ++$_i1298) { - $elem1292 = null; - $elem1292 = new \metastore\Partition(); - $xfer += $elem1292->read($input); - $this->success []= $elem1292; + $elem1299 = null; + $elem1299 = new \metastore\Partition(); + $xfer += $elem1299->read($input); + $this->success []= $elem1299; } $xfer += $input->readListEnd(); } else { @@ -32433,9 +32707,9 @@ class ThriftHiveMetastore_get_partitions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1293) + foreach ($this->success as $iter1300) { - $xfer += $iter1293->write($output); + $xfer += $iter1300->write($output); } } $output->writeListEnd(); @@ -32581,14 +32855,14 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1294 = 0; - $_etype1297 = 0; - $xfer += $input->readListBegin($_etype1297, $_size1294); - for ($_i1298 = 0; $_i1298 < $_size1294; ++$_i1298) + $_size1301 = 0; + $_etype1304 = 0; + $xfer += $input->readListBegin($_etype1304, $_size1301); + for ($_i1305 = 0; $_i1305 < $_size1301; ++$_i1305) { - $elem1299 = null; - $xfer += $input->readString($elem1299); - $this->group_names []= $elem1299; + $elem1306 = null; + $xfer += $input->readString($elem1306); + $this->group_names []= $elem1306; } $xfer += $input->readListEnd(); } else { @@ -32636,9 +32910,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1300) + foreach ($this->group_names as $iter1307) { - $xfer += $output->writeString($iter1300); + $xfer += $output->writeString($iter1307); } } $output->writeListEnd(); @@ -32727,15 +33001,15 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1301 = 0; - $_etype1304 = 0; - $xfer += $input->readListBegin($_etype1304, $_size1301); - for ($_i1305 = 0; $_i1305 < $_size1301; ++$_i1305) + $_size1308 = 0; + $_etype1311 = 0; + $xfer += $input->readListBegin($_etype1311, $_size1308); + for ($_i1312 = 0; $_i1312 < $_size1308; ++$_i1312) { - $elem1306 = null; - $elem1306 = new \metastore\Partition(); - $xfer += $elem1306->read($input); - $this->success []= $elem1306; + $elem1313 = null; + $elem1313 = new \metastore\Partition(); + $xfer += $elem1313->read($input); + $this->success []= $elem1313; } $xfer += $input->readListEnd(); } else { @@ -32779,9 +33053,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1307) + foreach ($this->success as $iter1314) { - $xfer += $iter1307->write($output); + $xfer += $iter1314->write($output); } } $output->writeListEnd(); @@ -33001,15 +33275,15 @@ class ThriftHiveMetastore_get_partitions_pspec_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1308 = 0; - $_etype1311 = 0; - $xfer += $input->readListBegin($_etype1311, $_size1308); - for ($_i1312 = 0; $_i1312 < $_size1308; ++$_i1312) + $_size1315 = 0; + $_etype1318 = 0; + $xfer += $input->readListBegin($_etype1318, $_size1315); + for ($_i1319 = 0; $_i1319 < $_size1315; ++$_i1319) { - $elem1313 = null; - $elem1313 = new \metastore\PartitionSpec(); - $xfer += $elem1313->read($input); - $this->success []= $elem1313; + $elem1320 = null; + $elem1320 = new \metastore\PartitionSpec(); + $xfer += $elem1320->read($input); + $this->success []= $elem1320; } $xfer += $input->readListEnd(); } else { @@ -33053,9 +33327,9 @@ class ThriftHiveMetastore_get_partitions_pspec_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1314) + foreach ($this->success as $iter1321) { - $xfer += $iter1314->write($output); + $xfer += $iter1321->write($output); } } $output->writeListEnd(); @@ -33274,14 +33548,14 @@ class ThriftHiveMetastore_get_partition_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1315 = 0; - $_etype1318 = 0; - $xfer += $input->readListBegin($_etype1318, $_size1315); - for ($_i1319 = 0; $_i1319 < $_size1315; ++$_i1319) + $_size1322 = 0; + $_etype1325 = 0; + $xfer += $input->readListBegin($_etype1325, $_size1322); + for ($_i1326 = 0; $_i1326 < $_size1322; ++$_i1326) { - $elem1320 = null; - $xfer += $input->readString($elem1320); - $this->success []= $elem1320; + $elem1327 = null; + $xfer += $input->readString($elem1327); + $this->success []= $elem1327; } $xfer += $input->readListEnd(); } else { @@ -33325,9 +33599,9 @@ class ThriftHiveMetastore_get_partition_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1321) + foreach ($this->success as $iter1328) { - $xfer += $output->writeString($iter1321); + $xfer += $output->writeString($iter1328); } } $output->writeListEnd(); @@ -33658,14 +33932,14 @@ class ThriftHiveMetastore_get_partitions_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1322 = 0; - $_etype1325 = 0; - $xfer += $input->readListBegin($_etype1325, $_size1322); - for ($_i1326 = 0; $_i1326 < $_size1322; ++$_i1326) + $_size1329 = 0; + $_etype1332 = 0; + $xfer += $input->readListBegin($_etype1332, $_size1329); + for ($_i1333 = 0; $_i1333 < $_size1329; ++$_i1333) { - $elem1327 = null; - $xfer += $input->readString($elem1327); - $this->part_vals []= $elem1327; + $elem1334 = null; + $xfer += $input->readString($elem1334); + $this->part_vals []= $elem1334; } $xfer += $input->readListEnd(); } else { @@ -33710,9 +33984,9 @@ class ThriftHiveMetastore_get_partitions_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1328) + foreach ($this->part_vals as $iter1335) { - $xfer += $output->writeString($iter1328); + $xfer += $output->writeString($iter1335); } } $output->writeListEnd(); @@ -33806,15 +34080,15 @@ class ThriftHiveMetastore_get_partitions_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1329 = 0; - $_etype1332 = 0; - $xfer += $input->readListBegin($_etype1332, $_size1329); - for ($_i1333 = 0; $_i1333 < $_size1329; ++$_i1333) + $_size1336 = 0; + $_etype1339 = 0; + $xfer += $input->readListBegin($_etype1339, $_size1336); + for ($_i1340 = 0; $_i1340 < $_size1336; ++$_i1340) { - $elem1334 = null; - $elem1334 = new \metastore\Partition(); - $xfer += $elem1334->read($input); - $this->success []= $elem1334; + $elem1341 = null; + $elem1341 = new \metastore\Partition(); + $xfer += $elem1341->read($input); + $this->success []= $elem1341; } $xfer += $input->readListEnd(); } else { @@ -33858,9 +34132,9 @@ class ThriftHiveMetastore_get_partitions_ps_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1335) + foreach ($this->success as $iter1342) { - $xfer += $iter1335->write($output); + $xfer += $iter1342->write($output); } } $output->writeListEnd(); @@ -34007,14 +34281,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1336 = 0; - $_etype1339 = 0; - $xfer += $input->readListBegin($_etype1339, $_size1336); - for ($_i1340 = 0; $_i1340 < $_size1336; ++$_i1340) + $_size1343 = 0; + $_etype1346 = 0; + $xfer += $input->readListBegin($_etype1346, $_size1343); + for ($_i1347 = 0; $_i1347 < $_size1343; ++$_i1347) { - $elem1341 = null; - $xfer += $input->readString($elem1341); - $this->part_vals []= $elem1341; + $elem1348 = null; + $xfer += $input->readString($elem1348); + $this->part_vals []= $elem1348; } $xfer += $input->readListEnd(); } else { @@ -34038,14 +34312,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 6: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1342 = 0; - $_etype1345 = 0; - $xfer += $input->readListBegin($_etype1345, $_size1342); - for ($_i1346 = 0; $_i1346 < $_size1342; ++$_i1346) + $_size1349 = 0; + $_etype1352 = 0; + $xfer += $input->readListBegin($_etype1352, $_size1349); + for ($_i1353 = 0; $_i1353 < $_size1349; ++$_i1353) { - $elem1347 = null; - $xfer += $input->readString($elem1347); - $this->group_names []= $elem1347; + $elem1354 = null; + $xfer += $input->readString($elem1354); + $this->group_names []= $elem1354; } $xfer += $input->readListEnd(); } else { @@ -34083,9 +34357,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1348) + foreach ($this->part_vals as $iter1355) { - $xfer += $output->writeString($iter1348); + $xfer += $output->writeString($iter1355); } } $output->writeListEnd(); @@ -34110,9 +34384,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1349) + foreach ($this->group_names as $iter1356) { - $xfer += $output->writeString($iter1349); + $xfer += $output->writeString($iter1356); } } $output->writeListEnd(); @@ -34201,15 +34475,15 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1350 = 0; - $_etype1353 = 0; - $xfer += $input->readListBegin($_etype1353, $_size1350); - for ($_i1354 = 0; $_i1354 < $_size1350; ++$_i1354) + $_size1357 = 0; + $_etype1360 = 0; + $xfer += $input->readListBegin($_etype1360, $_size1357); + for ($_i1361 = 0; $_i1361 < $_size1357; ++$_i1361) { - $elem1355 = null; - $elem1355 = new \metastore\Partition(); - $xfer += $elem1355->read($input); - $this->success []= $elem1355; + $elem1362 = null; + $elem1362 = new \metastore\Partition(); + $xfer += $elem1362->read($input); + $this->success []= $elem1362; } $xfer += $input->readListEnd(); } else { @@ -34253,9 +34527,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1356) + foreach ($this->success as $iter1363) { - $xfer += $iter1356->write($output); + $xfer += $iter1363->write($output); } } $output->writeListEnd(); @@ -34376,14 +34650,14 @@ class ThriftHiveMetastore_get_partition_names_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1357 = 0; - $_etype1360 = 0; - $xfer += $input->readListBegin($_etype1360, $_size1357); - for ($_i1361 = 0; $_i1361 < $_size1357; ++$_i1361) + $_size1364 = 0; + $_etype1367 = 0; + $xfer += $input->readListBegin($_etype1367, $_size1364); + for ($_i1368 = 0; $_i1368 < $_size1364; ++$_i1368) { - $elem1362 = null; - $xfer += $input->readString($elem1362); - $this->part_vals []= $elem1362; + $elem1369 = null; + $xfer += $input->readString($elem1369); + $this->part_vals []= $elem1369; } $xfer += $input->readListEnd(); } else { @@ -34428,9 +34702,9 @@ class ThriftHiveMetastore_get_partition_names_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1363) + foreach ($this->part_vals as $iter1370) { - $xfer += $output->writeString($iter1363); + $xfer += $output->writeString($iter1370); } } $output->writeListEnd(); @@ -34523,14 +34797,14 @@ class ThriftHiveMetastore_get_partition_names_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1364 = 0; - $_etype1367 = 0; - $xfer += $input->readListBegin($_etype1367, $_size1364); - for ($_i1368 = 0; $_i1368 < $_size1364; ++$_i1368) + $_size1371 = 0; + $_etype1374 = 0; + $xfer += $input->readListBegin($_etype1374, $_size1371); + for ($_i1375 = 0; $_i1375 < $_size1371; ++$_i1375) { - $elem1369 = null; - $xfer += $input->readString($elem1369); - $this->success []= $elem1369; + $elem1376 = null; + $xfer += $input->readString($elem1376); + $this->success []= $elem1376; } $xfer += $input->readListEnd(); } else { @@ -34574,9 +34848,9 @@ class ThriftHiveMetastore_get_partition_names_ps_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1370) + foreach ($this->success as $iter1377) { - $xfer += $output->writeString($iter1370); + $xfer += $output->writeString($iter1377); } } $output->writeListEnd(); @@ -34819,15 +35093,15 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1371 = 0; - $_etype1374 = 0; - $xfer += $input->readListBegin($_etype1374, $_size1371); - for ($_i1375 = 0; $_i1375 < $_size1371; ++$_i1375) + $_size1378 = 0; + $_etype1381 = 0; + $xfer += $input->readListBegin($_etype1381, $_size1378); + for ($_i1382 = 0; $_i1382 < $_size1378; ++$_i1382) { - $elem1376 = null; - $elem1376 = new \metastore\Partition(); - $xfer += $elem1376->read($input); - $this->success []= $elem1376; + $elem1383 = null; + $elem1383 = new \metastore\Partition(); + $xfer += $elem1383->read($input); + $this->success []= $elem1383; } $xfer += $input->readListEnd(); } else { @@ -34871,9 +35145,9 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1377) + foreach ($this->success as $iter1384) { - $xfer += $iter1377->write($output); + $xfer += $iter1384->write($output); } } $output->writeListEnd(); @@ -35116,15 +35390,15 @@ class ThriftHiveMetastore_get_part_specs_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1378 = 0; - $_etype1381 = 0; - $xfer += $input->readListBegin($_etype1381, $_size1378); - for ($_i1382 = 0; $_i1382 < $_size1378; ++$_i1382) + $_size1385 = 0; + $_etype1388 = 0; + $xfer += $input->readListBegin($_etype1388, $_size1385); + for ($_i1389 = 0; $_i1389 < $_size1385; ++$_i1389) { - $elem1383 = null; - $elem1383 = new \metastore\PartitionSpec(); - $xfer += $elem1383->read($input); - $this->success []= $elem1383; + $elem1390 = null; + $elem1390 = new \metastore\PartitionSpec(); + $xfer += $elem1390->read($input); + $this->success []= $elem1390; } $xfer += $input->readListEnd(); } else { @@ -35168,9 +35442,9 @@ class ThriftHiveMetastore_get_part_specs_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1384) + foreach ($this->success as $iter1391) { - $xfer += $iter1384->write($output); + $xfer += $iter1391->write($output); } } $output->writeListEnd(); @@ -35736,14 +36010,14 @@ class ThriftHiveMetastore_get_partitions_by_names_args { case 3: if ($ftype == TType::LST) { $this->names = array(); - $_size1385 = 0; - $_etype1388 = 0; - $xfer += $input->readListBegin($_etype1388, $_size1385); - for ($_i1389 = 0; $_i1389 < $_size1385; ++$_i1389) + $_size1392 = 0; + $_etype1395 = 0; + $xfer += $input->readListBegin($_etype1395, $_size1392); + for ($_i1396 = 0; $_i1396 < $_size1392; ++$_i1396) { - $elem1390 = null; - $xfer += $input->readString($elem1390); - $this->names []= $elem1390; + $elem1397 = null; + $xfer += $input->readString($elem1397); + $this->names []= $elem1397; } $xfer += $input->readListEnd(); } else { @@ -35781,9 +36055,9 @@ class ThriftHiveMetastore_get_partitions_by_names_args { { $output->writeListBegin(TType::STRING, count($this->names)); { - foreach ($this->names as $iter1391) + foreach ($this->names as $iter1398) { - $xfer += $output->writeString($iter1391); + $xfer += $output->writeString($iter1398); } } $output->writeListEnd(); @@ -35872,15 +36146,15 @@ class ThriftHiveMetastore_get_partitions_by_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1392 = 0; - $_etype1395 = 0; - $xfer += $input->readListBegin($_etype1395, $_size1392); - for ($_i1396 = 0; $_i1396 < $_size1392; ++$_i1396) + $_size1399 = 0; + $_etype1402 = 0; + $xfer += $input->readListBegin($_etype1402, $_size1399); + for ($_i1403 = 0; $_i1403 < $_size1399; ++$_i1403) { - $elem1397 = null; - $elem1397 = new \metastore\Partition(); - $xfer += $elem1397->read($input); - $this->success []= $elem1397; + $elem1404 = null; + $elem1404 = new \metastore\Partition(); + $xfer += $elem1404->read($input); + $this->success []= $elem1404; } $xfer += $input->readListEnd(); } else { @@ -35924,9 +36198,9 @@ class ThriftHiveMetastore_get_partitions_by_names_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1398) + foreach ($this->success as $iter1405) { - $xfer += $iter1398->write($output); + $xfer += $iter1405->write($output); } } $output->writeListEnd(); @@ -36475,15 +36749,15 @@ class ThriftHiveMetastore_alter_partitions_args { case 3: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size1399 = 0; - $_etype1402 = 0; - $xfer += $input->readListBegin($_etype1402, $_size1399); - for ($_i1403 = 0; $_i1403 < $_size1399; ++$_i1403) + $_size1406 = 0; + $_etype1409 = 0; + $xfer += $input->readListBegin($_etype1409, $_size1406); + for ($_i1410 = 0; $_i1410 < $_size1406; ++$_i1410) { - $elem1404 = null; - $elem1404 = new \metastore\Partition(); - $xfer += $elem1404->read($input); - $this->new_parts []= $elem1404; + $elem1411 = null; + $elem1411 = new \metastore\Partition(); + $xfer += $elem1411->read($input); + $this->new_parts []= $elem1411; } $xfer += $input->readListEnd(); } else { @@ -36521,9 +36795,9 @@ class ThriftHiveMetastore_alter_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter1405) + foreach ($this->new_parts as $iter1412) { - $xfer += $iter1405->write($output); + $xfer += $iter1412->write($output); } } $output->writeListEnd(); @@ -36738,15 +37012,15 @@ class ThriftHiveMetastore_alter_partitions_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size1406 = 0; - $_etype1409 = 0; - $xfer += $input->readListBegin($_etype1409, $_size1406); - for ($_i1410 = 0; $_i1410 < $_size1406; ++$_i1410) + $_size1413 = 0; + $_etype1416 = 0; + $xfer += $input->readListBegin($_etype1416, $_size1413); + for ($_i1417 = 0; $_i1417 < $_size1413; ++$_i1417) { - $elem1411 = null; - $elem1411 = new \metastore\Partition(); - $xfer += $elem1411->read($input); - $this->new_parts []= $elem1411; + $elem1418 = null; + $elem1418 = new \metastore\Partition(); + $xfer += $elem1418->read($input); + $this->new_parts []= $elem1418; } $xfer += $input->readListEnd(); } else { @@ -36792,9 +37066,9 @@ class ThriftHiveMetastore_alter_partitions_with_environment_context_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter1412) + foreach ($this->new_parts as $iter1419) { - $xfer += $iter1412->write($output); + $xfer += $iter1419->write($output); } } $output->writeListEnd(); @@ -37482,14 +37756,14 @@ class ThriftHiveMetastore_rename_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1413 = 0; - $_etype1416 = 0; - $xfer += $input->readListBegin($_etype1416, $_size1413); - for ($_i1417 = 0; $_i1417 < $_size1413; ++$_i1417) + $_size1420 = 0; + $_etype1423 = 0; + $xfer += $input->readListBegin($_etype1423, $_size1420); + for ($_i1424 = 0; $_i1424 < $_size1420; ++$_i1424) { - $elem1418 = null; - $xfer += $input->readString($elem1418); - $this->part_vals []= $elem1418; + $elem1425 = null; + $xfer += $input->readString($elem1425); + $this->part_vals []= $elem1425; } $xfer += $input->readListEnd(); } else { @@ -37535,9 +37809,9 @@ class ThriftHiveMetastore_rename_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1419) + foreach ($this->part_vals as $iter1426) { - $xfer += $output->writeString($iter1419); + $xfer += $output->writeString($iter1426); } } $output->writeListEnd(); @@ -37932,14 +38206,14 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { case 1: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1420 = 0; - $_etype1423 = 0; - $xfer += $input->readListBegin($_etype1423, $_size1420); - for ($_i1424 = 0; $_i1424 < $_size1420; ++$_i1424) + $_size1427 = 0; + $_etype1430 = 0; + $xfer += $input->readListBegin($_etype1430, $_size1427); + for ($_i1431 = 0; $_i1431 < $_size1427; ++$_i1431) { - $elem1425 = null; - $xfer += $input->readString($elem1425); - $this->part_vals []= $elem1425; + $elem1432 = null; + $xfer += $input->readString($elem1432); + $this->part_vals []= $elem1432; } $xfer += $input->readListEnd(); } else { @@ -37974,9 +38248,9 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1426) + foreach ($this->part_vals as $iter1433) { - $xfer += $output->writeString($iter1426); + $xfer += $output->writeString($iter1433); } } $output->writeListEnd(); @@ -38430,14 +38704,14 @@ class ThriftHiveMetastore_partition_name_to_vals_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1427 = 0; - $_etype1430 = 0; - $xfer += $input->readListBegin($_etype1430, $_size1427); - for ($_i1431 = 0; $_i1431 < $_size1427; ++$_i1431) + $_size1434 = 0; + $_etype1437 = 0; + $xfer += $input->readListBegin($_etype1437, $_size1434); + for ($_i1438 = 0; $_i1438 < $_size1434; ++$_i1438) { - $elem1432 = null; - $xfer += $input->readString($elem1432); - $this->success []= $elem1432; + $elem1439 = null; + $xfer += $input->readString($elem1439); + $this->success []= $elem1439; } $xfer += $input->readListEnd(); } else { @@ -38473,9 +38747,9 @@ class ThriftHiveMetastore_partition_name_to_vals_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1433) + foreach ($this->success as $iter1440) { - $xfer += $output->writeString($iter1433); + $xfer += $output->writeString($iter1440); } } $output->writeListEnd(); @@ -38635,17 +38909,17 @@ class ThriftHiveMetastore_partition_name_to_spec_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size1434 = 0; - $_ktype1435 = 0; - $_vtype1436 = 0; - $xfer += $input->readMapBegin($_ktype1435, $_vtype1436, $_size1434); - for ($_i1438 = 0; $_i1438 < $_size1434; ++$_i1438) + $_size1441 = 0; + $_ktype1442 = 0; + $_vtype1443 = 0; + $xfer += $input->readMapBegin($_ktype1442, $_vtype1443, $_size1441); + for ($_i1445 = 0; $_i1445 < $_size1441; ++$_i1445) { - $key1439 = ''; - $val1440 = ''; - $xfer += $input->readString($key1439); - $xfer += $input->readString($val1440); - $this->success[$key1439] = $val1440; + $key1446 = ''; + $val1447 = ''; + $xfer += $input->readString($key1446); + $xfer += $input->readString($val1447); + $this->success[$key1446] = $val1447; } $xfer += $input->readMapEnd(); } else { @@ -38681,10 +38955,10 @@ class ThriftHiveMetastore_partition_name_to_spec_result { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->success)); { - foreach ($this->success as $kiter1441 => $viter1442) + foreach ($this->success as $kiter1448 => $viter1449) { - $xfer += $output->writeString($kiter1441); - $xfer += $output->writeString($viter1442); + $xfer += $output->writeString($kiter1448); + $xfer += $output->writeString($viter1449); } } $output->writeMapEnd(); @@ -38804,17 +39078,17 @@ class ThriftHiveMetastore_markPartitionForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size1443 = 0; - $_ktype1444 = 0; - $_vtype1445 = 0; - $xfer += $input->readMapBegin($_ktype1444, $_vtype1445, $_size1443); - for ($_i1447 = 0; $_i1447 < $_size1443; ++$_i1447) + $_size1450 = 0; + $_ktype1451 = 0; + $_vtype1452 = 0; + $xfer += $input->readMapBegin($_ktype1451, $_vtype1452, $_size1450); + for ($_i1454 = 0; $_i1454 < $_size1450; ++$_i1454) { - $key1448 = ''; - $val1449 = ''; - $xfer += $input->readString($key1448); - $xfer += $input->readString($val1449); - $this->part_vals[$key1448] = $val1449; + $key1455 = ''; + $val1456 = ''; + $xfer += $input->readString($key1455); + $xfer += $input->readString($val1456); + $this->part_vals[$key1455] = $val1456; } $xfer += $input->readMapEnd(); } else { @@ -38859,10 +39133,10 @@ class ThriftHiveMetastore_markPartitionForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter1450 => $viter1451) + foreach ($this->part_vals as $kiter1457 => $viter1458) { - $xfer += $output->writeString($kiter1450); - $xfer += $output->writeString($viter1451); + $xfer += $output->writeString($kiter1457); + $xfer += $output->writeString($viter1458); } } $output->writeMapEnd(); @@ -39184,17 +39458,17 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size1452 = 0; - $_ktype1453 = 0; - $_vtype1454 = 0; - $xfer += $input->readMapBegin($_ktype1453, $_vtype1454, $_size1452); - for ($_i1456 = 0; $_i1456 < $_size1452; ++$_i1456) + $_size1459 = 0; + $_ktype1460 = 0; + $_vtype1461 = 0; + $xfer += $input->readMapBegin($_ktype1460, $_vtype1461, $_size1459); + for ($_i1463 = 0; $_i1463 < $_size1459; ++$_i1463) { - $key1457 = ''; - $val1458 = ''; - $xfer += $input->readString($key1457); - $xfer += $input->readString($val1458); - $this->part_vals[$key1457] = $val1458; + $key1464 = ''; + $val1465 = ''; + $xfer += $input->readString($key1464); + $xfer += $input->readString($val1465); + $this->part_vals[$key1464] = $val1465; } $xfer += $input->readMapEnd(); } else { @@ -39239,10 +39513,10 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter1459 => $viter1460) + foreach ($this->part_vals as $kiter1466 => $viter1467) { - $xfer += $output->writeString($kiter1459); - $xfer += $output->writeString($viter1460); + $xfer += $output->writeString($kiter1466); + $xfer += $output->writeString($viter1467); } } $output->writeMapEnd(); @@ -44767,14 +45041,14 @@ class ThriftHiveMetastore_get_functions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1461 = 0; - $_etype1464 = 0; - $xfer += $input->readListBegin($_etype1464, $_size1461); - for ($_i1465 = 0; $_i1465 < $_size1461; ++$_i1465) + $_size1468 = 0; + $_etype1471 = 0; + $xfer += $input->readListBegin($_etype1471, $_size1468); + for ($_i1472 = 0; $_i1472 < $_size1468; ++$_i1472) { - $elem1466 = null; - $xfer += $input->readString($elem1466); - $this->success []= $elem1466; + $elem1473 = null; + $xfer += $input->readString($elem1473); + $this->success []= $elem1473; } $xfer += $input->readListEnd(); } else { @@ -44810,9 +45084,9 @@ class ThriftHiveMetastore_get_functions_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1467) + foreach ($this->success as $iter1474) { - $xfer += $output->writeString($iter1467); + $xfer += $output->writeString($iter1474); } } $output->writeListEnd(); @@ -45681,14 +45955,14 @@ class ThriftHiveMetastore_get_role_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1468 = 0; - $_etype1471 = 0; - $xfer += $input->readListBegin($_etype1471, $_size1468); - for ($_i1472 = 0; $_i1472 < $_size1468; ++$_i1472) + $_size1475 = 0; + $_etype1478 = 0; + $xfer += $input->readListBegin($_etype1478, $_size1475); + for ($_i1479 = 0; $_i1479 < $_size1475; ++$_i1479) { - $elem1473 = null; - $xfer += $input->readString($elem1473); - $this->success []= $elem1473; + $elem1480 = null; + $xfer += $input->readString($elem1480); + $this->success []= $elem1480; } $xfer += $input->readListEnd(); } else { @@ -45724,9 +45998,9 @@ class ThriftHiveMetastore_get_role_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1474) + foreach ($this->success as $iter1481) { - $xfer += $output->writeString($iter1474); + $xfer += $output->writeString($iter1481); } } $output->writeListEnd(); @@ -46417,15 +46691,15 @@ class ThriftHiveMetastore_list_roles_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1475 = 0; - $_etype1478 = 0; - $xfer += $input->readListBegin($_etype1478, $_size1475); - for ($_i1479 = 0; $_i1479 < $_size1475; ++$_i1479) + $_size1482 = 0; + $_etype1485 = 0; + $xfer += $input->readListBegin($_etype1485, $_size1482); + for ($_i1486 = 0; $_i1486 < $_size1482; ++$_i1486) { - $elem1480 = null; - $elem1480 = new \metastore\Role(); - $xfer += $elem1480->read($input); - $this->success []= $elem1480; + $elem1487 = null; + $elem1487 = new \metastore\Role(); + $xfer += $elem1487->read($input); + $this->success []= $elem1487; } $xfer += $input->readListEnd(); } else { @@ -46461,9 +46735,9 @@ class ThriftHiveMetastore_list_roles_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1481) + foreach ($this->success as $iter1488) { - $xfer += $iter1481->write($output); + $xfer += $iter1488->write($output); } } $output->writeListEnd(); @@ -47125,14 +47399,14 @@ class ThriftHiveMetastore_get_privilege_set_args { case 3: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1482 = 0; - $_etype1485 = 0; - $xfer += $input->readListBegin($_etype1485, $_size1482); - for ($_i1486 = 0; $_i1486 < $_size1482; ++$_i1486) + $_size1489 = 0; + $_etype1492 = 0; + $xfer += $input->readListBegin($_etype1492, $_size1489); + for ($_i1493 = 0; $_i1493 < $_size1489; ++$_i1493) { - $elem1487 = null; - $xfer += $input->readString($elem1487); - $this->group_names []= $elem1487; + $elem1494 = null; + $xfer += $input->readString($elem1494); + $this->group_names []= $elem1494; } $xfer += $input->readListEnd(); } else { @@ -47173,9 +47447,9 @@ class ThriftHiveMetastore_get_privilege_set_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1488) + foreach ($this->group_names as $iter1495) { - $xfer += $output->writeString($iter1488); + $xfer += $output->writeString($iter1495); } } $output->writeListEnd(); @@ -47483,15 +47757,15 @@ class ThriftHiveMetastore_list_privileges_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1489 = 0; - $_etype1492 = 0; - $xfer += $input->readListBegin($_etype1492, $_size1489); - for ($_i1493 = 0; $_i1493 < $_size1489; ++$_i1493) + $_size1496 = 0; + $_etype1499 = 0; + $xfer += $input->readListBegin($_etype1499, $_size1496); + for ($_i1500 = 0; $_i1500 < $_size1496; ++$_i1500) { - $elem1494 = null; - $elem1494 = new \metastore\HiveObjectPrivilege(); - $xfer += $elem1494->read($input); - $this->success []= $elem1494; + $elem1501 = null; + $elem1501 = new \metastore\HiveObjectPrivilege(); + $xfer += $elem1501->read($input); + $this->success []= $elem1501; } $xfer += $input->readListEnd(); } else { @@ -47527,9 +47801,9 @@ class ThriftHiveMetastore_list_privileges_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1495) + foreach ($this->success as $iter1502) { - $xfer += $iter1495->write($output); + $xfer += $iter1502->write($output); } } $output->writeListEnd(); @@ -48397,14 +48671,14 @@ class ThriftHiveMetastore_set_ugi_args { case 2: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1496 = 0; - $_etype1499 = 0; - $xfer += $input->readListBegin($_etype1499, $_size1496); - for ($_i1500 = 0; $_i1500 < $_size1496; ++$_i1500) + $_size1503 = 0; + $_etype1506 = 0; + $xfer += $input->readListBegin($_etype1506, $_size1503); + for ($_i1507 = 0; $_i1507 < $_size1503; ++$_i1507) { - $elem1501 = null; - $xfer += $input->readString($elem1501); - $this->group_names []= $elem1501; + $elem1508 = null; + $xfer += $input->readString($elem1508); + $this->group_names []= $elem1508; } $xfer += $input->readListEnd(); } else { @@ -48437,9 +48711,9 @@ class ThriftHiveMetastore_set_ugi_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1502) + foreach ($this->group_names as $iter1509) { - $xfer += $output->writeString($iter1502); + $xfer += $output->writeString($iter1509); } } $output->writeListEnd(); @@ -48515,14 +48789,14 @@ class ThriftHiveMetastore_set_ugi_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1503 = 0; - $_etype1506 = 0; - $xfer += $input->readListBegin($_etype1506, $_size1503); - for ($_i1507 = 0; $_i1507 < $_size1503; ++$_i1507) + $_size1510 = 0; + $_etype1513 = 0; + $xfer += $input->readListBegin($_etype1513, $_size1510); + for ($_i1514 = 0; $_i1514 < $_size1510; ++$_i1514) { - $elem1508 = null; - $xfer += $input->readString($elem1508); - $this->success []= $elem1508; + $elem1515 = null; + $xfer += $input->readString($elem1515); + $this->success []= $elem1515; } $xfer += $input->readListEnd(); } else { @@ -48558,9 +48832,9 @@ class ThriftHiveMetastore_set_ugi_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1509) + foreach ($this->success as $iter1516) { - $xfer += $output->writeString($iter1509); + $xfer += $output->writeString($iter1516); } } $output->writeListEnd(); @@ -49677,14 +49951,14 @@ class ThriftHiveMetastore_get_all_token_identifiers_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1510 = 0; - $_etype1513 = 0; - $xfer += $input->readListBegin($_etype1513, $_size1510); - for ($_i1514 = 0; $_i1514 < $_size1510; ++$_i1514) + $_size1517 = 0; + $_etype1520 = 0; + $xfer += $input->readListBegin($_etype1520, $_size1517); + for ($_i1521 = 0; $_i1521 < $_size1517; ++$_i1521) { - $elem1515 = null; - $xfer += $input->readString($elem1515); - $this->success []= $elem1515; + $elem1522 = null; + $xfer += $input->readString($elem1522); + $this->success []= $elem1522; } $xfer += $input->readListEnd(); } else { @@ -49712,9 +49986,9 @@ class ThriftHiveMetastore_get_all_token_identifiers_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1516) + foreach ($this->success as $iter1523) { - $xfer += $output->writeString($iter1516); + $xfer += $output->writeString($iter1523); } } $output->writeListEnd(); @@ -50353,14 +50627,14 @@ class ThriftHiveMetastore_get_master_keys_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1517 = 0; - $_etype1520 = 0; - $xfer += $input->readListBegin($_etype1520, $_size1517); - for ($_i1521 = 0; $_i1521 < $_size1517; ++$_i1521) + $_size1524 = 0; + $_etype1527 = 0; + $xfer += $input->readListBegin($_etype1527, $_size1524); + for ($_i1528 = 0; $_i1528 < $_size1524; ++$_i1528) { - $elem1522 = null; - $xfer += $input->readString($elem1522); - $this->success []= $elem1522; + $elem1529 = null; + $xfer += $input->readString($elem1529); + $this->success []= $elem1529; } $xfer += $input->readListEnd(); } else { @@ -50388,9 +50662,9 @@ class ThriftHiveMetastore_get_master_keys_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1523) + foreach ($this->success as $iter1530) { - $xfer += $output->writeString($iter1523); + $xfer += $output->writeString($iter1530); } } $output->writeListEnd(); @@ -54144,14 +54418,14 @@ class ThriftHiveMetastore_find_columns_with_stats_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1524 = 0; - $_etype1527 = 0; - $xfer += $input->readListBegin($_etype1527, $_size1524); - for ($_i1528 = 0; $_i1528 < $_size1524; ++$_i1528) + $_size1531 = 0; + $_etype1534 = 0; + $xfer += $input->readListBegin($_etype1534, $_size1531); + for ($_i1535 = 0; $_i1535 < $_size1531; ++$_i1535) { - $elem1529 = null; - $xfer += $input->readString($elem1529); - $this->success []= $elem1529; + $elem1536 = null; + $xfer += $input->readString($elem1536); + $this->success []= $elem1536; } $xfer += $input->readListEnd(); } else { @@ -54179,9 +54453,9 @@ class ThriftHiveMetastore_find_columns_with_stats_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1530) + foreach ($this->success as $iter1537) { - $xfer += $output->writeString($iter1530); + $xfer += $output->writeString($iter1537); } } $output->writeListEnd(); @@ -62352,15 +62626,15 @@ class ThriftHiveMetastore_get_schema_all_versions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1531 = 0; - $_etype1534 = 0; - $xfer += $input->readListBegin($_etype1534, $_size1531); - for ($_i1535 = 0; $_i1535 < $_size1531; ++$_i1535) + $_size1538 = 0; + $_etype1541 = 0; + $xfer += $input->readListBegin($_etype1541, $_size1538); + for ($_i1542 = 0; $_i1542 < $_size1538; ++$_i1542) { - $elem1536 = null; - $elem1536 = new \metastore\SchemaVersion(); - $xfer += $elem1536->read($input); - $this->success []= $elem1536; + $elem1543 = null; + $elem1543 = new \metastore\SchemaVersion(); + $xfer += $elem1543->read($input); + $this->success []= $elem1543; } $xfer += $input->readListEnd(); } else { @@ -62404,9 +62678,9 @@ class ThriftHiveMetastore_get_schema_all_versions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1537) + foreach ($this->success as $iter1544) { - $xfer += $iter1537->write($output); + $xfer += $iter1544->write($output); } } $output->writeListEnd(); @@ -64275,15 +64549,15 @@ class ThriftHiveMetastore_get_runtime_stats_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1538 = 0; - $_etype1541 = 0; - $xfer += $input->readListBegin($_etype1541, $_size1538); - for ($_i1542 = 0; $_i1542 < $_size1538; ++$_i1542) + $_size1545 = 0; + $_etype1548 = 0; + $xfer += $input->readListBegin($_etype1548, $_size1545); + for ($_i1549 = 0; $_i1549 < $_size1545; ++$_i1549) { - $elem1543 = null; - $elem1543 = new \metastore\RuntimeStat(); - $xfer += $elem1543->read($input); - $this->success []= $elem1543; + $elem1550 = null; + $elem1550 = new \metastore\RuntimeStat(); + $xfer += $elem1550->read($input); + $this->success []= $elem1550; } $xfer += $input->readListEnd(); } else { @@ -64319,9 +64593,9 @@ class ThriftHiveMetastore_get_runtime_stats_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1544) + foreach ($this->success as $iter1551) { - $xfer += $iter1544->write($output); + $xfer += $iter1551->write($output); } } $output->writeListEnd(); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/Types.php standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/Types.php index 0d45371b88..481735c357 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/Types.php +++ standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/Types.php @@ -27708,6 +27708,176 @@ class ExtendedTableInfo { } +class GetDatabaseRequest { + static $_TSPEC; + + /** + * @var string + */ + public $name = null; + /** + * @var string + */ + public $catalogName = null; + /** + * @var string[] + */ + public $processorCapabilities = null; + /** + * @var string + */ + public $processorIdentifier = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'name', + 'type' => TType::STRING, + ), + 2 => array( + 'var' => 'catalogName', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'processorCapabilities', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + 4 => array( + 'var' => 'processorIdentifier', + 'type' => TType::STRING, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['name'])) { + $this->name = $vals['name']; + } + if (isset($vals['catalogName'])) { + $this->catalogName = $vals['catalogName']; + } + if (isset($vals['processorCapabilities'])) { + $this->processorCapabilities = $vals['processorCapabilities']; + } + if (isset($vals['processorIdentifier'])) { + $this->processorIdentifier = $vals['processorIdentifier']; + } + } + } + + public function getName() { + return 'GetDatabaseRequest'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->name); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->catalogName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::LST) { + $this->processorCapabilities = array(); + $_size854 = 0; + $_etype857 = 0; + $xfer += $input->readListBegin($_etype857, $_size854); + for ($_i858 = 0; $_i858 < $_size854; ++$_i858) + { + $elem859 = null; + $xfer += $input->readString($elem859); + $this->processorCapabilities []= $elem859; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->processorIdentifier); + } 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('GetDatabaseRequest'); + if ($this->name !== null) { + $xfer += $output->writeFieldBegin('name', TType::STRING, 1); + $xfer += $output->writeString($this->name); + $xfer += $output->writeFieldEnd(); + } + if ($this->catalogName !== null) { + $xfer += $output->writeFieldBegin('catalogName', TType::STRING, 2); + $xfer += $output->writeString($this->catalogName); + $xfer += $output->writeFieldEnd(); + } + if ($this->processorCapabilities !== null) { + if (!is_array($this->processorCapabilities)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('processorCapabilities', TType::LST, 3); + { + $output->writeListBegin(TType::STRING, count($this->processorCapabilities)); + { + foreach ($this->processorCapabilities as $iter860) + { + $xfer += $output->writeString($iter860); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->processorIdentifier !== null) { + $xfer += $output->writeFieldBegin('processorIdentifier', TType::STRING, 4); + $xfer += $output->writeString($this->processorIdentifier); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + class CmRecycleRequest { static $_TSPEC; @@ -29501,15 +29671,15 @@ class WMFullResourcePlan { case 2: if ($ftype == TType::LST) { $this->pools = array(); - $_size854 = 0; - $_etype857 = 0; - $xfer += $input->readListBegin($_etype857, $_size854); - for ($_i858 = 0; $_i858 < $_size854; ++$_i858) + $_size861 = 0; + $_etype864 = 0; + $xfer += $input->readListBegin($_etype864, $_size861); + for ($_i865 = 0; $_i865 < $_size861; ++$_i865) { - $elem859 = null; - $elem859 = new \metastore\WMPool(); - $xfer += $elem859->read($input); - $this->pools []= $elem859; + $elem866 = null; + $elem866 = new \metastore\WMPool(); + $xfer += $elem866->read($input); + $this->pools []= $elem866; } $xfer += $input->readListEnd(); } else { @@ -29519,15 +29689,15 @@ class WMFullResourcePlan { case 3: if ($ftype == TType::LST) { $this->mappings = array(); - $_size860 = 0; - $_etype863 = 0; - $xfer += $input->readListBegin($_etype863, $_size860); - for ($_i864 = 0; $_i864 < $_size860; ++$_i864) + $_size867 = 0; + $_etype870 = 0; + $xfer += $input->readListBegin($_etype870, $_size867); + for ($_i871 = 0; $_i871 < $_size867; ++$_i871) { - $elem865 = null; - $elem865 = new \metastore\WMMapping(); - $xfer += $elem865->read($input); - $this->mappings []= $elem865; + $elem872 = null; + $elem872 = new \metastore\WMMapping(); + $xfer += $elem872->read($input); + $this->mappings []= $elem872; } $xfer += $input->readListEnd(); } else { @@ -29537,15 +29707,15 @@ class WMFullResourcePlan { case 4: if ($ftype == TType::LST) { $this->triggers = array(); - $_size866 = 0; - $_etype869 = 0; - $xfer += $input->readListBegin($_etype869, $_size866); - for ($_i870 = 0; $_i870 < $_size866; ++$_i870) + $_size873 = 0; + $_etype876 = 0; + $xfer += $input->readListBegin($_etype876, $_size873); + for ($_i877 = 0; $_i877 < $_size873; ++$_i877) { - $elem871 = null; - $elem871 = new \metastore\WMTrigger(); - $xfer += $elem871->read($input); - $this->triggers []= $elem871; + $elem878 = null; + $elem878 = new \metastore\WMTrigger(); + $xfer += $elem878->read($input); + $this->triggers []= $elem878; } $xfer += $input->readListEnd(); } else { @@ -29555,15 +29725,15 @@ class WMFullResourcePlan { case 5: if ($ftype == TType::LST) { $this->poolTriggers = array(); - $_size872 = 0; - $_etype875 = 0; - $xfer += $input->readListBegin($_etype875, $_size872); - for ($_i876 = 0; $_i876 < $_size872; ++$_i876) + $_size879 = 0; + $_etype882 = 0; + $xfer += $input->readListBegin($_etype882, $_size879); + for ($_i883 = 0; $_i883 < $_size879; ++$_i883) { - $elem877 = null; - $elem877 = new \metastore\WMPoolTrigger(); - $xfer += $elem877->read($input); - $this->poolTriggers []= $elem877; + $elem884 = null; + $elem884 = new \metastore\WMPoolTrigger(); + $xfer += $elem884->read($input); + $this->poolTriggers []= $elem884; } $xfer += $input->readListEnd(); } else { @@ -29599,9 +29769,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->pools)); { - foreach ($this->pools as $iter878) + foreach ($this->pools as $iter885) { - $xfer += $iter878->write($output); + $xfer += $iter885->write($output); } } $output->writeListEnd(); @@ -29616,9 +29786,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->mappings)); { - foreach ($this->mappings as $iter879) + foreach ($this->mappings as $iter886) { - $xfer += $iter879->write($output); + $xfer += $iter886->write($output); } } $output->writeListEnd(); @@ -29633,9 +29803,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->triggers)); { - foreach ($this->triggers as $iter880) + foreach ($this->triggers as $iter887) { - $xfer += $iter880->write($output); + $xfer += $iter887->write($output); } } $output->writeListEnd(); @@ -29650,9 +29820,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->poolTriggers)); { - foreach ($this->poolTriggers as $iter881) + foreach ($this->poolTriggers as $iter888) { - $xfer += $iter881->write($output); + $xfer += $iter888->write($output); } } $output->writeListEnd(); @@ -30278,15 +30448,15 @@ class WMGetAllResourcePlanResponse { case 1: if ($ftype == TType::LST) { $this->resourcePlans = array(); - $_size882 = 0; - $_etype885 = 0; - $xfer += $input->readListBegin($_etype885, $_size882); - for ($_i886 = 0; $_i886 < $_size882; ++$_i886) + $_size889 = 0; + $_etype892 = 0; + $xfer += $input->readListBegin($_etype892, $_size889); + for ($_i893 = 0; $_i893 < $_size889; ++$_i893) { - $elem887 = null; - $elem887 = new \metastore\WMResourcePlan(); - $xfer += $elem887->read($input); - $this->resourcePlans []= $elem887; + $elem894 = null; + $elem894 = new \metastore\WMResourcePlan(); + $xfer += $elem894->read($input); + $this->resourcePlans []= $elem894; } $xfer += $input->readListEnd(); } else { @@ -30314,9 +30484,9 @@ class WMGetAllResourcePlanResponse { { $output->writeListBegin(TType::STRUCT, count($this->resourcePlans)); { - foreach ($this->resourcePlans as $iter888) + foreach ($this->resourcePlans as $iter895) { - $xfer += $iter888->write($output); + $xfer += $iter895->write($output); } } $output->writeListEnd(); @@ -30768,14 +30938,14 @@ class WMValidateResourcePlanResponse { case 1: if ($ftype == TType::LST) { $this->errors = array(); - $_size889 = 0; - $_etype892 = 0; - $xfer += $input->readListBegin($_etype892, $_size889); - for ($_i893 = 0; $_i893 < $_size889; ++$_i893) + $_size896 = 0; + $_etype899 = 0; + $xfer += $input->readListBegin($_etype899, $_size896); + for ($_i900 = 0; $_i900 < $_size896; ++$_i900) { - $elem894 = null; - $xfer += $input->readString($elem894); - $this->errors []= $elem894; + $elem901 = null; + $xfer += $input->readString($elem901); + $this->errors []= $elem901; } $xfer += $input->readListEnd(); } else { @@ -30785,14 +30955,14 @@ class WMValidateResourcePlanResponse { case 2: if ($ftype == TType::LST) { $this->warnings = array(); - $_size895 = 0; - $_etype898 = 0; - $xfer += $input->readListBegin($_etype898, $_size895); - for ($_i899 = 0; $_i899 < $_size895; ++$_i899) + $_size902 = 0; + $_etype905 = 0; + $xfer += $input->readListBegin($_etype905, $_size902); + for ($_i906 = 0; $_i906 < $_size902; ++$_i906) { - $elem900 = null; - $xfer += $input->readString($elem900); - $this->warnings []= $elem900; + $elem907 = null; + $xfer += $input->readString($elem907); + $this->warnings []= $elem907; } $xfer += $input->readListEnd(); } else { @@ -30820,9 +30990,9 @@ class WMValidateResourcePlanResponse { { $output->writeListBegin(TType::STRING, count($this->errors)); { - foreach ($this->errors as $iter901) + foreach ($this->errors as $iter908) { - $xfer += $output->writeString($iter901); + $xfer += $output->writeString($iter908); } } $output->writeListEnd(); @@ -30837,9 +31007,9 @@ class WMValidateResourcePlanResponse { { $output->writeListBegin(TType::STRING, count($this->warnings)); { - foreach ($this->warnings as $iter902) + foreach ($this->warnings as $iter909) { - $xfer += $output->writeString($iter902); + $xfer += $output->writeString($iter909); } } $output->writeListEnd(); @@ -31581,15 +31751,15 @@ class WMGetTriggersForResourePlanResponse { case 1: if ($ftype == TType::LST) { $this->triggers = array(); - $_size903 = 0; - $_etype906 = 0; - $xfer += $input->readListBegin($_etype906, $_size903); - for ($_i907 = 0; $_i907 < $_size903; ++$_i907) + $_size910 = 0; + $_etype913 = 0; + $xfer += $input->readListBegin($_etype913, $_size910); + for ($_i914 = 0; $_i914 < $_size910; ++$_i914) { - $elem908 = null; - $elem908 = new \metastore\WMTrigger(); - $xfer += $elem908->read($input); - $this->triggers []= $elem908; + $elem915 = null; + $elem915 = new \metastore\WMTrigger(); + $xfer += $elem915->read($input); + $this->triggers []= $elem915; } $xfer += $input->readListEnd(); } else { @@ -31617,9 +31787,9 @@ class WMGetTriggersForResourePlanResponse { { $output->writeListBegin(TType::STRUCT, count($this->triggers)); { - foreach ($this->triggers as $iter909) + foreach ($this->triggers as $iter916) { - $xfer += $iter909->write($output); + $xfer += $iter916->write($output); } } $output->writeListEnd(); @@ -33249,15 +33419,15 @@ class SchemaVersion { case 4: if ($ftype == TType::LST) { $this->cols = array(); - $_size910 = 0; - $_etype913 = 0; - $xfer += $input->readListBegin($_etype913, $_size910); - for ($_i914 = 0; $_i914 < $_size910; ++$_i914) + $_size917 = 0; + $_etype920 = 0; + $xfer += $input->readListBegin($_etype920, $_size917); + for ($_i921 = 0; $_i921 < $_size917; ++$_i921) { - $elem915 = null; - $elem915 = new \metastore\FieldSchema(); - $xfer += $elem915->read($input); - $this->cols []= $elem915; + $elem922 = null; + $elem922 = new \metastore\FieldSchema(); + $xfer += $elem922->read($input); + $this->cols []= $elem922; } $xfer += $input->readListEnd(); } else { @@ -33346,9 +33516,9 @@ class SchemaVersion { { $output->writeListBegin(TType::STRUCT, count($this->cols)); { - foreach ($this->cols as $iter916) + foreach ($this->cols as $iter923) { - $xfer += $iter916->write($output); + $xfer += $iter923->write($output); } } $output->writeListEnd(); @@ -33670,15 +33840,15 @@ class FindSchemasByColsResp { case 1: if ($ftype == TType::LST) { $this->schemaVersions = array(); - $_size917 = 0; - $_etype920 = 0; - $xfer += $input->readListBegin($_etype920, $_size917); - for ($_i921 = 0; $_i921 < $_size917; ++$_i921) + $_size924 = 0; + $_etype927 = 0; + $xfer += $input->readListBegin($_etype927, $_size924); + for ($_i928 = 0; $_i928 < $_size924; ++$_i928) { - $elem922 = null; - $elem922 = new \metastore\SchemaVersionDescriptor(); - $xfer += $elem922->read($input); - $this->schemaVersions []= $elem922; + $elem929 = null; + $elem929 = new \metastore\SchemaVersionDescriptor(); + $xfer += $elem929->read($input); + $this->schemaVersions []= $elem929; } $xfer += $input->readListEnd(); } else { @@ -33706,9 +33876,9 @@ class FindSchemasByColsResp { { $output->writeListBegin(TType::STRUCT, count($this->schemaVersions)); { - foreach ($this->schemaVersions as $iter923) + foreach ($this->schemaVersions as $iter930) { - $xfer += $iter923->write($output); + $xfer += $iter930->write($output); } } $output->writeListEnd(); @@ -34419,15 +34589,15 @@ class CreateTableRequest { case 3: if ($ftype == TType::LST) { $this->primaryKeys = array(); - $_size924 = 0; - $_etype927 = 0; - $xfer += $input->readListBegin($_etype927, $_size924); - for ($_i928 = 0; $_i928 < $_size924; ++$_i928) + $_size931 = 0; + $_etype934 = 0; + $xfer += $input->readListBegin($_etype934, $_size931); + for ($_i935 = 0; $_i935 < $_size931; ++$_i935) { - $elem929 = null; - $elem929 = new \metastore\SQLPrimaryKey(); - $xfer += $elem929->read($input); - $this->primaryKeys []= $elem929; + $elem936 = null; + $elem936 = new \metastore\SQLPrimaryKey(); + $xfer += $elem936->read($input); + $this->primaryKeys []= $elem936; } $xfer += $input->readListEnd(); } else { @@ -34437,15 +34607,15 @@ class CreateTableRequest { case 4: if ($ftype == TType::LST) { $this->foreignKeys = array(); - $_size930 = 0; - $_etype933 = 0; - $xfer += $input->readListBegin($_etype933, $_size930); - for ($_i934 = 0; $_i934 < $_size930; ++$_i934) + $_size937 = 0; + $_etype940 = 0; + $xfer += $input->readListBegin($_etype940, $_size937); + for ($_i941 = 0; $_i941 < $_size937; ++$_i941) { - $elem935 = null; - $elem935 = new \metastore\SQLForeignKey(); - $xfer += $elem935->read($input); - $this->foreignKeys []= $elem935; + $elem942 = null; + $elem942 = new \metastore\SQLForeignKey(); + $xfer += $elem942->read($input); + $this->foreignKeys []= $elem942; } $xfer += $input->readListEnd(); } else { @@ -34455,15 +34625,15 @@ class CreateTableRequest { case 5: if ($ftype == TType::LST) { $this->uniqueConstraints = array(); - $_size936 = 0; - $_etype939 = 0; - $xfer += $input->readListBegin($_etype939, $_size936); - for ($_i940 = 0; $_i940 < $_size936; ++$_i940) + $_size943 = 0; + $_etype946 = 0; + $xfer += $input->readListBegin($_etype946, $_size943); + for ($_i947 = 0; $_i947 < $_size943; ++$_i947) { - $elem941 = null; - $elem941 = new \metastore\SQLUniqueConstraint(); - $xfer += $elem941->read($input); - $this->uniqueConstraints []= $elem941; + $elem948 = null; + $elem948 = new \metastore\SQLUniqueConstraint(); + $xfer += $elem948->read($input); + $this->uniqueConstraints []= $elem948; } $xfer += $input->readListEnd(); } else { @@ -34473,15 +34643,15 @@ class CreateTableRequest { case 6: if ($ftype == TType::LST) { $this->notNullConstraints = array(); - $_size942 = 0; - $_etype945 = 0; - $xfer += $input->readListBegin($_etype945, $_size942); - for ($_i946 = 0; $_i946 < $_size942; ++$_i946) + $_size949 = 0; + $_etype952 = 0; + $xfer += $input->readListBegin($_etype952, $_size949); + for ($_i953 = 0; $_i953 < $_size949; ++$_i953) { - $elem947 = null; - $elem947 = new \metastore\SQLNotNullConstraint(); - $xfer += $elem947->read($input); - $this->notNullConstraints []= $elem947; + $elem954 = null; + $elem954 = new \metastore\SQLNotNullConstraint(); + $xfer += $elem954->read($input); + $this->notNullConstraints []= $elem954; } $xfer += $input->readListEnd(); } else { @@ -34491,15 +34661,15 @@ class CreateTableRequest { case 7: if ($ftype == TType::LST) { $this->defaultConstraints = array(); - $_size948 = 0; - $_etype951 = 0; - $xfer += $input->readListBegin($_etype951, $_size948); - for ($_i952 = 0; $_i952 < $_size948; ++$_i952) + $_size955 = 0; + $_etype958 = 0; + $xfer += $input->readListBegin($_etype958, $_size955); + for ($_i959 = 0; $_i959 < $_size955; ++$_i959) { - $elem953 = null; - $elem953 = new \metastore\SQLDefaultConstraint(); - $xfer += $elem953->read($input); - $this->defaultConstraints []= $elem953; + $elem960 = null; + $elem960 = new \metastore\SQLDefaultConstraint(); + $xfer += $elem960->read($input); + $this->defaultConstraints []= $elem960; } $xfer += $input->readListEnd(); } else { @@ -34509,15 +34679,15 @@ class CreateTableRequest { case 8: if ($ftype == TType::LST) { $this->checkConstraints = array(); - $_size954 = 0; - $_etype957 = 0; - $xfer += $input->readListBegin($_etype957, $_size954); - for ($_i958 = 0; $_i958 < $_size954; ++$_i958) + $_size961 = 0; + $_etype964 = 0; + $xfer += $input->readListBegin($_etype964, $_size961); + for ($_i965 = 0; $_i965 < $_size961; ++$_i965) { - $elem959 = null; - $elem959 = new \metastore\SQLCheckConstraint(); - $xfer += $elem959->read($input); - $this->checkConstraints []= $elem959; + $elem966 = null; + $elem966 = new \metastore\SQLCheckConstraint(); + $xfer += $elem966->read($input); + $this->checkConstraints []= $elem966; } $xfer += $input->readListEnd(); } else { @@ -34527,14 +34697,14 @@ class CreateTableRequest { case 9: if ($ftype == TType::LST) { $this->processorCapabilities = array(); - $_size960 = 0; - $_etype963 = 0; - $xfer += $input->readListBegin($_etype963, $_size960); - for ($_i964 = 0; $_i964 < $_size960; ++$_i964) + $_size967 = 0; + $_etype970 = 0; + $xfer += $input->readListBegin($_etype970, $_size967); + for ($_i971 = 0; $_i971 < $_size967; ++$_i971) { - $elem965 = null; - $xfer += $input->readString($elem965); - $this->processorCapabilities []= $elem965; + $elem972 = null; + $xfer += $input->readString($elem972); + $this->processorCapabilities []= $elem972; } $xfer += $input->readListEnd(); } else { @@ -34585,9 +34755,9 @@ class CreateTableRequest { { $output->writeListBegin(TType::STRUCT, count($this->primaryKeys)); { - foreach ($this->primaryKeys as $iter966) + foreach ($this->primaryKeys as $iter973) { - $xfer += $iter966->write($output); + $xfer += $iter973->write($output); } } $output->writeListEnd(); @@ -34602,9 +34772,9 @@ class CreateTableRequest { { $output->writeListBegin(TType::STRUCT, count($this->foreignKeys)); { - foreach ($this->foreignKeys as $iter967) + foreach ($this->foreignKeys as $iter974) { - $xfer += $iter967->write($output); + $xfer += $iter974->write($output); } } $output->writeListEnd(); @@ -34619,9 +34789,9 @@ class CreateTableRequest { { $output->writeListBegin(TType::STRUCT, count($this->uniqueConstraints)); { - foreach ($this->uniqueConstraints as $iter968) + foreach ($this->uniqueConstraints as $iter975) { - $xfer += $iter968->write($output); + $xfer += $iter975->write($output); } } $output->writeListEnd(); @@ -34636,9 +34806,9 @@ class CreateTableRequest { { $output->writeListBegin(TType::STRUCT, count($this->notNullConstraints)); { - foreach ($this->notNullConstraints as $iter969) + foreach ($this->notNullConstraints as $iter976) { - $xfer += $iter969->write($output); + $xfer += $iter976->write($output); } } $output->writeListEnd(); @@ -34653,9 +34823,9 @@ class CreateTableRequest { { $output->writeListBegin(TType::STRUCT, count($this->defaultConstraints)); { - foreach ($this->defaultConstraints as $iter970) + foreach ($this->defaultConstraints as $iter977) { - $xfer += $iter970->write($output); + $xfer += $iter977->write($output); } } $output->writeListEnd(); @@ -34670,9 +34840,9 @@ class CreateTableRequest { { $output->writeListBegin(TType::STRUCT, count($this->checkConstraints)); { - foreach ($this->checkConstraints as $iter971) + foreach ($this->checkConstraints as $iter978) { - $xfer += $iter971->write($output); + $xfer += $iter978->write($output); } } $output->writeListEnd(); @@ -34687,9 +34857,9 @@ class CreateTableRequest { { $output->writeListBegin(TType::STRING, count($this->processorCapabilities)); { - foreach ($this->processorCapabilities as $iter972) + foreach ($this->processorCapabilities as $iter979) { - $xfer += $output->writeString($iter972); + $xfer += $output->writeString($iter979); } } $output->writeListEnd(); @@ -34847,15 +35017,15 @@ class AlterPartitionsRequest { case 4: if ($ftype == TType::LST) { $this->partitions = array(); - $_size973 = 0; - $_etype976 = 0; - $xfer += $input->readListBegin($_etype976, $_size973); - for ($_i977 = 0; $_i977 < $_size973; ++$_i977) + $_size980 = 0; + $_etype983 = 0; + $xfer += $input->readListBegin($_etype983, $_size980); + for ($_i984 = 0; $_i984 < $_size980; ++$_i984) { - $elem978 = null; - $elem978 = new \metastore\Partition(); - $xfer += $elem978->read($input); - $this->partitions []= $elem978; + $elem985 = null; + $elem985 = new \metastore\Partition(); + $xfer += $elem985->read($input); + $this->partitions []= $elem985; } $xfer += $input->readListEnd(); } else { @@ -34920,9 +35090,9 @@ class AlterPartitionsRequest { { $output->writeListBegin(TType::STRUCT, count($this->partitions)); { - foreach ($this->partitions as $iter979) + foreach ($this->partitions as $iter986) { - $xfer += $iter979->write($output); + $xfer += $iter986->write($output); } } $output->writeListEnd(); @@ -35131,14 +35301,14 @@ class RenamePartitionRequest { case 4: if ($ftype == TType::LST) { $this->partVals = array(); - $_size980 = 0; - $_etype983 = 0; - $xfer += $input->readListBegin($_etype983, $_size980); - for ($_i984 = 0; $_i984 < $_size980; ++$_i984) + $_size987 = 0; + $_etype990 = 0; + $xfer += $input->readListBegin($_etype990, $_size987); + for ($_i991 = 0; $_i991 < $_size987; ++$_i991) { - $elem985 = null; - $xfer += $input->readString($elem985); - $this->partVals []= $elem985; + $elem992 = null; + $xfer += $input->readString($elem992); + $this->partVals []= $elem992; } $xfer += $input->readListEnd(); } else { @@ -35196,9 +35366,9 @@ class RenamePartitionRequest { { $output->writeListBegin(TType::STRING, count($this->partVals)); { - foreach ($this->partVals as $iter986) + foreach ($this->partVals as $iter993) { - $xfer += $output->writeString($iter986); + $xfer += $output->writeString($iter993); } } $output->writeListEnd(); @@ -35620,14 +35790,14 @@ class GetPartitionsProjectionSpec { case 1: if ($ftype == TType::LST) { $this->fieldList = array(); - $_size987 = 0; - $_etype990 = 0; - $xfer += $input->readListBegin($_etype990, $_size987); - for ($_i991 = 0; $_i991 < $_size987; ++$_i991) + $_size994 = 0; + $_etype997 = 0; + $xfer += $input->readListBegin($_etype997, $_size994); + for ($_i998 = 0; $_i998 < $_size994; ++$_i998) { - $elem992 = null; - $xfer += $input->readString($elem992); - $this->fieldList []= $elem992; + $elem999 = null; + $xfer += $input->readString($elem999); + $this->fieldList []= $elem999; } $xfer += $input->readListEnd(); } else { @@ -35669,9 +35839,9 @@ class GetPartitionsProjectionSpec { { $output->writeListBegin(TType::STRING, count($this->fieldList)); { - foreach ($this->fieldList as $iter993) + foreach ($this->fieldList as $iter1000) { - $xfer += $output->writeString($iter993); + $xfer += $output->writeString($iter1000); } } $output->writeListEnd(); @@ -35763,14 +35933,14 @@ class GetPartitionsFilterSpec { case 8: if ($ftype == TType::LST) { $this->filters = array(); - $_size994 = 0; - $_etype997 = 0; - $xfer += $input->readListBegin($_etype997, $_size994); - for ($_i998 = 0; $_i998 < $_size994; ++$_i998) + $_size1001 = 0; + $_etype1004 = 0; + $xfer += $input->readListBegin($_etype1004, $_size1001); + for ($_i1005 = 0; $_i1005 < $_size1001; ++$_i1005) { - $elem999 = null; - $xfer += $input->readString($elem999); - $this->filters []= $elem999; + $elem1006 = null; + $xfer += $input->readString($elem1006); + $this->filters []= $elem1006; } $xfer += $input->readListEnd(); } else { @@ -35803,9 +35973,9 @@ class GetPartitionsFilterSpec { { $output->writeListBegin(TType::STRING, count($this->filters)); { - foreach ($this->filters as $iter1000) + foreach ($this->filters as $iter1007) { - $xfer += $output->writeString($iter1000); + $xfer += $output->writeString($iter1007); } } $output->writeListEnd(); @@ -35870,15 +36040,15 @@ class GetPartitionsResponse { case 1: if ($ftype == TType::LST) { $this->partitionSpec = array(); - $_size1001 = 0; - $_etype1004 = 0; - $xfer += $input->readListBegin($_etype1004, $_size1001); - for ($_i1005 = 0; $_i1005 < $_size1001; ++$_i1005) + $_size1008 = 0; + $_etype1011 = 0; + $xfer += $input->readListBegin($_etype1011, $_size1008); + for ($_i1012 = 0; $_i1012 < $_size1008; ++$_i1012) { - $elem1006 = null; - $elem1006 = new \metastore\PartitionSpec(); - $xfer += $elem1006->read($input); - $this->partitionSpec []= $elem1006; + $elem1013 = null; + $elem1013 = new \metastore\PartitionSpec(); + $xfer += $elem1013->read($input); + $this->partitionSpec []= $elem1013; } $xfer += $input->readListEnd(); } else { @@ -35906,9 +36076,9 @@ class GetPartitionsResponse { { $output->writeListBegin(TType::STRUCT, count($this->partitionSpec)); { - foreach ($this->partitionSpec as $iter1007) + foreach ($this->partitionSpec as $iter1014) { - $xfer += $iter1007->write($output); + $xfer += $iter1014->write($output); } } $output->writeListEnd(); @@ -36112,14 +36282,14 @@ class GetPartitionsRequest { case 6: if ($ftype == TType::LST) { $this->groupNames = array(); - $_size1008 = 0; - $_etype1011 = 0; - $xfer += $input->readListBegin($_etype1011, $_size1008); - for ($_i1012 = 0; $_i1012 < $_size1008; ++$_i1012) + $_size1015 = 0; + $_etype1018 = 0; + $xfer += $input->readListBegin($_etype1018, $_size1015); + for ($_i1019 = 0; $_i1019 < $_size1015; ++$_i1019) { - $elem1013 = null; - $xfer += $input->readString($elem1013); - $this->groupNames []= $elem1013; + $elem1020 = null; + $xfer += $input->readString($elem1020); + $this->groupNames []= $elem1020; } $xfer += $input->readListEnd(); } else { @@ -36145,14 +36315,14 @@ class GetPartitionsRequest { case 9: if ($ftype == TType::LST) { $this->processorCapabilities = array(); - $_size1014 = 0; - $_etype1017 = 0; - $xfer += $input->readListBegin($_etype1017, $_size1014); - for ($_i1018 = 0; $_i1018 < $_size1014; ++$_i1018) + $_size1021 = 0; + $_etype1024 = 0; + $xfer += $input->readListBegin($_etype1024, $_size1021); + for ($_i1025 = 0; $_i1025 < $_size1021; ++$_i1025) { - $elem1019 = null; - $xfer += $input->readString($elem1019); - $this->processorCapabilities []= $elem1019; + $elem1026 = null; + $xfer += $input->readString($elem1026); + $this->processorCapabilities []= $elem1026; } $xfer += $input->readListEnd(); } else { @@ -36212,9 +36382,9 @@ class GetPartitionsRequest { { $output->writeListBegin(TType::STRING, count($this->groupNames)); { - foreach ($this->groupNames as $iter1020) + foreach ($this->groupNames as $iter1027) { - $xfer += $output->writeString($iter1020); + $xfer += $output->writeString($iter1027); } } $output->writeListEnd(); @@ -36245,9 +36415,9 @@ class GetPartitionsRequest { { $output->writeListBegin(TType::STRING, count($this->processorCapabilities)); { - foreach ($this->processorCapabilities as $iter1021) + foreach ($this->processorCapabilities as $iter1028) { - $xfer += $output->writeString($iter1021); + $xfer += $output->writeString($iter1028); } } $output->writeListEnd(); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote index 647c762acd..d8deb5cf66 100755 --- standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote +++ standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote @@ -33,6 +33,7 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help': print(' void drop_catalog(DropCatalogRequest catName)') print(' void create_database(Database database)') print(' Database get_database(string name)') + print(' Database get_database_req(GetDatabaseRequest request)') print(' void drop_database(string name, bool deleteData, bool cascade)') print(' get_databases(string pattern)') print(' get_all_databases()') @@ -373,6 +374,12 @@ elif cmd == 'get_database': sys.exit(1) pp.pprint(client.get_database(args[0],)) +elif cmd == 'get_database_req': + if len(args) != 1: + print('get_database_req requires 1 args') + sys.exit(1) + pp.pprint(client.get_database_req(eval(args[0]),)) + elif cmd == 'drop_database': if len(args) != 3: print('drop_database requires 3 args') diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py index 5107d0f99a..1bc6cde6d3 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py +++ standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py @@ -83,6 +83,13 @@ def get_database(self, name): """ pass + def get_database_req(self, request): + """ + Parameters: + - request + """ + pass + def drop_database(self, name, deleteData, cascade): """ Parameters: @@ -2048,6 +2055,41 @@ def recv_get_database(self): raise result.o2 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_database failed: unknown result") + def get_database_req(self, request): + """ + Parameters: + - request + """ + self.send_get_database_req(request) + return self.recv_get_database_req() + + def send_get_database_req(self, request): + self._oprot.writeMessageBegin('get_database_req', TMessageType.CALL, self._seqid) + args = get_database_req_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_get_database_req(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = get_database_req_result() + result.read(iprot) + iprot.readMessageEnd() + if result.success is not None: + return result.success + if result.o1 is not None: + raise result.o1 + if result.o2 is not None: + raise result.o2 + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_database_req failed: unknown result") + def drop_database(self, name, deleteData, cascade): """ Parameters: @@ -9783,6 +9825,7 @@ def __init__(self, handler): self._processMap["drop_catalog"] = Processor.process_drop_catalog self._processMap["create_database"] = Processor.process_create_database self._processMap["get_database"] = Processor.process_get_database + self._processMap["get_database_req"] = Processor.process_get_database_req self._processMap["drop_database"] = Processor.process_drop_database self._processMap["get_databases"] = Processor.process_get_databases self._processMap["get_all_databases"] = Processor.process_get_all_databases @@ -10244,6 +10287,31 @@ def process_get_database(self, seqid, iprot, oprot): oprot.writeMessageEnd() oprot.trans.flush() + def process_get_database_req(self, seqid, iprot, oprot): + args = get_database_req_args() + args.read(iprot) + iprot.readMessageEnd() + result = get_database_req_result() + try: + result.success = self._handler.get_database_req(args.request) + msg_type = TMessageType.REPLY + except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + raise + except NoSuchObjectException as o1: + msg_type = TMessageType.REPLY + result.o1 = o1 + except MetaException as o2: + msg_type = TMessageType.REPLY + result.o2 = o2 + except Exception as ex: + msg_type = TMessageType.EXCEPTION + logging.exception(ex) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("get_database_req", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + def process_drop_database(self, seqid, iprot, oprot): args = drop_database_args() args.read(iprot) @@ -16942,6 +17010,165 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +class get_database_req_args: + """ + Attributes: + - request + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', (GetDatabaseRequest, GetDatabaseRequest.thrift_spec), None, ), # 1 + ) + + def __init__(self, request=None,): + self.request = request + + 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.STRUCT: + self.request = GetDatabaseRequest() + self.request.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_database_req_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + self.request.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.request) + 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_database_req_result: + """ + Attributes: + - success + - o1 + - o2 + """ + + thrift_spec = ( + (0, TType.STRUCT, 'success', (Database, Database.thrift_spec), None, ), # 0 + (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 + ) + + def __init__(self, success=None, o1=None, o2=None,): + self.success = success + self.o1 = o1 + self.o2 = o2 + + 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.STRUCT: + self.success = Database() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = NoSuchObjectException() + self.o1.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = MetaException() + self.o2.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_database_req_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) + oprot.writeFieldEnd() + if self.o1 is not None: + oprot.writeFieldBegin('o1', TType.STRUCT, 1) + self.o1.write(oprot) + oprot.writeFieldEnd() + if self.o2 is not None: + oprot.writeFieldBegin('o2', TType.STRUCT, 2) + self.o2.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) + value = (value * 31) ^ hash(self.o2) + 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 drop_database_args: """ Attributes: @@ -17220,10 +17447,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1022, _size1019) = iprot.readListBegin() - for _i1023 in xrange(_size1019): - _elem1024 = iprot.readString() - self.success.append(_elem1024) + (_etype1029, _size1026) = iprot.readListBegin() + for _i1030 in xrange(_size1026): + _elem1031 = iprot.readString() + self.success.append(_elem1031) iprot.readListEnd() else: iprot.skip(ftype) @@ -17246,8 +17473,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 iter1025 in self.success: - oprot.writeString(iter1025) + for iter1032 in self.success: + oprot.writeString(iter1032) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -17352,10 +17579,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1029, _size1026) = iprot.readListBegin() - for _i1030 in xrange(_size1026): - _elem1031 = iprot.readString() - self.success.append(_elem1031) + (_etype1036, _size1033) = iprot.readListBegin() + for _i1037 in xrange(_size1033): + _elem1038 = iprot.readString() + self.success.append(_elem1038) iprot.readListEnd() else: iprot.skip(ftype) @@ -17378,8 +17605,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 iter1032 in self.success: - oprot.writeString(iter1032) + for iter1039 in self.success: + oprot.writeString(iter1039) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -18149,12 +18376,12 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype1034, _vtype1035, _size1033 ) = iprot.readMapBegin() - for _i1037 in xrange(_size1033): - _key1038 = iprot.readString() - _val1039 = Type() - _val1039.read(iprot) - self.success[_key1038] = _val1039 + (_ktype1041, _vtype1042, _size1040 ) = iprot.readMapBegin() + for _i1044 in xrange(_size1040): + _key1045 = iprot.readString() + _val1046 = Type() + _val1046.read(iprot) + self.success[_key1045] = _val1046 iprot.readMapEnd() else: iprot.skip(ftype) @@ -18177,9 +18404,9 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success)) - for kiter1040,viter1041 in self.success.items(): - oprot.writeString(kiter1040) - viter1041.write(oprot) + for kiter1047,viter1048 in self.success.items(): + oprot.writeString(kiter1047) + viter1048.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -18322,11 +18549,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1045, _size1042) = iprot.readListBegin() - for _i1046 in xrange(_size1042): - _elem1047 = FieldSchema() - _elem1047.read(iprot) - self.success.append(_elem1047) + (_etype1052, _size1049) = iprot.readListBegin() + for _i1053 in xrange(_size1049): + _elem1054 = FieldSchema() + _elem1054.read(iprot) + self.success.append(_elem1054) iprot.readListEnd() else: iprot.skip(ftype) @@ -18361,8 +18588,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 iter1048 in self.success: - iter1048.write(oprot) + for iter1055 in self.success: + iter1055.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -18529,11 +18756,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1052, _size1049) = iprot.readListBegin() - for _i1053 in xrange(_size1049): - _elem1054 = FieldSchema() - _elem1054.read(iprot) - self.success.append(_elem1054) + (_etype1059, _size1056) = iprot.readListBegin() + for _i1060 in xrange(_size1056): + _elem1061 = FieldSchema() + _elem1061.read(iprot) + self.success.append(_elem1061) iprot.readListEnd() else: iprot.skip(ftype) @@ -18568,8 +18795,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 iter1055 in self.success: - iter1055.write(oprot) + for iter1062 in self.success: + iter1062.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -18722,11 +18949,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1059, _size1056) = iprot.readListBegin() - for _i1060 in xrange(_size1056): - _elem1061 = FieldSchema() - _elem1061.read(iprot) - self.success.append(_elem1061) + (_etype1066, _size1063) = iprot.readListBegin() + for _i1067 in xrange(_size1063): + _elem1068 = FieldSchema() + _elem1068.read(iprot) + self.success.append(_elem1068) iprot.readListEnd() else: iprot.skip(ftype) @@ -18761,8 +18988,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 iter1062 in self.success: - iter1062.write(oprot) + for iter1069 in self.success: + iter1069.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -18929,11 +19156,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1066, _size1063) = iprot.readListBegin() - for _i1067 in xrange(_size1063): - _elem1068 = FieldSchema() - _elem1068.read(iprot) - self.success.append(_elem1068) + (_etype1073, _size1070) = iprot.readListBegin() + for _i1074 in xrange(_size1070): + _elem1075 = FieldSchema() + _elem1075.read(iprot) + self.success.append(_elem1075) iprot.readListEnd() else: iprot.skip(ftype) @@ -18968,8 +19195,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 iter1069 in self.success: - iter1069.write(oprot) + for iter1076 in self.success: + iter1076.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -19422,66 +19649,66 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.primaryKeys = [] - (_etype1073, _size1070) = iprot.readListBegin() - for _i1074 in xrange(_size1070): - _elem1075 = SQLPrimaryKey() - _elem1075.read(iprot) - self.primaryKeys.append(_elem1075) + (_etype1080, _size1077) = iprot.readListBegin() + for _i1081 in xrange(_size1077): + _elem1082 = SQLPrimaryKey() + _elem1082.read(iprot) + self.primaryKeys.append(_elem1082) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.foreignKeys = [] - (_etype1079, _size1076) = iprot.readListBegin() - for _i1080 in xrange(_size1076): - _elem1081 = SQLForeignKey() - _elem1081.read(iprot) - self.foreignKeys.append(_elem1081) + (_etype1086, _size1083) = iprot.readListBegin() + for _i1087 in xrange(_size1083): + _elem1088 = SQLForeignKey() + _elem1088.read(iprot) + self.foreignKeys.append(_elem1088) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.uniqueConstraints = [] - (_etype1085, _size1082) = iprot.readListBegin() - for _i1086 in xrange(_size1082): - _elem1087 = SQLUniqueConstraint() - _elem1087.read(iprot) - self.uniqueConstraints.append(_elem1087) + (_etype1092, _size1089) = iprot.readListBegin() + for _i1093 in xrange(_size1089): + _elem1094 = SQLUniqueConstraint() + _elem1094.read(iprot) + self.uniqueConstraints.append(_elem1094) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.LIST: self.notNullConstraints = [] - (_etype1091, _size1088) = iprot.readListBegin() - for _i1092 in xrange(_size1088): - _elem1093 = SQLNotNullConstraint() - _elem1093.read(iprot) - self.notNullConstraints.append(_elem1093) + (_etype1098, _size1095) = iprot.readListBegin() + for _i1099 in xrange(_size1095): + _elem1100 = SQLNotNullConstraint() + _elem1100.read(iprot) + self.notNullConstraints.append(_elem1100) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.LIST: self.defaultConstraints = [] - (_etype1097, _size1094) = iprot.readListBegin() - for _i1098 in xrange(_size1094): - _elem1099 = SQLDefaultConstraint() - _elem1099.read(iprot) - self.defaultConstraints.append(_elem1099) + (_etype1104, _size1101) = iprot.readListBegin() + for _i1105 in xrange(_size1101): + _elem1106 = SQLDefaultConstraint() + _elem1106.read(iprot) + self.defaultConstraints.append(_elem1106) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.LIST: self.checkConstraints = [] - (_etype1103, _size1100) = iprot.readListBegin() - for _i1104 in xrange(_size1100): - _elem1105 = SQLCheckConstraint() - _elem1105.read(iprot) - self.checkConstraints.append(_elem1105) + (_etype1110, _size1107) = iprot.readListBegin() + for _i1111 in xrange(_size1107): + _elem1112 = SQLCheckConstraint() + _elem1112.read(iprot) + self.checkConstraints.append(_elem1112) iprot.readListEnd() else: iprot.skip(ftype) @@ -19502,43 +19729,43 @@ def write(self, oprot): if self.primaryKeys is not None: oprot.writeFieldBegin('primaryKeys', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.primaryKeys)) - for iter1106 in self.primaryKeys: - iter1106.write(oprot) + for iter1113 in self.primaryKeys: + iter1113.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.foreignKeys is not None: oprot.writeFieldBegin('foreignKeys', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.foreignKeys)) - for iter1107 in self.foreignKeys: - iter1107.write(oprot) + for iter1114 in self.foreignKeys: + iter1114.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.uniqueConstraints is not None: oprot.writeFieldBegin('uniqueConstraints', TType.LIST, 4) oprot.writeListBegin(TType.STRUCT, len(self.uniqueConstraints)) - for iter1108 in self.uniqueConstraints: - iter1108.write(oprot) + for iter1115 in self.uniqueConstraints: + iter1115.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.notNullConstraints is not None: oprot.writeFieldBegin('notNullConstraints', TType.LIST, 5) oprot.writeListBegin(TType.STRUCT, len(self.notNullConstraints)) - for iter1109 in self.notNullConstraints: - iter1109.write(oprot) + for iter1116 in self.notNullConstraints: + iter1116.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.defaultConstraints is not None: oprot.writeFieldBegin('defaultConstraints', TType.LIST, 6) oprot.writeListBegin(TType.STRUCT, len(self.defaultConstraints)) - for iter1110 in self.defaultConstraints: - iter1110.write(oprot) + for iter1117 in self.defaultConstraints: + iter1117.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.checkConstraints is not None: oprot.writeFieldBegin('checkConstraints', TType.LIST, 7) oprot.writeListBegin(TType.STRUCT, len(self.checkConstraints)) - for iter1111 in self.checkConstraints: - iter1111.write(oprot) + for iter1118 in self.checkConstraints: + iter1118.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21272,10 +21499,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.partNames = [] - (_etype1115, _size1112) = iprot.readListBegin() - for _i1116 in xrange(_size1112): - _elem1117 = iprot.readString() - self.partNames.append(_elem1117) + (_etype1122, _size1119) = iprot.readListBegin() + for _i1123 in xrange(_size1119): + _elem1124 = iprot.readString() + self.partNames.append(_elem1124) iprot.readListEnd() else: iprot.skip(ftype) @@ -21300,8 +21527,8 @@ def write(self, oprot): if self.partNames is not None: oprot.writeFieldBegin('partNames', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.partNames)) - for iter1118 in self.partNames: - oprot.writeString(iter1118) + for iter1125 in self.partNames: + oprot.writeString(iter1125) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21646,10 +21873,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1122, _size1119) = iprot.readListBegin() - for _i1123 in xrange(_size1119): - _elem1124 = iprot.readString() - self.success.append(_elem1124) + (_etype1129, _size1126) = iprot.readListBegin() + for _i1130 in xrange(_size1126): + _elem1131 = iprot.readString() + self.success.append(_elem1131) iprot.readListEnd() else: iprot.skip(ftype) @@ -21672,8 +21899,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 iter1125 in self.success: - oprot.writeString(iter1125) + for iter1132 in self.success: + oprot.writeString(iter1132) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21823,10 +22050,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1129, _size1126) = iprot.readListBegin() - for _i1130 in xrange(_size1126): - _elem1131 = iprot.readString() - self.success.append(_elem1131) + (_etype1136, _size1133) = iprot.readListBegin() + for _i1137 in xrange(_size1133): + _elem1138 = iprot.readString() + self.success.append(_elem1138) iprot.readListEnd() else: iprot.skip(ftype) @@ -21849,8 +22076,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 iter1132 in self.success: - oprot.writeString(iter1132) + for iter1139 in self.success: + oprot.writeString(iter1139) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21955,11 +22182,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1136, _size1133) = iprot.readListBegin() - for _i1137 in xrange(_size1133): - _elem1138 = Table() - _elem1138.read(iprot) - self.success.append(_elem1138) + (_etype1143, _size1140) = iprot.readListBegin() + for _i1144 in xrange(_size1140): + _elem1145 = Table() + _elem1145.read(iprot) + self.success.append(_elem1145) iprot.readListEnd() else: iprot.skip(ftype) @@ -21982,8 +22209,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 iter1139 in self.success: - iter1139.write(oprot) + for iter1146 in self.success: + iter1146.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -22107,10 +22334,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1143, _size1140) = iprot.readListBegin() - for _i1144 in xrange(_size1140): - _elem1145 = iprot.readString() - self.success.append(_elem1145) + (_etype1150, _size1147) = iprot.readListBegin() + for _i1151 in xrange(_size1147): + _elem1152 = iprot.readString() + self.success.append(_elem1152) iprot.readListEnd() else: iprot.skip(ftype) @@ -22133,8 +22360,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 iter1146 in self.success: - oprot.writeString(iter1146) + for iter1153 in self.success: + oprot.writeString(iter1153) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -22207,10 +22434,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.tbl_types = [] - (_etype1150, _size1147) = iprot.readListBegin() - for _i1151 in xrange(_size1147): - _elem1152 = iprot.readString() - self.tbl_types.append(_elem1152) + (_etype1157, _size1154) = iprot.readListBegin() + for _i1158 in xrange(_size1154): + _elem1159 = iprot.readString() + self.tbl_types.append(_elem1159) iprot.readListEnd() else: iprot.skip(ftype) @@ -22235,8 +22462,8 @@ def write(self, oprot): if self.tbl_types is not None: oprot.writeFieldBegin('tbl_types', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.tbl_types)) - for iter1153 in self.tbl_types: - oprot.writeString(iter1153) + for iter1160 in self.tbl_types: + oprot.writeString(iter1160) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -22292,11 +22519,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1157, _size1154) = iprot.readListBegin() - for _i1158 in xrange(_size1154): - _elem1159 = TableMeta() - _elem1159.read(iprot) - self.success.append(_elem1159) + (_etype1164, _size1161) = iprot.readListBegin() + for _i1165 in xrange(_size1161): + _elem1166 = TableMeta() + _elem1166.read(iprot) + self.success.append(_elem1166) iprot.readListEnd() else: iprot.skip(ftype) @@ -22319,8 +22546,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 iter1160 in self.success: - iter1160.write(oprot) + for iter1167 in self.success: + iter1167.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -22444,10 +22671,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1164, _size1161) = iprot.readListBegin() - for _i1165 in xrange(_size1161): - _elem1166 = iprot.readString() - self.success.append(_elem1166) + (_etype1171, _size1168) = iprot.readListBegin() + for _i1172 in xrange(_size1168): + _elem1173 = iprot.readString() + self.success.append(_elem1173) iprot.readListEnd() else: iprot.skip(ftype) @@ -22470,8 +22697,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 iter1167 in self.success: - oprot.writeString(iter1167) + for iter1174 in self.success: + oprot.writeString(iter1174) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -22707,10 +22934,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.tbl_names = [] - (_etype1171, _size1168) = iprot.readListBegin() - for _i1172 in xrange(_size1168): - _elem1173 = iprot.readString() - self.tbl_names.append(_elem1173) + (_etype1178, _size1175) = iprot.readListBegin() + for _i1179 in xrange(_size1175): + _elem1180 = iprot.readString() + self.tbl_names.append(_elem1180) iprot.readListEnd() else: iprot.skip(ftype) @@ -22731,8 +22958,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 iter1174 in self.tbl_names: - oprot.writeString(iter1174) + for iter1181 in self.tbl_names: + oprot.writeString(iter1181) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -22784,11 +23011,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1178, _size1175) = iprot.readListBegin() - for _i1179 in xrange(_size1175): - _elem1180 = Table() - _elem1180.read(iprot) - self.success.append(_elem1180) + (_etype1185, _size1182) = iprot.readListBegin() + for _i1186 in xrange(_size1182): + _elem1187 = Table() + _elem1187.read(iprot) + self.success.append(_elem1187) iprot.readListEnd() else: iprot.skip(ftype) @@ -22805,8 +23032,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 iter1181 in self.success: - iter1181.write(oprot) + for iter1188 in self.success: + iter1188.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -22926,11 +23153,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1185, _size1182) = iprot.readListBegin() - for _i1186 in xrange(_size1182): - _elem1187 = ExtendedTableInfo() - _elem1187.read(iprot) - self.success.append(_elem1187) + (_etype1192, _size1189) = iprot.readListBegin() + for _i1193 in xrange(_size1189): + _elem1194 = ExtendedTableInfo() + _elem1194.read(iprot) + self.success.append(_elem1194) iprot.readListEnd() else: iprot.skip(ftype) @@ -22953,8 +23180,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 iter1188 in self.success: - iter1188.write(oprot) + for iter1195 in self.success: + iter1195.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -23827,10 +24054,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1192, _size1189) = iprot.readListBegin() - for _i1193 in xrange(_size1189): - _elem1194 = iprot.readString() - self.success.append(_elem1194) + (_etype1199, _size1196) = iprot.readListBegin() + for _i1200 in xrange(_size1196): + _elem1201 = iprot.readString() + self.success.append(_elem1201) iprot.readListEnd() else: iprot.skip(ftype) @@ -23865,8 +24092,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 iter1195 in self.success: - oprot.writeString(iter1195) + for iter1202 in self.success: + oprot.writeString(iter1202) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -24995,11 +25222,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.new_parts = [] - (_etype1199, _size1196) = iprot.readListBegin() - for _i1200 in xrange(_size1196): - _elem1201 = Partition() - _elem1201.read(iprot) - self.new_parts.append(_elem1201) + (_etype1206, _size1203) = iprot.readListBegin() + for _i1207 in xrange(_size1203): + _elem1208 = Partition() + _elem1208.read(iprot) + self.new_parts.append(_elem1208) iprot.readListEnd() else: iprot.skip(ftype) @@ -25016,8 +25243,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 iter1202 in self.new_parts: - iter1202.write(oprot) + for iter1209 in self.new_parts: + iter1209.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -25175,11 +25402,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.new_parts = [] - (_etype1206, _size1203) = iprot.readListBegin() - for _i1207 in xrange(_size1203): - _elem1208 = PartitionSpec() - _elem1208.read(iprot) - self.new_parts.append(_elem1208) + (_etype1213, _size1210) = iprot.readListBegin() + for _i1214 in xrange(_size1210): + _elem1215 = PartitionSpec() + _elem1215.read(iprot) + self.new_parts.append(_elem1215) iprot.readListEnd() else: iprot.skip(ftype) @@ -25196,8 +25423,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 iter1209 in self.new_parts: - iter1209.write(oprot) + for iter1216 in self.new_parts: + iter1216.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -25371,10 +25598,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1213, _size1210) = iprot.readListBegin() - for _i1214 in xrange(_size1210): - _elem1215 = iprot.readString() - self.part_vals.append(_elem1215) + (_etype1220, _size1217) = iprot.readListBegin() + for _i1221 in xrange(_size1217): + _elem1222 = iprot.readString() + self.part_vals.append(_elem1222) iprot.readListEnd() else: iprot.skip(ftype) @@ -25399,8 +25626,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 iter1216 in self.part_vals: - oprot.writeString(iter1216) + for iter1223 in self.part_vals: + oprot.writeString(iter1223) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -25753,10 +25980,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1220, _size1217) = iprot.readListBegin() - for _i1221 in xrange(_size1217): - _elem1222 = iprot.readString() - self.part_vals.append(_elem1222) + (_etype1227, _size1224) = iprot.readListBegin() + for _i1228 in xrange(_size1224): + _elem1229 = iprot.readString() + self.part_vals.append(_elem1229) iprot.readListEnd() else: iprot.skip(ftype) @@ -25787,8 +26014,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 iter1223 in self.part_vals: - oprot.writeString(iter1223) + for iter1230 in self.part_vals: + oprot.writeString(iter1230) oprot.writeListEnd() oprot.writeFieldEnd() if self.environment_context is not None: @@ -26383,10 +26610,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1227, _size1224) = iprot.readListBegin() - for _i1228 in xrange(_size1224): - _elem1229 = iprot.readString() - self.part_vals.append(_elem1229) + (_etype1234, _size1231) = iprot.readListBegin() + for _i1235 in xrange(_size1231): + _elem1236 = iprot.readString() + self.part_vals.append(_elem1236) iprot.readListEnd() else: iprot.skip(ftype) @@ -26416,8 +26643,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 iter1230 in self.part_vals: - oprot.writeString(iter1230) + for iter1237 in self.part_vals: + oprot.writeString(iter1237) oprot.writeListEnd() oprot.writeFieldEnd() if self.deleteData is not None: @@ -26590,10 +26817,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1234, _size1231) = iprot.readListBegin() - for _i1235 in xrange(_size1231): - _elem1236 = iprot.readString() - self.part_vals.append(_elem1236) + (_etype1241, _size1238) = iprot.readListBegin() + for _i1242 in xrange(_size1238): + _elem1243 = iprot.readString() + self.part_vals.append(_elem1243) iprot.readListEnd() else: iprot.skip(ftype) @@ -26629,8 +26856,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 iter1237 in self.part_vals: - oprot.writeString(iter1237) + for iter1244 in self.part_vals: + oprot.writeString(iter1244) oprot.writeListEnd() oprot.writeFieldEnd() if self.deleteData is not None: @@ -27367,10 +27594,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1241, _size1238) = iprot.readListBegin() - for _i1242 in xrange(_size1238): - _elem1243 = iprot.readString() - self.part_vals.append(_elem1243) + (_etype1248, _size1245) = iprot.readListBegin() + for _i1249 in xrange(_size1245): + _elem1250 = iprot.readString() + self.part_vals.append(_elem1250) iprot.readListEnd() else: iprot.skip(ftype) @@ -27395,8 +27622,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 iter1244 in self.part_vals: - oprot.writeString(iter1244) + for iter1251 in self.part_vals: + oprot.writeString(iter1251) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -27555,11 +27782,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partitionSpecs = {} - (_ktype1246, _vtype1247, _size1245 ) = iprot.readMapBegin() - for _i1249 in xrange(_size1245): - _key1250 = iprot.readString() - _val1251 = iprot.readString() - self.partitionSpecs[_key1250] = _val1251 + (_ktype1253, _vtype1254, _size1252 ) = iprot.readMapBegin() + for _i1256 in xrange(_size1252): + _key1257 = iprot.readString() + _val1258 = iprot.readString() + self.partitionSpecs[_key1257] = _val1258 iprot.readMapEnd() else: iprot.skip(ftype) @@ -27596,9 +27823,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 kiter1252,viter1253 in self.partitionSpecs.items(): - oprot.writeString(kiter1252) - oprot.writeString(viter1253) + for kiter1259,viter1260 in self.partitionSpecs.items(): + oprot.writeString(kiter1259) + oprot.writeString(viter1260) oprot.writeMapEnd() oprot.writeFieldEnd() if self.source_db is not None: @@ -27803,11 +28030,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partitionSpecs = {} - (_ktype1255, _vtype1256, _size1254 ) = iprot.readMapBegin() - for _i1258 in xrange(_size1254): - _key1259 = iprot.readString() - _val1260 = iprot.readString() - self.partitionSpecs[_key1259] = _val1260 + (_ktype1262, _vtype1263, _size1261 ) = iprot.readMapBegin() + for _i1265 in xrange(_size1261): + _key1266 = iprot.readString() + _val1267 = iprot.readString() + self.partitionSpecs[_key1266] = _val1267 iprot.readMapEnd() else: iprot.skip(ftype) @@ -27844,9 +28071,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 kiter1261,viter1262 in self.partitionSpecs.items(): - oprot.writeString(kiter1261) - oprot.writeString(viter1262) + for kiter1268,viter1269 in self.partitionSpecs.items(): + oprot.writeString(kiter1268) + oprot.writeString(viter1269) oprot.writeMapEnd() oprot.writeFieldEnd() if self.source_db is not None: @@ -27929,11 +28156,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1266, _size1263) = iprot.readListBegin() - for _i1267 in xrange(_size1263): - _elem1268 = Partition() - _elem1268.read(iprot) - self.success.append(_elem1268) + (_etype1273, _size1270) = iprot.readListBegin() + for _i1274 in xrange(_size1270): + _elem1275 = Partition() + _elem1275.read(iprot) + self.success.append(_elem1275) iprot.readListEnd() else: iprot.skip(ftype) @@ -27974,8 +28201,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 iter1269 in self.success: - iter1269.write(oprot) + for iter1276 in self.success: + iter1276.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -28069,10 +28296,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1273, _size1270) = iprot.readListBegin() - for _i1274 in xrange(_size1270): - _elem1275 = iprot.readString() - self.part_vals.append(_elem1275) + (_etype1280, _size1277) = iprot.readListBegin() + for _i1281 in xrange(_size1277): + _elem1282 = iprot.readString() + self.part_vals.append(_elem1282) iprot.readListEnd() else: iprot.skip(ftype) @@ -28084,10 +28311,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype1279, _size1276) = iprot.readListBegin() - for _i1280 in xrange(_size1276): - _elem1281 = iprot.readString() - self.group_names.append(_elem1281) + (_etype1286, _size1283) = iprot.readListBegin() + for _i1287 in xrange(_size1283): + _elem1288 = iprot.readString() + self.group_names.append(_elem1288) iprot.readListEnd() else: iprot.skip(ftype) @@ -28112,8 +28339,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 iter1282 in self.part_vals: - oprot.writeString(iter1282) + for iter1289 in self.part_vals: + oprot.writeString(iter1289) oprot.writeListEnd() oprot.writeFieldEnd() if self.user_name is not None: @@ -28123,8 +28350,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 iter1283 in self.group_names: - oprot.writeString(iter1283) + for iter1290 in self.group_names: + oprot.writeString(iter1290) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -28553,11 +28780,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1287, _size1284) = iprot.readListBegin() - for _i1288 in xrange(_size1284): - _elem1289 = Partition() - _elem1289.read(iprot) - self.success.append(_elem1289) + (_etype1294, _size1291) = iprot.readListBegin() + for _i1295 in xrange(_size1291): + _elem1296 = Partition() + _elem1296.read(iprot) + self.success.append(_elem1296) iprot.readListEnd() else: iprot.skip(ftype) @@ -28586,8 +28813,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 iter1290 in self.success: - iter1290.write(oprot) + for iter1297 in self.success: + iter1297.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -28681,10 +28908,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype1294, _size1291) = iprot.readListBegin() - for _i1295 in xrange(_size1291): - _elem1296 = iprot.readString() - self.group_names.append(_elem1296) + (_etype1301, _size1298) = iprot.readListBegin() + for _i1302 in xrange(_size1298): + _elem1303 = iprot.readString() + self.group_names.append(_elem1303) iprot.readListEnd() else: iprot.skip(ftype) @@ -28717,8 +28944,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 iter1297 in self.group_names: - oprot.writeString(iter1297) + for iter1304 in self.group_names: + oprot.writeString(iter1304) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -28779,11 +29006,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1301, _size1298) = iprot.readListBegin() - for _i1302 in xrange(_size1298): - _elem1303 = Partition() - _elem1303.read(iprot) - self.success.append(_elem1303) + (_etype1308, _size1305) = iprot.readListBegin() + for _i1309 in xrange(_size1305): + _elem1310 = Partition() + _elem1310.read(iprot) + self.success.append(_elem1310) iprot.readListEnd() else: iprot.skip(ftype) @@ -28812,8 +29039,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 iter1304 in self.success: - iter1304.write(oprot) + for iter1311 in self.success: + iter1311.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -28971,11 +29198,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1308, _size1305) = iprot.readListBegin() - for _i1309 in xrange(_size1305): - _elem1310 = PartitionSpec() - _elem1310.read(iprot) - self.success.append(_elem1310) + (_etype1315, _size1312) = iprot.readListBegin() + for _i1316 in xrange(_size1312): + _elem1317 = PartitionSpec() + _elem1317.read(iprot) + self.success.append(_elem1317) iprot.readListEnd() else: iprot.skip(ftype) @@ -29004,8 +29231,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 iter1311 in self.success: - iter1311.write(oprot) + for iter1318 in self.success: + iter1318.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -29163,10 +29390,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1315, _size1312) = iprot.readListBegin() - for _i1316 in xrange(_size1312): - _elem1317 = iprot.readString() - self.success.append(_elem1317) + (_etype1322, _size1319) = iprot.readListBegin() + for _i1323 in xrange(_size1319): + _elem1324 = iprot.readString() + self.success.append(_elem1324) iprot.readListEnd() else: iprot.skip(ftype) @@ -29195,8 +29422,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 iter1318 in self.success: - oprot.writeString(iter1318) + for iter1325 in self.success: + oprot.writeString(iter1325) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -29436,10 +29663,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1322, _size1319) = iprot.readListBegin() - for _i1323 in xrange(_size1319): - _elem1324 = iprot.readString() - self.part_vals.append(_elem1324) + (_etype1329, _size1326) = iprot.readListBegin() + for _i1330 in xrange(_size1326): + _elem1331 = iprot.readString() + self.part_vals.append(_elem1331) iprot.readListEnd() else: iprot.skip(ftype) @@ -29469,8 +29696,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 iter1325 in self.part_vals: - oprot.writeString(iter1325) + for iter1332 in self.part_vals: + oprot.writeString(iter1332) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -29534,11 +29761,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1329, _size1326) = iprot.readListBegin() - for _i1330 in xrange(_size1326): - _elem1331 = Partition() - _elem1331.read(iprot) - self.success.append(_elem1331) + (_etype1336, _size1333) = iprot.readListBegin() + for _i1337 in xrange(_size1333): + _elem1338 = Partition() + _elem1338.read(iprot) + self.success.append(_elem1338) iprot.readListEnd() else: iprot.skip(ftype) @@ -29567,8 +29794,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 iter1332 in self.success: - iter1332.write(oprot) + for iter1339 in self.success: + iter1339.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -29655,10 +29882,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1336, _size1333) = iprot.readListBegin() - for _i1337 in xrange(_size1333): - _elem1338 = iprot.readString() - self.part_vals.append(_elem1338) + (_etype1343, _size1340) = iprot.readListBegin() + for _i1344 in xrange(_size1340): + _elem1345 = iprot.readString() + self.part_vals.append(_elem1345) iprot.readListEnd() else: iprot.skip(ftype) @@ -29675,10 +29902,10 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.group_names = [] - (_etype1342, _size1339) = iprot.readListBegin() - for _i1343 in xrange(_size1339): - _elem1344 = iprot.readString() - self.group_names.append(_elem1344) + (_etype1349, _size1346) = iprot.readListBegin() + for _i1350 in xrange(_size1346): + _elem1351 = iprot.readString() + self.group_names.append(_elem1351) iprot.readListEnd() else: iprot.skip(ftype) @@ -29703,8 +29930,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 iter1345 in self.part_vals: - oprot.writeString(iter1345) + for iter1352 in self.part_vals: + oprot.writeString(iter1352) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -29718,8 +29945,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 iter1346 in self.group_names: - oprot.writeString(iter1346) + for iter1353 in self.group_names: + oprot.writeString(iter1353) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -29781,11 +30008,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1350, _size1347) = iprot.readListBegin() - for _i1351 in xrange(_size1347): - _elem1352 = Partition() - _elem1352.read(iprot) - self.success.append(_elem1352) + (_etype1357, _size1354) = iprot.readListBegin() + for _i1358 in xrange(_size1354): + _elem1359 = Partition() + _elem1359.read(iprot) + self.success.append(_elem1359) iprot.readListEnd() else: iprot.skip(ftype) @@ -29814,8 +30041,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 iter1353 in self.success: - iter1353.write(oprot) + for iter1360 in self.success: + iter1360.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -29896,10 +30123,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1357, _size1354) = iprot.readListBegin() - for _i1358 in xrange(_size1354): - _elem1359 = iprot.readString() - self.part_vals.append(_elem1359) + (_etype1364, _size1361) = iprot.readListBegin() + for _i1365 in xrange(_size1361): + _elem1366 = iprot.readString() + self.part_vals.append(_elem1366) iprot.readListEnd() else: iprot.skip(ftype) @@ -29929,8 +30156,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 iter1360 in self.part_vals: - oprot.writeString(iter1360) + for iter1367 in self.part_vals: + oprot.writeString(iter1367) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -29994,10 +30221,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1364, _size1361) = iprot.readListBegin() - for _i1365 in xrange(_size1361): - _elem1366 = iprot.readString() - self.success.append(_elem1366) + (_etype1371, _size1368) = iprot.readListBegin() + for _i1372 in xrange(_size1368): + _elem1373 = iprot.readString() + self.success.append(_elem1373) iprot.readListEnd() else: iprot.skip(ftype) @@ -30026,8 +30253,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 iter1367 in self.success: - oprot.writeString(iter1367) + for iter1374 in self.success: + oprot.writeString(iter1374) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -30198,11 +30425,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1371, _size1368) = iprot.readListBegin() - for _i1372 in xrange(_size1368): - _elem1373 = Partition() - _elem1373.read(iprot) - self.success.append(_elem1373) + (_etype1378, _size1375) = iprot.readListBegin() + for _i1379 in xrange(_size1375): + _elem1380 = Partition() + _elem1380.read(iprot) + self.success.append(_elem1380) iprot.readListEnd() else: iprot.skip(ftype) @@ -30231,8 +30458,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 iter1374 in self.success: - iter1374.write(oprot) + for iter1381 in self.success: + iter1381.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -30403,11 +30630,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1378, _size1375) = iprot.readListBegin() - for _i1379 in xrange(_size1375): - _elem1380 = PartitionSpec() - _elem1380.read(iprot) - self.success.append(_elem1380) + (_etype1385, _size1382) = iprot.readListBegin() + for _i1386 in xrange(_size1382): + _elem1387 = PartitionSpec() + _elem1387.read(iprot) + self.success.append(_elem1387) iprot.readListEnd() else: iprot.skip(ftype) @@ -30436,8 +30663,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 iter1381 in self.success: - iter1381.write(oprot) + for iter1388 in self.success: + iter1388.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -30857,10 +31084,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.names = [] - (_etype1385, _size1382) = iprot.readListBegin() - for _i1386 in xrange(_size1382): - _elem1387 = iprot.readString() - self.names.append(_elem1387) + (_etype1392, _size1389) = iprot.readListBegin() + for _i1393 in xrange(_size1389): + _elem1394 = iprot.readString() + self.names.append(_elem1394) iprot.readListEnd() else: iprot.skip(ftype) @@ -30885,8 +31112,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 iter1388 in self.names: - oprot.writeString(iter1388) + for iter1395 in self.names: + oprot.writeString(iter1395) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -30945,11 +31172,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1392, _size1389) = iprot.readListBegin() - for _i1393 in xrange(_size1389): - _elem1394 = Partition() - _elem1394.read(iprot) - self.success.append(_elem1394) + (_etype1399, _size1396) = iprot.readListBegin() + for _i1400 in xrange(_size1396): + _elem1401 = Partition() + _elem1401.read(iprot) + self.success.append(_elem1401) iprot.readListEnd() else: iprot.skip(ftype) @@ -30978,8 +31205,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 iter1395 in self.success: - iter1395.write(oprot) + for iter1402 in self.success: + iter1402.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -31388,11 +31615,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.new_parts = [] - (_etype1399, _size1396) = iprot.readListBegin() - for _i1400 in xrange(_size1396): - _elem1401 = Partition() - _elem1401.read(iprot) - self.new_parts.append(_elem1401) + (_etype1406, _size1403) = iprot.readListBegin() + for _i1407 in xrange(_size1403): + _elem1408 = Partition() + _elem1408.read(iprot) + self.new_parts.append(_elem1408) iprot.readListEnd() else: iprot.skip(ftype) @@ -31417,8 +31644,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 iter1402 in self.new_parts: - iter1402.write(oprot) + for iter1409 in self.new_parts: + iter1409.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -31571,11 +31798,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.new_parts = [] - (_etype1406, _size1403) = iprot.readListBegin() - for _i1407 in xrange(_size1403): - _elem1408 = Partition() - _elem1408.read(iprot) - self.new_parts.append(_elem1408) + (_etype1413, _size1410) = iprot.readListBegin() + for _i1414 in xrange(_size1410): + _elem1415 = Partition() + _elem1415.read(iprot) + self.new_parts.append(_elem1415) iprot.readListEnd() else: iprot.skip(ftype) @@ -31606,8 +31833,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 iter1409 in self.new_parts: - iter1409.write(oprot) + for iter1416 in self.new_parts: + iter1416.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.environment_context is not None: @@ -32110,10 +32337,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1413, _size1410) = iprot.readListBegin() - for _i1414 in xrange(_size1410): - _elem1415 = iprot.readString() - self.part_vals.append(_elem1415) + (_etype1420, _size1417) = iprot.readListBegin() + for _i1421 in xrange(_size1417): + _elem1422 = iprot.readString() + self.part_vals.append(_elem1422) iprot.readListEnd() else: iprot.skip(ftype) @@ -32144,8 +32371,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 iter1416 in self.part_vals: - oprot.writeString(iter1416) + for iter1423 in self.part_vals: + oprot.writeString(iter1423) oprot.writeListEnd() oprot.writeFieldEnd() if self.new_part is not None: @@ -32446,10 +32673,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.part_vals = [] - (_etype1420, _size1417) = iprot.readListBegin() - for _i1421 in xrange(_size1417): - _elem1422 = iprot.readString() - self.part_vals.append(_elem1422) + (_etype1427, _size1424) = iprot.readListBegin() + for _i1428 in xrange(_size1424): + _elem1429 = iprot.readString() + self.part_vals.append(_elem1429) iprot.readListEnd() else: iprot.skip(ftype) @@ -32471,8 +32698,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 iter1423 in self.part_vals: - oprot.writeString(iter1423) + for iter1430 in self.part_vals: + oprot.writeString(iter1430) oprot.writeListEnd() oprot.writeFieldEnd() if self.throw_exception is not None: @@ -32830,10 +33057,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1427, _size1424) = iprot.readListBegin() - for _i1428 in xrange(_size1424): - _elem1429 = iprot.readString() - self.success.append(_elem1429) + (_etype1434, _size1431) = iprot.readListBegin() + for _i1435 in xrange(_size1431): + _elem1436 = iprot.readString() + self.success.append(_elem1436) iprot.readListEnd() else: iprot.skip(ftype) @@ -32856,8 +33083,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 iter1430 in self.success: - oprot.writeString(iter1430) + for iter1437 in self.success: + oprot.writeString(iter1437) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -32981,11 +33208,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype1432, _vtype1433, _size1431 ) = iprot.readMapBegin() - for _i1435 in xrange(_size1431): - _key1436 = iprot.readString() - _val1437 = iprot.readString() - self.success[_key1436] = _val1437 + (_ktype1439, _vtype1440, _size1438 ) = iprot.readMapBegin() + for _i1442 in xrange(_size1438): + _key1443 = iprot.readString() + _val1444 = iprot.readString() + self.success[_key1443] = _val1444 iprot.readMapEnd() else: iprot.skip(ftype) @@ -33008,9 +33235,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 kiter1438,viter1439 in self.success.items(): - oprot.writeString(kiter1438) - oprot.writeString(viter1439) + for kiter1445,viter1446 in self.success.items(): + oprot.writeString(kiter1445) + oprot.writeString(viter1446) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -33086,11 +33313,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype1441, _vtype1442, _size1440 ) = iprot.readMapBegin() - for _i1444 in xrange(_size1440): - _key1445 = iprot.readString() - _val1446 = iprot.readString() - self.part_vals[_key1445] = _val1446 + (_ktype1448, _vtype1449, _size1447 ) = iprot.readMapBegin() + for _i1451 in xrange(_size1447): + _key1452 = iprot.readString() + _val1453 = iprot.readString() + self.part_vals[_key1452] = _val1453 iprot.readMapEnd() else: iprot.skip(ftype) @@ -33120,9 +33347,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 kiter1447,viter1448 in self.part_vals.items(): - oprot.writeString(kiter1447) - oprot.writeString(viter1448) + for kiter1454,viter1455 in self.part_vals.items(): + oprot.writeString(kiter1454) + oprot.writeString(viter1455) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -33336,11 +33563,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype1450, _vtype1451, _size1449 ) = iprot.readMapBegin() - for _i1453 in xrange(_size1449): - _key1454 = iprot.readString() - _val1455 = iprot.readString() - self.part_vals[_key1454] = _val1455 + (_ktype1457, _vtype1458, _size1456 ) = iprot.readMapBegin() + for _i1460 in xrange(_size1456): + _key1461 = iprot.readString() + _val1462 = iprot.readString() + self.part_vals[_key1461] = _val1462 iprot.readMapEnd() else: iprot.skip(ftype) @@ -33370,9 +33597,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 kiter1456,viter1457 in self.part_vals.items(): - oprot.writeString(kiter1456) - oprot.writeString(viter1457) + for kiter1463,viter1464 in self.part_vals.items(): + oprot.writeString(kiter1463) + oprot.writeString(viter1464) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -37424,10 +37651,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1461, _size1458) = iprot.readListBegin() - for _i1462 in xrange(_size1458): - _elem1463 = iprot.readString() - self.success.append(_elem1463) + (_etype1468, _size1465) = iprot.readListBegin() + for _i1469 in xrange(_size1465): + _elem1470 = iprot.readString() + self.success.append(_elem1470) iprot.readListEnd() else: iprot.skip(ftype) @@ -37450,8 +37677,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 iter1464 in self.success: - oprot.writeString(iter1464) + for iter1471 in self.success: + oprot.writeString(iter1471) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -38139,10 +38366,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1468, _size1465) = iprot.readListBegin() - for _i1469 in xrange(_size1465): - _elem1470 = iprot.readString() - self.success.append(_elem1470) + (_etype1475, _size1472) = iprot.readListBegin() + for _i1476 in xrange(_size1472): + _elem1477 = iprot.readString() + self.success.append(_elem1477) iprot.readListEnd() else: iprot.skip(ftype) @@ -38165,8 +38392,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 iter1471 in self.success: - oprot.writeString(iter1471) + for iter1478 in self.success: + oprot.writeString(iter1478) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -38680,11 +38907,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1475, _size1472) = iprot.readListBegin() - for _i1476 in xrange(_size1472): - _elem1477 = Role() - _elem1477.read(iprot) - self.success.append(_elem1477) + (_etype1482, _size1479) = iprot.readListBegin() + for _i1483 in xrange(_size1479): + _elem1484 = Role() + _elem1484.read(iprot) + self.success.append(_elem1484) iprot.readListEnd() else: iprot.skip(ftype) @@ -38707,8 +38934,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 iter1478 in self.success: - iter1478.write(oprot) + for iter1485 in self.success: + iter1485.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -39217,10 +39444,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.group_names = [] - (_etype1482, _size1479) = iprot.readListBegin() - for _i1483 in xrange(_size1479): - _elem1484 = iprot.readString() - self.group_names.append(_elem1484) + (_etype1489, _size1486) = iprot.readListBegin() + for _i1490 in xrange(_size1486): + _elem1491 = iprot.readString() + self.group_names.append(_elem1491) iprot.readListEnd() else: iprot.skip(ftype) @@ -39245,8 +39472,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 iter1485 in self.group_names: - oprot.writeString(iter1485) + for iter1492 in self.group_names: + oprot.writeString(iter1492) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -39473,11 +39700,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1489, _size1486) = iprot.readListBegin() - for _i1490 in xrange(_size1486): - _elem1491 = HiveObjectPrivilege() - _elem1491.read(iprot) - self.success.append(_elem1491) + (_etype1496, _size1493) = iprot.readListBegin() + for _i1497 in xrange(_size1493): + _elem1498 = HiveObjectPrivilege() + _elem1498.read(iprot) + self.success.append(_elem1498) iprot.readListEnd() else: iprot.skip(ftype) @@ -39500,8 +39727,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 iter1492 in self.success: - iter1492.write(oprot) + for iter1499 in self.success: + iter1499.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -40171,10 +40398,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.group_names = [] - (_etype1496, _size1493) = iprot.readListBegin() - for _i1497 in xrange(_size1493): - _elem1498 = iprot.readString() - self.group_names.append(_elem1498) + (_etype1503, _size1500) = iprot.readListBegin() + for _i1504 in xrange(_size1500): + _elem1505 = iprot.readString() + self.group_names.append(_elem1505) iprot.readListEnd() else: iprot.skip(ftype) @@ -40195,8 +40422,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 iter1499 in self.group_names: - oprot.writeString(iter1499) + for iter1506 in self.group_names: + oprot.writeString(iter1506) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -40251,10 +40478,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1503, _size1500) = iprot.readListBegin() - for _i1504 in xrange(_size1500): - _elem1505 = iprot.readString() - self.success.append(_elem1505) + (_etype1510, _size1507) = iprot.readListBegin() + for _i1511 in xrange(_size1507): + _elem1512 = iprot.readString() + self.success.append(_elem1512) iprot.readListEnd() else: iprot.skip(ftype) @@ -40277,8 +40504,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 iter1506 in self.success: - oprot.writeString(iter1506) + for iter1513 in self.success: + oprot.writeString(iter1513) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -41210,10 +41437,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1510, _size1507) = iprot.readListBegin() - for _i1511 in xrange(_size1507): - _elem1512 = iprot.readString() - self.success.append(_elem1512) + (_etype1517, _size1514) = iprot.readListBegin() + for _i1518 in xrange(_size1514): + _elem1519 = iprot.readString() + self.success.append(_elem1519) iprot.readListEnd() else: iprot.skip(ftype) @@ -41230,8 +41457,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 iter1513 in self.success: - oprot.writeString(iter1513) + for iter1520 in self.success: + oprot.writeString(iter1520) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -41758,10 +41985,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1517, _size1514) = iprot.readListBegin() - for _i1518 in xrange(_size1514): - _elem1519 = iprot.readString() - self.success.append(_elem1519) + (_etype1524, _size1521) = iprot.readListBegin() + for _i1525 in xrange(_size1521): + _elem1526 = iprot.readString() + self.success.append(_elem1526) iprot.readListEnd() else: iprot.skip(ftype) @@ -41778,8 +42005,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 iter1520 in self.success: - oprot.writeString(iter1520) + for iter1527 in self.success: + oprot.writeString(iter1527) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -44792,10 +45019,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1524, _size1521) = iprot.readListBegin() - for _i1525 in xrange(_size1521): - _elem1526 = iprot.readString() - self.success.append(_elem1526) + (_etype1531, _size1528) = iprot.readListBegin() + for _i1532 in xrange(_size1528): + _elem1533 = iprot.readString() + self.success.append(_elem1533) iprot.readListEnd() else: iprot.skip(ftype) @@ -44812,8 +45039,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 iter1527 in self.success: - oprot.writeString(iter1527) + for iter1534 in self.success: + oprot.writeString(iter1534) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -51123,11 +51350,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1531, _size1528) = iprot.readListBegin() - for _i1532 in xrange(_size1528): - _elem1533 = SchemaVersion() - _elem1533.read(iprot) - self.success.append(_elem1533) + (_etype1538, _size1535) = iprot.readListBegin() + for _i1539 in xrange(_size1535): + _elem1540 = SchemaVersion() + _elem1540.read(iprot) + self.success.append(_elem1540) iprot.readListEnd() else: iprot.skip(ftype) @@ -51156,8 +51383,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 iter1534 in self.success: - iter1534.write(oprot) + for iter1541 in self.success: + iter1541.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -52632,11 +52859,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1538, _size1535) = iprot.readListBegin() - for _i1539 in xrange(_size1535): - _elem1540 = RuntimeStat() - _elem1540.read(iprot) - self.success.append(_elem1540) + (_etype1545, _size1542) = iprot.readListBegin() + for _i1546 in xrange(_size1542): + _elem1547 = RuntimeStat() + _elem1547.read(iprot) + self.success.append(_elem1547) iprot.readListEnd() else: iprot.skip(ftype) @@ -52659,8 +52886,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 iter1541 in self.success: - iter1541.write(oprot) + for iter1548 in self.success: + iter1548.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ttypes.py standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ttypes.py index 08c0730e1c..38c4fe3016 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ttypes.py +++ standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ttypes.py @@ -19306,6 +19306,120 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +class GetDatabaseRequest: + """ + Attributes: + - name + - catalogName + - processorCapabilities + - processorIdentifier + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRING, 'name', None, None, ), # 1 + (2, TType.STRING, 'catalogName', None, None, ), # 2 + (3, TType.LIST, 'processorCapabilities', (TType.STRING,None), None, ), # 3 + (4, TType.STRING, 'processorIdentifier', None, None, ), # 4 + ) + + def __init__(self, name=None, catalogName=None, processorCapabilities=None, processorIdentifier=None,): + self.name = name + self.catalogName = catalogName + self.processorCapabilities = processorCapabilities + self.processorIdentifier = processorIdentifier + + 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.name = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.catalogName = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.LIST: + self.processorCapabilities = [] + (_etype854, _size851) = iprot.readListBegin() + for _i855 in xrange(_size851): + _elem856 = iprot.readString() + self.processorCapabilities.append(_elem856) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.processorIdentifier = 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('GetDatabaseRequest') + if self.name is not None: + oprot.writeFieldBegin('name', TType.STRING, 1) + oprot.writeString(self.name) + oprot.writeFieldEnd() + if self.catalogName is not None: + oprot.writeFieldBegin('catalogName', TType.STRING, 2) + oprot.writeString(self.catalogName) + oprot.writeFieldEnd() + if self.processorCapabilities is not None: + oprot.writeFieldBegin('processorCapabilities', TType.LIST, 3) + oprot.writeListBegin(TType.STRING, len(self.processorCapabilities)) + for iter857 in self.processorCapabilities: + oprot.writeString(iter857) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.processorIdentifier is not None: + oprot.writeFieldBegin('processorIdentifier', TType.STRING, 4) + oprot.writeString(self.processorIdentifier) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.name is None: + raise TProtocol.TProtocolException(message='Required field name is unset!') + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.name) + value = (value * 31) ^ hash(self.catalogName) + value = (value * 31) ^ hash(self.processorCapabilities) + value = (value * 31) ^ hash(self.processorIdentifier) + 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 CmRecycleRequest: """ Attributes: @@ -20577,44 +20691,44 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.pools = [] - (_etype854, _size851) = iprot.readListBegin() - for _i855 in xrange(_size851): - _elem856 = WMPool() - _elem856.read(iprot) - self.pools.append(_elem856) + (_etype861, _size858) = iprot.readListBegin() + for _i862 in xrange(_size858): + _elem863 = WMPool() + _elem863.read(iprot) + self.pools.append(_elem863) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.mappings = [] - (_etype860, _size857) = iprot.readListBegin() - for _i861 in xrange(_size857): - _elem862 = WMMapping() - _elem862.read(iprot) - self.mappings.append(_elem862) + (_etype867, _size864) = iprot.readListBegin() + for _i868 in xrange(_size864): + _elem869 = WMMapping() + _elem869.read(iprot) + self.mappings.append(_elem869) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.triggers = [] - (_etype866, _size863) = iprot.readListBegin() - for _i867 in xrange(_size863): - _elem868 = WMTrigger() - _elem868.read(iprot) - self.triggers.append(_elem868) + (_etype873, _size870) = iprot.readListBegin() + for _i874 in xrange(_size870): + _elem875 = WMTrigger() + _elem875.read(iprot) + self.triggers.append(_elem875) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.LIST: self.poolTriggers = [] - (_etype872, _size869) = iprot.readListBegin() - for _i873 in xrange(_size869): - _elem874 = WMPoolTrigger() - _elem874.read(iprot) - self.poolTriggers.append(_elem874) + (_etype879, _size876) = iprot.readListBegin() + for _i880 in xrange(_size876): + _elem881 = WMPoolTrigger() + _elem881.read(iprot) + self.poolTriggers.append(_elem881) iprot.readListEnd() else: iprot.skip(ftype) @@ -20635,29 +20749,29 @@ def write(self, oprot): if self.pools is not None: oprot.writeFieldBegin('pools', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.pools)) - for iter875 in self.pools: - iter875.write(oprot) + for iter882 in self.pools: + iter882.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.mappings is not None: oprot.writeFieldBegin('mappings', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.mappings)) - for iter876 in self.mappings: - iter876.write(oprot) + for iter883 in self.mappings: + iter883.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.triggers is not None: oprot.writeFieldBegin('triggers', TType.LIST, 4) oprot.writeListBegin(TType.STRUCT, len(self.triggers)) - for iter877 in self.triggers: - iter877.write(oprot) + for iter884 in self.triggers: + iter884.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.poolTriggers is not None: oprot.writeFieldBegin('poolTriggers', TType.LIST, 5) oprot.writeListBegin(TType.STRUCT, len(self.poolTriggers)) - for iter878 in self.poolTriggers: - iter878.write(oprot) + for iter885 in self.poolTriggers: + iter885.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21182,11 +21296,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.resourcePlans = [] - (_etype882, _size879) = iprot.readListBegin() - for _i883 in xrange(_size879): - _elem884 = WMResourcePlan() - _elem884.read(iprot) - self.resourcePlans.append(_elem884) + (_etype889, _size886) = iprot.readListBegin() + for _i890 in xrange(_size886): + _elem891 = WMResourcePlan() + _elem891.read(iprot) + self.resourcePlans.append(_elem891) iprot.readListEnd() else: iprot.skip(ftype) @@ -21203,8 +21317,8 @@ def write(self, oprot): if self.resourcePlans is not None: oprot.writeFieldBegin('resourcePlans', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.resourcePlans)) - for iter885 in self.resourcePlans: - iter885.write(oprot) + for iter892 in self.resourcePlans: + iter892.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21534,20 +21648,20 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.errors = [] - (_etype889, _size886) = iprot.readListBegin() - for _i890 in xrange(_size886): - _elem891 = iprot.readString() - self.errors.append(_elem891) + (_etype896, _size893) = iprot.readListBegin() + for _i897 in xrange(_size893): + _elem898 = iprot.readString() + self.errors.append(_elem898) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.warnings = [] - (_etype895, _size892) = iprot.readListBegin() - for _i896 in xrange(_size892): - _elem897 = iprot.readString() - self.warnings.append(_elem897) + (_etype902, _size899) = iprot.readListBegin() + for _i903 in xrange(_size899): + _elem904 = iprot.readString() + self.warnings.append(_elem904) iprot.readListEnd() else: iprot.skip(ftype) @@ -21564,15 +21678,15 @@ def write(self, oprot): if self.errors is not None: oprot.writeFieldBegin('errors', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.errors)) - for iter898 in self.errors: - oprot.writeString(iter898) + for iter905 in self.errors: + oprot.writeString(iter905) oprot.writeListEnd() oprot.writeFieldEnd() if self.warnings is not None: oprot.writeFieldBegin('warnings', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.warnings)) - for iter899 in self.warnings: - oprot.writeString(iter899) + for iter906 in self.warnings: + oprot.writeString(iter906) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -22188,11 +22302,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.triggers = [] - (_etype903, _size900) = iprot.readListBegin() - for _i904 in xrange(_size900): - _elem905 = WMTrigger() - _elem905.read(iprot) - self.triggers.append(_elem905) + (_etype910, _size907) = iprot.readListBegin() + for _i911 in xrange(_size907): + _elem912 = WMTrigger() + _elem912.read(iprot) + self.triggers.append(_elem912) iprot.readListEnd() else: iprot.skip(ftype) @@ -22209,8 +22323,8 @@ def write(self, oprot): if self.triggers is not None: oprot.writeFieldBegin('triggers', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.triggers)) - for iter906 in self.triggers: - iter906.write(oprot) + for iter913 in self.triggers: + iter913.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -23420,11 +23534,11 @@ def read(self, iprot): elif fid == 4: if ftype == TType.LIST: self.cols = [] - (_etype910, _size907) = iprot.readListBegin() - for _i911 in xrange(_size907): - _elem912 = FieldSchema() - _elem912.read(iprot) - self.cols.append(_elem912) + (_etype917, _size914) = iprot.readListBegin() + for _i918 in xrange(_size914): + _elem919 = FieldSchema() + _elem919.read(iprot) + self.cols.append(_elem919) iprot.readListEnd() else: iprot.skip(ftype) @@ -23484,8 +23598,8 @@ def write(self, oprot): if self.cols is not None: oprot.writeFieldBegin('cols', TType.LIST, 4) oprot.writeListBegin(TType.STRUCT, len(self.cols)) - for iter913 in self.cols: - iter913.write(oprot) + for iter920 in self.cols: + iter920.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.state is not None: @@ -23740,11 +23854,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.schemaVersions = [] - (_etype917, _size914) = iprot.readListBegin() - for _i918 in xrange(_size914): - _elem919 = SchemaVersionDescriptor() - _elem919.read(iprot) - self.schemaVersions.append(_elem919) + (_etype924, _size921) = iprot.readListBegin() + for _i925 in xrange(_size921): + _elem926 = SchemaVersionDescriptor() + _elem926.read(iprot) + self.schemaVersions.append(_elem926) iprot.readListEnd() else: iprot.skip(ftype) @@ -23761,8 +23875,8 @@ def write(self, oprot): if self.schemaVersions is not None: oprot.writeFieldBegin('schemaVersions', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.schemaVersions)) - for iter920 in self.schemaVersions: - iter920.write(oprot) + for iter927 in self.schemaVersions: + iter927.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -24253,76 +24367,76 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.primaryKeys = [] - (_etype924, _size921) = iprot.readListBegin() - for _i925 in xrange(_size921): - _elem926 = SQLPrimaryKey() - _elem926.read(iprot) - self.primaryKeys.append(_elem926) + (_etype931, _size928) = iprot.readListBegin() + for _i932 in xrange(_size928): + _elem933 = SQLPrimaryKey() + _elem933.read(iprot) + self.primaryKeys.append(_elem933) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.foreignKeys = [] - (_etype930, _size927) = iprot.readListBegin() - for _i931 in xrange(_size927): - _elem932 = SQLForeignKey() - _elem932.read(iprot) - self.foreignKeys.append(_elem932) + (_etype937, _size934) = iprot.readListBegin() + for _i938 in xrange(_size934): + _elem939 = SQLForeignKey() + _elem939.read(iprot) + self.foreignKeys.append(_elem939) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.LIST: self.uniqueConstraints = [] - (_etype936, _size933) = iprot.readListBegin() - for _i937 in xrange(_size933): - _elem938 = SQLUniqueConstraint() - _elem938.read(iprot) - self.uniqueConstraints.append(_elem938) + (_etype943, _size940) = iprot.readListBegin() + for _i944 in xrange(_size940): + _elem945 = SQLUniqueConstraint() + _elem945.read(iprot) + self.uniqueConstraints.append(_elem945) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.LIST: self.notNullConstraints = [] - (_etype942, _size939) = iprot.readListBegin() - for _i943 in xrange(_size939): - _elem944 = SQLNotNullConstraint() - _elem944.read(iprot) - self.notNullConstraints.append(_elem944) + (_etype949, _size946) = iprot.readListBegin() + for _i950 in xrange(_size946): + _elem951 = SQLNotNullConstraint() + _elem951.read(iprot) + self.notNullConstraints.append(_elem951) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.LIST: self.defaultConstraints = [] - (_etype948, _size945) = iprot.readListBegin() - for _i949 in xrange(_size945): - _elem950 = SQLDefaultConstraint() - _elem950.read(iprot) - self.defaultConstraints.append(_elem950) + (_etype955, _size952) = iprot.readListBegin() + for _i956 in xrange(_size952): + _elem957 = SQLDefaultConstraint() + _elem957.read(iprot) + self.defaultConstraints.append(_elem957) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 8: if ftype == TType.LIST: self.checkConstraints = [] - (_etype954, _size951) = iprot.readListBegin() - for _i955 in xrange(_size951): - _elem956 = SQLCheckConstraint() - _elem956.read(iprot) - self.checkConstraints.append(_elem956) + (_etype961, _size958) = iprot.readListBegin() + for _i962 in xrange(_size958): + _elem963 = SQLCheckConstraint() + _elem963.read(iprot) + self.checkConstraints.append(_elem963) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 9: if ftype == TType.LIST: self.processorCapabilities = [] - (_etype960, _size957) = iprot.readListBegin() - for _i961 in xrange(_size957): - _elem962 = iprot.readString() - self.processorCapabilities.append(_elem962) + (_etype967, _size964) = iprot.readListBegin() + for _i968 in xrange(_size964): + _elem969 = iprot.readString() + self.processorCapabilities.append(_elem969) iprot.readListEnd() else: iprot.skip(ftype) @@ -24352,50 +24466,50 @@ def write(self, oprot): if self.primaryKeys is not None: oprot.writeFieldBegin('primaryKeys', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.primaryKeys)) - for iter963 in self.primaryKeys: - iter963.write(oprot) + for iter970 in self.primaryKeys: + iter970.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.foreignKeys is not None: oprot.writeFieldBegin('foreignKeys', TType.LIST, 4) oprot.writeListBegin(TType.STRUCT, len(self.foreignKeys)) - for iter964 in self.foreignKeys: - iter964.write(oprot) + for iter971 in self.foreignKeys: + iter971.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.uniqueConstraints is not None: oprot.writeFieldBegin('uniqueConstraints', TType.LIST, 5) oprot.writeListBegin(TType.STRUCT, len(self.uniqueConstraints)) - for iter965 in self.uniqueConstraints: - iter965.write(oprot) + for iter972 in self.uniqueConstraints: + iter972.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.notNullConstraints is not None: oprot.writeFieldBegin('notNullConstraints', TType.LIST, 6) oprot.writeListBegin(TType.STRUCT, len(self.notNullConstraints)) - for iter966 in self.notNullConstraints: - iter966.write(oprot) + for iter973 in self.notNullConstraints: + iter973.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.defaultConstraints is not None: oprot.writeFieldBegin('defaultConstraints', TType.LIST, 7) oprot.writeListBegin(TType.STRUCT, len(self.defaultConstraints)) - for iter967 in self.defaultConstraints: - iter967.write(oprot) + for iter974 in self.defaultConstraints: + iter974.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.checkConstraints is not None: oprot.writeFieldBegin('checkConstraints', TType.LIST, 8) oprot.writeListBegin(TType.STRUCT, len(self.checkConstraints)) - for iter968 in self.checkConstraints: - iter968.write(oprot) + for iter975 in self.checkConstraints: + iter975.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.processorCapabilities is not None: oprot.writeFieldBegin('processorCapabilities', TType.LIST, 9) oprot.writeListBegin(TType.STRING, len(self.processorCapabilities)) - for iter969 in self.processorCapabilities: - oprot.writeString(iter969) + for iter976 in self.processorCapabilities: + oprot.writeString(iter976) oprot.writeListEnd() oprot.writeFieldEnd() if self.processorIdentifier is not None: @@ -24495,11 +24609,11 @@ def read(self, iprot): elif fid == 4: if ftype == TType.LIST: self.partitions = [] - (_etype973, _size970) = iprot.readListBegin() - for _i974 in xrange(_size970): - _elem975 = Partition() - _elem975.read(iprot) - self.partitions.append(_elem975) + (_etype980, _size977) = iprot.readListBegin() + for _i981 in xrange(_size977): + _elem982 = Partition() + _elem982.read(iprot) + self.partitions.append(_elem982) iprot.readListEnd() else: iprot.skip(ftype) @@ -24544,8 +24658,8 @@ def write(self, oprot): if self.partitions is not None: oprot.writeFieldBegin('partitions', TType.LIST, 4) oprot.writeListBegin(TType.STRUCT, len(self.partitions)) - for iter976 in self.partitions: - iter976.write(oprot) + for iter983 in self.partitions: + iter983.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.environmentContext is not None: @@ -24697,10 +24811,10 @@ def read(self, iprot): elif fid == 4: if ftype == TType.LIST: self.partVals = [] - (_etype980, _size977) = iprot.readListBegin() - for _i981 in xrange(_size977): - _elem982 = iprot.readString() - self.partVals.append(_elem982) + (_etype987, _size984) = iprot.readListBegin() + for _i988 in xrange(_size984): + _elem989 = iprot.readString() + self.partVals.append(_elem989) iprot.readListEnd() else: iprot.skip(ftype) @@ -24740,8 +24854,8 @@ def write(self, oprot): if self.partVals is not None: oprot.writeFieldBegin('partVals', TType.LIST, 4) oprot.writeListBegin(TType.STRING, len(self.partVals)) - for iter983 in self.partVals: - oprot.writeString(iter983) + for iter990 in self.partVals: + oprot.writeString(iter990) oprot.writeListEnd() oprot.writeFieldEnd() if self.newPart is not None: @@ -25063,10 +25177,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fieldList = [] - (_etype987, _size984) = iprot.readListBegin() - for _i988 in xrange(_size984): - _elem989 = iprot.readString() - self.fieldList.append(_elem989) + (_etype994, _size991) = iprot.readListBegin() + for _i995 in xrange(_size991): + _elem996 = iprot.readString() + self.fieldList.append(_elem996) iprot.readListEnd() else: iprot.skip(ftype) @@ -25093,8 +25207,8 @@ def write(self, oprot): if self.fieldList is not None: oprot.writeFieldBegin('fieldList', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.fieldList)) - for iter990 in self.fieldList: - oprot.writeString(iter990) + for iter997 in self.fieldList: + oprot.writeString(iter997) oprot.writeListEnd() oprot.writeFieldEnd() if self.includeParamKeyPattern is not None: @@ -25170,10 +25284,10 @@ def read(self, iprot): elif fid == 8: if ftype == TType.LIST: self.filters = [] - (_etype994, _size991) = iprot.readListBegin() - for _i995 in xrange(_size991): - _elem996 = iprot.readString() - self.filters.append(_elem996) + (_etype1001, _size998) = iprot.readListBegin() + for _i1002 in xrange(_size998): + _elem1003 = iprot.readString() + self.filters.append(_elem1003) iprot.readListEnd() else: iprot.skip(ftype) @@ -25194,8 +25308,8 @@ def write(self, oprot): if self.filters is not None: oprot.writeFieldBegin('filters', TType.LIST, 8) oprot.writeListBegin(TType.STRING, len(self.filters)) - for iter997 in self.filters: - oprot.writeString(iter997) + for iter1004 in self.filters: + oprot.writeString(iter1004) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -25248,11 +25362,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitionSpec = [] - (_etype1001, _size998) = iprot.readListBegin() - for _i1002 in xrange(_size998): - _elem1003 = PartitionSpec() - _elem1003.read(iprot) - self.partitionSpec.append(_elem1003) + (_etype1008, _size1005) = iprot.readListBegin() + for _i1009 in xrange(_size1005): + _elem1010 = PartitionSpec() + _elem1010.read(iprot) + self.partitionSpec.append(_elem1010) iprot.readListEnd() else: iprot.skip(ftype) @@ -25269,8 +25383,8 @@ def write(self, oprot): if self.partitionSpec is not None: oprot.writeFieldBegin('partitionSpec', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.partitionSpec)) - for iter1004 in self.partitionSpec: - iter1004.write(oprot) + for iter1011 in self.partitionSpec: + iter1011.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -25374,10 +25488,10 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.groupNames = [] - (_etype1008, _size1005) = iprot.readListBegin() - for _i1009 in xrange(_size1005): - _elem1010 = iprot.readString() - self.groupNames.append(_elem1010) + (_etype1015, _size1012) = iprot.readListBegin() + for _i1016 in xrange(_size1012): + _elem1017 = iprot.readString() + self.groupNames.append(_elem1017) iprot.readListEnd() else: iprot.skip(ftype) @@ -25396,10 +25510,10 @@ def read(self, iprot): elif fid == 9: if ftype == TType.LIST: self.processorCapabilities = [] - (_etype1014, _size1011) = iprot.readListBegin() - for _i1015 in xrange(_size1011): - _elem1016 = iprot.readString() - self.processorCapabilities.append(_elem1016) + (_etype1021, _size1018) = iprot.readListBegin() + for _i1022 in xrange(_size1018): + _elem1023 = iprot.readString() + self.processorCapabilities.append(_elem1023) iprot.readListEnd() else: iprot.skip(ftype) @@ -25441,8 +25555,8 @@ def write(self, oprot): if self.groupNames is not None: oprot.writeFieldBegin('groupNames', TType.LIST, 6) oprot.writeListBegin(TType.STRING, len(self.groupNames)) - for iter1017 in self.groupNames: - oprot.writeString(iter1017) + for iter1024 in self.groupNames: + oprot.writeString(iter1024) oprot.writeListEnd() oprot.writeFieldEnd() if self.projectionSpec is not None: @@ -25456,8 +25570,8 @@ def write(self, oprot): if self.processorCapabilities is not None: oprot.writeFieldBegin('processorCapabilities', TType.LIST, 9) oprot.writeListBegin(TType.STRING, len(self.processorCapabilities)) - for iter1018 in self.processorCapabilities: - oprot.writeString(iter1018) + for iter1025 in self.processorCapabilities: + oprot.writeString(iter1025) oprot.writeListEnd() oprot.writeFieldEnd() if self.processorIdentifier is not None: diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-rb/hive_metastore_types.rb standalone-metastore/metastore-common/src/gen/thrift/gen-rb/hive_metastore_types.rb index 8ce2b88fd8..717f6109a2 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-rb/hive_metastore_types.rb +++ standalone-metastore/metastore-common/src/gen/thrift/gen-rb/hive_metastore_types.rb @@ -4277,6 +4277,29 @@ class ExtendedTableInfo ::Thrift::Struct.generate_accessors self end +class GetDatabaseRequest + include ::Thrift::Struct, ::Thrift::Struct_Union + NAME = 1 + CATALOGNAME = 2 + PROCESSORCAPABILITIES = 3 + PROCESSORIDENTIFIER = 4 + + FIELDS = { + NAME => {:type => ::Thrift::Types::STRING, :name => 'name'}, + CATALOGNAME => {:type => ::Thrift::Types::STRING, :name => 'catalogName', :optional => true}, + PROCESSORCAPABILITIES => {:type => ::Thrift::Types::LIST, :name => 'processorCapabilities', :element => {:type => ::Thrift::Types::STRING}, :optional => true}, + PROCESSORIDENTIFIER => {:type => ::Thrift::Types::STRING, :name => 'processorIdentifier', :optional => true} + } + + def struct_fields; FIELDS; end + + def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field name is unset!') unless @name + end + + ::Thrift::Struct.generate_accessors self +end + class CmRecycleRequest include ::Thrift::Struct, ::Thrift::Struct_Union DATAPATH = 1 diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-rb/thrift_hive_metastore.rb standalone-metastore/metastore-common/src/gen/thrift/gen-rb/thrift_hive_metastore.rb index 7a6a722d9a..7dfe5f0fcb 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-rb/thrift_hive_metastore.rb +++ standalone-metastore/metastore-common/src/gen/thrift/gen-rb/thrift_hive_metastore.rb @@ -161,6 +161,23 @@ module ThriftHiveMetastore raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_database failed: unknown result') end + def get_database_req(request) + send_get_database_req(request) + return recv_get_database_req() + end + + def send_get_database_req(request) + send_message('get_database_req', Get_database_req_args, :request => request) + end + + def recv_get_database_req() + result = receive_message(Get_database_req_result) + return result.success unless result.success.nil? + raise result.o1 unless result.o1.nil? + raise result.o2 unless result.o2.nil? + raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_database_req failed: unknown result') + end + def drop_database(name, deleteData, cascade) send_drop_database(name, deleteData, cascade) recv_drop_database() @@ -3887,6 +3904,19 @@ module ThriftHiveMetastore write_result(result, oprot, 'get_database', seqid) end + def process_get_database_req(seqid, iprot, oprot) + args = read_args(iprot, Get_database_req_args) + result = Get_database_req_result.new() + begin + result.success = @handler.get_database_req(args.request) + rescue ::NoSuchObjectException => o1 + result.o1 = o1 + rescue ::MetaException => o2 + result.o2 = o2 + end + write_result(result, oprot, 'get_database_req', seqid) + end + def process_drop_database(seqid, iprot, oprot) args = read_args(iprot, Drop_database_args) result = Drop_database_result.new() @@ -6899,6 +6929,42 @@ module ThriftHiveMetastore ::Thrift::Struct.generate_accessors self end + class Get_database_req_args + include ::Thrift::Struct, ::Thrift::Struct_Union + REQUEST = 1 + + FIELDS = { + REQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'request', :class => ::GetDatabaseRequest} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Get_database_req_result + include ::Thrift::Struct, ::Thrift::Struct_Union + SUCCESS = 0 + O1 = 1 + O2 = 2 + + FIELDS = { + SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Database}, + O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::NoSuchObjectException}, + O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::MetaException} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + class Drop_database_args include ::Thrift::Struct, ::Thrift::Struct_Union NAME = 1 diff --git standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java index 02b3af74d4..7f574731ea 100644 --- standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java +++ standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java @@ -1874,7 +1874,16 @@ public Database getDatabase(String name) throws TException { @Override public Database getDatabase(String catalogName, String databaseName) throws TException { - Database d = client.get_database(prependCatalogToDbName(catalogName, databaseName, conf)); + GetDatabaseRequest request = new GetDatabaseRequest(databaseName); + if (catalogName != null) + request.setCatalogName(catalogName); + if (processorCapabilities != null) { + request.setProcessorCapabilities(Arrays.asList(processorCapabilities)); + } + if (processorIdentifier != null) { + request.setProcessorIdentifier(processorIdentifier); + } + Database d = client.get_database_req(request); return deepCopy(FilterUtils.filterDbIfEnabled(isClientFilterEnabled, filterHook, d)); } diff --git standalone-metastore/metastore-common/src/main/thrift/hive_metastore.thrift standalone-metastore/metastore-common/src/main/thrift/hive_metastore.thrift index e9a15a5d82..9b083f198c 100644 --- standalone-metastore/metastore-common/src/main/thrift/hive_metastore.thrift +++ standalone-metastore/metastore-common/src/main/thrift/hive_metastore.thrift @@ -1403,6 +1403,13 @@ struct ExtendedTableInfo { 4: optional list requiredWriteCapabilities // capabilities required for write access } +struct GetDatabaseRequest { + 1: required string name, + 2: optional string catalogName, + 3: optional list processorCapabilities, + 4: optional string processorIdentifier +} + // Request type for cm_recycle struct CmRecycleRequest { 1: required string dataPath, @@ -1928,6 +1935,7 @@ service ThriftHiveMetastore extends fb303.FacebookService void create_database(1:Database database) throws(1:AlreadyExistsException o1, 2:InvalidObjectException o2, 3:MetaException o3) Database get_database(1:string name) throws(1:NoSuchObjectException o1, 2:MetaException o2) + Database get_database_req(1:GetDatabaseRequest request) throws(1:NoSuchObjectException o1, 2:MetaException o2) void drop_database(1:string name, 2:bool deleteData, 3:bool cascade) throws(1:NoSuchObjectException o1, 2:InvalidOperationException o2, 3:MetaException o3) list get_databases(1:string pattern) throws(1:MetaException o1) list get_all_databases() throws(1:MetaException o1) diff --git standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java index b3e6e1da76..1ec8f4a6a3 100644 --- standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java +++ standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java @@ -628,23 +628,24 @@ public void init() throws MetaException { filterHook = isServerFilterEnabled ? loadFilterHooks() : null; String className = MetastoreConf.getVar(conf, MetastoreConf.ConfVars.METASTORE_METADATA_TRANSFORMER_CLASS); - Class clazz; - try { - clazz = conf.getClassByName(className); - } catch (ClassNotFoundException e) { - LOG.error("Unable to load class " + className, e); - throw new IllegalArgumentException(e); - } - Constructor constructor; - try { - constructor = clazz.getConstructor(IHMSHandler.class); - if (Modifier.isPrivate(constructor.getModifiers())) - throw new IllegalArgumentException("Illegal implementation for metadata transformer. Constructor is private"); - transformer = (IMetaStoreMetadataTransformer) constructor.newInstance(this); - } catch (NoSuchMethodException | InstantiationException | IllegalAccessException - | IllegalArgumentException | InvocationTargetException e) { - LOG.error("Unable to create instance of class " + className, e); - throw new IllegalArgumentException(e); + if (className != null && !className.isEmpty()) { + Class clazz; + try { + clazz = conf.getClassByName(className); + } catch (ClassNotFoundException e) { + LOG.error("Unable to load class " + className, e); + throw new IllegalArgumentException(e); + } + Constructor constructor; + try { + constructor = clazz.getConstructor(IHMSHandler.class); + if (Modifier.isPrivate(constructor.getModifiers())) + throw new IllegalArgumentException("Illegal implementation for metadata transformer. Constructor is private"); + transformer = (IMetaStoreMetadataTransformer) constructor.newInstance(this); + } catch (NoSuchMethodException | InstantiationException | IllegalAccessException | IllegalArgumentException | InvocationTargetException e) { + LOG.error("Unable to create instance of class " + className, e); + throw new IllegalArgumentException(e); + } } } @@ -1508,7 +1509,8 @@ public void create_database(final Database db) } @Override - public Database get_database(final String name) throws NoSuchObjectException, MetaException { + public Database get_database(final String name) + throws NoSuchObjectException, MetaException { startFunction("get_database", ": " + name); Database db = null; Exception ex = null; @@ -1527,12 +1529,25 @@ public Database get_database(final String name) throws NoSuchObjectException, Me @Override public Database get_database_core(String catName, final String name) throws NoSuchObjectException, MetaException { + GetDatabaseRequest request = new GetDatabaseRequest(name); + if (catName != null) + request.setCatalogName(catName); + return get_database_req(request); + } + + @Override + public Database get_database_req(GetDatabaseRequest request) throws NoSuchObjectException, MetaException { Database db = null; - if (name == null) { + if (request.getName() == null) { throw new MetaException("Database name cannot be null."); } + List processorCapabilities = request.getProcessorCapabilities(); + String processorId = request.getProcessorIdentifier(); try { - db = getMS().getDatabase(catName, name); + db = getMS().getDatabase(request.getCatalogName(), request.getName()); + if (processorCapabilities != null && transformer != null) { + db = transformer.transformDatabase(db, processorCapabilities, processorId); + } } catch (MetaException | NoSuchObjectException e) { throw e; } catch (Exception e) { diff --git standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreMetadataTransformer.java standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreMetadataTransformer.java index c460e12826..20356fad19 100644 --- standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreMetadataTransformer.java +++ standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreMetadataTransformer.java @@ -22,6 +22,7 @@ import org.apache.hadoop.classification.InterfaceAudience; import org.apache.hadoop.classification.InterfaceStability; +import org.apache.hadoop.hive.metastore.api.Database; import org.apache.hadoop.hive.metastore.api.MetaException; import org.apache.hadoop.hive.metastore.api.Partition; import org.apache.hadoop.hive.metastore.api.Table; @@ -36,14 +37,14 @@ public interface IMetaStoreMetadataTransformer { /** - * @param table A Table object to be transformed + * @param tables A list of tables to be transformed. * @param processorCapabilities A array of String capabilities received from the data processor * @param processorId String ID used for logging purpose. * @return Map A Map of transformed objects keyed by Table and value is list of required capabilities * @throws HiveMetaException */ // TODO HiveMetaException or MetaException - public Map> transform(List
tables, List processorCapabilities, + public Map> transform(List
tables, List processorCapabilities, String processorId) throws MetaException; @@ -55,7 +56,7 @@ * @throws HiveMetaException */ // TODO HiveMetaException or MetaException - public List transformPartitions(List parts, Table table, List processorCapabilities, + public List transformPartitions(List parts, Table table, List processorCapabilities, String processorId) throws MetaException; /** @@ -65,6 +66,16 @@ * @return Table An altered Table based on the processor capabilities * @throws HiveMetaException */ - public Table transformCreateTable(Table table, List processorCapabilities, + public Table transformCreateTable(Table table, List processorCapabilities, + String processorId) throws MetaException; + + /** + * @param db A database object to be transformed, mainly db location + * @param processorCapabilities A array of String capabilities received from the data processor + * @param processorId String ID used for logging purpose. + * @return Database An altered Database based on the processor capabilities + * @throws HiveMetaException + */ + public Database transformDatabase(Database db, List processorCapabilities, String processorId) throws MetaException; } diff --git standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/MetastoreDefaultTransformer.java standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/MetastoreDefaultTransformer.java index 1d98b09ed7..06f3630067 100644 --- standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/MetastoreDefaultTransformer.java +++ standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/MetastoreDefaultTransformer.java @@ -24,6 +24,8 @@ import static org.apache.hadoop.hive.metastore.api.hive_metastoreConstants.TABLE_TRANSACTIONAL_PROPERTIES; import static org.apache.hadoop.hive.metastore.utils.MetaStoreUtils.EXTERNAL_TABLE_PURGE; +import org.apache.hadoop.fs.Path; +import org.apache.hadoop.hive.metastore.api.Database; import org.apache.hadoop.hive.metastore.api.MetaException; import org.apache.hadoop.hive.metastore.api.Partition; import org.apache.hadoop.hive.metastore.api.StorageDescriptor; @@ -57,6 +59,7 @@ private static final String HIVEONLYMQTWRITE = "HIVEONLYMQTWRITE".intern(); private static final String HIVESQL = "HIVESQL".intern(); private static final String OBJCAPABILITIES = "OBJCAPABILITIES".intern(); + private static final String MANAGERAWMETADATA = "MANAGE_RAW_METADATA".intern(); private static final List ACIDCOMMONWRITELIST = new ArrayList(Arrays.asList( HIVEMANAGESTATS, @@ -114,8 +117,10 @@ public MetastoreDefaultTransformer(IHMSHandler handler) throws HiveMetaException if (numBuckets > 0) { generated.add(HIVEBUCKET2); if (processorCapabilities.contains(HIVEBUCKET2)) { + LOG.debug("External bucketed table with HB2 capability:RW"); newTable.setAccessType(ACCESSTYPE_READWRITE); } else { + LOG.debug("External bucketed table without HB2 capability:RO"); newTable.setAccessType(ACCESSTYPE_READONLY); requiredWrites.add(HIVEBUCKET2); StorageDescriptor newSd = new StorageDescriptor(table.getSd()); @@ -126,12 +131,15 @@ public MetastoreDefaultTransformer(IHMSHandler handler) throws HiveMetaException } } else { // Unbucketed if (processorCapabilities.contains(EXTWRITE) && processorCapabilities.contains(EXTREAD)) { + LOG.debug("External unbucketed table with EXTREAD/WRITE capability:RW"); newTable.setAccessType(ACCESSTYPE_READWRITE); } else if (processorCapabilities.contains(EXTREAD)) { + LOG.debug("External unbucketed table with EXTREAD capability:RO"); newTable.setAccessType(ACCESSTYPE_READONLY); requiredWrites.add(EXTWRITE); newTable.setRequiredWriteCapabilities(requiredWrites); } else { + LOG.debug("External unbucketed table without EXTREAD/WRITE capability:NONE"); newTable.setAccessType(ACCESSTYPE_NONE); requiredReads.add(EXTREAD); requiredWrites.add(EXTWRITE); @@ -145,6 +153,7 @@ public MetastoreDefaultTransformer(IHMSHandler handler) throws HiveMetaException case "MANAGED_TABLE": String txnal = params.get(TABLE_IS_TRANSACTIONAL); if (txnal == null || txnal.equalsIgnoreCase("FALSE")) { // non-ACID MANAGED table + LOG.debug("Managed non-acid table:RW"); table.setAccessType(ACCESSTYPE_READWRITE); generated.addAll(acidWriteList); } @@ -154,11 +163,13 @@ public MetastoreDefaultTransformer(IHMSHandler handler) throws HiveMetaException if (txntype != null && txntype.equalsIgnoreCase("insert_only")) { // MICRO_MANAGED Tables // MGD table is insert only, not full ACID if (processorCapabilities.contains(HIVEMANAGEDINSERTWRITE) || processorCapabilities.contains(CONNECTORWRITE)) { + LOG.debug("Managed acid table with INSERTWRITE or CONNECTORWRITE capability:RW"); table.setAccessType(ACCESSTYPE_READWRITE); // clients have RW access to INSERT-ONLY ACID tables processorCapabilities.retainAll(insertOnlyWriteList); generated.addAll(processorCapabilities); LOG.info("Processor has one of the write capabilities on insert-only, granting RW"); } else if (processorCapabilities.contains(HIVEMANAGEDINSERTREAD) || processorCapabilities.contains(CONNECTORREAD)) { + LOG.debug("Managed acid table with INSERTREAD or CONNECTORREAD capability:RO"); table.setAccessType(ACCESSTYPE_READONLY); // clients have RO access to INSERT-ONLY ACID tables generated.addAll(insertOnlyWriteList); table.setRequiredWriteCapabilities(insertOnlyWriteList); @@ -175,16 +186,19 @@ public MetastoreDefaultTransformer(IHMSHandler handler) throws HiveMetaException } } else { // FULL ACID MANAGED TABLE if (processorCapabilities.contains(HIVEFULLACIDWRITE) || processorCapabilities.contains(CONNECTORWRITE)) { + LOG.debug("Full acid table with ACIDWRITE or CONNECTORWRITE capability:RW"); table.setAccessType(ACCESSTYPE_READWRITE); // clients have RW access to IUD ACID tables processorCapabilities.retainAll(acidWriteList); generated.addAll(processorCapabilities); } else if (processorCapabilities.contains(HIVEFULLACIDREAD) || processorCapabilities.contains(CONNECTORREAD)) { + LOG.debug("Full acid table with ACIDREAD or CONNECTORREAD capability:RO"); table.setAccessType(ACCESSTYPE_READONLY); // clients have RO access to IUD ACID tables generated.addAll(acidWriteList); table.setRequiredWriteCapabilities(acidWriteList); processorCapabilities.retainAll(getReads(acidList)); generated.addAll(processorCapabilities); } else { + LOG.debug("Full acid table without ACIDREAD/WRITE or CONNECTORREAD/WRITE capability:NONE"); table.setAccessType(ACCESSTYPE_NONE); // clients have NO access to IUD ACID tables table.setRequiredWriteCapabilities(acidWriteList); table.setRequiredReadCapabilities(Arrays.asList(CONNECTORREAD, HIVEFULLACIDREAD)); @@ -250,7 +264,7 @@ public MetastoreDefaultTransformer(IHMSHandler handler) throws HiveMetaException newTable.setSd(newSd); removedBucketing = true; newTable.setAccessType(ACCESSTYPE_READONLY); - LOG.info("Adding HIVEBUCKET2 to requiredWrites"); + LOG.debug("Adding HIVEBUCKET2 to requiredWrites"); requiredWrites.add(HIVEBUCKET2); LOG.info("Removed bucketing information from table"); } @@ -265,7 +279,7 @@ public MetastoreDefaultTransformer(IHMSHandler handler) throws HiveMetaException } if (requiredCapabilities.contains(EXTREAD) && processorCapabilities.contains(EXTREAD)) { - LOG.debug("EXTREAD Matches, accessType=" + ACCESSTYPE_READONLY); + LOG.info("EXTREAD Matches, accessType=" + ACCESSTYPE_READONLY); newTable.setAccessType(ACCESSTYPE_READONLY); requiredWrites.add(EXTWRITE); newTable.setRequiredWriteCapabilities(requiredWrites); @@ -324,6 +338,7 @@ public MetastoreDefaultTransformer(IHMSHandler handler) throws HiveMetaException } if (processorCapabilities.contains(CONNECTORWRITE)) { + LOG.debug("Managed acid table with CONNECTORWRITE capability:RW"); table.setAccessType(ACCESSTYPE_READWRITE); // clients have RW access to INSERT-ONLY ACID tables with CONNWRITE hintList.add(CONNECTORWRITE); hintList.addAll(getReads(requiredCapabilities)); @@ -331,6 +346,7 @@ public MetastoreDefaultTransformer(IHMSHandler handler) throws HiveMetaException continue; } else if (processorCapabilities.containsAll(getReads(requiredCapabilities)) || processorCapabilities.contains(HIVEMANAGEDINSERTREAD)) { + LOG.debug("Managed acid table with MANAGEDREAD capability:RO"); table.setAccessType(ACCESSTYPE_READONLY); table.setRequiredWriteCapabilities(diff(getWrites(requiredCapabilities), getWrites(processorCapabilities))); hintList.add(HIVEMANAGEDINSERTWRITE); @@ -338,6 +354,7 @@ public MetastoreDefaultTransformer(IHMSHandler handler) throws HiveMetaException ret.put(table, hintList); continue; } else if (processorCapabilities.contains(CONNECTORREAD)) { + LOG.debug("Managed acid table with CONNECTORREAD capability:RO"); table.setAccessType(ACCESSTYPE_READONLY); table.setRequiredWriteCapabilities(diff(getWrites(requiredCapabilities), getWrites(processorCapabilities))); hintList.add(CONNECTORREAD); @@ -345,6 +362,7 @@ public MetastoreDefaultTransformer(IHMSHandler handler) throws HiveMetaException ret.put(table, hintList); continue; } else { + LOG.debug("Managed acid table without any READ capability:NONE"); table.setAccessType(ACCESSTYPE_NONE); ret.put(table, requiredCapabilities); table.setRequiredWriteCapabilities(diff(getWrites(requiredCapabilities), getWrites(processorCapabilities))); @@ -363,6 +381,7 @@ public MetastoreDefaultTransformer(IHMSHandler handler) throws HiveMetaException } if(processorCapabilities.contains(CONNECTORWRITE)) { + LOG.debug("Full acid table with CONNECTORWRITE capability:RW"); table.setAccessType(ACCESSTYPE_READWRITE); // clients have RW access to IUD ACID tables hintList.add(CONNECTORWRITE); hintList.addAll(getReads(requiredCapabilities)); @@ -370,6 +389,7 @@ public MetastoreDefaultTransformer(IHMSHandler handler) throws HiveMetaException continue; } else if (processorCapabilities.contains(HIVEFULLACIDREAD) || (processorCapabilities.contains(CONNECTORREAD) )) { + LOG.debug("Full acid table with CONNECTORREAD/ACIDREAD capability:RO"); table.setAccessType(ACCESSTYPE_READONLY); // clients have RO access to IUD ACID tables table.setRequiredWriteCapabilities(diff(getWrites(requiredCapabilities), getWrites(processorCapabilities))); hintList.add(CONNECTORREAD); @@ -377,6 +397,7 @@ public MetastoreDefaultTransformer(IHMSHandler handler) throws HiveMetaException ret.put(table, hintList); continue; } else { + LOG.debug("Full acid table without READ capability:RO"); table.setAccessType(ACCESSTYPE_NONE); // clients have NO access to IUD ACID tables table.setRequiredWriteCapabilities(diff(getWrites(requiredCapabilities), getWrites(processorCapabilities))); table.setRequiredReadCapabilities(diff(getReads(requiredCapabilities), getReads(processorCapabilities))); @@ -413,6 +434,10 @@ public MetastoreDefaultTransformer(IHMSHandler handler) throws HiveMetaException @Override public List transformPartitions(List objects, Table table, List processorCapabilities, String processorId) throws MetaException { + if (processorCapabilities != null && processorCapabilities.contains(MANAGERAWMETADATA)) { + return objects; + } + LOG.info("Starting translation for partition for processor " + processorId + " on list " + objects.size()); List ret = new ArrayList<>(); int partBuckets = 0; @@ -534,6 +559,15 @@ public Table transformCreateTable(Table table, List processorCapabilitie params.put("TRANSLATED_TO_EXTERNAL", "TRUE"); newTable.setParameters(params); LOG.info("Modified table params are:" + params.toString()); + if (table.getSd().getLocation() == null) { + try { + Path newPath = hmsHandler.getWh().getDefaultTablePath(table.getDbName(), table.getTableName(), true); + newTable.getSd().setLocation(newPath.toString()); + LOG.info("Modified location from to " + newPath); + } catch (Exception e) { + LOG.warn("Exception determining external table location:" + e.getMessage()); + } + } } } else { // ACID table if (processorCapabilities == null || processorCapabilities.isEmpty()) { @@ -565,6 +599,30 @@ public Table transformCreateTable(Table table, List processorCapabilitie return newTable; } + /** + * Alter location of the database depending on whether or not the processor has ACID capabilities. + */ + @Override + public Database transformDatabase(Database db, List processorCapabilities, String processorId) throws MetaException { + if (processorCapabilities != null && processorCapabilities.contains(MANAGERAWMETADATA)) { + return db; + } + + LOG.info("Starting translation for transformDatabase for processor " + processorId + " with " + processorCapabilities + + " on database " + db.getName()); + + if (processorCapabilities == null || (!processorCapabilities.contains(HIVEMANAGEDINSERTWRITE) && + !processorCapabilities.contains(HIVEFULLACIDWRITE))) { + LOG.info("Processor does not have any of ACID write capabilities, changing current location from " + + db.getLocationUri() + " to external warehouse location"); + Path extWhLocation = hmsHandler.getWh().getDefaultExternalDatabasePath(db.getName()); + LOG.debug("Setting DBLocation to " + extWhLocation.toString()); + db.setLocationUri(extWhLocation.toString()); + } + LOG.info("Transformer returning database:" + db.toString()); + return db; + } + // returns the elements contained in list1 but missing in list2 private List diff(final List list1, final List list2) { List diffList = new ArrayList<>(); diff --git standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/client/TestAddPartitions.java standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/client/TestAddPartitions.java index 3d66c3f027..437d7c352d 100644 --- standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/client/TestAddPartitions.java +++ standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/client/TestAddPartitions.java @@ -465,12 +465,12 @@ public void testAddPartitionEmptyLocation() throws Exception { @Test public void testAddPartitionNullLocationInTableToo() throws Exception { - createTable(DB_NAME, TABLE_NAME, null); + Table table = createTable(DB_NAME, TABLE_NAME, null); Partition partition = buildPartition(DB_NAME, TABLE_NAME, DEFAULT_YEAR_VALUE, null); client.add_partition(partition); Partition part = client.getPartition(DB_NAME, TABLE_NAME, "year=2017"); Assert.assertEquals( - metaStore.getWarehouseRoot() + "/test_partition_db.db/test_partition_table/year=2017", + table.getSd().getLocation() + "/year=2017", part.getSd().getLocation()); Assert.assertTrue(metaStore.isPathExists(new Path(part.getSd().getLocation()))); } @@ -534,13 +534,14 @@ public void testAddPartitionForExternalTableNullLocation() throws Exception { String tableName = "part_add_ext_table"; createExternalTable(tableName, null); + Table table = client.getTable(DB_NAME, tableName); Partition partition = buildPartition(DB_NAME, tableName, DEFAULT_YEAR_VALUE, null); client.add_partition(partition); Partition resultPart = client.getPartition(DB_NAME, tableName, Lists.newArrayList(DEFAULT_YEAR_VALUE)); Assert.assertNotNull(resultPart); Assert.assertNotNull(resultPart.getSd()); - String defaultTableLocation = metaStore.getWarehouseRoot() + "/" + DB_NAME + ".db/" + tableName; + String defaultTableLocation = table.getSd().getLocation(); String defaulPartitionLocation = defaultTableLocation + "/year=2017"; Assert.assertEquals(defaulPartitionLocation, resultPart.getSd().getLocation()); } @@ -852,8 +853,8 @@ public void testAddPartitionsDifferentDBs() throws Exception { @Test public void testAddPartitionsDuplicateInTheList() throws Exception { - createTable(); - List partitions = buildPartitions(DB_NAME, TABLE_NAME, + Table table = createTable(); + List partitions = buildPartitions(table, Lists.newArrayList("2014", "2015", "2017", "2017", "2018", "2019")); try { @@ -896,13 +897,13 @@ public void testAddPartitionsWithSameNameInTheListCaseSensitive() throws Excepti @Test public void testAddPartitionsAlreadyExists() throws Exception { - createTable(); - String tableLocation = metaStore.getWarehouseRoot() + "/" + TABLE_NAME; + Table table = createTable(); + String tableLocation = table.getSd().getLocation(); Partition partition = buildPartition(DB_NAME, TABLE_NAME, "2016", tableLocation + "/year=2016a"); client.add_partition(partition); - List partitions = buildPartitions(DB_NAME, TABLE_NAME, + List partitions = buildPartitions(table, Lists.newArrayList("2014", "2015", "2016", "2017", "2018")); try { @@ -1151,7 +1152,7 @@ public void testAddPartitionNullAndEmptyLocation() throws Exception { @Test public void testAddPartitionsNullLocationInTableToo() throws Exception { - createTable(DB_NAME, TABLE_NAME, null); + Table table = createTable(DB_NAME, TABLE_NAME, null); List partitions = new ArrayList<>(); Partition partition = buildPartition(DB_NAME, TABLE_NAME, DEFAULT_YEAR_VALUE, null); partitions.add(partition); @@ -1159,7 +1160,7 @@ public void testAddPartitionsNullLocationInTableToo() throws Exception { Partition part = client.getPartition(DB_NAME, TABLE_NAME, "year=2017"); Assert.assertEquals( - metaStore.getWarehouseRoot() + "/test_partition_db.db/test_partition_table/year=2017", + table.getSd().getLocation() + "/year=2017", part.getSd().getLocation()); Assert.assertTrue(metaStore.isPathExists(new Path(part.getSd().getLocation()))); } @@ -1206,6 +1207,7 @@ public void testAddPartitionsForExternalTableNullLocation() throws Exception { String tableName = "part_add_ext_table"; createExternalTable(tableName, null); + Table table = client.getTable(DB_NAME, tableName); Partition partition1 = buildPartition(DB_NAME, tableName, "2017", null); Partition partition2 = buildPartition(DB_NAME, tableName, "2018", null); List partitions = Lists.newArrayList(partition1, partition2); @@ -1215,7 +1217,7 @@ public void testAddPartitionsForExternalTableNullLocation() throws Exception { Lists.newArrayList("year=2017", "year=2018")); Assert.assertNotNull(resultParts); Assert.assertEquals(2, resultParts.size()); - String defaultTableLocation = metaStore.getWarehouseRoot() + "/" + DB_NAME + ".db/" + tableName; + String defaultTableLocation = table.getSd().getLocation(); String defaultPartLocation1 = defaultTableLocation + "/year=2017"; String defaultPartLocation2 = defaultTableLocation + "/year=2018"; if (resultParts.get(0).getValues().get(0).equals("2017")) { @@ -1245,8 +1247,8 @@ public void testAddPartitionsNoValueInPartition() throws Exception { @Test(expected=MetaException.class) public void testAddPartitionsMorePartColInTable() throws Exception { - createTable(DB_NAME, TABLE_NAME, getYearAndMonthPartCols(), null); - Partition partition = buildPartition(DB_NAME, TABLE_NAME, DEFAULT_YEAR_VALUE); + Table table = createTable(DB_NAME, TABLE_NAME, getYearAndMonthPartCols(), null); + Partition partition = buildPartition(table, DEFAULT_YEAR_VALUE); List partitions = new ArrayList<>(); partitions.add(partition); client.add_partitions(partitions); @@ -1263,8 +1265,8 @@ public void testAddPartitionsNullPartition() throws Exception { @Test(expected = MetaException.class) public void testAddPartitionsNullValues() throws Exception { - createTable(); - Partition partition = buildPartition(DB_NAME, TABLE_NAME, null); + Table table = createTable(); + Partition partition = buildPartition(table, null); partition.setValues(null); List partitions = new ArrayList<>(); partitions.add(partition); @@ -1274,8 +1276,8 @@ public void testAddPartitionsNullValues() throws Exception { @Test public void testAddPartitionsEmptyValue() throws Exception { - createTable(); - Partition partition = buildPartition(DB_NAME, TABLE_NAME, ""); + Table table = createTable(); + Partition partition = buildPartition(table, ""); List partitions = new ArrayList<>(); partitions.add(partition); client.add_partitions(partitions); @@ -1289,15 +1291,15 @@ public void testAddPartitionsEmptyValue() throws Exception { @Test public void testAddPartitionsInvalidLocation() throws Exception { - createTable(); - String tableLocation = metaStore.getWarehouseRoot() + "/" + TABLE_NAME; + Table table = createTable(); + String tableLocation = table.getSd().getLocation(); Map valuesAndLocations = new HashMap<>(); valuesAndLocations.put("2014", tableLocation + "/year=2014"); valuesAndLocations.put("2015", tableLocation + "/year=2015"); valuesAndLocations.put("2016", "invalidhost:80000/wrongfolder"); valuesAndLocations.put("2017", tableLocation + "/year=2017"); valuesAndLocations.put("2018", tableLocation + "/year=2018"); - List partitions = buildPartitions(DB_NAME, TABLE_NAME, valuesAndLocations); + List partitions = buildPartitions(table, valuesAndLocations); try { client.add_partitions(partitions); @@ -1319,8 +1321,8 @@ public void testAddPartitionsInvalidLocation() throws Exception { @Test public void testAddPartitionsMoreThanThreadCountsOneFails() throws Exception { - createTable(); - String tableLocation = metaStore.getWarehouseRoot() + "/" + TABLE_NAME; + Table table = createTable(); + String tableLocation = table.getSd().getLocation(); List partitions = new ArrayList<>(); for (int i = 0; i < 50; i++) { @@ -1571,6 +1573,13 @@ protected Partition buildPartition(String dbName, String tableName, String value metaStore.getWarehouseRoot() + "/" + tableName + "/addparttest"); } + + protected Partition buildPartition(Table table, String value) + throws MetaException { + return buildPartition(table.getDbName(), table.getTableName(), value, + table.getSd().getLocation() + "/addparttest"); + } + protected Partition buildPartition(String dbName, String tableName, String value, String location) throws MetaException { Partition partition = new PartitionBuilder() @@ -1713,28 +1722,29 @@ protected void verifyPartitionAttributesDefaultValues(Partition partition, Strin skewedInfo.getSkewedColValueLocationMaps().isEmpty()); } - private List buildPartitions(String dbName, String tableName, List values) + private List buildPartitions(Table table, List values) throws MetaException { - String tableLocation = metaStore.getWarehouseRoot() + "/" + tableName; + String tableLocation = table.getSd().getLocation(); List partitions = new ArrayList<>(); for (String value : values) { Partition partition = - buildPartition(dbName, tableName, value, tableLocation + "/year=" + value); + buildPartition(table.getDbName(), table.getTableName(), value, tableLocation + "/year=" + value); partitions.add(partition); } return partitions; } - private List buildPartitions(String dbName, String tableName, + private List buildPartitions(Table table, Map valuesAndLocations) throws MetaException { List partitions = new ArrayList<>(); for (Map.Entry valueAndLocation : valuesAndLocations.entrySet()) { Partition partition = - buildPartition(dbName, tableName, valueAndLocation.getKey(), valueAndLocation.getValue()); + buildPartition(table.getDbName(), table.getTableName(), valueAndLocation.getKey(), + valueAndLocation.getValue()); partitions.add(partition); } return partitions;