diff --git common/src/java/org/apache/hadoop/hive/conf/HiveConf.java common/src/java/org/apache/hadoop/hive/conf/HiveConf.java index 440d761f03..d11fdfcc09 100644 --- common/src/java/org/apache/hadoop/hive/conf/HiveConf.java +++ common/src/java/org/apache/hadoop/hive/conf/HiveConf.java @@ -741,6 +741,10 @@ private static void populateLlapDaemonVarsSet(Set llapDaemonVarsSetLocal @Deprecated METASTORE_CAPABILITY_CHECK("hive.metastore.client.capability.check", true, "Whether to check client capabilities for potentially breaking API usage."), + METASTORE_CLIENT_CAPABILITIES("hive.metastore.client.capabilities", "EXTWRITE,EXTREAD,HIVEBUCKET2," + + "HIVEFULLACIDREAD,HIVEFULLACIDWRITE,HIVECACHEINVALIDATE,HIVEMANAGESTATS," + + "HIVEMANAGEDINSERTWRITE,HIVEMANAGEDINSERTREAD," + + "HIVESQL,HIVEMQT,HIVEONLYMQTWRITE", "Capabilities possessed by HiveServer"), METASTORE_CLIENT_CACHE_ENABLED("hive.metastore.client.cache.enabled", false, "Whether to enable metastore client cache"), METASTORE_CLIENT_CACHE_EXPIRY_TIME("hive.metastore.client.cache.expiry.time", "120s", 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 fb676f2700..fdf60c98d8 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 @@ -24,27 +24,31 @@ import java.util.Map; import org.apache.hadoop.hive.metastore.HiveMetaStoreClient.GetTablesRequestBuilder; -import org.apache.hadoop.hive.metastore.TableType; -import org.apache.hadoop.hive.metastore.client.builder.DatabaseBuilder; -import org.apache.hadoop.hive.metastore.client.builder.PartitionBuilder; -import org.apache.hadoop.hive.metastore.client.builder.TableBuilder; -import org.apache.hadoop.hive.metastore.conf.MetastoreConf; -import org.apache.hadoop.hive.metastore.conf.MetastoreConf.ConfVars; -import org.apache.hadoop.conf.Configuration; -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; import org.apache.hadoop.hive.metastore.api.InvalidOperationException; +import org.apache.hadoop.hive.metastore.api.MetaException; import org.apache.hadoop.hive.metastore.api.NoSuchObjectException; import org.apache.hadoop.hive.metastore.api.Partition; import org.apache.hadoop.hive.metastore.api.Table; import org.apache.hadoop.hive.metastore.api.Type; -import org.apache.hadoop.hive.metastore.api.hive_metastoreConstants; +import org.apache.hadoop.hive.metastore.client.builder.DatabaseBuilder; +import org.apache.hadoop.hive.metastore.client.builder.PartitionBuilder; +import org.apache.hadoop.hive.metastore.client.builder.TableBuilder; +import org.apache.hadoop.hive.metastore.conf.MetastoreConf; +import org.apache.hadoop.hive.metastore.conf.MetastoreConf.ConfVars; +import org.apache.hadoop.conf.Configuration; + import static org.apache.hadoop.hive.metastore.api.hive_metastoreConstants.ACCESSTYPE_NONE; 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.apache.hadoop.hive.metastore.api.hive_metastoreConstants.ACCESSTYPE_WRITEONLY; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertTrue; +import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertNull; +import static org.junit.Assert.fail; + import org.apache.hadoop.util.StringUtils; import com.google.common.collect.Lists; @@ -53,11 +57,6 @@ import org.junit.Before; import org.junit.Test; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.assertNull; -import static org.junit.Assert.fail; - import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -74,6 +73,7 @@ public void setUp() throws Exception { conf = MetastoreConf.newMetastoreConf(); MetastoreConf.setVar(conf, ConfVars.METASTORE_METADATA_TRANSFORMER_CLASS, "org.apache.hadoop.hive.metastore.MetastoreDefaultTransformer"); + MetastoreConf.setBoolVar(conf, ConfVars.HIVE_IN_TEST, false); client = new HiveMetaStoreClient(conf); } @@ -167,10 +167,13 @@ public void testTransformerExternalTable() throws Exception { assertEquals(buckets, tbl2.getSd().getNumBuckets()); // no transformation assertEquals("Table access type does not match expected value:" + tblName, 0, tbl2.getAccessType()); // old client, AccessType not set + assertNull(tbl2.getRequiredReadCapabilities()); - setHMSClient("testTranformerExternalTable", (new String[] { "HIVEBUCKET2" })); + setHMSClient("testTransformerExternalTable", (new String[] { "HIVEBUCKET2" })); tbl2 = client.getTable(dbName, tblName); assertEquals("Expected buckets does not match:", buckets, tbl2.getSd().getNumBuckets()); // no transformation + assertEquals("Table access type does not match expected value:" + tblName, + 8, tbl2.getAccessType()); // RW with HIVEBUCKET2 but no EXTWRITE resetHMSClient(); tblName = "test_ext_bucketed_wc"; @@ -192,6 +195,8 @@ public void testTransformerExternalTable() throws Exception { assertEquals("Table access type does not match the expected value:" + tblName, ACCESSTYPE_READWRITE, tbl2.getAccessType()); assertEquals(buckets, tbl2.getSd().getNumBuckets()); // client has the HIVEBUCKET2 capability, retain bucketing info + assertNull(tbl2.getRequiredWriteCapabilities()); + assertNull(tbl2.getRequiredReadCapabilities()); resetHMSClient(); @@ -200,6 +205,10 @@ public void testTransformerExternalTable() throws Exception { assertEquals("Table access type does not match the expected value:" + tblName, ACCESSTYPE_READONLY, tbl2.getAccessType()); assertEquals(-1, tbl2.getSd().getNumBuckets()); // client has no HIVEBUCKET2 capability, remove bucketing info + assertNotNull("Required write capabilities is null", + tbl2.getRequiredWriteCapabilities()); + assertTrue("Returned required capabilities list does not contain HIVEBUCKET2", + tbl2.getRequiredWriteCapabilities().contains("HIVEBUCKET2")); resetHMSClient(); @@ -215,6 +224,8 @@ public void testTransformerExternalTable() throws Exception { tbl2 = client.getTable(dbName, tblName); assertEquals("Table access type does not match the expected value:" + tblName, ACCESSTYPE_READWRITE, tbl2.getAccessType()); + assertNull("Required read capabilities are not null", tbl2.getRequiredReadCapabilities()); + assertNull("Required write capabilities are not null", tbl2.getRequiredWriteCapabilities()); resetHMSClient(); @@ -222,7 +233,7 @@ public void testTransformerExternalTable() throws Exception { properties = new StringBuilder(); properties.append("EXTERNAL").append("=").append("TRUE"); properties.append(";"); - properties.append(CAPABILITIES_KEY).append("=").append("SPARKDECIMAL,SPARKBUCKET,EXTREAD"); + properties.append(CAPABILITIES_KEY).append("=").append("SPARKDECIMAL,SPARKBUCKET,EXTREAD,EXTWRITE"); tProps.put("TBLNAME", tblName); tProps.put("PROPERTIES", properties.toString()); tProps.put("BUCKETS", buckets); @@ -233,14 +244,24 @@ public void testTransformerExternalTable() throws Exception { assertEquals("Table access type does not match the expected value:" + tblName, ACCESSTYPE_NONE, tbl2.getAccessType()); // requires EXTREAD for RO assertEquals(buckets, tbl2.getSd().getNumBuckets()); + assertNotNull("Required read capabilities is null", tbl2.getRequiredReadCapabilities()); + assertNotNull("Required write capabilities is null", tbl2.getRequiredWriteCapabilities()); + assertTrue("Required read capabilities does not contain EXTREAD", + tbl2.getRequiredReadCapabilities().contains("EXTREAD")); + assertTrue("Required write capabilities does not contain EXTWRITE", + tbl2.getRequiredWriteCapabilities().contains("EXTWRITE")); setHMSClient("testTransformerExternalTableSpark", (new String[] { "EXTREAD", "CONNECTORREAD"})); tbl2 = client.getTable(dbName, tblName); assertEquals("Table access type does not match the expected value:" + tblName, ACCESSTYPE_READONLY, tbl2.getAccessType()); // requires EXTREAD for RO assertEquals(buckets, tbl2.getSd().getNumBuckets()); + assertNotNull("Required write capabilities is null", tbl2.getRequiredWriteCapabilities()); + assertTrue("Required write capabilities does not contain EXTWRITE", + tbl2.getRequiredWriteCapabilities().contains("EXTWRITE")); - setHMSClient("testTransformerExternalTableSpark", (new String[] { "SPARKBUCKET", "SPARKDECIMAL", "EXTREAD" })); + + setHMSClient("testTransformerExternalTableSpark", (new String[] { "SPARKBUCKET", "SPARKDECIMAL", "EXTREAD", "EXTWRITE" })); tbl2 = client.getTable(dbName, tblName); assertEquals("Table access type does not match the expected value:" + tblName, ACCESSTYPE_READWRITE, tbl2.getAccessType()); @@ -277,10 +298,12 @@ public void testTransformerManagedTable() throws Exception { LOG.info("Table=" + tblName + ",Access=" + tbl2.getAccessType()); assertEquals("Created and retrieved tables do not match:" + tbl2.getTableName() + ":" + tblName, tbl2.getTableName(), tblName); - assertEquals("TableType mismatch", TableType.MANAGED_TABLE.name(), tbl2.getTableType()); + assertEquals("TableType mismatch", TableType.EXTERNAL_TABLE.name(), tbl2.getTableType()); // transformed assertEquals(-1, tbl2.getSd().getNumBuckets()); assertEquals("Table access type does not match expected value:" + tblName, 0, tbl2.getAccessType()); // no translation to be done, so accessType not set + assertNull("Required read capabilities not null", tbl2.getRequiredReadCapabilities()); + assertNull("Required write capabilities not null", tbl2.getRequiredWriteCapabilities()); // managed table with no capabilities tblName = "test_mgd_insert_woc"; @@ -290,7 +313,10 @@ public void testTransformerManagedTable() throws Exception { properties.append(";"); properties.append("transactional_properties=insert_only"); tProps.put("PROPERTIES", properties.toString()); + + setHMSClient("createTable", new String[] {"HIVEMANAGEDINSERTWRITE", "HIVEFULLACIDWRITE"}); tbl = createTableWithCapabilities(tProps); + resetHMSClient(); tbl2 = client.getTable(dbName, tblName); assertEquals("Table access type does not match expected value:" + tblName, @@ -300,24 +326,33 @@ public void testTransformerManagedTable() throws Exception { tbl2 = client.getTable(dbName, tblName); assertEquals("Table access type does not match expected value:" + tblName, ACCESSTYPE_READONLY, tbl2.getAccessType()); + assertNotNull("Required write capabilities are null", tbl2.getRequiredWriteCapabilities()); + assertTrue("Required write capabilities does not contain CONNECTORWRITE", + tbl2.getRequiredWriteCapabilities().contains("CONNECTORWRITE")); resetHMSClient(); setHMSClient("testMGDwithInsertRead", new String[] {"HIVEMANAGEDINSERTREAD"}); tbl2 = client.getTable(dbName, tblName); assertEquals("Table access type does not match expected value:" + tblName, ACCESSTYPE_READONLY, tbl2.getAccessType()); + assertNotNull("Required write capabilities are null", tbl2.getRequiredWriteCapabilities()); + assertTrue("Required write capabilities does not contain CONNECTORWRITE", + tbl2.getRequiredWriteCapabilities().contains("CONNECTORWRITE")); resetHMSClient(); setHMSClient("testMGDwithInsertWrite", new String[] {"HIVEMANAGEDINSERTWRITE"}); tbl2 = client.getTable(dbName, tblName); assertEquals("Table access type does not match expected value:" + tblName, ACCESSTYPE_READWRITE, tbl2.getAccessType()); + assertNull("Required read capabilities are not null", tbl2.getRequiredReadCapabilities()); + assertNull("Required write capabilities are not null", tbl2.getRequiredWriteCapabilities()); resetHMSClient(); setHMSClient("testMGDwithConnectorWrite", new String[] {"CONNECTORWRITE"}); tbl2 = client.getTable(dbName, tblName); assertEquals("Table access type does not match expected value:" + tblName, ACCESSTYPE_READWRITE, tbl2.getAccessType()); + assertNull("Required read capabilities are not null", tbl2.getRequiredReadCapabilities()); resetHMSClient(); // bucketed table with no capabilities @@ -331,7 +366,9 @@ public void testTransformerManagedTable() throws Exception { properties.append("transactional_properties=insert_only"); tProps.put("TBLNAME", tblName); tProps.put("PROPERTIES", properties.toString()); + setHMSClient("createTable", new String[] {"HIVEMANAGEDINSERTWRITE" ,"HIVEFULLACIDWRITE"}); tbl = createTableWithCapabilities(tProps); + resetHMSClient(); tbl2 = client.getTable(dbName, tblName); assertEquals("Table access type does not match expected value:" + tblName, @@ -342,13 +379,19 @@ public void testTransformerManagedTable() throws Exception { tbl2 = client.getTable(dbName, tblName); assertEquals("Table access type does not match expected value:" + tblName, ACCESSTYPE_READWRITE, tbl2.getAccessType()); + assertNull("Required read capabilities are not null", tbl2.getRequiredReadCapabilities()); + assertNull("Required write capabilities are not null", tbl2.getRequiredWriteCapabilities()); resetHMSClient(); setHMSClient("testMGDwith1MissingWrite", new String[] {"HIVEMANAGEDINSERTREAD", "HIVEMANAGEDINSERTWRITE", "HIVECACHEINVALIDATE" }); tbl2 = client.getTable(dbName, tblName); assertEquals("Table access type does not match expected value:" + tblName, - ACCESSTYPE_NONE, tbl2.getAccessType()); + ACCESSTYPE_READONLY, tbl2.getAccessType()); + assertNull("Required read capabilities are not null", tbl2.getRequiredReadCapabilities()); + assertNotNull("Required write capabilities are null", tbl2.getRequiredWriteCapabilities()); + assertTrue("Required write capabilities contains HIVEMANAGEDSTATS", + tbl2.getRequiredWriteCapabilities().contains("HIVEMANAGEDSTATS")); resetHMSClient(); setHMSClient("testMGDwith1Write", new String[] {"CONNECTORWRITE"}); @@ -371,7 +414,9 @@ public void testTransformerManagedTable() throws Exception { tProps.put("TBLNAME", tblName); tProps.put("TBLTYPE", TableType.MANAGED_TABLE); tProps.put("PROPERTIES", properties.toString()); + setHMSClient("createTable", new String[] {"HIVEMANAGEDINSERTWRITE", "HIVEFULLACIDWRITE"}); tbl = createTableWithCapabilities(tProps); + resetHMSClient(); tbl2 = client.getTable(dbName, tblName); assertEquals("Table access type does not match expected value:" + tblName, @@ -417,7 +462,9 @@ public void testTransformerManagedTable() throws Exception { tProps.put("TBLNAME", tblName); tProps.put("TBLTYPE", TableType.MANAGED_TABLE); tProps.put("PROPERTIES", properties.toString()); + setHMSClient("createTable", new String[] {"HIVEMANAGEDINSERTWRITE", "HIVEFULLACIDWRITE"}); tbl = createTableWithCapabilities(tProps); + resetHMSClient(); tbl2 = client.getTable(dbName, tblName); assertEquals("Table access type does not match expected value:" + tblName, @@ -677,7 +724,8 @@ public void testGetTablesExt() throws Exception { LOG.debug("Return list size=" + extTables.size() + ",bitValue=" + requestedFields); assertEquals("Return list size does not match expected size:extTables", count, extTables.size()); for (ExtendedTableInfo tableInfo : extTables) { - assertEquals("Capability set size does not match", capabilities.size(), tableInfo.getProcessorCapabilities().size()); + assertNull("Return object should not have read capabilities", tableInfo.getRequiredReadCapabilities()); + assertNull("Return object should not have write capabilities", tableInfo.getRequiredWriteCapabilities()); assertEquals("AccessType not expected to be set", 0, tableInfo.getAccessType()); } @@ -686,7 +734,8 @@ public void testGetTablesExt() throws Exception { LOG.debug("Return list size=" + extTables.size() + ",bitValue=" + requestedFields); assertEquals("Return list size does not match expected size", count, extTables.size()); for (ExtendedTableInfo tableInfo : extTables) { - assertNull("Return value should not contain capabilities", tableInfo.getProcessorCapabilities()); + assertNull("Return object should not have read capabilities", tableInfo.getRequiredReadCapabilities()); + assertNull("Return object should not have write capabilities", tableInfo.getRequiredWriteCapabilities()); assertTrue("AccessType expected to be set", tableInfo.getAccessType() > 0); } @@ -695,7 +744,6 @@ public void testGetTablesExt() throws Exception { LOG.debug("Return list size=" + extTables.size() + ",bitValue=" + requestedFields); assertEquals("Return list size does not match expected size", count, extTables.size()); for (ExtendedTableInfo tableInfo : extTables) { - assertEquals("Capability set size does not match", capabilities.size(), tableInfo.getProcessorCapabilities().size()); assertTrue("AccessType expected to be set", tableInfo.getAccessType() > 0); } @@ -703,7 +751,6 @@ public void testGetTablesExt() throws Exception { LOG.debug("Return list size=" + extTables.size() + ",bitValue=" + requestedFields); assertEquals("Return list size does not match expected size", (count - 3), extTables.size()); for (ExtendedTableInfo tableInfo : extTables) { - assertEquals("Capability set size does not match", capabilities.size(), tableInfo.getProcessorCapabilities().size()); assertTrue("AccessType expected to be set", tableInfo.getAccessType() > 0); } @@ -768,7 +815,6 @@ public void testGetPartitionsByNames() throws Exception { Table table = createTableWithCapabilities(tProps); - List partNames = new ArrayList<>(); List partValues = new ArrayList<>(); for (int i = 1; i <= pCount; i++) { partValues.add("partcol=" + i); @@ -814,7 +860,9 @@ public void testGetPartitionsByNames() throws Exception { properties.append("transactional_properties=insert_only"); tProps.put("TBLNAME", tblName); tProps.put("PROPERTIES", properties.toString()); + setHMSClient("createTable", new String[] {"HIVEMANAGEDINSERTWRITE,HIVEFULLACIDWRITE"}); table = createTableWithCapabilities(tProps); + resetHMSClient(); capabilities.clear(); capabilities.add("CONNECTORREAD"); @@ -832,6 +880,236 @@ public void testGetPartitionsByNames() throws Exception { } } + @Test + public void testCreateTable() throws Exception { + try { + resetHMSClient(); + + final String dbName = "dbcreate"; + String tblName = "test_create_table_ext"; + TableType type = TableType.EXTERNAL_TABLE; + StringBuilder table_params = new StringBuilder(); + table_params.append("key1=val1"); + table_params.append(";"); + table_params.append("EXTERNAL=TRUE"); + Map tProps = new HashMap<>(); + tProps.put("DBNAME", dbName); + tProps.put("TBLNAME", tblName); + tProps.put("TBLTYPE", type); + tProps.put("PROPERTIES", table_params.toString()); + + Table table = createTableWithCapabilities(tProps); + + // retrieve the table + Table tbl2 = client.getTable(dbName, tblName); + assertEquals("Table type expected to be EXTERNAL", "EXTERNAL_TABLE", tbl2.getTableType()); + + tblName = "test_create_table_mgd_woc"; + type = TableType.MANAGED_TABLE; + tProps.put("TBLNAME", tblName); + tProps.put("TBLTYPE", TableType.MANAGED_TABLE); + table_params = new StringBuilder(); + table_params.append("key1=val1"); + tProps.put("PROPERTIES", table_params.toString()); + table = createTableWithCapabilities(tProps); + + // retrieve the table + tbl2 = client.getTable(dbName, tblName); + assertEquals("Table type expected to be converted to EXTERNAL", "EXTERNAL_TABLE", tbl2.getTableType()); + assertNotNull("external.table.purge is expected to be non-null", tbl2.getParameters().get("external.table.purge")); + assertTrue("external.table.purge is expected to be true", + tbl2.getParameters().get("external.table.purge").equalsIgnoreCase("TRUE")); + assertTrue("Table params expected to contain original properties", tbl2.getParameters().get("key1").equals("val1")); + + // Test for FULL ACID tables + tblName = "test_create_table_acid_mgd_woc"; + type = TableType.MANAGED_TABLE; + tProps.put("TBLNAME", tblName); + tProps.put("TBLTYPE", type); + table_params = new StringBuilder(); + table_params.append("key1=val1"); + table_params.append(";"); + table_params.append("transactional=true"); + tProps.put("PROPERTIES", table_params.toString()); + + try { + table = createTableWithCapabilities(tProps); + fail("CreateTable expected to fail, but passed for " + tblName); + } catch (MetaException me) { + LOG.info("Create table expected to fail as ACID table cannot be created without possessing capabilities"); + } + + List capabilities = new ArrayList<>(); + capabilities.add("CONNECTORWRITE"); + setHMSClient("TestCreateTableACID#1", (String[])(capabilities.toArray(new String[0]))); + + try { + table = createTableWithCapabilities(tProps); + fail("Create table expected to fail but has succeeded."); + } catch (MetaException me) { + LOG.info("CreateTable expected to fail and has failed for " + tblName); + } + resetHMSClient(); + + capabilities = new ArrayList<>(); + capabilities.add("HIVEFULLACIDWRITE"); + setHMSClient("TestCreateTableACID#2", (String[])(capabilities.toArray(new String[0]))); + + try { + table = createTableWithCapabilities(tProps); + LOG.info("Create table expected to succeed and has succeeded."); + + // retrieve the table + tbl2 = client.getTable(dbName, tblName); + assertEquals("TableType expected to be MANAGED_TABLE", TableType.MANAGED_TABLE.name(), tbl2.getTableType()); + assertTrue("Table params expected to contain ACID properties", + tbl2.getParameters().get("transactional").equals("true")); + assertTrue("Table params not expected to contain INSERT ACID properties", + ((tbl2.getParameters().get("transactional_properties") == null) || + !(tbl2.getParameters().get("transactional_properties").equalsIgnoreCase("insert_only")))); + } catch (MetaException me) { + fail("CreateTable expected to succeed, but failed for " + tblName); + } + resetHMSClient(); + + tblName = "test_create_table_acid_mgd_wc"; + tProps.put("TBLNAME", tblName); + table_params = new StringBuilder(); + table_params.append("key1=val1"); + table_params.append(";"); + table_params.append("transactional=true"); + table_params.append(";"); + table_params.append(CAPABILITIES_KEY).append("=").append("HIVEFULLACIDREAD,HIVEFULLACIDWRITE,HIVECACHEINVALIDATE,") + .append("HIVEMANAGEDSTATS,CONNECTORREAD,CONNECTORWRITE"); + tProps.put("PROPERTIES", table_params.toString()); + + try { + table = createTableWithCapabilities(tProps); + fail("CreateTable expected to fail, but passed for " + tblName); + } catch (MetaException me) { + LOG.info("Create table expected to fail as ACID table cannot be created without possessing capabilities"); + } + + tblName = "test_create_table_acid_mgd_wcw"; + tProps.put("TBLNAME", tblName); + capabilities = new ArrayList<>(); + capabilities.add("CONNECTORWRITE"); + setHMSClient("TestCreateTableACID#3", (String[])(capabilities.toArray(new String[0]))); + + try { + table = createTableWithCapabilities(tProps); + fail("Create table expected to fail but has succeeded."); + } catch (MetaException me) { + LOG.info("CreateTable expected to fail and has failed for " + tblName); + } + resetHMSClient(); + + tblName = "test_create_table_acid_mgd_whfaw"; + table_params = new StringBuilder(); + table_params.append("key1=val1"); + table_params.append(";"); + table_params.append("transactional=true"); + table_params.append(";"); + table_params.append(CAPABILITIES_KEY).append("=").append("HIVEFULLACIDREAD,HIVEFULLACIDWRITE,HIVECACHEINVALIDATE,") + .append("HIVEMANAGEDSTATS,CONNECTORREAD,CONNECTORWRITE"); + tProps.put("TBLNAME", tblName); + capabilities = new ArrayList<>(); + capabilities.add("HIVEFULLACIDWRITE"); + setHMSClient("TestCreateTableACID#4", (String[])(capabilities.toArray(new String[0]))); + + try { + table = createTableWithCapabilities(tProps); + LOG.info("Create table expected to succeed and has succeeded."); + + // retrieve the table + tbl2 = client.getTable(dbName, tblName); + assertEquals("TableType expected to be MANAGED_TABLE", TableType.MANAGED_TABLE.name(), tbl2.getTableType()); + assertTrue("Table params expected to contain ACID properties", + tbl2.getParameters().get("transactional").equals("true")); + assertTrue("Table params not expected to contain INSERT ACID properties", + ((tbl2.getParameters().get("transactional_properties") == null) || + !(tbl2.getParameters().get("transactional_properties").equalsIgnoreCase("insert_only")))); + assertEquals("Expected access of type READONLY", ACCESSTYPE_READWRITE, tbl2.getAccessType()); + assertNull("Expected null required write capabilities", tbl2.getRequiredWriteCapabilities()); + } catch (MetaException me) { + fail("CreateTable expected to succeed, but failed for " + tblName); + } + resetHMSClient(); + + tblName = "test_create_table_insert_mgd_woc"; + type = TableType.MANAGED_TABLE; + tProps.put("TBLNAME", tblName); + tProps.put("TBLTYPE", type); + table_params = new StringBuilder(); + table_params.append("key1=val1"); + table_params.append(";"); + table_params.append("transactional=true"); + table_params.append(";"); + table_params.append("transactional_properties=insert_only"); + tProps.put("PROPERTIES", table_params.toString()); + + try { + table = createTableWithCapabilities(tProps); + fail("CreateTable expected to fail, but passed for " + tblName); + } catch (MetaException me) { + LOG.info("Create table expected to fail as ACID table cannot be created without possessing capabilities"); + } + + capabilities = new ArrayList<>(); + capabilities.add("CONNECTORWRITE"); + setHMSClient("TestCreateTableMGD#1", (String[])(capabilities.toArray(new String[0]))); + + try { + table = createTableWithCapabilities(tProps); + fail("Create table expected to fail but has succeeded."); + } catch (MetaException me) { + LOG.info("CreateTable expected to fail and has failed for " + tblName); + } + resetHMSClient(); + + capabilities = new ArrayList<>(); + capabilities.add("HIVEMANAGEDINSERTWRITE"); + setHMSClient("TestCreateTableMGD#2", (String[])(capabilities.toArray(new String[0]))); + + try { + table = createTableWithCapabilities(tProps); + LOG.info("Create table expected to succeed and has succeeded."); + + // retrieve the table + tbl2 = client.getTable(dbName, tblName); + assertEquals("TableType expected to be MANAGED_TABLE", TableType.MANAGED_TABLE.name(), tbl2.getTableType()); + assertTrue("Table params expected to contain ACID properties", + tbl2.getParameters().get("transactional").equals("true")); + assertTrue("Table params expected to contain ACID properties", + tbl2.getParameters().get("transactional_properties").equals("insert_only")); + } catch (MetaException me) { + fail("CreateTable expected to succeed, but failed for " + tblName); + } + resetHMSClient(); + + // table has capabilities + tblName = "test_view_wc"; + table_params = new StringBuilder(); + table_params.append(CAPABILITIES_KEY).append("=").append("HIVESQL"); + tProps.put("TBLNAME", tblName); + tProps.put("PROPERTIES", table_params.toString()); + + try { + table = createTableWithCapabilities(tProps); + LOG.info("Create view is expected to succeed and has succeeded"); // no transformation for views + } catch (Exception e) { + LOG.info("Create view expected to succeed but has failed."); + fail("Create view expected to succeed but has failed. <" + e.getMessage() +">"); + } + } catch (Exception e) { + System.err.println(org.apache.hadoop.util.StringUtils.stringifyException(e)); + System.err.println("testCreateTable() failed."); + fail("testCreateTable 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"); @@ -870,6 +1148,12 @@ private Table createTableWithCapabilities(Map props) throws Exce final String typeName = "Person"; + if (type == TableType.EXTERNAL_TABLE) { + if (!properties.contains("EXTERNAL=TRUE")) { + properties.concat(";EXTERNAL=TRUE"); + } + } + Map table_params = new HashMap(); if (properties.length() > 0) { String[] propArray = properties.split(";"); diff --git ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java index 691f3ee2e9..2b0e09ac69 100644 --- ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java +++ ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java @@ -38,6 +38,8 @@ import java.io.FileNotFoundException; import java.io.IOException; import java.io.PrintStream; +import java.net.InetAddress; +import java.net.UnknownHostException; import java.nio.ByteBuffer; import java.sql.SQLIntegrityConstraintViolationException; import java.util.ArrayList; @@ -145,6 +147,7 @@ import org.apache.hadoop.mapred.InputFormat; import org.apache.hadoop.security.UserGroupInformation; import org.apache.hadoop.util.StringUtils; +import org.apache.hive.common.util.HiveVersionInfo; import org.apache.hive.common.util.TxnIdUtils; import org.apache.thrift.TException; import org.slf4j.Logger; @@ -338,6 +341,16 @@ private static Hive create(HiveConf c, boolean doRegisterAllFns) throws HiveExce } c.set("fs.scheme.class", "dfs"); Hive newdb = new Hive(c, doRegisterAllFns); + if (c.get("hive.metastore.client.capabilities") != null) { + String[] capabilities = c.get("hive.metastore.client.capabilities").split(","); + newdb.setHMSClientCapabilities(capabilities); + String hostName = "unknown"; + try { + hostName = InetAddress.getLocalHost().getCanonicalHostName(); + } catch (UnknownHostException ue) { + } + newdb.setHMSClientIdentifier("Hiveserver2#" + HiveVersionInfo.getVersion() + "@" + hostName); + } hiveDB.set(newdb); return newdb; } diff --git ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java index ff7f9a8583..d5bd9a440d 100644 --- ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java +++ ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java @@ -1490,7 +1490,8 @@ private void analyzeTruncateTable(ASTNode ast) throws SemanticException { Table table = getTable(tableName, true); boolean isForce = ast.getFirstChildWithType(HiveParser.TOK_FORCE) != null; if (!isForce) { - if (table.getTableType() != TableType.MANAGED_TABLE) { + if (table.getTableType() != TableType.MANAGED_TABLE && + (table.getParameters().getOrDefault("external.table.purge", "FALSE")).equalsIgnoreCase("FALSE")) { throw new SemanticException(ErrorMsg.TRUNCATE_FOR_NON_MANAGED_TABLE.format(tableName)); } } diff --git ql/src/test/org/apache/hadoop/hive/ql/metadata/TestHive.java ql/src/test/org/apache/hadoop/hive/ql/metadata/TestHive.java index 8d55fecbf9..5b532512ed 100755 --- ql/src/test/org/apache/hadoop/hive/ql/metadata/TestHive.java +++ ql/src/test/org/apache/hadoop/hive/ql/metadata/TestHive.java @@ -46,6 +46,7 @@ import org.apache.hadoop.hive.metastore.api.WMResourcePlan; import org.apache.hadoop.hive.metastore.api.WMResourcePlanStatus; import org.apache.hadoop.hive.metastore.api.hive_metastoreConstants; +import org.apache.hadoop.hive.metastore.conf.MetastoreConf; import org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat; import org.apache.hadoop.hive.ql.session.SessionState; import org.apache.hadoop.hive.ql.stats.StatsUtils; @@ -94,6 +95,8 @@ private static Hive setUpImpl(HiveConf hiveConf) throws Exception { // enable trash so it can be tested hiveConf.setFloat("fs.trash.checkpoint.interval", 30); // FS_TRASH_CHECKPOINT_INTERVAL_KEY (hadoop-2) hiveConf.setFloat("fs.trash.interval", 30); // FS_TRASH_INTERVAL_KEY (hadoop-2) + hiveConf.setBoolVar(ConfVars.HIVE_IN_TEST, true); + MetastoreConf.setBoolVar(hiveConf, MetastoreConf.ConfVars.HIVE_IN_TEST, true); SessionState.start(hiveConf); try { return Hive.get(hiveConf); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnsRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnsRequest.java index 51b33355e1..b2477c080d 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnsRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnsRequest.java @@ -351,13 +351,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AbortTxnsRequest st case 1: // TXN_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list626 = iprot.readListBegin(); - struct.txn_ids = new ArrayList(_list626.size); - long _elem627; - for (int _i628 = 0; _i628 < _list626.size; ++_i628) + org.apache.thrift.protocol.TList _list642 = iprot.readListBegin(); + struct.txn_ids = new ArrayList(_list642.size); + long _elem643; + for (int _i644 = 0; _i644 < _list642.size; ++_i644) { - _elem627 = iprot.readI64(); - struct.txn_ids.add(_elem627); + _elem643 = iprot.readI64(); + struct.txn_ids.add(_elem643); } iprot.readListEnd(); } @@ -383,9 +383,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, AbortTxnsRequest s oprot.writeFieldBegin(TXN_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.txn_ids.size())); - for (long _iter629 : struct.txn_ids) + for (long _iter645 : struct.txn_ids) { - oprot.writeI64(_iter629); + oprot.writeI64(_iter645); } oprot.writeListEnd(); } @@ -410,9 +410,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AbortTxnsRequest st TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.txn_ids.size()); - for (long _iter630 : struct.txn_ids) + for (long _iter646 : struct.txn_ids) { - oprot.writeI64(_iter630); + oprot.writeI64(_iter646); } } } @@ -421,13 +421,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AbortTxnsRequest st public void read(org.apache.thrift.protocol.TProtocol prot, AbortTxnsRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list631 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.txn_ids = new ArrayList(_list631.size); - long _elem632; - for (int _i633 = 0; _i633 < _list631.size; ++_i633) + org.apache.thrift.protocol.TList _list647 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.txn_ids = new ArrayList(_list647.size); + long _elem648; + for (int _i649 = 0; _i649 < _list647.size; ++_i649) { - _elem632 = iprot.readI64(); - struct.txn_ids.add(_elem632); + _elem648 = iprot.readI64(); + struct.txn_ids.add(_elem648); } } struct.setTxn_idsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddCheckConstraintRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddCheckConstraintRequest.java index f89c0296af..b8bd0c99a2 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddCheckConstraintRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddCheckConstraintRequest.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AddCheckConstraintR case 1: // CHECK_CONSTRAINT_COLS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list424 = iprot.readListBegin(); - struct.checkConstraintCols = new ArrayList(_list424.size); - SQLCheckConstraint _elem425; - for (int _i426 = 0; _i426 < _list424.size; ++_i426) + org.apache.thrift.protocol.TList _list440 = iprot.readListBegin(); + struct.checkConstraintCols = new ArrayList(_list440.size); + SQLCheckConstraint _elem441; + for (int _i442 = 0; _i442 < _list440.size; ++_i442) { - _elem425 = new SQLCheckConstraint(); - _elem425.read(iprot); - struct.checkConstraintCols.add(_elem425); + _elem441 = new SQLCheckConstraint(); + _elem441.read(iprot); + struct.checkConstraintCols.add(_elem441); } iprot.readListEnd(); } @@ -387,9 +387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, AddCheckConstraint oprot.writeFieldBegin(CHECK_CONSTRAINT_COLS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.checkConstraintCols.size())); - for (SQLCheckConstraint _iter427 : struct.checkConstraintCols) + for (SQLCheckConstraint _iter443 : struct.checkConstraintCols) { - _iter427.write(oprot); + _iter443.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AddCheckConstraintR TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.checkConstraintCols.size()); - for (SQLCheckConstraint _iter428 : struct.checkConstraintCols) + for (SQLCheckConstraint _iter444 : struct.checkConstraintCols) { - _iter428.write(oprot); + _iter444.write(oprot); } } } @@ -425,14 +425,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AddCheckConstraintR public void read(org.apache.thrift.protocol.TProtocol prot, AddCheckConstraintRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list429 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.checkConstraintCols = new ArrayList(_list429.size); - SQLCheckConstraint _elem430; - for (int _i431 = 0; _i431 < _list429.size; ++_i431) + org.apache.thrift.protocol.TList _list445 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.checkConstraintCols = new ArrayList(_list445.size); + SQLCheckConstraint _elem446; + for (int _i447 = 0; _i447 < _list445.size; ++_i447) { - _elem430 = new SQLCheckConstraint(); - _elem430.read(iprot); - struct.checkConstraintCols.add(_elem430); + _elem446 = new SQLCheckConstraint(); + _elem446.read(iprot); + struct.checkConstraintCols.add(_elem446); } } struct.setCheckConstraintColsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDefaultConstraintRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDefaultConstraintRequest.java index f394431cd4..b267a9683f 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDefaultConstraintRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDefaultConstraintRequest.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AddDefaultConstrain case 1: // DEFAULT_CONSTRAINT_COLS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list416 = iprot.readListBegin(); - struct.defaultConstraintCols = new ArrayList(_list416.size); - SQLDefaultConstraint _elem417; - for (int _i418 = 0; _i418 < _list416.size; ++_i418) + org.apache.thrift.protocol.TList _list432 = iprot.readListBegin(); + struct.defaultConstraintCols = new ArrayList(_list432.size); + SQLDefaultConstraint _elem433; + for (int _i434 = 0; _i434 < _list432.size; ++_i434) { - _elem417 = new SQLDefaultConstraint(); - _elem417.read(iprot); - struct.defaultConstraintCols.add(_elem417); + _elem433 = new SQLDefaultConstraint(); + _elem433.read(iprot); + struct.defaultConstraintCols.add(_elem433); } iprot.readListEnd(); } @@ -387,9 +387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, AddDefaultConstrai oprot.writeFieldBegin(DEFAULT_CONSTRAINT_COLS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.defaultConstraintCols.size())); - for (SQLDefaultConstraint _iter419 : struct.defaultConstraintCols) + for (SQLDefaultConstraint _iter435 : struct.defaultConstraintCols) { - _iter419.write(oprot); + _iter435.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AddDefaultConstrain TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.defaultConstraintCols.size()); - for (SQLDefaultConstraint _iter420 : struct.defaultConstraintCols) + for (SQLDefaultConstraint _iter436 : struct.defaultConstraintCols) { - _iter420.write(oprot); + _iter436.write(oprot); } } } @@ -425,14 +425,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AddDefaultConstrain public void read(org.apache.thrift.protocol.TProtocol prot, AddDefaultConstraintRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list421 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.defaultConstraintCols = new ArrayList(_list421.size); - SQLDefaultConstraint _elem422; - for (int _i423 = 0; _i423 < _list421.size; ++_i423) + org.apache.thrift.protocol.TList _list437 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.defaultConstraintCols = new ArrayList(_list437.size); + SQLDefaultConstraint _elem438; + for (int _i439 = 0; _i439 < _list437.size; ++_i439) { - _elem422 = new SQLDefaultConstraint(); - _elem422.read(iprot); - struct.defaultConstraintCols.add(_elem422); + _elem438 = new SQLDefaultConstraint(); + _elem438.read(iprot); + struct.defaultConstraintCols.add(_elem438); } } struct.setDefaultConstraintColsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java index b26586ab62..60a2b47b56 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java @@ -816,13 +816,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AddDynamicPartition case 5: // PARTITIONNAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list756 = iprot.readListBegin(); - struct.partitionnames = new ArrayList(_list756.size); - String _elem757; - for (int _i758 = 0; _i758 < _list756.size; ++_i758) + org.apache.thrift.protocol.TList _list772 = iprot.readListBegin(); + struct.partitionnames = new ArrayList(_list772.size); + String _elem773; + for (int _i774 = 0; _i774 < _list772.size; ++_i774) { - _elem757 = iprot.readString(); - struct.partitionnames.add(_elem757); + _elem773 = iprot.readString(); + struct.partitionnames.add(_elem773); } iprot.readListEnd(); } @@ -872,9 +872,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, AddDynamicPartitio oprot.writeFieldBegin(PARTITIONNAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.partitionnames.size())); - for (String _iter759 : struct.partitionnames) + for (String _iter775 : struct.partitionnames) { - oprot.writeString(_iter759); + oprot.writeString(_iter775); } oprot.writeListEnd(); } @@ -910,9 +910,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AddDynamicPartition oprot.writeString(struct.tablename); { oprot.writeI32(struct.partitionnames.size()); - for (String _iter760 : struct.partitionnames) + for (String _iter776 : struct.partitionnames) { - oprot.writeString(_iter760); + oprot.writeString(_iter776); } } BitSet optionals = new BitSet(); @@ -937,13 +937,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, AddDynamicPartitions struct.tablename = iprot.readString(); struct.setTablenameIsSet(true); { - org.apache.thrift.protocol.TList _list761 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partitionnames = new ArrayList(_list761.size); - String _elem762; - for (int _i763 = 0; _i763 < _list761.size; ++_i763) + org.apache.thrift.protocol.TList _list777 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionnames = new ArrayList(_list777.size); + String _elem778; + for (int _i779 = 0; _i779 < _list777.size; ++_i779) { - _elem762 = iprot.readString(); - struct.partitionnames.add(_elem762); + _elem778 = iprot.readString(); + struct.partitionnames.add(_elem778); } } struct.setPartitionnamesIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddForeignKeyRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddForeignKeyRequest.java index 5aa4c0a95a..ab364d495a 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddForeignKeyRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddForeignKeyRequest.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AddForeignKeyReques case 1: // FOREIGN_KEY_COLS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list392 = iprot.readListBegin(); - struct.foreignKeyCols = new ArrayList(_list392.size); - SQLForeignKey _elem393; - for (int _i394 = 0; _i394 < _list392.size; ++_i394) + org.apache.thrift.protocol.TList _list408 = iprot.readListBegin(); + struct.foreignKeyCols = new ArrayList(_list408.size); + SQLForeignKey _elem409; + for (int _i410 = 0; _i410 < _list408.size; ++_i410) { - _elem393 = new SQLForeignKey(); - _elem393.read(iprot); - struct.foreignKeyCols.add(_elem393); + _elem409 = new SQLForeignKey(); + _elem409.read(iprot); + struct.foreignKeyCols.add(_elem409); } iprot.readListEnd(); } @@ -387,9 +387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, AddForeignKeyReque oprot.writeFieldBegin(FOREIGN_KEY_COLS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.foreignKeyCols.size())); - for (SQLForeignKey _iter395 : struct.foreignKeyCols) + for (SQLForeignKey _iter411 : struct.foreignKeyCols) { - _iter395.write(oprot); + _iter411.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AddForeignKeyReques TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.foreignKeyCols.size()); - for (SQLForeignKey _iter396 : struct.foreignKeyCols) + for (SQLForeignKey _iter412 : struct.foreignKeyCols) { - _iter396.write(oprot); + _iter412.write(oprot); } } } @@ -425,14 +425,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AddForeignKeyReques public void read(org.apache.thrift.protocol.TProtocol prot, AddForeignKeyRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list397 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.foreignKeyCols = new ArrayList(_list397.size); - SQLForeignKey _elem398; - for (int _i399 = 0; _i399 < _list397.size; ++_i399) + org.apache.thrift.protocol.TList _list413 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.foreignKeyCols = new ArrayList(_list413.size); + SQLForeignKey _elem414; + for (int _i415 = 0; _i415 < _list413.size; ++_i415) { - _elem398 = new SQLForeignKey(); - _elem398.read(iprot); - struct.foreignKeyCols.add(_elem398); + _elem414 = new SQLForeignKey(); + _elem414.read(iprot); + struct.foreignKeyCols.add(_elem414); } } struct.setForeignKeyColsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddNotNullConstraintRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddNotNullConstraintRequest.java index 499515796d..ba2318664d 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddNotNullConstraintRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddNotNullConstraintRequest.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AddNotNullConstrain case 1: // NOT_NULL_CONSTRAINT_COLS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list408 = iprot.readListBegin(); - struct.notNullConstraintCols = new ArrayList(_list408.size); - SQLNotNullConstraint _elem409; - for (int _i410 = 0; _i410 < _list408.size; ++_i410) + org.apache.thrift.protocol.TList _list424 = iprot.readListBegin(); + struct.notNullConstraintCols = new ArrayList(_list424.size); + SQLNotNullConstraint _elem425; + for (int _i426 = 0; _i426 < _list424.size; ++_i426) { - _elem409 = new SQLNotNullConstraint(); - _elem409.read(iprot); - struct.notNullConstraintCols.add(_elem409); + _elem425 = new SQLNotNullConstraint(); + _elem425.read(iprot); + struct.notNullConstraintCols.add(_elem425); } iprot.readListEnd(); } @@ -387,9 +387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, AddNotNullConstrai oprot.writeFieldBegin(NOT_NULL_CONSTRAINT_COLS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.notNullConstraintCols.size())); - for (SQLNotNullConstraint _iter411 : struct.notNullConstraintCols) + for (SQLNotNullConstraint _iter427 : struct.notNullConstraintCols) { - _iter411.write(oprot); + _iter427.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AddNotNullConstrain TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.notNullConstraintCols.size()); - for (SQLNotNullConstraint _iter412 : struct.notNullConstraintCols) + for (SQLNotNullConstraint _iter428 : struct.notNullConstraintCols) { - _iter412.write(oprot); + _iter428.write(oprot); } } } @@ -425,14 +425,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AddNotNullConstrain public void read(org.apache.thrift.protocol.TProtocol prot, AddNotNullConstraintRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list413 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.notNullConstraintCols = new ArrayList(_list413.size); - SQLNotNullConstraint _elem414; - for (int _i415 = 0; _i415 < _list413.size; ++_i415) + org.apache.thrift.protocol.TList _list429 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.notNullConstraintCols = new ArrayList(_list429.size); + SQLNotNullConstraint _elem430; + for (int _i431 = 0; _i431 < _list429.size; ++_i431) { - _elem414 = new SQLNotNullConstraint(); - _elem414.read(iprot); - struct.notNullConstraintCols.add(_elem414); + _elem430 = new SQLNotNullConstraint(); + _elem430.read(iprot); + struct.notNullConstraintCols.add(_elem430); } } struct.setNotNullConstraintColsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsRequest.java index f7dcd1fd23..b167d3ea25 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsRequest.java @@ -866,14 +866,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AddPartitionsReques case 3: // PARTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list498 = iprot.readListBegin(); - struct.parts = new ArrayList(_list498.size); - Partition _elem499; - for (int _i500 = 0; _i500 < _list498.size; ++_i500) + org.apache.thrift.protocol.TList _list514 = iprot.readListBegin(); + struct.parts = new ArrayList(_list514.size); + Partition _elem515; + for (int _i516 = 0; _i516 < _list514.size; ++_i516) { - _elem499 = new Partition(); - _elem499.read(iprot); - struct.parts.add(_elem499); + _elem515 = new Partition(); + _elem515.read(iprot); + struct.parts.add(_elem515); } iprot.readListEnd(); } @@ -941,9 +941,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, AddPartitionsReque oprot.writeFieldBegin(PARTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.parts.size())); - for (Partition _iter501 : struct.parts) + for (Partition _iter517 : struct.parts) { - _iter501.write(oprot); + _iter517.write(oprot); } oprot.writeListEnd(); } @@ -992,9 +992,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AddPartitionsReques oprot.writeString(struct.tblName); { oprot.writeI32(struct.parts.size()); - for (Partition _iter502 : struct.parts) + for (Partition _iter518 : struct.parts) { - _iter502.write(oprot); + _iter518.write(oprot); } } oprot.writeBool(struct.ifNotExists); @@ -1028,14 +1028,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, AddPartitionsRequest struct.tblName = iprot.readString(); struct.setTblNameIsSet(true); { - org.apache.thrift.protocol.TList _list503 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.parts = new ArrayList(_list503.size); - Partition _elem504; - for (int _i505 = 0; _i505 < _list503.size; ++_i505) + org.apache.thrift.protocol.TList _list519 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.parts = new ArrayList(_list519.size); + Partition _elem520; + for (int _i521 = 0; _i521 < _list519.size; ++_i521) { - _elem504 = new Partition(); - _elem504.read(iprot); - struct.parts.add(_elem504); + _elem520 = new Partition(); + _elem520.read(iprot); + struct.parts.add(_elem520); } } struct.setPartsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsResult.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsResult.java index 4065d160ac..3b8bc4cc06 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsResult.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsResult.java @@ -426,14 +426,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AddPartitionsResult case 1: // PARTITIONS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list490 = iprot.readListBegin(); - struct.partitions = new ArrayList(_list490.size); - Partition _elem491; - for (int _i492 = 0; _i492 < _list490.size; ++_i492) + org.apache.thrift.protocol.TList _list506 = iprot.readListBegin(); + struct.partitions = new ArrayList(_list506.size); + Partition _elem507; + for (int _i508 = 0; _i508 < _list506.size; ++_i508) { - _elem491 = new Partition(); - _elem491.read(iprot); - struct.partitions.add(_elem491); + _elem507 = new Partition(); + _elem507.read(iprot); + struct.partitions.add(_elem507); } iprot.readListEnd(); } @@ -468,9 +468,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, AddPartitionsResul oprot.writeFieldBegin(PARTITIONS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitions.size())); - for (Partition _iter493 : struct.partitions) + for (Partition _iter509 : struct.partitions) { - _iter493.write(oprot); + _iter509.write(oprot); } oprot.writeListEnd(); } @@ -510,9 +510,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AddPartitionsResult if (struct.isSetPartitions()) { { oprot.writeI32(struct.partitions.size()); - for (Partition _iter494 : struct.partitions) + for (Partition _iter510 : struct.partitions) { - _iter494.write(oprot); + _iter510.write(oprot); } } } @@ -527,14 +527,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, AddPartitionsResult BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list495 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitions = new ArrayList(_list495.size); - Partition _elem496; - for (int _i497 = 0; _i497 < _list495.size; ++_i497) + org.apache.thrift.protocol.TList _list511 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitions = new ArrayList(_list511.size); + Partition _elem512; + for (int _i513 = 0; _i513 < _list511.size; ++_i513) { - _elem496 = new Partition(); - _elem496.read(iprot); - struct.partitions.add(_elem496); + _elem512 = new Partition(); + _elem512.read(iprot); + struct.partitions.add(_elem512); } } struct.setPartitionsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPrimaryKeyRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPrimaryKeyRequest.java index 250909a278..97b02914c4 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPrimaryKeyRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPrimaryKeyRequest.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AddPrimaryKeyReques case 1: // PRIMARY_KEY_COLS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list384 = iprot.readListBegin(); - struct.primaryKeyCols = new ArrayList(_list384.size); - SQLPrimaryKey _elem385; - for (int _i386 = 0; _i386 < _list384.size; ++_i386) + org.apache.thrift.protocol.TList _list400 = iprot.readListBegin(); + struct.primaryKeyCols = new ArrayList(_list400.size); + SQLPrimaryKey _elem401; + for (int _i402 = 0; _i402 < _list400.size; ++_i402) { - _elem385 = new SQLPrimaryKey(); - _elem385.read(iprot); - struct.primaryKeyCols.add(_elem385); + _elem401 = new SQLPrimaryKey(); + _elem401.read(iprot); + struct.primaryKeyCols.add(_elem401); } iprot.readListEnd(); } @@ -387,9 +387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, AddPrimaryKeyReque oprot.writeFieldBegin(PRIMARY_KEY_COLS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.primaryKeyCols.size())); - for (SQLPrimaryKey _iter387 : struct.primaryKeyCols) + for (SQLPrimaryKey _iter403 : struct.primaryKeyCols) { - _iter387.write(oprot); + _iter403.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AddPrimaryKeyReques TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.primaryKeyCols.size()); - for (SQLPrimaryKey _iter388 : struct.primaryKeyCols) + for (SQLPrimaryKey _iter404 : struct.primaryKeyCols) { - _iter388.write(oprot); + _iter404.write(oprot); } } } @@ -425,14 +425,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AddPrimaryKeyReques public void read(org.apache.thrift.protocol.TProtocol prot, AddPrimaryKeyRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list389 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.primaryKeyCols = new ArrayList(_list389.size); - SQLPrimaryKey _elem390; - for (int _i391 = 0; _i391 < _list389.size; ++_i391) + org.apache.thrift.protocol.TList _list405 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.primaryKeyCols = new ArrayList(_list405.size); + SQLPrimaryKey _elem406; + for (int _i407 = 0; _i407 < _list405.size; ++_i407) { - _elem390 = new SQLPrimaryKey(); - _elem390.read(iprot); - struct.primaryKeyCols.add(_elem390); + _elem406 = new SQLPrimaryKey(); + _elem406.read(iprot); + struct.primaryKeyCols.add(_elem406); } } struct.setPrimaryKeyColsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddUniqueConstraintRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddUniqueConstraintRequest.java index d9df54a62b..084e15515c 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddUniqueConstraintRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddUniqueConstraintRequest.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AddUniqueConstraint case 1: // UNIQUE_CONSTRAINT_COLS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list400 = iprot.readListBegin(); - struct.uniqueConstraintCols = new ArrayList(_list400.size); - SQLUniqueConstraint _elem401; - for (int _i402 = 0; _i402 < _list400.size; ++_i402) + org.apache.thrift.protocol.TList _list416 = iprot.readListBegin(); + struct.uniqueConstraintCols = new ArrayList(_list416.size); + SQLUniqueConstraint _elem417; + for (int _i418 = 0; _i418 < _list416.size; ++_i418) { - _elem401 = new SQLUniqueConstraint(); - _elem401.read(iprot); - struct.uniqueConstraintCols.add(_elem401); + _elem417 = new SQLUniqueConstraint(); + _elem417.read(iprot); + struct.uniqueConstraintCols.add(_elem417); } iprot.readListEnd(); } @@ -387,9 +387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, AddUniqueConstrain oprot.writeFieldBegin(UNIQUE_CONSTRAINT_COLS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.uniqueConstraintCols.size())); - for (SQLUniqueConstraint _iter403 : struct.uniqueConstraintCols) + for (SQLUniqueConstraint _iter419 : struct.uniqueConstraintCols) { - _iter403.write(oprot); + _iter419.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AddUniqueConstraint TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.uniqueConstraintCols.size()); - for (SQLUniqueConstraint _iter404 : struct.uniqueConstraintCols) + for (SQLUniqueConstraint _iter420 : struct.uniqueConstraintCols) { - _iter404.write(oprot); + _iter420.write(oprot); } } } @@ -425,14 +425,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AddUniqueConstraint public void read(org.apache.thrift.protocol.TProtocol prot, AddUniqueConstraintRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list405 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.uniqueConstraintCols = new ArrayList(_list405.size); - SQLUniqueConstraint _elem406; - for (int _i407 = 0; _i407 < _list405.size; ++_i407) + org.apache.thrift.protocol.TList _list421 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.uniqueConstraintCols = new ArrayList(_list421.size); + SQLUniqueConstraint _elem422; + for (int _i423 = 0; _i423 < _list421.size; ++_i423) { - _elem406 = new SQLUniqueConstraint(); - _elem406.read(iprot); - struct.uniqueConstraintCols.add(_elem406); + _elem422 = new SQLUniqueConstraint(); + _elem422.read(iprot); + struct.uniqueConstraintCols.add(_elem422); } } struct.setUniqueConstraintColsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AggrStats.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AggrStats.java index ec6f5572dd..22656c9c14 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AggrStats.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AggrStats.java @@ -516,14 +516,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AggrStats struct) t case 1: // COL_STATS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list292 = iprot.readListBegin(); - struct.colStats = new ArrayList(_list292.size); - ColumnStatisticsObj _elem293; - for (int _i294 = 0; _i294 < _list292.size; ++_i294) + org.apache.thrift.protocol.TList _list308 = iprot.readListBegin(); + struct.colStats = new ArrayList(_list308.size); + ColumnStatisticsObj _elem309; + for (int _i310 = 0; _i310 < _list308.size; ++_i310) { - _elem293 = new ColumnStatisticsObj(); - _elem293.read(iprot); - struct.colStats.add(_elem293); + _elem309 = new ColumnStatisticsObj(); + _elem309.read(iprot); + struct.colStats.add(_elem309); } iprot.readListEnd(); } @@ -565,9 +565,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, AggrStats struct) oprot.writeFieldBegin(COL_STATS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.colStats.size())); - for (ColumnStatisticsObj _iter295 : struct.colStats) + for (ColumnStatisticsObj _iter311 : struct.colStats) { - _iter295.write(oprot); + _iter311.write(oprot); } oprot.writeListEnd(); } @@ -600,9 +600,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AggrStats struct) t TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.colStats.size()); - for (ColumnStatisticsObj _iter296 : struct.colStats) + for (ColumnStatisticsObj _iter312 : struct.colStats) { - _iter296.write(oprot); + _iter312.write(oprot); } } oprot.writeI64(struct.partsFound); @@ -620,14 +620,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AggrStats struct) t public void read(org.apache.thrift.protocol.TProtocol prot, AggrStats struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list297 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.colStats = new ArrayList(_list297.size); - ColumnStatisticsObj _elem298; - for (int _i299 = 0; _i299 < _list297.size; ++_i299) + org.apache.thrift.protocol.TList _list313 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.colStats = new ArrayList(_list313.size); + ColumnStatisticsObj _elem314; + for (int _i315 = 0; _i315 < _list313.size; ++_i315) { - _elem298 = new ColumnStatisticsObj(); - _elem298.read(iprot); - struct.colStats.add(_elem298); + _elem314 = new ColumnStatisticsObj(); + _elem314.read(iprot); + struct.colStats.add(_elem314); } } struct.setColStatsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AllocateTableWriteIdsRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AllocateTableWriteIdsRequest.java index 361332b600..747dfad577 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AllocateTableWriteIdsRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AllocateTableWriteIdsRequest.java @@ -716,13 +716,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AllocateTableWriteI case 3: // TXN_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list682 = iprot.readListBegin(); - struct.txnIds = new ArrayList(_list682.size); - long _elem683; - for (int _i684 = 0; _i684 < _list682.size; ++_i684) + org.apache.thrift.protocol.TList _list698 = iprot.readListBegin(); + struct.txnIds = new ArrayList(_list698.size); + long _elem699; + for (int _i700 = 0; _i700 < _list698.size; ++_i700) { - _elem683 = iprot.readI64(); - struct.txnIds.add(_elem683); + _elem699 = iprot.readI64(); + struct.txnIds.add(_elem699); } iprot.readListEnd(); } @@ -742,14 +742,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AllocateTableWriteI case 5: // SRC_TXN_TO_WRITE_ID_LIST if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list685 = iprot.readListBegin(); - struct.srcTxnToWriteIdList = new ArrayList(_list685.size); - TxnToWriteId _elem686; - for (int _i687 = 0; _i687 < _list685.size; ++_i687) + org.apache.thrift.protocol.TList _list701 = iprot.readListBegin(); + struct.srcTxnToWriteIdList = new ArrayList(_list701.size); + TxnToWriteId _elem702; + for (int _i703 = 0; _i703 < _list701.size; ++_i703) { - _elem686 = new TxnToWriteId(); - _elem686.read(iprot); - struct.srcTxnToWriteIdList.add(_elem686); + _elem702 = new TxnToWriteId(); + _elem702.read(iprot); + struct.srcTxnToWriteIdList.add(_elem702); } iprot.readListEnd(); } @@ -786,9 +786,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, AllocateTableWrite oprot.writeFieldBegin(TXN_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.txnIds.size())); - for (long _iter688 : struct.txnIds) + for (long _iter704 : struct.txnIds) { - oprot.writeI64(_iter688); + oprot.writeI64(_iter704); } oprot.writeListEnd(); } @@ -807,9 +807,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, AllocateTableWrite oprot.writeFieldBegin(SRC_TXN_TO_WRITE_ID_LIST_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.srcTxnToWriteIdList.size())); - for (TxnToWriteId _iter689 : struct.srcTxnToWriteIdList) + for (TxnToWriteId _iter705 : struct.srcTxnToWriteIdList) { - _iter689.write(oprot); + _iter705.write(oprot); } oprot.writeListEnd(); } @@ -849,9 +849,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AllocateTableWriteI if (struct.isSetTxnIds()) { { oprot.writeI32(struct.txnIds.size()); - for (long _iter690 : struct.txnIds) + for (long _iter706 : struct.txnIds) { - oprot.writeI64(_iter690); + oprot.writeI64(_iter706); } } } @@ -861,9 +861,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AllocateTableWriteI if (struct.isSetSrcTxnToWriteIdList()) { { oprot.writeI32(struct.srcTxnToWriteIdList.size()); - for (TxnToWriteId _iter691 : struct.srcTxnToWriteIdList) + for (TxnToWriteId _iter707 : struct.srcTxnToWriteIdList) { - _iter691.write(oprot); + _iter707.write(oprot); } } } @@ -879,13 +879,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, AllocateTableWriteId BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list692 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.txnIds = new ArrayList(_list692.size); - long _elem693; - for (int _i694 = 0; _i694 < _list692.size; ++_i694) + org.apache.thrift.protocol.TList _list708 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.txnIds = new ArrayList(_list708.size); + long _elem709; + for (int _i710 = 0; _i710 < _list708.size; ++_i710) { - _elem693 = iprot.readI64(); - struct.txnIds.add(_elem693); + _elem709 = iprot.readI64(); + struct.txnIds.add(_elem709); } } struct.setTxnIdsIsSet(true); @@ -896,14 +896,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, AllocateTableWriteId } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list695 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.srcTxnToWriteIdList = new ArrayList(_list695.size); - TxnToWriteId _elem696; - for (int _i697 = 0; _i697 < _list695.size; ++_i697) + org.apache.thrift.protocol.TList _list711 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.srcTxnToWriteIdList = new ArrayList(_list711.size); + TxnToWriteId _elem712; + for (int _i713 = 0; _i713 < _list711.size; ++_i713) { - _elem696 = new TxnToWriteId(); - _elem696.read(iprot); - struct.srcTxnToWriteIdList.add(_elem696); + _elem712 = new TxnToWriteId(); + _elem712.read(iprot); + struct.srcTxnToWriteIdList.add(_elem712); } } struct.setSrcTxnToWriteIdListIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AllocateTableWriteIdsResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AllocateTableWriteIdsResponse.java index aaf187b4bd..e5349e82c5 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AllocateTableWriteIdsResponse.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AllocateTableWriteIdsResponse.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AllocateTableWriteI case 1: // TXN_TO_WRITE_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list698 = iprot.readListBegin(); - struct.txnToWriteIds = new ArrayList(_list698.size); - TxnToWriteId _elem699; - for (int _i700 = 0; _i700 < _list698.size; ++_i700) + org.apache.thrift.protocol.TList _list714 = iprot.readListBegin(); + struct.txnToWriteIds = new ArrayList(_list714.size); + TxnToWriteId _elem715; + for (int _i716 = 0; _i716 < _list714.size; ++_i716) { - _elem699 = new TxnToWriteId(); - _elem699.read(iprot); - struct.txnToWriteIds.add(_elem699); + _elem715 = new TxnToWriteId(); + _elem715.read(iprot); + struct.txnToWriteIds.add(_elem715); } iprot.readListEnd(); } @@ -387,9 +387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, AllocateTableWrite oprot.writeFieldBegin(TXN_TO_WRITE_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.txnToWriteIds.size())); - for (TxnToWriteId _iter701 : struct.txnToWriteIds) + for (TxnToWriteId _iter717 : struct.txnToWriteIds) { - _iter701.write(oprot); + _iter717.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AllocateTableWriteI TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.txnToWriteIds.size()); - for (TxnToWriteId _iter702 : struct.txnToWriteIds) + for (TxnToWriteId _iter718 : struct.txnToWriteIds) { - _iter702.write(oprot); + _iter718.write(oprot); } } } @@ -425,14 +425,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AllocateTableWriteI public void read(org.apache.thrift.protocol.TProtocol prot, AllocateTableWriteIdsResponse struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list703 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.txnToWriteIds = new ArrayList(_list703.size); - TxnToWriteId _elem704; - for (int _i705 = 0; _i705 < _list703.size; ++_i705) + org.apache.thrift.protocol.TList _list719 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.txnToWriteIds = new ArrayList(_list719.size); + TxnToWriteId _elem720; + for (int _i721 = 0; _i721 < _list719.size; ++_i721) { - _elem704 = new TxnToWriteId(); - _elem704.read(iprot); - struct.txnToWriteIds.add(_elem704); + _elem720 = new TxnToWriteId(); + _elem720.read(iprot); + struct.txnToWriteIds.add(_elem720); } } struct.setTxnToWriteIdsIsSet(true); 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 eeeae54dd2..6453c93d79 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 _list1024 = iprot.readListBegin(); - struct.partitions = new ArrayList(_list1024.size); - Partition _elem1025; - for (int _i1026 = 0; _i1026 < _list1024.size; ++_i1026) + org.apache.thrift.protocol.TList _list1104 = iprot.readListBegin(); + struct.partitions = new ArrayList(_list1104.size); + Partition _elem1105; + for (int _i1106 = 0; _i1106 < _list1104.size; ++_i1106) { - _elem1025 = new Partition(); - _elem1025.read(iprot); - struct.partitions.add(_elem1025); + _elem1105 = new Partition(); + _elem1105.read(iprot); + struct.partitions.add(_elem1105); } 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 _iter1027 : struct.partitions) + for (Partition _iter1107 : struct.partitions) { - _iter1027.write(oprot); + _iter1107.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 _iter1028 : struct.partitions) + for (Partition _iter1108 : struct.partitions) { - _iter1028.write(oprot); + _iter1108.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 _list1029 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitions = new ArrayList(_list1029.size); - Partition _elem1030; - for (int _i1031 = 0; _i1031 < _list1029.size; ++_i1031) + 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) { - _elem1030 = new Partition(); - _elem1030.read(iprot); - struct.partitions.add(_elem1030); + _elem1110 = new Partition(); + _elem1110.read(iprot); + struct.partitions.add(_elem1110); } } struct.setPartitionsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CheckConstraintsResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CheckConstraintsResponse.java index 492a9cc8cf..e12312e407 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CheckConstraintsResponse.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CheckConstraintsResponse.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, CheckConstraintsRes case 1: // CHECK_CONSTRAINTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list376 = iprot.readListBegin(); - struct.checkConstraints = new ArrayList(_list376.size); - SQLCheckConstraint _elem377; - for (int _i378 = 0; _i378 < _list376.size; ++_i378) + org.apache.thrift.protocol.TList _list392 = iprot.readListBegin(); + struct.checkConstraints = new ArrayList(_list392.size); + SQLCheckConstraint _elem393; + for (int _i394 = 0; _i394 < _list392.size; ++_i394) { - _elem377 = new SQLCheckConstraint(); - _elem377.read(iprot); - struct.checkConstraints.add(_elem377); + _elem393 = new SQLCheckConstraint(); + _elem393.read(iprot); + struct.checkConstraints.add(_elem393); } iprot.readListEnd(); } @@ -387,9 +387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, CheckConstraintsRe 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 _iter379 : struct.checkConstraints) + for (SQLCheckConstraint _iter395 : struct.checkConstraints) { - _iter379.write(oprot); + _iter395.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, CheckConstraintsRes TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.checkConstraints.size()); - for (SQLCheckConstraint _iter380 : struct.checkConstraints) + for (SQLCheckConstraint _iter396 : struct.checkConstraints) { - _iter380.write(oprot); + _iter396.write(oprot); } } } @@ -425,14 +425,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, CheckConstraintsRes public void read(org.apache.thrift.protocol.TProtocol prot, CheckConstraintsResponse struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list381 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.checkConstraints = new ArrayList(_list381.size); - SQLCheckConstraint _elem382; - for (int _i383 = 0; _i383 < _list381.size; ++_i383) + org.apache.thrift.protocol.TList _list397 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.checkConstraints = new ArrayList(_list397.size); + SQLCheckConstraint _elem398; + for (int _i399 = 0; _i399 < _list397.size; ++_i399) { - _elem382 = new SQLCheckConstraint(); - _elem382.read(iprot); - struct.checkConstraints.add(_elem382); + _elem398 = new SQLCheckConstraint(); + _elem398.read(iprot); + struct.checkConstraints.add(_elem398); } } struct.setCheckConstraintsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java index ca7628866a..5feff5ff8d 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java @@ -351,13 +351,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ClearFileMetadataRe case 1: // FILE_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list872 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list872.size); - long _elem873; - for (int _i874 = 0; _i874 < _list872.size; ++_i874) + org.apache.thrift.protocol.TList _list888 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list888.size); + long _elem889; + for (int _i890 = 0; _i890 < _list888.size; ++_i890) { - _elem873 = iprot.readI64(); - struct.fileIds.add(_elem873); + _elem889 = iprot.readI64(); + struct.fileIds.add(_elem889); } iprot.readListEnd(); } @@ -383,9 +383,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, ClearFileMetadataR oprot.writeFieldBegin(FILE_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.fileIds.size())); - for (long _iter875 : struct.fileIds) + for (long _iter891 : struct.fileIds) { - oprot.writeI64(_iter875); + oprot.writeI64(_iter891); } oprot.writeListEnd(); } @@ -410,9 +410,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ClearFileMetadataRe TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.fileIds.size()); - for (long _iter876 : struct.fileIds) + for (long _iter892 : struct.fileIds) { - oprot.writeI64(_iter876); + oprot.writeI64(_iter892); } } } @@ -421,13 +421,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ClearFileMetadataRe public void read(org.apache.thrift.protocol.TProtocol prot, ClearFileMetadataRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list877 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list877.size); - long _elem878; - for (int _i879 = 0; _i879 < _list877.size; ++_i879) + org.apache.thrift.protocol.TList _list893 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list893.size); + long _elem894; + for (int _i895 = 0; _i895 < _list893.size; ++_i895) { - _elem878 = iprot.readI64(); - struct.fileIds.add(_elem878); + _elem894 = iprot.readI64(); + struct.fileIds.add(_elem894); } } struct.setFileIdsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClientCapabilities.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClientCapabilities.java index c3cb11e14c..a4fb786c3c 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClientCapabilities.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClientCapabilities.java @@ -354,13 +354,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ClientCapabilities case 1: // VALUES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list888 = iprot.readListBegin(); - struct.values = new ArrayList(_list888.size); - ClientCapability _elem889; - for (int _i890 = 0; _i890 < _list888.size; ++_i890) + org.apache.thrift.protocol.TList _list904 = iprot.readListBegin(); + struct.values = new ArrayList(_list904.size); + ClientCapability _elem905; + for (int _i906 = 0; _i906 < _list904.size; ++_i906) { - _elem889 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); - struct.values.add(_elem889); + _elem905 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); + struct.values.add(_elem905); } iprot.readListEnd(); } @@ -386,9 +386,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, ClientCapabilities oprot.writeFieldBegin(VALUES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, struct.values.size())); - for (ClientCapability _iter891 : struct.values) + for (ClientCapability _iter907 : struct.values) { - oprot.writeI32(_iter891.getValue()); + oprot.writeI32(_iter907.getValue()); } oprot.writeListEnd(); } @@ -413,9 +413,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ClientCapabilities TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.values.size()); - for (ClientCapability _iter892 : struct.values) + for (ClientCapability _iter908 : struct.values) { - oprot.writeI32(_iter892.getValue()); + oprot.writeI32(_iter908.getValue()); } } } @@ -424,13 +424,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ClientCapabilities public void read(org.apache.thrift.protocol.TProtocol prot, ClientCapabilities struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list893 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); - struct.values = new ArrayList(_list893.size); - ClientCapability _elem894; - for (int _i895 = 0; _i895 < _list893.size; ++_i895) + org.apache.thrift.protocol.TList _list909 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); + struct.values = new ArrayList(_list909.size); + ClientCapability _elem910; + for (int _i911 = 0; _i911 < _list909.size; ++_i911) { - _elem894 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); - struct.values.add(_elem894); + _elem910 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); + struct.values.add(_elem910); } } struct.setValuesIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatistics.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatistics.java index fd4619f0e5..b650da9d4b 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatistics.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatistics.java @@ -532,14 +532,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ColumnStatistics st case 2: // STATS_OBJ if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list276 = iprot.readListBegin(); - struct.statsObj = new ArrayList(_list276.size); - ColumnStatisticsObj _elem277; - for (int _i278 = 0; _i278 < _list276.size; ++_i278) + org.apache.thrift.protocol.TList _list292 = iprot.readListBegin(); + struct.statsObj = new ArrayList(_list292.size); + ColumnStatisticsObj _elem293; + for (int _i294 = 0; _i294 < _list292.size; ++_i294) { - _elem277 = new ColumnStatisticsObj(); - _elem277.read(iprot); - struct.statsObj.add(_elem277); + _elem293 = new ColumnStatisticsObj(); + _elem293.read(iprot); + struct.statsObj.add(_elem293); } iprot.readListEnd(); } @@ -578,9 +578,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, ColumnStatistics s oprot.writeFieldBegin(STATS_OBJ_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.statsObj.size())); - for (ColumnStatisticsObj _iter279 : struct.statsObj) + for (ColumnStatisticsObj _iter295 : struct.statsObj) { - _iter279.write(oprot); + _iter295.write(oprot); } oprot.writeListEnd(); } @@ -611,9 +611,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ColumnStatistics st struct.statsDesc.write(oprot); { oprot.writeI32(struct.statsObj.size()); - for (ColumnStatisticsObj _iter280 : struct.statsObj) + for (ColumnStatisticsObj _iter296 : struct.statsObj) { - _iter280.write(oprot); + _iter296.write(oprot); } } BitSet optionals = new BitSet(); @@ -633,14 +633,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, ColumnStatistics str struct.statsDesc.read(iprot); struct.setStatsDescIsSet(true); { - org.apache.thrift.protocol.TList _list281 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.statsObj = new ArrayList(_list281.size); - ColumnStatisticsObj _elem282; - for (int _i283 = 0; _i283 < _list281.size; ++_i283) + org.apache.thrift.protocol.TList _list297 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.statsObj = new ArrayList(_list297.size); + ColumnStatisticsObj _elem298; + for (int _i299 = 0; _i299 < _list297.size; ++_i299) { - _elem282 = new ColumnStatisticsObj(); - _elem282.read(iprot); - struct.statsObj.add(_elem282); + _elem298 = new ColumnStatisticsObj(); + _elem298.read(iprot); + struct.statsObj.add(_elem298); } } struct.setStatsObjIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CommitTxnRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CommitTxnRequest.java index 5b8d11dd1f..7854e15dc4 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CommitTxnRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CommitTxnRequest.java @@ -701,14 +701,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, CommitTxnRequest st case 3: // WRITE_EVENT_INFOS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list642 = iprot.readListBegin(); - struct.writeEventInfos = new ArrayList(_list642.size); - WriteEventInfo _elem643; - for (int _i644 = 0; _i644 < _list642.size; ++_i644) + org.apache.thrift.protocol.TList _list658 = iprot.readListBegin(); + struct.writeEventInfos = new ArrayList(_list658.size); + WriteEventInfo _elem659; + for (int _i660 = 0; _i660 < _list658.size; ++_i660) { - _elem643 = new WriteEventInfo(); - _elem643.read(iprot); - struct.writeEventInfos.add(_elem643); + _elem659 = new WriteEventInfo(); + _elem659.read(iprot); + struct.writeEventInfos.add(_elem659); } iprot.readListEnd(); } @@ -763,9 +763,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, CommitTxnRequest s oprot.writeFieldBegin(WRITE_EVENT_INFOS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.writeEventInfos.size())); - for (WriteEventInfo _iter645 : struct.writeEventInfos) + for (WriteEventInfo _iter661 : struct.writeEventInfos) { - _iter645.write(oprot); + _iter661.write(oprot); } oprot.writeListEnd(); } @@ -824,9 +824,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, CommitTxnRequest st if (struct.isSetWriteEventInfos()) { { oprot.writeI32(struct.writeEventInfos.size()); - for (WriteEventInfo _iter646 : struct.writeEventInfos) + for (WriteEventInfo _iter662 : struct.writeEventInfos) { - _iter646.write(oprot); + _iter662.write(oprot); } } } @@ -850,14 +850,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, CommitTxnRequest str } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list647 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.writeEventInfos = new ArrayList(_list647.size); - WriteEventInfo _elem648; - for (int _i649 = 0; _i649 < _list647.size; ++_i649) + org.apache.thrift.protocol.TList _list663 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.writeEventInfos = new ArrayList(_list663.size); + WriteEventInfo _elem664; + for (int _i665 = 0; _i665 < _list663.size; ++_i665) { - _elem648 = new WriteEventInfo(); - _elem648.read(iprot); - struct.writeEventInfos.add(_elem648); + _elem664 = new WriteEventInfo(); + _elem664.read(iprot); + struct.writeEventInfos.add(_elem664); } } struct.setWriteEventInfosIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionRequest.java index 5acd896fd3..133004e5e5 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionRequest.java @@ -814,15 +814,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, CompactionRequest s case 6: // PROPERTIES if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map738 = iprot.readMapBegin(); - struct.properties = new HashMap(2*_map738.size); - String _key739; - String _val740; - for (int _i741 = 0; _i741 < _map738.size; ++_i741) + org.apache.thrift.protocol.TMap _map754 = iprot.readMapBegin(); + struct.properties = new HashMap(2*_map754.size); + String _key755; + String _val756; + for (int _i757 = 0; _i757 < _map754.size; ++_i757) { - _key739 = iprot.readString(); - _val740 = iprot.readString(); - struct.properties.put(_key739, _val740); + _key755 = iprot.readString(); + _val756 = iprot.readString(); + struct.properties.put(_key755, _val756); } iprot.readMapEnd(); } @@ -878,10 +878,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, CompactionRequest oprot.writeFieldBegin(PROPERTIES_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.properties.size())); - for (Map.Entry _iter742 : struct.properties.entrySet()) + for (Map.Entry _iter758 : struct.properties.entrySet()) { - oprot.writeString(_iter742.getKey()); - oprot.writeString(_iter742.getValue()); + oprot.writeString(_iter758.getKey()); + oprot.writeString(_iter758.getValue()); } oprot.writeMapEnd(); } @@ -928,10 +928,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, CompactionRequest s if (struct.isSetProperties()) { { oprot.writeI32(struct.properties.size()); - for (Map.Entry _iter743 : struct.properties.entrySet()) + for (Map.Entry _iter759 : struct.properties.entrySet()) { - oprot.writeString(_iter743.getKey()); - oprot.writeString(_iter743.getValue()); + oprot.writeString(_iter759.getKey()); + oprot.writeString(_iter759.getValue()); } } } @@ -957,15 +957,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, CompactionRequest st } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map744 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.properties = new HashMap(2*_map744.size); - String _key745; - String _val746; - for (int _i747 = 0; _i747 < _map744.size; ++_i747) + org.apache.thrift.protocol.TMap _map760 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.properties = new HashMap(2*_map760.size); + String _key761; + String _val762; + for (int _i763 = 0; _i763 < _map760.size; ++_i763) { - _key745 = iprot.readString(); - _val746 = iprot.readString(); - struct.properties.put(_key745, _val746); + _key761 = iprot.readString(); + _val762 = iprot.readString(); + struct.properties.put(_key761, _val762); } } struct.setPropertiesIsSet(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 new file mode 100644 index 0000000000..5d42a80373 --- /dev/null +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CreateTableRequest.java @@ -0,0 +1,1730 @@ +/** + * 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 CreateTableRequest 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("CreateTableRequest"); + + private static final org.apache.thrift.protocol.TField TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("table", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField ENV_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("envContext", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField PRIMARY_KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("primaryKeys", org.apache.thrift.protocol.TType.LIST, (short)3); + private static final org.apache.thrift.protocol.TField FOREIGN_KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("foreignKeys", org.apache.thrift.protocol.TType.LIST, (short)4); + private static final org.apache.thrift.protocol.TField UNIQUE_CONSTRAINTS_FIELD_DESC = new org.apache.thrift.protocol.TField("uniqueConstraints", org.apache.thrift.protocol.TType.LIST, (short)5); + private static final org.apache.thrift.protocol.TField NOT_NULL_CONSTRAINTS_FIELD_DESC = new org.apache.thrift.protocol.TField("notNullConstraints", org.apache.thrift.protocol.TType.LIST, (short)6); + private static final org.apache.thrift.protocol.TField DEFAULT_CONSTRAINTS_FIELD_DESC = new org.apache.thrift.protocol.TField("defaultConstraints", org.apache.thrift.protocol.TType.LIST, (short)7); + private static final org.apache.thrift.protocol.TField CHECK_CONSTRAINTS_FIELD_DESC = new org.apache.thrift.protocol.TField("checkConstraints", org.apache.thrift.protocol.TType.LIST, (short)8); + 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)9); + 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)10); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new CreateTableRequestStandardSchemeFactory()); + schemes.put(TupleScheme.class, new CreateTableRequestTupleSchemeFactory()); + } + + private Table table; // required + private EnvironmentContext envContext; // optional + private List primaryKeys; // optional + private List foreignKeys; // optional + private List uniqueConstraints; // optional + private List notNullConstraints; // optional + private List defaultConstraints; // optional + private List checkConstraints; // 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 { + TABLE((short)1, "table"), + ENV_CONTEXT((short)2, "envContext"), + PRIMARY_KEYS((short)3, "primaryKeys"), + FOREIGN_KEYS((short)4, "foreignKeys"), + UNIQUE_CONSTRAINTS((short)5, "uniqueConstraints"), + NOT_NULL_CONSTRAINTS((short)6, "notNullConstraints"), + DEFAULT_CONSTRAINTS((short)7, "defaultConstraints"), + CHECK_CONSTRAINTS((short)8, "checkConstraints"), + PROCESSOR_CAPABILITIES((short)9, "processorCapabilities"), + PROCESSOR_IDENTIFIER((short)10, "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: // TABLE + return TABLE; + case 2: // ENV_CONTEXT + return ENV_CONTEXT; + case 3: // PRIMARY_KEYS + return PRIMARY_KEYS; + case 4: // FOREIGN_KEYS + return FOREIGN_KEYS; + case 5: // UNIQUE_CONSTRAINTS + return UNIQUE_CONSTRAINTS; + case 6: // NOT_NULL_CONSTRAINTS + return NOT_NULL_CONSTRAINTS; + case 7: // DEFAULT_CONSTRAINTS + return DEFAULT_CONSTRAINTS; + case 8: // CHECK_CONSTRAINTS + return CHECK_CONSTRAINTS; + case 9: // PROCESSOR_CAPABILITIES + return PROCESSOR_CAPABILITIES; + case 10: // 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.ENV_CONTEXT,_Fields.PRIMARY_KEYS,_Fields.FOREIGN_KEYS,_Fields.UNIQUE_CONSTRAINTS,_Fields.NOT_NULL_CONSTRAINTS,_Fields.DEFAULT_CONSTRAINTS,_Fields.CHECK_CONSTRAINTS,_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.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Table.class))); + tmpMap.put(_Fields.ENV_CONTEXT, new org.apache.thrift.meta_data.FieldMetaData("envContext", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EnvironmentContext.class))); + tmpMap.put(_Fields.PRIMARY_KEYS, new org.apache.thrift.meta_data.FieldMetaData("primaryKeys", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SQLPrimaryKey.class)))); + tmpMap.put(_Fields.FOREIGN_KEYS, new org.apache.thrift.meta_data.FieldMetaData("foreignKeys", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SQLForeignKey.class)))); + tmpMap.put(_Fields.UNIQUE_CONSTRAINTS, new org.apache.thrift.meta_data.FieldMetaData("uniqueConstraints", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SQLUniqueConstraint.class)))); + tmpMap.put(_Fields.NOT_NULL_CONSTRAINTS, new org.apache.thrift.meta_data.FieldMetaData("notNullConstraints", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SQLNotNullConstraint.class)))); + tmpMap.put(_Fields.DEFAULT_CONSTRAINTS, new org.apache.thrift.meta_data.FieldMetaData("defaultConstraints", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SQLDefaultConstraint.class)))); + tmpMap.put(_Fields.CHECK_CONSTRAINTS, new org.apache.thrift.meta_data.FieldMetaData("checkConstraints", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SQLCheckConstraint.class)))); + 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(CreateTableRequest.class, metaDataMap); + } + + public CreateTableRequest() { + } + + public CreateTableRequest( + Table table) + { + this(); + this.table = table; + } + + /** + * Performs a deep copy on other. + */ + public CreateTableRequest(CreateTableRequest other) { + if (other.isSetTable()) { + this.table = new Table(other.table); + } + if (other.isSetEnvContext()) { + this.envContext = new EnvironmentContext(other.envContext); + } + if (other.isSetPrimaryKeys()) { + List __this__primaryKeys = new ArrayList(other.primaryKeys.size()); + for (SQLPrimaryKey other_element : other.primaryKeys) { + __this__primaryKeys.add(new SQLPrimaryKey(other_element)); + } + this.primaryKeys = __this__primaryKeys; + } + if (other.isSetForeignKeys()) { + List __this__foreignKeys = new ArrayList(other.foreignKeys.size()); + for (SQLForeignKey other_element : other.foreignKeys) { + __this__foreignKeys.add(new SQLForeignKey(other_element)); + } + this.foreignKeys = __this__foreignKeys; + } + if (other.isSetUniqueConstraints()) { + List __this__uniqueConstraints = new ArrayList(other.uniqueConstraints.size()); + for (SQLUniqueConstraint other_element : other.uniqueConstraints) { + __this__uniqueConstraints.add(new SQLUniqueConstraint(other_element)); + } + this.uniqueConstraints = __this__uniqueConstraints; + } + if (other.isSetNotNullConstraints()) { + List __this__notNullConstraints = new ArrayList(other.notNullConstraints.size()); + for (SQLNotNullConstraint other_element : other.notNullConstraints) { + __this__notNullConstraints.add(new SQLNotNullConstraint(other_element)); + } + this.notNullConstraints = __this__notNullConstraints; + } + if (other.isSetDefaultConstraints()) { + List __this__defaultConstraints = new ArrayList(other.defaultConstraints.size()); + for (SQLDefaultConstraint other_element : other.defaultConstraints) { + __this__defaultConstraints.add(new SQLDefaultConstraint(other_element)); + } + this.defaultConstraints = __this__defaultConstraints; + } + if (other.isSetCheckConstraints()) { + List __this__checkConstraints = new ArrayList(other.checkConstraints.size()); + for (SQLCheckConstraint other_element : other.checkConstraints) { + __this__checkConstraints.add(new SQLCheckConstraint(other_element)); + } + this.checkConstraints = __this__checkConstraints; + } + if (other.isSetProcessorCapabilities()) { + List __this__processorCapabilities = new ArrayList(other.processorCapabilities); + this.processorCapabilities = __this__processorCapabilities; + } + if (other.isSetProcessorIdentifier()) { + this.processorIdentifier = other.processorIdentifier; + } + } + + public CreateTableRequest deepCopy() { + return new CreateTableRequest(this); + } + + @Override + public void clear() { + this.table = null; + this.envContext = null; + this.primaryKeys = null; + this.foreignKeys = null; + this.uniqueConstraints = null; + this.notNullConstraints = null; + this.defaultConstraints = null; + this.checkConstraints = null; + this.processorCapabilities = null; + this.processorIdentifier = null; + } + + public Table getTable() { + return this.table; + } + + public void setTable(Table table) { + this.table = table; + } + + public void unsetTable() { + this.table = null; + } + + /** Returns true if field table is set (has been assigned a value) and false otherwise */ + public boolean isSetTable() { + return this.table != null; + } + + public void setTableIsSet(boolean value) { + if (!value) { + this.table = null; + } + } + + public EnvironmentContext getEnvContext() { + return this.envContext; + } + + public void setEnvContext(EnvironmentContext envContext) { + this.envContext = envContext; + } + + public void unsetEnvContext() { + this.envContext = null; + } + + /** Returns true if field envContext is set (has been assigned a value) and false otherwise */ + public boolean isSetEnvContext() { + return this.envContext != null; + } + + public void setEnvContextIsSet(boolean value) { + if (!value) { + this.envContext = null; + } + } + + public int getPrimaryKeysSize() { + return (this.primaryKeys == null) ? 0 : this.primaryKeys.size(); + } + + public java.util.Iterator getPrimaryKeysIterator() { + return (this.primaryKeys == null) ? null : this.primaryKeys.iterator(); + } + + public void addToPrimaryKeys(SQLPrimaryKey elem) { + if (this.primaryKeys == null) { + this.primaryKeys = new ArrayList(); + } + this.primaryKeys.add(elem); + } + + public List getPrimaryKeys() { + return this.primaryKeys; + } + + public void setPrimaryKeys(List primaryKeys) { + this.primaryKeys = primaryKeys; + } + + public void unsetPrimaryKeys() { + this.primaryKeys = null; + } + + /** Returns true if field primaryKeys is set (has been assigned a value) and false otherwise */ + public boolean isSetPrimaryKeys() { + return this.primaryKeys != null; + } + + public void setPrimaryKeysIsSet(boolean value) { + if (!value) { + this.primaryKeys = null; + } + } + + public int getForeignKeysSize() { + return (this.foreignKeys == null) ? 0 : this.foreignKeys.size(); + } + + public java.util.Iterator getForeignKeysIterator() { + return (this.foreignKeys == null) ? null : this.foreignKeys.iterator(); + } + + public void addToForeignKeys(SQLForeignKey elem) { + if (this.foreignKeys == null) { + this.foreignKeys = new ArrayList(); + } + this.foreignKeys.add(elem); + } + + public List getForeignKeys() { + return this.foreignKeys; + } + + public void setForeignKeys(List foreignKeys) { + this.foreignKeys = foreignKeys; + } + + public void unsetForeignKeys() { + this.foreignKeys = null; + } + + /** Returns true if field foreignKeys is set (has been assigned a value) and false otherwise */ + public boolean isSetForeignKeys() { + return this.foreignKeys != null; + } + + public void setForeignKeysIsSet(boolean value) { + if (!value) { + this.foreignKeys = null; + } + } + + public int getUniqueConstraintsSize() { + return (this.uniqueConstraints == null) ? 0 : this.uniqueConstraints.size(); + } + + public java.util.Iterator getUniqueConstraintsIterator() { + return (this.uniqueConstraints == null) ? null : this.uniqueConstraints.iterator(); + } + + public void addToUniqueConstraints(SQLUniqueConstraint elem) { + if (this.uniqueConstraints == null) { + this.uniqueConstraints = new ArrayList(); + } + this.uniqueConstraints.add(elem); + } + + public List getUniqueConstraints() { + return this.uniqueConstraints; + } + + public void setUniqueConstraints(List uniqueConstraints) { + this.uniqueConstraints = uniqueConstraints; + } + + public void unsetUniqueConstraints() { + this.uniqueConstraints = null; + } + + /** Returns true if field uniqueConstraints is set (has been assigned a value) and false otherwise */ + public boolean isSetUniqueConstraints() { + return this.uniqueConstraints != null; + } + + public void setUniqueConstraintsIsSet(boolean value) { + if (!value) { + this.uniqueConstraints = null; + } + } + + public int getNotNullConstraintsSize() { + return (this.notNullConstraints == null) ? 0 : this.notNullConstraints.size(); + } + + public java.util.Iterator getNotNullConstraintsIterator() { + return (this.notNullConstraints == null) ? null : this.notNullConstraints.iterator(); + } + + public void addToNotNullConstraints(SQLNotNullConstraint elem) { + if (this.notNullConstraints == null) { + this.notNullConstraints = new ArrayList(); + } + this.notNullConstraints.add(elem); + } + + public List getNotNullConstraints() { + return this.notNullConstraints; + } + + public void setNotNullConstraints(List notNullConstraints) { + this.notNullConstraints = notNullConstraints; + } + + public void unsetNotNullConstraints() { + this.notNullConstraints = null; + } + + /** Returns true if field notNullConstraints is set (has been assigned a value) and false otherwise */ + public boolean isSetNotNullConstraints() { + return this.notNullConstraints != null; + } + + public void setNotNullConstraintsIsSet(boolean value) { + if (!value) { + this.notNullConstraints = null; + } + } + + public int getDefaultConstraintsSize() { + return (this.defaultConstraints == null) ? 0 : this.defaultConstraints.size(); + } + + public java.util.Iterator getDefaultConstraintsIterator() { + return (this.defaultConstraints == null) ? null : this.defaultConstraints.iterator(); + } + + public void addToDefaultConstraints(SQLDefaultConstraint elem) { + if (this.defaultConstraints == null) { + this.defaultConstraints = new ArrayList(); + } + this.defaultConstraints.add(elem); + } + + public List getDefaultConstraints() { + return this.defaultConstraints; + } + + public void setDefaultConstraints(List defaultConstraints) { + this.defaultConstraints = defaultConstraints; + } + + public void unsetDefaultConstraints() { + this.defaultConstraints = null; + } + + /** Returns true if field defaultConstraints is set (has been assigned a value) and false otherwise */ + public boolean isSetDefaultConstraints() { + return this.defaultConstraints != null; + } + + public void setDefaultConstraintsIsSet(boolean value) { + if (!value) { + this.defaultConstraints = null; + } + } + + public int getCheckConstraintsSize() { + return (this.checkConstraints == null) ? 0 : this.checkConstraints.size(); + } + + public java.util.Iterator getCheckConstraintsIterator() { + return (this.checkConstraints == null) ? null : this.checkConstraints.iterator(); + } + + public void addToCheckConstraints(SQLCheckConstraint elem) { + if (this.checkConstraints == null) { + this.checkConstraints = new ArrayList(); + } + this.checkConstraints.add(elem); + } + + public List getCheckConstraints() { + return this.checkConstraints; + } + + public void setCheckConstraints(List checkConstraints) { + this.checkConstraints = checkConstraints; + } + + public void unsetCheckConstraints() { + this.checkConstraints = null; + } + + /** Returns true if field checkConstraints is set (has been assigned a value) and false otherwise */ + public boolean isSetCheckConstraints() { + return this.checkConstraints != null; + } + + public void setCheckConstraintsIsSet(boolean value) { + if (!value) { + this.checkConstraints = 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 TABLE: + if (value == null) { + unsetTable(); + } else { + setTable((Table)value); + } + break; + + case ENV_CONTEXT: + if (value == null) { + unsetEnvContext(); + } else { + setEnvContext((EnvironmentContext)value); + } + break; + + case PRIMARY_KEYS: + if (value == null) { + unsetPrimaryKeys(); + } else { + setPrimaryKeys((List)value); + } + break; + + case FOREIGN_KEYS: + if (value == null) { + unsetForeignKeys(); + } else { + setForeignKeys((List)value); + } + break; + + case UNIQUE_CONSTRAINTS: + if (value == null) { + unsetUniqueConstraints(); + } else { + setUniqueConstraints((List)value); + } + break; + + case NOT_NULL_CONSTRAINTS: + if (value == null) { + unsetNotNullConstraints(); + } else { + setNotNullConstraints((List)value); + } + break; + + case DEFAULT_CONSTRAINTS: + if (value == null) { + unsetDefaultConstraints(); + } else { + setDefaultConstraints((List)value); + } + break; + + case CHECK_CONSTRAINTS: + if (value == null) { + unsetCheckConstraints(); + } else { + setCheckConstraints((List)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 TABLE: + return getTable(); + + case ENV_CONTEXT: + return getEnvContext(); + + case PRIMARY_KEYS: + return getPrimaryKeys(); + + case FOREIGN_KEYS: + return getForeignKeys(); + + case UNIQUE_CONSTRAINTS: + return getUniqueConstraints(); + + case NOT_NULL_CONSTRAINTS: + return getNotNullConstraints(); + + case DEFAULT_CONSTRAINTS: + return getDefaultConstraints(); + + case CHECK_CONSTRAINTS: + return getCheckConstraints(); + + 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 TABLE: + return isSetTable(); + case ENV_CONTEXT: + return isSetEnvContext(); + case PRIMARY_KEYS: + return isSetPrimaryKeys(); + case FOREIGN_KEYS: + return isSetForeignKeys(); + case UNIQUE_CONSTRAINTS: + return isSetUniqueConstraints(); + case NOT_NULL_CONSTRAINTS: + return isSetNotNullConstraints(); + case DEFAULT_CONSTRAINTS: + return isSetDefaultConstraints(); + case CHECK_CONSTRAINTS: + return isSetCheckConstraints(); + 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 CreateTableRequest) + return this.equals((CreateTableRequest)that); + return false; + } + + public boolean equals(CreateTableRequest that) { + if (that == null) + return false; + + boolean this_present_table = true && this.isSetTable(); + boolean that_present_table = true && that.isSetTable(); + if (this_present_table || that_present_table) { + if (!(this_present_table && that_present_table)) + return false; + if (!this.table.equals(that.table)) + return false; + } + + boolean this_present_envContext = true && this.isSetEnvContext(); + boolean that_present_envContext = true && that.isSetEnvContext(); + if (this_present_envContext || that_present_envContext) { + if (!(this_present_envContext && that_present_envContext)) + return false; + if (!this.envContext.equals(that.envContext)) + return false; + } + + boolean this_present_primaryKeys = true && this.isSetPrimaryKeys(); + boolean that_present_primaryKeys = true && that.isSetPrimaryKeys(); + if (this_present_primaryKeys || that_present_primaryKeys) { + if (!(this_present_primaryKeys && that_present_primaryKeys)) + return false; + if (!this.primaryKeys.equals(that.primaryKeys)) + return false; + } + + boolean this_present_foreignKeys = true && this.isSetForeignKeys(); + boolean that_present_foreignKeys = true && that.isSetForeignKeys(); + if (this_present_foreignKeys || that_present_foreignKeys) { + if (!(this_present_foreignKeys && that_present_foreignKeys)) + return false; + if (!this.foreignKeys.equals(that.foreignKeys)) + return false; + } + + boolean this_present_uniqueConstraints = true && this.isSetUniqueConstraints(); + boolean that_present_uniqueConstraints = true && that.isSetUniqueConstraints(); + if (this_present_uniqueConstraints || that_present_uniqueConstraints) { + if (!(this_present_uniqueConstraints && that_present_uniqueConstraints)) + return false; + if (!this.uniqueConstraints.equals(that.uniqueConstraints)) + return false; + } + + boolean this_present_notNullConstraints = true && this.isSetNotNullConstraints(); + boolean that_present_notNullConstraints = true && that.isSetNotNullConstraints(); + if (this_present_notNullConstraints || that_present_notNullConstraints) { + if (!(this_present_notNullConstraints && that_present_notNullConstraints)) + return false; + if (!this.notNullConstraints.equals(that.notNullConstraints)) + return false; + } + + boolean this_present_defaultConstraints = true && this.isSetDefaultConstraints(); + boolean that_present_defaultConstraints = true && that.isSetDefaultConstraints(); + if (this_present_defaultConstraints || that_present_defaultConstraints) { + if (!(this_present_defaultConstraints && that_present_defaultConstraints)) + return false; + if (!this.defaultConstraints.equals(that.defaultConstraints)) + return false; + } + + boolean this_present_checkConstraints = true && this.isSetCheckConstraints(); + boolean that_present_checkConstraints = true && that.isSetCheckConstraints(); + if (this_present_checkConstraints || that_present_checkConstraints) { + if (!(this_present_checkConstraints && that_present_checkConstraints)) + return false; + if (!this.checkConstraints.equals(that.checkConstraints)) + 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_table = true && (isSetTable()); + list.add(present_table); + if (present_table) + list.add(table); + + boolean present_envContext = true && (isSetEnvContext()); + list.add(present_envContext); + if (present_envContext) + list.add(envContext); + + boolean present_primaryKeys = true && (isSetPrimaryKeys()); + list.add(present_primaryKeys); + if (present_primaryKeys) + list.add(primaryKeys); + + boolean present_foreignKeys = true && (isSetForeignKeys()); + list.add(present_foreignKeys); + if (present_foreignKeys) + list.add(foreignKeys); + + boolean present_uniqueConstraints = true && (isSetUniqueConstraints()); + list.add(present_uniqueConstraints); + if (present_uniqueConstraints) + list.add(uniqueConstraints); + + boolean present_notNullConstraints = true && (isSetNotNullConstraints()); + list.add(present_notNullConstraints); + if (present_notNullConstraints) + list.add(notNullConstraints); + + boolean present_defaultConstraints = true && (isSetDefaultConstraints()); + list.add(present_defaultConstraints); + if (present_defaultConstraints) + list.add(defaultConstraints); + + boolean present_checkConstraints = true && (isSetCheckConstraints()); + list.add(present_checkConstraints); + if (present_checkConstraints) + list.add(checkConstraints); + + 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(CreateTableRequest other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTable()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, other.table); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetEnvContext()).compareTo(other.isSetEnvContext()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetEnvContext()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.envContext, other.envContext); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPrimaryKeys()).compareTo(other.isSetPrimaryKeys()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPrimaryKeys()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.primaryKeys, other.primaryKeys); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetForeignKeys()).compareTo(other.isSetForeignKeys()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetForeignKeys()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.foreignKeys, other.foreignKeys); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetUniqueConstraints()).compareTo(other.isSetUniqueConstraints()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUniqueConstraints()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.uniqueConstraints, other.uniqueConstraints); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetNotNullConstraints()).compareTo(other.isSetNotNullConstraints()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetNotNullConstraints()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.notNullConstraints, other.notNullConstraints); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetDefaultConstraints()).compareTo(other.isSetDefaultConstraints()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDefaultConstraints()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.defaultConstraints, other.defaultConstraints); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetCheckConstraints()).compareTo(other.isSetCheckConstraints()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetCheckConstraints()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.checkConstraints, other.checkConstraints); + 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("CreateTableRequest("); + boolean first = true; + + sb.append("table:"); + if (this.table == null) { + sb.append("null"); + } else { + sb.append(this.table); + } + first = false; + if (isSetEnvContext()) { + if (!first) sb.append(", "); + sb.append("envContext:"); + if (this.envContext == null) { + sb.append("null"); + } else { + sb.append(this.envContext); + } + first = false; + } + if (isSetPrimaryKeys()) { + if (!first) sb.append(", "); + sb.append("primaryKeys:"); + if (this.primaryKeys == null) { + sb.append("null"); + } else { + sb.append(this.primaryKeys); + } + first = false; + } + if (isSetForeignKeys()) { + if (!first) sb.append(", "); + sb.append("foreignKeys:"); + if (this.foreignKeys == null) { + sb.append("null"); + } else { + sb.append(this.foreignKeys); + } + first = false; + } + if (isSetUniqueConstraints()) { + if (!first) sb.append(", "); + sb.append("uniqueConstraints:"); + if (this.uniqueConstraints == null) { + sb.append("null"); + } else { + sb.append(this.uniqueConstraints); + } + first = false; + } + if (isSetNotNullConstraints()) { + if (!first) sb.append(", "); + sb.append("notNullConstraints:"); + if (this.notNullConstraints == null) { + sb.append("null"); + } else { + sb.append(this.notNullConstraints); + } + first = false; + } + if (isSetDefaultConstraints()) { + if (!first) sb.append(", "); + sb.append("defaultConstraints:"); + if (this.defaultConstraints == null) { + sb.append("null"); + } else { + sb.append(this.defaultConstraints); + } + first = false; + } + if (isSetCheckConstraints()) { + if (!first) sb.append(", "); + sb.append("checkConstraints:"); + if (this.checkConstraints == null) { + sb.append("null"); + } else { + sb.append(this.checkConstraints); + } + 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 (!isSetTable()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'table' is unset! Struct:" + toString()); + } + + // check for sub-struct validity + if (table != null) { + table.validate(); + } + if (envContext != null) { + envContext.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 CreateTableRequestStandardSchemeFactory implements SchemeFactory { + public CreateTableRequestStandardScheme getScheme() { + return new CreateTableRequestStandardScheme(); + } + } + + private static class CreateTableRequestStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, CreateTableRequest 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: // TABLE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.table = new Table(); + struct.table.read(iprot); + struct.setTableIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // ENV_CONTEXT + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.envContext = new EnvironmentContext(); + struct.envContext.read(iprot); + struct.setEnvContextIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + 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) + { + _elem1049 = new SQLPrimaryKey(); + _elem1049.read(iprot); + struct.primaryKeys.add(_elem1049); + } + iprot.readListEnd(); + } + struct.setPrimaryKeysIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + 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) + { + _elem1052 = new SQLForeignKey(); + _elem1052.read(iprot); + struct.foreignKeys.add(_elem1052); + } + iprot.readListEnd(); + } + struct.setForeignKeysIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + 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) + { + _elem1055 = new SQLUniqueConstraint(); + _elem1055.read(iprot); + struct.uniqueConstraints.add(_elem1055); + } + iprot.readListEnd(); + } + struct.setUniqueConstraintsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + 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) + { + _elem1058 = new SQLNotNullConstraint(); + _elem1058.read(iprot); + struct.notNullConstraints.add(_elem1058); + } + iprot.readListEnd(); + } + struct.setNotNullConstraintsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + 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) + { + _elem1061 = new SQLDefaultConstraint(); + _elem1061.read(iprot); + struct.defaultConstraints.add(_elem1061); + } + iprot.readListEnd(); + } + struct.setDefaultConstraintsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + 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) + { + _elem1064 = new SQLCheckConstraint(); + _elem1064.read(iprot); + struct.checkConstraints.add(_elem1064); + } + iprot.readListEnd(); + } + struct.setCheckConstraintsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + 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) + { + _elem1067 = iprot.readString(); + struct.processorCapabilities.add(_elem1067); + } + iprot.readListEnd(); + } + struct.setProcessorCapabilitiesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 10: // 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, CreateTableRequest struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.table != null) { + oprot.writeFieldBegin(TABLE_FIELD_DESC); + struct.table.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.envContext != null) { + if (struct.isSetEnvContext()) { + oprot.writeFieldBegin(ENV_CONTEXT_FIELD_DESC); + struct.envContext.write(oprot); + oprot.writeFieldEnd(); + } + } + if (struct.primaryKeys != null) { + if (struct.isSetPrimaryKeys()) { + 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) + { + _iter1069.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + } + if (struct.foreignKeys != null) { + if (struct.isSetForeignKeys()) { + 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) + { + _iter1070.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + } + if (struct.uniqueConstraints != null) { + if (struct.isSetUniqueConstraints()) { + 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) + { + _iter1071.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + } + if (struct.notNullConstraints != null) { + if (struct.isSetNotNullConstraints()) { + 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) + { + _iter1072.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + } + if (struct.defaultConstraints != null) { + if (struct.isSetDefaultConstraints()) { + 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) + { + _iter1073.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + } + if (struct.checkConstraints != null) { + if (struct.isSetCheckConstraints()) { + 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) + { + _iter1074.write(oprot); + } + oprot.writeListEnd(); + } + 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 _iter1075 : struct.processorCapabilities) + { + oprot.writeString(_iter1075); + } + 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 CreateTableRequestTupleSchemeFactory implements SchemeFactory { + public CreateTableRequestTupleScheme getScheme() { + return new CreateTableRequestTupleScheme(); + } + } + + private static class CreateTableRequestTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, CreateTableRequest struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + struct.table.write(oprot); + BitSet optionals = new BitSet(); + if (struct.isSetEnvContext()) { + optionals.set(0); + } + if (struct.isSetPrimaryKeys()) { + optionals.set(1); + } + if (struct.isSetForeignKeys()) { + optionals.set(2); + } + if (struct.isSetUniqueConstraints()) { + optionals.set(3); + } + if (struct.isSetNotNullConstraints()) { + optionals.set(4); + } + if (struct.isSetDefaultConstraints()) { + optionals.set(5); + } + if (struct.isSetCheckConstraints()) { + optionals.set(6); + } + if (struct.isSetProcessorCapabilities()) { + optionals.set(7); + } + if (struct.isSetProcessorIdentifier()) { + optionals.set(8); + } + oprot.writeBitSet(optionals, 9); + if (struct.isSetEnvContext()) { + struct.envContext.write(oprot); + } + if (struct.isSetPrimaryKeys()) { + { + oprot.writeI32(struct.primaryKeys.size()); + for (SQLPrimaryKey _iter1076 : struct.primaryKeys) + { + _iter1076.write(oprot); + } + } + } + if (struct.isSetForeignKeys()) { + { + oprot.writeI32(struct.foreignKeys.size()); + for (SQLForeignKey _iter1077 : struct.foreignKeys) + { + _iter1077.write(oprot); + } + } + } + if (struct.isSetUniqueConstraints()) { + { + oprot.writeI32(struct.uniqueConstraints.size()); + for (SQLUniqueConstraint _iter1078 : struct.uniqueConstraints) + { + _iter1078.write(oprot); + } + } + } + if (struct.isSetNotNullConstraints()) { + { + oprot.writeI32(struct.notNullConstraints.size()); + for (SQLNotNullConstraint _iter1079 : struct.notNullConstraints) + { + _iter1079.write(oprot); + } + } + } + if (struct.isSetDefaultConstraints()) { + { + oprot.writeI32(struct.defaultConstraints.size()); + for (SQLDefaultConstraint _iter1080 : struct.defaultConstraints) + { + _iter1080.write(oprot); + } + } + } + if (struct.isSetCheckConstraints()) { + { + oprot.writeI32(struct.checkConstraints.size()); + for (SQLCheckConstraint _iter1081 : struct.checkConstraints) + { + _iter1081.write(oprot); + } + } + } + if (struct.isSetProcessorCapabilities()) { + { + oprot.writeI32(struct.processorCapabilities.size()); + for (String _iter1082 : struct.processorCapabilities) + { + oprot.writeString(_iter1082); + } + } + } + if (struct.isSetProcessorIdentifier()) { + oprot.writeString(struct.processorIdentifier); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, CreateTableRequest struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + struct.table = new Table(); + struct.table.read(iprot); + struct.setTableIsSet(true); + BitSet incoming = iprot.readBitSet(9); + if (incoming.get(0)) { + struct.envContext = new EnvironmentContext(); + struct.envContext.read(iprot); + struct.setEnvContextIsSet(true); + } + 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) + { + _elem1084 = new SQLPrimaryKey(); + _elem1084.read(iprot); + struct.primaryKeys.add(_elem1084); + } + } + 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) + { + _elem1087 = new SQLForeignKey(); + _elem1087.read(iprot); + struct.foreignKeys.add(_elem1087); + } + } + 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) + { + _elem1090 = new SQLUniqueConstraint(); + _elem1090.read(iprot); + struct.uniqueConstraints.add(_elem1090); + } + } + 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) + { + _elem1093 = new SQLNotNullConstraint(); + _elem1093.read(iprot); + struct.notNullConstraints.add(_elem1093); + } + } + 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) + { + _elem1096 = new SQLDefaultConstraint(); + _elem1096.read(iprot); + struct.defaultConstraints.add(_elem1096); + } + } + 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) + { + _elem1099 = new SQLCheckConstraint(); + _elem1099.read(iprot); + struct.checkConstraints.add(_elem1099); + } + } + 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) + { + _elem1102 = iprot.readString(); + struct.processorCapabilities.add(_elem1102); + } + } + struct.setProcessorCapabilitiesIsSet(true); + } + if (incoming.get(8)) { + struct.processorIdentifier = iprot.readString(); + struct.setProcessorIdentifierIsSet(true); + } + } + } + +} + diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DefaultConstraintsResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DefaultConstraintsResponse.java index 892423463b..b3c8d58566 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DefaultConstraintsResponse.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DefaultConstraintsResponse.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, DefaultConstraintsR case 1: // DEFAULT_CONSTRAINTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list368 = iprot.readListBegin(); - struct.defaultConstraints = new ArrayList(_list368.size); - SQLDefaultConstraint _elem369; - for (int _i370 = 0; _i370 < _list368.size; ++_i370) + org.apache.thrift.protocol.TList _list384 = iprot.readListBegin(); + struct.defaultConstraints = new ArrayList(_list384.size); + SQLDefaultConstraint _elem385; + for (int _i386 = 0; _i386 < _list384.size; ++_i386) { - _elem369 = new SQLDefaultConstraint(); - _elem369.read(iprot); - struct.defaultConstraints.add(_elem369); + _elem385 = new SQLDefaultConstraint(); + _elem385.read(iprot); + struct.defaultConstraints.add(_elem385); } iprot.readListEnd(); } @@ -387,9 +387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, DefaultConstraints 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 _iter371 : struct.defaultConstraints) + for (SQLDefaultConstraint _iter387 : struct.defaultConstraints) { - _iter371.write(oprot); + _iter387.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, DefaultConstraintsR TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.defaultConstraints.size()); - for (SQLDefaultConstraint _iter372 : struct.defaultConstraints) + for (SQLDefaultConstraint _iter388 : struct.defaultConstraints) { - _iter372.write(oprot); + _iter388.write(oprot); } } } @@ -425,14 +425,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, DefaultConstraintsR public void read(org.apache.thrift.protocol.TProtocol prot, DefaultConstraintsResponse struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list373 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.defaultConstraints = new ArrayList(_list373.size); - SQLDefaultConstraint _elem374; - for (int _i375 = 0; _i375 < _list373.size; ++_i375) + org.apache.thrift.protocol.TList _list389 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.defaultConstraints = new ArrayList(_list389.size); + SQLDefaultConstraint _elem390; + for (int _i391 = 0; _i391 < _list389.size; ++_i391) { - _elem374 = new SQLDefaultConstraint(); - _elem374.read(iprot); - struct.defaultConstraints.add(_elem374); + _elem390 = new SQLDefaultConstraint(); + _elem390.read(iprot); + struct.defaultConstraints.add(_elem390); } } struct.setDefaultConstraintsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsResult.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsResult.java index 65d8d4e8dd..3249ef06fa 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsResult.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsResult.java @@ -346,14 +346,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, DropPartitionsResul case 1: // PARTITIONS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list506 = iprot.readListBegin(); - struct.partitions = new ArrayList(_list506.size); - Partition _elem507; - for (int _i508 = 0; _i508 < _list506.size; ++_i508) + org.apache.thrift.protocol.TList _list522 = iprot.readListBegin(); + struct.partitions = new ArrayList(_list522.size); + Partition _elem523; + for (int _i524 = 0; _i524 < _list522.size; ++_i524) { - _elem507 = new Partition(); - _elem507.read(iprot); - struct.partitions.add(_elem507); + _elem523 = new Partition(); + _elem523.read(iprot); + struct.partitions.add(_elem523); } iprot.readListEnd(); } @@ -380,9 +380,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, DropPartitionsResu oprot.writeFieldBegin(PARTITIONS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitions.size())); - for (Partition _iter509 : struct.partitions) + for (Partition _iter525 : struct.partitions) { - _iter509.write(oprot); + _iter525.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, DropPartitionsResul if (struct.isSetPartitions()) { { oprot.writeI32(struct.partitions.size()); - for (Partition _iter510 : struct.partitions) + for (Partition _iter526 : struct.partitions) { - _iter510.write(oprot); + _iter526.write(oprot); } } } @@ -428,14 +428,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, DropPartitionsResult BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list511 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitions = new ArrayList(_list511.size); - Partition _elem512; - for (int _i513 = 0; _i513 < _list511.size; ++_i513) + org.apache.thrift.protocol.TList _list527 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitions = new ArrayList(_list527.size); + Partition _elem528; + for (int _i529 = 0; _i529 < _list527.size; ++_i529) { - _elem512 = new Partition(); - _elem512.read(iprot); - struct.partitions.add(_elem512); + _elem528 = new Partition(); + _elem528.read(iprot); + struct.partitions.add(_elem528); } } struct.setPartitionsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/EnvironmentContext.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/EnvironmentContext.java index 6bcebaf170..3dd1519509 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/EnvironmentContext.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/EnvironmentContext.java @@ -344,15 +344,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, EnvironmentContext case 1: // PROPERTIES if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map326 = iprot.readMapBegin(); - struct.properties = new HashMap(2*_map326.size); - String _key327; - String _val328; - for (int _i329 = 0; _i329 < _map326.size; ++_i329) + org.apache.thrift.protocol.TMap _map342 = iprot.readMapBegin(); + struct.properties = new HashMap(2*_map342.size); + String _key343; + String _val344; + for (int _i345 = 0; _i345 < _map342.size; ++_i345) { - _key327 = iprot.readString(); - _val328 = iprot.readString(); - struct.properties.put(_key327, _val328); + _key343 = iprot.readString(); + _val344 = iprot.readString(); + struct.properties.put(_key343, _val344); } iprot.readMapEnd(); } @@ -378,10 +378,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, EnvironmentContext oprot.writeFieldBegin(PROPERTIES_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.properties.size())); - for (Map.Entry _iter330 : struct.properties.entrySet()) + for (Map.Entry _iter346 : struct.properties.entrySet()) { - oprot.writeString(_iter330.getKey()); - oprot.writeString(_iter330.getValue()); + oprot.writeString(_iter346.getKey()); + oprot.writeString(_iter346.getValue()); } oprot.writeMapEnd(); } @@ -412,10 +412,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, EnvironmentContext if (struct.isSetProperties()) { { oprot.writeI32(struct.properties.size()); - for (Map.Entry _iter331 : struct.properties.entrySet()) + for (Map.Entry _iter347 : struct.properties.entrySet()) { - oprot.writeString(_iter331.getKey()); - oprot.writeString(_iter331.getValue()); + oprot.writeString(_iter347.getKey()); + oprot.writeString(_iter347.getValue()); } } } @@ -427,15 +427,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, EnvironmentContext s BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map332 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.properties = new HashMap(2*_map332.size); - String _key333; - String _val334; - for (int _i335 = 0; _i335 < _map332.size; ++_i335) + org.apache.thrift.protocol.TMap _map348 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.properties = new HashMap(2*_map348.size); + String _key349; + String _val350; + for (int _i351 = 0; _i351 < _map348.size; ++_i351) { - _key333 = iprot.readString(); - _val334 = iprot.readString(); - struct.properties.put(_key333, _val334); + _key349 = iprot.readString(); + _val350 = iprot.readString(); + struct.properties.put(_key349, _val350); } } struct.setPropertiesIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ExtendedTableInfo.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ExtendedTableInfo.java index f75a180800..c37b0d311a 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ExtendedTableInfo.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ExtendedTableInfo.java @@ -40,7 +40,8 @@ private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tblName", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField ACCESS_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("accessType", org.apache.thrift.protocol.TType.I32, (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 REQUIRED_READ_CAPABILITIES_FIELD_DESC = new org.apache.thrift.protocol.TField("requiredReadCapabilities", org.apache.thrift.protocol.TType.LIST, (short)3); + private static final org.apache.thrift.protocol.TField REQUIRED_WRITE_CAPABILITIES_FIELD_DESC = new org.apache.thrift.protocol.TField("requiredWriteCapabilities", org.apache.thrift.protocol.TType.LIST, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -50,13 +51,15 @@ private String tblName; // required private int accessType; // optional - private List processorCapabilities; // optional + private List requiredReadCapabilities; // optional + private List requiredWriteCapabilities; // 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 { TBL_NAME((short)1, "tblName"), ACCESS_TYPE((short)2, "accessType"), - PROCESSOR_CAPABILITIES((short)3, "processorCapabilities"); + REQUIRED_READ_CAPABILITIES((short)3, "requiredReadCapabilities"), + REQUIRED_WRITE_CAPABILITIES((short)4, "requiredWriteCapabilities"); private static final Map byName = new HashMap(); @@ -75,8 +78,10 @@ public static _Fields findByThriftId(int fieldId) { return TBL_NAME; case 2: // ACCESS_TYPE return ACCESS_TYPE; - case 3: // PROCESSOR_CAPABILITIES - return PROCESSOR_CAPABILITIES; + case 3: // REQUIRED_READ_CAPABILITIES + return REQUIRED_READ_CAPABILITIES; + case 4: // REQUIRED_WRITE_CAPABILITIES + return REQUIRED_WRITE_CAPABILITIES; default: return null; } @@ -119,7 +124,7 @@ public String getFieldName() { // isset id assignments private static final int __ACCESSTYPE_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.ACCESS_TYPE,_Fields.PROCESSOR_CAPABILITIES}; + private static final _Fields optionals[] = {_Fields.ACCESS_TYPE,_Fields.REQUIRED_READ_CAPABILITIES,_Fields.REQUIRED_WRITE_CAPABILITIES}; 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); @@ -127,7 +132,10 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.ACCESS_TYPE, new org.apache.thrift.meta_data.FieldMetaData("accessType", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); - tmpMap.put(_Fields.PROCESSOR_CAPABILITIES, new org.apache.thrift.meta_data.FieldMetaData("processorCapabilities", org.apache.thrift.TFieldRequirementType.OPTIONAL, + tmpMap.put(_Fields.REQUIRED_READ_CAPABILITIES, new org.apache.thrift.meta_data.FieldMetaData("requiredReadCapabilities", 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.REQUIRED_WRITE_CAPABILITIES, new org.apache.thrift.meta_data.FieldMetaData("requiredWriteCapabilities", 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)))); metaDataMap = Collections.unmodifiableMap(tmpMap); @@ -153,9 +161,13 @@ public ExtendedTableInfo(ExtendedTableInfo other) { this.tblName = other.tblName; } this.accessType = other.accessType; - if (other.isSetProcessorCapabilities()) { - List __this__processorCapabilities = new ArrayList(other.processorCapabilities); - this.processorCapabilities = __this__processorCapabilities; + if (other.isSetRequiredReadCapabilities()) { + List __this__requiredReadCapabilities = new ArrayList(other.requiredReadCapabilities); + this.requiredReadCapabilities = __this__requiredReadCapabilities; + } + if (other.isSetRequiredWriteCapabilities()) { + List __this__requiredWriteCapabilities = new ArrayList(other.requiredWriteCapabilities); + this.requiredWriteCapabilities = __this__requiredWriteCapabilities; } } @@ -168,7 +180,8 @@ public void clear() { this.tblName = null; setAccessTypeIsSet(false); this.accessType = 0; - this.processorCapabilities = null; + this.requiredReadCapabilities = null; + this.requiredWriteCapabilities = null; } public String getTblName() { @@ -216,41 +229,79 @@ public void setAccessTypeIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ACCESSTYPE_ISSET_ID, value); } - public int getProcessorCapabilitiesSize() { - return (this.processorCapabilities == null) ? 0 : this.processorCapabilities.size(); + public int getRequiredReadCapabilitiesSize() { + return (this.requiredReadCapabilities == null) ? 0 : this.requiredReadCapabilities.size(); + } + + public java.util.Iterator getRequiredReadCapabilitiesIterator() { + return (this.requiredReadCapabilities == null) ? null : this.requiredReadCapabilities.iterator(); + } + + public void addToRequiredReadCapabilities(String elem) { + if (this.requiredReadCapabilities == null) { + this.requiredReadCapabilities = new ArrayList(); + } + this.requiredReadCapabilities.add(elem); + } + + public List getRequiredReadCapabilities() { + return this.requiredReadCapabilities; + } + + public void setRequiredReadCapabilities(List requiredReadCapabilities) { + this.requiredReadCapabilities = requiredReadCapabilities; + } + + public void unsetRequiredReadCapabilities() { + this.requiredReadCapabilities = null; + } + + /** Returns true if field requiredReadCapabilities is set (has been assigned a value) and false otherwise */ + public boolean isSetRequiredReadCapabilities() { + return this.requiredReadCapabilities != null; + } + + public void setRequiredReadCapabilitiesIsSet(boolean value) { + if (!value) { + this.requiredReadCapabilities = null; + } + } + + public int getRequiredWriteCapabilitiesSize() { + return (this.requiredWriteCapabilities == null) ? 0 : this.requiredWriteCapabilities.size(); } - public java.util.Iterator getProcessorCapabilitiesIterator() { - return (this.processorCapabilities == null) ? null : this.processorCapabilities.iterator(); + public java.util.Iterator getRequiredWriteCapabilitiesIterator() { + return (this.requiredWriteCapabilities == null) ? null : this.requiredWriteCapabilities.iterator(); } - public void addToProcessorCapabilities(String elem) { - if (this.processorCapabilities == null) { - this.processorCapabilities = new ArrayList(); + public void addToRequiredWriteCapabilities(String elem) { + if (this.requiredWriteCapabilities == null) { + this.requiredWriteCapabilities = new ArrayList(); } - this.processorCapabilities.add(elem); + this.requiredWriteCapabilities.add(elem); } - public List getProcessorCapabilities() { - return this.processorCapabilities; + public List getRequiredWriteCapabilities() { + return this.requiredWriteCapabilities; } - public void setProcessorCapabilities(List processorCapabilities) { - this.processorCapabilities = processorCapabilities; + public void setRequiredWriteCapabilities(List requiredWriteCapabilities) { + this.requiredWriteCapabilities = requiredWriteCapabilities; } - public void unsetProcessorCapabilities() { - this.processorCapabilities = null; + public void unsetRequiredWriteCapabilities() { + this.requiredWriteCapabilities = null; } - /** Returns true if field processorCapabilities is set (has been assigned a value) and false otherwise */ - public boolean isSetProcessorCapabilities() { - return this.processorCapabilities != null; + /** Returns true if field requiredWriteCapabilities is set (has been assigned a value) and false otherwise */ + public boolean isSetRequiredWriteCapabilities() { + return this.requiredWriteCapabilities != null; } - public void setProcessorCapabilitiesIsSet(boolean value) { + public void setRequiredWriteCapabilitiesIsSet(boolean value) { if (!value) { - this.processorCapabilities = null; + this.requiredWriteCapabilities = null; } } @@ -272,11 +323,19 @@ public void setFieldValue(_Fields field, Object value) { } break; - case PROCESSOR_CAPABILITIES: + case REQUIRED_READ_CAPABILITIES: + if (value == null) { + unsetRequiredReadCapabilities(); + } else { + setRequiredReadCapabilities((List)value); + } + break; + + case REQUIRED_WRITE_CAPABILITIES: if (value == null) { - unsetProcessorCapabilities(); + unsetRequiredWriteCapabilities(); } else { - setProcessorCapabilities((List)value); + setRequiredWriteCapabilities((List)value); } break; @@ -291,8 +350,11 @@ public Object getFieldValue(_Fields field) { case ACCESS_TYPE: return getAccessType(); - case PROCESSOR_CAPABILITIES: - return getProcessorCapabilities(); + case REQUIRED_READ_CAPABILITIES: + return getRequiredReadCapabilities(); + + case REQUIRED_WRITE_CAPABILITIES: + return getRequiredWriteCapabilities(); } throw new IllegalStateException(); @@ -309,8 +371,10 @@ public boolean isSet(_Fields field) { return isSetTblName(); case ACCESS_TYPE: return isSetAccessType(); - case PROCESSOR_CAPABILITIES: - return isSetProcessorCapabilities(); + case REQUIRED_READ_CAPABILITIES: + return isSetRequiredReadCapabilities(); + case REQUIRED_WRITE_CAPABILITIES: + return isSetRequiredWriteCapabilities(); } throw new IllegalStateException(); } @@ -346,12 +410,21 @@ public boolean equals(ExtendedTableInfo that) { 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)) + boolean this_present_requiredReadCapabilities = true && this.isSetRequiredReadCapabilities(); + boolean that_present_requiredReadCapabilities = true && that.isSetRequiredReadCapabilities(); + if (this_present_requiredReadCapabilities || that_present_requiredReadCapabilities) { + if (!(this_present_requiredReadCapabilities && that_present_requiredReadCapabilities)) return false; - if (!this.processorCapabilities.equals(that.processorCapabilities)) + if (!this.requiredReadCapabilities.equals(that.requiredReadCapabilities)) + return false; + } + + boolean this_present_requiredWriteCapabilities = true && this.isSetRequiredWriteCapabilities(); + boolean that_present_requiredWriteCapabilities = true && that.isSetRequiredWriteCapabilities(); + if (this_present_requiredWriteCapabilities || that_present_requiredWriteCapabilities) { + if (!(this_present_requiredWriteCapabilities && that_present_requiredWriteCapabilities)) + return false; + if (!this.requiredWriteCapabilities.equals(that.requiredWriteCapabilities)) return false; } @@ -372,10 +445,15 @@ public int hashCode() { if (present_accessType) list.add(accessType); - boolean present_processorCapabilities = true && (isSetProcessorCapabilities()); - list.add(present_processorCapabilities); - if (present_processorCapabilities) - list.add(processorCapabilities); + boolean present_requiredReadCapabilities = true && (isSetRequiredReadCapabilities()); + list.add(present_requiredReadCapabilities); + if (present_requiredReadCapabilities) + list.add(requiredReadCapabilities); + + boolean present_requiredWriteCapabilities = true && (isSetRequiredWriteCapabilities()); + list.add(present_requiredWriteCapabilities); + if (present_requiredWriteCapabilities) + list.add(requiredWriteCapabilities); return list.hashCode(); } @@ -408,12 +486,22 @@ public int compareTo(ExtendedTableInfo other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetProcessorCapabilities()).compareTo(other.isSetProcessorCapabilities()); + lastComparison = Boolean.valueOf(isSetRequiredReadCapabilities()).compareTo(other.isSetRequiredReadCapabilities()); if (lastComparison != 0) { return lastComparison; } - if (isSetProcessorCapabilities()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.processorCapabilities, other.processorCapabilities); + if (isSetRequiredReadCapabilities()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requiredReadCapabilities, other.requiredReadCapabilities); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetRequiredWriteCapabilities()).compareTo(other.isSetRequiredWriteCapabilities()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetRequiredWriteCapabilities()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requiredWriteCapabilities, other.requiredWriteCapabilities); if (lastComparison != 0) { return lastComparison; } @@ -451,13 +539,23 @@ public String toString() { sb.append(this.accessType); first = false; } - if (isSetProcessorCapabilities()) { + if (isSetRequiredReadCapabilities()) { + if (!first) sb.append(", "); + sb.append("requiredReadCapabilities:"); + if (this.requiredReadCapabilities == null) { + sb.append("null"); + } else { + sb.append(this.requiredReadCapabilities); + } + first = false; + } + if (isSetRequiredWriteCapabilities()) { if (!first) sb.append(", "); - sb.append("processorCapabilities:"); - if (this.processorCapabilities == null) { + sb.append("requiredWriteCapabilities:"); + if (this.requiredWriteCapabilities == null) { sb.append("null"); } else { - sb.append(this.processorCapabilities); + sb.append(this.requiredWriteCapabilities); } first = false; } @@ -526,20 +624,38 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ExtendedTableInfo s org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // PROCESSOR_CAPABILITIES + case 3: // REQUIRED_READ_CAPABILITIES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list936 = iprot.readListBegin(); - struct.processorCapabilities = new ArrayList(_list936.size); - String _elem937; - for (int _i938 = 0; _i938 < _list936.size; ++_i938) + org.apache.thrift.protocol.TList _list952 = iprot.readListBegin(); + struct.requiredReadCapabilities = new ArrayList(_list952.size); + String _elem953; + for (int _i954 = 0; _i954 < _list952.size; ++_i954) { - _elem937 = iprot.readString(); - struct.processorCapabilities.add(_elem937); + _elem953 = iprot.readString(); + struct.requiredReadCapabilities.add(_elem953); } iprot.readListEnd(); } - struct.setProcessorCapabilitiesIsSet(true); + struct.setRequiredReadCapabilitiesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // REQUIRED_WRITE_CAPABILITIES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list955 = iprot.readListBegin(); + struct.requiredWriteCapabilities = new ArrayList(_list955.size); + String _elem956; + for (int _i957 = 0; _i957 < _list955.size; ++_i957) + { + _elem956 = iprot.readString(); + struct.requiredWriteCapabilities.add(_elem956); + } + iprot.readListEnd(); + } + struct.setRequiredWriteCapabilitiesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -567,14 +683,28 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, ExtendedTableInfo oprot.writeI32(struct.accessType); oprot.writeFieldEnd(); } - if (struct.processorCapabilities != null) { - if (struct.isSetProcessorCapabilities()) { - oprot.writeFieldBegin(PROCESSOR_CAPABILITIES_FIELD_DESC); + if (struct.requiredReadCapabilities != null) { + if (struct.isSetRequiredReadCapabilities()) { + oprot.writeFieldBegin(REQUIRED_READ_CAPABILITIES_FIELD_DESC); { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.processorCapabilities.size())); - for (String _iter939 : struct.processorCapabilities) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.requiredReadCapabilities.size())); + for (String _iter958 : struct.requiredReadCapabilities) { - oprot.writeString(_iter939); + oprot.writeString(_iter958); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + } + if (struct.requiredWriteCapabilities != null) { + if (struct.isSetRequiredWriteCapabilities()) { + oprot.writeFieldBegin(REQUIRED_WRITE_CAPABILITIES_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.requiredWriteCapabilities.size())); + for (String _iter959 : struct.requiredWriteCapabilities) + { + oprot.writeString(_iter959); } oprot.writeListEnd(); } @@ -603,19 +733,31 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ExtendedTableInfo s if (struct.isSetAccessType()) { optionals.set(0); } - if (struct.isSetProcessorCapabilities()) { + if (struct.isSetRequiredReadCapabilities()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetRequiredWriteCapabilities()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetAccessType()) { oprot.writeI32(struct.accessType); } - if (struct.isSetProcessorCapabilities()) { + if (struct.isSetRequiredReadCapabilities()) { + { + oprot.writeI32(struct.requiredReadCapabilities.size()); + for (String _iter960 : struct.requiredReadCapabilities) + { + oprot.writeString(_iter960); + } + } + } + if (struct.isSetRequiredWriteCapabilities()) { { - oprot.writeI32(struct.processorCapabilities.size()); - for (String _iter940 : struct.processorCapabilities) + oprot.writeI32(struct.requiredWriteCapabilities.size()); + for (String _iter961 : struct.requiredWriteCapabilities) { - oprot.writeString(_iter940); + oprot.writeString(_iter961); } } } @@ -626,23 +768,36 @@ public void read(org.apache.thrift.protocol.TProtocol prot, ExtendedTableInfo st TTupleProtocol iprot = (TTupleProtocol) prot; struct.tblName = iprot.readString(); struct.setTblNameIsSet(true); - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.accessType = iprot.readI32(); struct.setAccessTypeIsSet(true); } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list941 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.processorCapabilities = new ArrayList(_list941.size); - String _elem942; - for (int _i943 = 0; _i943 < _list941.size; ++_i943) + org.apache.thrift.protocol.TList _list962 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.requiredReadCapabilities = new ArrayList(_list962.size); + String _elem963; + for (int _i964 = 0; _i964 < _list962.size; ++_i964) + { + _elem963 = iprot.readString(); + struct.requiredReadCapabilities.add(_elem963); + } + } + struct.setRequiredReadCapabilitiesIsSet(true); + } + if (incoming.get(2)) { + { + org.apache.thrift.protocol.TList _list965 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.requiredWriteCapabilities = new ArrayList(_list965.size); + String _elem966; + for (int _i967 = 0; _i967 < _list965.size; ++_i967) { - _elem942 = iprot.readString(); - struct.processorCapabilities.add(_elem942); + _elem966 = iprot.readString(); + struct.requiredWriteCapabilities.add(_elem966); } } - struct.setProcessorCapabilitiesIsSet(true); + struct.setRequiredWriteCapabilitiesIsSet(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 407398663b..4024751ed3 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 _list1016 = iprot.readListBegin(); - struct.schemaVersions = new ArrayList(_list1016.size); - SchemaVersionDescriptor _elem1017; - for (int _i1018 = 0; _i1018 < _list1016.size; ++_i1018) + org.apache.thrift.protocol.TList _list1040 = iprot.readListBegin(); + struct.schemaVersions = new ArrayList(_list1040.size); + SchemaVersionDescriptor _elem1041; + for (int _i1042 = 0; _i1042 < _list1040.size; ++_i1042) { - _elem1017 = new SchemaVersionDescriptor(); - _elem1017.read(iprot); - struct.schemaVersions.add(_elem1017); + _elem1041 = new SchemaVersionDescriptor(); + _elem1041.read(iprot); + struct.schemaVersions.add(_elem1041); } 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 _iter1019 : struct.schemaVersions) + for (SchemaVersionDescriptor _iter1043 : struct.schemaVersions) { - _iter1019.write(oprot); + _iter1043.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 _iter1020 : struct.schemaVersions) + for (SchemaVersionDescriptor _iter1044 : struct.schemaVersions) { - _iter1020.write(oprot); + _iter1044.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 _list1021 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.schemaVersions = new ArrayList(_list1021.size); - SchemaVersionDescriptor _elem1022; - for (int _i1023 = 0; _i1023 < _list1021.size; ++_i1023) + 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) { - _elem1022 = new SchemaVersionDescriptor(); - _elem1022.read(iprot); - struct.schemaVersions.add(_elem1022); + _elem1046 = new SchemaVersionDescriptor(); + _elem1046.read(iprot); + struct.schemaVersions.add(_elem1046); } } struct.setSchemaVersionsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java index dd3097d35d..07eb291e3d 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java @@ -794,13 +794,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, FireEventRequest st case 5: // PARTITION_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list804 = iprot.readListBegin(); - struct.partitionVals = new ArrayList(_list804.size); - String _elem805; - for (int _i806 = 0; _i806 < _list804.size; ++_i806) + org.apache.thrift.protocol.TList _list820 = iprot.readListBegin(); + struct.partitionVals = new ArrayList(_list820.size); + String _elem821; + for (int _i822 = 0; _i822 < _list820.size; ++_i822) { - _elem805 = iprot.readString(); - struct.partitionVals.add(_elem805); + _elem821 = iprot.readString(); + struct.partitionVals.add(_elem821); } iprot.readListEnd(); } @@ -857,9 +857,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, FireEventRequest s oprot.writeFieldBegin(PARTITION_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.partitionVals.size())); - for (String _iter807 : struct.partitionVals) + for (String _iter823 : struct.partitionVals) { - oprot.writeString(_iter807); + oprot.writeString(_iter823); } oprot.writeListEnd(); } @@ -915,9 +915,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, FireEventRequest st if (struct.isSetPartitionVals()) { { oprot.writeI32(struct.partitionVals.size()); - for (String _iter808 : struct.partitionVals) + for (String _iter824 : struct.partitionVals) { - oprot.writeString(_iter808); + oprot.writeString(_iter824); } } } @@ -945,13 +945,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, FireEventRequest str } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list809 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partitionVals = new ArrayList(_list809.size); - String _elem810; - for (int _i811 = 0; _i811 < _list809.size; ++_i811) + org.apache.thrift.protocol.TList _list825 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionVals = new ArrayList(_list825.size); + String _elem826; + for (int _i827 = 0; _i827 < _list825.size; ++_i827) { - _elem810 = iprot.readString(); - struct.partitionVals.add(_elem810); + _elem826 = iprot.readString(); + struct.partitionVals.add(_elem826); } } struct.setPartitionValsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ForeignKeysResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ForeignKeysResponse.java index a755ea0996..69a6cb0e01 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ForeignKeysResponse.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ForeignKeysResponse.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ForeignKeysResponse case 1: // FOREIGN_KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list344 = iprot.readListBegin(); - struct.foreignKeys = new ArrayList(_list344.size); - SQLForeignKey _elem345; - for (int _i346 = 0; _i346 < _list344.size; ++_i346) + org.apache.thrift.protocol.TList _list360 = iprot.readListBegin(); + struct.foreignKeys = new ArrayList(_list360.size); + SQLForeignKey _elem361; + for (int _i362 = 0; _i362 < _list360.size; ++_i362) { - _elem345 = new SQLForeignKey(); - _elem345.read(iprot); - struct.foreignKeys.add(_elem345); + _elem361 = new SQLForeignKey(); + _elem361.read(iprot); + struct.foreignKeys.add(_elem361); } iprot.readListEnd(); } @@ -387,9 +387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, ForeignKeysRespons 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 _iter347 : struct.foreignKeys) + for (SQLForeignKey _iter363 : struct.foreignKeys) { - _iter347.write(oprot); + _iter363.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ForeignKeysResponse TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.foreignKeys.size()); - for (SQLForeignKey _iter348 : struct.foreignKeys) + for (SQLForeignKey _iter364 : struct.foreignKeys) { - _iter348.write(oprot); + _iter364.write(oprot); } } } @@ -425,14 +425,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ForeignKeysResponse public void read(org.apache.thrift.protocol.TProtocol prot, ForeignKeysResponse struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list349 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.foreignKeys = new ArrayList(_list349.size); - SQLForeignKey _elem350; - for (int _i351 = 0; _i351 < _list349.size; ++_i351) + org.apache.thrift.protocol.TList _list365 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.foreignKeys = new ArrayList(_list365.size); + SQLForeignKey _elem366; + for (int _i367 = 0; _i367 < _list365.size; ++_i367) { - _elem350 = new SQLForeignKey(); - _elem350.read(iprot); - struct.foreignKeys.add(_elem350); + _elem366 = new SQLForeignKey(); + _elem366.read(iprot); + struct.foreignKeys.add(_elem366); } } struct.setForeignKeysIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java index 04695658ec..38e0891a8d 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java @@ -1079,14 +1079,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Function struct) th case 8: // RESOURCE_URIS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list586 = iprot.readListBegin(); - struct.resourceUris = new ArrayList(_list586.size); - ResourceUri _elem587; - for (int _i588 = 0; _i588 < _list586.size; ++_i588) + org.apache.thrift.protocol.TList _list602 = iprot.readListBegin(); + struct.resourceUris = new ArrayList(_list602.size); + ResourceUri _elem603; + for (int _i604 = 0; _i604 < _list602.size; ++_i604) { - _elem587 = new ResourceUri(); - _elem587.read(iprot); - struct.resourceUris.add(_elem587); + _elem603 = new ResourceUri(); + _elem603.read(iprot); + struct.resourceUris.add(_elem603); } iprot.readListEnd(); } @@ -1153,9 +1153,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, Function struct) t oprot.writeFieldBegin(RESOURCE_URIS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.resourceUris.size())); - for (ResourceUri _iter589 : struct.resourceUris) + for (ResourceUri _iter605 : struct.resourceUris) { - _iter589.write(oprot); + _iter605.write(oprot); } oprot.writeListEnd(); } @@ -1238,9 +1238,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Function struct) th if (struct.isSetResourceUris()) { { oprot.writeI32(struct.resourceUris.size()); - for (ResourceUri _iter590 : struct.resourceUris) + for (ResourceUri _iter606 : struct.resourceUris) { - _iter590.write(oprot); + _iter606.write(oprot); } } } @@ -1283,14 +1283,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Function struct) thr } if (incoming.get(7)) { { - org.apache.thrift.protocol.TList _list591 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.resourceUris = new ArrayList(_list591.size); - ResourceUri _elem592; - for (int _i593 = 0; _i593 < _list591.size; ++_i593) + org.apache.thrift.protocol.TList _list607 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.resourceUris = new ArrayList(_list607.size); + ResourceUri _elem608; + for (int _i609 = 0; _i609 < _list607.size; ++_i609) { - _elem592 = new ResourceUri(); - _elem592.read(iprot); - struct.resourceUris.add(_elem592); + _elem608 = new ResourceUri(); + _elem608.read(iprot); + struct.resourceUris.add(_elem608); } } struct.setResourceUrisIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java index d35f5f2c20..e22563ff6a 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java @@ -346,14 +346,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetAllFunctionsResp case 1: // FUNCTIONS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list880 = iprot.readListBegin(); - struct.functions = new ArrayList(_list880.size); - Function _elem881; - for (int _i882 = 0; _i882 < _list880.size; ++_i882) + org.apache.thrift.protocol.TList _list896 = iprot.readListBegin(); + struct.functions = new ArrayList(_list896.size); + Function _elem897; + for (int _i898 = 0; _i898 < _list896.size; ++_i898) { - _elem881 = new Function(); - _elem881.read(iprot); - struct.functions.add(_elem881); + _elem897 = new Function(); + _elem897.read(iprot); + struct.functions.add(_elem897); } iprot.readListEnd(); } @@ -380,9 +380,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetAllFunctionsRes oprot.writeFieldBegin(FUNCTIONS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.functions.size())); - for (Function _iter883 : struct.functions) + for (Function _iter899 : struct.functions) { - _iter883.write(oprot); + _iter899.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetAllFunctionsResp if (struct.isSetFunctions()) { { oprot.writeI32(struct.functions.size()); - for (Function _iter884 : struct.functions) + for (Function _iter900 : struct.functions) { - _iter884.write(oprot); + _iter900.write(oprot); } } } @@ -428,14 +428,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetAllFunctionsRespo BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list885 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.functions = new ArrayList(_list885.size); - Function _elem886; - for (int _i887 = 0; _i887 < _list885.size; ++_i887) + org.apache.thrift.protocol.TList _list901 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.functions = new ArrayList(_list901.size); + Function _elem902; + for (int _i903 = 0; _i903 < _list901.size; ++_i903) { - _elem886 = new Function(); - _elem886.read(iprot); - struct.functions.add(_elem886); + _elem902 = new Function(); + _elem902.read(iprot); + struct.functions.add(_elem902); } } struct.setFunctionsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprRequest.java index 1fa7a22371..9521a8478d 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprRequest.java @@ -619,13 +619,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetFileMetadataByEx case 1: // FILE_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list830 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list830.size); - long _elem831; - for (int _i832 = 0; _i832 < _list830.size; ++_i832) + org.apache.thrift.protocol.TList _list846 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list846.size); + long _elem847; + for (int _i848 = 0; _i848 < _list846.size; ++_i848) { - _elem831 = iprot.readI64(); - struct.fileIds.add(_elem831); + _elem847 = iprot.readI64(); + struct.fileIds.add(_elem847); } iprot.readListEnd(); } @@ -675,9 +675,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetFileMetadataByE oprot.writeFieldBegin(FILE_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.fileIds.size())); - for (long _iter833 : struct.fileIds) + for (long _iter849 : struct.fileIds) { - oprot.writeI64(_iter833); + oprot.writeI64(_iter849); } oprot.writeListEnd(); } @@ -719,9 +719,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataByEx TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.fileIds.size()); - for (long _iter834 : struct.fileIds) + for (long _iter850 : struct.fileIds) { - oprot.writeI64(_iter834); + oprot.writeI64(_iter850); } } oprot.writeBinary(struct.expr); @@ -745,13 +745,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataByEx public void read(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataByExprRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list835 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list835.size); - long _elem836; - for (int _i837 = 0; _i837 < _list835.size; ++_i837) + org.apache.thrift.protocol.TList _list851 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list851.size); + long _elem852; + for (int _i853 = 0; _i853 < _list851.size; ++_i853) { - _elem836 = iprot.readI64(); - struct.fileIds.add(_elem836); + _elem852 = iprot.readI64(); + struct.fileIds.add(_elem852); } } struct.setFileIdsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprResult.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprResult.java index a316b47d6f..c192c0d1a5 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprResult.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprResult.java @@ -444,16 +444,16 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetFileMetadataByEx case 1: // METADATA if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map820 = iprot.readMapBegin(); - struct.metadata = new HashMap(2*_map820.size); - long _key821; - MetadataPpdResult _val822; - for (int _i823 = 0; _i823 < _map820.size; ++_i823) + org.apache.thrift.protocol.TMap _map836 = iprot.readMapBegin(); + struct.metadata = new HashMap(2*_map836.size); + long _key837; + MetadataPpdResult _val838; + for (int _i839 = 0; _i839 < _map836.size; ++_i839) { - _key821 = iprot.readI64(); - _val822 = new MetadataPpdResult(); - _val822.read(iprot); - struct.metadata.put(_key821, _val822); + _key837 = iprot.readI64(); + _val838 = new MetadataPpdResult(); + _val838.read(iprot); + struct.metadata.put(_key837, _val838); } iprot.readMapEnd(); } @@ -487,10 +487,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetFileMetadataByE oprot.writeFieldBegin(METADATA_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, struct.metadata.size())); - for (Map.Entry _iter824 : struct.metadata.entrySet()) + for (Map.Entry _iter840 : struct.metadata.entrySet()) { - oprot.writeI64(_iter824.getKey()); - _iter824.getValue().write(oprot); + oprot.writeI64(_iter840.getKey()); + _iter840.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -518,10 +518,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataByEx TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.metadata.size()); - for (Map.Entry _iter825 : struct.metadata.entrySet()) + for (Map.Entry _iter841 : struct.metadata.entrySet()) { - oprot.writeI64(_iter825.getKey()); - _iter825.getValue().write(oprot); + oprot.writeI64(_iter841.getKey()); + _iter841.getValue().write(oprot); } } oprot.writeBool(struct.isSupported); @@ -531,16 +531,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataByEx public void read(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataByExprResult struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TMap _map826 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.metadata = new HashMap(2*_map826.size); - long _key827; - MetadataPpdResult _val828; - for (int _i829 = 0; _i829 < _map826.size; ++_i829) + org.apache.thrift.protocol.TMap _map842 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.metadata = new HashMap(2*_map842.size); + long _key843; + MetadataPpdResult _val844; + for (int _i845 = 0; _i845 < _map842.size; ++_i845) { - _key827 = iprot.readI64(); - _val828 = new MetadataPpdResult(); - _val828.read(iprot); - struct.metadata.put(_key827, _val828); + _key843 = iprot.readI64(); + _val844 = new MetadataPpdResult(); + _val844.read(iprot); + struct.metadata.put(_key843, _val844); } } struct.setMetadataIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataRequest.java index 571727807d..8ccce25e19 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataRequest.java @@ -351,13 +351,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetFileMetadataRequ case 1: // FILE_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list848 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list848.size); - long _elem849; - for (int _i850 = 0; _i850 < _list848.size; ++_i850) + org.apache.thrift.protocol.TList _list864 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list864.size); + long _elem865; + for (int _i866 = 0; _i866 < _list864.size; ++_i866) { - _elem849 = iprot.readI64(); - struct.fileIds.add(_elem849); + _elem865 = iprot.readI64(); + struct.fileIds.add(_elem865); } iprot.readListEnd(); } @@ -383,9 +383,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetFileMetadataReq oprot.writeFieldBegin(FILE_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.fileIds.size())); - for (long _iter851 : struct.fileIds) + for (long _iter867 : struct.fileIds) { - oprot.writeI64(_iter851); + oprot.writeI64(_iter867); } oprot.writeListEnd(); } @@ -410,9 +410,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataRequ TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.fileIds.size()); - for (long _iter852 : struct.fileIds) + for (long _iter868 : struct.fileIds) { - oprot.writeI64(_iter852); + oprot.writeI64(_iter868); } } } @@ -421,13 +421,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataRequ public void read(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list853 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list853.size); - long _elem854; - for (int _i855 = 0; _i855 < _list853.size; ++_i855) + org.apache.thrift.protocol.TList _list869 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list869.size); + long _elem870; + for (int _i871 = 0; _i871 < _list869.size; ++_i871) { - _elem854 = iprot.readI64(); - struct.fileIds.add(_elem854); + _elem870 = iprot.readI64(); + struct.fileIds.add(_elem870); } } struct.setFileIdsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataResult.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataResult.java index 0820509d1b..a6da5c51f4 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataResult.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataResult.java @@ -433,15 +433,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetFileMetadataResu case 1: // METADATA if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map838 = iprot.readMapBegin(); - struct.metadata = new HashMap(2*_map838.size); - long _key839; - ByteBuffer _val840; - for (int _i841 = 0; _i841 < _map838.size; ++_i841) + org.apache.thrift.protocol.TMap _map854 = iprot.readMapBegin(); + struct.metadata = new HashMap(2*_map854.size); + long _key855; + ByteBuffer _val856; + for (int _i857 = 0; _i857 < _map854.size; ++_i857) { - _key839 = iprot.readI64(); - _val840 = iprot.readBinary(); - struct.metadata.put(_key839, _val840); + _key855 = iprot.readI64(); + _val856 = iprot.readBinary(); + struct.metadata.put(_key855, _val856); } iprot.readMapEnd(); } @@ -475,10 +475,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetFileMetadataRes oprot.writeFieldBegin(METADATA_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, struct.metadata.size())); - for (Map.Entry _iter842 : struct.metadata.entrySet()) + for (Map.Entry _iter858 : struct.metadata.entrySet()) { - oprot.writeI64(_iter842.getKey()); - oprot.writeBinary(_iter842.getValue()); + oprot.writeI64(_iter858.getKey()); + oprot.writeBinary(_iter858.getValue()); } oprot.writeMapEnd(); } @@ -506,10 +506,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataResu TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.metadata.size()); - for (Map.Entry _iter843 : struct.metadata.entrySet()) + for (Map.Entry _iter859 : struct.metadata.entrySet()) { - oprot.writeI64(_iter843.getKey()); - oprot.writeBinary(_iter843.getValue()); + oprot.writeI64(_iter859.getKey()); + oprot.writeBinary(_iter859.getValue()); } } oprot.writeBool(struct.isSupported); @@ -519,15 +519,15 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataResu public void read(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataResult struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TMap _map844 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.metadata = new HashMap(2*_map844.size); - long _key845; - ByteBuffer _val846; - for (int _i847 = 0; _i847 < _map844.size; ++_i847) + org.apache.thrift.protocol.TMap _map860 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.metadata = new HashMap(2*_map860.size); + long _key861; + ByteBuffer _val862; + for (int _i863 = 0; _i863 < _map860.size; ++_i863) { - _key845 = iprot.readI64(); - _val846 = iprot.readBinary(); - struct.metadata.put(_key845, _val846); + _key861 = iprot.readI64(); + _val862 = iprot.readBinary(); + struct.metadata.put(_key861, _val862); } } struct.setMetadataIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java index 68d9722274..9f7d1502f3 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java @@ -447,14 +447,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetOpenTxnsInfoResp case 2: // OPEN_TXNS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list594 = iprot.readListBegin(); - struct.open_txns = new ArrayList(_list594.size); - TxnInfo _elem595; - for (int _i596 = 0; _i596 < _list594.size; ++_i596) + org.apache.thrift.protocol.TList _list610 = iprot.readListBegin(); + struct.open_txns = new ArrayList(_list610.size); + TxnInfo _elem611; + for (int _i612 = 0; _i612 < _list610.size; ++_i612) { - _elem595 = new TxnInfo(); - _elem595.read(iprot); - struct.open_txns.add(_elem595); + _elem611 = new TxnInfo(); + _elem611.read(iprot); + struct.open_txns.add(_elem611); } iprot.readListEnd(); } @@ -483,9 +483,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetOpenTxnsInfoRes oprot.writeFieldBegin(OPEN_TXNS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.open_txns.size())); - for (TxnInfo _iter597 : struct.open_txns) + for (TxnInfo _iter613 : struct.open_txns) { - _iter597.write(oprot); + _iter613.write(oprot); } oprot.writeListEnd(); } @@ -511,9 +511,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetOpenTxnsInfoResp oprot.writeI64(struct.txn_high_water_mark); { oprot.writeI32(struct.open_txns.size()); - for (TxnInfo _iter598 : struct.open_txns) + for (TxnInfo _iter614 : struct.open_txns) { - _iter598.write(oprot); + _iter614.write(oprot); } } } @@ -524,14 +524,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetOpenTxnsInfoRespo struct.txn_high_water_mark = iprot.readI64(); struct.setTxn_high_water_markIsSet(true); { - org.apache.thrift.protocol.TList _list599 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.open_txns = new ArrayList(_list599.size); - TxnInfo _elem600; - for (int _i601 = 0; _i601 < _list599.size; ++_i601) + org.apache.thrift.protocol.TList _list615 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.open_txns = new ArrayList(_list615.size); + TxnInfo _elem616; + for (int _i617 = 0; _i617 < _list615.size; ++_i617) { - _elem600 = new TxnInfo(); - _elem600.read(iprot); - struct.open_txns.add(_elem600); + _elem616 = new TxnInfo(); + _elem616.read(iprot); + struct.open_txns.add(_elem616); } } struct.setOpen_txnsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java index c3a106244a..f9596f1d15 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java @@ -615,13 +615,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetOpenTxnsResponse case 2: // OPEN_TXNS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list602 = iprot.readListBegin(); - struct.open_txns = new ArrayList(_list602.size); - long _elem603; - for (int _i604 = 0; _i604 < _list602.size; ++_i604) + org.apache.thrift.protocol.TList _list618 = iprot.readListBegin(); + struct.open_txns = new ArrayList(_list618.size); + long _elem619; + for (int _i620 = 0; _i620 < _list618.size; ++_i620) { - _elem603 = iprot.readI64(); - struct.open_txns.add(_elem603); + _elem619 = iprot.readI64(); + struct.open_txns.add(_elem619); } iprot.readListEnd(); } @@ -666,9 +666,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetOpenTxnsRespons oprot.writeFieldBegin(OPEN_TXNS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.open_txns.size())); - for (long _iter605 : struct.open_txns) + for (long _iter621 : struct.open_txns) { - oprot.writeI64(_iter605); + oprot.writeI64(_iter621); } oprot.writeListEnd(); } @@ -704,9 +704,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetOpenTxnsResponse oprot.writeI64(struct.txn_high_water_mark); { oprot.writeI32(struct.open_txns.size()); - for (long _iter606 : struct.open_txns) + for (long _iter622 : struct.open_txns) { - oprot.writeI64(_iter606); + oprot.writeI64(_iter622); } } oprot.writeBinary(struct.abortedBits); @@ -726,13 +726,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetOpenTxnsResponse struct.txn_high_water_mark = iprot.readI64(); struct.setTxn_high_water_markIsSet(true); { - org.apache.thrift.protocol.TList _list607 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.open_txns = new ArrayList(_list607.size); - long _elem608; - for (int _i609 = 0; _i609 < _list607.size; ++_i609) + org.apache.thrift.protocol.TList _list623 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.open_txns = new ArrayList(_list623.size); + long _elem624; + for (int _i625 = 0; _i625 < _list623.size; ++_i625) { - _elem608 = iprot.readI64(); - struct.open_txns.add(_elem608); + _elem624 = iprot.readI64(); + struct.open_txns.add(_elem624); } } struct.setOpen_txnsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsByNamesRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsByNamesRequest.java index 9924f20fd4..613b94b5b8 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsByNamesRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsByNamesRequest.java @@ -793,13 +793,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetPartitionsByName case 3: // NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list562 = iprot.readListBegin(); - struct.names = new ArrayList(_list562.size); - String _elem563; - for (int _i564 = 0; _i564 < _list562.size; ++_i564) + org.apache.thrift.protocol.TList _list578 = iprot.readListBegin(); + struct.names = new ArrayList(_list578.size); + String _elem579; + for (int _i580 = 0; _i580 < _list578.size; ++_i580) { - _elem563 = iprot.readString(); - struct.names.add(_elem563); + _elem579 = iprot.readString(); + struct.names.add(_elem579); } iprot.readListEnd(); } @@ -819,13 +819,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetPartitionsByName case 5: // PROCESSOR_CAPABILITIES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list565 = iprot.readListBegin(); - struct.processorCapabilities = new ArrayList(_list565.size); - String _elem566; - for (int _i567 = 0; _i567 < _list565.size; ++_i567) + org.apache.thrift.protocol.TList _list581 = iprot.readListBegin(); + struct.processorCapabilities = new ArrayList(_list581.size); + String _elem582; + for (int _i583 = 0; _i583 < _list581.size; ++_i583) { - _elem566 = iprot.readString(); - struct.processorCapabilities.add(_elem566); + _elem582 = iprot.readString(); + struct.processorCapabilities.add(_elem582); } iprot.readListEnd(); } @@ -870,9 +870,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetPartitionsByNam oprot.writeFieldBegin(NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.names.size())); - for (String _iter568 : struct.names) + for (String _iter584 : struct.names) { - oprot.writeString(_iter568); + oprot.writeString(_iter584); } oprot.writeListEnd(); } @@ -889,9 +889,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetPartitionsByNam 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 _iter569 : struct.processorCapabilities) + for (String _iter585 : struct.processorCapabilities) { - oprot.writeString(_iter569); + oprot.writeString(_iter585); } oprot.writeListEnd(); } @@ -941,9 +941,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetPartitionsByName if (struct.isSetNames()) { { oprot.writeI32(struct.names.size()); - for (String _iter570 : struct.names) + for (String _iter586 : struct.names) { - oprot.writeString(_iter570); + oprot.writeString(_iter586); } } } @@ -953,9 +953,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetPartitionsByName if (struct.isSetProcessorCapabilities()) { { oprot.writeI32(struct.processorCapabilities.size()); - for (String _iter571 : struct.processorCapabilities) + for (String _iter587 : struct.processorCapabilities) { - oprot.writeString(_iter571); + oprot.writeString(_iter587); } } } @@ -974,13 +974,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetPartitionsByNames BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list572 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.names = new ArrayList(_list572.size); - String _elem573; - for (int _i574 = 0; _i574 < _list572.size; ++_i574) + org.apache.thrift.protocol.TList _list588 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.names = new ArrayList(_list588.size); + String _elem589; + for (int _i590 = 0; _i590 < _list588.size; ++_i590) { - _elem573 = iprot.readString(); - struct.names.add(_elem573); + _elem589 = iprot.readString(); + struct.names.add(_elem589); } } struct.setNamesIsSet(true); @@ -991,13 +991,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetPartitionsByNames } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list575 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.processorCapabilities = new ArrayList(_list575.size); - String _elem576; - for (int _i577 = 0; _i577 < _list575.size; ++_i577) + org.apache.thrift.protocol.TList _list591 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.processorCapabilities = new ArrayList(_list591.size); + String _elem592; + for (int _i593 = 0; _i593 < _list591.size; ++_i593) { - _elem576 = iprot.readString(); - struct.processorCapabilities.add(_elem576); + _elem592 = iprot.readString(); + struct.processorCapabilities.add(_elem592); } } struct.setProcessorCapabilitiesIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsByNamesResult.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsByNamesResult.java index d03ba7e155..da69e3a2f3 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsByNamesResult.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsByNamesResult.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetPartitionsByName case 1: // PARTITIONS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list578 = iprot.readListBegin(); - struct.partitions = new ArrayList(_list578.size); - Partition _elem579; - for (int _i580 = 0; _i580 < _list578.size; ++_i580) + org.apache.thrift.protocol.TList _list594 = iprot.readListBegin(); + struct.partitions = new ArrayList(_list594.size); + Partition _elem595; + for (int _i596 = 0; _i596 < _list594.size; ++_i596) { - _elem579 = new Partition(); - _elem579.read(iprot); - struct.partitions.add(_elem579); + _elem595 = new Partition(); + _elem595.read(iprot); + struct.partitions.add(_elem595); } iprot.readListEnd(); } @@ -387,9 +387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetPartitionsByNam oprot.writeFieldBegin(PARTITIONS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitions.size())); - for (Partition _iter581 : struct.partitions) + for (Partition _iter597 : struct.partitions) { - _iter581.write(oprot); + _iter597.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetPartitionsByName TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.partitions.size()); - for (Partition _iter582 : struct.partitions) + for (Partition _iter598 : struct.partitions) { - _iter582.write(oprot); + _iter598.write(oprot); } } } @@ -425,14 +425,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetPartitionsByName public void read(org.apache.thrift.protocol.TProtocol prot, GetPartitionsByNamesResult struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list583 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitions = new ArrayList(_list583.size); - Partition _elem584; - for (int _i585 = 0; _i585 < _list583.size; ++_i585) + org.apache.thrift.protocol.TList _list599 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitions = new ArrayList(_list599.size); + Partition _elem600; + for (int _i601 = 0; _i601 < _list599.size; ++_i601) { - _elem584 = new Partition(); - _elem584.read(iprot); - struct.partitions.add(_elem584); + _elem600 = new Partition(); + _elem600.read(iprot); + struct.partitions.add(_elem600); } } struct.setPartitionsIsSet(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 2f2c3c83c5..fcba6ebb4d 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 _list1048 = iprot.readListBegin(); - struct.filters = new ArrayList(_list1048.size); - String _elem1049; - for (int _i1050 = 0; _i1050 < _list1048.size; ++_i1050) + org.apache.thrift.protocol.TList _list1128 = iprot.readListBegin(); + struct.filters = new ArrayList(_list1128.size); + String _elem1129; + for (int _i1130 = 0; _i1130 < _list1128.size; ++_i1130) { - _elem1049 = iprot.readString(); - struct.filters.add(_elem1049); + _elem1129 = iprot.readString(); + struct.filters.add(_elem1129); } 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 _iter1051 : struct.filters) + for (String _iter1131 : struct.filters) { - oprot.writeString(_iter1051); + oprot.writeString(_iter1131); } 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 _iter1052 : struct.filters) + for (String _iter1132 : struct.filters) { - oprot.writeString(_iter1052); + oprot.writeString(_iter1132); } } } @@ -542,13 +542,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetPartitionsFilterS } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list1053 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.filters = new ArrayList(_list1053.size); - String _elem1054; - for (int _i1055 = 0; _i1055 < _list1053.size; ++_i1055) + 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) { - _elem1054 = iprot.readString(); - struct.filters.add(_elem1054); + _elem1134 = iprot.readString(); + struct.filters.add(_elem1134); } } 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 8483633de3..d94cbb1bcc 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 _list1040 = iprot.readListBegin(); - struct.fieldList = new ArrayList(_list1040.size); - String _elem1041; - for (int _i1042 = 0; _i1042 < _list1040.size; ++_i1042) + org.apache.thrift.protocol.TList _list1120 = iprot.readListBegin(); + struct.fieldList = new ArrayList(_list1120.size); + String _elem1121; + for (int _i1122 = 0; _i1122 < _list1120.size; ++_i1122) { - _elem1041 = iprot.readString(); - struct.fieldList.add(_elem1041); + _elem1121 = iprot.readString(); + struct.fieldList.add(_elem1121); } 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 _iter1043 : struct.fieldList) + for (String _iter1123 : struct.fieldList) { - oprot.writeString(_iter1043); + oprot.writeString(_iter1123); } 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 _iter1044 : struct.fieldList) + for (String _iter1124 : struct.fieldList) { - oprot.writeString(_iter1044); + oprot.writeString(_iter1124); } } } @@ -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 _list1045 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.fieldList = new ArrayList(_list1045.size); - String _elem1046; - for (int _i1047 = 0; _i1047 < _list1045.size; ++_i1047) + 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) { - _elem1046 = iprot.readString(); - struct.fieldList.add(_elem1046); + _elem1126 = iprot.readString(); + struct.fieldList.add(_elem1126); } } 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 256d4f54f6..dd4bf8339a 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 _list1064 = iprot.readListBegin(); - struct.groupNames = new ArrayList(_list1064.size); - String _elem1065; - for (int _i1066 = 0; _i1066 < _list1064.size; ++_i1066) + org.apache.thrift.protocol.TList _list1144 = iprot.readListBegin(); + struct.groupNames = new ArrayList(_list1144.size); + String _elem1145; + for (int _i1146 = 0; _i1146 < _list1144.size; ++_i1146) { - _elem1065 = iprot.readString(); - struct.groupNames.add(_elem1065); + _elem1145 = iprot.readString(); + struct.groupNames.add(_elem1145); } 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 _list1067 = iprot.readListBegin(); - struct.processorCapabilities = new ArrayList(_list1067.size); - String _elem1068; - for (int _i1069 = 0; _i1069 < _list1067.size; ++_i1069) + org.apache.thrift.protocol.TList _list1147 = iprot.readListBegin(); + struct.processorCapabilities = new ArrayList(_list1147.size); + String _elem1148; + for (int _i1149 = 0; _i1149 < _list1147.size; ++_i1149) { - _elem1068 = iprot.readString(); - struct.processorCapabilities.add(_elem1068); + _elem1148 = iprot.readString(); + struct.processorCapabilities.add(_elem1148); } 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 _iter1070 : struct.groupNames) + for (String _iter1150 : struct.groupNames) { - oprot.writeString(_iter1070); + oprot.writeString(_iter1150); } 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 _iter1071 : struct.processorCapabilities) + for (String _iter1151 : struct.processorCapabilities) { - oprot.writeString(_iter1071); + oprot.writeString(_iter1151); } 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 _iter1072 : struct.groupNames) + for (String _iter1152 : struct.groupNames) { - oprot.writeString(_iter1072); + oprot.writeString(_iter1152); } } } @@ -1367,9 +1367,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetPartitionsReques if (struct.isSetProcessorCapabilities()) { { oprot.writeI32(struct.processorCapabilities.size()); - for (String _iter1073 : struct.processorCapabilities) + for (String _iter1153 : struct.processorCapabilities) { - oprot.writeString(_iter1073); + oprot.writeString(_iter1153); } } } @@ -1404,13 +1404,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetPartitionsRequest } if (incoming.get(5)) { { - org.apache.thrift.protocol.TList _list1074 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.groupNames = new ArrayList(_list1074.size); - String _elem1075; - for (int _i1076 = 0; _i1076 < _list1074.size; ++_i1076) + 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) { - _elem1075 = iprot.readString(); - struct.groupNames.add(_elem1075); + _elem1155 = iprot.readString(); + struct.groupNames.add(_elem1155); } } 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 _list1077 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.processorCapabilities = new ArrayList(_list1077.size); - String _elem1078; - for (int _i1079 = 0; _i1079 < _list1077.size; ++_i1079) + 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) { - _elem1078 = iprot.readString(); - struct.processorCapabilities.add(_elem1078); + _elem1158 = iprot.readString(); + struct.processorCapabilities.add(_elem1158); } } 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 ad1987b11b..ddfa59fb1c 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 _list1056 = iprot.readListBegin(); - struct.partitionSpec = new ArrayList(_list1056.size); - PartitionSpec _elem1057; - for (int _i1058 = 0; _i1058 < _list1056.size; ++_i1058) + org.apache.thrift.protocol.TList _list1136 = iprot.readListBegin(); + struct.partitionSpec = new ArrayList(_list1136.size); + PartitionSpec _elem1137; + for (int _i1138 = 0; _i1138 < _list1136.size; ++_i1138) { - _elem1057 = new PartitionSpec(); - _elem1057.read(iprot); - struct.partitionSpec.add(_elem1057); + _elem1137 = new PartitionSpec(); + _elem1137.read(iprot); + struct.partitionSpec.add(_elem1137); } 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 _iter1059 : struct.partitionSpec) + for (PartitionSpec _iter1139 : struct.partitionSpec) { - _iter1059.write(oprot); + _iter1139.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 _iter1060 : struct.partitionSpec) + for (PartitionSpec _iter1140 : struct.partitionSpec) { - _iter1060.write(oprot); + _iter1140.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 _list1061 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitionSpec = new ArrayList(_list1061.size); - PartitionSpec _elem1062; - for (int _i1063 = 0; _i1063 < _list1061.size; ++_i1063) + 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) { - _elem1062 = new PartitionSpec(); - _elem1062.read(iprot); - struct.partitionSpec.add(_elem1062); + _elem1142 = new PartitionSpec(); + _elem1142.read(iprot); + struct.partitionSpec.add(_elem1142); } } struct.setPartitionSpecIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTableRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTableRequest.java index f751e397f5..efa02f324a 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTableRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTableRequest.java @@ -974,13 +974,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetTableRequest str case 8: // PROCESSOR_CAPABILITIES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list896 = iprot.readListBegin(); - struct.processorCapabilities = new ArrayList(_list896.size); - String _elem897; - for (int _i898 = 0; _i898 < _list896.size; ++_i898) + org.apache.thrift.protocol.TList _list912 = iprot.readListBegin(); + struct.processorCapabilities = new ArrayList(_list912.size); + String _elem913; + for (int _i914 = 0; _i914 < _list912.size; ++_i914) { - _elem897 = iprot.readString(); - struct.processorCapabilities.add(_elem897); + _elem913 = iprot.readString(); + struct.processorCapabilities.add(_elem913); } iprot.readListEnd(); } @@ -1051,9 +1051,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetTableRequest st 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 _iter899 : struct.processorCapabilities) + for (String _iter915 : struct.processorCapabilities) { - oprot.writeString(_iter899); + oprot.writeString(_iter915); } oprot.writeListEnd(); } @@ -1121,9 +1121,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetTableRequest str if (struct.isSetProcessorCapabilities()) { { oprot.writeI32(struct.processorCapabilities.size()); - for (String _iter900 : struct.processorCapabilities) + for (String _iter916 : struct.processorCapabilities) { - oprot.writeString(_iter900); + oprot.writeString(_iter916); } } } @@ -1159,13 +1159,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetTableRequest stru } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list901 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.processorCapabilities = new ArrayList(_list901.size); - String _elem902; - for (int _i903 = 0; _i903 < _list901.size; ++_i903) + org.apache.thrift.protocol.TList _list917 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.processorCapabilities = new ArrayList(_list917.size); + String _elem918; + for (int _i919 = 0; _i919 < _list917.size; ++_i919) { - _elem902 = iprot.readString(); - struct.processorCapabilities.add(_elem902); + _elem918 = iprot.readString(); + struct.processorCapabilities.add(_elem918); } } struct.setProcessorCapabilitiesIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesExtRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesExtRequest.java index 3bb90e9817..88ff2202b9 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesExtRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesExtRequest.java @@ -885,13 +885,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetTablesExtRequest case 6: // PROCESSOR_CAPABILITIES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list928 = iprot.readListBegin(); - struct.processorCapabilities = new ArrayList(_list928.size); - String _elem929; - for (int _i930 = 0; _i930 < _list928.size; ++_i930) + org.apache.thrift.protocol.TList _list944 = iprot.readListBegin(); + struct.processorCapabilities = new ArrayList(_list944.size); + String _elem945; + for (int _i946 = 0; _i946 < _list944.size; ++_i946) { - _elem929 = iprot.readString(); - struct.processorCapabilities.add(_elem929); + _elem945 = iprot.readString(); + struct.processorCapabilities.add(_elem945); } iprot.readListEnd(); } @@ -949,9 +949,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetTablesExtReques 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 _iter931 : struct.processorCapabilities) + for (String _iter947 : struct.processorCapabilities) { - oprot.writeString(_iter931); + oprot.writeString(_iter947); } oprot.writeListEnd(); } @@ -1003,9 +1003,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetTablesExtRequest if (struct.isSetProcessorCapabilities()) { { oprot.writeI32(struct.processorCapabilities.size()); - for (String _iter932 : struct.processorCapabilities) + for (String _iter948 : struct.processorCapabilities) { - oprot.writeString(_iter932); + oprot.writeString(_iter948); } } } @@ -1032,13 +1032,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetTablesExtRequest } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list933 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.processorCapabilities = new ArrayList(_list933.size); - String _elem934; - for (int _i935 = 0; _i935 < _list933.size; ++_i935) + org.apache.thrift.protocol.TList _list949 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.processorCapabilities = new ArrayList(_list949.size); + String _elem950; + for (int _i951 = 0; _i951 < _list949.size; ++_i951) { - _elem934 = iprot.readString(); - struct.processorCapabilities.add(_elem934); + _elem950 = iprot.readString(); + struct.processorCapabilities.add(_elem950); } } struct.setProcessorCapabilitiesIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesRequest.java index c764543282..414128b873 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesRequest.java @@ -785,13 +785,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetTablesRequest st case 2: // TBL_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list904 = iprot.readListBegin(); - struct.tblNames = new ArrayList(_list904.size); - String _elem905; - for (int _i906 = 0; _i906 < _list904.size; ++_i906) + org.apache.thrift.protocol.TList _list920 = iprot.readListBegin(); + struct.tblNames = new ArrayList(_list920.size); + String _elem921; + for (int _i922 = 0; _i922 < _list920.size; ++_i922) { - _elem905 = iprot.readString(); - struct.tblNames.add(_elem905); + _elem921 = iprot.readString(); + struct.tblNames.add(_elem921); } iprot.readListEnd(); } @@ -820,13 +820,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetTablesRequest st case 5: // PROCESSOR_CAPABILITIES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list907 = iprot.readListBegin(); - struct.processorCapabilities = new ArrayList(_list907.size); - String _elem908; - for (int _i909 = 0; _i909 < _list907.size; ++_i909) + org.apache.thrift.protocol.TList _list923 = iprot.readListBegin(); + struct.processorCapabilities = new ArrayList(_list923.size); + String _elem924; + for (int _i925 = 0; _i925 < _list923.size; ++_i925) { - _elem908 = iprot.readString(); - struct.processorCapabilities.add(_elem908); + _elem924 = iprot.readString(); + struct.processorCapabilities.add(_elem924); } iprot.readListEnd(); } @@ -866,9 +866,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetTablesRequest s oprot.writeFieldBegin(TBL_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.tblNames.size())); - for (String _iter910 : struct.tblNames) + for (String _iter926 : struct.tblNames) { - oprot.writeString(_iter910); + oprot.writeString(_iter926); } oprot.writeListEnd(); } @@ -894,9 +894,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetTablesRequest s 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 _iter911 : struct.processorCapabilities) + for (String _iter927 : struct.processorCapabilities) { - oprot.writeString(_iter911); + oprot.writeString(_iter927); } oprot.writeListEnd(); } @@ -948,9 +948,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetTablesRequest st if (struct.isSetTblNames()) { { oprot.writeI32(struct.tblNames.size()); - for (String _iter912 : struct.tblNames) + for (String _iter928 : struct.tblNames) { - oprot.writeString(_iter912); + oprot.writeString(_iter928); } } } @@ -963,9 +963,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetTablesRequest st if (struct.isSetProcessorCapabilities()) { { oprot.writeI32(struct.processorCapabilities.size()); - for (String _iter913 : struct.processorCapabilities) + for (String _iter929 : struct.processorCapabilities) { - oprot.writeString(_iter913); + oprot.writeString(_iter929); } } } @@ -982,13 +982,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetTablesRequest str BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list914 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tblNames = new ArrayList(_list914.size); - String _elem915; - for (int _i916 = 0; _i916 < _list914.size; ++_i916) + org.apache.thrift.protocol.TList _list930 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tblNames = new ArrayList(_list930.size); + String _elem931; + for (int _i932 = 0; _i932 < _list930.size; ++_i932) { - _elem915 = iprot.readString(); - struct.tblNames.add(_elem915); + _elem931 = iprot.readString(); + struct.tblNames.add(_elem931); } } struct.setTblNamesIsSet(true); @@ -1004,13 +1004,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetTablesRequest str } if (incoming.get(3)) { { - org.apache.thrift.protocol.TList _list917 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.processorCapabilities = new ArrayList(_list917.size); - String _elem918; - for (int _i919 = 0; _i919 < _list917.size; ++_i919) + org.apache.thrift.protocol.TList _list933 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.processorCapabilities = new ArrayList(_list933.size); + String _elem934; + for (int _i935 = 0; _i935 < _list933.size; ++_i935) { - _elem918 = iprot.readString(); - struct.processorCapabilities.add(_elem918); + _elem934 = iprot.readString(); + struct.processorCapabilities.add(_elem934); } } struct.setProcessorCapabilitiesIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesResult.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesResult.java index 7d1aff00e5..1e95bd3ae4 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesResult.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesResult.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetTablesResult str case 1: // TABLES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list920 = iprot.readListBegin(); - struct.tables = new ArrayList(_list920.size); - Table _elem921; - for (int _i922 = 0; _i922 < _list920.size; ++_i922) + org.apache.thrift.protocol.TList _list936 = iprot.readListBegin(); + struct.tables = new ArrayList
(_list936.size); + Table _elem937; + for (int _i938 = 0; _i938 < _list936.size; ++_i938) { - _elem921 = new Table(); - _elem921.read(iprot); - struct.tables.add(_elem921); + _elem937 = new Table(); + _elem937.read(iprot); + struct.tables.add(_elem937); } iprot.readListEnd(); } @@ -387,9 +387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetTablesResult st oprot.writeFieldBegin(TABLES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.tables.size())); - for (Table _iter923 : struct.tables) + for (Table _iter939 : struct.tables) { - _iter923.write(oprot); + _iter939.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetTablesResult str TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.tables.size()); - for (Table _iter924 : struct.tables) + for (Table _iter940 : struct.tables) { - _iter924.write(oprot); + _iter940.write(oprot); } } } @@ -425,14 +425,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetTablesResult str public void read(org.apache.thrift.protocol.TProtocol prot, GetTablesResult struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list925 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.tables = new ArrayList
(_list925.size); - Table _elem926; - for (int _i927 = 0; _i927 < _list925.size; ++_i927) + org.apache.thrift.protocol.TList _list941 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.tables = new ArrayList
(_list941.size); + Table _elem942; + for (int _i943 = 0; _i943 < _list941.size; ++_i943) { - _elem926 = new Table(); - _elem926.read(iprot); - struct.tables.add(_elem926); + _elem942 = new Table(); + _elem942.read(iprot); + struct.tables.add(_elem942); } } struct.setTablesIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetValidWriteIdsRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetValidWriteIdsRequest.java index 045aa3249f..e9e9a9028c 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetValidWriteIdsRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetValidWriteIdsRequest.java @@ -513,13 +513,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetValidWriteIdsReq case 1: // FULL_TABLE_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list658 = iprot.readListBegin(); - struct.fullTableNames = new ArrayList(_list658.size); - String _elem659; - for (int _i660 = 0; _i660 < _list658.size; ++_i660) + org.apache.thrift.protocol.TList _list674 = iprot.readListBegin(); + struct.fullTableNames = new ArrayList(_list674.size); + String _elem675; + for (int _i676 = 0; _i676 < _list674.size; ++_i676) { - _elem659 = iprot.readString(); - struct.fullTableNames.add(_elem659); + _elem675 = iprot.readString(); + struct.fullTableNames.add(_elem675); } iprot.readListEnd(); } @@ -561,9 +561,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetValidWriteIdsRe oprot.writeFieldBegin(FULL_TABLE_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.fullTableNames.size())); - for (String _iter661 : struct.fullTableNames) + for (String _iter677 : struct.fullTableNames) { - oprot.writeString(_iter661); + oprot.writeString(_iter677); } oprot.writeListEnd(); } @@ -600,9 +600,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetValidWriteIdsReq TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.fullTableNames.size()); - for (String _iter662 : struct.fullTableNames) + for (String _iter678 : struct.fullTableNames) { - oprot.writeString(_iter662); + oprot.writeString(_iter678); } } BitSet optionals = new BitSet(); @@ -625,13 +625,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetValidWriteIdsReq public void read(org.apache.thrift.protocol.TProtocol prot, GetValidWriteIdsRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list663 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.fullTableNames = new ArrayList(_list663.size); - String _elem664; - for (int _i665 = 0; _i665 < _list663.size; ++_i665) + org.apache.thrift.protocol.TList _list679 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.fullTableNames = new ArrayList(_list679.size); + String _elem680; + for (int _i681 = 0; _i681 < _list679.size; ++_i681) { - _elem664 = iprot.readString(); - struct.fullTableNames.add(_elem664); + _elem680 = iprot.readString(); + struct.fullTableNames.add(_elem680); } } struct.setFullTableNamesIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetValidWriteIdsResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetValidWriteIdsResponse.java index 5d4e026c98..4e4a36fa57 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetValidWriteIdsResponse.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetValidWriteIdsResponse.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetValidWriteIdsRes case 1: // TBL_VALID_WRITE_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list674 = iprot.readListBegin(); - struct.tblValidWriteIds = new ArrayList(_list674.size); - TableValidWriteIds _elem675; - for (int _i676 = 0; _i676 < _list674.size; ++_i676) + org.apache.thrift.protocol.TList _list690 = iprot.readListBegin(); + struct.tblValidWriteIds = new ArrayList(_list690.size); + TableValidWriteIds _elem691; + for (int _i692 = 0; _i692 < _list690.size; ++_i692) { - _elem675 = new TableValidWriteIds(); - _elem675.read(iprot); - struct.tblValidWriteIds.add(_elem675); + _elem691 = new TableValidWriteIds(); + _elem691.read(iprot); + struct.tblValidWriteIds.add(_elem691); } iprot.readListEnd(); } @@ -387,9 +387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetValidWriteIdsRe oprot.writeFieldBegin(TBL_VALID_WRITE_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.tblValidWriteIds.size())); - for (TableValidWriteIds _iter677 : struct.tblValidWriteIds) + for (TableValidWriteIds _iter693 : struct.tblValidWriteIds) { - _iter677.write(oprot); + _iter693.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetValidWriteIdsRes TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.tblValidWriteIds.size()); - for (TableValidWriteIds _iter678 : struct.tblValidWriteIds) + for (TableValidWriteIds _iter694 : struct.tblValidWriteIds) { - _iter678.write(oprot); + _iter694.write(oprot); } } } @@ -425,14 +425,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetValidWriteIdsRes public void read(org.apache.thrift.protocol.TProtocol prot, GetValidWriteIdsResponse struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list679 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.tblValidWriteIds = new ArrayList(_list679.size); - TableValidWriteIds _elem680; - for (int _i681 = 0; _i681 < _list679.size; ++_i681) + org.apache.thrift.protocol.TList _list695 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.tblValidWriteIds = new ArrayList(_list695.size); + TableValidWriteIds _elem696; + for (int _i697 = 0; _i697 < _list695.size; ++_i697) { - _elem680 = new TableValidWriteIds(); - _elem680.read(iprot); - struct.tblValidWriteIds.add(_elem680); + _elem696 = new TableValidWriteIds(); + _elem696.read(iprot); + struct.tblValidWriteIds.add(_elem696); } } struct.setTblValidWriteIdsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java index 7edd0ecc35..c00facefd9 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java @@ -453,13 +453,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, HeartbeatTxnRangeRe case 1: // ABORTED if (schemeField.type == org.apache.thrift.protocol.TType.SET) { { - org.apache.thrift.protocol.TSet _set722 = iprot.readSetBegin(); - struct.aborted = new HashSet(2*_set722.size); - long _elem723; - for (int _i724 = 0; _i724 < _set722.size; ++_i724) + org.apache.thrift.protocol.TSet _set738 = iprot.readSetBegin(); + struct.aborted = new HashSet(2*_set738.size); + long _elem739; + for (int _i740 = 0; _i740 < _set738.size; ++_i740) { - _elem723 = iprot.readI64(); - struct.aborted.add(_elem723); + _elem739 = iprot.readI64(); + struct.aborted.add(_elem739); } iprot.readSetEnd(); } @@ -471,13 +471,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, HeartbeatTxnRangeRe case 2: // NOSUCH if (schemeField.type == org.apache.thrift.protocol.TType.SET) { { - org.apache.thrift.protocol.TSet _set725 = iprot.readSetBegin(); - struct.nosuch = new HashSet(2*_set725.size); - long _elem726; - for (int _i727 = 0; _i727 < _set725.size; ++_i727) + org.apache.thrift.protocol.TSet _set741 = iprot.readSetBegin(); + struct.nosuch = new HashSet(2*_set741.size); + long _elem742; + for (int _i743 = 0; _i743 < _set741.size; ++_i743) { - _elem726 = iprot.readI64(); - struct.nosuch.add(_elem726); + _elem742 = iprot.readI64(); + struct.nosuch.add(_elem742); } iprot.readSetEnd(); } @@ -503,9 +503,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, HeartbeatTxnRangeR oprot.writeFieldBegin(ABORTED_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, struct.aborted.size())); - for (long _iter728 : struct.aborted) + for (long _iter744 : struct.aborted) { - oprot.writeI64(_iter728); + oprot.writeI64(_iter744); } oprot.writeSetEnd(); } @@ -515,9 +515,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, HeartbeatTxnRangeR oprot.writeFieldBegin(NOSUCH_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, struct.nosuch.size())); - for (long _iter729 : struct.nosuch) + for (long _iter745 : struct.nosuch) { - oprot.writeI64(_iter729); + oprot.writeI64(_iter745); } oprot.writeSetEnd(); } @@ -542,16 +542,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, HeartbeatTxnRangeRe TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.aborted.size()); - for (long _iter730 : struct.aborted) + for (long _iter746 : struct.aborted) { - oprot.writeI64(_iter730); + oprot.writeI64(_iter746); } } { oprot.writeI32(struct.nosuch.size()); - for (long _iter731 : struct.nosuch) + for (long _iter747 : struct.nosuch) { - oprot.writeI64(_iter731); + oprot.writeI64(_iter747); } } } @@ -560,24 +560,24 @@ public void write(org.apache.thrift.protocol.TProtocol prot, HeartbeatTxnRangeRe public void read(org.apache.thrift.protocol.TProtocol prot, HeartbeatTxnRangeResponse struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TSet _set732 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.aborted = new HashSet(2*_set732.size); - long _elem733; - for (int _i734 = 0; _i734 < _set732.size; ++_i734) + org.apache.thrift.protocol.TSet _set748 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.aborted = new HashSet(2*_set748.size); + long _elem749; + for (int _i750 = 0; _i750 < _set748.size; ++_i750) { - _elem733 = iprot.readI64(); - struct.aborted.add(_elem733); + _elem749 = iprot.readI64(); + struct.aborted.add(_elem749); } } struct.setAbortedIsSet(true); { - org.apache.thrift.protocol.TSet _set735 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.nosuch = new HashSet(2*_set735.size); - long _elem736; - for (int _i737 = 0; _i737 < _set735.size; ++_i737) + org.apache.thrift.protocol.TSet _set751 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.nosuch = new HashSet(2*_set751.size); + long _elem752; + for (int _i753 = 0; _i753 < _set751.size; ++_i753) { - _elem736 = iprot.readI64(); - struct.nosuch.add(_elem736); + _elem752 = iprot.readI64(); + struct.nosuch.add(_elem752); } } struct.setNosuchIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java index 85049745dd..adbf18cfd2 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java @@ -636,13 +636,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, InsertEventRequestD case 2: // FILES_ADDED if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list780 = iprot.readListBegin(); - struct.filesAdded = new ArrayList(_list780.size); - String _elem781; - for (int _i782 = 0; _i782 < _list780.size; ++_i782) + org.apache.thrift.protocol.TList _list796 = iprot.readListBegin(); + struct.filesAdded = new ArrayList(_list796.size); + String _elem797; + for (int _i798 = 0; _i798 < _list796.size; ++_i798) { - _elem781 = iprot.readString(); - struct.filesAdded.add(_elem781); + _elem797 = iprot.readString(); + struct.filesAdded.add(_elem797); } iprot.readListEnd(); } @@ -654,13 +654,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, InsertEventRequestD case 3: // FILES_ADDED_CHECKSUM if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list783 = iprot.readListBegin(); - struct.filesAddedChecksum = new ArrayList(_list783.size); - String _elem784; - for (int _i785 = 0; _i785 < _list783.size; ++_i785) + org.apache.thrift.protocol.TList _list799 = iprot.readListBegin(); + struct.filesAddedChecksum = new ArrayList(_list799.size); + String _elem800; + for (int _i801 = 0; _i801 < _list799.size; ++_i801) { - _elem784 = iprot.readString(); - struct.filesAddedChecksum.add(_elem784); + _elem800 = iprot.readString(); + struct.filesAddedChecksum.add(_elem800); } iprot.readListEnd(); } @@ -672,13 +672,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, InsertEventRequestD case 4: // SUB_DIRECTORY_LIST if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list786 = iprot.readListBegin(); - struct.subDirectoryList = new ArrayList(_list786.size); - String _elem787; - for (int _i788 = 0; _i788 < _list786.size; ++_i788) + org.apache.thrift.protocol.TList _list802 = iprot.readListBegin(); + struct.subDirectoryList = new ArrayList(_list802.size); + String _elem803; + for (int _i804 = 0; _i804 < _list802.size; ++_i804) { - _elem787 = iprot.readString(); - struct.subDirectoryList.add(_elem787); + _elem803 = iprot.readString(); + struct.subDirectoryList.add(_elem803); } iprot.readListEnd(); } @@ -709,9 +709,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, InsertEventRequest oprot.writeFieldBegin(FILES_ADDED_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.filesAdded.size())); - for (String _iter789 : struct.filesAdded) + for (String _iter805 : struct.filesAdded) { - oprot.writeString(_iter789); + oprot.writeString(_iter805); } oprot.writeListEnd(); } @@ -722,9 +722,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, InsertEventRequest oprot.writeFieldBegin(FILES_ADDED_CHECKSUM_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.filesAddedChecksum.size())); - for (String _iter790 : struct.filesAddedChecksum) + for (String _iter806 : struct.filesAddedChecksum) { - oprot.writeString(_iter790); + oprot.writeString(_iter806); } oprot.writeListEnd(); } @@ -736,9 +736,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, InsertEventRequest oprot.writeFieldBegin(SUB_DIRECTORY_LIST_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.subDirectoryList.size())); - for (String _iter791 : struct.subDirectoryList) + for (String _iter807 : struct.subDirectoryList) { - oprot.writeString(_iter791); + oprot.writeString(_iter807); } oprot.writeListEnd(); } @@ -764,9 +764,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, InsertEventRequestD TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.filesAdded.size()); - for (String _iter792 : struct.filesAdded) + for (String _iter808 : struct.filesAdded) { - oprot.writeString(_iter792); + oprot.writeString(_iter808); } } BitSet optionals = new BitSet(); @@ -786,18 +786,18 @@ public void write(org.apache.thrift.protocol.TProtocol prot, InsertEventRequestD if (struct.isSetFilesAddedChecksum()) { { oprot.writeI32(struct.filesAddedChecksum.size()); - for (String _iter793 : struct.filesAddedChecksum) + for (String _iter809 : struct.filesAddedChecksum) { - oprot.writeString(_iter793); + oprot.writeString(_iter809); } } } if (struct.isSetSubDirectoryList()) { { oprot.writeI32(struct.subDirectoryList.size()); - for (String _iter794 : struct.subDirectoryList) + for (String _iter810 : struct.subDirectoryList) { - oprot.writeString(_iter794); + oprot.writeString(_iter810); } } } @@ -807,13 +807,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, InsertEventRequestD public void read(org.apache.thrift.protocol.TProtocol prot, InsertEventRequestData struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list795 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.filesAdded = new ArrayList(_list795.size); - String _elem796; - for (int _i797 = 0; _i797 < _list795.size; ++_i797) + org.apache.thrift.protocol.TList _list811 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.filesAdded = new ArrayList(_list811.size); + String _elem812; + for (int _i813 = 0; _i813 < _list811.size; ++_i813) { - _elem796 = iprot.readString(); - struct.filesAdded.add(_elem796); + _elem812 = iprot.readString(); + struct.filesAdded.add(_elem812); } } struct.setFilesAddedIsSet(true); @@ -824,26 +824,26 @@ public void read(org.apache.thrift.protocol.TProtocol prot, InsertEventRequestDa } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list798 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.filesAddedChecksum = new ArrayList(_list798.size); - String _elem799; - for (int _i800 = 0; _i800 < _list798.size; ++_i800) + org.apache.thrift.protocol.TList _list814 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.filesAddedChecksum = new ArrayList(_list814.size); + String _elem815; + for (int _i816 = 0; _i816 < _list814.size; ++_i816) { - _elem799 = iprot.readString(); - struct.filesAddedChecksum.add(_elem799); + _elem815 = iprot.readString(); + struct.filesAddedChecksum.add(_elem815); } } struct.setFilesAddedChecksumIsSet(true); } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list801 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.subDirectoryList = new ArrayList(_list801.size); - String _elem802; - for (int _i803 = 0; _i803 < _list801.size; ++_i803) + org.apache.thrift.protocol.TList _list817 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.subDirectoryList = new ArrayList(_list817.size); + String _elem818; + for (int _i819 = 0; _i819 < _list817.size; ++_i819) { - _elem802 = iprot.readString(); - struct.subDirectoryList.add(_elem802); + _elem818 = iprot.readString(); + struct.subDirectoryList.add(_elem818); } } struct.setSubDirectoryListIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java index 2b0ffbab12..7402fb30eb 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java @@ -689,14 +689,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, LockRequest struct) case 1: // COMPONENT if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list706 = iprot.readListBegin(); - struct.component = new ArrayList(_list706.size); - LockComponent _elem707; - for (int _i708 = 0; _i708 < _list706.size; ++_i708) + org.apache.thrift.protocol.TList _list722 = iprot.readListBegin(); + struct.component = new ArrayList(_list722.size); + LockComponent _elem723; + for (int _i724 = 0; _i724 < _list722.size; ++_i724) { - _elem707 = new LockComponent(); - _elem707.read(iprot); - struct.component.add(_elem707); + _elem723 = new LockComponent(); + _elem723.read(iprot); + struct.component.add(_elem723); } iprot.readListEnd(); } @@ -754,9 +754,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, LockRequest struct oprot.writeFieldBegin(COMPONENT_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.component.size())); - for (LockComponent _iter709 : struct.component) + for (LockComponent _iter725 : struct.component) { - _iter709.write(oprot); + _iter725.write(oprot); } oprot.writeListEnd(); } @@ -803,9 +803,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, LockRequest struct) TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.component.size()); - for (LockComponent _iter710 : struct.component) + for (LockComponent _iter726 : struct.component) { - _iter710.write(oprot); + _iter726.write(oprot); } } oprot.writeString(struct.user); @@ -830,14 +830,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, LockRequest struct) public void read(org.apache.thrift.protocol.TProtocol prot, LockRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list711 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.component = new ArrayList(_list711.size); - LockComponent _elem712; - for (int _i713 = 0; _i713 < _list711.size; ++_i713) + org.apache.thrift.protocol.TList _list727 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.component = new ArrayList(_list727.size); + LockComponent _elem728; + for (int _i729 = 0; _i729 < _list727.size; ++_i729) { - _elem712 = new LockComponent(); - _elem712.read(iprot); - struct.component.add(_elem712); + _elem728 = new LockComponent(); + _elem728.read(iprot); + struct.component.add(_elem728); } } struct.setComponentIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotNullConstraintsResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotNullConstraintsResponse.java index a7944f5bf9..a671aea8d5 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotNullConstraintsResponse.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotNullConstraintsResponse.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, NotNullConstraintsR case 1: // NOT_NULL_CONSTRAINTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list360 = iprot.readListBegin(); - struct.notNullConstraints = new ArrayList(_list360.size); - SQLNotNullConstraint _elem361; - for (int _i362 = 0; _i362 < _list360.size; ++_i362) + org.apache.thrift.protocol.TList _list376 = iprot.readListBegin(); + struct.notNullConstraints = new ArrayList(_list376.size); + SQLNotNullConstraint _elem377; + for (int _i378 = 0; _i378 < _list376.size; ++_i378) { - _elem361 = new SQLNotNullConstraint(); - _elem361.read(iprot); - struct.notNullConstraints.add(_elem361); + _elem377 = new SQLNotNullConstraint(); + _elem377.read(iprot); + struct.notNullConstraints.add(_elem377); } iprot.readListEnd(); } @@ -387,9 +387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, NotNullConstraints 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 _iter363 : struct.notNullConstraints) + for (SQLNotNullConstraint _iter379 : struct.notNullConstraints) { - _iter363.write(oprot); + _iter379.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, NotNullConstraintsR TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.notNullConstraints.size()); - for (SQLNotNullConstraint _iter364 : struct.notNullConstraints) + for (SQLNotNullConstraint _iter380 : struct.notNullConstraints) { - _iter364.write(oprot); + _iter380.write(oprot); } } } @@ -425,14 +425,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, NotNullConstraintsR public void read(org.apache.thrift.protocol.TProtocol prot, NotNullConstraintsResponse struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list365 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.notNullConstraints = new ArrayList(_list365.size); - SQLNotNullConstraint _elem366; - for (int _i367 = 0; _i367 < _list365.size; ++_i367) + org.apache.thrift.protocol.TList _list381 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.notNullConstraints = new ArrayList(_list381.size); + SQLNotNullConstraint _elem382; + for (int _i383 = 0; _i383 < _list381.size; ++_i383) { - _elem366 = new SQLNotNullConstraint(); - _elem366.read(iprot); - struct.notNullConstraints.add(_elem366); + _elem382 = new SQLNotNullConstraint(); + _elem382.read(iprot); + struct.notNullConstraints.add(_elem382); } } struct.setNotNullConstraintsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventRequest.java index 32b9654d14..c2207eb654 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventRequest.java @@ -525,13 +525,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, NotificationEventRe case 3: // EVENT_TYPE_SKIP_LIST if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list764 = iprot.readListBegin(); - struct.eventTypeSkipList = new ArrayList(_list764.size); - String _elem765; - for (int _i766 = 0; _i766 < _list764.size; ++_i766) + org.apache.thrift.protocol.TList _list780 = iprot.readListBegin(); + struct.eventTypeSkipList = new ArrayList(_list780.size); + String _elem781; + for (int _i782 = 0; _i782 < _list780.size; ++_i782) { - _elem765 = iprot.readString(); - struct.eventTypeSkipList.add(_elem765); + _elem781 = iprot.readString(); + struct.eventTypeSkipList.add(_elem781); } iprot.readListEnd(); } @@ -566,9 +566,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, NotificationEventR oprot.writeFieldBegin(EVENT_TYPE_SKIP_LIST_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.eventTypeSkipList.size())); - for (String _iter767 : struct.eventTypeSkipList) + for (String _iter783 : struct.eventTypeSkipList) { - oprot.writeString(_iter767); + oprot.writeString(_iter783); } oprot.writeListEnd(); } @@ -607,9 +607,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, NotificationEventRe if (struct.isSetEventTypeSkipList()) { { oprot.writeI32(struct.eventTypeSkipList.size()); - for (String _iter768 : struct.eventTypeSkipList) + for (String _iter784 : struct.eventTypeSkipList) { - oprot.writeString(_iter768); + oprot.writeString(_iter784); } } } @@ -627,13 +627,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, NotificationEventReq } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list769 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.eventTypeSkipList = new ArrayList(_list769.size); - String _elem770; - for (int _i771 = 0; _i771 < _list769.size; ++_i771) + org.apache.thrift.protocol.TList _list785 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.eventTypeSkipList = new ArrayList(_list785.size); + String _elem786; + for (int _i787 = 0; _i787 < _list785.size; ++_i787) { - _elem770 = iprot.readString(); - struct.eventTypeSkipList.add(_elem770); + _elem786 = iprot.readString(); + struct.eventTypeSkipList.add(_elem786); } } struct.setEventTypeSkipListIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java index 580edf8a1d..b1595a7d32 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, NotificationEventRe case 1: // EVENTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list772 = iprot.readListBegin(); - struct.events = new ArrayList(_list772.size); - NotificationEvent _elem773; - for (int _i774 = 0; _i774 < _list772.size; ++_i774) + org.apache.thrift.protocol.TList _list788 = iprot.readListBegin(); + struct.events = new ArrayList(_list788.size); + NotificationEvent _elem789; + for (int _i790 = 0; _i790 < _list788.size; ++_i790) { - _elem773 = new NotificationEvent(); - _elem773.read(iprot); - struct.events.add(_elem773); + _elem789 = new NotificationEvent(); + _elem789.read(iprot); + struct.events.add(_elem789); } iprot.readListEnd(); } @@ -387,9 +387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, NotificationEventR oprot.writeFieldBegin(EVENTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.events.size())); - for (NotificationEvent _iter775 : struct.events) + for (NotificationEvent _iter791 : struct.events) { - _iter775.write(oprot); + _iter791.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, NotificationEventRe TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.events.size()); - for (NotificationEvent _iter776 : struct.events) + for (NotificationEvent _iter792 : struct.events) { - _iter776.write(oprot); + _iter792.write(oprot); } } } @@ -425,14 +425,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, NotificationEventRe public void read(org.apache.thrift.protocol.TProtocol prot, NotificationEventResponse struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list777 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.events = new ArrayList(_list777.size); - NotificationEvent _elem778; - for (int _i779 = 0; _i779 < _list777.size; ++_i779) + org.apache.thrift.protocol.TList _list793 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.events = new ArrayList(_list793.size); + NotificationEvent _elem794; + for (int _i795 = 0; _i795 < _list793.size; ++_i795) { - _elem778 = new NotificationEvent(); - _elem778.read(iprot); - struct.events.add(_elem778); + _elem794 = new NotificationEvent(); + _elem794.read(iprot); + struct.events.add(_elem794); } } struct.setEventsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnRequest.java index a226516a6e..e6bff8d533 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnRequest.java @@ -904,13 +904,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, OpenTxnRequest stru case 6: // REPL_SRC_TXN_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list610 = iprot.readListBegin(); - struct.replSrcTxnIds = new ArrayList(_list610.size); - long _elem611; - for (int _i612 = 0; _i612 < _list610.size; ++_i612) + org.apache.thrift.protocol.TList _list626 = iprot.readListBegin(); + struct.replSrcTxnIds = new ArrayList(_list626.size); + long _elem627; + for (int _i628 = 0; _i628 < _list626.size; ++_i628) { - _elem611 = iprot.readI64(); - struct.replSrcTxnIds.add(_elem611); + _elem627 = iprot.readI64(); + struct.replSrcTxnIds.add(_elem627); } iprot.readListEnd(); } @@ -972,9 +972,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, OpenTxnRequest str oprot.writeFieldBegin(REPL_SRC_TXN_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.replSrcTxnIds.size())); - for (long _iter613 : struct.replSrcTxnIds) + for (long _iter629 : struct.replSrcTxnIds) { - oprot.writeI64(_iter613); + oprot.writeI64(_iter629); } oprot.writeListEnd(); } @@ -1031,9 +1031,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, OpenTxnRequest stru if (struct.isSetReplSrcTxnIds()) { { oprot.writeI32(struct.replSrcTxnIds.size()); - for (long _iter614 : struct.replSrcTxnIds) + for (long _iter630 : struct.replSrcTxnIds) { - oprot.writeI64(_iter614); + oprot.writeI64(_iter630); } } } @@ -1062,13 +1062,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, OpenTxnRequest struc } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list615 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.replSrcTxnIds = new ArrayList(_list615.size); - long _elem616; - for (int _i617 = 0; _i617 < _list615.size; ++_i617) + org.apache.thrift.protocol.TList _list631 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.replSrcTxnIds = new ArrayList(_list631.size); + long _elem632; + for (int _i633 = 0; _i633 < _list631.size; ++_i633) { - _elem616 = iprot.readI64(); - struct.replSrcTxnIds.add(_elem616); + _elem632 = iprot.readI64(); + struct.replSrcTxnIds.add(_elem632); } } struct.setReplSrcTxnIdsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java index 9c9c918d21..77c9fc1b15 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java @@ -351,13 +351,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, OpenTxnsResponse st case 1: // TXN_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list618 = iprot.readListBegin(); - struct.txn_ids = new ArrayList(_list618.size); - long _elem619; - for (int _i620 = 0; _i620 < _list618.size; ++_i620) + org.apache.thrift.protocol.TList _list634 = iprot.readListBegin(); + struct.txn_ids = new ArrayList(_list634.size); + long _elem635; + for (int _i636 = 0; _i636 < _list634.size; ++_i636) { - _elem619 = iprot.readI64(); - struct.txn_ids.add(_elem619); + _elem635 = iprot.readI64(); + struct.txn_ids.add(_elem635); } iprot.readListEnd(); } @@ -383,9 +383,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, OpenTxnsResponse s oprot.writeFieldBegin(TXN_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.txn_ids.size())); - for (long _iter621 : struct.txn_ids) + for (long _iter637 : struct.txn_ids) { - oprot.writeI64(_iter621); + oprot.writeI64(_iter637); } oprot.writeListEnd(); } @@ -410,9 +410,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, OpenTxnsResponse st TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.txn_ids.size()); - for (long _iter622 : struct.txn_ids) + for (long _iter638 : struct.txn_ids) { - oprot.writeI64(_iter622); + oprot.writeI64(_iter638); } } } @@ -421,13 +421,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, OpenTxnsResponse st public void read(org.apache.thrift.protocol.TProtocol prot, OpenTxnsResponse struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list623 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.txn_ids = new ArrayList(_list623.size); - long _elem624; - for (int _i625 = 0; _i625 < _list623.size; ++_i625) + org.apache.thrift.protocol.TList _list639 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.txn_ids = new ArrayList(_list639.size); + long _elem640; + for (int _i641 = 0; _i641 < _list639.size; ++_i641) { - _elem624 = iprot.readI64(); - struct.txn_ids.add(_elem624); + _elem640 = iprot.readI64(); + struct.txn_ids.add(_elem640); } } struct.setTxn_idsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java index 2db0fbc23e..e4e63b6fa8 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java @@ -1247,13 +1247,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Partition struct) t case 1: // VALUES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list232 = iprot.readListBegin(); - struct.values = new ArrayList(_list232.size); - String _elem233; - for (int _i234 = 0; _i234 < _list232.size; ++_i234) + org.apache.thrift.protocol.TList _list248 = iprot.readListBegin(); + struct.values = new ArrayList(_list248.size); + String _elem249; + for (int _i250 = 0; _i250 < _list248.size; ++_i250) { - _elem233 = iprot.readString(); - struct.values.add(_elem233); + _elem249 = iprot.readString(); + struct.values.add(_elem249); } iprot.readListEnd(); } @@ -1306,15 +1306,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Partition struct) t case 7: // PARAMETERS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map235 = iprot.readMapBegin(); - struct.parameters = new HashMap(2*_map235.size); - String _key236; - String _val237; - for (int _i238 = 0; _i238 < _map235.size; ++_i238) + org.apache.thrift.protocol.TMap _map251 = iprot.readMapBegin(); + struct.parameters = new HashMap(2*_map251.size); + String _key252; + String _val253; + for (int _i254 = 0; _i254 < _map251.size; ++_i254) { - _key236 = iprot.readString(); - _val237 = iprot.readString(); - struct.parameters.put(_key236, _val237); + _key252 = iprot.readString(); + _val253 = iprot.readString(); + struct.parameters.put(_key252, _val253); } iprot.readMapEnd(); } @@ -1382,9 +1382,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, Partition struct) oprot.writeFieldBegin(VALUES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.values.size())); - for (String _iter239 : struct.values) + for (String _iter255 : struct.values) { - oprot.writeString(_iter239); + oprot.writeString(_iter255); } oprot.writeListEnd(); } @@ -1415,10 +1415,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, Partition struct) oprot.writeFieldBegin(PARAMETERS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.parameters.size())); - for (Map.Entry _iter240 : struct.parameters.entrySet()) + for (Map.Entry _iter256 : struct.parameters.entrySet()) { - oprot.writeString(_iter240.getKey()); - oprot.writeString(_iter240.getValue()); + oprot.writeString(_iter256.getKey()); + oprot.writeString(_iter256.getValue()); } oprot.writeMapEnd(); } @@ -1513,9 +1513,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Partition struct) t if (struct.isSetValues()) { { oprot.writeI32(struct.values.size()); - for (String _iter241 : struct.values) + for (String _iter257 : struct.values) { - oprot.writeString(_iter241); + oprot.writeString(_iter257); } } } @@ -1537,10 +1537,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Partition struct) t if (struct.isSetParameters()) { { oprot.writeI32(struct.parameters.size()); - for (Map.Entry _iter242 : struct.parameters.entrySet()) + for (Map.Entry _iter258 : struct.parameters.entrySet()) { - oprot.writeString(_iter242.getKey()); - oprot.writeString(_iter242.getValue()); + oprot.writeString(_iter258.getKey()); + oprot.writeString(_iter258.getValue()); } } } @@ -1567,13 +1567,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Partition struct) th BitSet incoming = iprot.readBitSet(12); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list243 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.values = new ArrayList(_list243.size); - String _elem244; - for (int _i245 = 0; _i245 < _list243.size; ++_i245) + org.apache.thrift.protocol.TList _list259 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.values = new ArrayList(_list259.size); + String _elem260; + for (int _i261 = 0; _i261 < _list259.size; ++_i261) { - _elem244 = iprot.readString(); - struct.values.add(_elem244); + _elem260 = iprot.readString(); + struct.values.add(_elem260); } } struct.setValuesIsSet(true); @@ -1601,15 +1601,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Partition struct) th } if (incoming.get(6)) { { - org.apache.thrift.protocol.TMap _map246 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.parameters = new HashMap(2*_map246.size); - String _key247; - String _val248; - for (int _i249 = 0; _i249 < _map246.size; ++_i249) + org.apache.thrift.protocol.TMap _map262 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.parameters = new HashMap(2*_map262.size); + String _key263; + String _val264; + for (int _i265 = 0; _i265 < _map262.size; ++_i265) { - _key247 = iprot.readString(); - _val248 = iprot.readString(); - struct.parameters.put(_key247, _val248); + _key263 = iprot.readString(); + _val264 = iprot.readString(); + struct.parameters.put(_key263, _val264); } } struct.parameters = org.apache.hadoop.hive.metastore.utils.StringUtils.intern(struct.parameters); struct.setParametersIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionListComposingSpec.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionListComposingSpec.java index f265c491e3..5667d40c9d 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionListComposingSpec.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionListComposingSpec.java @@ -350,14 +350,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionListCompos case 1: // PARTITIONS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list284 = iprot.readListBegin(); - struct.partitions = new ArrayList(_list284.size); - Partition _elem285; - for (int _i286 = 0; _i286 < _list284.size; ++_i286) + org.apache.thrift.protocol.TList _list300 = iprot.readListBegin(); + struct.partitions = new ArrayList(_list300.size); + Partition _elem301; + for (int _i302 = 0; _i302 < _list300.size; ++_i302) { - _elem285 = new Partition(); - _elem285.read(iprot); - struct.partitions.add(_elem285); + _elem301 = new Partition(); + _elem301.read(iprot); + struct.partitions.add(_elem301); } iprot.readListEnd(); } @@ -383,9 +383,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PartitionListCompo oprot.writeFieldBegin(PARTITIONS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitions.size())); - for (Partition _iter287 : struct.partitions) + for (Partition _iter303 : struct.partitions) { - _iter287.write(oprot); + _iter303.write(oprot); } oprot.writeListEnd(); } @@ -416,9 +416,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionListCompos if (struct.isSetPartitions()) { { oprot.writeI32(struct.partitions.size()); - for (Partition _iter288 : struct.partitions) + for (Partition _iter304 : struct.partitions) { - _iter288.write(oprot); + _iter304.write(oprot); } } } @@ -430,14 +430,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PartitionListComposi BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list289 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitions = new ArrayList(_list289.size); - Partition _elem290; - for (int _i291 = 0; _i291 < _list289.size; ++_i291) + org.apache.thrift.protocol.TList _list305 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitions = new ArrayList(_list305.size); + Partition _elem306; + for (int _i307 = 0; _i307 < _list305.size; ++_i307) { - _elem290 = new Partition(); - _elem290.read(iprot); - struct.partitions.add(_elem290); + _elem306 = new Partition(); + _elem306.read(iprot); + struct.partitions.add(_elem306); } } struct.setPartitionsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionSpecWithSharedSD.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionSpecWithSharedSD.java index 01b9e7d71b..e3f90bc1f9 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionSpecWithSharedSD.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionSpecWithSharedSD.java @@ -434,14 +434,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionSpecWithSh case 1: // PARTITIONS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list268 = iprot.readListBegin(); - struct.partitions = new ArrayList(_list268.size); - PartitionWithoutSD _elem269; - for (int _i270 = 0; _i270 < _list268.size; ++_i270) + org.apache.thrift.protocol.TList _list284 = iprot.readListBegin(); + struct.partitions = new ArrayList(_list284.size); + PartitionWithoutSD _elem285; + for (int _i286 = 0; _i286 < _list284.size; ++_i286) { - _elem269 = new PartitionWithoutSD(); - _elem269.read(iprot); - struct.partitions.add(_elem269); + _elem285 = new PartitionWithoutSD(); + _elem285.read(iprot); + struct.partitions.add(_elem285); } iprot.readListEnd(); } @@ -476,9 +476,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PartitionSpecWithS oprot.writeFieldBegin(PARTITIONS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitions.size())); - for (PartitionWithoutSD _iter271 : struct.partitions) + for (PartitionWithoutSD _iter287 : struct.partitions) { - _iter271.write(oprot); + _iter287.write(oprot); } oprot.writeListEnd(); } @@ -517,9 +517,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionSpecWithSh if (struct.isSetPartitions()) { { oprot.writeI32(struct.partitions.size()); - for (PartitionWithoutSD _iter272 : struct.partitions) + for (PartitionWithoutSD _iter288 : struct.partitions) { - _iter272.write(oprot); + _iter288.write(oprot); } } } @@ -534,14 +534,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PartitionSpecWithSha BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list273 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitions = new ArrayList(_list273.size); - PartitionWithoutSD _elem274; - for (int _i275 = 0; _i275 < _list273.size; ++_i275) + org.apache.thrift.protocol.TList _list289 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitions = new ArrayList(_list289.size); + PartitionWithoutSD _elem290; + for (int _i291 = 0; _i291 < _list289.size; ++_i291) { - _elem274 = new PartitionWithoutSD(); - _elem274.read(iprot); - struct.partitions.add(_elem274); + _elem290 = new PartitionWithoutSD(); + _elem290.read(iprot); + struct.partitions.add(_elem290); } } struct.setPartitionsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesRequest.java index 4f7f322b91..92fb2218f2 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesRequest.java @@ -1042,14 +1042,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionValuesRequ case 3: // PARTITION_KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list530 = iprot.readListBegin(); - struct.partitionKeys = new ArrayList(_list530.size); - FieldSchema _elem531; - for (int _i532 = 0; _i532 < _list530.size; ++_i532) + org.apache.thrift.protocol.TList _list546 = iprot.readListBegin(); + struct.partitionKeys = new ArrayList(_list546.size); + FieldSchema _elem547; + for (int _i548 = 0; _i548 < _list546.size; ++_i548) { - _elem531 = new FieldSchema(); - _elem531.read(iprot); - struct.partitionKeys.add(_elem531); + _elem547 = new FieldSchema(); + _elem547.read(iprot); + struct.partitionKeys.add(_elem547); } iprot.readListEnd(); } @@ -1077,14 +1077,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionValuesRequ case 6: // PARTITION_ORDER if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list533 = iprot.readListBegin(); - struct.partitionOrder = new ArrayList(_list533.size); - FieldSchema _elem534; - for (int _i535 = 0; _i535 < _list533.size; ++_i535) + org.apache.thrift.protocol.TList _list549 = iprot.readListBegin(); + struct.partitionOrder = new ArrayList(_list549.size); + FieldSchema _elem550; + for (int _i551 = 0; _i551 < _list549.size; ++_i551) { - _elem534 = new FieldSchema(); - _elem534.read(iprot); - struct.partitionOrder.add(_elem534); + _elem550 = new FieldSchema(); + _elem550.read(iprot); + struct.partitionOrder.add(_elem550); } iprot.readListEnd(); } @@ -1144,9 +1144,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PartitionValuesReq oprot.writeFieldBegin(PARTITION_KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitionKeys.size())); - for (FieldSchema _iter536 : struct.partitionKeys) + for (FieldSchema _iter552 : struct.partitionKeys) { - _iter536.write(oprot); + _iter552.write(oprot); } oprot.writeListEnd(); } @@ -1169,9 +1169,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PartitionValuesReq oprot.writeFieldBegin(PARTITION_ORDER_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitionOrder.size())); - for (FieldSchema _iter537 : struct.partitionOrder) + for (FieldSchema _iter553 : struct.partitionOrder) { - _iter537.write(oprot); + _iter553.write(oprot); } oprot.writeListEnd(); } @@ -1216,9 +1216,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionValuesRequ oprot.writeString(struct.tblName); { oprot.writeI32(struct.partitionKeys.size()); - for (FieldSchema _iter538 : struct.partitionKeys) + for (FieldSchema _iter554 : struct.partitionKeys) { - _iter538.write(oprot); + _iter554.write(oprot); } } BitSet optionals = new BitSet(); @@ -1250,9 +1250,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionValuesRequ if (struct.isSetPartitionOrder()) { { oprot.writeI32(struct.partitionOrder.size()); - for (FieldSchema _iter539 : struct.partitionOrder) + for (FieldSchema _iter555 : struct.partitionOrder) { - _iter539.write(oprot); + _iter555.write(oprot); } } } @@ -1275,14 +1275,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PartitionValuesReque struct.tblName = iprot.readString(); struct.setTblNameIsSet(true); { - org.apache.thrift.protocol.TList _list540 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitionKeys = new ArrayList(_list540.size); - FieldSchema _elem541; - for (int _i542 = 0; _i542 < _list540.size; ++_i542) + org.apache.thrift.protocol.TList _list556 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitionKeys = new ArrayList(_list556.size); + FieldSchema _elem557; + for (int _i558 = 0; _i558 < _list556.size; ++_i558) { - _elem541 = new FieldSchema(); - _elem541.read(iprot); - struct.partitionKeys.add(_elem541); + _elem557 = new FieldSchema(); + _elem557.read(iprot); + struct.partitionKeys.add(_elem557); } } struct.setPartitionKeysIsSet(true); @@ -1297,14 +1297,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PartitionValuesReque } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list543 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitionOrder = new ArrayList(_list543.size); - FieldSchema _elem544; - for (int _i545 = 0; _i545 < _list543.size; ++_i545) + org.apache.thrift.protocol.TList _list559 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitionOrder = new ArrayList(_list559.size); + FieldSchema _elem560; + for (int _i561 = 0; _i561 < _list559.size; ++_i561) { - _elem544 = new FieldSchema(); - _elem544.read(iprot); - struct.partitionOrder.add(_elem544); + _elem560 = new FieldSchema(); + _elem560.read(iprot); + struct.partitionOrder.add(_elem560); } } struct.setPartitionOrderIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesResponse.java index e197480084..bd56d872ef 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesResponse.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesResponse.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionValuesResp case 1: // PARTITION_VALUES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list554 = iprot.readListBegin(); - struct.partitionValues = new ArrayList(_list554.size); - PartitionValuesRow _elem555; - for (int _i556 = 0; _i556 < _list554.size; ++_i556) + org.apache.thrift.protocol.TList _list570 = iprot.readListBegin(); + struct.partitionValues = new ArrayList(_list570.size); + PartitionValuesRow _elem571; + for (int _i572 = 0; _i572 < _list570.size; ++_i572) { - _elem555 = new PartitionValuesRow(); - _elem555.read(iprot); - struct.partitionValues.add(_elem555); + _elem571 = new PartitionValuesRow(); + _elem571.read(iprot); + struct.partitionValues.add(_elem571); } iprot.readListEnd(); } @@ -387,9 +387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PartitionValuesRes oprot.writeFieldBegin(PARTITION_VALUES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitionValues.size())); - for (PartitionValuesRow _iter557 : struct.partitionValues) + for (PartitionValuesRow _iter573 : struct.partitionValues) { - _iter557.write(oprot); + _iter573.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionValuesResp TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.partitionValues.size()); - for (PartitionValuesRow _iter558 : struct.partitionValues) + for (PartitionValuesRow _iter574 : struct.partitionValues) { - _iter558.write(oprot); + _iter574.write(oprot); } } } @@ -425,14 +425,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionValuesResp public void read(org.apache.thrift.protocol.TProtocol prot, PartitionValuesResponse struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list559 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitionValues = new ArrayList(_list559.size); - PartitionValuesRow _elem560; - for (int _i561 = 0; _i561 < _list559.size; ++_i561) + org.apache.thrift.protocol.TList _list575 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitionValues = new ArrayList(_list575.size); + PartitionValuesRow _elem576; + for (int _i577 = 0; _i577 < _list575.size; ++_i577) { - _elem560 = new PartitionValuesRow(); - _elem560.read(iprot); - struct.partitionValues.add(_elem560); + _elem576 = new PartitionValuesRow(); + _elem576.read(iprot); + struct.partitionValues.add(_elem576); } } struct.setPartitionValuesIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesRow.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesRow.java index 31fed8f4db..2f571974cd 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesRow.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesRow.java @@ -351,13 +351,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionValuesRow case 1: // ROW if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list546 = iprot.readListBegin(); - struct.row = new ArrayList(_list546.size); - String _elem547; - for (int _i548 = 0; _i548 < _list546.size; ++_i548) + org.apache.thrift.protocol.TList _list562 = iprot.readListBegin(); + struct.row = new ArrayList(_list562.size); + String _elem563; + for (int _i564 = 0; _i564 < _list562.size; ++_i564) { - _elem547 = iprot.readString(); - struct.row.add(_elem547); + _elem563 = iprot.readString(); + struct.row.add(_elem563); } iprot.readListEnd(); } @@ -383,9 +383,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PartitionValuesRow oprot.writeFieldBegin(ROW_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.row.size())); - for (String _iter549 : struct.row) + for (String _iter565 : struct.row) { - oprot.writeString(_iter549); + oprot.writeString(_iter565); } oprot.writeListEnd(); } @@ -410,9 +410,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionValuesRow TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.row.size()); - for (String _iter550 : struct.row) + for (String _iter566 : struct.row) { - oprot.writeString(_iter550); + oprot.writeString(_iter566); } } } @@ -421,13 +421,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionValuesRow public void read(org.apache.thrift.protocol.TProtocol prot, PartitionValuesRow struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list551 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.row = new ArrayList(_list551.size); - String _elem552; - for (int _i553 = 0; _i553 < _list551.size; ++_i553) + org.apache.thrift.protocol.TList _list567 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.row = new ArrayList(_list567.size); + String _elem568; + for (int _i569 = 0; _i569 < _list567.size; ++_i569) { - _elem552 = iprot.readString(); - struct.row.add(_elem552); + _elem568 = iprot.readString(); + struct.row.add(_elem568); } } struct.setRowIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionWithoutSD.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionWithoutSD.java index f00d5b88e7..6861ec5f06 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionWithoutSD.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionWithoutSD.java @@ -766,13 +766,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionWithoutSD case 1: // VALUES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list250 = iprot.readListBegin(); - struct.values = new ArrayList(_list250.size); - String _elem251; - for (int _i252 = 0; _i252 < _list250.size; ++_i252) + org.apache.thrift.protocol.TList _list266 = iprot.readListBegin(); + struct.values = new ArrayList(_list266.size); + String _elem267; + for (int _i268 = 0; _i268 < _list266.size; ++_i268) { - _elem251 = iprot.readString(); - struct.values.add(_elem251); + _elem267 = iprot.readString(); + struct.values.add(_elem267); } iprot.readListEnd(); } @@ -808,15 +808,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionWithoutSD case 5: // PARAMETERS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map253 = iprot.readMapBegin(); - struct.parameters = new HashMap(2*_map253.size); - String _key254; - String _val255; - for (int _i256 = 0; _i256 < _map253.size; ++_i256) + org.apache.thrift.protocol.TMap _map269 = iprot.readMapBegin(); + struct.parameters = new HashMap(2*_map269.size); + String _key270; + String _val271; + for (int _i272 = 0; _i272 < _map269.size; ++_i272) { - _key254 = iprot.readString(); - _val255 = iprot.readString(); - struct.parameters.put(_key254, _val255); + _key270 = iprot.readString(); + _val271 = iprot.readString(); + struct.parameters.put(_key270, _val271); } iprot.readMapEnd(); } @@ -851,9 +851,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PartitionWithoutSD oprot.writeFieldBegin(VALUES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.values.size())); - for (String _iter257 : struct.values) + for (String _iter273 : struct.values) { - oprot.writeString(_iter257); + oprot.writeString(_iter273); } oprot.writeListEnd(); } @@ -874,10 +874,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PartitionWithoutSD oprot.writeFieldBegin(PARAMETERS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.parameters.size())); - for (Map.Entry _iter258 : struct.parameters.entrySet()) + for (Map.Entry _iter274 : struct.parameters.entrySet()) { - oprot.writeString(_iter258.getKey()); - oprot.writeString(_iter258.getValue()); + oprot.writeString(_iter274.getKey()); + oprot.writeString(_iter274.getValue()); } oprot.writeMapEnd(); } @@ -930,9 +930,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionWithoutSD if (struct.isSetValues()) { { oprot.writeI32(struct.values.size()); - for (String _iter259 : struct.values) + for (String _iter275 : struct.values) { - oprot.writeString(_iter259); + oprot.writeString(_iter275); } } } @@ -948,10 +948,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionWithoutSD if (struct.isSetParameters()) { { oprot.writeI32(struct.parameters.size()); - for (Map.Entry _iter260 : struct.parameters.entrySet()) + for (Map.Entry _iter276 : struct.parameters.entrySet()) { - oprot.writeString(_iter260.getKey()); - oprot.writeString(_iter260.getValue()); + oprot.writeString(_iter276.getKey()); + oprot.writeString(_iter276.getValue()); } } } @@ -966,13 +966,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PartitionWithoutSD s BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list261 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.values = new ArrayList(_list261.size); - String _elem262; - for (int _i263 = 0; _i263 < _list261.size; ++_i263) + org.apache.thrift.protocol.TList _list277 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.values = new ArrayList(_list277.size); + String _elem278; + for (int _i279 = 0; _i279 < _list277.size; ++_i279) { - _elem262 = iprot.readString(); - struct.values.add(_elem262); + _elem278 = iprot.readString(); + struct.values.add(_elem278); } } struct.setValuesIsSet(true); @@ -991,15 +991,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PartitionWithoutSD s } if (incoming.get(4)) { { - org.apache.thrift.protocol.TMap _map264 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.parameters = new HashMap(2*_map264.size); - String _key265; - String _val266; - for (int _i267 = 0; _i267 < _map264.size; ++_i267) + org.apache.thrift.protocol.TMap _map280 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.parameters = new HashMap(2*_map280.size); + String _key281; + String _val282; + for (int _i283 = 0; _i283 < _map280.size; ++_i283) { - _key265 = iprot.readString(); - _val266 = iprot.readString(); - struct.parameters.put(_key265, _val266); + _key281 = iprot.readString(); + _val282 = iprot.readString(); + struct.parameters.put(_key281, _val282); } } struct.setParametersIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprResult.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprResult.java index 1f69d2a0bd..9193733f6f 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprResult.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprResult.java @@ -439,14 +439,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionsByExprRes case 1: // PARTITIONS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list432 = iprot.readListBegin(); - struct.partitions = new ArrayList(_list432.size); - Partition _elem433; - for (int _i434 = 0; _i434 < _list432.size; ++_i434) + org.apache.thrift.protocol.TList _list448 = iprot.readListBegin(); + struct.partitions = new ArrayList(_list448.size); + Partition _elem449; + for (int _i450 = 0; _i450 < _list448.size; ++_i450) { - _elem433 = new Partition(); - _elem433.read(iprot); - struct.partitions.add(_elem433); + _elem449 = new Partition(); + _elem449.read(iprot); + struct.partitions.add(_elem449); } iprot.readListEnd(); } @@ -480,9 +480,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PartitionsByExprRe oprot.writeFieldBegin(PARTITIONS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitions.size())); - for (Partition _iter435 : struct.partitions) + for (Partition _iter451 : struct.partitions) { - _iter435.write(oprot); + _iter451.write(oprot); } oprot.writeListEnd(); } @@ -510,9 +510,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionsByExprRes TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.partitions.size()); - for (Partition _iter436 : struct.partitions) + for (Partition _iter452 : struct.partitions) { - _iter436.write(oprot); + _iter452.write(oprot); } } oprot.writeBool(struct.hasUnknownPartitions); @@ -522,14 +522,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionsByExprRes public void read(org.apache.thrift.protocol.TProtocol prot, PartitionsByExprResult struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list437 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitions = new ArrayList(_list437.size); - Partition _elem438; - for (int _i439 = 0; _i439 < _list437.size; ++_i439) + org.apache.thrift.protocol.TList _list453 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitions = new ArrayList(_list453.size); + Partition _elem454; + for (int _i455 = 0; _i455 < _list453.size; ++_i455) { - _elem438 = new Partition(); - _elem438.read(iprot); - struct.partitions.add(_elem438); + _elem454 = new Partition(); + _elem454.read(iprot); + struct.partitions.add(_elem454); } } struct.setPartitionsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsRequest.java index 54beb0e1c9..2944845c46 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsRequest.java @@ -802,13 +802,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionsStatsRequ case 3: // COL_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list474 = iprot.readListBegin(); - struct.colNames = new ArrayList(_list474.size); - String _elem475; - for (int _i476 = 0; _i476 < _list474.size; ++_i476) + org.apache.thrift.protocol.TList _list490 = iprot.readListBegin(); + struct.colNames = new ArrayList(_list490.size); + String _elem491; + for (int _i492 = 0; _i492 < _list490.size; ++_i492) { - _elem475 = iprot.readString(); - struct.colNames.add(_elem475); + _elem491 = iprot.readString(); + struct.colNames.add(_elem491); } iprot.readListEnd(); } @@ -820,13 +820,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionsStatsRequ case 4: // PART_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list477 = iprot.readListBegin(); - struct.partNames = new ArrayList(_list477.size); - String _elem478; - for (int _i479 = 0; _i479 < _list477.size; ++_i479) + org.apache.thrift.protocol.TList _list493 = iprot.readListBegin(); + struct.partNames = new ArrayList(_list493.size); + String _elem494; + for (int _i495 = 0; _i495 < _list493.size; ++_i495) { - _elem478 = iprot.readString(); - struct.partNames.add(_elem478); + _elem494 = iprot.readString(); + struct.partNames.add(_elem494); } iprot.readListEnd(); } @@ -878,9 +878,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PartitionsStatsReq oprot.writeFieldBegin(COL_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.colNames.size())); - for (String _iter480 : struct.colNames) + for (String _iter496 : struct.colNames) { - oprot.writeString(_iter480); + oprot.writeString(_iter496); } oprot.writeListEnd(); } @@ -890,9 +890,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PartitionsStatsReq 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 _iter481 : struct.partNames) + for (String _iter497 : struct.partNames) { - oprot.writeString(_iter481); + oprot.writeString(_iter497); } oprot.writeListEnd(); } @@ -933,16 +933,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionsStatsRequ oprot.writeString(struct.tblName); { oprot.writeI32(struct.colNames.size()); - for (String _iter482 : struct.colNames) + for (String _iter498 : struct.colNames) { - oprot.writeString(_iter482); + oprot.writeString(_iter498); } } { oprot.writeI32(struct.partNames.size()); - for (String _iter483 : struct.partNames) + for (String _iter499 : struct.partNames) { - oprot.writeString(_iter483); + oprot.writeString(_iter499); } } BitSet optionals = new BitSet(); @@ -969,24 +969,24 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PartitionsStatsReque struct.tblName = iprot.readString(); struct.setTblNameIsSet(true); { - org.apache.thrift.protocol.TList _list484 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.colNames = new ArrayList(_list484.size); - String _elem485; - for (int _i486 = 0; _i486 < _list484.size; ++_i486) + org.apache.thrift.protocol.TList _list500 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.colNames = new ArrayList(_list500.size); + String _elem501; + for (int _i502 = 0; _i502 < _list500.size; ++_i502) { - _elem485 = iprot.readString(); - struct.colNames.add(_elem485); + _elem501 = iprot.readString(); + struct.colNames.add(_elem501); } } struct.setColNamesIsSet(true); { - org.apache.thrift.protocol.TList _list487 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partNames = new ArrayList(_list487.size); - String _elem488; - for (int _i489 = 0; _i489 < _list487.size; ++_i489) + org.apache.thrift.protocol.TList _list503 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partNames = new ArrayList(_list503.size); + String _elem504; + for (int _i505 = 0; _i505 < _list503.size; ++_i505) { - _elem488 = iprot.readString(); - struct.partNames.add(_elem488); + _elem504 = iprot.readString(); + struct.partNames.add(_elem504); } } struct.setPartNamesIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsResult.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsResult.java index 5672259ae9..056018796a 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsResult.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsResult.java @@ -444,26 +444,26 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionsStatsResu case 1: // PART_STATS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map448 = iprot.readMapBegin(); - struct.partStats = new HashMap>(2*_map448.size); - String _key449; - List _val450; - for (int _i451 = 0; _i451 < _map448.size; ++_i451) + org.apache.thrift.protocol.TMap _map464 = iprot.readMapBegin(); + struct.partStats = new HashMap>(2*_map464.size); + String _key465; + List _val466; + for (int _i467 = 0; _i467 < _map464.size; ++_i467) { - _key449 = iprot.readString(); + _key465 = iprot.readString(); { - org.apache.thrift.protocol.TList _list452 = iprot.readListBegin(); - _val450 = new ArrayList(_list452.size); - ColumnStatisticsObj _elem453; - for (int _i454 = 0; _i454 < _list452.size; ++_i454) + org.apache.thrift.protocol.TList _list468 = iprot.readListBegin(); + _val466 = new ArrayList(_list468.size); + ColumnStatisticsObj _elem469; + for (int _i470 = 0; _i470 < _list468.size; ++_i470) { - _elem453 = new ColumnStatisticsObj(); - _elem453.read(iprot); - _val450.add(_elem453); + _elem469 = new ColumnStatisticsObj(); + _elem469.read(iprot); + _val466.add(_elem469); } iprot.readListEnd(); } - struct.partStats.put(_key449, _val450); + struct.partStats.put(_key465, _val466); } iprot.readMapEnd(); } @@ -497,14 +497,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PartitionsStatsRes oprot.writeFieldBegin(PART_STATS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.LIST, struct.partStats.size())); - for (Map.Entry> _iter455 : struct.partStats.entrySet()) + for (Map.Entry> _iter471 : struct.partStats.entrySet()) { - oprot.writeString(_iter455.getKey()); + oprot.writeString(_iter471.getKey()); { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, _iter455.getValue().size())); - for (ColumnStatisticsObj _iter456 : _iter455.getValue()) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, _iter471.getValue().size())); + for (ColumnStatisticsObj _iter472 : _iter471.getValue()) { - _iter456.write(oprot); + _iter472.write(oprot); } oprot.writeListEnd(); } @@ -537,14 +537,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionsStatsResu TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.partStats.size()); - for (Map.Entry> _iter457 : struct.partStats.entrySet()) + for (Map.Entry> _iter473 : struct.partStats.entrySet()) { - oprot.writeString(_iter457.getKey()); + oprot.writeString(_iter473.getKey()); { - oprot.writeI32(_iter457.getValue().size()); - for (ColumnStatisticsObj _iter458 : _iter457.getValue()) + oprot.writeI32(_iter473.getValue().size()); + for (ColumnStatisticsObj _iter474 : _iter473.getValue()) { - _iter458.write(oprot); + _iter474.write(oprot); } } } @@ -563,25 +563,25 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionsStatsResu public void read(org.apache.thrift.protocol.TProtocol prot, PartitionsStatsResult struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TMap _map459 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.LIST, iprot.readI32()); - struct.partStats = new HashMap>(2*_map459.size); - String _key460; - List _val461; - for (int _i462 = 0; _i462 < _map459.size; ++_i462) + org.apache.thrift.protocol.TMap _map475 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.LIST, iprot.readI32()); + struct.partStats = new HashMap>(2*_map475.size); + String _key476; + List _val477; + for (int _i478 = 0; _i478 < _map475.size; ++_i478) { - _key460 = iprot.readString(); + _key476 = iprot.readString(); { - org.apache.thrift.protocol.TList _list463 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - _val461 = new ArrayList(_list463.size); - ColumnStatisticsObj _elem464; - for (int _i465 = 0; _i465 < _list463.size; ++_i465) + org.apache.thrift.protocol.TList _list479 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + _val477 = new ArrayList(_list479.size); + ColumnStatisticsObj _elem480; + for (int _i481 = 0; _i481 < _list479.size; ++_i481) { - _elem464 = new ColumnStatisticsObj(); - _elem464.read(iprot); - _val461.add(_elem464); + _elem480 = new ColumnStatisticsObj(); + _elem480.read(iprot); + _val477.add(_elem480); } } - struct.partStats.put(_key460, _val461); + struct.partStats.put(_key476, _val477); } } struct.setPartStatsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrimaryKeysResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrimaryKeysResponse.java index fcd1165063..ddf257435f 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrimaryKeysResponse.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrimaryKeysResponse.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PrimaryKeysResponse case 1: // PRIMARY_KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list336 = iprot.readListBegin(); - struct.primaryKeys = new ArrayList(_list336.size); - SQLPrimaryKey _elem337; - for (int _i338 = 0; _i338 < _list336.size; ++_i338) + org.apache.thrift.protocol.TList _list352 = iprot.readListBegin(); + struct.primaryKeys = new ArrayList(_list352.size); + SQLPrimaryKey _elem353; + for (int _i354 = 0; _i354 < _list352.size; ++_i354) { - _elem337 = new SQLPrimaryKey(); - _elem337.read(iprot); - struct.primaryKeys.add(_elem337); + _elem353 = new SQLPrimaryKey(); + _elem353.read(iprot); + struct.primaryKeys.add(_elem353); } iprot.readListEnd(); } @@ -387,9 +387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PrimaryKeysRespons 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 _iter339 : struct.primaryKeys) + for (SQLPrimaryKey _iter355 : struct.primaryKeys) { - _iter339.write(oprot); + _iter355.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PrimaryKeysResponse TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.primaryKeys.size()); - for (SQLPrimaryKey _iter340 : struct.primaryKeys) + for (SQLPrimaryKey _iter356 : struct.primaryKeys) { - _iter340.write(oprot); + _iter356.write(oprot); } } } @@ -425,14 +425,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PrimaryKeysResponse public void read(org.apache.thrift.protocol.TProtocol prot, PrimaryKeysResponse struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list341 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.primaryKeys = new ArrayList(_list341.size); - SQLPrimaryKey _elem342; - for (int _i343 = 0; _i343 < _list341.size; ++_i343) + org.apache.thrift.protocol.TList _list357 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.primaryKeys = new ArrayList(_list357.size); + SQLPrimaryKey _elem358; + for (int _i359 = 0; _i359 < _list357.size; ++_i359) { - _elem342 = new SQLPrimaryKey(); - _elem342.read(iprot); - struct.primaryKeys.add(_elem342); + _elem358 = new SQLPrimaryKey(); + _elem358.read(iprot); + struct.primaryKeys.add(_elem358); } } struct.setPrimaryKeysIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PutFileMetadataRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PutFileMetadataRequest.java index 0cc9a69748..40dab8c6d1 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PutFileMetadataRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PutFileMetadataRequest.java @@ -547,13 +547,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PutFileMetadataRequ case 1: // FILE_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list856 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list856.size); - long _elem857; - for (int _i858 = 0; _i858 < _list856.size; ++_i858) + org.apache.thrift.protocol.TList _list872 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list872.size); + long _elem873; + for (int _i874 = 0; _i874 < _list872.size; ++_i874) { - _elem857 = iprot.readI64(); - struct.fileIds.add(_elem857); + _elem873 = iprot.readI64(); + struct.fileIds.add(_elem873); } iprot.readListEnd(); } @@ -565,13 +565,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PutFileMetadataRequ case 2: // METADATA if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list859 = iprot.readListBegin(); - struct.metadata = new ArrayList(_list859.size); - ByteBuffer _elem860; - for (int _i861 = 0; _i861 < _list859.size; ++_i861) + org.apache.thrift.protocol.TList _list875 = iprot.readListBegin(); + struct.metadata = new ArrayList(_list875.size); + ByteBuffer _elem876; + for (int _i877 = 0; _i877 < _list875.size; ++_i877) { - _elem860 = iprot.readBinary(); - struct.metadata.add(_elem860); + _elem876 = iprot.readBinary(); + struct.metadata.add(_elem876); } iprot.readListEnd(); } @@ -605,9 +605,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PutFileMetadataReq oprot.writeFieldBegin(FILE_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.fileIds.size())); - for (long _iter862 : struct.fileIds) + for (long _iter878 : struct.fileIds) { - oprot.writeI64(_iter862); + oprot.writeI64(_iter878); } oprot.writeListEnd(); } @@ -617,9 +617,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PutFileMetadataReq oprot.writeFieldBegin(METADATA_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.metadata.size())); - for (ByteBuffer _iter863 : struct.metadata) + for (ByteBuffer _iter879 : struct.metadata) { - oprot.writeBinary(_iter863); + oprot.writeBinary(_iter879); } oprot.writeListEnd(); } @@ -651,16 +651,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PutFileMetadataRequ TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.fileIds.size()); - for (long _iter864 : struct.fileIds) + for (long _iter880 : struct.fileIds) { - oprot.writeI64(_iter864); + oprot.writeI64(_iter880); } } { oprot.writeI32(struct.metadata.size()); - for (ByteBuffer _iter865 : struct.metadata) + for (ByteBuffer _iter881 : struct.metadata) { - oprot.writeBinary(_iter865); + oprot.writeBinary(_iter881); } } BitSet optionals = new BitSet(); @@ -677,24 +677,24 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PutFileMetadataRequ public void read(org.apache.thrift.protocol.TProtocol prot, PutFileMetadataRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list866 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list866.size); - long _elem867; - for (int _i868 = 0; _i868 < _list866.size; ++_i868) + org.apache.thrift.protocol.TList _list882 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list882.size); + long _elem883; + for (int _i884 = 0; _i884 < _list882.size; ++_i884) { - _elem867 = iprot.readI64(); - struct.fileIds.add(_elem867); + _elem883 = iprot.readI64(); + struct.fileIds.add(_elem883); } } struct.setFileIdsIsSet(true); { - org.apache.thrift.protocol.TList _list869 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.metadata = new ArrayList(_list869.size); - ByteBuffer _elem870; - for (int _i871 = 0; _i871 < _list869.size; ++_i871) + org.apache.thrift.protocol.TList _list885 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.metadata = new ArrayList(_list885.size); + ByteBuffer _elem886; + for (int _i887 = 0; _i887 < _list885.size; ++_i887) { - _elem870 = iprot.readBinary(); - struct.metadata.add(_elem870); + _elem886 = iprot.readBinary(); + struct.metadata.add(_elem886); } } struct.setMetadataIsSet(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 dd509a4bc5..de467c298f 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 _list1032 = iprot.readListBegin(); - struct.partVals = new ArrayList(_list1032.size); - String _elem1033; - for (int _i1034 = 0; _i1034 < _list1032.size; ++_i1034) + org.apache.thrift.protocol.TList _list1112 = iprot.readListBegin(); + struct.partVals = new ArrayList(_list1112.size); + String _elem1113; + for (int _i1114 = 0; _i1114 < _list1112.size; ++_i1114) { - _elem1033 = iprot.readString(); - struct.partVals.add(_elem1033); + _elem1113 = iprot.readString(); + struct.partVals.add(_elem1113); } 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 _iter1035 : struct.partVals) + for (String _iter1115 : struct.partVals) { - oprot.writeString(_iter1035); + oprot.writeString(_iter1115); } 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 _iter1036 : struct.partVals) + for (String _iter1116 : struct.partVals) { - oprot.writeString(_iter1036); + oprot.writeString(_iter1116); } } 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 _list1037 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partVals = new ArrayList(_list1037.size); - String _elem1038; - for (int _i1039 = 0; _i1039 < _list1037.size; ++_i1039) + 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) { - _elem1038 = iprot.readString(); - struct.partVals.add(_elem1038); + _elem1118 = iprot.readString(); + struct.partVals.add(_elem1118); } } struct.setPartValsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ReplLastIdInfo.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ReplLastIdInfo.java index 12f6aaf802..4a00dbbfa8 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ReplLastIdInfo.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ReplLastIdInfo.java @@ -712,13 +712,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ReplLastIdInfo stru case 5: // PARTITION_LIST if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list634 = iprot.readListBegin(); - struct.partitionList = new ArrayList(_list634.size); - String _elem635; - for (int _i636 = 0; _i636 < _list634.size; ++_i636) + org.apache.thrift.protocol.TList _list650 = iprot.readListBegin(); + struct.partitionList = new ArrayList(_list650.size); + String _elem651; + for (int _i652 = 0; _i652 < _list650.size; ++_i652) { - _elem635 = iprot.readString(); - struct.partitionList.add(_elem635); + _elem651 = iprot.readString(); + struct.partitionList.add(_elem651); } iprot.readListEnd(); } @@ -767,9 +767,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, ReplLastIdInfo str oprot.writeFieldBegin(PARTITION_LIST_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.partitionList.size())); - for (String _iter637 : struct.partitionList) + for (String _iter653 : struct.partitionList) { - oprot.writeString(_iter637); + oprot.writeString(_iter653); } oprot.writeListEnd(); } @@ -815,9 +815,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ReplLastIdInfo stru if (struct.isSetPartitionList()) { { oprot.writeI32(struct.partitionList.size()); - for (String _iter638 : struct.partitionList) + for (String _iter654 : struct.partitionList) { - oprot.writeString(_iter638); + oprot.writeString(_iter654); } } } @@ -841,13 +841,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, ReplLastIdInfo struc } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list639 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partitionList = new ArrayList(_list639.size); - String _elem640; - for (int _i641 = 0; _i641 < _list639.size; ++_i641) + org.apache.thrift.protocol.TList _list655 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionList = new ArrayList(_list655.size); + String _elem656; + for (int _i657 = 0; _i657 < _list655.size; ++_i657) { - _elem640 = iprot.readString(); - struct.partitionList.add(_elem640); + _elem656 = iprot.readString(); + struct.partitionList.add(_elem656); } } struct.setPartitionListIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ReplTblWriteIdStateRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ReplTblWriteIdStateRequest.java index 3e66bcf6a0..e884ad3316 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ReplTblWriteIdStateRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ReplTblWriteIdStateRequest.java @@ -813,13 +813,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ReplTblWriteIdState case 6: // PART_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list650 = iprot.readListBegin(); - struct.partNames = new ArrayList(_list650.size); - String _elem651; - for (int _i652 = 0; _i652 < _list650.size; ++_i652) + org.apache.thrift.protocol.TList _list666 = iprot.readListBegin(); + struct.partNames = new ArrayList(_list666.size); + String _elem667; + for (int _i668 = 0; _i668 < _list666.size; ++_i668) { - _elem651 = iprot.readString(); - struct.partNames.add(_elem651); + _elem667 = iprot.readString(); + struct.partNames.add(_elem667); } iprot.readListEnd(); } @@ -871,9 +871,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, ReplTblWriteIdStat 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 _iter653 : struct.partNames) + for (String _iter669 : struct.partNames) { - oprot.writeString(_iter653); + oprot.writeString(_iter669); } oprot.writeListEnd(); } @@ -910,9 +910,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ReplTblWriteIdState if (struct.isSetPartNames()) { { oprot.writeI32(struct.partNames.size()); - for (String _iter654 : struct.partNames) + for (String _iter670 : struct.partNames) { - oprot.writeString(_iter654); + oprot.writeString(_iter670); } } } @@ -934,13 +934,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, ReplTblWriteIdStateR BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list655 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partNames = new ArrayList(_list655.size); - String _elem656; - for (int _i657 = 0; _i657 < _list655.size; ++_i657) + org.apache.thrift.protocol.TList _list671 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partNames = new ArrayList(_list671.size); + String _elem672; + for (int _i673 = 0; _i673 < _list671.size; ++_i673) { - _elem656 = iprot.readString(); - struct.partNames.add(_elem656); + _elem672 = iprot.readString(); + struct.partNames.add(_elem672); } } struct.setPartNamesIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RequestPartsSpec.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RequestPartsSpec.java index 48159a8833..e2c70a9ed1 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RequestPartsSpec.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RequestPartsSpec.java @@ -168,13 +168,13 @@ protected Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol ip if (field.type == NAMES_FIELD_DESC.type) { List names; { - org.apache.thrift.protocol.TList _list514 = iprot.readListBegin(); - names = new ArrayList(_list514.size); - String _elem515; - for (int _i516 = 0; _i516 < _list514.size; ++_i516) + org.apache.thrift.protocol.TList _list530 = iprot.readListBegin(); + names = new ArrayList(_list530.size); + String _elem531; + for (int _i532 = 0; _i532 < _list530.size; ++_i532) { - _elem515 = iprot.readString(); - names.add(_elem515); + _elem531 = iprot.readString(); + names.add(_elem531); } iprot.readListEnd(); } @@ -187,14 +187,14 @@ protected Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol ip if (field.type == EXPRS_FIELD_DESC.type) { List exprs; { - org.apache.thrift.protocol.TList _list517 = iprot.readListBegin(); - exprs = new ArrayList(_list517.size); - DropPartitionsExpr _elem518; - for (int _i519 = 0; _i519 < _list517.size; ++_i519) + org.apache.thrift.protocol.TList _list533 = iprot.readListBegin(); + exprs = new ArrayList(_list533.size); + DropPartitionsExpr _elem534; + for (int _i535 = 0; _i535 < _list533.size; ++_i535) { - _elem518 = new DropPartitionsExpr(); - _elem518.read(iprot); - exprs.add(_elem518); + _elem534 = new DropPartitionsExpr(); + _elem534.read(iprot); + exprs.add(_elem534); } iprot.readListEnd(); } @@ -219,9 +219,9 @@ protected void standardSchemeWriteValue(org.apache.thrift.protocol.TProtocol opr List names = (List)value_; { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, names.size())); - for (String _iter520 : names) + for (String _iter536 : names) { - oprot.writeString(_iter520); + oprot.writeString(_iter536); } oprot.writeListEnd(); } @@ -230,9 +230,9 @@ protected void standardSchemeWriteValue(org.apache.thrift.protocol.TProtocol opr List exprs = (List)value_; { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, exprs.size())); - for (DropPartitionsExpr _iter521 : exprs) + for (DropPartitionsExpr _iter537 : exprs) { - _iter521.write(oprot); + _iter537.write(oprot); } oprot.writeListEnd(); } @@ -250,13 +250,13 @@ protected Object tupleSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot case NAMES: List names; { - org.apache.thrift.protocol.TList _list522 = iprot.readListBegin(); - names = new ArrayList(_list522.size); - String _elem523; - for (int _i524 = 0; _i524 < _list522.size; ++_i524) + org.apache.thrift.protocol.TList _list538 = iprot.readListBegin(); + names = new ArrayList(_list538.size); + String _elem539; + for (int _i540 = 0; _i540 < _list538.size; ++_i540) { - _elem523 = iprot.readString(); - names.add(_elem523); + _elem539 = iprot.readString(); + names.add(_elem539); } iprot.readListEnd(); } @@ -264,14 +264,14 @@ protected Object tupleSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot case EXPRS: List exprs; { - org.apache.thrift.protocol.TList _list525 = iprot.readListBegin(); - exprs = new ArrayList(_list525.size); - DropPartitionsExpr _elem526; - for (int _i527 = 0; _i527 < _list525.size; ++_i527) + org.apache.thrift.protocol.TList _list541 = iprot.readListBegin(); + exprs = new ArrayList(_list541.size); + DropPartitionsExpr _elem542; + for (int _i543 = 0; _i543 < _list541.size; ++_i543) { - _elem526 = new DropPartitionsExpr(); - _elem526.read(iprot); - exprs.add(_elem526); + _elem542 = new DropPartitionsExpr(); + _elem542.read(iprot); + exprs.add(_elem542); } iprot.readListEnd(); } @@ -291,9 +291,9 @@ protected void tupleSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot) List names = (List)value_; { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, names.size())); - for (String _iter528 : names) + for (String _iter544 : names) { - oprot.writeString(_iter528); + oprot.writeString(_iter544); } oprot.writeListEnd(); } @@ -302,9 +302,9 @@ protected void tupleSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot) List exprs = (List)value_; { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, exprs.size())); - for (DropPartitionsExpr _iter529 : exprs) + for (DropPartitionsExpr _iter545 : exprs) { - _iter529.write(oprot); + _iter545.write(oprot); } oprot.writeListEnd(); } diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java index f200df0f9f..b8c45fe7af 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java @@ -445,14 +445,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Schema struct) thro case 1: // FIELD_SCHEMAS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list308 = iprot.readListBegin(); - struct.fieldSchemas = new ArrayList(_list308.size); - FieldSchema _elem309; - for (int _i310 = 0; _i310 < _list308.size; ++_i310) + org.apache.thrift.protocol.TList _list324 = iprot.readListBegin(); + struct.fieldSchemas = new ArrayList(_list324.size); + FieldSchema _elem325; + for (int _i326 = 0; _i326 < _list324.size; ++_i326) { - _elem309 = new FieldSchema(); - _elem309.read(iprot); - struct.fieldSchemas.add(_elem309); + _elem325 = new FieldSchema(); + _elem325.read(iprot); + struct.fieldSchemas.add(_elem325); } iprot.readListEnd(); } @@ -464,15 +464,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Schema struct) thro case 2: // PROPERTIES if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map311 = iprot.readMapBegin(); - struct.properties = new HashMap(2*_map311.size); - String _key312; - String _val313; - for (int _i314 = 0; _i314 < _map311.size; ++_i314) + org.apache.thrift.protocol.TMap _map327 = iprot.readMapBegin(); + struct.properties = new HashMap(2*_map327.size); + String _key328; + String _val329; + for (int _i330 = 0; _i330 < _map327.size; ++_i330) { - _key312 = iprot.readString(); - _val313 = iprot.readString(); - struct.properties.put(_key312, _val313); + _key328 = iprot.readString(); + _val329 = iprot.readString(); + struct.properties.put(_key328, _val329); } iprot.readMapEnd(); } @@ -498,9 +498,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, Schema struct) thr oprot.writeFieldBegin(FIELD_SCHEMAS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.fieldSchemas.size())); - for (FieldSchema _iter315 : struct.fieldSchemas) + for (FieldSchema _iter331 : struct.fieldSchemas) { - _iter315.write(oprot); + _iter331.write(oprot); } oprot.writeListEnd(); } @@ -510,10 +510,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, Schema struct) thr oprot.writeFieldBegin(PROPERTIES_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.properties.size())); - for (Map.Entry _iter316 : struct.properties.entrySet()) + for (Map.Entry _iter332 : struct.properties.entrySet()) { - oprot.writeString(_iter316.getKey()); - oprot.writeString(_iter316.getValue()); + oprot.writeString(_iter332.getKey()); + oprot.writeString(_iter332.getValue()); } oprot.writeMapEnd(); } @@ -547,19 +547,19 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Schema struct) thro if (struct.isSetFieldSchemas()) { { oprot.writeI32(struct.fieldSchemas.size()); - for (FieldSchema _iter317 : struct.fieldSchemas) + for (FieldSchema _iter333 : struct.fieldSchemas) { - _iter317.write(oprot); + _iter333.write(oprot); } } } if (struct.isSetProperties()) { { oprot.writeI32(struct.properties.size()); - for (Map.Entry _iter318 : struct.properties.entrySet()) + for (Map.Entry _iter334 : struct.properties.entrySet()) { - oprot.writeString(_iter318.getKey()); - oprot.writeString(_iter318.getValue()); + oprot.writeString(_iter334.getKey()); + oprot.writeString(_iter334.getValue()); } } } @@ -571,29 +571,29 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Schema struct) throw BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list319 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.fieldSchemas = new ArrayList(_list319.size); - FieldSchema _elem320; - for (int _i321 = 0; _i321 < _list319.size; ++_i321) + org.apache.thrift.protocol.TList _list335 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.fieldSchemas = new ArrayList(_list335.size); + FieldSchema _elem336; + for (int _i337 = 0; _i337 < _list335.size; ++_i337) { - _elem320 = new FieldSchema(); - _elem320.read(iprot); - struct.fieldSchemas.add(_elem320); + _elem336 = new FieldSchema(); + _elem336.read(iprot); + struct.fieldSchemas.add(_elem336); } } struct.setFieldSchemasIsSet(true); } if (incoming.get(1)) { { - org.apache.thrift.protocol.TMap _map322 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.properties = new HashMap(2*_map322.size); - String _key323; - String _val324; - for (int _i325 = 0; _i325 < _map322.size; ++_i325) + org.apache.thrift.protocol.TMap _map338 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.properties = new HashMap(2*_map338.size); + String _key339; + String _val340; + for (int _i341 = 0; _i341 < _map338.size; ++_i341) { - _key323 = iprot.readString(); - _val324 = iprot.readString(); - struct.properties.put(_key323, _val324); + _key339 = iprot.readString(); + _val340 = iprot.readString(); + struct.properties.put(_key339, _val340); } } struct.setPropertiesIsSet(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 de8c21a592..09fcd476e9 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 _list1008 = iprot.readListBegin(); - struct.cols = new ArrayList(_list1008.size); - FieldSchema _elem1009; - for (int _i1010 = 0; _i1010 < _list1008.size; ++_i1010) + org.apache.thrift.protocol.TList _list1032 = iprot.readListBegin(); + struct.cols = new ArrayList(_list1032.size); + FieldSchema _elem1033; + for (int _i1034 = 0; _i1034 < _list1032.size; ++_i1034) { - _elem1009 = new FieldSchema(); - _elem1009.read(iprot); - struct.cols.add(_elem1009); + _elem1033 = new FieldSchema(); + _elem1033.read(iprot); + struct.cols.add(_elem1033); } 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 _iter1011 : struct.cols) + for (FieldSchema _iter1035 : struct.cols) { - _iter1011.write(oprot); + _iter1035.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 _iter1012 : struct.cols) + for (FieldSchema _iter1036 : struct.cols) { - _iter1012.write(oprot); + _iter1036.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 _list1013 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.cols = new ArrayList(_list1013.size); - FieldSchema _elem1014; - for (int _i1015 = 0; _i1015 < _list1013.size; ++_i1015) + 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) { - _elem1014 = new FieldSchema(); - _elem1014.read(iprot); - struct.cols.add(_elem1014); + _elem1038 = new FieldSchema(); + _elem1038.read(iprot); + struct.cols.add(_elem1038); } } struct.setColsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SetPartitionsStatsRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SetPartitionsStatsRequest.java index 8009eb451c..90714423f4 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SetPartitionsStatsRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SetPartitionsStatsRequest.java @@ -594,14 +594,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, SetPartitionsStatsR case 1: // COL_STATS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list300 = iprot.readListBegin(); - struct.colStats = new ArrayList(_list300.size); - ColumnStatistics _elem301; - for (int _i302 = 0; _i302 < _list300.size; ++_i302) + org.apache.thrift.protocol.TList _list316 = iprot.readListBegin(); + struct.colStats = new ArrayList(_list316.size); + ColumnStatistics _elem317; + for (int _i318 = 0; _i318 < _list316.size; ++_i318) { - _elem301 = new ColumnStatistics(); - _elem301.read(iprot); - struct.colStats.add(_elem301); + _elem317 = new ColumnStatistics(); + _elem317.read(iprot); + struct.colStats.add(_elem317); } iprot.readListEnd(); } @@ -651,9 +651,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, SetPartitionsStats oprot.writeFieldBegin(COL_STATS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.colStats.size())); - for (ColumnStatistics _iter303 : struct.colStats) + for (ColumnStatistics _iter319 : struct.colStats) { - _iter303.write(oprot); + _iter319.write(oprot); } oprot.writeListEnd(); } @@ -695,9 +695,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, SetPartitionsStatsR TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.colStats.size()); - for (ColumnStatistics _iter304 : struct.colStats) + for (ColumnStatistics _iter320 : struct.colStats) { - _iter304.write(oprot); + _iter320.write(oprot); } } BitSet optionals = new BitSet(); @@ -726,14 +726,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, SetPartitionsStatsR public void read(org.apache.thrift.protocol.TProtocol prot, SetPartitionsStatsRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list305 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.colStats = new ArrayList(_list305.size); - ColumnStatistics _elem306; - for (int _i307 = 0; _i307 < _list305.size; ++_i307) + org.apache.thrift.protocol.TList _list321 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.colStats = new ArrayList(_list321.size); + ColumnStatistics _elem322; + for (int _i323 = 0; _i323 < _list321.size; ++_i323) { - _elem306 = new ColumnStatistics(); - _elem306.read(iprot); - struct.colStats.add(_elem306); + _elem322 = new ColumnStatistics(); + _elem322.read(iprot); + struct.colStats.add(_elem322); } } struct.setColStatsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java index bc5758e943..ef76095eda 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ShowCompactResponse case 1: // COMPACTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list748 = iprot.readListBegin(); - struct.compacts = new ArrayList(_list748.size); - ShowCompactResponseElement _elem749; - for (int _i750 = 0; _i750 < _list748.size; ++_i750) + org.apache.thrift.protocol.TList _list764 = iprot.readListBegin(); + struct.compacts = new ArrayList(_list764.size); + ShowCompactResponseElement _elem765; + for (int _i766 = 0; _i766 < _list764.size; ++_i766) { - _elem749 = new ShowCompactResponseElement(); - _elem749.read(iprot); - struct.compacts.add(_elem749); + _elem765 = new ShowCompactResponseElement(); + _elem765.read(iprot); + struct.compacts.add(_elem765); } iprot.readListEnd(); } @@ -387,9 +387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, ShowCompactRespons oprot.writeFieldBegin(COMPACTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.compacts.size())); - for (ShowCompactResponseElement _iter751 : struct.compacts) + for (ShowCompactResponseElement _iter767 : struct.compacts) { - _iter751.write(oprot); + _iter767.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ShowCompactResponse TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.compacts.size()); - for (ShowCompactResponseElement _iter752 : struct.compacts) + for (ShowCompactResponseElement _iter768 : struct.compacts) { - _iter752.write(oprot); + _iter768.write(oprot); } } } @@ -425,14 +425,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ShowCompactResponse public void read(org.apache.thrift.protocol.TProtocol prot, ShowCompactResponse struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list753 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.compacts = new ArrayList(_list753.size); - ShowCompactResponseElement _elem754; - for (int _i755 = 0; _i755 < _list753.size; ++_i755) + org.apache.thrift.protocol.TList _list769 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.compacts = new ArrayList(_list769.size); + ShowCompactResponseElement _elem770; + for (int _i771 = 0; _i771 < _list769.size; ++_i771) { - _elem754 = new ShowCompactResponseElement(); - _elem754.read(iprot); - struct.compacts.add(_elem754); + _elem770 = new ShowCompactResponseElement(); + _elem770.read(iprot); + struct.compacts.add(_elem770); } } struct.setCompactsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java index d4bf9fac73..af3afc2087 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java @@ -350,14 +350,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ShowLocksResponse s case 1: // LOCKS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list714 = iprot.readListBegin(); - struct.locks = new ArrayList(_list714.size); - ShowLocksResponseElement _elem715; - for (int _i716 = 0; _i716 < _list714.size; ++_i716) + org.apache.thrift.protocol.TList _list730 = iprot.readListBegin(); + struct.locks = new ArrayList(_list730.size); + ShowLocksResponseElement _elem731; + for (int _i732 = 0; _i732 < _list730.size; ++_i732) { - _elem715 = new ShowLocksResponseElement(); - _elem715.read(iprot); - struct.locks.add(_elem715); + _elem731 = new ShowLocksResponseElement(); + _elem731.read(iprot); + struct.locks.add(_elem731); } iprot.readListEnd(); } @@ -383,9 +383,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, ShowLocksResponse oprot.writeFieldBegin(LOCKS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.locks.size())); - for (ShowLocksResponseElement _iter717 : struct.locks) + for (ShowLocksResponseElement _iter733 : struct.locks) { - _iter717.write(oprot); + _iter733.write(oprot); } oprot.writeListEnd(); } @@ -416,9 +416,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ShowLocksResponse s if (struct.isSetLocks()) { { oprot.writeI32(struct.locks.size()); - for (ShowLocksResponseElement _iter718 : struct.locks) + for (ShowLocksResponseElement _iter734 : struct.locks) { - _iter718.write(oprot); + _iter734.write(oprot); } } } @@ -430,14 +430,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, ShowLocksResponse st BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list719 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.locks = new ArrayList(_list719.size); - ShowLocksResponseElement _elem720; - for (int _i721 = 0; _i721 < _list719.size; ++_i721) + org.apache.thrift.protocol.TList _list735 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.locks = new ArrayList(_list735.size); + ShowLocksResponseElement _elem736; + for (int _i737 = 0; _i737 < _list735.size; ++_i737) { - _elem720 = new ShowLocksResponseElement(); - _elem720.read(iprot); - struct.locks.add(_elem720); + _elem736 = new ShowLocksResponseElement(); + _elem736.read(iprot); + struct.locks.add(_elem736); } } struct.setLocksIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java index 5101c0358b..792316189c 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java @@ -61,6 +61,8 @@ private static final org.apache.thrift.protocol.TField IS_STATS_COMPLIANT_FIELD_DESC = new org.apache.thrift.protocol.TField("isStatsCompliant", org.apache.thrift.protocol.TType.BOOL, (short)21); private static final org.apache.thrift.protocol.TField COL_STATS_FIELD_DESC = new org.apache.thrift.protocol.TField("colStats", org.apache.thrift.protocol.TType.STRUCT, (short)22); private static final org.apache.thrift.protocol.TField ACCESS_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("accessType", org.apache.thrift.protocol.TType.BYTE, (short)23); + private static final org.apache.thrift.protocol.TField REQUIRED_READ_CAPABILITIES_FIELD_DESC = new org.apache.thrift.protocol.TField("requiredReadCapabilities", org.apache.thrift.protocol.TType.LIST, (short)24); + private static final org.apache.thrift.protocol.TField REQUIRED_WRITE_CAPABILITIES_FIELD_DESC = new org.apache.thrift.protocol.TField("requiredWriteCapabilities", org.apache.thrift.protocol.TType.LIST, (short)25); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -91,6 +93,8 @@ private boolean isStatsCompliant; // optional private ColumnStatistics colStats; // optional private byte accessType; // optional + private List requiredReadCapabilities; // optional + private List requiredWriteCapabilities; // 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 { @@ -120,7 +124,9 @@ WRITE_ID((short)20, "writeId"), IS_STATS_COMPLIANT((short)21, "isStatsCompliant"), COL_STATS((short)22, "colStats"), - ACCESS_TYPE((short)23, "accessType"); + ACCESS_TYPE((short)23, "accessType"), + REQUIRED_READ_CAPABILITIES((short)24, "requiredReadCapabilities"), + REQUIRED_WRITE_CAPABILITIES((short)25, "requiredWriteCapabilities"); private static final Map byName = new HashMap(); @@ -181,6 +187,10 @@ public static _Fields findByThriftId(int fieldId) { return COL_STATS; case 23: // ACCESS_TYPE return ACCESS_TYPE; + case 24: // REQUIRED_READ_CAPABILITIES + return REQUIRED_READ_CAPABILITIES; + case 25: // REQUIRED_WRITE_CAPABILITIES + return REQUIRED_WRITE_CAPABILITIES; default: return null; } @@ -231,7 +241,7 @@ public String getFieldName() { private static final int __ISSTATSCOMPLIANT_ISSET_ID = 7; private static final int __ACCESSTYPE_ISSET_ID = 8; private short __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.ID,_Fields.PRIVILEGES,_Fields.TEMPORARY,_Fields.REWRITE_ENABLED,_Fields.CREATION_METADATA,_Fields.CAT_NAME,_Fields.OWNER_TYPE,_Fields.WRITE_ID,_Fields.IS_STATS_COMPLIANT,_Fields.COL_STATS,_Fields.ACCESS_TYPE}; + private static final _Fields optionals[] = {_Fields.ID,_Fields.PRIVILEGES,_Fields.TEMPORARY,_Fields.REWRITE_ENABLED,_Fields.CREATION_METADATA,_Fields.CAT_NAME,_Fields.OWNER_TYPE,_Fields.WRITE_ID,_Fields.IS_STATS_COMPLIANT,_Fields.COL_STATS,_Fields.ACCESS_TYPE,_Fields.REQUIRED_READ_CAPABILITIES,_Fields.REQUIRED_WRITE_CAPABILITIES}; 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); @@ -284,6 +294,12 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT , "ColumnStatistics"))); tmpMap.put(_Fields.ACCESS_TYPE, new org.apache.thrift.meta_data.FieldMetaData("accessType", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BYTE))); + tmpMap.put(_Fields.REQUIRED_READ_CAPABILITIES, new org.apache.thrift.meta_data.FieldMetaData("requiredReadCapabilities", 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.REQUIRED_WRITE_CAPABILITIES, new org.apache.thrift.meta_data.FieldMetaData("requiredWriteCapabilities", 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)))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Table.class, metaDataMap); } @@ -390,6 +406,14 @@ public Table(Table other) { this.colStats = other.colStats; } this.accessType = other.accessType; + if (other.isSetRequiredReadCapabilities()) { + List __this__requiredReadCapabilities = new ArrayList(other.requiredReadCapabilities); + this.requiredReadCapabilities = __this__requiredReadCapabilities; + } + if (other.isSetRequiredWriteCapabilities()) { + List __this__requiredWriteCapabilities = new ArrayList(other.requiredWriteCapabilities); + this.requiredWriteCapabilities = __this__requiredWriteCapabilities; + } } public Table deepCopy() { @@ -431,6 +455,8 @@ public void clear() { this.colStats = null; setAccessTypeIsSet(false); this.accessType = 0; + this.requiredReadCapabilities = null; + this.requiredWriteCapabilities = null; } public long getId() { @@ -987,6 +1013,82 @@ public void setAccessTypeIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ACCESSTYPE_ISSET_ID, value); } + public int getRequiredReadCapabilitiesSize() { + return (this.requiredReadCapabilities == null) ? 0 : this.requiredReadCapabilities.size(); + } + + public java.util.Iterator getRequiredReadCapabilitiesIterator() { + return (this.requiredReadCapabilities == null) ? null : this.requiredReadCapabilities.iterator(); + } + + public void addToRequiredReadCapabilities(String elem) { + if (this.requiredReadCapabilities == null) { + this.requiredReadCapabilities = new ArrayList(); + } + this.requiredReadCapabilities.add(elem); + } + + public List getRequiredReadCapabilities() { + return this.requiredReadCapabilities; + } + + public void setRequiredReadCapabilities(List requiredReadCapabilities) { + this.requiredReadCapabilities = requiredReadCapabilities; + } + + public void unsetRequiredReadCapabilities() { + this.requiredReadCapabilities = null; + } + + /** Returns true if field requiredReadCapabilities is set (has been assigned a value) and false otherwise */ + public boolean isSetRequiredReadCapabilities() { + return this.requiredReadCapabilities != null; + } + + public void setRequiredReadCapabilitiesIsSet(boolean value) { + if (!value) { + this.requiredReadCapabilities = null; + } + } + + public int getRequiredWriteCapabilitiesSize() { + return (this.requiredWriteCapabilities == null) ? 0 : this.requiredWriteCapabilities.size(); + } + + public java.util.Iterator getRequiredWriteCapabilitiesIterator() { + return (this.requiredWriteCapabilities == null) ? null : this.requiredWriteCapabilities.iterator(); + } + + public void addToRequiredWriteCapabilities(String elem) { + if (this.requiredWriteCapabilities == null) { + this.requiredWriteCapabilities = new ArrayList(); + } + this.requiredWriteCapabilities.add(elem); + } + + public List getRequiredWriteCapabilities() { + return this.requiredWriteCapabilities; + } + + public void setRequiredWriteCapabilities(List requiredWriteCapabilities) { + this.requiredWriteCapabilities = requiredWriteCapabilities; + } + + public void unsetRequiredWriteCapabilities() { + this.requiredWriteCapabilities = null; + } + + /** Returns true if field requiredWriteCapabilities is set (has been assigned a value) and false otherwise */ + public boolean isSetRequiredWriteCapabilities() { + return this.requiredWriteCapabilities != null; + } + + public void setRequiredWriteCapabilitiesIsSet(boolean value) { + if (!value) { + this.requiredWriteCapabilities = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case ID: @@ -1173,6 +1275,22 @@ public void setFieldValue(_Fields field, Object value) { } break; + case REQUIRED_READ_CAPABILITIES: + if (value == null) { + unsetRequiredReadCapabilities(); + } else { + setRequiredReadCapabilities((List)value); + } + break; + + case REQUIRED_WRITE_CAPABILITIES: + if (value == null) { + unsetRequiredWriteCapabilities(); + } else { + setRequiredWriteCapabilities((List)value); + } + break; + } } @@ -1247,6 +1365,12 @@ public Object getFieldValue(_Fields field) { case ACCESS_TYPE: return getAccessType(); + case REQUIRED_READ_CAPABILITIES: + return getRequiredReadCapabilities(); + + case REQUIRED_WRITE_CAPABILITIES: + return getRequiredWriteCapabilities(); + } throw new IllegalStateException(); } @@ -1304,6 +1428,10 @@ public boolean isSet(_Fields field) { return isSetColStats(); case ACCESS_TYPE: return isSetAccessType(); + case REQUIRED_READ_CAPABILITIES: + return isSetRequiredReadCapabilities(); + case REQUIRED_WRITE_CAPABILITIES: + return isSetRequiredWriteCapabilities(); } throw new IllegalStateException(); } @@ -1528,6 +1656,24 @@ public boolean equals(Table that) { return false; } + boolean this_present_requiredReadCapabilities = true && this.isSetRequiredReadCapabilities(); + boolean that_present_requiredReadCapabilities = true && that.isSetRequiredReadCapabilities(); + if (this_present_requiredReadCapabilities || that_present_requiredReadCapabilities) { + if (!(this_present_requiredReadCapabilities && that_present_requiredReadCapabilities)) + return false; + if (!this.requiredReadCapabilities.equals(that.requiredReadCapabilities)) + return false; + } + + boolean this_present_requiredWriteCapabilities = true && this.isSetRequiredWriteCapabilities(); + boolean that_present_requiredWriteCapabilities = true && that.isSetRequiredWriteCapabilities(); + if (this_present_requiredWriteCapabilities || that_present_requiredWriteCapabilities) { + if (!(this_present_requiredWriteCapabilities && that_present_requiredWriteCapabilities)) + return false; + if (!this.requiredWriteCapabilities.equals(that.requiredWriteCapabilities)) + return false; + } + return true; } @@ -1650,6 +1796,16 @@ public int hashCode() { if (present_accessType) list.add(accessType); + boolean present_requiredReadCapabilities = true && (isSetRequiredReadCapabilities()); + list.add(present_requiredReadCapabilities); + if (present_requiredReadCapabilities) + list.add(requiredReadCapabilities); + + boolean present_requiredWriteCapabilities = true && (isSetRequiredWriteCapabilities()); + list.add(present_requiredWriteCapabilities); + if (present_requiredWriteCapabilities) + list.add(requiredWriteCapabilities); + return list.hashCode(); } @@ -1891,6 +2047,26 @@ public int compareTo(Table other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetRequiredReadCapabilities()).compareTo(other.isSetRequiredReadCapabilities()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetRequiredReadCapabilities()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requiredReadCapabilities, other.requiredReadCapabilities); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetRequiredWriteCapabilities()).compareTo(other.isSetRequiredWriteCapabilities()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetRequiredWriteCapabilities()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requiredWriteCapabilities, other.requiredWriteCapabilities); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -2080,6 +2256,26 @@ public String toString() { sb.append(this.accessType); first = false; } + if (isSetRequiredReadCapabilities()) { + if (!first) sb.append(", "); + sb.append("requiredReadCapabilities:"); + if (this.requiredReadCapabilities == null) { + sb.append("null"); + } else { + sb.append(this.requiredReadCapabilities); + } + first = false; + } + if (isSetRequiredWriteCapabilities()) { + if (!first) sb.append(", "); + sb.append("requiredWriteCapabilities:"); + if (this.requiredWriteCapabilities == null) { + sb.append("null"); + } else { + sb.append(this.requiredWriteCapabilities); + } + first = false; + } sb.append(")"); return sb.toString(); } @@ -2345,6 +2541,42 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Table struct) throw org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 24: // REQUIRED_READ_CAPABILITIES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list221 = iprot.readListBegin(); + struct.requiredReadCapabilities = new ArrayList(_list221.size); + String _elem222; + for (int _i223 = 0; _i223 < _list221.size; ++_i223) + { + _elem222 = iprot.readString(); + struct.requiredReadCapabilities.add(_elem222); + } + iprot.readListEnd(); + } + struct.setRequiredReadCapabilitiesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 25: // REQUIRED_WRITE_CAPABILITIES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list224 = iprot.readListBegin(); + struct.requiredWriteCapabilities = new ArrayList(_list224.size); + String _elem225; + for (int _i226 = 0; _i226 < _list224.size; ++_i226) + { + _elem225 = iprot.readString(); + struct.requiredWriteCapabilities.add(_elem225); + } + iprot.readListEnd(); + } + struct.setRequiredWriteCapabilitiesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -2396,9 +2628,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, Table struct) thro oprot.writeFieldBegin(PARTITION_KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitionKeys.size())); - for (FieldSchema _iter221 : struct.partitionKeys) + for (FieldSchema _iter227 : struct.partitionKeys) { - _iter221.write(oprot); + _iter227.write(oprot); } oprot.writeListEnd(); } @@ -2408,10 +2640,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, Table struct) thro oprot.writeFieldBegin(PARAMETERS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.parameters.size())); - for (Map.Entry _iter222 : struct.parameters.entrySet()) + for (Map.Entry _iter228 : struct.parameters.entrySet()) { - oprot.writeString(_iter222.getKey()); - oprot.writeString(_iter222.getValue()); + oprot.writeString(_iter228.getKey()); + oprot.writeString(_iter228.getValue()); } oprot.writeMapEnd(); } @@ -2492,6 +2724,34 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, Table struct) thro oprot.writeByte(struct.accessType); oprot.writeFieldEnd(); } + if (struct.requiredReadCapabilities != null) { + if (struct.isSetRequiredReadCapabilities()) { + oprot.writeFieldBegin(REQUIRED_READ_CAPABILITIES_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.requiredReadCapabilities.size())); + for (String _iter229 : struct.requiredReadCapabilities) + { + oprot.writeString(_iter229); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + } + if (struct.requiredWriteCapabilities != null) { + if (struct.isSetRequiredWriteCapabilities()) { + oprot.writeFieldBegin(REQUIRED_WRITE_CAPABILITIES_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.requiredWriteCapabilities.size())); + for (String _iter230 : struct.requiredWriteCapabilities) + { + oprot.writeString(_iter230); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -2579,7 +2839,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Table struct) throw if (struct.isSetAccessType()) { optionals.set(22); } - oprot.writeBitSet(optionals, 23); + if (struct.isSetRequiredReadCapabilities()) { + optionals.set(23); + } + if (struct.isSetRequiredWriteCapabilities()) { + optionals.set(24); + } + oprot.writeBitSet(optionals, 25); if (struct.isSetId()) { oprot.writeI64(struct.id); } @@ -2607,19 +2873,19 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Table struct) throw if (struct.isSetPartitionKeys()) { { oprot.writeI32(struct.partitionKeys.size()); - for (FieldSchema _iter223 : struct.partitionKeys) + for (FieldSchema _iter231 : struct.partitionKeys) { - _iter223.write(oprot); + _iter231.write(oprot); } } } if (struct.isSetParameters()) { { oprot.writeI32(struct.parameters.size()); - for (Map.Entry _iter224 : struct.parameters.entrySet()) + for (Map.Entry _iter232 : struct.parameters.entrySet()) { - oprot.writeString(_iter224.getKey()); - oprot.writeString(_iter224.getValue()); + oprot.writeString(_iter232.getKey()); + oprot.writeString(_iter232.getValue()); } } } @@ -2662,12 +2928,30 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Table struct) throw if (struct.isSetAccessType()) { oprot.writeByte(struct.accessType); } + if (struct.isSetRequiredReadCapabilities()) { + { + oprot.writeI32(struct.requiredReadCapabilities.size()); + for (String _iter233 : struct.requiredReadCapabilities) + { + oprot.writeString(_iter233); + } + } + } + if (struct.isSetRequiredWriteCapabilities()) { + { + oprot.writeI32(struct.requiredWriteCapabilities.size()); + for (String _iter234 : struct.requiredWriteCapabilities) + { + oprot.writeString(_iter234); + } + } + } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, Table struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(23); + BitSet incoming = iprot.readBitSet(25); if (incoming.get(0)) { struct.id = iprot.readI64(); struct.setIdIsSet(true); @@ -2703,29 +2987,29 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Table struct) throws } if (incoming.get(8)) { { - org.apache.thrift.protocol.TList _list225 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitionKeys = new ArrayList(_list225.size); - FieldSchema _elem226; - for (int _i227 = 0; _i227 < _list225.size; ++_i227) + org.apache.thrift.protocol.TList _list235 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitionKeys = new ArrayList(_list235.size); + FieldSchema _elem236; + for (int _i237 = 0; _i237 < _list235.size; ++_i237) { - _elem226 = new FieldSchema(); - _elem226.read(iprot); - struct.partitionKeys.add(_elem226); + _elem236 = new FieldSchema(); + _elem236.read(iprot); + struct.partitionKeys.add(_elem236); } } struct.setPartitionKeysIsSet(true); } if (incoming.get(9)) { { - org.apache.thrift.protocol.TMap _map228 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.parameters = new HashMap(2*_map228.size); - String _key229; - String _val230; - for (int _i231 = 0; _i231 < _map228.size; ++_i231) + org.apache.thrift.protocol.TMap _map238 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.parameters = new HashMap(2*_map238.size); + String _key239; + String _val240; + for (int _i241 = 0; _i241 < _map238.size; ++_i241) { - _key229 = iprot.readString(); - _val230 = iprot.readString(); - struct.parameters.put(_key229, _val230); + _key239 = iprot.readString(); + _val240 = iprot.readString(); + struct.parameters.put(_key239, _val240); } } struct.setParametersIsSet(true); @@ -2785,6 +3069,32 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Table struct) throws struct.accessType = iprot.readByte(); struct.setAccessTypeIsSet(true); } + if (incoming.get(23)) { + { + org.apache.thrift.protocol.TList _list242 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.requiredReadCapabilities = new ArrayList(_list242.size); + String _elem243; + for (int _i244 = 0; _i244 < _list242.size; ++_i244) + { + _elem243 = iprot.readString(); + struct.requiredReadCapabilities.add(_elem243); + } + } + struct.setRequiredReadCapabilitiesIsSet(true); + } + if (incoming.get(24)) { + { + org.apache.thrift.protocol.TList _list245 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.requiredWriteCapabilities = new ArrayList(_list245.size); + String _elem246; + for (int _i247 = 0; _i247 < _list245.size; ++_i247) + { + _elem246 = iprot.readString(); + struct.requiredWriteCapabilities.add(_elem246); + } + } + struct.setRequiredWriteCapabilitiesIsSet(true); + } } } diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsRequest.java index 220b852234..872a29f6b5 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsRequest.java @@ -700,13 +700,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TableStatsRequest s case 3: // COL_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list466 = iprot.readListBegin(); - struct.colNames = new ArrayList(_list466.size); - String _elem467; - for (int _i468 = 0; _i468 < _list466.size; ++_i468) + org.apache.thrift.protocol.TList _list482 = iprot.readListBegin(); + struct.colNames = new ArrayList(_list482.size); + String _elem483; + for (int _i484 = 0; _i484 < _list482.size; ++_i484) { - _elem467 = iprot.readString(); - struct.colNames.add(_elem467); + _elem483 = iprot.readString(); + struct.colNames.add(_elem483); } iprot.readListEnd(); } @@ -758,9 +758,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, TableStatsRequest oprot.writeFieldBegin(COL_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.colNames.size())); - for (String _iter469 : struct.colNames) + for (String _iter485 : struct.colNames) { - oprot.writeString(_iter469); + oprot.writeString(_iter485); } oprot.writeListEnd(); } @@ -801,9 +801,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TableStatsRequest s oprot.writeString(struct.tblName); { oprot.writeI32(struct.colNames.size()); - for (String _iter470 : struct.colNames) + for (String _iter486 : struct.colNames) { - oprot.writeString(_iter470); + oprot.writeString(_iter486); } } BitSet optionals = new BitSet(); @@ -830,13 +830,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TableStatsRequest st struct.tblName = iprot.readString(); struct.setTblNameIsSet(true); { - org.apache.thrift.protocol.TList _list471 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.colNames = new ArrayList(_list471.size); - String _elem472; - for (int _i473 = 0; _i473 < _list471.size; ++_i473) + org.apache.thrift.protocol.TList _list487 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.colNames = new ArrayList(_list487.size); + String _elem488; + for (int _i489 = 0; _i489 < _list487.size; ++_i489) { - _elem472 = iprot.readString(); - struct.colNames.add(_elem472); + _elem488 = iprot.readString(); + struct.colNames.add(_elem488); } } struct.setColNamesIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsResult.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsResult.java index 721a4176aa..cc951d319d 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsResult.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsResult.java @@ -435,14 +435,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TableStatsResult st case 1: // TABLE_STATS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list440 = iprot.readListBegin(); - struct.tableStats = new ArrayList(_list440.size); - ColumnStatisticsObj _elem441; - for (int _i442 = 0; _i442 < _list440.size; ++_i442) + org.apache.thrift.protocol.TList _list456 = iprot.readListBegin(); + struct.tableStats = new ArrayList(_list456.size); + ColumnStatisticsObj _elem457; + for (int _i458 = 0; _i458 < _list456.size; ++_i458) { - _elem441 = new ColumnStatisticsObj(); - _elem441.read(iprot); - struct.tableStats.add(_elem441); + _elem457 = new ColumnStatisticsObj(); + _elem457.read(iprot); + struct.tableStats.add(_elem457); } iprot.readListEnd(); } @@ -476,9 +476,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, TableStatsResult s oprot.writeFieldBegin(TABLE_STATS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.tableStats.size())); - for (ColumnStatisticsObj _iter443 : struct.tableStats) + for (ColumnStatisticsObj _iter459 : struct.tableStats) { - _iter443.write(oprot); + _iter459.write(oprot); } oprot.writeListEnd(); } @@ -508,9 +508,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TableStatsResult st TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.tableStats.size()); - for (ColumnStatisticsObj _iter444 : struct.tableStats) + for (ColumnStatisticsObj _iter460 : struct.tableStats) { - _iter444.write(oprot); + _iter460.write(oprot); } } BitSet optionals = new BitSet(); @@ -527,14 +527,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TableStatsResult st public void read(org.apache.thrift.protocol.TProtocol prot, TableStatsResult struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list445 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.tableStats = new ArrayList(_list445.size); - ColumnStatisticsObj _elem446; - for (int _i447 = 0; _i447 < _list445.size; ++_i447) + org.apache.thrift.protocol.TList _list461 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.tableStats = new ArrayList(_list461.size); + ColumnStatisticsObj _elem462; + for (int _i463 = 0; _i463 < _list461.size; ++_i463) { - _elem446 = new ColumnStatisticsObj(); - _elem446.read(iprot); - struct.tableStats.add(_elem446); + _elem462 = new ColumnStatisticsObj(); + _elem462.read(iprot); + struct.tableStats.add(_elem462); } } struct.setTableStatsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableValidWriteIds.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableValidWriteIds.java index ef26de2cb1..187f40220a 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableValidWriteIds.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableValidWriteIds.java @@ -708,13 +708,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TableValidWriteIds case 3: // INVALID_WRITE_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list666 = iprot.readListBegin(); - struct.invalidWriteIds = new ArrayList(_list666.size); - long _elem667; - for (int _i668 = 0; _i668 < _list666.size; ++_i668) + org.apache.thrift.protocol.TList _list682 = iprot.readListBegin(); + struct.invalidWriteIds = new ArrayList(_list682.size); + long _elem683; + for (int _i684 = 0; _i684 < _list682.size; ++_i684) { - _elem667 = iprot.readI64(); - struct.invalidWriteIds.add(_elem667); + _elem683 = iprot.readI64(); + struct.invalidWriteIds.add(_elem683); } iprot.readListEnd(); } @@ -764,9 +764,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, TableValidWriteIds oprot.writeFieldBegin(INVALID_WRITE_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.invalidWriteIds.size())); - for (long _iter669 : struct.invalidWriteIds) + for (long _iter685 : struct.invalidWriteIds) { - oprot.writeI64(_iter669); + oprot.writeI64(_iter685); } oprot.writeListEnd(); } @@ -803,9 +803,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TableValidWriteIds oprot.writeI64(struct.writeIdHighWaterMark); { oprot.writeI32(struct.invalidWriteIds.size()); - for (long _iter670 : struct.invalidWriteIds) + for (long _iter686 : struct.invalidWriteIds) { - oprot.writeI64(_iter670); + oprot.writeI64(_iter686); } } oprot.writeBinary(struct.abortedBits); @@ -827,13 +827,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TableValidWriteIds s struct.writeIdHighWaterMark = iprot.readI64(); struct.setWriteIdHighWaterMarkIsSet(true); { - org.apache.thrift.protocol.TList _list671 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.invalidWriteIds = new ArrayList(_list671.size); - long _elem672; - for (int _i673 = 0; _i673 < _list671.size; ++_i673) + org.apache.thrift.protocol.TList _list687 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.invalidWriteIds = new ArrayList(_list687.size); + long _elem688; + for (int _i689 = 0; _i689 < _list687.size; ++_i689) { - _elem672 = iprot.readI64(); - struct.invalidWriteIds.add(_elem672); + _elem688 = iprot.readI64(); + struct.invalidWriteIds.add(_elem688); } } struct.setInvalidWriteIdsIsSet(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 f4218ee042..cd9af7eed2 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 @@ -90,6 +90,8 @@ public void create_table_with_constraints(Table tbl, List primaryKeys, List foreignKeys, List uniqueConstraints, List notNullConstraints, List defaultConstraints, List checkConstraints) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, org.apache.thrift.TException; + public void create_table_req(CreateTableRequest request) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, org.apache.thrift.TException; + public void drop_constraint(DropConstraintRequest req) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; public void add_primary_key(AddPrimaryKeyRequest req) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; @@ -544,6 +546,8 @@ public void create_table_with_constraints(Table tbl, List primaryKeys, List foreignKeys, List uniqueConstraints, List notNullConstraints, List defaultConstraints, List checkConstraints, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void create_table_req(CreateTableRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void drop_constraint(DropConstraintRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void add_primary_key(AddPrimaryKeyRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -1679,6 +1683,38 @@ public void recv_create_table_with_constraints() throws AlreadyExistsException, return; } + public void create_table_req(CreateTableRequest request) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, org.apache.thrift.TException + { + send_create_table_req(request); + recv_create_table_req(); + } + + public void send_create_table_req(CreateTableRequest request) throws org.apache.thrift.TException + { + create_table_req_args args = new create_table_req_args(); + args.setRequest(request); + sendBase("create_table_req", args); + } + + public void recv_create_table_req() throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, org.apache.thrift.TException + { + create_table_req_result result = new create_table_req_result(); + receiveBase(result, "create_table_req"); + if (result.o1 != null) { + throw result.o1; + } + if (result.o2 != null) { + throw result.o2; + } + if (result.o3 != null) { + throw result.o3; + } + if (result.o4 != null) { + throw result.o4; + } + return; + } + public void drop_constraint(DropConstraintRequest req) throws NoSuchObjectException, MetaException, org.apache.thrift.TException { send_drop_constraint(req); @@ -8213,6 +8249,38 @@ public void getResult() throws AlreadyExistsException, InvalidObjectException, M } } + public void create_table_req(CreateTableRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + create_table_req_call method_call = new create_table_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 create_table_req_call extends org.apache.thrift.async.TAsyncMethodCall { + private CreateTableRequest request; + public create_table_req_call(CreateTableRequest 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("create_table_req", org.apache.thrift.protocol.TMessageType.CALL, 0)); + create_table_req_args args = new create_table_req_args(); + args.setRequest(request); + args.write(prot); + prot.writeMessageEnd(); + } + + public void getResult() throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, 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); + (new Client(prot)).recv_create_table_req(); + } + } + public void drop_constraint(DropConstraintRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); drop_constraint_call method_call = new drop_constraint_call(req, resultHandler, this, ___protocolFactory, ___transport); @@ -15132,6 +15200,7 @@ protected Processor(I iface, Map extends org.apache.thrift.ProcessFunction { + public create_table_req() { + super("create_table_req"); + } + + public create_table_req_args getEmptyArgsInstance() { + return new create_table_req_args(); + } + + protected boolean isOneway() { + return false; + } + + public create_table_req_result getResult(I iface, create_table_req_args args) throws org.apache.thrift.TException { + create_table_req_result result = new create_table_req_result(); + try { + iface.create_table_req(args.request); + } catch (AlreadyExistsException o1) { + result.o1 = o1; + } catch (InvalidObjectException o2) { + result.o2 = o2; + } catch (MetaException o3) { + result.o3 = o3; + } catch (NoSuchObjectException o4) { + result.o4 = o4; + } + return result; + } + } + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_constraint extends org.apache.thrift.ProcessFunction { public drop_constraint() { super("drop_constraint"); @@ -21119,6 +21218,7 @@ protected AsyncProcessor(I iface, Map extends org.apache.thrift.AsyncProcessFunction { - public drop_constraint() { - super("drop_constraint"); - } - - public drop_constraint_args getEmptyArgsInstance() { - return new drop_constraint_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_constraint_result result = new drop_constraint_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_constraint_result result = new drop_constraint_result(); - if (e instanceof NoSuchObjectException) { - result.o1 = (NoSuchObjectException) e; - result.setO1IsSet(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_constraint_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.drop_constraint(args.req,resultHandler); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class create_table_req extends org.apache.thrift.AsyncProcessFunction { + public create_table_req() { + super("create_table_req"); } - } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_primary_key extends org.apache.thrift.AsyncProcessFunction { - public add_primary_key() { - super("add_primary_key"); - } - - public add_primary_key_args getEmptyArgsInstance() { - return new add_primary_key_args(); + public create_table_req_args getEmptyArgsInstance() { + return new create_table_req_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) { - add_primary_key_result result = new add_primary_key_result(); + create_table_req_result result = new create_table_req_result(); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -22939,137 +22978,25 @@ public void onComplete(Void o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - add_primary_key_result result = new add_primary_key_result(); - if (e instanceof NoSuchObjectException) { - result.o1 = (NoSuchObjectException) e; + create_table_req_result result = new create_table_req_result(); + if (e instanceof AlreadyExistsException) { + result.o1 = (AlreadyExistsException) e; result.setO1IsSet(true); msg = result; } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; + else if (e instanceof InvalidObjectException) { + result.o2 = (InvalidObjectException) 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, add_primary_key_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.add_primary_key(args.req,resultHandler); - } - } - - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_foreign_key extends org.apache.thrift.AsyncProcessFunction { - public add_foreign_key() { - super("add_foreign_key"); - } - - public add_foreign_key_args getEmptyArgsInstance() { - return new add_foreign_key_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) { - add_foreign_key_result result = new add_foreign_key_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; - add_foreign_key_result result = new add_foreign_key_result(); - if (e instanceof NoSuchObjectException) { - result.o1 = (NoSuchObjectException) e; - result.setO1IsSet(true); - msg = result; } else if (e instanceof MetaException) { - 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, add_foreign_key_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.add_foreign_key(args.req,resultHandler); - } - } - - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_unique_constraint extends org.apache.thrift.AsyncProcessFunction { - public add_unique_constraint() { - super("add_unique_constraint"); - } - - public add_unique_constraint_args getEmptyArgsInstance() { - return new add_unique_constraint_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) { - add_unique_constraint_result result = new add_unique_constraint_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; - add_unique_constraint_result result = new add_unique_constraint_result(); - if (e instanceof NoSuchObjectException) { - result.o1 = (NoSuchObjectException) e; - result.setO1IsSet(true); + result.o3 = (MetaException) e; + result.setO3IsSet(true); msg = result; } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); + else if (e instanceof NoSuchObjectException) { + result.o4 = (NoSuchObjectException) e; + result.setO4IsSet(true); msg = result; } else @@ -23092,25 +23019,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, add_unique_constraint_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.add_unique_constraint(args.req,resultHandler); + public void start(I iface, create_table_req_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.create_table_req(args.request,resultHandler); } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_not_null_constraint extends org.apache.thrift.AsyncProcessFunction { - public add_not_null_constraint() { - super("add_not_null_constraint"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_constraint extends org.apache.thrift.AsyncProcessFunction { + public drop_constraint() { + super("drop_constraint"); } - public add_not_null_constraint_args getEmptyArgsInstance() { - return new add_not_null_constraint_args(); + public drop_constraint_args getEmptyArgsInstance() { + return new drop_constraint_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) { - add_not_null_constraint_result result = new add_not_null_constraint_result(); + drop_constraint_result result = new drop_constraint_result(); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -23122,15 +23049,259 @@ public void onComplete(Void o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - add_not_null_constraint_result result = new add_not_null_constraint_result(); + drop_constraint_result result = new drop_constraint_result(); if (e instanceof NoSuchObjectException) { result.o1 = (NoSuchObjectException) e; result.setO1IsSet(true); msg = result; } else if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); + 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_constraint_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.drop_constraint(args.req,resultHandler); + } + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_primary_key extends org.apache.thrift.AsyncProcessFunction { + public add_primary_key() { + super("add_primary_key"); + } + + public add_primary_key_args getEmptyArgsInstance() { + return new add_primary_key_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) { + add_primary_key_result result = new add_primary_key_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; + add_primary_key_result result = new add_primary_key_result(); + if (e instanceof NoSuchObjectException) { + result.o1 = (NoSuchObjectException) e; + result.setO1IsSet(true); + msg = result; + } + else if (e instanceof MetaException) { + 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, add_primary_key_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.add_primary_key(args.req,resultHandler); + } + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_foreign_key extends org.apache.thrift.AsyncProcessFunction { + public add_foreign_key() { + super("add_foreign_key"); + } + + public add_foreign_key_args getEmptyArgsInstance() { + return new add_foreign_key_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) { + add_foreign_key_result result = new add_foreign_key_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; + add_foreign_key_result result = new add_foreign_key_result(); + if (e instanceof NoSuchObjectException) { + result.o1 = (NoSuchObjectException) e; + result.setO1IsSet(true); + msg = result; + } + else if (e instanceof MetaException) { + 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, add_foreign_key_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.add_foreign_key(args.req,resultHandler); + } + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_unique_constraint extends org.apache.thrift.AsyncProcessFunction { + public add_unique_constraint() { + super("add_unique_constraint"); + } + + public add_unique_constraint_args getEmptyArgsInstance() { + return new add_unique_constraint_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) { + add_unique_constraint_result result = new add_unique_constraint_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; + add_unique_constraint_result result = new add_unique_constraint_result(); + if (e instanceof NoSuchObjectException) { + result.o1 = (NoSuchObjectException) e; + result.setO1IsSet(true); + msg = result; + } + else if (e instanceof MetaException) { + 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, add_unique_constraint_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.add_unique_constraint(args.req,resultHandler); + } + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_not_null_constraint extends org.apache.thrift.AsyncProcessFunction { + public add_not_null_constraint() { + super("add_not_null_constraint"); + } + + public add_not_null_constraint_args getEmptyArgsInstance() { + return new add_not_null_constraint_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) { + add_not_null_constraint_result result = new add_not_null_constraint_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; + add_not_null_constraint_result result = new add_not_null_constraint_result(); + if (e instanceof NoSuchObjectException) { + result.o1 = (NoSuchObjectException) e; + result.setO1IsSet(true); + msg = result; + } + else if (e instanceof MetaException) { + result.o2 = (MetaException) e; + result.setO2IsSet(true); msg = result; } else @@ -44894,13 +45065,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 _list1080 = iprot.readListBegin(); - struct.success = new ArrayList(_list1080.size); - String _elem1081; - for (int _i1082 = 0; _i1082 < _list1080.size; ++_i1082) + org.apache.thrift.protocol.TList _list1160 = iprot.readListBegin(); + struct.success = new ArrayList(_list1160.size); + String _elem1161; + for (int _i1162 = 0; _i1162 < _list1160.size; ++_i1162) { - _elem1081 = iprot.readString(); - struct.success.add(_elem1081); + _elem1161 = iprot.readString(); + struct.success.add(_elem1161); } iprot.readListEnd(); } @@ -44935,9 +45106,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 _iter1083 : struct.success) + for (String _iter1163 : struct.success) { - oprot.writeString(_iter1083); + oprot.writeString(_iter1163); } oprot.writeListEnd(); } @@ -44976,9 +45147,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_databases_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1084 : struct.success) + for (String _iter1164 : struct.success) { - oprot.writeString(_iter1084); + oprot.writeString(_iter1164); } } } @@ -44993,13 +45164,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 _list1085 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1085.size); - String _elem1086; - for (int _i1087 = 0; _i1087 < _list1085.size; ++_i1087) + 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) { - _elem1086 = iprot.readString(); - struct.success.add(_elem1086); + _elem1166 = iprot.readString(); + struct.success.add(_elem1166); } } struct.setSuccessIsSet(true); @@ -45653,13 +45824,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 _list1088 = iprot.readListBegin(); - struct.success = new ArrayList(_list1088.size); - String _elem1089; - for (int _i1090 = 0; _i1090 < _list1088.size; ++_i1090) + org.apache.thrift.protocol.TList _list1168 = iprot.readListBegin(); + struct.success = new ArrayList(_list1168.size); + String _elem1169; + for (int _i1170 = 0; _i1170 < _list1168.size; ++_i1170) { - _elem1089 = iprot.readString(); - struct.success.add(_elem1089); + _elem1169 = iprot.readString(); + struct.success.add(_elem1169); } iprot.readListEnd(); } @@ -45694,9 +45865,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 _iter1091 : struct.success) + for (String _iter1171 : struct.success) { - oprot.writeString(_iter1091); + oprot.writeString(_iter1171); } oprot.writeListEnd(); } @@ -45735,9 +45906,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_databases_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1092 : struct.success) + for (String _iter1172 : struct.success) { - oprot.writeString(_iter1092); + oprot.writeString(_iter1172); } } } @@ -45752,13 +45923,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 _list1093 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1093.size); - String _elem1094; - for (int _i1095 = 0; _i1095 < _list1093.size; ++_i1095) + 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) { - _elem1094 = iprot.readString(); - struct.success.add(_elem1094); + _elem1174 = iprot.readString(); + struct.success.add(_elem1174); } } struct.setSuccessIsSet(true); @@ -50365,16 +50536,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 _map1096 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map1096.size); - String _key1097; - Type _val1098; - for (int _i1099 = 0; _i1099 < _map1096.size; ++_i1099) + 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) { - _key1097 = iprot.readString(); - _val1098 = new Type(); - _val1098.read(iprot); - struct.success.put(_key1097, _val1098); + _key1177 = iprot.readString(); + _val1178 = new Type(); + _val1178.read(iprot); + struct.success.put(_key1177, _val1178); } iprot.readMapEnd(); } @@ -50409,10 +50580,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 _iter1100 : struct.success.entrySet()) + for (Map.Entry _iter1180 : struct.success.entrySet()) { - oprot.writeString(_iter1100.getKey()); - _iter1100.getValue().write(oprot); + oprot.writeString(_iter1180.getKey()); + _iter1180.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -50451,10 +50622,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 _iter1101 : struct.success.entrySet()) + for (Map.Entry _iter1181 : struct.success.entrySet()) { - oprot.writeString(_iter1101.getKey()); - _iter1101.getValue().write(oprot); + oprot.writeString(_iter1181.getKey()); + _iter1181.getValue().write(oprot); } } } @@ -50469,16 +50640,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 _map1102 = 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*_map1102.size); - String _key1103; - Type _val1104; - for (int _i1105 = 0; _i1105 < _map1102.size; ++_i1105) + 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) { - _key1103 = iprot.readString(); - _val1104 = new Type(); - _val1104.read(iprot); - struct.success.put(_key1103, _val1104); + _key1183 = iprot.readString(); + _val1184 = new Type(); + _val1184.read(iprot); + struct.success.put(_key1183, _val1184); } } struct.setSuccessIsSet(true); @@ -51513,14 +51684,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 _list1106 = iprot.readListBegin(); - struct.success = new ArrayList(_list1106.size); - FieldSchema _elem1107; - for (int _i1108 = 0; _i1108 < _list1106.size; ++_i1108) + org.apache.thrift.protocol.TList _list1186 = iprot.readListBegin(); + struct.success = new ArrayList(_list1186.size); + FieldSchema _elem1187; + for (int _i1188 = 0; _i1188 < _list1186.size; ++_i1188) { - _elem1107 = new FieldSchema(); - _elem1107.read(iprot); - struct.success.add(_elem1107); + _elem1187 = new FieldSchema(); + _elem1187.read(iprot); + struct.success.add(_elem1187); } iprot.readListEnd(); } @@ -51573,9 +51744,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 _iter1109 : struct.success) + for (FieldSchema _iter1189 : struct.success) { - _iter1109.write(oprot); + _iter1189.write(oprot); } oprot.writeListEnd(); } @@ -51630,9 +51801,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter1110 : struct.success) + for (FieldSchema _iter1190 : struct.success) { - _iter1110.write(oprot); + _iter1190.write(oprot); } } } @@ -51653,14 +51824,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 _list1111 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1111.size); - FieldSchema _elem1112; - for (int _i1113 = 0; _i1113 < _list1111.size; ++_i1113) + 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) { - _elem1112 = new FieldSchema(); - _elem1112.read(iprot); - struct.success.add(_elem1112); + _elem1192 = new FieldSchema(); + _elem1192.read(iprot); + struct.success.add(_elem1192); } } struct.setSuccessIsSet(true); @@ -52814,14 +52985,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 _list1114 = iprot.readListBegin(); - struct.success = new ArrayList(_list1114.size); - FieldSchema _elem1115; - for (int _i1116 = 0; _i1116 < _list1114.size; ++_i1116) + org.apache.thrift.protocol.TList _list1194 = iprot.readListBegin(); + struct.success = new ArrayList(_list1194.size); + FieldSchema _elem1195; + for (int _i1196 = 0; _i1196 < _list1194.size; ++_i1196) { - _elem1115 = new FieldSchema(); - _elem1115.read(iprot); - struct.success.add(_elem1115); + _elem1195 = new FieldSchema(); + _elem1195.read(iprot); + struct.success.add(_elem1195); } iprot.readListEnd(); } @@ -52874,9 +53045,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 _iter1117 : struct.success) + for (FieldSchema _iter1197 : struct.success) { - _iter1117.write(oprot); + _iter1197.write(oprot); } oprot.writeListEnd(); } @@ -52931,9 +53102,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_with_env if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter1118 : struct.success) + for (FieldSchema _iter1198 : struct.success) { - _iter1118.write(oprot); + _iter1198.write(oprot); } } } @@ -52954,14 +53125,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 _list1119 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1119.size); - FieldSchema _elem1120; - for (int _i1121 = 0; _i1121 < _list1119.size; ++_i1121) + 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) { - _elem1120 = new FieldSchema(); - _elem1120.read(iprot); - struct.success.add(_elem1120); + _elem1200 = new FieldSchema(); + _elem1200.read(iprot); + struct.success.add(_elem1200); } } struct.setSuccessIsSet(true); @@ -54006,14 +54177,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 _list1122 = iprot.readListBegin(); - struct.success = new ArrayList(_list1122.size); - FieldSchema _elem1123; - for (int _i1124 = 0; _i1124 < _list1122.size; ++_i1124) + org.apache.thrift.protocol.TList _list1202 = iprot.readListBegin(); + struct.success = new ArrayList(_list1202.size); + FieldSchema _elem1203; + for (int _i1204 = 0; _i1204 < _list1202.size; ++_i1204) { - _elem1123 = new FieldSchema(); - _elem1123.read(iprot); - struct.success.add(_elem1123); + _elem1203 = new FieldSchema(); + _elem1203.read(iprot); + struct.success.add(_elem1203); } iprot.readListEnd(); } @@ -54066,9 +54237,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 _iter1125 : struct.success) + for (FieldSchema _iter1205 : struct.success) { - _iter1125.write(oprot); + _iter1205.write(oprot); } oprot.writeListEnd(); } @@ -54123,9 +54294,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter1126 : struct.success) + for (FieldSchema _iter1206 : struct.success) { - _iter1126.write(oprot); + _iter1206.write(oprot); } } } @@ -54146,14 +54317,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 _list1127 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1127.size); - FieldSchema _elem1128; - for (int _i1129 = 0; _i1129 < _list1127.size; ++_i1129) + 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) { - _elem1128 = new FieldSchema(); - _elem1128.read(iprot); - struct.success.add(_elem1128); + _elem1208 = new FieldSchema(); + _elem1208.read(iprot); + struct.success.add(_elem1208); } } struct.setSuccessIsSet(true); @@ -55307,14 +55478,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 _list1130 = iprot.readListBegin(); - struct.success = new ArrayList(_list1130.size); - FieldSchema _elem1131; - for (int _i1132 = 0; _i1132 < _list1130.size; ++_i1132) + org.apache.thrift.protocol.TList _list1210 = iprot.readListBegin(); + struct.success = new ArrayList(_list1210.size); + FieldSchema _elem1211; + for (int _i1212 = 0; _i1212 < _list1210.size; ++_i1212) { - _elem1131 = new FieldSchema(); - _elem1131.read(iprot); - struct.success.add(_elem1131); + _elem1211 = new FieldSchema(); + _elem1211.read(iprot); + struct.success.add(_elem1211); } iprot.readListEnd(); } @@ -55367,9 +55538,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 _iter1133 : struct.success) + for (FieldSchema _iter1213 : struct.success) { - _iter1133.write(oprot); + _iter1213.write(oprot); } oprot.writeListEnd(); } @@ -55424,9 +55595,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_with_env if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter1134 : struct.success) + for (FieldSchema _iter1214 : struct.success) { - _iter1134.write(oprot); + _iter1214.write(oprot); } } } @@ -55447,14 +55618,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 _list1135 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1135.size); - FieldSchema _elem1136; - for (int _i1137 = 0; _i1137 < _list1135.size; ++_i1137) + 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) { - _elem1136 = new FieldSchema(); - _elem1136.read(iprot); - struct.success.add(_elem1136); + _elem1216 = new FieldSchema(); + _elem1216.read(iprot); + struct.success.add(_elem1216); } } struct.setSuccessIsSet(true); @@ -58583,14 +58754,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 _list1138 = iprot.readListBegin(); - struct.primaryKeys = new ArrayList(_list1138.size); - SQLPrimaryKey _elem1139; - for (int _i1140 = 0; _i1140 < _list1138.size; ++_i1140) + org.apache.thrift.protocol.TList _list1218 = iprot.readListBegin(); + struct.primaryKeys = new ArrayList(_list1218.size); + SQLPrimaryKey _elem1219; + for (int _i1220 = 0; _i1220 < _list1218.size; ++_i1220) { - _elem1139 = new SQLPrimaryKey(); - _elem1139.read(iprot); - struct.primaryKeys.add(_elem1139); + _elem1219 = new SQLPrimaryKey(); + _elem1219.read(iprot); + struct.primaryKeys.add(_elem1219); } iprot.readListEnd(); } @@ -58602,14 +58773,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 _list1141 = iprot.readListBegin(); - struct.foreignKeys = new ArrayList(_list1141.size); - SQLForeignKey _elem1142; - for (int _i1143 = 0; _i1143 < _list1141.size; ++_i1143) + org.apache.thrift.protocol.TList _list1221 = iprot.readListBegin(); + struct.foreignKeys = new ArrayList(_list1221.size); + SQLForeignKey _elem1222; + for (int _i1223 = 0; _i1223 < _list1221.size; ++_i1223) { - _elem1142 = new SQLForeignKey(); - _elem1142.read(iprot); - struct.foreignKeys.add(_elem1142); + _elem1222 = new SQLForeignKey(); + _elem1222.read(iprot); + struct.foreignKeys.add(_elem1222); } iprot.readListEnd(); } @@ -58621,14 +58792,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 _list1144 = iprot.readListBegin(); - struct.uniqueConstraints = new ArrayList(_list1144.size); - SQLUniqueConstraint _elem1145; - for (int _i1146 = 0; _i1146 < _list1144.size; ++_i1146) + org.apache.thrift.protocol.TList _list1224 = iprot.readListBegin(); + struct.uniqueConstraints = new ArrayList(_list1224.size); + SQLUniqueConstraint _elem1225; + for (int _i1226 = 0; _i1226 < _list1224.size; ++_i1226) { - _elem1145 = new SQLUniqueConstraint(); - _elem1145.read(iprot); - struct.uniqueConstraints.add(_elem1145); + _elem1225 = new SQLUniqueConstraint(); + _elem1225.read(iprot); + struct.uniqueConstraints.add(_elem1225); } iprot.readListEnd(); } @@ -58640,14 +58811,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 _list1147 = iprot.readListBegin(); - struct.notNullConstraints = new ArrayList(_list1147.size); - SQLNotNullConstraint _elem1148; - for (int _i1149 = 0; _i1149 < _list1147.size; ++_i1149) + org.apache.thrift.protocol.TList _list1227 = iprot.readListBegin(); + struct.notNullConstraints = new ArrayList(_list1227.size); + SQLNotNullConstraint _elem1228; + for (int _i1229 = 0; _i1229 < _list1227.size; ++_i1229) { - _elem1148 = new SQLNotNullConstraint(); - _elem1148.read(iprot); - struct.notNullConstraints.add(_elem1148); + _elem1228 = new SQLNotNullConstraint(); + _elem1228.read(iprot); + struct.notNullConstraints.add(_elem1228); } iprot.readListEnd(); } @@ -58659,14 +58830,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 _list1150 = iprot.readListBegin(); - struct.defaultConstraints = new ArrayList(_list1150.size); - SQLDefaultConstraint _elem1151; - for (int _i1152 = 0; _i1152 < _list1150.size; ++_i1152) + org.apache.thrift.protocol.TList _list1230 = iprot.readListBegin(); + struct.defaultConstraints = new ArrayList(_list1230.size); + SQLDefaultConstraint _elem1231; + for (int _i1232 = 0; _i1232 < _list1230.size; ++_i1232) { - _elem1151 = new SQLDefaultConstraint(); - _elem1151.read(iprot); - struct.defaultConstraints.add(_elem1151); + _elem1231 = new SQLDefaultConstraint(); + _elem1231.read(iprot); + struct.defaultConstraints.add(_elem1231); } iprot.readListEnd(); } @@ -58678,14 +58849,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 _list1153 = iprot.readListBegin(); - struct.checkConstraints = new ArrayList(_list1153.size); - SQLCheckConstraint _elem1154; - for (int _i1155 = 0; _i1155 < _list1153.size; ++_i1155) + org.apache.thrift.protocol.TList _list1233 = iprot.readListBegin(); + struct.checkConstraints = new ArrayList(_list1233.size); + SQLCheckConstraint _elem1234; + for (int _i1235 = 0; _i1235 < _list1233.size; ++_i1235) { - _elem1154 = new SQLCheckConstraint(); - _elem1154.read(iprot); - struct.checkConstraints.add(_elem1154); + _elem1234 = new SQLCheckConstraint(); + _elem1234.read(iprot); + struct.checkConstraints.add(_elem1234); } iprot.readListEnd(); } @@ -58716,9 +58887,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 _iter1156 : struct.primaryKeys) + for (SQLPrimaryKey _iter1236 : struct.primaryKeys) { - _iter1156.write(oprot); + _iter1236.write(oprot); } oprot.writeListEnd(); } @@ -58728,9 +58899,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 _iter1157 : struct.foreignKeys) + for (SQLForeignKey _iter1237 : struct.foreignKeys) { - _iter1157.write(oprot); + _iter1237.write(oprot); } oprot.writeListEnd(); } @@ -58740,9 +58911,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 _iter1158 : struct.uniqueConstraints) + for (SQLUniqueConstraint _iter1238 : struct.uniqueConstraints) { - _iter1158.write(oprot); + _iter1238.write(oprot); } oprot.writeListEnd(); } @@ -58752,9 +58923,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 _iter1159 : struct.notNullConstraints) + for (SQLNotNullConstraint _iter1239 : struct.notNullConstraints) { - _iter1159.write(oprot); + _iter1239.write(oprot); } oprot.writeListEnd(); } @@ -58764,9 +58935,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 _iter1160 : struct.defaultConstraints) + for (SQLDefaultConstraint _iter1240 : struct.defaultConstraints) { - _iter1160.write(oprot); + _iter1240.write(oprot); } oprot.writeListEnd(); } @@ -58776,9 +58947,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 _iter1161 : struct.checkConstraints) + for (SQLCheckConstraint _iter1241 : struct.checkConstraints) { - _iter1161.write(oprot); + _iter1241.write(oprot); } oprot.writeListEnd(); } @@ -58830,54 +59001,54 @@ public void write(org.apache.thrift.protocol.TProtocol prot, create_table_with_c if (struct.isSetPrimaryKeys()) { { oprot.writeI32(struct.primaryKeys.size()); - for (SQLPrimaryKey _iter1162 : struct.primaryKeys) + for (SQLPrimaryKey _iter1242 : struct.primaryKeys) { - _iter1162.write(oprot); + _iter1242.write(oprot); } } } if (struct.isSetForeignKeys()) { { oprot.writeI32(struct.foreignKeys.size()); - for (SQLForeignKey _iter1163 : struct.foreignKeys) + for (SQLForeignKey _iter1243 : struct.foreignKeys) { - _iter1163.write(oprot); + _iter1243.write(oprot); } } } if (struct.isSetUniqueConstraints()) { { oprot.writeI32(struct.uniqueConstraints.size()); - for (SQLUniqueConstraint _iter1164 : struct.uniqueConstraints) + for (SQLUniqueConstraint _iter1244 : struct.uniqueConstraints) { - _iter1164.write(oprot); + _iter1244.write(oprot); } } } if (struct.isSetNotNullConstraints()) { { oprot.writeI32(struct.notNullConstraints.size()); - for (SQLNotNullConstraint _iter1165 : struct.notNullConstraints) + for (SQLNotNullConstraint _iter1245 : struct.notNullConstraints) { - _iter1165.write(oprot); + _iter1245.write(oprot); } } } if (struct.isSetDefaultConstraints()) { { oprot.writeI32(struct.defaultConstraints.size()); - for (SQLDefaultConstraint _iter1166 : struct.defaultConstraints) + for (SQLDefaultConstraint _iter1246 : struct.defaultConstraints) { - _iter1166.write(oprot); + _iter1246.write(oprot); } } } if (struct.isSetCheckConstraints()) { { oprot.writeI32(struct.checkConstraints.size()); - for (SQLCheckConstraint _iter1167 : struct.checkConstraints) + for (SQLCheckConstraint _iter1247 : struct.checkConstraints) { - _iter1167.write(oprot); + _iter1247.write(oprot); } } } @@ -58894,84 +59065,84 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_table_with_co } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list1168 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.primaryKeys = new ArrayList(_list1168.size); - SQLPrimaryKey _elem1169; - for (int _i1170 = 0; _i1170 < _list1168.size; ++_i1170) + 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) { - _elem1169 = new SQLPrimaryKey(); - _elem1169.read(iprot); - struct.primaryKeys.add(_elem1169); + _elem1249 = new SQLPrimaryKey(); + _elem1249.read(iprot); + struct.primaryKeys.add(_elem1249); } } struct.setPrimaryKeysIsSet(true); } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1171 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.foreignKeys = new ArrayList(_list1171.size); - SQLForeignKey _elem1172; - for (int _i1173 = 0; _i1173 < _list1171.size; ++_i1173) + 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) { - _elem1172 = new SQLForeignKey(); - _elem1172.read(iprot); - struct.foreignKeys.add(_elem1172); + _elem1252 = new SQLForeignKey(); + _elem1252.read(iprot); + struct.foreignKeys.add(_elem1252); } } struct.setForeignKeysIsSet(true); } if (incoming.get(3)) { { - org.apache.thrift.protocol.TList _list1174 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.uniqueConstraints = new ArrayList(_list1174.size); - SQLUniqueConstraint _elem1175; - for (int _i1176 = 0; _i1176 < _list1174.size; ++_i1176) + 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) { - _elem1175 = new SQLUniqueConstraint(); - _elem1175.read(iprot); - struct.uniqueConstraints.add(_elem1175); + _elem1255 = new SQLUniqueConstraint(); + _elem1255.read(iprot); + struct.uniqueConstraints.add(_elem1255); } } struct.setUniqueConstraintsIsSet(true); } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list1177 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.notNullConstraints = new ArrayList(_list1177.size); - SQLNotNullConstraint _elem1178; - for (int _i1179 = 0; _i1179 < _list1177.size; ++_i1179) + 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) { - _elem1178 = new SQLNotNullConstraint(); - _elem1178.read(iprot); - struct.notNullConstraints.add(_elem1178); + _elem1258 = new SQLNotNullConstraint(); + _elem1258.read(iprot); + struct.notNullConstraints.add(_elem1258); } } struct.setNotNullConstraintsIsSet(true); } if (incoming.get(5)) { { - org.apache.thrift.protocol.TList _list1180 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.defaultConstraints = new ArrayList(_list1180.size); - SQLDefaultConstraint _elem1181; - for (int _i1182 = 0; _i1182 < _list1180.size; ++_i1182) + 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) { - _elem1181 = new SQLDefaultConstraint(); - _elem1181.read(iprot); - struct.defaultConstraints.add(_elem1181); + _elem1261 = new SQLDefaultConstraint(); + _elem1261.read(iprot); + struct.defaultConstraints.add(_elem1261); } } struct.setDefaultConstraintsIsSet(true); } if (incoming.get(6)) { { - org.apache.thrift.protocol.TList _list1183 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.checkConstraints = new ArrayList(_list1183.size); - SQLCheckConstraint _elem1184; - for (int _i1185 = 0; _i1185 < _list1183.size; ++_i1185) + 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) { - _elem1184 = new SQLCheckConstraint(); - _elem1184.read(iprot); - struct.checkConstraints.add(_elem1184); + _elem1264 = new SQLCheckConstraint(); + _elem1264.read(iprot); + struct.checkConstraints.add(_elem1264); } } struct.setCheckConstraintsIsSet(true); @@ -59659,22 +59830,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_table_with_co } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_constraint_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_constraint_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class create_table_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("create_table_req_args"); - private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); + 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_constraint_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_constraint_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new create_table_req_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new create_table_req_argsTupleSchemeFactory()); } - private DropConstraintRequest req; // required + private CreateTableRequest 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 { - REQ((short)1, "req"); + REQUEST((short)1, "request"); private static final Map byName = new HashMap(); @@ -59689,8 +59860,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_table_with_co */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // REQ - return REQ; + case 1: // REQUEST + return REQUEST; default: return null; } @@ -59734,70 +59905,70 @@ public String getFieldName() { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DropConstraintRequest.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, CreateTableRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_constraint_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_table_req_args.class, metaDataMap); } - public drop_constraint_args() { + public create_table_req_args() { } - public drop_constraint_args( - DropConstraintRequest req) + public create_table_req_args( + CreateTableRequest request) { this(); - this.req = req; + this.request = request; } /** * Performs a deep copy on other. */ - public drop_constraint_args(drop_constraint_args other) { - if (other.isSetReq()) { - this.req = new DropConstraintRequest(other.req); + public create_table_req_args(create_table_req_args other) { + if (other.isSetRequest()) { + this.request = new CreateTableRequest(other.request); } } - public drop_constraint_args deepCopy() { - return new drop_constraint_args(this); + public create_table_req_args deepCopy() { + return new create_table_req_args(this); } @Override public void clear() { - this.req = null; + this.request = null; } - public DropConstraintRequest getReq() { - return this.req; + public CreateTableRequest getRequest() { + return this.request; } - public void setReq(DropConstraintRequest req) { - this.req = req; + public void setRequest(CreateTableRequest request) { + this.request = request; } - public void unsetReq() { - this.req = null; + public void unsetRequest() { + this.request = null; } - /** Returns true if field req is set (has been assigned a value) and false otherwise */ - public boolean isSetReq() { - return this.req != 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 setReqIsSet(boolean value) { + public void setRequestIsSet(boolean value) { if (!value) { - this.req = null; + this.request = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case REQ: + case REQUEST: if (value == null) { - unsetReq(); + unsetRequest(); } else { - setReq((DropConstraintRequest)value); + setRequest((CreateTableRequest)value); } break; @@ -59806,8 +59977,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case REQ: - return getReq(); + case REQUEST: + return getRequest(); } throw new IllegalStateException(); @@ -59820,8 +59991,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case REQ: - return isSetReq(); + case REQUEST: + return isSetRequest(); } throw new IllegalStateException(); } @@ -59830,21 +60001,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_constraint_args) - return this.equals((drop_constraint_args)that); + if (that instanceof create_table_req_args) + return this.equals((create_table_req_args)that); return false; } - public boolean equals(drop_constraint_args that) { + public boolean equals(create_table_req_args that) { if (that == null) return false; - boolean this_present_req = true && this.isSetReq(); - boolean that_present_req = true && that.isSetReq(); - if (this_present_req || that_present_req) { - if (!(this_present_req && that_present_req)) + 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.req.equals(that.req)) + if (!this.request.equals(that.request)) return false; } @@ -59855,28 +60026,28 @@ public boolean equals(drop_constraint_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_req = true && (isSetReq()); - list.add(present_req); - if (present_req) - list.add(req); + boolean present_request = true && (isSetRequest()); + list.add(present_request); + if (present_request) + list.add(request); return list.hashCode(); } @Override - public int compareTo(drop_constraint_args other) { + public int compareTo(create_table_req_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetRequest()).compareTo(other.isSetRequest()); if (lastComparison != 0) { return lastComparison; } - if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + if (isSetRequest()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request); if (lastComparison != 0) { return lastComparison; } @@ -59898,14 +60069,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_constraint_args("); + StringBuilder sb = new StringBuilder("create_table_req_args("); boolean first = true; - sb.append("req:"); - if (this.req == null) { + sb.append("request:"); + if (this.request == null) { sb.append("null"); } else { - sb.append(this.req); + sb.append(this.request); } first = false; sb.append(")"); @@ -59915,8 +60086,8 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (req != null) { - req.validate(); + if (request != null) { + request.validate(); } } @@ -59936,15 +60107,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class drop_constraint_argsStandardSchemeFactory implements SchemeFactory { - public drop_constraint_argsStandardScheme getScheme() { - return new drop_constraint_argsStandardScheme(); + private static class create_table_req_argsStandardSchemeFactory implements SchemeFactory { + public create_table_req_argsStandardScheme getScheme() { + return new create_table_req_argsStandardScheme(); } } - private static class drop_constraint_argsStandardScheme extends StandardScheme { + private static class create_table_req_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_constraint_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_req_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -59954,11 +60125,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_constraint_arg break; } switch (schemeField.id) { - case 1: // REQ + case 1: // REQUEST if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.req = new DropConstraintRequest(); - struct.req.read(iprot); - struct.setReqIsSet(true); + struct.request = new CreateTableRequest(); + struct.request.read(iprot); + struct.setRequestIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -59972,13 +60143,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_constraint_arg struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_constraint_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_req_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.req != null) { - oprot.writeFieldBegin(REQ_FIELD_DESC); - struct.req.write(oprot); + if (struct.request != null) { + oprot.writeFieldBegin(REQUEST_FIELD_DESC); + struct.request.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -59987,60 +60158,66 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_constraint_ar } - private static class drop_constraint_argsTupleSchemeFactory implements SchemeFactory { - public drop_constraint_argsTupleScheme getScheme() { - return new drop_constraint_argsTupleScheme(); + private static class create_table_req_argsTupleSchemeFactory implements SchemeFactory { + public create_table_req_argsTupleScheme getScheme() { + return new create_table_req_argsTupleScheme(); } } - private static class drop_constraint_argsTupleScheme extends TupleScheme { + private static class create_table_req_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_constraint_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, create_table_req_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetReq()) { + if (struct.isSetRequest()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); - if (struct.isSetReq()) { - struct.req.write(oprot); + if (struct.isSetRequest()) { + struct.request.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_constraint_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, create_table_req_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.req = new DropConstraintRequest(); - struct.req.read(iprot); - struct.setReqIsSet(true); + struct.request = new CreateTableRequest(); + struct.request.read(iprot); + struct.setRequestIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_constraint_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("drop_constraint_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class create_table_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("create_table_req_result"); 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 O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)2); + 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 org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField O4_FIELD_DESC = new org.apache.thrift.protocol.TField("o4", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_constraint_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_constraint_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new create_table_req_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new create_table_req_resultTupleSchemeFactory()); } - private NoSuchObjectException o1; // required + private AlreadyExistsException o1; // required + private InvalidObjectException o2; // required private MetaException o3; // required + private NoSuchObjectException o4; // 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 { O1((short)1, "o1"), - O3((short)2, "o3"); + O2((short)2, "o2"), + O3((short)3, "o3"), + O4((short)4, "o4"); private static final Map byName = new HashMap(); @@ -60057,8 +60234,12 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // O1 return O1; - case 2: // O3 + case 2: // O2 + return O2; + case 3: // O3 return O3; + case 4: // O4 + return O4; default: return null; } @@ -60104,51 +60285,67 @@ public String getFieldName() { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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))); tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O4, new org.apache.thrift.meta_data.FieldMetaData("o4", 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(drop_constraint_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_table_req_result.class, metaDataMap); } - public drop_constraint_result() { + public create_table_req_result() { } - public drop_constraint_result( - NoSuchObjectException o1, - MetaException o3) + public create_table_req_result( + AlreadyExistsException o1, + InvalidObjectException o2, + MetaException o3, + NoSuchObjectException o4) { this(); this.o1 = o1; + this.o2 = o2; this.o3 = o3; + this.o4 = o4; } /** * Performs a deep copy on other. */ - public drop_constraint_result(drop_constraint_result other) { + public create_table_req_result(create_table_req_result other) { if (other.isSetO1()) { - this.o1 = new NoSuchObjectException(other.o1); + this.o1 = new AlreadyExistsException(other.o1); + } + if (other.isSetO2()) { + this.o2 = new InvalidObjectException(other.o2); } if (other.isSetO3()) { this.o3 = new MetaException(other.o3); } + if (other.isSetO4()) { + this.o4 = new NoSuchObjectException(other.o4); + } } - public drop_constraint_result deepCopy() { - return new drop_constraint_result(this); + public create_table_req_result deepCopy() { + return new create_table_req_result(this); } @Override public void clear() { this.o1 = null; + this.o2 = null; this.o3 = null; + this.o4 = null; } - public NoSuchObjectException getO1() { + public AlreadyExistsException getO1() { return this.o1; } - public void setO1(NoSuchObjectException o1) { + public void setO1(AlreadyExistsException o1) { this.o1 = o1; } @@ -60167,6 +60364,29 @@ public void setO1IsSet(boolean value) { } } + public InvalidObjectException getO2() { + return this.o2; + } + + public void setO2(InvalidObjectException 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 MetaException getO3() { return this.o3; } @@ -60190,13 +60410,44 @@ public void setO3IsSet(boolean value) { } } + public NoSuchObjectException getO4() { + return this.o4; + } + + public void setO4(NoSuchObjectException o4) { + this.o4 = o4; + } + + public void unsetO4() { + this.o4 = null; + } + + /** Returns true if field o4 is set (has been assigned a value) and false otherwise */ + public boolean isSetO4() { + return this.o4 != null; + } + + public void setO4IsSet(boolean value) { + if (!value) { + this.o4 = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case O1: if (value == null) { unsetO1(); } else { - setO1((NoSuchObjectException)value); + setO1((AlreadyExistsException)value); + } + break; + + case O2: + if (value == null) { + unsetO2(); + } else { + setO2((InvalidObjectException)value); } break; @@ -60208,6 +60459,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case O4: + if (value == null) { + unsetO4(); + } else { + setO4((NoSuchObjectException)value); + } + break; + } } @@ -60216,9 +60475,15 @@ public Object getFieldValue(_Fields field) { case O1: return getO1(); + case O2: + return getO2(); + case O3: return getO3(); + case O4: + return getO4(); + } throw new IllegalStateException(); } @@ -60232,8 +60497,12 @@ public boolean isSet(_Fields field) { switch (field) { case O1: return isSetO1(); + case O2: + return isSetO2(); case O3: return isSetO3(); + case O4: + return isSetO4(); } throw new IllegalStateException(); } @@ -60242,12 +60511,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_constraint_result) - return this.equals((drop_constraint_result)that); + if (that instanceof create_table_req_result) + return this.equals((create_table_req_result)that); return false; } - public boolean equals(drop_constraint_result that) { + public boolean equals(create_table_req_result that) { if (that == null) return false; @@ -60260,6 +60529,15 @@ public boolean equals(drop_constraint_result that) { 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; + } + boolean this_present_o3 = true && this.isSetO3(); boolean that_present_o3 = true && that.isSetO3(); if (this_present_o3 || that_present_o3) { @@ -60269,6 +60547,15 @@ public boolean equals(drop_constraint_result that) { return false; } + boolean this_present_o4 = true && this.isSetO4(); + boolean that_present_o4 = true && that.isSetO4(); + if (this_present_o4 || that_present_o4) { + if (!(this_present_o4 && that_present_o4)) + return false; + if (!this.o4.equals(that.o4)) + return false; + } + return true; } @@ -60281,16 +60568,26 @@ public int hashCode() { if (present_o1) list.add(o1); + boolean present_o2 = true && (isSetO2()); + list.add(present_o2); + if (present_o2) + list.add(o2); + boolean present_o3 = true && (isSetO3()); list.add(present_o3); if (present_o3) list.add(o3); + boolean present_o4 = true && (isSetO4()); + list.add(present_o4); + if (present_o4) + list.add(o4); + return list.hashCode(); } @Override - public int compareTo(drop_constraint_result other) { + public int compareTo(create_table_req_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -60307,6 +60604,16 @@ public int compareTo(drop_constraint_result other) { 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; + } + } lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); if (lastComparison != 0) { return lastComparison; @@ -60317,6 +60624,16 @@ public int compareTo(drop_constraint_result other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetO4()).compareTo(other.isSetO4()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO4()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, other.o4); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -60334,7 +60651,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_constraint_result("); + StringBuilder sb = new StringBuilder("create_table_req_result("); boolean first = true; sb.append("o1:"); @@ -60345,6 +60662,14 @@ public String toString() { } first = false; if (!first) sb.append(", "); + sb.append("o2:"); + if (this.o2 == null) { + sb.append("null"); + } else { + sb.append(this.o2); + } + first = false; + if (!first) sb.append(", "); sb.append("o3:"); if (this.o3 == null) { sb.append("null"); @@ -60352,6 +60677,14 @@ public String toString() { sb.append(this.o3); } first = false; + if (!first) sb.append(", "); + sb.append("o4:"); + if (this.o4 == null) { + sb.append("null"); + } else { + sb.append(this.o4); + } + first = false; sb.append(")"); return sb.toString(); } @@ -60377,15 +60710,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class drop_constraint_resultStandardSchemeFactory implements SchemeFactory { - public drop_constraint_resultStandardScheme getScheme() { - return new drop_constraint_resultStandardScheme(); + private static class create_table_req_resultStandardSchemeFactory implements SchemeFactory { + public create_table_req_resultStandardScheme getScheme() { + return new create_table_req_resultStandardScheme(); } } - private static class drop_constraint_resultStandardScheme extends StandardScheme { + private static class create_table_req_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_constraint_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_req_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -60397,14 +60730,23 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_constraint_res switch (schemeField.id) { case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new NoSuchObjectException(); + struct.o1 = new AlreadyExistsException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // O3 + case 2: // O2 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o2 = new InvalidObjectException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // O3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.o3 = new MetaException(); struct.o3.read(iprot); @@ -60413,6 +60755,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_constraint_res org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 4: // O4 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o4 = new NoSuchObjectException(); + struct.o4.read(iprot); + struct.setO4IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -60422,7 +60773,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_constraint_res struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_constraint_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_req_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -60431,75 +60782,107 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_constraint_re struct.o1.write(oprot); oprot.writeFieldEnd(); } + if (struct.o2 != null) { + oprot.writeFieldBegin(O2_FIELD_DESC); + struct.o2.write(oprot); + oprot.writeFieldEnd(); + } if (struct.o3 != null) { oprot.writeFieldBegin(O3_FIELD_DESC); struct.o3.write(oprot); oprot.writeFieldEnd(); } + if (struct.o4 != null) { + oprot.writeFieldBegin(O4_FIELD_DESC); + struct.o4.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class drop_constraint_resultTupleSchemeFactory implements SchemeFactory { - public drop_constraint_resultTupleScheme getScheme() { - return new drop_constraint_resultTupleScheme(); + private static class create_table_req_resultTupleSchemeFactory implements SchemeFactory { + public create_table_req_resultTupleScheme getScheme() { + return new create_table_req_resultTupleScheme(); } } - private static class drop_constraint_resultTupleScheme extends TupleScheme { + private static class create_table_req_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_constraint_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, create_table_req_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetO1()) { optionals.set(0); } - if (struct.isSetO3()) { + if (struct.isSetO2()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetO3()) { + optionals.set(2); + } + if (struct.isSetO4()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); if (struct.isSetO1()) { struct.o1.write(oprot); } + if (struct.isSetO2()) { + struct.o2.write(oprot); + } if (struct.isSetO3()) { struct.o3.write(oprot); } + if (struct.isSetO4()) { + struct.o4.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_constraint_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, create_table_req_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.o1 = new NoSuchObjectException(); + struct.o1 = new AlreadyExistsException(); struct.o1.read(iprot); struct.setO1IsSet(true); } if (incoming.get(1)) { + struct.o2 = new InvalidObjectException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } + if (incoming.get(2)) { struct.o3 = new MetaException(); struct.o3.read(iprot); struct.setO3IsSet(true); } + if (incoming.get(3)) { + struct.o4 = new NoSuchObjectException(); + struct.o4.read(iprot); + struct.setO4IsSet(true); + } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_primary_key_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("add_primary_key_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_constraint_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_constraint_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_primary_key_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_primary_key_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_constraint_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_constraint_argsTupleSchemeFactory()); } - private AddPrimaryKeyRequest req; // required + private DropConstraintRequest req; // 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 { @@ -60564,16 +60947,16 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AddPrimaryKeyRequest.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DropConstraintRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_primary_key_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_constraint_args.class, metaDataMap); } - public add_primary_key_args() { + public drop_constraint_args() { } - public add_primary_key_args( - AddPrimaryKeyRequest req) + public drop_constraint_args( + DropConstraintRequest req) { this(); this.req = req; @@ -60582,14 +60965,14 @@ public add_primary_key_args( /** * Performs a deep copy on other. */ - public add_primary_key_args(add_primary_key_args other) { + public drop_constraint_args(drop_constraint_args other) { if (other.isSetReq()) { - this.req = new AddPrimaryKeyRequest(other.req); + this.req = new DropConstraintRequest(other.req); } } - public add_primary_key_args deepCopy() { - return new add_primary_key_args(this); + public drop_constraint_args deepCopy() { + return new drop_constraint_args(this); } @Override @@ -60597,11 +60980,11 @@ public void clear() { this.req = null; } - public AddPrimaryKeyRequest getReq() { + public DropConstraintRequest getReq() { return this.req; } - public void setReq(AddPrimaryKeyRequest req) { + public void setReq(DropConstraintRequest req) { this.req = req; } @@ -60626,7 +61009,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetReq(); } else { - setReq((AddPrimaryKeyRequest)value); + setReq((DropConstraintRequest)value); } break; @@ -60659,12 +61042,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_primary_key_args) - return this.equals((add_primary_key_args)that); + if (that instanceof drop_constraint_args) + return this.equals((drop_constraint_args)that); return false; } - public boolean equals(add_primary_key_args that) { + public boolean equals(drop_constraint_args that) { if (that == null) return false; @@ -60693,7 +61076,7 @@ public int hashCode() { } @Override - public int compareTo(add_primary_key_args other) { + public int compareTo(drop_constraint_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -60727,7 +61110,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_primary_key_args("); + StringBuilder sb = new StringBuilder("drop_constraint_args("); boolean first = true; sb.append("req:"); @@ -60765,15 +61148,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class add_primary_key_argsStandardSchemeFactory implements SchemeFactory { - public add_primary_key_argsStandardScheme getScheme() { - return new add_primary_key_argsStandardScheme(); + private static class drop_constraint_argsStandardSchemeFactory implements SchemeFactory { + public drop_constraint_argsStandardScheme getScheme() { + return new drop_constraint_argsStandardScheme(); } } - private static class add_primary_key_argsStandardScheme extends StandardScheme { + private static class drop_constraint_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_primary_key_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_constraint_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -60785,7 +61168,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_primary_key_arg switch (schemeField.id) { case 1: // REQ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.req = new AddPrimaryKeyRequest(); + struct.req = new DropConstraintRequest(); struct.req.read(iprot); struct.setReqIsSet(true); } else { @@ -60801,7 +61184,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_primary_key_arg struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_primary_key_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_constraint_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -60816,16 +61199,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_primary_key_ar } - private static class add_primary_key_argsTupleSchemeFactory implements SchemeFactory { - public add_primary_key_argsTupleScheme getScheme() { - return new add_primary_key_argsTupleScheme(); + private static class drop_constraint_argsTupleSchemeFactory implements SchemeFactory { + public drop_constraint_argsTupleScheme getScheme() { + return new drop_constraint_argsTupleScheme(); } } - private static class add_primary_key_argsTupleScheme extends TupleScheme { + private static class drop_constraint_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_primary_key_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_constraint_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetReq()) { @@ -60838,11 +61221,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_primary_key_arg } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_primary_key_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_constraint_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.req = new AddPrimaryKeyRequest(); + struct.req = new DropConstraintRequest(); struct.req.read(iprot); struct.setReqIsSet(true); } @@ -60851,25 +61234,25 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_primary_key_args } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_primary_key_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("add_primary_key_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_constraint_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("drop_constraint_result"); 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 org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_primary_key_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_primary_key_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_constraint_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_constraint_resultTupleSchemeFactory()); } private NoSuchObjectException o1; // required - private MetaException o2; // required + private MetaException o3; // 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 { O1((short)1, "o1"), - O2((short)2, "o2"); + O3((short)2, "o3"); private static final Map byName = new HashMap(); @@ -60886,8 +61269,8 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // O1 return O1; - case 2: // O2 - return O2; + case 2: // O3 + return O3; default: return null; } @@ -60933,44 +61316,44 @@ public String getFieldName() { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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, + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", 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(add_primary_key_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_constraint_result.class, metaDataMap); } - public add_primary_key_result() { + public drop_constraint_result() { } - public add_primary_key_result( + public drop_constraint_result( NoSuchObjectException o1, - MetaException o2) + MetaException o3) { this(); this.o1 = o1; - this.o2 = o2; + this.o3 = o3; } /** * Performs a deep copy on other. */ - public add_primary_key_result(add_primary_key_result other) { + public drop_constraint_result(drop_constraint_result other) { if (other.isSetO1()) { this.o1 = new NoSuchObjectException(other.o1); } - if (other.isSetO2()) { - this.o2 = new MetaException(other.o2); + if (other.isSetO3()) { + this.o3 = new MetaException(other.o3); } } - public add_primary_key_result deepCopy() { - return new add_primary_key_result(this); + public drop_constraint_result deepCopy() { + return new drop_constraint_result(this); } @Override public void clear() { this.o1 = null; - this.o2 = null; + this.o3 = null; } public NoSuchObjectException getO1() { @@ -60996,26 +61379,26 @@ public void setO1IsSet(boolean value) { } } - public MetaException getO2() { - return this.o2; + public MetaException getO3() { + return this.o3; } - public void setO2(MetaException o2) { - this.o2 = o2; + public void setO3(MetaException o3) { + this.o3 = o3; } - public void unsetO2() { - this.o2 = null; + public void unsetO3() { + this.o3 = null; } - /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ - public boolean isSetO2() { - return this.o2 != null; + /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ + public boolean isSetO3() { + return this.o3 != null; } - public void setO2IsSet(boolean value) { + public void setO3IsSet(boolean value) { if (!value) { - this.o2 = null; + this.o3 = null; } } @@ -61029,11 +61412,11 @@ public void setFieldValue(_Fields field, Object value) { } break; - case O2: + case O3: if (value == null) { - unsetO2(); + unsetO3(); } else { - setO2((MetaException)value); + setO3((MetaException)value); } break; @@ -61045,8 +61428,8 @@ public Object getFieldValue(_Fields field) { case O1: return getO1(); - case O2: - return getO2(); + case O3: + return getO3(); } throw new IllegalStateException(); @@ -61061,8 +61444,8 @@ public boolean isSet(_Fields field) { switch (field) { case O1: return isSetO1(); - case O2: - return isSetO2(); + case O3: + return isSetO3(); } throw new IllegalStateException(); } @@ -61071,12 +61454,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_primary_key_result) - return this.equals((add_primary_key_result)that); + if (that instanceof drop_constraint_result) + return this.equals((drop_constraint_result)that); return false; } - public boolean equals(add_primary_key_result that) { + public boolean equals(drop_constraint_result that) { if (that == null) return false; @@ -61089,12 +61472,12 @@ public boolean equals(add_primary_key_result that) { 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)) + boolean this_present_o3 = true && this.isSetO3(); + boolean that_present_o3 = true && that.isSetO3(); + if (this_present_o3 || that_present_o3) { + if (!(this_present_o3 && that_present_o3)) return false; - if (!this.o2.equals(that.o2)) + if (!this.o3.equals(that.o3)) return false; } @@ -61110,16 +61493,16 @@ public int hashCode() { if (present_o1) list.add(o1); - boolean present_o2 = true && (isSetO2()); - list.add(present_o2); - if (present_o2) - list.add(o2); + boolean present_o3 = true && (isSetO3()); + list.add(present_o3); + if (present_o3) + list.add(o3); return list.hashCode(); } @Override - public int compareTo(add_primary_key_result other) { + public int compareTo(drop_constraint_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -61136,12 +61519,12 @@ public int compareTo(add_primary_key_result other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); if (lastComparison != 0) { return lastComparison; } - if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + if (isSetO3()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); if (lastComparison != 0) { return lastComparison; } @@ -61163,7 +61546,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_primary_key_result("); + StringBuilder sb = new StringBuilder("drop_constraint_result("); boolean first = true; sb.append("o1:"); @@ -61174,11 +61557,11 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("o2:"); - if (this.o2 == null) { + sb.append("o3:"); + if (this.o3 == null) { sb.append("null"); } else { - sb.append(this.o2); + sb.append(this.o3); } first = false; sb.append(")"); @@ -61206,15 +61589,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class add_primary_key_resultStandardSchemeFactory implements SchemeFactory { - public add_primary_key_resultStandardScheme getScheme() { - return new add_primary_key_resultStandardScheme(); + private static class drop_constraint_resultStandardSchemeFactory implements SchemeFactory { + public drop_constraint_resultStandardScheme getScheme() { + return new drop_constraint_resultStandardScheme(); } } - private static class add_primary_key_resultStandardScheme extends StandardScheme { + private static class drop_constraint_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_primary_key_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_constraint_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -61233,11 +61616,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_primary_key_res org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // O2 + case 2: // O3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new MetaException(); - struct.o2.read(iprot); - struct.setO2IsSet(true); + struct.o3 = new MetaException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -61251,7 +61634,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_primary_key_res struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_primary_key_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_constraint_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -61260,9 +61643,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_primary_key_re struct.o1.write(oprot); oprot.writeFieldEnd(); } - if (struct.o2 != null) { - oprot.writeFieldBegin(O2_FIELD_DESC); - struct.o2.write(oprot); + if (struct.o3 != null) { + oprot.writeFieldBegin(O3_FIELD_DESC); + struct.o3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -61271,35 +61654,35 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_primary_key_re } - private static class add_primary_key_resultTupleSchemeFactory implements SchemeFactory { - public add_primary_key_resultTupleScheme getScheme() { - return new add_primary_key_resultTupleScheme(); + private static class drop_constraint_resultTupleSchemeFactory implements SchemeFactory { + public drop_constraint_resultTupleScheme getScheme() { + return new drop_constraint_resultTupleScheme(); } } - private static class add_primary_key_resultTupleScheme extends TupleScheme { + private static class drop_constraint_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_primary_key_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_constraint_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetO1()) { optionals.set(0); } - if (struct.isSetO2()) { + if (struct.isSetO3()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetO1()) { struct.o1.write(oprot); } - if (struct.isSetO2()) { - struct.o2.write(oprot); + if (struct.isSetO3()) { + struct.o3.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_primary_key_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_constraint_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { @@ -61308,27 +61691,27 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_primary_key_resu struct.setO1IsSet(true); } if (incoming.get(1)) { - struct.o2 = new MetaException(); - struct.o2.read(iprot); - struct.setO2IsSet(true); + struct.o3 = new MetaException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_foreign_key_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("add_foreign_key_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_primary_key_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("add_primary_key_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_foreign_key_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_foreign_key_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_primary_key_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_primary_key_argsTupleSchemeFactory()); } - private AddForeignKeyRequest req; // required + private AddPrimaryKeyRequest req; // 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 { @@ -61393,16 +61776,16 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AddForeignKeyRequest.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AddPrimaryKeyRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_foreign_key_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_primary_key_args.class, metaDataMap); } - public add_foreign_key_args() { + public add_primary_key_args() { } - public add_foreign_key_args( - AddForeignKeyRequest req) + public add_primary_key_args( + AddPrimaryKeyRequest req) { this(); this.req = req; @@ -61411,14 +61794,14 @@ public add_foreign_key_args( /** * Performs a deep copy on other. */ - public add_foreign_key_args(add_foreign_key_args other) { + public add_primary_key_args(add_primary_key_args other) { if (other.isSetReq()) { - this.req = new AddForeignKeyRequest(other.req); + this.req = new AddPrimaryKeyRequest(other.req); } } - public add_foreign_key_args deepCopy() { - return new add_foreign_key_args(this); + public add_primary_key_args deepCopy() { + return new add_primary_key_args(this); } @Override @@ -61426,11 +61809,11 @@ public void clear() { this.req = null; } - public AddForeignKeyRequest getReq() { + public AddPrimaryKeyRequest getReq() { return this.req; } - public void setReq(AddForeignKeyRequest req) { + public void setReq(AddPrimaryKeyRequest req) { this.req = req; } @@ -61455,7 +61838,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetReq(); } else { - setReq((AddForeignKeyRequest)value); + setReq((AddPrimaryKeyRequest)value); } break; @@ -61488,12 +61871,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_foreign_key_args) - return this.equals((add_foreign_key_args)that); + if (that instanceof add_primary_key_args) + return this.equals((add_primary_key_args)that); return false; } - public boolean equals(add_foreign_key_args that) { + public boolean equals(add_primary_key_args that) { if (that == null) return false; @@ -61522,7 +61905,7 @@ public int hashCode() { } @Override - public int compareTo(add_foreign_key_args other) { + public int compareTo(add_primary_key_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -61556,7 +61939,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_foreign_key_args("); + StringBuilder sb = new StringBuilder("add_primary_key_args("); boolean first = true; sb.append("req:"); @@ -61594,15 +61977,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class add_foreign_key_argsStandardSchemeFactory implements SchemeFactory { - public add_foreign_key_argsStandardScheme getScheme() { - return new add_foreign_key_argsStandardScheme(); + private static class add_primary_key_argsStandardSchemeFactory implements SchemeFactory { + public add_primary_key_argsStandardScheme getScheme() { + return new add_primary_key_argsStandardScheme(); } } - private static class add_foreign_key_argsStandardScheme extends StandardScheme { + private static class add_primary_key_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_foreign_key_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_primary_key_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -61614,7 +61997,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_foreign_key_arg switch (schemeField.id) { case 1: // REQ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.req = new AddForeignKeyRequest(); + struct.req = new AddPrimaryKeyRequest(); struct.req.read(iprot); struct.setReqIsSet(true); } else { @@ -61630,7 +62013,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_foreign_key_arg struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_foreign_key_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_primary_key_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -61645,16 +62028,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_foreign_key_ar } - private static class add_foreign_key_argsTupleSchemeFactory implements SchemeFactory { - public add_foreign_key_argsTupleScheme getScheme() { - return new add_foreign_key_argsTupleScheme(); + private static class add_primary_key_argsTupleSchemeFactory implements SchemeFactory { + public add_primary_key_argsTupleScheme getScheme() { + return new add_primary_key_argsTupleScheme(); } } - private static class add_foreign_key_argsTupleScheme extends TupleScheme { + private static class add_primary_key_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_foreign_key_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_primary_key_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetReq()) { @@ -61667,11 +62050,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_foreign_key_arg } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_foreign_key_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_primary_key_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.req = new AddForeignKeyRequest(); + struct.req = new AddPrimaryKeyRequest(); struct.req.read(iprot); struct.setReqIsSet(true); } @@ -61680,16 +62063,16 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_foreign_key_args } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_foreign_key_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("add_foreign_key_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_primary_key_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("add_primary_key_result"); 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 add_foreign_key_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_foreign_key_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_primary_key_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_primary_key_resultTupleSchemeFactory()); } private NoSuchObjectException o1; // required @@ -61765,13 +62148,13 @@ public String getFieldName() { 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(add_foreign_key_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_primary_key_result.class, metaDataMap); } - public add_foreign_key_result() { + public add_primary_key_result() { } - public add_foreign_key_result( + public add_primary_key_result( NoSuchObjectException o1, MetaException o2) { @@ -61783,7 +62166,7 @@ public add_foreign_key_result( /** * Performs a deep copy on other. */ - public add_foreign_key_result(add_foreign_key_result other) { + public add_primary_key_result(add_primary_key_result other) { if (other.isSetO1()) { this.o1 = new NoSuchObjectException(other.o1); } @@ -61792,8 +62175,8 @@ public add_foreign_key_result(add_foreign_key_result other) { } } - public add_foreign_key_result deepCopy() { - return new add_foreign_key_result(this); + public add_primary_key_result deepCopy() { + return new add_primary_key_result(this); } @Override @@ -61900,12 +62283,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_foreign_key_result) - return this.equals((add_foreign_key_result)that); + if (that instanceof add_primary_key_result) + return this.equals((add_primary_key_result)that); return false; } - public boolean equals(add_foreign_key_result that) { + public boolean equals(add_primary_key_result that) { if (that == null) return false; @@ -61948,7 +62331,7 @@ public int hashCode() { } @Override - public int compareTo(add_foreign_key_result other) { + public int compareTo(add_primary_key_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -61992,7 +62375,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_foreign_key_result("); + StringBuilder sb = new StringBuilder("add_primary_key_result("); boolean first = true; sb.append("o1:"); @@ -62035,15 +62418,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class add_foreign_key_resultStandardSchemeFactory implements SchemeFactory { - public add_foreign_key_resultStandardScheme getScheme() { - return new add_foreign_key_resultStandardScheme(); + private static class add_primary_key_resultStandardSchemeFactory implements SchemeFactory { + public add_primary_key_resultStandardScheme getScheme() { + return new add_primary_key_resultStandardScheme(); } } - private static class add_foreign_key_resultStandardScheme extends StandardScheme { + private static class add_primary_key_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_foreign_key_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_primary_key_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -62080,7 +62463,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_foreign_key_res struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_foreign_key_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_primary_key_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -62100,16 +62483,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_foreign_key_re } - private static class add_foreign_key_resultTupleSchemeFactory implements SchemeFactory { - public add_foreign_key_resultTupleScheme getScheme() { - return new add_foreign_key_resultTupleScheme(); + private static class add_primary_key_resultTupleSchemeFactory implements SchemeFactory { + public add_primary_key_resultTupleScheme getScheme() { + return new add_primary_key_resultTupleScheme(); } } - private static class add_foreign_key_resultTupleScheme extends TupleScheme { + private static class add_primary_key_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_foreign_key_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_primary_key_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetO1()) { @@ -62128,7 +62511,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_foreign_key_res } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_foreign_key_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_primary_key_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { @@ -62146,18 +62529,18 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_foreign_key_resu } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_unique_constraint_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("add_unique_constraint_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_foreign_key_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("add_foreign_key_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_unique_constraint_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_unique_constraint_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_foreign_key_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_foreign_key_argsTupleSchemeFactory()); } - private AddUniqueConstraintRequest req; // required + private AddForeignKeyRequest req; // 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 { @@ -62222,16 +62605,16 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AddUniqueConstraintRequest.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AddForeignKeyRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_unique_constraint_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_foreign_key_args.class, metaDataMap); } - public add_unique_constraint_args() { + public add_foreign_key_args() { } - public add_unique_constraint_args( - AddUniqueConstraintRequest req) + public add_foreign_key_args( + AddForeignKeyRequest req) { this(); this.req = req; @@ -62240,14 +62623,14 @@ public add_unique_constraint_args( /** * Performs a deep copy on other. */ - public add_unique_constraint_args(add_unique_constraint_args other) { + public add_foreign_key_args(add_foreign_key_args other) { if (other.isSetReq()) { - this.req = new AddUniqueConstraintRequest(other.req); + this.req = new AddForeignKeyRequest(other.req); } } - public add_unique_constraint_args deepCopy() { - return new add_unique_constraint_args(this); + public add_foreign_key_args deepCopy() { + return new add_foreign_key_args(this); } @Override @@ -62255,11 +62638,11 @@ public void clear() { this.req = null; } - public AddUniqueConstraintRequest getReq() { + public AddForeignKeyRequest getReq() { return this.req; } - public void setReq(AddUniqueConstraintRequest req) { + public void setReq(AddForeignKeyRequest req) { this.req = req; } @@ -62284,7 +62667,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetReq(); } else { - setReq((AddUniqueConstraintRequest)value); + setReq((AddForeignKeyRequest)value); } break; @@ -62317,12 +62700,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_unique_constraint_args) - return this.equals((add_unique_constraint_args)that); + if (that instanceof add_foreign_key_args) + return this.equals((add_foreign_key_args)that); return false; } - public boolean equals(add_unique_constraint_args that) { + public boolean equals(add_foreign_key_args that) { if (that == null) return false; @@ -62351,7 +62734,7 @@ public int hashCode() { } @Override - public int compareTo(add_unique_constraint_args other) { + public int compareTo(add_foreign_key_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -62385,7 +62768,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_unique_constraint_args("); + StringBuilder sb = new StringBuilder("add_foreign_key_args("); boolean first = true; sb.append("req:"); @@ -62423,15 +62806,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class add_unique_constraint_argsStandardSchemeFactory implements SchemeFactory { - public add_unique_constraint_argsStandardScheme getScheme() { - return new add_unique_constraint_argsStandardScheme(); + private static class add_foreign_key_argsStandardSchemeFactory implements SchemeFactory { + public add_foreign_key_argsStandardScheme getScheme() { + return new add_foreign_key_argsStandardScheme(); } } - private static class add_unique_constraint_argsStandardScheme extends StandardScheme { + private static class add_foreign_key_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_unique_constraint_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_foreign_key_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -62443,7 +62826,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_unique_constrai switch (schemeField.id) { case 1: // REQ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.req = new AddUniqueConstraintRequest(); + struct.req = new AddForeignKeyRequest(); struct.req.read(iprot); struct.setReqIsSet(true); } else { @@ -62459,7 +62842,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_unique_constrai struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_unique_constraint_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_foreign_key_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -62474,16 +62857,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_unique_constra } - private static class add_unique_constraint_argsTupleSchemeFactory implements SchemeFactory { - public add_unique_constraint_argsTupleScheme getScheme() { - return new add_unique_constraint_argsTupleScheme(); + private static class add_foreign_key_argsTupleSchemeFactory implements SchemeFactory { + public add_foreign_key_argsTupleScheme getScheme() { + return new add_foreign_key_argsTupleScheme(); } } - private static class add_unique_constraint_argsTupleScheme extends TupleScheme { + private static class add_foreign_key_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_unique_constraint_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_foreign_key_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetReq()) { @@ -62496,11 +62879,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_unique_constrai } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_unique_constraint_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_foreign_key_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.req = new AddUniqueConstraintRequest(); + struct.req = new AddForeignKeyRequest(); struct.req.read(iprot); struct.setReqIsSet(true); } @@ -62509,16 +62892,16 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_unique_constrain } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_unique_constraint_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("add_unique_constraint_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_foreign_key_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("add_foreign_key_result"); 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 add_unique_constraint_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_unique_constraint_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_foreign_key_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_foreign_key_resultTupleSchemeFactory()); } private NoSuchObjectException o1; // required @@ -62594,13 +62977,13 @@ public String getFieldName() { 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(add_unique_constraint_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_foreign_key_result.class, metaDataMap); } - public add_unique_constraint_result() { + public add_foreign_key_result() { } - public add_unique_constraint_result( + public add_foreign_key_result( NoSuchObjectException o1, MetaException o2) { @@ -62612,7 +62995,7 @@ public add_unique_constraint_result( /** * Performs a deep copy on other. */ - public add_unique_constraint_result(add_unique_constraint_result other) { + public add_foreign_key_result(add_foreign_key_result other) { if (other.isSetO1()) { this.o1 = new NoSuchObjectException(other.o1); } @@ -62621,8 +63004,8 @@ public add_unique_constraint_result(add_unique_constraint_result other) { } } - public add_unique_constraint_result deepCopy() { - return new add_unique_constraint_result(this); + public add_foreign_key_result deepCopy() { + return new add_foreign_key_result(this); } @Override @@ -62729,12 +63112,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_unique_constraint_result) - return this.equals((add_unique_constraint_result)that); + if (that instanceof add_foreign_key_result) + return this.equals((add_foreign_key_result)that); return false; } - public boolean equals(add_unique_constraint_result that) { + public boolean equals(add_foreign_key_result that) { if (that == null) return false; @@ -62777,7 +63160,7 @@ public int hashCode() { } @Override - public int compareTo(add_unique_constraint_result other) { + public int compareTo(add_foreign_key_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -62821,7 +63204,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_unique_constraint_result("); + StringBuilder sb = new StringBuilder("add_foreign_key_result("); boolean first = true; sb.append("o1:"); @@ -62864,15 +63247,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class add_unique_constraint_resultStandardSchemeFactory implements SchemeFactory { - public add_unique_constraint_resultStandardScheme getScheme() { - return new add_unique_constraint_resultStandardScheme(); + private static class add_foreign_key_resultStandardSchemeFactory implements SchemeFactory { + public add_foreign_key_resultStandardScheme getScheme() { + return new add_foreign_key_resultStandardScheme(); } } - private static class add_unique_constraint_resultStandardScheme extends StandardScheme { + private static class add_foreign_key_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_unique_constraint_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_foreign_key_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -62909,7 +63292,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_unique_constrai struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_unique_constraint_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_foreign_key_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -62929,16 +63312,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_unique_constra } - private static class add_unique_constraint_resultTupleSchemeFactory implements SchemeFactory { - public add_unique_constraint_resultTupleScheme getScheme() { - return new add_unique_constraint_resultTupleScheme(); + private static class add_foreign_key_resultTupleSchemeFactory implements SchemeFactory { + public add_foreign_key_resultTupleScheme getScheme() { + return new add_foreign_key_resultTupleScheme(); } } - private static class add_unique_constraint_resultTupleScheme extends TupleScheme { + private static class add_foreign_key_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_unique_constraint_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_foreign_key_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetO1()) { @@ -62957,7 +63340,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_unique_constrai } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_unique_constraint_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_foreign_key_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { @@ -62975,18 +63358,18 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_unique_constrain } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_not_null_constraint_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("add_not_null_constraint_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_unique_constraint_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("add_unique_constraint_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_not_null_constraint_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_not_null_constraint_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_unique_constraint_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_unique_constraint_argsTupleSchemeFactory()); } - private AddNotNullConstraintRequest req; // required + private AddUniqueConstraintRequest req; // 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 { @@ -63051,16 +63434,16 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AddNotNullConstraintRequest.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AddUniqueConstraintRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_not_null_constraint_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_unique_constraint_args.class, metaDataMap); } - public add_not_null_constraint_args() { + public add_unique_constraint_args() { } - public add_not_null_constraint_args( - AddNotNullConstraintRequest req) + public add_unique_constraint_args( + AddUniqueConstraintRequest req) { this(); this.req = req; @@ -63069,14 +63452,14 @@ public add_not_null_constraint_args( /** * Performs a deep copy on other. */ - public add_not_null_constraint_args(add_not_null_constraint_args other) { + public add_unique_constraint_args(add_unique_constraint_args other) { if (other.isSetReq()) { - this.req = new AddNotNullConstraintRequest(other.req); + this.req = new AddUniqueConstraintRequest(other.req); } } - public add_not_null_constraint_args deepCopy() { - return new add_not_null_constraint_args(this); + public add_unique_constraint_args deepCopy() { + return new add_unique_constraint_args(this); } @Override @@ -63084,11 +63467,11 @@ public void clear() { this.req = null; } - public AddNotNullConstraintRequest getReq() { + public AddUniqueConstraintRequest getReq() { return this.req; } - public void setReq(AddNotNullConstraintRequest req) { + public void setReq(AddUniqueConstraintRequest req) { this.req = req; } @@ -63113,7 +63496,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetReq(); } else { - setReq((AddNotNullConstraintRequest)value); + setReq((AddUniqueConstraintRequest)value); } break; @@ -63146,12 +63529,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_not_null_constraint_args) - return this.equals((add_not_null_constraint_args)that); + if (that instanceof add_unique_constraint_args) + return this.equals((add_unique_constraint_args)that); return false; } - public boolean equals(add_not_null_constraint_args that) { + public boolean equals(add_unique_constraint_args that) { if (that == null) return false; @@ -63180,7 +63563,7 @@ public int hashCode() { } @Override - public int compareTo(add_not_null_constraint_args other) { + public int compareTo(add_unique_constraint_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -63214,7 +63597,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_not_null_constraint_args("); + StringBuilder sb = new StringBuilder("add_unique_constraint_args("); boolean first = true; sb.append("req:"); @@ -63252,15 +63635,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class add_not_null_constraint_argsStandardSchemeFactory implements SchemeFactory { - public add_not_null_constraint_argsStandardScheme getScheme() { - return new add_not_null_constraint_argsStandardScheme(); + private static class add_unique_constraint_argsStandardSchemeFactory implements SchemeFactory { + public add_unique_constraint_argsStandardScheme getScheme() { + return new add_unique_constraint_argsStandardScheme(); } } - private static class add_not_null_constraint_argsStandardScheme extends StandardScheme { + private static class add_unique_constraint_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_not_null_constraint_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_unique_constraint_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -63272,7 +63655,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_not_null_constr switch (schemeField.id) { case 1: // REQ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.req = new AddNotNullConstraintRequest(); + struct.req = new AddUniqueConstraintRequest(); struct.req.read(iprot); struct.setReqIsSet(true); } else { @@ -63288,7 +63671,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_not_null_constr struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_not_null_constraint_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_unique_constraint_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -63303,16 +63686,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_not_null_const } - private static class add_not_null_constraint_argsTupleSchemeFactory implements SchemeFactory { - public add_not_null_constraint_argsTupleScheme getScheme() { - return new add_not_null_constraint_argsTupleScheme(); + private static class add_unique_constraint_argsTupleSchemeFactory implements SchemeFactory { + public add_unique_constraint_argsTupleScheme getScheme() { + return new add_unique_constraint_argsTupleScheme(); } } - private static class add_not_null_constraint_argsTupleScheme extends TupleScheme { + private static class add_unique_constraint_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_not_null_constraint_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_unique_constraint_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetReq()) { @@ -63325,11 +63708,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_not_null_constr } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_not_null_constraint_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_unique_constraint_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.req = new AddNotNullConstraintRequest(); + struct.req = new AddUniqueConstraintRequest(); struct.req.read(iprot); struct.setReqIsSet(true); } @@ -63338,16 +63721,16 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_not_null_constra } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_not_null_constraint_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("add_not_null_constraint_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_unique_constraint_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("add_unique_constraint_result"); 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 add_not_null_constraint_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_not_null_constraint_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_unique_constraint_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_unique_constraint_resultTupleSchemeFactory()); } private NoSuchObjectException o1; // required @@ -63423,13 +63806,13 @@ public String getFieldName() { 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(add_not_null_constraint_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_unique_constraint_result.class, metaDataMap); } - public add_not_null_constraint_result() { + public add_unique_constraint_result() { } - public add_not_null_constraint_result( + public add_unique_constraint_result( NoSuchObjectException o1, MetaException o2) { @@ -63441,7 +63824,7 @@ public add_not_null_constraint_result( /** * Performs a deep copy on other. */ - public add_not_null_constraint_result(add_not_null_constraint_result other) { + public add_unique_constraint_result(add_unique_constraint_result other) { if (other.isSetO1()) { this.o1 = new NoSuchObjectException(other.o1); } @@ -63450,8 +63833,8 @@ public add_not_null_constraint_result(add_not_null_constraint_result other) { } } - public add_not_null_constraint_result deepCopy() { - return new add_not_null_constraint_result(this); + public add_unique_constraint_result deepCopy() { + return new add_unique_constraint_result(this); } @Override @@ -63558,12 +63941,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_not_null_constraint_result) - return this.equals((add_not_null_constraint_result)that); + if (that instanceof add_unique_constraint_result) + return this.equals((add_unique_constraint_result)that); return false; } - public boolean equals(add_not_null_constraint_result that) { + public boolean equals(add_unique_constraint_result that) { if (that == null) return false; @@ -63606,7 +63989,7 @@ public int hashCode() { } @Override - public int compareTo(add_not_null_constraint_result other) { + public int compareTo(add_unique_constraint_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -63650,7 +64033,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_not_null_constraint_result("); + StringBuilder sb = new StringBuilder("add_unique_constraint_result("); boolean first = true; sb.append("o1:"); @@ -63693,15 +64076,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class add_not_null_constraint_resultStandardSchemeFactory implements SchemeFactory { - public add_not_null_constraint_resultStandardScheme getScheme() { - return new add_not_null_constraint_resultStandardScheme(); + private static class add_unique_constraint_resultStandardSchemeFactory implements SchemeFactory { + public add_unique_constraint_resultStandardScheme getScheme() { + return new add_unique_constraint_resultStandardScheme(); } } - private static class add_not_null_constraint_resultStandardScheme extends StandardScheme { + private static class add_unique_constraint_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_not_null_constraint_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_unique_constraint_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -63738,7 +64121,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_not_null_constr struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_not_null_constraint_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_unique_constraint_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -63758,16 +64141,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_not_null_const } - private static class add_not_null_constraint_resultTupleSchemeFactory implements SchemeFactory { - public add_not_null_constraint_resultTupleScheme getScheme() { - return new add_not_null_constraint_resultTupleScheme(); + private static class add_unique_constraint_resultTupleSchemeFactory implements SchemeFactory { + public add_unique_constraint_resultTupleScheme getScheme() { + return new add_unique_constraint_resultTupleScheme(); } } - private static class add_not_null_constraint_resultTupleScheme extends TupleScheme { + private static class add_unique_constraint_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_not_null_constraint_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_unique_constraint_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetO1()) { @@ -63786,7 +64169,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_not_null_constr } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_not_null_constraint_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_unique_constraint_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { @@ -63804,18 +64187,18 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_not_null_constra } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_default_constraint_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("add_default_constraint_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_not_null_constraint_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("add_not_null_constraint_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_default_constraint_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_default_constraint_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_not_null_constraint_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_not_null_constraint_argsTupleSchemeFactory()); } - private AddDefaultConstraintRequest req; // required + private AddNotNullConstraintRequest req; // 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 { @@ -63880,16 +64263,16 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AddDefaultConstraintRequest.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AddNotNullConstraintRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_default_constraint_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_not_null_constraint_args.class, metaDataMap); } - public add_default_constraint_args() { + public add_not_null_constraint_args() { } - public add_default_constraint_args( - AddDefaultConstraintRequest req) + public add_not_null_constraint_args( + AddNotNullConstraintRequest req) { this(); this.req = req; @@ -63898,14 +64281,14 @@ public add_default_constraint_args( /** * Performs a deep copy on other. */ - public add_default_constraint_args(add_default_constraint_args other) { + public add_not_null_constraint_args(add_not_null_constraint_args other) { if (other.isSetReq()) { - this.req = new AddDefaultConstraintRequest(other.req); + this.req = new AddNotNullConstraintRequest(other.req); } } - public add_default_constraint_args deepCopy() { - return new add_default_constraint_args(this); + public add_not_null_constraint_args deepCopy() { + return new add_not_null_constraint_args(this); } @Override @@ -63913,11 +64296,11 @@ public void clear() { this.req = null; } - public AddDefaultConstraintRequest getReq() { + public AddNotNullConstraintRequest getReq() { return this.req; } - public void setReq(AddDefaultConstraintRequest req) { + public void setReq(AddNotNullConstraintRequest req) { this.req = req; } @@ -63942,7 +64325,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetReq(); } else { - setReq((AddDefaultConstraintRequest)value); + setReq((AddNotNullConstraintRequest)value); } break; @@ -63975,12 +64358,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_default_constraint_args) - return this.equals((add_default_constraint_args)that); + if (that instanceof add_not_null_constraint_args) + return this.equals((add_not_null_constraint_args)that); return false; } - public boolean equals(add_default_constraint_args that) { + public boolean equals(add_not_null_constraint_args that) { if (that == null) return false; @@ -64009,7 +64392,7 @@ public int hashCode() { } @Override - public int compareTo(add_default_constraint_args other) { + public int compareTo(add_not_null_constraint_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -64043,7 +64426,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_default_constraint_args("); + StringBuilder sb = new StringBuilder("add_not_null_constraint_args("); boolean first = true; sb.append("req:"); @@ -64081,15 +64464,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class add_default_constraint_argsStandardSchemeFactory implements SchemeFactory { - public add_default_constraint_argsStandardScheme getScheme() { - return new add_default_constraint_argsStandardScheme(); + private static class add_not_null_constraint_argsStandardSchemeFactory implements SchemeFactory { + public add_not_null_constraint_argsStandardScheme getScheme() { + return new add_not_null_constraint_argsStandardScheme(); } } - private static class add_default_constraint_argsStandardScheme extends StandardScheme { + private static class add_not_null_constraint_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_default_constraint_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_not_null_constraint_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -64101,7 +64484,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_default_constra switch (schemeField.id) { case 1: // REQ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.req = new AddDefaultConstraintRequest(); + struct.req = new AddNotNullConstraintRequest(); struct.req.read(iprot); struct.setReqIsSet(true); } else { @@ -64117,7 +64500,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_default_constra struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_default_constraint_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_not_null_constraint_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -64132,16 +64515,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_default_constr } - private static class add_default_constraint_argsTupleSchemeFactory implements SchemeFactory { - public add_default_constraint_argsTupleScheme getScheme() { - return new add_default_constraint_argsTupleScheme(); + private static class add_not_null_constraint_argsTupleSchemeFactory implements SchemeFactory { + public add_not_null_constraint_argsTupleScheme getScheme() { + return new add_not_null_constraint_argsTupleScheme(); } } - private static class add_default_constraint_argsTupleScheme extends TupleScheme { + private static class add_not_null_constraint_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_default_constraint_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_not_null_constraint_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetReq()) { @@ -64154,11 +64537,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_default_constra } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_default_constraint_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_not_null_constraint_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.req = new AddDefaultConstraintRequest(); + struct.req = new AddNotNullConstraintRequest(); struct.req.read(iprot); struct.setReqIsSet(true); } @@ -64167,16 +64550,16 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_default_constrai } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_default_constraint_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("add_default_constraint_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_not_null_constraint_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("add_not_null_constraint_result"); 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 add_default_constraint_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_default_constraint_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_not_null_constraint_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_not_null_constraint_resultTupleSchemeFactory()); } private NoSuchObjectException o1; // required @@ -64252,13 +64635,13 @@ public String getFieldName() { 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(add_default_constraint_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_not_null_constraint_result.class, metaDataMap); } - public add_default_constraint_result() { + public add_not_null_constraint_result() { } - public add_default_constraint_result( + public add_not_null_constraint_result( NoSuchObjectException o1, MetaException o2) { @@ -64270,7 +64653,7 @@ public add_default_constraint_result( /** * Performs a deep copy on other. */ - public add_default_constraint_result(add_default_constraint_result other) { + public add_not_null_constraint_result(add_not_null_constraint_result other) { if (other.isSetO1()) { this.o1 = new NoSuchObjectException(other.o1); } @@ -64279,8 +64662,8 @@ public add_default_constraint_result(add_default_constraint_result other) { } } - public add_default_constraint_result deepCopy() { - return new add_default_constraint_result(this); + public add_not_null_constraint_result deepCopy() { + return new add_not_null_constraint_result(this); } @Override @@ -64387,12 +64770,841 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_default_constraint_result) - return this.equals((add_default_constraint_result)that); + if (that instanceof add_not_null_constraint_result) + return this.equals((add_not_null_constraint_result)that); return false; } - public boolean equals(add_default_constraint_result that) { + public boolean equals(add_not_null_constraint_result that) { + if (that == null) + 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_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(add_not_null_constraint_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + 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("add_not_null_constraint_result("); + boolean first = true; + + 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 + } + + 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 add_not_null_constraint_resultStandardSchemeFactory implements SchemeFactory { + public add_not_null_constraint_resultStandardScheme getScheme() { + return new add_not_null_constraint_resultStandardScheme(); + } + } + + private static class add_not_null_constraint_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, add_not_null_constraint_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // O1 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o1 = new NoSuchObjectException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // 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, add_not_null_constraint_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.o1 != null) { + oprot.writeFieldBegin(O1_FIELD_DESC); + struct.o1.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.o2 != null) { + oprot.writeFieldBegin(O2_FIELD_DESC); + struct.o2.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class add_not_null_constraint_resultTupleSchemeFactory implements SchemeFactory { + public add_not_null_constraint_resultTupleScheme getScheme() { + return new add_not_null_constraint_resultTupleScheme(); + } + } + + private static class add_not_null_constraint_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, add_not_null_constraint_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetO1()) { + optionals.set(0); + } + if (struct.isSetO2()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetO1()) { + struct.o1.write(oprot); + } + if (struct.isSetO2()) { + struct.o2.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, add_not_null_constraint_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.o1 = new NoSuchObjectException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } + if (incoming.get(1)) { + struct.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 add_default_constraint_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("add_default_constraint_args"); + + private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new add_default_constraint_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_default_constraint_argsTupleSchemeFactory()); + } + + private AddDefaultConstraintRequest req; // 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 { + REQ((short)1, "req"); + + 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: // REQ + return REQ; + 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.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AddDefaultConstraintRequest.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_default_constraint_args.class, metaDataMap); + } + + public add_default_constraint_args() { + } + + public add_default_constraint_args( + AddDefaultConstraintRequest req) + { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public add_default_constraint_args(add_default_constraint_args other) { + if (other.isSetReq()) { + this.req = new AddDefaultConstraintRequest(other.req); + } + } + + public add_default_constraint_args deepCopy() { + return new add_default_constraint_args(this); + } + + @Override + public void clear() { + this.req = null; + } + + public AddDefaultConstraintRequest getReq() { + return this.req; + } + + public void setReq(AddDefaultConstraintRequest req) { + this.req = req; + } + + public void unsetReq() { + this.req = null; + } + + /** Returns true if field req is set (has been assigned a value) and false otherwise */ + public boolean isSetReq() { + return this.req != null; + } + + public void setReqIsSet(boolean value) { + if (!value) { + this.req = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case REQ: + if (value == null) { + unsetReq(); + } else { + setReq((AddDefaultConstraintRequest)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case REQ: + return getReq(); + + } + 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 REQ: + return isSetReq(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof add_default_constraint_args) + return this.equals((add_default_constraint_args)that); + return false; + } + + public boolean equals(add_default_constraint_args that) { + if (that == null) + return false; + + boolean this_present_req = true && this.isSetReq(); + boolean that_present_req = true && that.isSetReq(); + if (this_present_req || that_present_req) { + if (!(this_present_req && that_present_req)) + return false; + if (!this.req.equals(that.req)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_req = true && (isSetReq()); + list.add(present_req); + if (present_req) + list.add(req); + + return list.hashCode(); + } + + @Override + public int compareTo(add_default_constraint_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetReq()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + 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("add_default_constraint_args("); + boolean first = true; + + sb.append("req:"); + if (this.req == null) { + sb.append("null"); + } else { + sb.append(this.req); + } + 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 (req != null) { + req.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 add_default_constraint_argsStandardSchemeFactory implements SchemeFactory { + public add_default_constraint_argsStandardScheme getScheme() { + return new add_default_constraint_argsStandardScheme(); + } + } + + private static class add_default_constraint_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, add_default_constraint_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: // REQ + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.req = new AddDefaultConstraintRequest(); + struct.req.read(iprot); + struct.setReqIsSet(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, add_default_constraint_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.req != null) { + oprot.writeFieldBegin(REQ_FIELD_DESC); + struct.req.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class add_default_constraint_argsTupleSchemeFactory implements SchemeFactory { + public add_default_constraint_argsTupleScheme getScheme() { + return new add_default_constraint_argsTupleScheme(); + } + } + + private static class add_default_constraint_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, add_default_constraint_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetReq()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetReq()) { + struct.req.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, add_default_constraint_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.req = new AddDefaultConstraintRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_default_constraint_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("add_default_constraint_result"); + + 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 add_default_constraint_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_default_constraint_resultTupleSchemeFactory()); + } + + 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 { + 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 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.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(add_default_constraint_result.class, metaDataMap); + } + + public add_default_constraint_result() { + } + + public add_default_constraint_result( + NoSuchObjectException o1, + MetaException o2) + { + this(); + this.o1 = o1; + this.o2 = o2; + } + + /** + * Performs a deep copy on other. + */ + public add_default_constraint_result(add_default_constraint_result other) { + if (other.isSetO1()) { + this.o1 = new NoSuchObjectException(other.o1); + } + if (other.isSetO2()) { + this.o2 = new MetaException(other.o2); + } + } + + public add_default_constraint_result deepCopy() { + return new add_default_constraint_result(this); + } + + @Override + public void clear() { + this.o1 = null; + this.o2 = 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 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 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 O1: + return isSetO1(); + case O2: + return isSetO2(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof add_default_constraint_result) + return this.equals((add_default_constraint_result)that); + return false; + } + + public boolean equals(add_default_constraint_result that) { if (that == null) return false; @@ -68121,13 +69333,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 _list1186 = iprot.readListBegin(); - struct.partNames = new ArrayList(_list1186.size); - String _elem1187; - for (int _i1188 = 0; _i1188 < _list1186.size; ++_i1188) + org.apache.thrift.protocol.TList _list1266 = iprot.readListBegin(); + struct.partNames = new ArrayList(_list1266.size); + String _elem1267; + for (int _i1268 = 0; _i1268 < _list1266.size; ++_i1268) { - _elem1187 = iprot.readString(); - struct.partNames.add(_elem1187); + _elem1267 = iprot.readString(); + struct.partNames.add(_elem1267); } iprot.readListEnd(); } @@ -68163,9 +69375,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 _iter1189 : struct.partNames) + for (String _iter1269 : struct.partNames) { - oprot.writeString(_iter1189); + oprot.writeString(_iter1269); } oprot.writeListEnd(); } @@ -68208,9 +69420,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, truncate_table_args if (struct.isSetPartNames()) { { oprot.writeI32(struct.partNames.size()); - for (String _iter1190 : struct.partNames) + for (String _iter1270 : struct.partNames) { - oprot.writeString(_iter1190); + oprot.writeString(_iter1270); } } } @@ -68230,13 +69442,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, truncate_table_args } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1191 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partNames = new ArrayList(_list1191.size); - String _elem1192; - for (int _i1193 = 0; _i1193 < _list1191.size; ++_i1193) + 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) { - _elem1192 = iprot.readString(); - struct.partNames.add(_elem1192); + _elem1272 = iprot.readString(); + struct.partNames.add(_elem1272); } } struct.setPartNamesIsSet(true); @@ -70293,13 +71505,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 _list1194 = iprot.readListBegin(); - struct.success = new ArrayList(_list1194.size); - String _elem1195; - for (int _i1196 = 0; _i1196 < _list1194.size; ++_i1196) + org.apache.thrift.protocol.TList _list1274 = iprot.readListBegin(); + struct.success = new ArrayList(_list1274.size); + String _elem1275; + for (int _i1276 = 0; _i1276 < _list1274.size; ++_i1276) { - _elem1195 = iprot.readString(); - struct.success.add(_elem1195); + _elem1275 = iprot.readString(); + struct.success.add(_elem1275); } iprot.readListEnd(); } @@ -70334,9 +71546,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 _iter1197 : struct.success) + for (String _iter1277 : struct.success) { - oprot.writeString(_iter1197); + oprot.writeString(_iter1277); } oprot.writeListEnd(); } @@ -70375,9 +71587,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1198 : struct.success) + for (String _iter1278 : struct.success) { - oprot.writeString(_iter1198); + oprot.writeString(_iter1278); } } } @@ -70392,13 +71604,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 _list1199 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1199.size); - String _elem1200; - for (int _i1201 = 0; _i1201 < _list1199.size; ++_i1201) + 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) { - _elem1200 = iprot.readString(); - struct.success.add(_elem1200); + _elem1280 = iprot.readString(); + struct.success.add(_elem1280); } } struct.setSuccessIsSet(true); @@ -71372,13 +72584,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 _list1202 = iprot.readListBegin(); - struct.success = new ArrayList(_list1202.size); - String _elem1203; - for (int _i1204 = 0; _i1204 < _list1202.size; ++_i1204) + org.apache.thrift.protocol.TList _list1282 = iprot.readListBegin(); + struct.success = new ArrayList(_list1282.size); + String _elem1283; + for (int _i1284 = 0; _i1284 < _list1282.size; ++_i1284) { - _elem1203 = iprot.readString(); - struct.success.add(_elem1203); + _elem1283 = iprot.readString(); + struct.success.add(_elem1283); } iprot.readListEnd(); } @@ -71413,9 +72625,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 _iter1205 : struct.success) + for (String _iter1285 : struct.success) { - oprot.writeString(_iter1205); + oprot.writeString(_iter1285); } oprot.writeListEnd(); } @@ -71454,9 +72666,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_ if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1206 : struct.success) + for (String _iter1286 : struct.success) { - oprot.writeString(_iter1206); + oprot.writeString(_iter1286); } } } @@ -71471,13 +72683,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 _list1207 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1207.size); - String _elem1208; - for (int _i1209 = 0; _i1209 < _list1207.size; ++_i1209) + 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) { - _elem1208 = iprot.readString(); - struct.success.add(_elem1208); + _elem1288 = iprot.readString(); + struct.success.add(_elem1288); } } struct.setSuccessIsSet(true); @@ -72134,14 +73346,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 _list1210 = iprot.readListBegin(); - struct.success = new ArrayList
(_list1210.size); - Table _elem1211; - for (int _i1212 = 0; _i1212 < _list1210.size; ++_i1212) + org.apache.thrift.protocol.TList _list1290 = iprot.readListBegin(); + struct.success = new ArrayList
(_list1290.size); + Table _elem1291; + for (int _i1292 = 0; _i1292 < _list1290.size; ++_i1292) { - _elem1211 = new Table(); - _elem1211.read(iprot); - struct.success.add(_elem1211); + _elem1291 = new Table(); + _elem1291.read(iprot); + struct.success.add(_elem1291); } iprot.readListEnd(); } @@ -72176,9 +73388,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 _iter1213 : struct.success) + for (Table _iter1293 : struct.success) { - _iter1213.write(oprot); + _iter1293.write(oprot); } oprot.writeListEnd(); } @@ -72217,9 +73429,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_materialize if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Table _iter1214 : struct.success) + for (Table _iter1294 : struct.success) { - _iter1214.write(oprot); + _iter1294.write(oprot); } } } @@ -72234,14 +73446,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 _list1215 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList
(_list1215.size); - Table _elem1216; - for (int _i1217 = 0; _i1217 < _list1215.size; ++_i1217) + 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) { - _elem1216 = new Table(); - _elem1216.read(iprot); - struct.success.add(_elem1216); + _elem1296 = new Table(); + _elem1296.read(iprot); + struct.success.add(_elem1296); } } struct.setSuccessIsSet(true); @@ -73007,13 +74219,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 _list1218 = iprot.readListBegin(); - struct.success = new ArrayList(_list1218.size); - String _elem1219; - for (int _i1220 = 0; _i1220 < _list1218.size; ++_i1220) + org.apache.thrift.protocol.TList _list1298 = iprot.readListBegin(); + struct.success = new ArrayList(_list1298.size); + String _elem1299; + for (int _i1300 = 0; _i1300 < _list1298.size; ++_i1300) { - _elem1219 = iprot.readString(); - struct.success.add(_elem1219); + _elem1299 = iprot.readString(); + struct.success.add(_elem1299); } iprot.readListEnd(); } @@ -73048,9 +74260,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 _iter1221 : struct.success) + for (String _iter1301 : struct.success) { - oprot.writeString(_iter1221); + oprot.writeString(_iter1301); } oprot.writeListEnd(); } @@ -73089,9 +74301,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_materialized_vi if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1222 : struct.success) + for (String _iter1302 : struct.success) { - oprot.writeString(_iter1222); + oprot.writeString(_iter1302); } } } @@ -73106,13 +74318,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 _list1223 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1223.size); - String _elem1224; - for (int _i1225 = 0; _i1225 < _list1223.size; ++_i1225) + 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) { - _elem1224 = iprot.readString(); - struct.success.add(_elem1224); + _elem1304 = iprot.readString(); + struct.success.add(_elem1304); } } struct.setSuccessIsSet(true); @@ -73617,13 +74829,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 _list1226 = iprot.readListBegin(); - struct.tbl_types = new ArrayList(_list1226.size); - String _elem1227; - for (int _i1228 = 0; _i1228 < _list1226.size; ++_i1228) + 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) { - _elem1227 = iprot.readString(); - struct.tbl_types.add(_elem1227); + _elem1307 = iprot.readString(); + struct.tbl_types.add(_elem1307); } iprot.readListEnd(); } @@ -73659,9 +74871,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 _iter1229 : struct.tbl_types) + for (String _iter1309 : struct.tbl_types) { - oprot.writeString(_iter1229); + oprot.writeString(_iter1309); } oprot.writeListEnd(); } @@ -73704,9 +74916,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 _iter1230 : struct.tbl_types) + for (String _iter1310 : struct.tbl_types) { - oprot.writeString(_iter1230); + oprot.writeString(_iter1310); } } } @@ -73726,13 +74938,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_meta_args } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1231 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tbl_types = new ArrayList(_list1231.size); - String _elem1232; - for (int _i1233 = 0; _i1233 < _list1231.size; ++_i1233) + 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) { - _elem1232 = iprot.readString(); - struct.tbl_types.add(_elem1232); + _elem1312 = iprot.readString(); + struct.tbl_types.add(_elem1312); } } struct.setTbl_typesIsSet(true); @@ -74138,14 +75350,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 _list1234 = iprot.readListBegin(); - struct.success = new ArrayList(_list1234.size); - TableMeta _elem1235; - for (int _i1236 = 0; _i1236 < _list1234.size; ++_i1236) + org.apache.thrift.protocol.TList _list1314 = iprot.readListBegin(); + struct.success = new ArrayList(_list1314.size); + TableMeta _elem1315; + for (int _i1316 = 0; _i1316 < _list1314.size; ++_i1316) { - _elem1235 = new TableMeta(); - _elem1235.read(iprot); - struct.success.add(_elem1235); + _elem1315 = new TableMeta(); + _elem1315.read(iprot); + struct.success.add(_elem1315); } iprot.readListEnd(); } @@ -74180,9 +75392,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 _iter1237 : struct.success) + for (TableMeta _iter1317 : struct.success) { - _iter1237.write(oprot); + _iter1317.write(oprot); } oprot.writeListEnd(); } @@ -74221,9 +75433,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_meta_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (TableMeta _iter1238 : struct.success) + for (TableMeta _iter1318 : struct.success) { - _iter1238.write(oprot); + _iter1318.write(oprot); } } } @@ -74238,14 +75450,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 _list1239 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1239.size); - TableMeta _elem1240; - for (int _i1241 = 0; _i1241 < _list1239.size; ++_i1241) + 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) { - _elem1240 = new TableMeta(); - _elem1240.read(iprot); - struct.success.add(_elem1240); + _elem1320 = new TableMeta(); + _elem1320.read(iprot); + struct.success.add(_elem1320); } } struct.setSuccessIsSet(true); @@ -75011,13 +76223,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 _list1242 = iprot.readListBegin(); - struct.success = new ArrayList(_list1242.size); - String _elem1243; - for (int _i1244 = 0; _i1244 < _list1242.size; ++_i1244) + org.apache.thrift.protocol.TList _list1322 = iprot.readListBegin(); + struct.success = new ArrayList(_list1322.size); + String _elem1323; + for (int _i1324 = 0; _i1324 < _list1322.size; ++_i1324) { - _elem1243 = iprot.readString(); - struct.success.add(_elem1243); + _elem1323 = iprot.readString(); + struct.success.add(_elem1323); } iprot.readListEnd(); } @@ -75052,9 +76264,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 _iter1245 : struct.success) + for (String _iter1325 : struct.success) { - oprot.writeString(_iter1245); + oprot.writeString(_iter1325); } oprot.writeListEnd(); } @@ -75093,9 +76305,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_tables_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1246 : struct.success) + for (String _iter1326 : struct.success) { - oprot.writeString(_iter1246); + oprot.writeString(_iter1326); } } } @@ -75110,13 +76322,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 _list1247 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1247.size); - String _elem1248; - for (int _i1249 = 0; _i1249 < _list1247.size; ++_i1249) + 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) { - _elem1248 = iprot.readString(); - struct.success.add(_elem1248); + _elem1328 = iprot.readString(); + struct.success.add(_elem1328); } } struct.setSuccessIsSet(true); @@ -76569,13 +77781,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 _list1250 = iprot.readListBegin(); - struct.tbl_names = new ArrayList(_list1250.size); - String _elem1251; - for (int _i1252 = 0; _i1252 < _list1250.size; ++_i1252) + 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) { - _elem1251 = iprot.readString(); - struct.tbl_names.add(_elem1251); + _elem1331 = iprot.readString(); + struct.tbl_names.add(_elem1331); } iprot.readListEnd(); } @@ -76606,9 +77818,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 _iter1253 : struct.tbl_names) + for (String _iter1333 : struct.tbl_names) { - oprot.writeString(_iter1253); + oprot.writeString(_iter1333); } oprot.writeListEnd(); } @@ -76645,9 +77857,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 _iter1254 : struct.tbl_names) + for (String _iter1334 : struct.tbl_names) { - oprot.writeString(_iter1254); + oprot.writeString(_iter1334); } } } @@ -76663,13 +77875,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list1255 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tbl_names = new ArrayList(_list1255.size); - String _elem1256; - for (int _i1257 = 0; _i1257 < _list1255.size; ++_i1257) + 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) { - _elem1256 = iprot.readString(); - struct.tbl_names.add(_elem1256); + _elem1336 = iprot.readString(); + struct.tbl_names.add(_elem1336); } } struct.setTbl_namesIsSet(true); @@ -76994,14 +78206,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 _list1258 = iprot.readListBegin(); - struct.success = new ArrayList
(_list1258.size); - Table _elem1259; - for (int _i1260 = 0; _i1260 < _list1258.size; ++_i1260) + org.apache.thrift.protocol.TList _list1338 = iprot.readListBegin(); + struct.success = new ArrayList
(_list1338.size); + Table _elem1339; + for (int _i1340 = 0; _i1340 < _list1338.size; ++_i1340) { - _elem1259 = new Table(); - _elem1259.read(iprot); - struct.success.add(_elem1259); + _elem1339 = new Table(); + _elem1339.read(iprot); + struct.success.add(_elem1339); } iprot.readListEnd(); } @@ -77027,9 +78239,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 _iter1261 : struct.success) + for (Table _iter1341 : struct.success) { - _iter1261.write(oprot); + _iter1341.write(oprot); } oprot.writeListEnd(); } @@ -77060,9 +78272,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_b if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Table _iter1262 : struct.success) + for (Table _iter1342 : struct.success) { - _iter1262.write(oprot); + _iter1342.write(oprot); } } } @@ -77074,14 +78286,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 _list1263 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList
(_list1263.size); - Table _elem1264; - for (int _i1265 = 0; _i1265 < _list1263.size; ++_i1265) + 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) { - _elem1264 = new Table(); - _elem1264.read(iprot); - struct.success.add(_elem1264); + _elem1344 = new Table(); + _elem1344.read(iprot); + struct.success.add(_elem1344); } } struct.setSuccessIsSet(true); @@ -77850,14 +79062,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 _list1266 = iprot.readListBegin(); - struct.success = new ArrayList(_list1266.size); - ExtendedTableInfo _elem1267; - for (int _i1268 = 0; _i1268 < _list1266.size; ++_i1268) + org.apache.thrift.protocol.TList _list1346 = iprot.readListBegin(); + struct.success = new ArrayList(_list1346.size); + ExtendedTableInfo _elem1347; + for (int _i1348 = 0; _i1348 < _list1346.size; ++_i1348) { - _elem1267 = new ExtendedTableInfo(); - _elem1267.read(iprot); - struct.success.add(_elem1267); + _elem1347 = new ExtendedTableInfo(); + _elem1347.read(iprot); + struct.success.add(_elem1347); } iprot.readListEnd(); } @@ -77892,9 +79104,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 _iter1269 : struct.success) + for (ExtendedTableInfo _iter1349 : struct.success) { - _iter1269.write(oprot); + _iter1349.write(oprot); } oprot.writeListEnd(); } @@ -77933,9 +79145,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_ext_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (ExtendedTableInfo _iter1270 : struct.success) + for (ExtendedTableInfo _iter1350 : struct.success) { - _iter1270.write(oprot); + _iter1350.write(oprot); } } } @@ -77950,14 +79162,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 _list1271 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1271.size); - ExtendedTableInfo _elem1272; - for (int _i1273 = 0; _i1273 < _list1271.size; ++_i1273) + 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) { - _elem1272 = new ExtendedTableInfo(); - _elem1272.read(iprot); - struct.success.add(_elem1272); + _elem1352 = new ExtendedTableInfo(); + _elem1352.read(iprot); + struct.success.add(_elem1352); } } struct.setSuccessIsSet(true); @@ -83470,13 +84682,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 _list1274 = iprot.readListBegin(); - struct.success = new ArrayList(_list1274.size); - String _elem1275; - for (int _i1276 = 0; _i1276 < _list1274.size; ++_i1276) + org.apache.thrift.protocol.TList _list1354 = iprot.readListBegin(); + struct.success = new ArrayList(_list1354.size); + String _elem1355; + for (int _i1356 = 0; _i1356 < _list1354.size; ++_i1356) { - _elem1275 = iprot.readString(); - struct.success.add(_elem1275); + _elem1355 = iprot.readString(); + struct.success.add(_elem1355); } iprot.readListEnd(); } @@ -83529,9 +84741,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 _iter1277 : struct.success) + for (String _iter1357 : struct.success) { - oprot.writeString(_iter1277); + oprot.writeString(_iter1357); } oprot.writeListEnd(); } @@ -83586,9 +84798,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_ if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1278 : struct.success) + for (String _iter1358 : struct.success) { - oprot.writeString(_iter1278); + oprot.writeString(_iter1358); } } } @@ -83609,13 +84821,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 _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 _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) { - _elem1280 = iprot.readString(); - struct.success.add(_elem1280); + _elem1360 = iprot.readString(); + struct.success.add(_elem1360); } } struct.setSuccessIsSet(true); @@ -90412,14 +91624,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 _list1282 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1282.size); - Partition _elem1283; - for (int _i1284 = 0; _i1284 < _list1282.size; ++_i1284) + 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) { - _elem1283 = new Partition(); - _elem1283.read(iprot); - struct.new_parts.add(_elem1283); + _elem1363 = new Partition(); + _elem1363.read(iprot); + struct.new_parts.add(_elem1363); } iprot.readListEnd(); } @@ -90445,9 +91657,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 _iter1285 : struct.new_parts) + for (Partition _iter1365 : struct.new_parts) { - _iter1285.write(oprot); + _iter1365.write(oprot); } oprot.writeListEnd(); } @@ -90478,9 +91690,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 _iter1286 : struct.new_parts) + for (Partition _iter1366 : struct.new_parts) { - _iter1286.write(oprot); + _iter1366.write(oprot); } } } @@ -90492,14 +91704,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 _list1287 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1287.size); - Partition _elem1288; - for (int _i1289 = 0; _i1289 < _list1287.size; ++_i1289) + 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) { - _elem1288 = new Partition(); - _elem1288.read(iprot); - struct.new_parts.add(_elem1288); + _elem1368 = new Partition(); + _elem1368.read(iprot); + struct.new_parts.add(_elem1368); } } struct.setNew_partsIsSet(true); @@ -91500,14 +92712,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 _list1290 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1290.size); - PartitionSpec _elem1291; - for (int _i1292 = 0; _i1292 < _list1290.size; ++_i1292) + 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) { - _elem1291 = new PartitionSpec(); - _elem1291.read(iprot); - struct.new_parts.add(_elem1291); + _elem1371 = new PartitionSpec(); + _elem1371.read(iprot); + struct.new_parts.add(_elem1371); } iprot.readListEnd(); } @@ -91533,9 +92745,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 _iter1293 : struct.new_parts) + for (PartitionSpec _iter1373 : struct.new_parts) { - _iter1293.write(oprot); + _iter1373.write(oprot); } oprot.writeListEnd(); } @@ -91566,9 +92778,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 _iter1294 : struct.new_parts) + for (PartitionSpec _iter1374 : struct.new_parts) { - _iter1294.write(oprot); + _iter1374.write(oprot); } } } @@ -91580,14 +92792,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 _list1295 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1295.size); - PartitionSpec _elem1296; - for (int _i1297 = 0; _i1297 < _list1295.size; ++_i1297) + 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) { - _elem1296 = new PartitionSpec(); - _elem1296.read(iprot); - struct.new_parts.add(_elem1296); + _elem1376 = new PartitionSpec(); + _elem1376.read(iprot); + struct.new_parts.add(_elem1376); } } struct.setNew_partsIsSet(true); @@ -92763,13 +93975,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 _list1298 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1298.size); - String _elem1299; - for (int _i1300 = 0; _i1300 < _list1298.size; ++_i1300) + 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) { - _elem1299 = iprot.readString(); - struct.part_vals.add(_elem1299); + _elem1379 = iprot.readString(); + struct.part_vals.add(_elem1379); } iprot.readListEnd(); } @@ -92805,9 +94017,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 _iter1301 : struct.part_vals) + for (String _iter1381 : struct.part_vals) { - oprot.writeString(_iter1301); + oprot.writeString(_iter1381); } oprot.writeListEnd(); } @@ -92850,9 +94062,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 _iter1302 : struct.part_vals) + for (String _iter1382 : struct.part_vals) { - oprot.writeString(_iter1302); + oprot.writeString(_iter1382); } } } @@ -92872,13 +94084,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1303 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1303.size); - String _elem1304; - for (int _i1305 = 0; _i1305 < _list1303.size; ++_i1305) + 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) { - _elem1304 = iprot.readString(); - struct.part_vals.add(_elem1304); + _elem1384 = iprot.readString(); + struct.part_vals.add(_elem1384); } } struct.setPart_valsIsSet(true); @@ -95187,13 +96399,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 _list1306 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1306.size); - String _elem1307; - for (int _i1308 = 0; _i1308 < _list1306.size; ++_i1308) + 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) { - _elem1307 = iprot.readString(); - struct.part_vals.add(_elem1307); + _elem1387 = iprot.readString(); + struct.part_vals.add(_elem1387); } iprot.readListEnd(); } @@ -95238,9 +96450,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 _iter1309 : struct.part_vals) + for (String _iter1389 : struct.part_vals) { - oprot.writeString(_iter1309); + oprot.writeString(_iter1389); } oprot.writeListEnd(); } @@ -95291,9 +96503,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 _iter1310 : struct.part_vals) + for (String _iter1390 : struct.part_vals) { - oprot.writeString(_iter1310); + oprot.writeString(_iter1390); } } } @@ -95316,13 +96528,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_wit } 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.part_vals = new ArrayList(_list1311.size); - String _elem1312; - for (int _i1313 = 0; _i1313 < _list1311.size; ++_i1313) + 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) { - _elem1312 = iprot.readString(); - struct.part_vals.add(_elem1312); + _elem1392 = iprot.readString(); + struct.part_vals.add(_elem1392); } } struct.setPart_valsIsSet(true); @@ -99192,13 +100404,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 _list1314 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1314.size); - String _elem1315; - for (int _i1316 = 0; _i1316 < _list1314.size; ++_i1316) + 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) { - _elem1315 = iprot.readString(); - struct.part_vals.add(_elem1315); + _elem1395 = iprot.readString(); + struct.part_vals.add(_elem1395); } iprot.readListEnd(); } @@ -99242,9 +100454,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 _iter1317 : struct.part_vals) + for (String _iter1397 : struct.part_vals) { - oprot.writeString(_iter1317); + oprot.writeString(_iter1397); } oprot.writeListEnd(); } @@ -99293,9 +100505,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 _iter1318 : struct.part_vals) + for (String _iter1398 : struct.part_vals) { - oprot.writeString(_iter1318); + oprot.writeString(_iter1398); } } } @@ -99318,13 +100530,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_args } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1319 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1319.size); - String _elem1320; - for (int _i1321 = 0; _i1321 < _list1319.size; ++_i1321) + 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) { - _elem1320 = iprot.readString(); - struct.part_vals.add(_elem1320); + _elem1400 = iprot.readString(); + struct.part_vals.add(_elem1400); } } struct.setPart_valsIsSet(true); @@ -100563,13 +101775,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 _list1322 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1322.size); - String _elem1323; - for (int _i1324 = 0; _i1324 < _list1322.size; ++_i1324) + 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) { - _elem1323 = iprot.readString(); - struct.part_vals.add(_elem1323); + _elem1403 = iprot.readString(); + struct.part_vals.add(_elem1403); } iprot.readListEnd(); } @@ -100622,9 +101834,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 _iter1325 : struct.part_vals) + for (String _iter1405 : struct.part_vals) { - oprot.writeString(_iter1325); + oprot.writeString(_iter1405); } oprot.writeListEnd(); } @@ -100681,9 +101893,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 _iter1326 : struct.part_vals) + for (String _iter1406 : struct.part_vals) { - oprot.writeString(_iter1326); + oprot.writeString(_iter1406); } } } @@ -100709,13 +101921,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_ } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1327 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1327.size); - String _elem1328; - for (int _i1329 = 0; _i1329 < _list1327.size; ++_i1329) + 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) { - _elem1328 = iprot.readString(); - struct.part_vals.add(_elem1328); + _elem1408 = iprot.readString(); + struct.part_vals.add(_elem1408); } } struct.setPart_valsIsSet(true); @@ -105317,13 +106529,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 _list1330 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1330.size); - String _elem1331; - for (int _i1332 = 0; _i1332 < _list1330.size; ++_i1332) + 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) { - _elem1331 = iprot.readString(); - struct.part_vals.add(_elem1331); + _elem1411 = iprot.readString(); + struct.part_vals.add(_elem1411); } iprot.readListEnd(); } @@ -105359,9 +106571,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 _iter1333 : struct.part_vals) + for (String _iter1413 : struct.part_vals) { - oprot.writeString(_iter1333); + oprot.writeString(_iter1413); } oprot.writeListEnd(); } @@ -105404,9 +106616,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 _iter1334 : struct.part_vals) + for (String _iter1414 : struct.part_vals) { - oprot.writeString(_iter1334); + oprot.writeString(_iter1414); } } } @@ -105426,13 +106638,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_args s } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1335 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1335.size); - String _elem1336; - for (int _i1337 = 0; _i1337 < _list1335.size; ++_i1337) + 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) { - _elem1336 = iprot.readString(); - struct.part_vals.add(_elem1336); + _elem1416 = iprot.readString(); + struct.part_vals.add(_elem1416); } } struct.setPart_valsIsSet(true); @@ -106650,15 +107862,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 _map1338 = iprot.readMapBegin(); - struct.partitionSpecs = new HashMap(2*_map1338.size); - String _key1339; - String _val1340; - for (int _i1341 = 0; _i1341 < _map1338.size; ++_i1341) + 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) { - _key1339 = iprot.readString(); - _val1340 = iprot.readString(); - struct.partitionSpecs.put(_key1339, _val1340); + _key1419 = iprot.readString(); + _val1420 = iprot.readString(); + struct.partitionSpecs.put(_key1419, _val1420); } iprot.readMapEnd(); } @@ -106716,10 +107928,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 _iter1342 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter1422 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1342.getKey()); - oprot.writeString(_iter1342.getValue()); + oprot.writeString(_iter1422.getKey()); + oprot.writeString(_iter1422.getValue()); } oprot.writeMapEnd(); } @@ -106782,10 +107994,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_ if (struct.isSetPartitionSpecs()) { { oprot.writeI32(struct.partitionSpecs.size()); - for (Map.Entry _iter1343 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter1423 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1343.getKey()); - oprot.writeString(_iter1343.getValue()); + oprot.writeString(_iter1423.getKey()); + oprot.writeString(_iter1423.getValue()); } } } @@ -106809,15 +108021,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 _map1344 = 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*_map1344.size); - String _key1345; - String _val1346; - for (int _i1347 = 0; _i1347 < _map1344.size; ++_i1347) + 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) { - _key1345 = iprot.readString(); - _val1346 = iprot.readString(); - struct.partitionSpecs.put(_key1345, _val1346); + _key1425 = iprot.readString(); + _val1426 = iprot.readString(); + struct.partitionSpecs.put(_key1425, _val1426); } } struct.setPartitionSpecsIsSet(true); @@ -108263,15 +109475,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 _map1348 = iprot.readMapBegin(); - struct.partitionSpecs = new HashMap(2*_map1348.size); - String _key1349; - String _val1350; - for (int _i1351 = 0; _i1351 < _map1348.size; ++_i1351) + 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) { - _key1349 = iprot.readString(); - _val1350 = iprot.readString(); - struct.partitionSpecs.put(_key1349, _val1350); + _key1429 = iprot.readString(); + _val1430 = iprot.readString(); + struct.partitionSpecs.put(_key1429, _val1430); } iprot.readMapEnd(); } @@ -108329,10 +109541,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 _iter1352 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter1432 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1352.getKey()); - oprot.writeString(_iter1352.getValue()); + oprot.writeString(_iter1432.getKey()); + oprot.writeString(_iter1432.getValue()); } oprot.writeMapEnd(); } @@ -108395,10 +109607,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions if (struct.isSetPartitionSpecs()) { { oprot.writeI32(struct.partitionSpecs.size()); - for (Map.Entry _iter1353 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter1433 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1353.getKey()); - oprot.writeString(_iter1353.getValue()); + oprot.writeString(_iter1433.getKey()); + oprot.writeString(_iter1433.getValue()); } } } @@ -108422,15 +109634,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 _map1354 = 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*_map1354.size); - String _key1355; - String _val1356; - for (int _i1357 = 0; _i1357 < _map1354.size; ++_i1357) + 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) { - _key1355 = iprot.readString(); - _val1356 = iprot.readString(); - struct.partitionSpecs.put(_key1355, _val1356); + _key1435 = iprot.readString(); + _val1436 = iprot.readString(); + struct.partitionSpecs.put(_key1435, _val1436); } } struct.setPartitionSpecsIsSet(true); @@ -109095,14 +110307,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 _list1358 = iprot.readListBegin(); - struct.success = new ArrayList(_list1358.size); - Partition _elem1359; - for (int _i1360 = 0; _i1360 < _list1358.size; ++_i1360) + org.apache.thrift.protocol.TList _list1438 = iprot.readListBegin(); + struct.success = new ArrayList(_list1438.size); + Partition _elem1439; + for (int _i1440 = 0; _i1440 < _list1438.size; ++_i1440) { - _elem1359 = new Partition(); - _elem1359.read(iprot); - struct.success.add(_elem1359); + _elem1439 = new Partition(); + _elem1439.read(iprot); + struct.success.add(_elem1439); } iprot.readListEnd(); } @@ -109164,9 +110376,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 _iter1361 : struct.success) + for (Partition _iter1441 : struct.success) { - _iter1361.write(oprot); + _iter1441.write(oprot); } oprot.writeListEnd(); } @@ -109229,9 +110441,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1362 : struct.success) + for (Partition _iter1442 : struct.success) { - _iter1362.write(oprot); + _iter1442.write(oprot); } } } @@ -109255,14 +110467,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 _list1363 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1363.size); - Partition _elem1364; - for (int _i1365 = 0; _i1365 < _list1363.size; ++_i1365) + 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) { - _elem1364 = new Partition(); - _elem1364.read(iprot); - struct.success.add(_elem1364); + _elem1444 = new Partition(); + _elem1444.read(iprot); + struct.success.add(_elem1444); } } struct.setSuccessIsSet(true); @@ -109961,13 +111173,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 _list1366 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1366.size); - String _elem1367; - for (int _i1368 = 0; _i1368 < _list1366.size; ++_i1368) + 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) { - _elem1367 = iprot.readString(); - struct.part_vals.add(_elem1367); + _elem1447 = iprot.readString(); + struct.part_vals.add(_elem1447); } iprot.readListEnd(); } @@ -109987,13 +111199,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 _list1369 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1369.size); - String _elem1370; - for (int _i1371 = 0; _i1371 < _list1369.size; ++_i1371) + 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) { - _elem1370 = iprot.readString(); - struct.group_names.add(_elem1370); + _elem1450 = iprot.readString(); + struct.group_names.add(_elem1450); } iprot.readListEnd(); } @@ -110029,9 +111241,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 _iter1372 : struct.part_vals) + for (String _iter1452 : struct.part_vals) { - oprot.writeString(_iter1372); + oprot.writeString(_iter1452); } oprot.writeListEnd(); } @@ -110046,9 +111258,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 _iter1373 : struct.group_names) + for (String _iter1453 : struct.group_names) { - oprot.writeString(_iter1373); + oprot.writeString(_iter1453); } oprot.writeListEnd(); } @@ -110097,9 +111309,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 _iter1374 : struct.part_vals) + for (String _iter1454 : struct.part_vals) { - oprot.writeString(_iter1374); + oprot.writeString(_iter1454); } } } @@ -110109,9 +111321,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 _iter1375 : struct.group_names) + for (String _iter1455 : struct.group_names) { - oprot.writeString(_iter1375); + oprot.writeString(_iter1455); } } } @@ -110131,13 +111343,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1376 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1376.size); - String _elem1377; - for (int _i1378 = 0; _i1378 < _list1376.size; ++_i1378) + 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) { - _elem1377 = iprot.readString(); - struct.part_vals.add(_elem1377); + _elem1457 = iprot.readString(); + struct.part_vals.add(_elem1457); } } struct.setPart_valsIsSet(true); @@ -110148,13 +111360,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list1379 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1379.size); - String _elem1380; - for (int _i1381 = 0; _i1381 < _list1379.size; ++_i1381) + 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) { - _elem1380 = iprot.readString(); - struct.group_names.add(_elem1380); + _elem1460 = iprot.readString(); + struct.group_names.add(_elem1460); } } struct.setGroup_namesIsSet(true); @@ -112923,14 +114135,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 _list1382 = iprot.readListBegin(); - struct.success = new ArrayList(_list1382.size); - Partition _elem1383; - for (int _i1384 = 0; _i1384 < _list1382.size; ++_i1384) + org.apache.thrift.protocol.TList _list1462 = iprot.readListBegin(); + struct.success = new ArrayList(_list1462.size); + Partition _elem1463; + for (int _i1464 = 0; _i1464 < _list1462.size; ++_i1464) { - _elem1383 = new Partition(); - _elem1383.read(iprot); - struct.success.add(_elem1383); + _elem1463 = new Partition(); + _elem1463.read(iprot); + struct.success.add(_elem1463); } iprot.readListEnd(); } @@ -112974,9 +114186,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 _iter1385 : struct.success) + for (Partition _iter1465 : struct.success) { - _iter1385.write(oprot); + _iter1465.write(oprot); } oprot.writeListEnd(); } @@ -113023,9 +114235,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1386 : struct.success) + for (Partition _iter1466 : struct.success) { - _iter1386.write(oprot); + _iter1466.write(oprot); } } } @@ -113043,14 +114255,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 _list1387 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1387.size); - Partition _elem1388; - for (int _i1389 = 0; _i1389 < _list1387.size; ++_i1389) + 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) { - _elem1388 = new Partition(); - _elem1388.read(iprot); - struct.success.add(_elem1388); + _elem1468 = new Partition(); + _elem1468.read(iprot); + struct.success.add(_elem1468); } } struct.setSuccessIsSet(true); @@ -113740,13 +114952,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 _list1390 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1390.size); - String _elem1391; - for (int _i1392 = 0; _i1392 < _list1390.size; ++_i1392) + 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) { - _elem1391 = iprot.readString(); - struct.group_names.add(_elem1391); + _elem1471 = iprot.readString(); + struct.group_names.add(_elem1471); } iprot.readListEnd(); } @@ -113790,9 +115002,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 _iter1393 : struct.group_names) + for (String _iter1473 : struct.group_names) { - oprot.writeString(_iter1393); + oprot.writeString(_iter1473); } oprot.writeListEnd(); } @@ -113847,9 +115059,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 _iter1394 : struct.group_names) + for (String _iter1474 : struct.group_names) { - oprot.writeString(_iter1394); + oprot.writeString(_iter1474); } } } @@ -113877,13 +115089,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list1395 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1395.size); - String _elem1396; - for (int _i1397 = 0; _i1397 < _list1395.size; ++_i1397) + 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) { - _elem1396 = iprot.readString(); - struct.group_names.add(_elem1396); + _elem1476 = iprot.readString(); + struct.group_names.add(_elem1476); } } struct.setGroup_namesIsSet(true); @@ -114370,14 +115582,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 _list1398 = iprot.readListBegin(); - struct.success = new ArrayList(_list1398.size); - Partition _elem1399; - for (int _i1400 = 0; _i1400 < _list1398.size; ++_i1400) + org.apache.thrift.protocol.TList _list1478 = iprot.readListBegin(); + struct.success = new ArrayList(_list1478.size); + Partition _elem1479; + for (int _i1480 = 0; _i1480 < _list1478.size; ++_i1480) { - _elem1399 = new Partition(); - _elem1399.read(iprot); - struct.success.add(_elem1399); + _elem1479 = new Partition(); + _elem1479.read(iprot); + struct.success.add(_elem1479); } iprot.readListEnd(); } @@ -114421,9 +115633,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 _iter1401 : struct.success) + for (Partition _iter1481 : struct.success) { - _iter1401.write(oprot); + _iter1481.write(oprot); } oprot.writeListEnd(); } @@ -114470,9 +115682,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1402 : struct.success) + for (Partition _iter1482 : struct.success) { - _iter1402.write(oprot); + _iter1482.write(oprot); } } } @@ -114490,14 +115702,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 _list1403 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1403.size); - Partition _elem1404; - for (int _i1405 = 0; _i1405 < _list1403.size; ++_i1405) + 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) { - _elem1404 = new Partition(); - _elem1404.read(iprot); - struct.success.add(_elem1404); + _elem1484 = new Partition(); + _elem1484.read(iprot); + struct.success.add(_elem1484); } } struct.setSuccessIsSet(true); @@ -115560,14 +116772,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 _list1406 = iprot.readListBegin(); - struct.success = new ArrayList(_list1406.size); - PartitionSpec _elem1407; - for (int _i1408 = 0; _i1408 < _list1406.size; ++_i1408) + org.apache.thrift.protocol.TList _list1486 = iprot.readListBegin(); + struct.success = new ArrayList(_list1486.size); + PartitionSpec _elem1487; + for (int _i1488 = 0; _i1488 < _list1486.size; ++_i1488) { - _elem1407 = new PartitionSpec(); - _elem1407.read(iprot); - struct.success.add(_elem1407); + _elem1487 = new PartitionSpec(); + _elem1487.read(iprot); + struct.success.add(_elem1487); } iprot.readListEnd(); } @@ -115611,9 +116823,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 _iter1409 : struct.success) + for (PartitionSpec _iter1489 : struct.success) { - _iter1409.write(oprot); + _iter1489.write(oprot); } oprot.writeListEnd(); } @@ -115660,9 +116872,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspe if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (PartitionSpec _iter1410 : struct.success) + for (PartitionSpec _iter1490 : struct.success) { - _iter1410.write(oprot); + _iter1490.write(oprot); } } } @@ -115680,14 +116892,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 _list1411 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1411.size); - PartitionSpec _elem1412; - for (int _i1413 = 0; _i1413 < _list1411.size; ++_i1413) + 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) { - _elem1412 = new PartitionSpec(); - _elem1412.read(iprot); - struct.success.add(_elem1412); + _elem1492 = new PartitionSpec(); + _elem1492.read(iprot); + struct.success.add(_elem1492); } } struct.setSuccessIsSet(true); @@ -116747,13 +117959,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 _list1414 = iprot.readListBegin(); - struct.success = new ArrayList(_list1414.size); - String _elem1415; - for (int _i1416 = 0; _i1416 < _list1414.size; ++_i1416) + org.apache.thrift.protocol.TList _list1494 = iprot.readListBegin(); + struct.success = new ArrayList(_list1494.size); + String _elem1495; + for (int _i1496 = 0; _i1496 < _list1494.size; ++_i1496) { - _elem1415 = iprot.readString(); - struct.success.add(_elem1415); + _elem1495 = iprot.readString(); + struct.success.add(_elem1495); } iprot.readListEnd(); } @@ -116797,9 +118009,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 _iter1417 : struct.success) + for (String _iter1497 : struct.success) { - oprot.writeString(_iter1417); + oprot.writeString(_iter1497); } oprot.writeListEnd(); } @@ -116846,9 +118058,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1418 : struct.success) + for (String _iter1498 : struct.success) { - oprot.writeString(_iter1418); + oprot.writeString(_iter1498); } } } @@ -116866,13 +118078,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 _list1419 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1419.size); - String _elem1420; - for (int _i1421 = 0; _i1421 < _list1419.size; ++_i1421) + 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) { - _elem1420 = iprot.readString(); - struct.success.add(_elem1420); + _elem1500 = iprot.readString(); + struct.success.add(_elem1500); } } struct.setSuccessIsSet(true); @@ -118403,13 +119615,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 _list1422 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1422.size); - String _elem1423; - for (int _i1424 = 0; _i1424 < _list1422.size; ++_i1424) + 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) { - _elem1423 = iprot.readString(); - struct.part_vals.add(_elem1423); + _elem1503 = iprot.readString(); + struct.part_vals.add(_elem1503); } iprot.readListEnd(); } @@ -118453,9 +119665,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 _iter1425 : struct.part_vals) + for (String _iter1505 : struct.part_vals) { - oprot.writeString(_iter1425); + oprot.writeString(_iter1505); } oprot.writeListEnd(); } @@ -118504,9 +119716,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 _iter1426 : struct.part_vals) + for (String _iter1506 : struct.part_vals) { - oprot.writeString(_iter1426); + oprot.writeString(_iter1506); } } } @@ -118529,13 +119741,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1427 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1427.size); - String _elem1428; - for (int _i1429 = 0; _i1429 < _list1427.size; ++_i1429) + 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) { - _elem1428 = iprot.readString(); - struct.part_vals.add(_elem1428); + _elem1508 = iprot.readString(); + struct.part_vals.add(_elem1508); } } struct.setPart_valsIsSet(true); @@ -119026,14 +120238,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 _list1430 = iprot.readListBegin(); - struct.success = new ArrayList(_list1430.size); - Partition _elem1431; - for (int _i1432 = 0; _i1432 < _list1430.size; ++_i1432) + org.apache.thrift.protocol.TList _list1510 = iprot.readListBegin(); + struct.success = new ArrayList(_list1510.size); + Partition _elem1511; + for (int _i1512 = 0; _i1512 < _list1510.size; ++_i1512) { - _elem1431 = new Partition(); - _elem1431.read(iprot); - struct.success.add(_elem1431); + _elem1511 = new Partition(); + _elem1511.read(iprot); + struct.success.add(_elem1511); } iprot.readListEnd(); } @@ -119077,9 +120289,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 _iter1433 : struct.success) + for (Partition _iter1513 : struct.success) { - _iter1433.write(oprot); + _iter1513.write(oprot); } oprot.writeListEnd(); } @@ -119126,9 +120338,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1434 : struct.success) + for (Partition _iter1514 : struct.success) { - _iter1434.write(oprot); + _iter1514.write(oprot); } } } @@ -119146,14 +120358,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 _list1435 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1435.size); - Partition _elem1436; - for (int _i1437 = 0; _i1437 < _list1435.size; ++_i1437) + 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) { - _elem1436 = new Partition(); - _elem1436.read(iprot); - struct.success.add(_elem1436); + _elem1516 = new Partition(); + _elem1516.read(iprot); + struct.success.add(_elem1516); } } struct.setSuccessIsSet(true); @@ -119925,13 +121137,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 _list1438 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1438.size); - String _elem1439; - for (int _i1440 = 0; _i1440 < _list1438.size; ++_i1440) + 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) { - _elem1439 = iprot.readString(); - struct.part_vals.add(_elem1439); + _elem1519 = iprot.readString(); + struct.part_vals.add(_elem1519); } iprot.readListEnd(); } @@ -119959,13 +121171,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 _list1441 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1441.size); - String _elem1442; - for (int _i1443 = 0; _i1443 < _list1441.size; ++_i1443) + 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) { - _elem1442 = iprot.readString(); - struct.group_names.add(_elem1442); + _elem1522 = iprot.readString(); + struct.group_names.add(_elem1522); } iprot.readListEnd(); } @@ -120001,9 +121213,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 _iter1444 : struct.part_vals) + for (String _iter1524 : struct.part_vals) { - oprot.writeString(_iter1444); + oprot.writeString(_iter1524); } oprot.writeListEnd(); } @@ -120021,9 +121233,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 _iter1445 : struct.group_names) + for (String _iter1525 : struct.group_names) { - oprot.writeString(_iter1445); + oprot.writeString(_iter1525); } oprot.writeListEnd(); } @@ -120075,9 +121287,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 _iter1446 : struct.part_vals) + for (String _iter1526 : struct.part_vals) { - oprot.writeString(_iter1446); + oprot.writeString(_iter1526); } } } @@ -120090,9 +121302,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 _iter1447 : struct.group_names) + for (String _iter1527 : struct.group_names) { - oprot.writeString(_iter1447); + oprot.writeString(_iter1527); } } } @@ -120112,13 +121324,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1448 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1448.size); - String _elem1449; - for (int _i1450 = 0; _i1450 < _list1448.size; ++_i1450) + 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) { - _elem1449 = iprot.readString(); - struct.part_vals.add(_elem1449); + _elem1529 = iprot.readString(); + struct.part_vals.add(_elem1529); } } struct.setPart_valsIsSet(true); @@ -120133,13 +121345,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(5)) { { - org.apache.thrift.protocol.TList _list1451 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1451.size); - String _elem1452; - for (int _i1453 = 0; _i1453 < _list1451.size; ++_i1453) + 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) { - _elem1452 = iprot.readString(); - struct.group_names.add(_elem1452); + _elem1532 = iprot.readString(); + struct.group_names.add(_elem1532); } } struct.setGroup_namesIsSet(true); @@ -120626,14 +121838,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 _list1454 = iprot.readListBegin(); - struct.success = new ArrayList(_list1454.size); - Partition _elem1455; - for (int _i1456 = 0; _i1456 < _list1454.size; ++_i1456) + org.apache.thrift.protocol.TList _list1534 = iprot.readListBegin(); + struct.success = new ArrayList(_list1534.size); + Partition _elem1535; + for (int _i1536 = 0; _i1536 < _list1534.size; ++_i1536) { - _elem1455 = new Partition(); - _elem1455.read(iprot); - struct.success.add(_elem1455); + _elem1535 = new Partition(); + _elem1535.read(iprot); + struct.success.add(_elem1535); } iprot.readListEnd(); } @@ -120677,9 +121889,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 _iter1457 : struct.success) + for (Partition _iter1537 : struct.success) { - _iter1457.write(oprot); + _iter1537.write(oprot); } oprot.writeListEnd(); } @@ -120726,9 +121938,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1458 : struct.success) + for (Partition _iter1538 : struct.success) { - _iter1458.write(oprot); + _iter1538.write(oprot); } } } @@ -120746,14 +121958,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 _list1459 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1459.size); - Partition _elem1460; - for (int _i1461 = 0; _i1461 < _list1459.size; ++_i1461) + 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) { - _elem1460 = new Partition(); - _elem1460.read(iprot); - struct.success.add(_elem1460); + _elem1540 = new Partition(); + _elem1540.read(iprot); + struct.success.add(_elem1540); } } struct.setSuccessIsSet(true); @@ -121346,13 +122558,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 _list1462 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1462.size); - String _elem1463; - for (int _i1464 = 0; _i1464 < _list1462.size; ++_i1464) + 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) { - _elem1463 = iprot.readString(); - struct.part_vals.add(_elem1463); + _elem1543 = iprot.readString(); + struct.part_vals.add(_elem1543); } iprot.readListEnd(); } @@ -121396,9 +122608,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 _iter1465 : struct.part_vals) + for (String _iter1545 : struct.part_vals) { - oprot.writeString(_iter1465); + oprot.writeString(_iter1545); } oprot.writeListEnd(); } @@ -121447,9 +122659,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 _iter1466 : struct.part_vals) + for (String _iter1546 : struct.part_vals) { - oprot.writeString(_iter1466); + oprot.writeString(_iter1546); } } } @@ -121472,13 +122684,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1467 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1467.size); - String _elem1468; - for (int _i1469 = 0; _i1469 < _list1467.size; ++_i1469) + 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) { - _elem1468 = iprot.readString(); - struct.part_vals.add(_elem1468); + _elem1548 = iprot.readString(); + struct.part_vals.add(_elem1548); } } struct.setPart_valsIsSet(true); @@ -121966,13 +123178,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 _list1470 = iprot.readListBegin(); - struct.success = new ArrayList(_list1470.size); - String _elem1471; - for (int _i1472 = 0; _i1472 < _list1470.size; ++_i1472) + org.apache.thrift.protocol.TList _list1550 = iprot.readListBegin(); + struct.success = new ArrayList(_list1550.size); + String _elem1551; + for (int _i1552 = 0; _i1552 < _list1550.size; ++_i1552) { - _elem1471 = iprot.readString(); - struct.success.add(_elem1471); + _elem1551 = iprot.readString(); + struct.success.add(_elem1551); } iprot.readListEnd(); } @@ -122016,9 +123228,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 _iter1473 : struct.success) + for (String _iter1553 : struct.success) { - oprot.writeString(_iter1473); + oprot.writeString(_iter1553); } oprot.writeListEnd(); } @@ -122065,9 +123277,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1474 : struct.success) + for (String _iter1554 : struct.success) { - oprot.writeString(_iter1474); + oprot.writeString(_iter1554); } } } @@ -122085,13 +123297,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 _list1475 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1475.size); - String _elem1476; - for (int _i1477 = 0; _i1477 < _list1475.size; ++_i1477) + 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) { - _elem1476 = iprot.readString(); - struct.success.add(_elem1476); + _elem1556 = iprot.readString(); + struct.success.add(_elem1556); } } struct.setSuccessIsSet(true); @@ -123258,14 +124470,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 _list1478 = iprot.readListBegin(); - struct.success = new ArrayList(_list1478.size); - Partition _elem1479; - for (int _i1480 = 0; _i1480 < _list1478.size; ++_i1480) + org.apache.thrift.protocol.TList _list1558 = iprot.readListBegin(); + struct.success = new ArrayList(_list1558.size); + Partition _elem1559; + for (int _i1560 = 0; _i1560 < _list1558.size; ++_i1560) { - _elem1479 = new Partition(); - _elem1479.read(iprot); - struct.success.add(_elem1479); + _elem1559 = new Partition(); + _elem1559.read(iprot); + struct.success.add(_elem1559); } iprot.readListEnd(); } @@ -123309,9 +124521,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 _iter1481 : struct.success) + for (Partition _iter1561 : struct.success) { - _iter1481.write(oprot); + _iter1561.write(oprot); } oprot.writeListEnd(); } @@ -123358,9 +124570,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_f if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1482 : struct.success) + for (Partition _iter1562 : struct.success) { - _iter1482.write(oprot); + _iter1562.write(oprot); } } } @@ -123378,14 +124590,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 _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 _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) { - _elem1484 = new Partition(); - _elem1484.read(iprot); - struct.success.add(_elem1484); + _elem1564 = new Partition(); + _elem1564.read(iprot); + struct.success.add(_elem1564); } } struct.setSuccessIsSet(true); @@ -124552,14 +125764,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 _list1486 = iprot.readListBegin(); - struct.success = new ArrayList(_list1486.size); - PartitionSpec _elem1487; - for (int _i1488 = 0; _i1488 < _list1486.size; ++_i1488) + org.apache.thrift.protocol.TList _list1566 = iprot.readListBegin(); + struct.success = new ArrayList(_list1566.size); + PartitionSpec _elem1567; + for (int _i1568 = 0; _i1568 < _list1566.size; ++_i1568) { - _elem1487 = new PartitionSpec(); - _elem1487.read(iprot); - struct.success.add(_elem1487); + _elem1567 = new PartitionSpec(); + _elem1567.read(iprot); + struct.success.add(_elem1567); } iprot.readListEnd(); } @@ -124603,9 +125815,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 _iter1489 : struct.success) + for (PartitionSpec _iter1569 : struct.success) { - _iter1489.write(oprot); + _iter1569.write(oprot); } oprot.writeListEnd(); } @@ -124652,9 +125864,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 _iter1490 : struct.success) + for (PartitionSpec _iter1570 : struct.success) { - _iter1490.write(oprot); + _iter1570.write(oprot); } } } @@ -124672,14 +125884,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 _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 _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) { - _elem1492 = new PartitionSpec(); - _elem1492.read(iprot); - struct.success.add(_elem1492); + _elem1572 = new PartitionSpec(); + _elem1572.read(iprot); + struct.success.add(_elem1572); } } struct.setSuccessIsSet(true); @@ -127263,13 +128475,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 _list1494 = iprot.readListBegin(); - struct.names = new ArrayList(_list1494.size); - String _elem1495; - for (int _i1496 = 0; _i1496 < _list1494.size; ++_i1496) + org.apache.thrift.protocol.TList _list1574 = iprot.readListBegin(); + struct.names = new ArrayList(_list1574.size); + String _elem1575; + for (int _i1576 = 0; _i1576 < _list1574.size; ++_i1576) { - _elem1495 = iprot.readString(); - struct.names.add(_elem1495); + _elem1575 = iprot.readString(); + struct.names.add(_elem1575); } iprot.readListEnd(); } @@ -127305,9 +128517,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 _iter1497 : struct.names) + for (String _iter1577 : struct.names) { - oprot.writeString(_iter1497); + oprot.writeString(_iter1577); } oprot.writeListEnd(); } @@ -127350,9 +128562,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetNames()) { { oprot.writeI32(struct.names.size()); - for (String _iter1498 : struct.names) + for (String _iter1578 : struct.names) { - oprot.writeString(_iter1498); + oprot.writeString(_iter1578); } } } @@ -127372,13 +128584,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_na } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1499 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.names = new ArrayList(_list1499.size); - String _elem1500; - for (int _i1501 = 0; _i1501 < _list1499.size; ++_i1501) + 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) { - _elem1500 = iprot.readString(); - struct.names.add(_elem1500); + _elem1580 = iprot.readString(); + struct.names.add(_elem1580); } } struct.setNamesIsSet(true); @@ -127865,14 +129077,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 _list1502 = iprot.readListBegin(); - struct.success = new ArrayList(_list1502.size); - Partition _elem1503; - for (int _i1504 = 0; _i1504 < _list1502.size; ++_i1504) + org.apache.thrift.protocol.TList _list1582 = iprot.readListBegin(); + struct.success = new ArrayList(_list1582.size); + Partition _elem1583; + for (int _i1584 = 0; _i1584 < _list1582.size; ++_i1584) { - _elem1503 = new Partition(); - _elem1503.read(iprot); - struct.success.add(_elem1503); + _elem1583 = new Partition(); + _elem1583.read(iprot); + struct.success.add(_elem1583); } iprot.readListEnd(); } @@ -127916,9 +129128,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 _iter1505 : struct.success) + for (Partition _iter1585 : struct.success) { - _iter1505.write(oprot); + _iter1585.write(oprot); } oprot.writeListEnd(); } @@ -127965,9 +129177,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1506 : struct.success) + for (Partition _iter1586 : struct.success) { - _iter1506.write(oprot); + _iter1586.write(oprot); } } } @@ -127985,14 +129197,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 _list1507 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1507.size); - Partition _elem1508; - for (int _i1509 = 0; _i1509 < _list1507.size; ++_i1509) + 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) { - _elem1508 = new Partition(); - _elem1508.read(iprot); - struct.success.add(_elem1508); + _elem1588 = new Partition(); + _elem1588.read(iprot); + struct.success.add(_elem1588); } } struct.setSuccessIsSet(true); @@ -130480,14 +131692,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 _list1510 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1510.size); - Partition _elem1511; - for (int _i1512 = 0; _i1512 < _list1510.size; ++_i1512) + 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) { - _elem1511 = new Partition(); - _elem1511.read(iprot); - struct.new_parts.add(_elem1511); + _elem1591 = new Partition(); + _elem1591.read(iprot); + struct.new_parts.add(_elem1591); } iprot.readListEnd(); } @@ -130523,9 +131735,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 _iter1513 : struct.new_parts) + for (Partition _iter1593 : struct.new_parts) { - _iter1513.write(oprot); + _iter1593.write(oprot); } oprot.writeListEnd(); } @@ -130568,9 +131780,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 _iter1514 : struct.new_parts) + for (Partition _iter1594 : struct.new_parts) { - _iter1514.write(oprot); + _iter1594.write(oprot); } } } @@ -130590,14 +131802,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1515 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1515.size); - Partition _elem1516; - for (int _i1517 = 0; _i1517 < _list1515.size; ++_i1517) + 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) { - _elem1516 = new Partition(); - _elem1516.read(iprot); - struct.new_parts.add(_elem1516); + _elem1596 = new Partition(); + _elem1596.read(iprot); + struct.new_parts.add(_elem1596); } } struct.setNew_partsIsSet(true); @@ -131650,14 +132862,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 _list1518 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1518.size); - Partition _elem1519; - for (int _i1520 = 0; _i1520 < _list1518.size; ++_i1520) + 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) { - _elem1519 = new Partition(); - _elem1519.read(iprot); - struct.new_parts.add(_elem1519); + _elem1599 = new Partition(); + _elem1599.read(iprot); + struct.new_parts.add(_elem1599); } iprot.readListEnd(); } @@ -131702,9 +132914,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 _iter1521 : struct.new_parts) + for (Partition _iter1601 : struct.new_parts) { - _iter1521.write(oprot); + _iter1601.write(oprot); } oprot.writeListEnd(); } @@ -131755,9 +132967,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 _iter1522 : struct.new_parts) + for (Partition _iter1602 : struct.new_parts) { - _iter1522.write(oprot); + _iter1602.write(oprot); } } } @@ -131780,14 +132992,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_wit } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1523 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1523.size); - Partition _elem1524; - for (int _i1525 = 0; _i1525 < _list1523.size; ++_i1525) + 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) { - _elem1524 = new Partition(); - _elem1524.read(iprot); - struct.new_parts.add(_elem1524); + _elem1604 = new Partition(); + _elem1604.read(iprot); + struct.new_parts.add(_elem1604); } } struct.setNew_partsIsSet(true); @@ -134926,13 +136138,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 _list1526 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1526.size); - String _elem1527; - for (int _i1528 = 0; _i1528 < _list1526.size; ++_i1528) + 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) { - _elem1527 = iprot.readString(); - struct.part_vals.add(_elem1527); + _elem1607 = iprot.readString(); + struct.part_vals.add(_elem1607); } iprot.readListEnd(); } @@ -134977,9 +136189,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 _iter1529 : struct.part_vals) + for (String _iter1609 : struct.part_vals) { - oprot.writeString(_iter1529); + oprot.writeString(_iter1609); } oprot.writeListEnd(); } @@ -135030,9 +136242,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 _iter1530 : struct.part_vals) + for (String _iter1610 : struct.part_vals) { - oprot.writeString(_iter1530); + oprot.writeString(_iter1610); } } } @@ -135055,13 +136267,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, rename_partition_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1531 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1531.size); - String _elem1532; - for (int _i1533 = 0; _i1533 < _list1531.size; ++_i1533) + 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) { - _elem1532 = iprot.readString(); - struct.part_vals.add(_elem1532); + _elem1612 = iprot.readString(); + struct.part_vals.add(_elem1612); } } struct.setPart_valsIsSet(true); @@ -136873,13 +138085,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 _list1534 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1534.size); - String _elem1535; - for (int _i1536 = 0; _i1536 < _list1534.size; ++_i1536) + 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) { - _elem1535 = iprot.readString(); - struct.part_vals.add(_elem1535); + _elem1615 = iprot.readString(); + struct.part_vals.add(_elem1615); } iprot.readListEnd(); } @@ -136913,9 +138125,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 _iter1537 : struct.part_vals) + for (String _iter1617 : struct.part_vals) { - oprot.writeString(_iter1537); + oprot.writeString(_iter1617); } oprot.writeListEnd(); } @@ -136952,9 +138164,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 _iter1538 : struct.part_vals) + for (String _iter1618 : struct.part_vals) { - oprot.writeString(_iter1538); + oprot.writeString(_iter1618); } } } @@ -136969,13 +138181,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 _list1539 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1539.size); - String _elem1540; - for (int _i1541 = 0; _i1541 < _list1539.size; ++_i1541) + 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) { - _elem1540 = iprot.readString(); - struct.part_vals.add(_elem1540); + _elem1620 = iprot.readString(); + struct.part_vals.add(_elem1620); } } struct.setPart_valsIsSet(true); @@ -139130,13 +140342,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 _list1542 = iprot.readListBegin(); - struct.success = new ArrayList(_list1542.size); - String _elem1543; - for (int _i1544 = 0; _i1544 < _list1542.size; ++_i1544) + org.apache.thrift.protocol.TList _list1622 = iprot.readListBegin(); + struct.success = new ArrayList(_list1622.size); + String _elem1623; + for (int _i1624 = 0; _i1624 < _list1622.size; ++_i1624) { - _elem1543 = iprot.readString(); - struct.success.add(_elem1543); + _elem1623 = iprot.readString(); + struct.success.add(_elem1623); } iprot.readListEnd(); } @@ -139171,9 +140383,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 _iter1545 : struct.success) + for (String _iter1625 : struct.success) { - oprot.writeString(_iter1545); + oprot.writeString(_iter1625); } oprot.writeListEnd(); } @@ -139212,9 +140424,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_to_v if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1546 : struct.success) + for (String _iter1626 : struct.success) { - oprot.writeString(_iter1546); + oprot.writeString(_iter1626); } } } @@ -139229,13 +140441,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 _list1547 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1547.size); - String _elem1548; - for (int _i1549 = 0; _i1549 < _list1547.size; ++_i1549) + 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) { - _elem1548 = iprot.readString(); - struct.success.add(_elem1548); + _elem1628 = iprot.readString(); + struct.success.add(_elem1628); } } struct.setSuccessIsSet(true); @@ -139998,15 +141210,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 _map1550 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map1550.size); - String _key1551; - String _val1552; - for (int _i1553 = 0; _i1553 < _map1550.size; ++_i1553) + 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) { - _key1551 = iprot.readString(); - _val1552 = iprot.readString(); - struct.success.put(_key1551, _val1552); + _key1631 = iprot.readString(); + _val1632 = iprot.readString(); + struct.success.put(_key1631, _val1632); } iprot.readMapEnd(); } @@ -140041,10 +141253,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 _iter1554 : struct.success.entrySet()) + for (Map.Entry _iter1634 : struct.success.entrySet()) { - oprot.writeString(_iter1554.getKey()); - oprot.writeString(_iter1554.getValue()); + oprot.writeString(_iter1634.getKey()); + oprot.writeString(_iter1634.getValue()); } oprot.writeMapEnd(); } @@ -140083,10 +141295,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 _iter1555 : struct.success.entrySet()) + for (Map.Entry _iter1635 : struct.success.entrySet()) { - oprot.writeString(_iter1555.getKey()); - oprot.writeString(_iter1555.getValue()); + oprot.writeString(_iter1635.getKey()); + oprot.writeString(_iter1635.getValue()); } } } @@ -140101,15 +141313,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 _map1556 = 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*_map1556.size); - String _key1557; - String _val1558; - for (int _i1559 = 0; _i1559 < _map1556.size; ++_i1559) + 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) { - _key1557 = iprot.readString(); - _val1558 = iprot.readString(); - struct.success.put(_key1557, _val1558); + _key1637 = iprot.readString(); + _val1638 = iprot.readString(); + struct.success.put(_key1637, _val1638); } } struct.setSuccessIsSet(true); @@ -140704,15 +141916,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 _map1560 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map1560.size); - String _key1561; - String _val1562; - for (int _i1563 = 0; _i1563 < _map1560.size; ++_i1563) + 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) { - _key1561 = iprot.readString(); - _val1562 = iprot.readString(); - struct.part_vals.put(_key1561, _val1562); + _key1641 = iprot.readString(); + _val1642 = iprot.readString(); + struct.part_vals.put(_key1641, _val1642); } iprot.readMapEnd(); } @@ -140756,10 +141968,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 _iter1564 : struct.part_vals.entrySet()) + for (Map.Entry _iter1644 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1564.getKey()); - oprot.writeString(_iter1564.getValue()); + oprot.writeString(_iter1644.getKey()); + oprot.writeString(_iter1644.getValue()); } oprot.writeMapEnd(); } @@ -140810,10 +142022,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, markPartitionForEve if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter1565 : struct.part_vals.entrySet()) + for (Map.Entry _iter1645 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1565.getKey()); - oprot.writeString(_iter1565.getValue()); + oprot.writeString(_iter1645.getKey()); + oprot.writeString(_iter1645.getValue()); } } } @@ -140836,15 +142048,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, markPartitionForEven } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map1566 = 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*_map1566.size); - String _key1567; - String _val1568; - for (int _i1569 = 0; _i1569 < _map1566.size; ++_i1569) + 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) { - _key1567 = iprot.readString(); - _val1568 = iprot.readString(); - struct.part_vals.put(_key1567, _val1568); + _key1647 = iprot.readString(); + _val1648 = iprot.readString(); + struct.part_vals.put(_key1647, _val1648); } } struct.setPart_valsIsSet(true); @@ -142328,15 +143540,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 _map1570 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map1570.size); - String _key1571; - String _val1572; - for (int _i1573 = 0; _i1573 < _map1570.size; ++_i1573) + 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) { - _key1571 = iprot.readString(); - _val1572 = iprot.readString(); - struct.part_vals.put(_key1571, _val1572); + _key1651 = iprot.readString(); + _val1652 = iprot.readString(); + struct.part_vals.put(_key1651, _val1652); } iprot.readMapEnd(); } @@ -142380,10 +143592,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 _iter1574 : struct.part_vals.entrySet()) + for (Map.Entry _iter1654 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1574.getKey()); - oprot.writeString(_iter1574.getValue()); + oprot.writeString(_iter1654.getKey()); + oprot.writeString(_iter1654.getValue()); } oprot.writeMapEnd(); } @@ -142434,10 +143646,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFo if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter1575 : struct.part_vals.entrySet()) + for (Map.Entry _iter1655 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1575.getKey()); - oprot.writeString(_iter1575.getValue()); + oprot.writeString(_iter1655.getKey()); + oprot.writeString(_iter1655.getValue()); } } } @@ -142460,15 +143672,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFor } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map1576 = 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*_map1576.size); - String _key1577; - String _val1578; - for (int _i1579 = 0; _i1579 < _map1576.size; ++_i1579) + 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) { - _key1577 = iprot.readString(); - _val1578 = iprot.readString(); - struct.part_vals.put(_key1577, _val1578); + _key1657 = iprot.readString(); + _val1658 = iprot.readString(); + struct.part_vals.put(_key1657, _val1658); } } struct.setPart_valsIsSet(true); @@ -167124,13 +168336,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 _list1580 = iprot.readListBegin(); - struct.success = new ArrayList(_list1580.size); - String _elem1581; - for (int _i1582 = 0; _i1582 < _list1580.size; ++_i1582) + org.apache.thrift.protocol.TList _list1660 = iprot.readListBegin(); + struct.success = new ArrayList(_list1660.size); + String _elem1661; + for (int _i1662 = 0; _i1662 < _list1660.size; ++_i1662) { - _elem1581 = iprot.readString(); - struct.success.add(_elem1581); + _elem1661 = iprot.readString(); + struct.success.add(_elem1661); } iprot.readListEnd(); } @@ -167165,9 +168377,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 _iter1583 : struct.success) + for (String _iter1663 : struct.success) { - oprot.writeString(_iter1583); + oprot.writeString(_iter1663); } oprot.writeListEnd(); } @@ -167206,9 +168418,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_functions_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1584 : struct.success) + for (String _iter1664 : struct.success) { - oprot.writeString(_iter1584); + oprot.writeString(_iter1664); } } } @@ -167223,13 +168435,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 _list1585 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1585.size); - String _elem1586; - for (int _i1587 = 0; _i1587 < _list1585.size; ++_i1587) + 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) { - _elem1586 = iprot.readString(); - struct.success.add(_elem1586); + _elem1666 = iprot.readString(); + struct.success.add(_elem1666); } } struct.setSuccessIsSet(true); @@ -171284,13 +172496,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 _list1588 = iprot.readListBegin(); - struct.success = new ArrayList(_list1588.size); - String _elem1589; - for (int _i1590 = 0; _i1590 < _list1588.size; ++_i1590) + org.apache.thrift.protocol.TList _list1668 = iprot.readListBegin(); + struct.success = new ArrayList(_list1668.size); + String _elem1669; + for (int _i1670 = 0; _i1670 < _list1668.size; ++_i1670) { - _elem1589 = iprot.readString(); - struct.success.add(_elem1589); + _elem1669 = iprot.readString(); + struct.success.add(_elem1669); } iprot.readListEnd(); } @@ -171325,9 +172537,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 _iter1591 : struct.success) + for (String _iter1671 : struct.success) { - oprot.writeString(_iter1591); + oprot.writeString(_iter1671); } oprot.writeListEnd(); } @@ -171366,9 +172578,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_role_names_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1592 : struct.success) + for (String _iter1672 : struct.success) { - oprot.writeString(_iter1592); + oprot.writeString(_iter1672); } } } @@ -171383,13 +172595,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 _list1593 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1593.size); - String _elem1594; - for (int _i1595 = 0; _i1595 < _list1593.size; ++_i1595) + 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) { - _elem1594 = iprot.readString(); - struct.success.add(_elem1594); + _elem1674 = iprot.readString(); + struct.success.add(_elem1674); } } struct.setSuccessIsSet(true); @@ -174680,14 +175892,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 _list1596 = iprot.readListBegin(); - struct.success = new ArrayList(_list1596.size); - Role _elem1597; - for (int _i1598 = 0; _i1598 < _list1596.size; ++_i1598) + org.apache.thrift.protocol.TList _list1676 = iprot.readListBegin(); + struct.success = new ArrayList(_list1676.size); + Role _elem1677; + for (int _i1678 = 0; _i1678 < _list1676.size; ++_i1678) { - _elem1597 = new Role(); - _elem1597.read(iprot); - struct.success.add(_elem1597); + _elem1677 = new Role(); + _elem1677.read(iprot); + struct.success.add(_elem1677); } iprot.readListEnd(); } @@ -174722,9 +175934,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 _iter1599 : struct.success) + for (Role _iter1679 : struct.success) { - _iter1599.write(oprot); + _iter1679.write(oprot); } oprot.writeListEnd(); } @@ -174763,9 +175975,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_roles_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Role _iter1600 : struct.success) + for (Role _iter1680 : struct.success) { - _iter1600.write(oprot); + _iter1680.write(oprot); } } } @@ -174780,14 +175992,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 _list1601 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1601.size); - Role _elem1602; - for (int _i1603 = 0; _i1603 < _list1601.size; ++_i1603) + 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) { - _elem1602 = new Role(); - _elem1602.read(iprot); - struct.success.add(_elem1602); + _elem1682 = new Role(); + _elem1682.read(iprot); + struct.success.add(_elem1682); } } struct.setSuccessIsSet(true); @@ -177792,13 +179004,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 _list1604 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1604.size); - String _elem1605; - for (int _i1606 = 0; _i1606 < _list1604.size; ++_i1606) + 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) { - _elem1605 = iprot.readString(); - struct.group_names.add(_elem1605); + _elem1685 = iprot.readString(); + struct.group_names.add(_elem1685); } iprot.readListEnd(); } @@ -177834,9 +179046,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 _iter1607 : struct.group_names) + for (String _iter1687 : struct.group_names) { - oprot.writeString(_iter1607); + oprot.writeString(_iter1687); } oprot.writeListEnd(); } @@ -177879,9 +179091,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 _iter1608 : struct.group_names) + for (String _iter1688 : struct.group_names) { - oprot.writeString(_iter1608); + oprot.writeString(_iter1688); } } } @@ -177902,13 +179114,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_privilege_set_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1609 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1609.size); - String _elem1610; - for (int _i1611 = 0; _i1611 < _list1609.size; ++_i1611) + 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) { - _elem1610 = iprot.readString(); - struct.group_names.add(_elem1610); + _elem1690 = iprot.readString(); + struct.group_names.add(_elem1690); } } struct.setGroup_namesIsSet(true); @@ -179366,14 +180578,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 _list1612 = iprot.readListBegin(); - struct.success = new ArrayList(_list1612.size); - HiveObjectPrivilege _elem1613; - for (int _i1614 = 0; _i1614 < _list1612.size; ++_i1614) + org.apache.thrift.protocol.TList _list1692 = iprot.readListBegin(); + struct.success = new ArrayList(_list1692.size); + HiveObjectPrivilege _elem1693; + for (int _i1694 = 0; _i1694 < _list1692.size; ++_i1694) { - _elem1613 = new HiveObjectPrivilege(); - _elem1613.read(iprot); - struct.success.add(_elem1613); + _elem1693 = new HiveObjectPrivilege(); + _elem1693.read(iprot); + struct.success.add(_elem1693); } iprot.readListEnd(); } @@ -179408,9 +180620,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 _iter1615 : struct.success) + for (HiveObjectPrivilege _iter1695 : struct.success) { - _iter1615.write(oprot); + _iter1695.write(oprot); } oprot.writeListEnd(); } @@ -179449,9 +180661,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_privileges_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (HiveObjectPrivilege _iter1616 : struct.success) + for (HiveObjectPrivilege _iter1696 : struct.success) { - _iter1616.write(oprot); + _iter1696.write(oprot); } } } @@ -179466,14 +180678,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 _list1617 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1617.size); - HiveObjectPrivilege _elem1618; - for (int _i1619 = 0; _i1619 < _list1617.size; ++_i1619) + 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) { - _elem1618 = new HiveObjectPrivilege(); - _elem1618.read(iprot); - struct.success.add(_elem1618); + _elem1698 = new HiveObjectPrivilege(); + _elem1698.read(iprot); + struct.success.add(_elem1698); } } struct.setSuccessIsSet(true); @@ -183420,13 +184632,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 _list1620 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1620.size); - String _elem1621; - for (int _i1622 = 0; _i1622 < _list1620.size; ++_i1622) + 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) { - _elem1621 = iprot.readString(); - struct.group_names.add(_elem1621); + _elem1701 = iprot.readString(); + struct.group_names.add(_elem1701); } iprot.readListEnd(); } @@ -183457,9 +184669,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 _iter1623 : struct.group_names) + for (String _iter1703 : struct.group_names) { - oprot.writeString(_iter1623); + oprot.writeString(_iter1703); } oprot.writeListEnd(); } @@ -183496,9 +184708,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 _iter1624 : struct.group_names) + for (String _iter1704 : struct.group_names) { - oprot.writeString(_iter1624); + oprot.writeString(_iter1704); } } } @@ -183514,13 +184726,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_ugi_args struct) } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list1625 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1625.size); - String _elem1626; - for (int _i1627 = 0; _i1627 < _list1625.size; ++_i1627) + 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) { - _elem1626 = iprot.readString(); - struct.group_names.add(_elem1626); + _elem1706 = iprot.readString(); + struct.group_names.add(_elem1706); } } struct.setGroup_namesIsSet(true); @@ -183923,13 +185135,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 _list1628 = iprot.readListBegin(); - struct.success = new ArrayList(_list1628.size); - String _elem1629; - for (int _i1630 = 0; _i1630 < _list1628.size; ++_i1630) + org.apache.thrift.protocol.TList _list1708 = iprot.readListBegin(); + struct.success = new ArrayList(_list1708.size); + String _elem1709; + for (int _i1710 = 0; _i1710 < _list1708.size; ++_i1710) { - _elem1629 = iprot.readString(); - struct.success.add(_elem1629); + _elem1709 = iprot.readString(); + struct.success.add(_elem1709); } iprot.readListEnd(); } @@ -183964,9 +185176,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 _iter1631 : struct.success) + for (String _iter1711 : struct.success) { - oprot.writeString(_iter1631); + oprot.writeString(_iter1711); } oprot.writeListEnd(); } @@ -184005,9 +185217,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, set_ugi_result stru if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1632 : struct.success) + for (String _iter1712 : struct.success) { - oprot.writeString(_iter1632); + oprot.writeString(_iter1712); } } } @@ -184022,13 +185234,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 _list1633 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1633.size); - String _elem1634; - for (int _i1635 = 0; _i1635 < _list1633.size; ++_i1635) + 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) { - _elem1634 = iprot.readString(); - struct.success.add(_elem1634); + _elem1714 = iprot.readString(); + struct.success.add(_elem1714); } } struct.setSuccessIsSet(true); @@ -189319,13 +190531,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 _list1636 = iprot.readListBegin(); - struct.success = new ArrayList(_list1636.size); - String _elem1637; - for (int _i1638 = 0; _i1638 < _list1636.size; ++_i1638) + org.apache.thrift.protocol.TList _list1716 = iprot.readListBegin(); + struct.success = new ArrayList(_list1716.size); + String _elem1717; + for (int _i1718 = 0; _i1718 < _list1716.size; ++_i1718) { - _elem1637 = iprot.readString(); - struct.success.add(_elem1637); + _elem1717 = iprot.readString(); + struct.success.add(_elem1717); } iprot.readListEnd(); } @@ -189351,9 +190563,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 _iter1639 : struct.success) + for (String _iter1719 : struct.success) { - oprot.writeString(_iter1639); + oprot.writeString(_iter1719); } oprot.writeListEnd(); } @@ -189384,9 +190596,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_token_ident if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1640 : struct.success) + for (String _iter1720 : struct.success) { - oprot.writeString(_iter1640); + oprot.writeString(_iter1720); } } } @@ -189398,13 +190610,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 _list1641 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1641.size); - String _elem1642; - for (int _i1643 = 0; _i1643 < _list1641.size; ++_i1643) + 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) { - _elem1642 = iprot.readString(); - struct.success.add(_elem1642); + _elem1722 = iprot.readString(); + struct.success.add(_elem1722); } } struct.setSuccessIsSet(true); @@ -192434,13 +193646,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 _list1644 = iprot.readListBegin(); - struct.success = new ArrayList(_list1644.size); - String _elem1645; - for (int _i1646 = 0; _i1646 < _list1644.size; ++_i1646) + org.apache.thrift.protocol.TList _list1724 = iprot.readListBegin(); + struct.success = new ArrayList(_list1724.size); + String _elem1725; + for (int _i1726 = 0; _i1726 < _list1724.size; ++_i1726) { - _elem1645 = iprot.readString(); - struct.success.add(_elem1645); + _elem1725 = iprot.readString(); + struct.success.add(_elem1725); } iprot.readListEnd(); } @@ -192466,9 +193678,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 _iter1647 : struct.success) + for (String _iter1727 : struct.success) { - oprot.writeString(_iter1647); + oprot.writeString(_iter1727); } oprot.writeListEnd(); } @@ -192499,9 +193711,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_master_keys_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1648 : struct.success) + for (String _iter1728 : struct.success) { - oprot.writeString(_iter1648); + oprot.writeString(_iter1728); } } } @@ -192513,13 +193725,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 _list1649 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1649.size); - String _elem1650; - for (int _i1651 = 0; _i1651 < _list1649.size; ++_i1651) + 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) { - _elem1650 = iprot.readString(); - struct.success.add(_elem1650); + _elem1730 = iprot.readString(); + struct.success.add(_elem1730); } } struct.setSuccessIsSet(true); @@ -209640,13 +210852,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 _list1652 = iprot.readListBegin(); - struct.success = new ArrayList(_list1652.size); - String _elem1653; - for (int _i1654 = 0; _i1654 < _list1652.size; ++_i1654) + org.apache.thrift.protocol.TList _list1732 = iprot.readListBegin(); + struct.success = new ArrayList(_list1732.size); + String _elem1733; + for (int _i1734 = 0; _i1734 < _list1732.size; ++_i1734) { - _elem1653 = iprot.readString(); - struct.success.add(_elem1653); + _elem1733 = iprot.readString(); + struct.success.add(_elem1733); } iprot.readListEnd(); } @@ -209672,9 +210884,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 _iter1655 : struct.success) + for (String _iter1735 : struct.success) { - oprot.writeString(_iter1655); + oprot.writeString(_iter1735); } oprot.writeListEnd(); } @@ -209705,9 +210917,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, find_columns_with_s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1656 : struct.success) + for (String _iter1736 : struct.success) { - oprot.writeString(_iter1656); + oprot.writeString(_iter1736); } } } @@ -209719,13 +210931,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 _list1657 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1657.size); - String _elem1658; - for (int _i1659 = 0; _i1659 < _list1657.size; ++_i1659) + 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) { - _elem1658 = iprot.readString(); - struct.success.add(_elem1658); + _elem1738 = iprot.readString(); + struct.success.add(_elem1738); } } struct.setSuccessIsSet(true); @@ -246611,14 +247823,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 _list1660 = iprot.readListBegin(); - struct.success = new ArrayList(_list1660.size); - SchemaVersion _elem1661; - for (int _i1662 = 0; _i1662 < _list1660.size; ++_i1662) + org.apache.thrift.protocol.TList _list1740 = iprot.readListBegin(); + struct.success = new ArrayList(_list1740.size); + SchemaVersion _elem1741; + for (int _i1742 = 0; _i1742 < _list1740.size; ++_i1742) { - _elem1661 = new SchemaVersion(); - _elem1661.read(iprot); - struct.success.add(_elem1661); + _elem1741 = new SchemaVersion(); + _elem1741.read(iprot); + struct.success.add(_elem1741); } iprot.readListEnd(); } @@ -246662,9 +247874,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 _iter1663 : struct.success) + for (SchemaVersion _iter1743 : struct.success) { - _iter1663.write(oprot); + _iter1743.write(oprot); } oprot.writeListEnd(); } @@ -246711,9 +247923,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_all_vers if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (SchemaVersion _iter1664 : struct.success) + for (SchemaVersion _iter1744 : struct.success) { - _iter1664.write(oprot); + _iter1744.write(oprot); } } } @@ -246731,14 +247943,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 _list1665 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1665.size); - SchemaVersion _elem1666; - for (int _i1667 = 0; _i1667 < _list1665.size; ++_i1667) + 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) { - _elem1666 = new SchemaVersion(); - _elem1666.read(iprot); - struct.success.add(_elem1666); + _elem1746 = new SchemaVersion(); + _elem1746.read(iprot); + struct.success.add(_elem1746); } } struct.setSuccessIsSet(true); @@ -255281,14 +256493,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 _list1668 = iprot.readListBegin(); - struct.success = new ArrayList(_list1668.size); - RuntimeStat _elem1669; - for (int _i1670 = 0; _i1670 < _list1668.size; ++_i1670) + org.apache.thrift.protocol.TList _list1748 = iprot.readListBegin(); + struct.success = new ArrayList(_list1748.size); + RuntimeStat _elem1749; + for (int _i1750 = 0; _i1750 < _list1748.size; ++_i1750) { - _elem1669 = new RuntimeStat(); - _elem1669.read(iprot); - struct.success.add(_elem1669); + _elem1749 = new RuntimeStat(); + _elem1749.read(iprot); + struct.success.add(_elem1749); } iprot.readListEnd(); } @@ -255323,9 +256535,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 _iter1671 : struct.success) + for (RuntimeStat _iter1751 : struct.success) { - _iter1671.write(oprot); + _iter1751.write(oprot); } oprot.writeListEnd(); } @@ -255364,9 +256576,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_runtime_stats_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (RuntimeStat _iter1672 : struct.success) + for (RuntimeStat _iter1752 : struct.success) { - _iter1672.write(oprot); + _iter1752.write(oprot); } } } @@ -255381,14 +256593,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 _list1673 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1673.size); - RuntimeStat _elem1674; - for (int _i1675 = 0; _i1675 < _list1673.size; ++_i1675) + 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) { - _elem1674 = new RuntimeStat(); - _elem1674.read(iprot); - struct.success.add(_elem1674); + _elem1754 = new RuntimeStat(); + _elem1754.read(iprot); + struct.success.add(_elem1754); } } struct.setSuccessIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UniqueConstraintsResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UniqueConstraintsResponse.java index 21643d978c..da33ccc1ad 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UniqueConstraintsResponse.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UniqueConstraintsResponse.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, UniqueConstraintsRe case 1: // UNIQUE_CONSTRAINTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list352 = iprot.readListBegin(); - struct.uniqueConstraints = new ArrayList(_list352.size); - SQLUniqueConstraint _elem353; - for (int _i354 = 0; _i354 < _list352.size; ++_i354) + org.apache.thrift.protocol.TList _list368 = iprot.readListBegin(); + struct.uniqueConstraints = new ArrayList(_list368.size); + SQLUniqueConstraint _elem369; + for (int _i370 = 0; _i370 < _list368.size; ++_i370) { - _elem353 = new SQLUniqueConstraint(); - _elem353.read(iprot); - struct.uniqueConstraints.add(_elem353); + _elem369 = new SQLUniqueConstraint(); + _elem369.read(iprot); + struct.uniqueConstraints.add(_elem369); } iprot.readListEnd(); } @@ -387,9 +387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, UniqueConstraintsR 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 _iter355 : struct.uniqueConstraints) + for (SQLUniqueConstraint _iter371 : struct.uniqueConstraints) { - _iter355.write(oprot); + _iter371.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, UniqueConstraintsRe TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.uniqueConstraints.size()); - for (SQLUniqueConstraint _iter356 : struct.uniqueConstraints) + for (SQLUniqueConstraint _iter372 : struct.uniqueConstraints) { - _iter356.write(oprot); + _iter372.write(oprot); } } } @@ -425,14 +425,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, UniqueConstraintsRe public void read(org.apache.thrift.protocol.TProtocol prot, UniqueConstraintsResponse struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list357 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.uniqueConstraints = new ArrayList(_list357.size); - SQLUniqueConstraint _elem358; - for (int _i359 = 0; _i359 < _list357.size; ++_i359) + org.apache.thrift.protocol.TList _list373 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.uniqueConstraints = new ArrayList(_list373.size); + SQLUniqueConstraint _elem374; + for (int _i375 = 0; _i375 < _list373.size; ++_i375) { - _elem358 = new SQLUniqueConstraint(); - _elem358.read(iprot); - struct.uniqueConstraints.add(_elem358); + _elem374 = new SQLUniqueConstraint(); + _elem374.read(iprot); + struct.uniqueConstraints.add(_elem374); } } struct.setUniqueConstraintsIsSet(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 74828dfa8c..080111d85b 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 _list944 = iprot.readListBegin(); - struct.pools = new ArrayList(_list944.size); - WMPool _elem945; - for (int _i946 = 0; _i946 < _list944.size; ++_i946) + org.apache.thrift.protocol.TList _list968 = iprot.readListBegin(); + struct.pools = new ArrayList(_list968.size); + WMPool _elem969; + for (int _i970 = 0; _i970 < _list968.size; ++_i970) { - _elem945 = new WMPool(); - _elem945.read(iprot); - struct.pools.add(_elem945); + _elem969 = new WMPool(); + _elem969.read(iprot); + struct.pools.add(_elem969); } 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 _list947 = iprot.readListBegin(); - struct.mappings = new ArrayList(_list947.size); - WMMapping _elem948; - for (int _i949 = 0; _i949 < _list947.size; ++_i949) + org.apache.thrift.protocol.TList _list971 = iprot.readListBegin(); + struct.mappings = new ArrayList(_list971.size); + WMMapping _elem972; + for (int _i973 = 0; _i973 < _list971.size; ++_i973) { - _elem948 = new WMMapping(); - _elem948.read(iprot); - struct.mappings.add(_elem948); + _elem972 = new WMMapping(); + _elem972.read(iprot); + struct.mappings.add(_elem972); } 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 _list950 = iprot.readListBegin(); - struct.triggers = new ArrayList(_list950.size); - WMTrigger _elem951; - for (int _i952 = 0; _i952 < _list950.size; ++_i952) + org.apache.thrift.protocol.TList _list974 = iprot.readListBegin(); + struct.triggers = new ArrayList(_list974.size); + WMTrigger _elem975; + for (int _i976 = 0; _i976 < _list974.size; ++_i976) { - _elem951 = new WMTrigger(); - _elem951.read(iprot); - struct.triggers.add(_elem951); + _elem975 = new WMTrigger(); + _elem975.read(iprot); + struct.triggers.add(_elem975); } 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 _list953 = iprot.readListBegin(); - struct.poolTriggers = new ArrayList(_list953.size); - WMPoolTrigger _elem954; - for (int _i955 = 0; _i955 < _list953.size; ++_i955) + org.apache.thrift.protocol.TList _list977 = iprot.readListBegin(); + struct.poolTriggers = new ArrayList(_list977.size); + WMPoolTrigger _elem978; + for (int _i979 = 0; _i979 < _list977.size; ++_i979) { - _elem954 = new WMPoolTrigger(); - _elem954.read(iprot); - struct.poolTriggers.add(_elem954); + _elem978 = new WMPoolTrigger(); + _elem978.read(iprot); + struct.poolTriggers.add(_elem978); } 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 _iter956 : struct.pools) + for (WMPool _iter980 : struct.pools) { - _iter956.write(oprot); + _iter980.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 _iter957 : struct.mappings) + for (WMMapping _iter981 : struct.mappings) { - _iter957.write(oprot); + _iter981.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 _iter958 : struct.triggers) + for (WMTrigger _iter982 : struct.triggers) { - _iter958.write(oprot); + _iter982.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 _iter959 : struct.poolTriggers) + for (WMPoolTrigger _iter983 : struct.poolTriggers) { - _iter959.write(oprot); + _iter983.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 _iter960 : struct.pools) + for (WMPool _iter984 : struct.pools) { - _iter960.write(oprot); + _iter984.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 _iter961 : struct.mappings) + for (WMMapping _iter985 : struct.mappings) { - _iter961.write(oprot); + _iter985.write(oprot); } } } if (struct.isSetTriggers()) { { oprot.writeI32(struct.triggers.size()); - for (WMTrigger _iter962 : struct.triggers) + for (WMTrigger _iter986 : struct.triggers) { - _iter962.write(oprot); + _iter986.write(oprot); } } } if (struct.isSetPoolTriggers()) { { oprot.writeI32(struct.poolTriggers.size()); - for (WMPoolTrigger _iter963 : struct.poolTriggers) + for (WMPoolTrigger _iter987 : struct.poolTriggers) { - _iter963.write(oprot); + _iter987.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 _list964 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.pools = new ArrayList(_list964.size); - WMPool _elem965; - for (int _i966 = 0; _i966 < _list964.size; ++_i966) + 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) { - _elem965 = new WMPool(); - _elem965.read(iprot); - struct.pools.add(_elem965); + _elem989 = new WMPool(); + _elem989.read(iprot); + struct.pools.add(_elem989); } } struct.setPoolsIsSet(true); BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list967 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.mappings = new ArrayList(_list967.size); - WMMapping _elem968; - for (int _i969 = 0; _i969 < _list967.size; ++_i969) + 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) { - _elem968 = new WMMapping(); - _elem968.read(iprot); - struct.mappings.add(_elem968); + _elem992 = new WMMapping(); + _elem992.read(iprot); + struct.mappings.add(_elem992); } } struct.setMappingsIsSet(true); } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list970 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.triggers = new ArrayList(_list970.size); - WMTrigger _elem971; - for (int _i972 = 0; _i972 < _list970.size; ++_i972) + 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) { - _elem971 = new WMTrigger(); - _elem971.read(iprot); - struct.triggers.add(_elem971); + _elem995 = new WMTrigger(); + _elem995.read(iprot); + struct.triggers.add(_elem995); } } struct.setTriggersIsSet(true); } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list973 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.poolTriggers = new ArrayList(_list973.size); - WMPoolTrigger _elem974; - for (int _i975 = 0; _i975 < _list973.size; ++_i975) + 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) { - _elem974 = new WMPoolTrigger(); - _elem974.read(iprot); - struct.poolTriggers.add(_elem974); + _elem998 = new WMPoolTrigger(); + _elem998.read(iprot); + struct.poolTriggers.add(_elem998); } } 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 fe8aacb553..d0174005ca 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 _list976 = iprot.readListBegin(); - struct.resourcePlans = new ArrayList(_list976.size); - WMResourcePlan _elem977; - for (int _i978 = 0; _i978 < _list976.size; ++_i978) + org.apache.thrift.protocol.TList _list1000 = iprot.readListBegin(); + struct.resourcePlans = new ArrayList(_list1000.size); + WMResourcePlan _elem1001; + for (int _i1002 = 0; _i1002 < _list1000.size; ++_i1002) { - _elem977 = new WMResourcePlan(); - _elem977.read(iprot); - struct.resourcePlans.add(_elem977); + _elem1001 = new WMResourcePlan(); + _elem1001.read(iprot); + struct.resourcePlans.add(_elem1001); } 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 _iter979 : struct.resourcePlans) + for (WMResourcePlan _iter1003 : struct.resourcePlans) { - _iter979.write(oprot); + _iter1003.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 _iter980 : struct.resourcePlans) + for (WMResourcePlan _iter1004 : struct.resourcePlans) { - _iter980.write(oprot); + _iter1004.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 _list981 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.resourcePlans = new ArrayList(_list981.size); - WMResourcePlan _elem982; - for (int _i983 = 0; _i983 < _list981.size; ++_i983) + 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) { - _elem982 = new WMResourcePlan(); - _elem982.read(iprot); - struct.resourcePlans.add(_elem982); + _elem1006 = new WMResourcePlan(); + _elem1006.read(iprot); + struct.resourcePlans.add(_elem1006); } } 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 3b57fea105..e5425909d4 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 _list1000 = iprot.readListBegin(); - struct.triggers = new ArrayList(_list1000.size); - WMTrigger _elem1001; - for (int _i1002 = 0; _i1002 < _list1000.size; ++_i1002) + org.apache.thrift.protocol.TList _list1024 = iprot.readListBegin(); + struct.triggers = new ArrayList(_list1024.size); + WMTrigger _elem1025; + for (int _i1026 = 0; _i1026 < _list1024.size; ++_i1026) { - _elem1001 = new WMTrigger(); - _elem1001.read(iprot); - struct.triggers.add(_elem1001); + _elem1025 = new WMTrigger(); + _elem1025.read(iprot); + struct.triggers.add(_elem1025); } 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 _iter1003 : struct.triggers) + for (WMTrigger _iter1027 : struct.triggers) { - _iter1003.write(oprot); + _iter1027.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 _iter1004 : struct.triggers) + for (WMTrigger _iter1028 : struct.triggers) { - _iter1004.write(oprot); + _iter1028.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 _list1005 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.triggers = new ArrayList(_list1005.size); - WMTrigger _elem1006; - for (int _i1007 = 0; _i1007 < _list1005.size; ++_i1007) + 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) { - _elem1006 = new WMTrigger(); - _elem1006.read(iprot); - struct.triggers.add(_elem1006); + _elem1030 = new WMTrigger(); + _elem1030.read(iprot); + struct.triggers.add(_elem1030); } } 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 791174491c..b12c2284a2 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 _list984 = iprot.readListBegin(); - struct.errors = new ArrayList(_list984.size); - String _elem985; - for (int _i986 = 0; _i986 < _list984.size; ++_i986) + org.apache.thrift.protocol.TList _list1008 = iprot.readListBegin(); + struct.errors = new ArrayList(_list1008.size); + String _elem1009; + for (int _i1010 = 0; _i1010 < _list1008.size; ++_i1010) { - _elem985 = iprot.readString(); - struct.errors.add(_elem985); + _elem1009 = iprot.readString(); + struct.errors.add(_elem1009); } 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 _list987 = iprot.readListBegin(); - struct.warnings = new ArrayList(_list987.size); - String _elem988; - for (int _i989 = 0; _i989 < _list987.size; ++_i989) + org.apache.thrift.protocol.TList _list1011 = iprot.readListBegin(); + struct.warnings = new ArrayList(_list1011.size); + String _elem1012; + for (int _i1013 = 0; _i1013 < _list1011.size; ++_i1013) { - _elem988 = iprot.readString(); - struct.warnings.add(_elem988); + _elem1012 = iprot.readString(); + struct.warnings.add(_elem1012); } 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 _iter990 : struct.errors) + for (String _iter1014 : struct.errors) { - oprot.writeString(_iter990); + oprot.writeString(_iter1014); } 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 _iter991 : struct.warnings) + for (String _iter1015 : struct.warnings) { - oprot.writeString(_iter991); + oprot.writeString(_iter1015); } 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 _iter992 : struct.errors) + for (String _iter1016 : struct.errors) { - oprot.writeString(_iter992); + oprot.writeString(_iter1016); } } } if (struct.isSetWarnings()) { { oprot.writeI32(struct.warnings.size()); - for (String _iter993 : struct.warnings) + for (String _iter1017 : struct.warnings) { - oprot.writeString(_iter993); + oprot.writeString(_iter1017); } } } @@ -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 _list994 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.errors = new ArrayList(_list994.size); - String _elem995; - for (int _i996 = 0; _i996 < _list994.size; ++_i996) + 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) { - _elem995 = iprot.readString(); - struct.errors.add(_elem995); + _elem1019 = iprot.readString(); + struct.errors.add(_elem1019); } } struct.setErrorsIsSet(true); } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list997 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.warnings = new ArrayList(_list997.size); - String _elem998; - for (int _i999 = 0; _i999 < _list997.size; ++_i999) + 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) { - _elem998 = iprot.readString(); - struct.warnings.add(_elem998); + _elem1022 = iprot.readString(); + struct.warnings.add(_elem1022); } } struct.setWarningsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WriteNotificationLogRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WriteNotificationLogRequest.java index 46b92b87b9..726eed490c 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WriteNotificationLogRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WriteNotificationLogRequest.java @@ -813,13 +813,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, WriteNotificationLo case 6: // PARTITION_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list812 = iprot.readListBegin(); - struct.partitionVals = new ArrayList(_list812.size); - String _elem813; - for (int _i814 = 0; _i814 < _list812.size; ++_i814) + org.apache.thrift.protocol.TList _list828 = iprot.readListBegin(); + struct.partitionVals = new ArrayList(_list828.size); + String _elem829; + for (int _i830 = 0; _i830 < _list828.size; ++_i830) { - _elem813 = iprot.readString(); - struct.partitionVals.add(_elem813); + _elem829 = iprot.readString(); + struct.partitionVals.add(_elem829); } iprot.readListEnd(); } @@ -867,9 +867,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, WriteNotificationL oprot.writeFieldBegin(PARTITION_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.partitionVals.size())); - for (String _iter815 : struct.partitionVals) + for (String _iter831 : struct.partitionVals) { - oprot.writeString(_iter815); + oprot.writeString(_iter831); } oprot.writeListEnd(); } @@ -906,9 +906,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, WriteNotificationLo if (struct.isSetPartitionVals()) { { oprot.writeI32(struct.partitionVals.size()); - for (String _iter816 : struct.partitionVals) + for (String _iter832 : struct.partitionVals) { - oprot.writeString(_iter816); + oprot.writeString(_iter832); } } } @@ -931,13 +931,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, WriteNotificationLog BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list817 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partitionVals = new ArrayList(_list817.size); - String _elem818; - for (int _i819 = 0; _i819 < _list817.size; ++_i819) + org.apache.thrift.protocol.TList _list833 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionVals = new ArrayList(_list833.size); + String _elem834; + for (int _i835 = 0; _i835 < _list833.size; ++_i835) { - _elem818 = iprot.readString(); - struct.partitionVals.add(_elem818); + _elem834 = iprot.readString(); + struct.partitionVals.add(_elem834); } } struct.setPartitionValsIsSet(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 e826dedc95..da3b409b6c 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 @@ -203,6 +203,14 @@ interface ThriftHiveMetastoreIf extends \FacebookServiceIf { * @throws \metastore\NoSuchObjectException */ public function create_table_with_constraints(\metastore\Table $tbl, array $primaryKeys, array $foreignKeys, array $uniqueConstraints, array $notNullConstraints, array $defaultConstraints, array $checkConstraints); + /** + * @param \metastore\CreateTableRequest $request + * @throws \metastore\AlreadyExistsException + * @throws \metastore\InvalidObjectException + * @throws \metastore\MetaException + * @throws \metastore\NoSuchObjectException + */ + public function create_table_req(\metastore\CreateTableRequest $request); /** * @param \metastore\DropConstraintRequest $req * @throws \metastore\NoSuchObjectException @@ -3058,6 +3066,66 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas return; } + public function create_table_req(\metastore\CreateTableRequest $request) + { + $this->send_create_table_req($request); + $this->recv_create_table_req(); + } + + public function send_create_table_req(\metastore\CreateTableRequest $request) + { + $args = new \metastore\ThriftHiveMetastore_create_table_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_, 'create_table_req', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('create_table_req', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_create_table_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_create_table_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_create_table_req_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + if ($result->o1 !== null) { + throw $result->o1; + } + if ($result->o2 !== null) { + throw $result->o2; + } + if ($result->o3 !== null) { + throw $result->o3; + } + if ($result->o4 !== null) { + throw $result->o4; + } + return; + } + public function drop_constraint(\metastore\DropConstraintRequest $req) { $this->send_drop_constraint($req); @@ -16526,14 +16594,14 @@ class ThriftHiveMetastore_get_databases_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size952 = 0; - $_etype955 = 0; - $xfer += $input->readListBegin($_etype955, $_size952); - for ($_i956 = 0; $_i956 < $_size952; ++$_i956) + $_size1022 = 0; + $_etype1025 = 0; + $xfer += $input->readListBegin($_etype1025, $_size1022); + for ($_i1026 = 0; $_i1026 < $_size1022; ++$_i1026) { - $elem957 = null; - $xfer += $input->readString($elem957); - $this->success []= $elem957; + $elem1027 = null; + $xfer += $input->readString($elem1027); + $this->success []= $elem1027; } $xfer += $input->readListEnd(); } else { @@ -16569,9 +16637,9 @@ class ThriftHiveMetastore_get_databases_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter958) + foreach ($this->success as $iter1028) { - $xfer += $output->writeString($iter958); + $xfer += $output->writeString($iter1028); } } $output->writeListEnd(); @@ -16702,14 +16770,14 @@ class ThriftHiveMetastore_get_all_databases_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size959 = 0; - $_etype962 = 0; - $xfer += $input->readListBegin($_etype962, $_size959); - for ($_i963 = 0; $_i963 < $_size959; ++$_i963) + $_size1029 = 0; + $_etype1032 = 0; + $xfer += $input->readListBegin($_etype1032, $_size1029); + for ($_i1033 = 0; $_i1033 < $_size1029; ++$_i1033) { - $elem964 = null; - $xfer += $input->readString($elem964); - $this->success []= $elem964; + $elem1034 = null; + $xfer += $input->readString($elem1034); + $this->success []= $elem1034; } $xfer += $input->readListEnd(); } else { @@ -16745,9 +16813,9 @@ class ThriftHiveMetastore_get_all_databases_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter965) + foreach ($this->success as $iter1035) { - $xfer += $output->writeString($iter965); + $xfer += $output->writeString($iter1035); } } $output->writeListEnd(); @@ -17748,18 +17816,18 @@ class ThriftHiveMetastore_get_type_all_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size966 = 0; - $_ktype967 = 0; - $_vtype968 = 0; - $xfer += $input->readMapBegin($_ktype967, $_vtype968, $_size966); - for ($_i970 = 0; $_i970 < $_size966; ++$_i970) + $_size1036 = 0; + $_ktype1037 = 0; + $_vtype1038 = 0; + $xfer += $input->readMapBegin($_ktype1037, $_vtype1038, $_size1036); + for ($_i1040 = 0; $_i1040 < $_size1036; ++$_i1040) { - $key971 = ''; - $val972 = new \metastore\Type(); - $xfer += $input->readString($key971); - $val972 = new \metastore\Type(); - $xfer += $val972->read($input); - $this->success[$key971] = $val972; + $key1041 = ''; + $val1042 = new \metastore\Type(); + $xfer += $input->readString($key1041); + $val1042 = new \metastore\Type(); + $xfer += $val1042->read($input); + $this->success[$key1041] = $val1042; } $xfer += $input->readMapEnd(); } else { @@ -17795,10 +17863,10 @@ class ThriftHiveMetastore_get_type_all_result { { $output->writeMapBegin(TType::STRING, TType::STRUCT, count($this->success)); { - foreach ($this->success as $kiter973 => $viter974) + foreach ($this->success as $kiter1043 => $viter1044) { - $xfer += $output->writeString($kiter973); - $xfer += $viter974->write($output); + $xfer += $output->writeString($kiter1043); + $xfer += $viter1044->write($output); } } $output->writeMapEnd(); @@ -18002,15 +18070,15 @@ class ThriftHiveMetastore_get_fields_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size975 = 0; - $_etype978 = 0; - $xfer += $input->readListBegin($_etype978, $_size975); - for ($_i979 = 0; $_i979 < $_size975; ++$_i979) + $_size1045 = 0; + $_etype1048 = 0; + $xfer += $input->readListBegin($_etype1048, $_size1045); + for ($_i1049 = 0; $_i1049 < $_size1045; ++$_i1049) { - $elem980 = null; - $elem980 = new \metastore\FieldSchema(); - $xfer += $elem980->read($input); - $this->success []= $elem980; + $elem1050 = null; + $elem1050 = new \metastore\FieldSchema(); + $xfer += $elem1050->read($input); + $this->success []= $elem1050; } $xfer += $input->readListEnd(); } else { @@ -18062,9 +18130,9 @@ class ThriftHiveMetastore_get_fields_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter981) + foreach ($this->success as $iter1051) { - $xfer += $iter981->write($output); + $xfer += $iter1051->write($output); } } $output->writeListEnd(); @@ -18306,15 +18374,15 @@ class ThriftHiveMetastore_get_fields_with_environment_context_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size982 = 0; - $_etype985 = 0; - $xfer += $input->readListBegin($_etype985, $_size982); - for ($_i986 = 0; $_i986 < $_size982; ++$_i986) + $_size1052 = 0; + $_etype1055 = 0; + $xfer += $input->readListBegin($_etype1055, $_size1052); + for ($_i1056 = 0; $_i1056 < $_size1052; ++$_i1056) { - $elem987 = null; - $elem987 = new \metastore\FieldSchema(); - $xfer += $elem987->read($input); - $this->success []= $elem987; + $elem1057 = null; + $elem1057 = new \metastore\FieldSchema(); + $xfer += $elem1057->read($input); + $this->success []= $elem1057; } $xfer += $input->readListEnd(); } else { @@ -18366,9 +18434,9 @@ class ThriftHiveMetastore_get_fields_with_environment_context_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter988) + foreach ($this->success as $iter1058) { - $xfer += $iter988->write($output); + $xfer += $iter1058->write($output); } } $output->writeListEnd(); @@ -18582,15 +18650,15 @@ class ThriftHiveMetastore_get_schema_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size989 = 0; - $_etype992 = 0; - $xfer += $input->readListBegin($_etype992, $_size989); - for ($_i993 = 0; $_i993 < $_size989; ++$_i993) + $_size1059 = 0; + $_etype1062 = 0; + $xfer += $input->readListBegin($_etype1062, $_size1059); + for ($_i1063 = 0; $_i1063 < $_size1059; ++$_i1063) { - $elem994 = null; - $elem994 = new \metastore\FieldSchema(); - $xfer += $elem994->read($input); - $this->success []= $elem994; + $elem1064 = null; + $elem1064 = new \metastore\FieldSchema(); + $xfer += $elem1064->read($input); + $this->success []= $elem1064; } $xfer += $input->readListEnd(); } else { @@ -18642,9 +18710,9 @@ class ThriftHiveMetastore_get_schema_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter995) + foreach ($this->success as $iter1065) { - $xfer += $iter995->write($output); + $xfer += $iter1065->write($output); } } $output->writeListEnd(); @@ -18886,15 +18954,15 @@ class ThriftHiveMetastore_get_schema_with_environment_context_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size996 = 0; - $_etype999 = 0; - $xfer += $input->readListBegin($_etype999, $_size996); - for ($_i1000 = 0; $_i1000 < $_size996; ++$_i1000) + $_size1066 = 0; + $_etype1069 = 0; + $xfer += $input->readListBegin($_etype1069, $_size1066); + for ($_i1070 = 0; $_i1070 < $_size1066; ++$_i1070) { - $elem1001 = null; - $elem1001 = new \metastore\FieldSchema(); - $xfer += $elem1001->read($input); - $this->success []= $elem1001; + $elem1071 = null; + $elem1071 = new \metastore\FieldSchema(); + $xfer += $elem1071->read($input); + $this->success []= $elem1071; } $xfer += $input->readListEnd(); } else { @@ -18946,9 +19014,9 @@ class ThriftHiveMetastore_get_schema_with_environment_context_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1002) + foreach ($this->success as $iter1072) { - $xfer += $iter1002->write($output); + $xfer += $iter1072->write($output); } } $output->writeListEnd(); @@ -19620,15 +19688,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 2: if ($ftype == TType::LST) { $this->primaryKeys = array(); - $_size1003 = 0; - $_etype1006 = 0; - $xfer += $input->readListBegin($_etype1006, $_size1003); - for ($_i1007 = 0; $_i1007 < $_size1003; ++$_i1007) + $_size1073 = 0; + $_etype1076 = 0; + $xfer += $input->readListBegin($_etype1076, $_size1073); + for ($_i1077 = 0; $_i1077 < $_size1073; ++$_i1077) { - $elem1008 = null; - $elem1008 = new \metastore\SQLPrimaryKey(); - $xfer += $elem1008->read($input); - $this->primaryKeys []= $elem1008; + $elem1078 = null; + $elem1078 = new \metastore\SQLPrimaryKey(); + $xfer += $elem1078->read($input); + $this->primaryKeys []= $elem1078; } $xfer += $input->readListEnd(); } else { @@ -19638,15 +19706,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 3: if ($ftype == TType::LST) { $this->foreignKeys = array(); - $_size1009 = 0; - $_etype1012 = 0; - $xfer += $input->readListBegin($_etype1012, $_size1009); - for ($_i1013 = 0; $_i1013 < $_size1009; ++$_i1013) + $_size1079 = 0; + $_etype1082 = 0; + $xfer += $input->readListBegin($_etype1082, $_size1079); + for ($_i1083 = 0; $_i1083 < $_size1079; ++$_i1083) { - $elem1014 = null; - $elem1014 = new \metastore\SQLForeignKey(); - $xfer += $elem1014->read($input); - $this->foreignKeys []= $elem1014; + $elem1084 = null; + $elem1084 = new \metastore\SQLForeignKey(); + $xfer += $elem1084->read($input); + $this->foreignKeys []= $elem1084; } $xfer += $input->readListEnd(); } else { @@ -19656,15 +19724,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 4: if ($ftype == TType::LST) { $this->uniqueConstraints = array(); - $_size1015 = 0; - $_etype1018 = 0; - $xfer += $input->readListBegin($_etype1018, $_size1015); - for ($_i1019 = 0; $_i1019 < $_size1015; ++$_i1019) + $_size1085 = 0; + $_etype1088 = 0; + $xfer += $input->readListBegin($_etype1088, $_size1085); + for ($_i1089 = 0; $_i1089 < $_size1085; ++$_i1089) { - $elem1020 = null; - $elem1020 = new \metastore\SQLUniqueConstraint(); - $xfer += $elem1020->read($input); - $this->uniqueConstraints []= $elem1020; + $elem1090 = null; + $elem1090 = new \metastore\SQLUniqueConstraint(); + $xfer += $elem1090->read($input); + $this->uniqueConstraints []= $elem1090; } $xfer += $input->readListEnd(); } else { @@ -19674,15 +19742,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 5: if ($ftype == TType::LST) { $this->notNullConstraints = array(); - $_size1021 = 0; - $_etype1024 = 0; - $xfer += $input->readListBegin($_etype1024, $_size1021); - for ($_i1025 = 0; $_i1025 < $_size1021; ++$_i1025) + $_size1091 = 0; + $_etype1094 = 0; + $xfer += $input->readListBegin($_etype1094, $_size1091); + for ($_i1095 = 0; $_i1095 < $_size1091; ++$_i1095) { - $elem1026 = null; - $elem1026 = new \metastore\SQLNotNullConstraint(); - $xfer += $elem1026->read($input); - $this->notNullConstraints []= $elem1026; + $elem1096 = null; + $elem1096 = new \metastore\SQLNotNullConstraint(); + $xfer += $elem1096->read($input); + $this->notNullConstraints []= $elem1096; } $xfer += $input->readListEnd(); } else { @@ -19692,15 +19760,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 6: if ($ftype == TType::LST) { $this->defaultConstraints = array(); - $_size1027 = 0; - $_etype1030 = 0; - $xfer += $input->readListBegin($_etype1030, $_size1027); - for ($_i1031 = 0; $_i1031 < $_size1027; ++$_i1031) + $_size1097 = 0; + $_etype1100 = 0; + $xfer += $input->readListBegin($_etype1100, $_size1097); + for ($_i1101 = 0; $_i1101 < $_size1097; ++$_i1101) { - $elem1032 = null; - $elem1032 = new \metastore\SQLDefaultConstraint(); - $xfer += $elem1032->read($input); - $this->defaultConstraints []= $elem1032; + $elem1102 = null; + $elem1102 = new \metastore\SQLDefaultConstraint(); + $xfer += $elem1102->read($input); + $this->defaultConstraints []= $elem1102; } $xfer += $input->readListEnd(); } else { @@ -19710,15 +19778,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 7: if ($ftype == TType::LST) { $this->checkConstraints = array(); - $_size1033 = 0; - $_etype1036 = 0; - $xfer += $input->readListBegin($_etype1036, $_size1033); - for ($_i1037 = 0; $_i1037 < $_size1033; ++$_i1037) + $_size1103 = 0; + $_etype1106 = 0; + $xfer += $input->readListBegin($_etype1106, $_size1103); + for ($_i1107 = 0; $_i1107 < $_size1103; ++$_i1107) { - $elem1038 = null; - $elem1038 = new \metastore\SQLCheckConstraint(); - $xfer += $elem1038->read($input); - $this->checkConstraints []= $elem1038; + $elem1108 = null; + $elem1108 = new \metastore\SQLCheckConstraint(); + $xfer += $elem1108->read($input); + $this->checkConstraints []= $elem1108; } $xfer += $input->readListEnd(); } else { @@ -19754,9 +19822,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->primaryKeys)); { - foreach ($this->primaryKeys as $iter1039) + foreach ($this->primaryKeys as $iter1109) { - $xfer += $iter1039->write($output); + $xfer += $iter1109->write($output); } } $output->writeListEnd(); @@ -19771,9 +19839,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->foreignKeys)); { - foreach ($this->foreignKeys as $iter1040) + foreach ($this->foreignKeys as $iter1110) { - $xfer += $iter1040->write($output); + $xfer += $iter1110->write($output); } } $output->writeListEnd(); @@ -19788,9 +19856,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->uniqueConstraints)); { - foreach ($this->uniqueConstraints as $iter1041) + foreach ($this->uniqueConstraints as $iter1111) { - $xfer += $iter1041->write($output); + $xfer += $iter1111->write($output); } } $output->writeListEnd(); @@ -19805,9 +19873,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->notNullConstraints)); { - foreach ($this->notNullConstraints as $iter1042) + foreach ($this->notNullConstraints as $iter1112) { - $xfer += $iter1042->write($output); + $xfer += $iter1112->write($output); } } $output->writeListEnd(); @@ -19822,9 +19890,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->defaultConstraints)); { - foreach ($this->defaultConstraints as $iter1043) + foreach ($this->defaultConstraints as $iter1113) { - $xfer += $iter1043->write($output); + $xfer += $iter1113->write($output); } } $output->writeListEnd(); @@ -19839,9 +19907,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->checkConstraints)); { - foreach ($this->checkConstraints as $iter1044) + foreach ($this->checkConstraints as $iter1114) { - $xfer += $iter1044->write($output); + $xfer += $iter1114->write($output); } } $output->writeListEnd(); @@ -20007,6 +20075,238 @@ class ThriftHiveMetastore_create_table_with_constraints_result { } +class ThriftHiveMetastore_create_table_req_args { + static $_TSPEC; + + /** + * @var \metastore\CreateTableRequest + */ + public $request = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'request', + 'type' => TType::STRUCT, + 'class' => '\metastore\CreateTableRequest', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['request'])) { + $this->request = $vals['request']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_create_table_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\CreateTableRequest(); + $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_create_table_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_create_table_req_result { + static $_TSPEC; + + /** + * @var \metastore\AlreadyExistsException + */ + public $o1 = null; + /** + * @var \metastore\InvalidObjectException + */ + public $o2 = null; + /** + * @var \metastore\MetaException + */ + public $o3 = null; + /** + * @var \metastore\NoSuchObjectException + */ + public $o4 = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'o1', + 'type' => TType::STRUCT, + 'class' => '\metastore\AlreadyExistsException', + ), + 2 => array( + 'var' => 'o2', + 'type' => TType::STRUCT, + 'class' => '\metastore\InvalidObjectException', + ), + 3 => array( + 'var' => 'o3', + 'type' => TType::STRUCT, + 'class' => '\metastore\MetaException', + ), + 4 => array( + 'var' => 'o4', + 'type' => TType::STRUCT, + 'class' => '\metastore\NoSuchObjectException', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['o1'])) { + $this->o1 = $vals['o1']; + } + if (isset($vals['o2'])) { + $this->o2 = $vals['o2']; + } + if (isset($vals['o3'])) { + $this->o3 = $vals['o3']; + } + if (isset($vals['o4'])) { + $this->o4 = $vals['o4']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_create_table_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 1: + if ($ftype == TType::STRUCT) { + $this->o1 = new \metastore\AlreadyExistsException(); + $xfer += $this->o1->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRUCT) { + $this->o2 = new \metastore\InvalidObjectException(); + $xfer += $this->o2->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRUCT) { + $this->o3 = new \metastore\MetaException(); + $xfer += $this->o3->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::STRUCT) { + $this->o4 = new \metastore\NoSuchObjectException(); + $xfer += $this->o4->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_create_table_req_result'); + 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(); + } + if ($this->o3 !== null) { + $xfer += $output->writeFieldBegin('o3', TType::STRUCT, 3); + $xfer += $this->o3->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->o4 !== null) { + $xfer += $output->writeFieldBegin('o4', TType::STRUCT, 4); + $xfer += $this->o4->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + class ThriftHiveMetastore_drop_constraint_args { static $_TSPEC; @@ -21841,14 +22141,14 @@ class ThriftHiveMetastore_truncate_table_args { case 3: if ($ftype == TType::LST) { $this->partNames = array(); - $_size1045 = 0; - $_etype1048 = 0; - $xfer += $input->readListBegin($_etype1048, $_size1045); - for ($_i1049 = 0; $_i1049 < $_size1045; ++$_i1049) + $_size1115 = 0; + $_etype1118 = 0; + $xfer += $input->readListBegin($_etype1118, $_size1115); + for ($_i1119 = 0; $_i1119 < $_size1115; ++$_i1119) { - $elem1050 = null; - $xfer += $input->readString($elem1050); - $this->partNames []= $elem1050; + $elem1120 = null; + $xfer += $input->readString($elem1120); + $this->partNames []= $elem1120; } $xfer += $input->readListEnd(); } else { @@ -21886,9 +22186,9 @@ class ThriftHiveMetastore_truncate_table_args { { $output->writeListBegin(TType::STRING, count($this->partNames)); { - foreach ($this->partNames as $iter1051) + foreach ($this->partNames as $iter1121) { - $xfer += $output->writeString($iter1051); + $xfer += $output->writeString($iter1121); } } $output->writeListEnd(); @@ -22324,14 +22624,14 @@ class ThriftHiveMetastore_get_tables_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) + $_size1122 = 0; + $_etype1125 = 0; + $xfer += $input->readListBegin($_etype1125, $_size1122); + for ($_i1126 = 0; $_i1126 < $_size1122; ++$_i1126) { - $elem1057 = null; - $xfer += $input->readString($elem1057); - $this->success []= $elem1057; + $elem1127 = null; + $xfer += $input->readString($elem1127); + $this->success []= $elem1127; } $xfer += $input->readListEnd(); } else { @@ -22367,9 +22667,9 @@ class ThriftHiveMetastore_get_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1058) + foreach ($this->success as $iter1128) { - $xfer += $output->writeString($iter1058); + $xfer += $output->writeString($iter1128); } } $output->writeListEnd(); @@ -22571,14 +22871,14 @@ class ThriftHiveMetastore_get_tables_by_type_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) + $_size1129 = 0; + $_etype1132 = 0; + $xfer += $input->readListBegin($_etype1132, $_size1129); + for ($_i1133 = 0; $_i1133 < $_size1129; ++$_i1133) { - $elem1064 = null; - $xfer += $input->readString($elem1064); - $this->success []= $elem1064; + $elem1134 = null; + $xfer += $input->readString($elem1134); + $this->success []= $elem1134; } $xfer += $input->readListEnd(); } else { @@ -22614,9 +22914,9 @@ class ThriftHiveMetastore_get_tables_by_type_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1065) + foreach ($this->success as $iter1135) { - $xfer += $output->writeString($iter1065); + $xfer += $output->writeString($iter1135); } } $output->writeListEnd(); @@ -22748,15 +23048,15 @@ class ThriftHiveMetastore_get_all_materialized_view_objects_for_rewriting_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) + $_size1136 = 0; + $_etype1139 = 0; + $xfer += $input->readListBegin($_etype1139, $_size1136); + for ($_i1140 = 0; $_i1140 < $_size1136; ++$_i1140) { - $elem1071 = null; - $elem1071 = new \metastore\Table(); - $xfer += $elem1071->read($input); - $this->success []= $elem1071; + $elem1141 = null; + $elem1141 = new \metastore\Table(); + $xfer += $elem1141->read($input); + $this->success []= $elem1141; } $xfer += $input->readListEnd(); } else { @@ -22792,9 +23092,9 @@ class ThriftHiveMetastore_get_all_materialized_view_objects_for_rewriting_result { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1072) + foreach ($this->success as $iter1142) { - $xfer += $iter1072->write($output); + $xfer += $iter1142->write($output); } } $output->writeListEnd(); @@ -22950,14 +23250,14 @@ class ThriftHiveMetastore_get_materialized_views_for_rewriting_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1073 = 0; - $_etype1076 = 0; - $xfer += $input->readListBegin($_etype1076, $_size1073); - for ($_i1077 = 0; $_i1077 < $_size1073; ++$_i1077) + $_size1143 = 0; + $_etype1146 = 0; + $xfer += $input->readListBegin($_etype1146, $_size1143); + for ($_i1147 = 0; $_i1147 < $_size1143; ++$_i1147) { - $elem1078 = null; - $xfer += $input->readString($elem1078); - $this->success []= $elem1078; + $elem1148 = null; + $xfer += $input->readString($elem1148); + $this->success []= $elem1148; } $xfer += $input->readListEnd(); } else { @@ -22993,9 +23293,9 @@ class ThriftHiveMetastore_get_materialized_views_for_rewriting_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1079) + foreach ($this->success as $iter1149) { - $xfer += $output->writeString($iter1079); + $xfer += $output->writeString($iter1149); } } $output->writeListEnd(); @@ -23100,14 +23400,14 @@ class ThriftHiveMetastore_get_table_meta_args { case 3: if ($ftype == TType::LST) { $this->tbl_types = array(); - $_size1080 = 0; - $_etype1083 = 0; - $xfer += $input->readListBegin($_etype1083, $_size1080); - for ($_i1084 = 0; $_i1084 < $_size1080; ++$_i1084) + $_size1150 = 0; + $_etype1153 = 0; + $xfer += $input->readListBegin($_etype1153, $_size1150); + for ($_i1154 = 0; $_i1154 < $_size1150; ++$_i1154) { - $elem1085 = null; - $xfer += $input->readString($elem1085); - $this->tbl_types []= $elem1085; + $elem1155 = null; + $xfer += $input->readString($elem1155); + $this->tbl_types []= $elem1155; } $xfer += $input->readListEnd(); } else { @@ -23145,9 +23445,9 @@ class ThriftHiveMetastore_get_table_meta_args { { $output->writeListBegin(TType::STRING, count($this->tbl_types)); { - foreach ($this->tbl_types as $iter1086) + foreach ($this->tbl_types as $iter1156) { - $xfer += $output->writeString($iter1086); + $xfer += $output->writeString($iter1156); } } $output->writeListEnd(); @@ -23224,15 +23524,15 @@ class ThriftHiveMetastore_get_table_meta_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1087 = 0; - $_etype1090 = 0; - $xfer += $input->readListBegin($_etype1090, $_size1087); - for ($_i1091 = 0; $_i1091 < $_size1087; ++$_i1091) + $_size1157 = 0; + $_etype1160 = 0; + $xfer += $input->readListBegin($_etype1160, $_size1157); + for ($_i1161 = 0; $_i1161 < $_size1157; ++$_i1161) { - $elem1092 = null; - $elem1092 = new \metastore\TableMeta(); - $xfer += $elem1092->read($input); - $this->success []= $elem1092; + $elem1162 = null; + $elem1162 = new \metastore\TableMeta(); + $xfer += $elem1162->read($input); + $this->success []= $elem1162; } $xfer += $input->readListEnd(); } else { @@ -23268,9 +23568,9 @@ class ThriftHiveMetastore_get_table_meta_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1093) + foreach ($this->success as $iter1163) { - $xfer += $iter1093->write($output); + $xfer += $iter1163->write($output); } } $output->writeListEnd(); @@ -23426,14 +23726,14 @@ class ThriftHiveMetastore_get_all_tables_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1094 = 0; - $_etype1097 = 0; - $xfer += $input->readListBegin($_etype1097, $_size1094); - for ($_i1098 = 0; $_i1098 < $_size1094; ++$_i1098) + $_size1164 = 0; + $_etype1167 = 0; + $xfer += $input->readListBegin($_etype1167, $_size1164); + for ($_i1168 = 0; $_i1168 < $_size1164; ++$_i1168) { - $elem1099 = null; - $xfer += $input->readString($elem1099); - $this->success []= $elem1099; + $elem1169 = null; + $xfer += $input->readString($elem1169); + $this->success []= $elem1169; } $xfer += $input->readListEnd(); } else { @@ -23469,9 +23769,9 @@ class ThriftHiveMetastore_get_all_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1100) + foreach ($this->success as $iter1170) { - $xfer += $output->writeString($iter1100); + $xfer += $output->writeString($iter1170); } } $output->writeListEnd(); @@ -23786,14 +24086,14 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { case 2: if ($ftype == TType::LST) { $this->tbl_names = array(); - $_size1101 = 0; - $_etype1104 = 0; - $xfer += $input->readListBegin($_etype1104, $_size1101); - for ($_i1105 = 0; $_i1105 < $_size1101; ++$_i1105) + $_size1171 = 0; + $_etype1174 = 0; + $xfer += $input->readListBegin($_etype1174, $_size1171); + for ($_i1175 = 0; $_i1175 < $_size1171; ++$_i1175) { - $elem1106 = null; - $xfer += $input->readString($elem1106); - $this->tbl_names []= $elem1106; + $elem1176 = null; + $xfer += $input->readString($elem1176); + $this->tbl_names []= $elem1176; } $xfer += $input->readListEnd(); } else { @@ -23826,9 +24126,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { { $output->writeListBegin(TType::STRING, count($this->tbl_names)); { - foreach ($this->tbl_names as $iter1107) + foreach ($this->tbl_names as $iter1177) { - $xfer += $output->writeString($iter1107); + $xfer += $output->writeString($iter1177); } } $output->writeListEnd(); @@ -23893,15 +24193,15 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1108 = 0; - $_etype1111 = 0; - $xfer += $input->readListBegin($_etype1111, $_size1108); - for ($_i1112 = 0; $_i1112 < $_size1108; ++$_i1112) + $_size1178 = 0; + $_etype1181 = 0; + $xfer += $input->readListBegin($_etype1181, $_size1178); + for ($_i1182 = 0; $_i1182 < $_size1178; ++$_i1182) { - $elem1113 = null; - $elem1113 = new \metastore\Table(); - $xfer += $elem1113->read($input); - $this->success []= $elem1113; + $elem1183 = null; + $elem1183 = new \metastore\Table(); + $xfer += $elem1183->read($input); + $this->success []= $elem1183; } $xfer += $input->readListEnd(); } else { @@ -23929,9 +24229,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1114) + foreach ($this->success as $iter1184) { - $xfer += $iter1114->write($output); + $xfer += $iter1184->write($output); } } $output->writeListEnd(); @@ -24088,15 +24388,15 @@ class ThriftHiveMetastore_get_tables_ext_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1115 = 0; - $_etype1118 = 0; - $xfer += $input->readListBegin($_etype1118, $_size1115); - for ($_i1119 = 0; $_i1119 < $_size1115; ++$_i1119) + $_size1185 = 0; + $_etype1188 = 0; + $xfer += $input->readListBegin($_etype1188, $_size1185); + for ($_i1189 = 0; $_i1189 < $_size1185; ++$_i1189) { - $elem1120 = null; - $elem1120 = new \metastore\ExtendedTableInfo(); - $xfer += $elem1120->read($input); - $this->success []= $elem1120; + $elem1190 = null; + $elem1190 = new \metastore\ExtendedTableInfo(); + $xfer += $elem1190->read($input); + $this->success []= $elem1190; } $xfer += $input->readListEnd(); } else { @@ -24132,9 +24432,9 @@ class ThriftHiveMetastore_get_tables_ext_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1121) + foreach ($this->success as $iter1191) { - $xfer += $iter1121->write($output); + $xfer += $iter1191->write($output); } } $output->writeListEnd(); @@ -25339,14 +25639,14 @@ class ThriftHiveMetastore_get_table_names_by_filter_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) + $_size1192 = 0; + $_etype1195 = 0; + $xfer += $input->readListBegin($_etype1195, $_size1192); + for ($_i1196 = 0; $_i1196 < $_size1192; ++$_i1196) { - $elem1127 = null; - $xfer += $input->readString($elem1127); - $this->success []= $elem1127; + $elem1197 = null; + $xfer += $input->readString($elem1197); + $this->success []= $elem1197; } $xfer += $input->readListEnd(); } else { @@ -25398,9 +25698,9 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1128) + foreach ($this->success as $iter1198) { - $xfer += $output->writeString($iter1128); + $xfer += $output->writeString($iter1198); } } $output->writeListEnd(); @@ -26923,15 +27223,15 @@ class ThriftHiveMetastore_add_partitions_args { case 1: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size1129 = 0; - $_etype1132 = 0; - $xfer += $input->readListBegin($_etype1132, $_size1129); - for ($_i1133 = 0; $_i1133 < $_size1129; ++$_i1133) + $_size1199 = 0; + $_etype1202 = 0; + $xfer += $input->readListBegin($_etype1202, $_size1199); + for ($_i1203 = 0; $_i1203 < $_size1199; ++$_i1203) { - $elem1134 = null; - $elem1134 = new \metastore\Partition(); - $xfer += $elem1134->read($input); - $this->new_parts []= $elem1134; + $elem1204 = null; + $elem1204 = new \metastore\Partition(); + $xfer += $elem1204->read($input); + $this->new_parts []= $elem1204; } $xfer += $input->readListEnd(); } else { @@ -26959,9 +27259,9 @@ class ThriftHiveMetastore_add_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter1135) + foreach ($this->new_parts as $iter1205) { - $xfer += $iter1135->write($output); + $xfer += $iter1205->write($output); } } $output->writeListEnd(); @@ -27176,15 +27476,15 @@ class ThriftHiveMetastore_add_partitions_pspec_args { case 1: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size1136 = 0; - $_etype1139 = 0; - $xfer += $input->readListBegin($_etype1139, $_size1136); - for ($_i1140 = 0; $_i1140 < $_size1136; ++$_i1140) + $_size1206 = 0; + $_etype1209 = 0; + $xfer += $input->readListBegin($_etype1209, $_size1206); + for ($_i1210 = 0; $_i1210 < $_size1206; ++$_i1210) { - $elem1141 = null; - $elem1141 = new \metastore\PartitionSpec(); - $xfer += $elem1141->read($input); - $this->new_parts []= $elem1141; + $elem1211 = null; + $elem1211 = new \metastore\PartitionSpec(); + $xfer += $elem1211->read($input); + $this->new_parts []= $elem1211; } $xfer += $input->readListEnd(); } else { @@ -27212,9 +27512,9 @@ class ThriftHiveMetastore_add_partitions_pspec_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter1142) + foreach ($this->new_parts as $iter1212) { - $xfer += $iter1142->write($output); + $xfer += $iter1212->write($output); } } $output->writeListEnd(); @@ -27464,14 +27764,14 @@ class ThriftHiveMetastore_append_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1143 = 0; - $_etype1146 = 0; - $xfer += $input->readListBegin($_etype1146, $_size1143); - for ($_i1147 = 0; $_i1147 < $_size1143; ++$_i1147) + $_size1213 = 0; + $_etype1216 = 0; + $xfer += $input->readListBegin($_etype1216, $_size1213); + for ($_i1217 = 0; $_i1217 < $_size1213; ++$_i1217) { - $elem1148 = null; - $xfer += $input->readString($elem1148); - $this->part_vals []= $elem1148; + $elem1218 = null; + $xfer += $input->readString($elem1218); + $this->part_vals []= $elem1218; } $xfer += $input->readListEnd(); } else { @@ -27509,9 +27809,9 @@ class ThriftHiveMetastore_append_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1149) + foreach ($this->part_vals as $iter1219) { - $xfer += $output->writeString($iter1149); + $xfer += $output->writeString($iter1219); } } $output->writeListEnd(); @@ -28013,14 +28313,14 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1150 = 0; - $_etype1153 = 0; - $xfer += $input->readListBegin($_etype1153, $_size1150); - for ($_i1154 = 0; $_i1154 < $_size1150; ++$_i1154) + $_size1220 = 0; + $_etype1223 = 0; + $xfer += $input->readListBegin($_etype1223, $_size1220); + for ($_i1224 = 0; $_i1224 < $_size1220; ++$_i1224) { - $elem1155 = null; - $xfer += $input->readString($elem1155); - $this->part_vals []= $elem1155; + $elem1225 = null; + $xfer += $input->readString($elem1225); + $this->part_vals []= $elem1225; } $xfer += $input->readListEnd(); } else { @@ -28066,9 +28366,9 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1156) + foreach ($this->part_vals as $iter1226) { - $xfer += $output->writeString($iter1156); + $xfer += $output->writeString($iter1226); } } $output->writeListEnd(); @@ -28922,14 +29222,14 @@ class ThriftHiveMetastore_drop_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1157 = 0; - $_etype1160 = 0; - $xfer += $input->readListBegin($_etype1160, $_size1157); - for ($_i1161 = 0; $_i1161 < $_size1157; ++$_i1161) + $_size1227 = 0; + $_etype1230 = 0; + $xfer += $input->readListBegin($_etype1230, $_size1227); + for ($_i1231 = 0; $_i1231 < $_size1227; ++$_i1231) { - $elem1162 = null; - $xfer += $input->readString($elem1162); - $this->part_vals []= $elem1162; + $elem1232 = null; + $xfer += $input->readString($elem1232); + $this->part_vals []= $elem1232; } $xfer += $input->readListEnd(); } else { @@ -28974,9 +29274,9 @@ class ThriftHiveMetastore_drop_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1163) + foreach ($this->part_vals as $iter1233) { - $xfer += $output->writeString($iter1163); + $xfer += $output->writeString($iter1233); } } $output->writeListEnd(); @@ -29229,14 +29529,14 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1164 = 0; - $_etype1167 = 0; - $xfer += $input->readListBegin($_etype1167, $_size1164); - for ($_i1168 = 0; $_i1168 < $_size1164; ++$_i1168) + $_size1234 = 0; + $_etype1237 = 0; + $xfer += $input->readListBegin($_etype1237, $_size1234); + for ($_i1238 = 0; $_i1238 < $_size1234; ++$_i1238) { - $elem1169 = null; - $xfer += $input->readString($elem1169); - $this->part_vals []= $elem1169; + $elem1239 = null; + $xfer += $input->readString($elem1239); + $this->part_vals []= $elem1239; } $xfer += $input->readListEnd(); } else { @@ -29289,9 +29589,9 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1170) + foreach ($this->part_vals as $iter1240) { - $xfer += $output->writeString($iter1170); + $xfer += $output->writeString($iter1240); } } $output->writeListEnd(); @@ -30305,14 +30605,14 @@ class ThriftHiveMetastore_get_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1171 = 0; - $_etype1174 = 0; - $xfer += $input->readListBegin($_etype1174, $_size1171); - for ($_i1175 = 0; $_i1175 < $_size1171; ++$_i1175) + $_size1241 = 0; + $_etype1244 = 0; + $xfer += $input->readListBegin($_etype1244, $_size1241); + for ($_i1245 = 0; $_i1245 < $_size1241; ++$_i1245) { - $elem1176 = null; - $xfer += $input->readString($elem1176); - $this->part_vals []= $elem1176; + $elem1246 = null; + $xfer += $input->readString($elem1246); + $this->part_vals []= $elem1246; } $xfer += $input->readListEnd(); } else { @@ -30350,9 +30650,9 @@ class ThriftHiveMetastore_get_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1177) + foreach ($this->part_vals as $iter1247) { - $xfer += $output->writeString($iter1177); + $xfer += $output->writeString($iter1247); } } $output->writeListEnd(); @@ -30594,17 +30894,17 @@ class ThriftHiveMetastore_exchange_partition_args { case 1: if ($ftype == TType::MAP) { $this->partitionSpecs = array(); - $_size1178 = 0; - $_ktype1179 = 0; - $_vtype1180 = 0; - $xfer += $input->readMapBegin($_ktype1179, $_vtype1180, $_size1178); - for ($_i1182 = 0; $_i1182 < $_size1178; ++$_i1182) + $_size1248 = 0; + $_ktype1249 = 0; + $_vtype1250 = 0; + $xfer += $input->readMapBegin($_ktype1249, $_vtype1250, $_size1248); + for ($_i1252 = 0; $_i1252 < $_size1248; ++$_i1252) { - $key1183 = ''; - $val1184 = ''; - $xfer += $input->readString($key1183); - $xfer += $input->readString($val1184); - $this->partitionSpecs[$key1183] = $val1184; + $key1253 = ''; + $val1254 = ''; + $xfer += $input->readString($key1253); + $xfer += $input->readString($val1254); + $this->partitionSpecs[$key1253] = $val1254; } $xfer += $input->readMapEnd(); } else { @@ -30660,10 +30960,10 @@ class ThriftHiveMetastore_exchange_partition_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); { - foreach ($this->partitionSpecs as $kiter1185 => $viter1186) + foreach ($this->partitionSpecs as $kiter1255 => $viter1256) { - $xfer += $output->writeString($kiter1185); - $xfer += $output->writeString($viter1186); + $xfer += $output->writeString($kiter1255); + $xfer += $output->writeString($viter1256); } } $output->writeMapEnd(); @@ -30975,17 +31275,17 @@ class ThriftHiveMetastore_exchange_partitions_args { case 1: if ($ftype == TType::MAP) { $this->partitionSpecs = array(); - $_size1187 = 0; - $_ktype1188 = 0; - $_vtype1189 = 0; - $xfer += $input->readMapBegin($_ktype1188, $_vtype1189, $_size1187); - for ($_i1191 = 0; $_i1191 < $_size1187; ++$_i1191) + $_size1257 = 0; + $_ktype1258 = 0; + $_vtype1259 = 0; + $xfer += $input->readMapBegin($_ktype1258, $_vtype1259, $_size1257); + for ($_i1261 = 0; $_i1261 < $_size1257; ++$_i1261) { - $key1192 = ''; - $val1193 = ''; - $xfer += $input->readString($key1192); - $xfer += $input->readString($val1193); - $this->partitionSpecs[$key1192] = $val1193; + $key1262 = ''; + $val1263 = ''; + $xfer += $input->readString($key1262); + $xfer += $input->readString($val1263); + $this->partitionSpecs[$key1262] = $val1263; } $xfer += $input->readMapEnd(); } else { @@ -31041,10 +31341,10 @@ class ThriftHiveMetastore_exchange_partitions_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); { - foreach ($this->partitionSpecs as $kiter1194 => $viter1195) + foreach ($this->partitionSpecs as $kiter1264 => $viter1265) { - $xfer += $output->writeString($kiter1194); - $xfer += $output->writeString($viter1195); + $xfer += $output->writeString($kiter1264); + $xfer += $output->writeString($viter1265); } } $output->writeMapEnd(); @@ -31177,15 +31477,15 @@ class ThriftHiveMetastore_exchange_partitions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1196 = 0; - $_etype1199 = 0; - $xfer += $input->readListBegin($_etype1199, $_size1196); - for ($_i1200 = 0; $_i1200 < $_size1196; ++$_i1200) + $_size1266 = 0; + $_etype1269 = 0; + $xfer += $input->readListBegin($_etype1269, $_size1266); + for ($_i1270 = 0; $_i1270 < $_size1266; ++$_i1270) { - $elem1201 = null; - $elem1201 = new \metastore\Partition(); - $xfer += $elem1201->read($input); - $this->success []= $elem1201; + $elem1271 = null; + $elem1271 = new \metastore\Partition(); + $xfer += $elem1271->read($input); + $this->success []= $elem1271; } $xfer += $input->readListEnd(); } else { @@ -31245,9 +31545,9 @@ class ThriftHiveMetastore_exchange_partitions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1202) + foreach ($this->success as $iter1272) { - $xfer += $iter1202->write($output); + $xfer += $iter1272->write($output); } } $output->writeListEnd(); @@ -31393,14 +31693,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1203 = 0; - $_etype1206 = 0; - $xfer += $input->readListBegin($_etype1206, $_size1203); - for ($_i1207 = 0; $_i1207 < $_size1203; ++$_i1207) + $_size1273 = 0; + $_etype1276 = 0; + $xfer += $input->readListBegin($_etype1276, $_size1273); + for ($_i1277 = 0; $_i1277 < $_size1273; ++$_i1277) { - $elem1208 = null; - $xfer += $input->readString($elem1208); - $this->part_vals []= $elem1208; + $elem1278 = null; + $xfer += $input->readString($elem1278); + $this->part_vals []= $elem1278; } $xfer += $input->readListEnd(); } else { @@ -31417,14 +31717,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1209 = 0; - $_etype1212 = 0; - $xfer += $input->readListBegin($_etype1212, $_size1209); - for ($_i1213 = 0; $_i1213 < $_size1209; ++$_i1213) + $_size1279 = 0; + $_etype1282 = 0; + $xfer += $input->readListBegin($_etype1282, $_size1279); + for ($_i1283 = 0; $_i1283 < $_size1279; ++$_i1283) { - $elem1214 = null; - $xfer += $input->readString($elem1214); - $this->group_names []= $elem1214; + $elem1284 = null; + $xfer += $input->readString($elem1284); + $this->group_names []= $elem1284; } $xfer += $input->readListEnd(); } else { @@ -31462,9 +31762,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1215) + foreach ($this->part_vals as $iter1285) { - $xfer += $output->writeString($iter1215); + $xfer += $output->writeString($iter1285); } } $output->writeListEnd(); @@ -31484,9 +31784,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1216) + foreach ($this->group_names as $iter1286) { - $xfer += $output->writeString($iter1216); + $xfer += $output->writeString($iter1286); } } $output->writeListEnd(); @@ -32077,15 +32377,15 @@ class ThriftHiveMetastore_get_partitions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1217 = 0; - $_etype1220 = 0; - $xfer += $input->readListBegin($_etype1220, $_size1217); - for ($_i1221 = 0; $_i1221 < $_size1217; ++$_i1221) + $_size1287 = 0; + $_etype1290 = 0; + $xfer += $input->readListBegin($_etype1290, $_size1287); + for ($_i1291 = 0; $_i1291 < $_size1287; ++$_i1291) { - $elem1222 = null; - $elem1222 = new \metastore\Partition(); - $xfer += $elem1222->read($input); - $this->success []= $elem1222; + $elem1292 = null; + $elem1292 = new \metastore\Partition(); + $xfer += $elem1292->read($input); + $this->success []= $elem1292; } $xfer += $input->readListEnd(); } else { @@ -32129,9 +32429,9 @@ class ThriftHiveMetastore_get_partitions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1223) + foreach ($this->success as $iter1293) { - $xfer += $iter1223->write($output); + $xfer += $iter1293->write($output); } } $output->writeListEnd(); @@ -32277,14 +32577,14 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1224 = 0; - $_etype1227 = 0; - $xfer += $input->readListBegin($_etype1227, $_size1224); - for ($_i1228 = 0; $_i1228 < $_size1224; ++$_i1228) + $_size1294 = 0; + $_etype1297 = 0; + $xfer += $input->readListBegin($_etype1297, $_size1294); + for ($_i1298 = 0; $_i1298 < $_size1294; ++$_i1298) { - $elem1229 = null; - $xfer += $input->readString($elem1229); - $this->group_names []= $elem1229; + $elem1299 = null; + $xfer += $input->readString($elem1299); + $this->group_names []= $elem1299; } $xfer += $input->readListEnd(); } else { @@ -32332,9 +32632,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1230) + foreach ($this->group_names as $iter1300) { - $xfer += $output->writeString($iter1230); + $xfer += $output->writeString($iter1300); } } $output->writeListEnd(); @@ -32423,15 +32723,15 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1231 = 0; - $_etype1234 = 0; - $xfer += $input->readListBegin($_etype1234, $_size1231); - for ($_i1235 = 0; $_i1235 < $_size1231; ++$_i1235) + $_size1301 = 0; + $_etype1304 = 0; + $xfer += $input->readListBegin($_etype1304, $_size1301); + for ($_i1305 = 0; $_i1305 < $_size1301; ++$_i1305) { - $elem1236 = null; - $elem1236 = new \metastore\Partition(); - $xfer += $elem1236->read($input); - $this->success []= $elem1236; + $elem1306 = null; + $elem1306 = new \metastore\Partition(); + $xfer += $elem1306->read($input); + $this->success []= $elem1306; } $xfer += $input->readListEnd(); } else { @@ -32475,9 +32775,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1237) + foreach ($this->success as $iter1307) { - $xfer += $iter1237->write($output); + $xfer += $iter1307->write($output); } } $output->writeListEnd(); @@ -32697,15 +32997,15 @@ class ThriftHiveMetastore_get_partitions_pspec_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1238 = 0; - $_etype1241 = 0; - $xfer += $input->readListBegin($_etype1241, $_size1238); - for ($_i1242 = 0; $_i1242 < $_size1238; ++$_i1242) + $_size1308 = 0; + $_etype1311 = 0; + $xfer += $input->readListBegin($_etype1311, $_size1308); + for ($_i1312 = 0; $_i1312 < $_size1308; ++$_i1312) { - $elem1243 = null; - $elem1243 = new \metastore\PartitionSpec(); - $xfer += $elem1243->read($input); - $this->success []= $elem1243; + $elem1313 = null; + $elem1313 = new \metastore\PartitionSpec(); + $xfer += $elem1313->read($input); + $this->success []= $elem1313; } $xfer += $input->readListEnd(); } else { @@ -32749,9 +33049,9 @@ class ThriftHiveMetastore_get_partitions_pspec_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1244) + foreach ($this->success as $iter1314) { - $xfer += $iter1244->write($output); + $xfer += $iter1314->write($output); } } $output->writeListEnd(); @@ -32970,14 +33270,14 @@ class ThriftHiveMetastore_get_partition_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1245 = 0; - $_etype1248 = 0; - $xfer += $input->readListBegin($_etype1248, $_size1245); - for ($_i1249 = 0; $_i1249 < $_size1245; ++$_i1249) + $_size1315 = 0; + $_etype1318 = 0; + $xfer += $input->readListBegin($_etype1318, $_size1315); + for ($_i1319 = 0; $_i1319 < $_size1315; ++$_i1319) { - $elem1250 = null; - $xfer += $input->readString($elem1250); - $this->success []= $elem1250; + $elem1320 = null; + $xfer += $input->readString($elem1320); + $this->success []= $elem1320; } $xfer += $input->readListEnd(); } else { @@ -33021,9 +33321,9 @@ class ThriftHiveMetastore_get_partition_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1251) + foreach ($this->success as $iter1321) { - $xfer += $output->writeString($iter1251); + $xfer += $output->writeString($iter1321); } } $output->writeListEnd(); @@ -33354,14 +33654,14 @@ class ThriftHiveMetastore_get_partitions_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1252 = 0; - $_etype1255 = 0; - $xfer += $input->readListBegin($_etype1255, $_size1252); - for ($_i1256 = 0; $_i1256 < $_size1252; ++$_i1256) + $_size1322 = 0; + $_etype1325 = 0; + $xfer += $input->readListBegin($_etype1325, $_size1322); + for ($_i1326 = 0; $_i1326 < $_size1322; ++$_i1326) { - $elem1257 = null; - $xfer += $input->readString($elem1257); - $this->part_vals []= $elem1257; + $elem1327 = null; + $xfer += $input->readString($elem1327); + $this->part_vals []= $elem1327; } $xfer += $input->readListEnd(); } else { @@ -33406,9 +33706,9 @@ class ThriftHiveMetastore_get_partitions_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1258) + foreach ($this->part_vals as $iter1328) { - $xfer += $output->writeString($iter1258); + $xfer += $output->writeString($iter1328); } } $output->writeListEnd(); @@ -33502,15 +33802,15 @@ class ThriftHiveMetastore_get_partitions_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1259 = 0; - $_etype1262 = 0; - $xfer += $input->readListBegin($_etype1262, $_size1259); - for ($_i1263 = 0; $_i1263 < $_size1259; ++$_i1263) + $_size1329 = 0; + $_etype1332 = 0; + $xfer += $input->readListBegin($_etype1332, $_size1329); + for ($_i1333 = 0; $_i1333 < $_size1329; ++$_i1333) { - $elem1264 = null; - $elem1264 = new \metastore\Partition(); - $xfer += $elem1264->read($input); - $this->success []= $elem1264; + $elem1334 = null; + $elem1334 = new \metastore\Partition(); + $xfer += $elem1334->read($input); + $this->success []= $elem1334; } $xfer += $input->readListEnd(); } else { @@ -33554,9 +33854,9 @@ class ThriftHiveMetastore_get_partitions_ps_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1265) + foreach ($this->success as $iter1335) { - $xfer += $iter1265->write($output); + $xfer += $iter1335->write($output); } } $output->writeListEnd(); @@ -33703,14 +34003,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1266 = 0; - $_etype1269 = 0; - $xfer += $input->readListBegin($_etype1269, $_size1266); - for ($_i1270 = 0; $_i1270 < $_size1266; ++$_i1270) + $_size1336 = 0; + $_etype1339 = 0; + $xfer += $input->readListBegin($_etype1339, $_size1336); + for ($_i1340 = 0; $_i1340 < $_size1336; ++$_i1340) { - $elem1271 = null; - $xfer += $input->readString($elem1271); - $this->part_vals []= $elem1271; + $elem1341 = null; + $xfer += $input->readString($elem1341); + $this->part_vals []= $elem1341; } $xfer += $input->readListEnd(); } else { @@ -33734,14 +34034,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 6: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1272 = 0; - $_etype1275 = 0; - $xfer += $input->readListBegin($_etype1275, $_size1272); - for ($_i1276 = 0; $_i1276 < $_size1272; ++$_i1276) + $_size1342 = 0; + $_etype1345 = 0; + $xfer += $input->readListBegin($_etype1345, $_size1342); + for ($_i1346 = 0; $_i1346 < $_size1342; ++$_i1346) { - $elem1277 = null; - $xfer += $input->readString($elem1277); - $this->group_names []= $elem1277; + $elem1347 = null; + $xfer += $input->readString($elem1347); + $this->group_names []= $elem1347; } $xfer += $input->readListEnd(); } else { @@ -33779,9 +34079,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1278) + foreach ($this->part_vals as $iter1348) { - $xfer += $output->writeString($iter1278); + $xfer += $output->writeString($iter1348); } } $output->writeListEnd(); @@ -33806,9 +34106,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1279) + foreach ($this->group_names as $iter1349) { - $xfer += $output->writeString($iter1279); + $xfer += $output->writeString($iter1349); } } $output->writeListEnd(); @@ -33897,15 +34197,15 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1280 = 0; - $_etype1283 = 0; - $xfer += $input->readListBegin($_etype1283, $_size1280); - for ($_i1284 = 0; $_i1284 < $_size1280; ++$_i1284) + $_size1350 = 0; + $_etype1353 = 0; + $xfer += $input->readListBegin($_etype1353, $_size1350); + for ($_i1354 = 0; $_i1354 < $_size1350; ++$_i1354) { - $elem1285 = null; - $elem1285 = new \metastore\Partition(); - $xfer += $elem1285->read($input); - $this->success []= $elem1285; + $elem1355 = null; + $elem1355 = new \metastore\Partition(); + $xfer += $elem1355->read($input); + $this->success []= $elem1355; } $xfer += $input->readListEnd(); } else { @@ -33949,9 +34249,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1286) + foreach ($this->success as $iter1356) { - $xfer += $iter1286->write($output); + $xfer += $iter1356->write($output); } } $output->writeListEnd(); @@ -34072,14 +34372,14 @@ class ThriftHiveMetastore_get_partition_names_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1287 = 0; - $_etype1290 = 0; - $xfer += $input->readListBegin($_etype1290, $_size1287); - for ($_i1291 = 0; $_i1291 < $_size1287; ++$_i1291) + $_size1357 = 0; + $_etype1360 = 0; + $xfer += $input->readListBegin($_etype1360, $_size1357); + for ($_i1361 = 0; $_i1361 < $_size1357; ++$_i1361) { - $elem1292 = null; - $xfer += $input->readString($elem1292); - $this->part_vals []= $elem1292; + $elem1362 = null; + $xfer += $input->readString($elem1362); + $this->part_vals []= $elem1362; } $xfer += $input->readListEnd(); } else { @@ -34124,9 +34424,9 @@ class ThriftHiveMetastore_get_partition_names_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1293) + foreach ($this->part_vals as $iter1363) { - $xfer += $output->writeString($iter1293); + $xfer += $output->writeString($iter1363); } } $output->writeListEnd(); @@ -34219,14 +34519,14 @@ class ThriftHiveMetastore_get_partition_names_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1294 = 0; - $_etype1297 = 0; - $xfer += $input->readListBegin($_etype1297, $_size1294); - for ($_i1298 = 0; $_i1298 < $_size1294; ++$_i1298) + $_size1364 = 0; + $_etype1367 = 0; + $xfer += $input->readListBegin($_etype1367, $_size1364); + for ($_i1368 = 0; $_i1368 < $_size1364; ++$_i1368) { - $elem1299 = null; - $xfer += $input->readString($elem1299); - $this->success []= $elem1299; + $elem1369 = null; + $xfer += $input->readString($elem1369); + $this->success []= $elem1369; } $xfer += $input->readListEnd(); } else { @@ -34270,9 +34570,9 @@ class ThriftHiveMetastore_get_partition_names_ps_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1300) + foreach ($this->success as $iter1370) { - $xfer += $output->writeString($iter1300); + $xfer += $output->writeString($iter1370); } } $output->writeListEnd(); @@ -34515,15 +34815,15 @@ class ThriftHiveMetastore_get_partitions_by_filter_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) + $_size1371 = 0; + $_etype1374 = 0; + $xfer += $input->readListBegin($_etype1374, $_size1371); + for ($_i1375 = 0; $_i1375 < $_size1371; ++$_i1375) { - $elem1306 = null; - $elem1306 = new \metastore\Partition(); - $xfer += $elem1306->read($input); - $this->success []= $elem1306; + $elem1376 = null; + $elem1376 = new \metastore\Partition(); + $xfer += $elem1376->read($input); + $this->success []= $elem1376; } $xfer += $input->readListEnd(); } else { @@ -34567,9 +34867,9 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1307) + foreach ($this->success as $iter1377) { - $xfer += $iter1307->write($output); + $xfer += $iter1377->write($output); } } $output->writeListEnd(); @@ -34812,15 +35112,15 @@ class ThriftHiveMetastore_get_part_specs_by_filter_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) + $_size1378 = 0; + $_etype1381 = 0; + $xfer += $input->readListBegin($_etype1381, $_size1378); + for ($_i1382 = 0; $_i1382 < $_size1378; ++$_i1382) { - $elem1313 = null; - $elem1313 = new \metastore\PartitionSpec(); - $xfer += $elem1313->read($input); - $this->success []= $elem1313; + $elem1383 = null; + $elem1383 = new \metastore\PartitionSpec(); + $xfer += $elem1383->read($input); + $this->success []= $elem1383; } $xfer += $input->readListEnd(); } else { @@ -34864,9 +35164,9 @@ class ThriftHiveMetastore_get_part_specs_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1314) + foreach ($this->success as $iter1384) { - $xfer += $iter1314->write($output); + $xfer += $iter1384->write($output); } } $output->writeListEnd(); @@ -35432,14 +35732,14 @@ class ThriftHiveMetastore_get_partitions_by_names_args { case 3: if ($ftype == TType::LST) { $this->names = array(); - $_size1315 = 0; - $_etype1318 = 0; - $xfer += $input->readListBegin($_etype1318, $_size1315); - for ($_i1319 = 0; $_i1319 < $_size1315; ++$_i1319) + $_size1385 = 0; + $_etype1388 = 0; + $xfer += $input->readListBegin($_etype1388, $_size1385); + for ($_i1389 = 0; $_i1389 < $_size1385; ++$_i1389) { - $elem1320 = null; - $xfer += $input->readString($elem1320); - $this->names []= $elem1320; + $elem1390 = null; + $xfer += $input->readString($elem1390); + $this->names []= $elem1390; } $xfer += $input->readListEnd(); } else { @@ -35477,9 +35777,9 @@ class ThriftHiveMetastore_get_partitions_by_names_args { { $output->writeListBegin(TType::STRING, count($this->names)); { - foreach ($this->names as $iter1321) + foreach ($this->names as $iter1391) { - $xfer += $output->writeString($iter1321); + $xfer += $output->writeString($iter1391); } } $output->writeListEnd(); @@ -35568,15 +35868,15 @@ class ThriftHiveMetastore_get_partitions_by_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1322 = 0; - $_etype1325 = 0; - $xfer += $input->readListBegin($_etype1325, $_size1322); - for ($_i1326 = 0; $_i1326 < $_size1322; ++$_i1326) + $_size1392 = 0; + $_etype1395 = 0; + $xfer += $input->readListBegin($_etype1395, $_size1392); + for ($_i1396 = 0; $_i1396 < $_size1392; ++$_i1396) { - $elem1327 = null; - $elem1327 = new \metastore\Partition(); - $xfer += $elem1327->read($input); - $this->success []= $elem1327; + $elem1397 = null; + $elem1397 = new \metastore\Partition(); + $xfer += $elem1397->read($input); + $this->success []= $elem1397; } $xfer += $input->readListEnd(); } else { @@ -35620,9 +35920,9 @@ class ThriftHiveMetastore_get_partitions_by_names_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1328) + foreach ($this->success as $iter1398) { - $xfer += $iter1328->write($output); + $xfer += $iter1398->write($output); } } $output->writeListEnd(); @@ -36171,15 +36471,15 @@ class ThriftHiveMetastore_alter_partitions_args { case 3: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size1329 = 0; - $_etype1332 = 0; - $xfer += $input->readListBegin($_etype1332, $_size1329); - for ($_i1333 = 0; $_i1333 < $_size1329; ++$_i1333) + $_size1399 = 0; + $_etype1402 = 0; + $xfer += $input->readListBegin($_etype1402, $_size1399); + for ($_i1403 = 0; $_i1403 < $_size1399; ++$_i1403) { - $elem1334 = null; - $elem1334 = new \metastore\Partition(); - $xfer += $elem1334->read($input); - $this->new_parts []= $elem1334; + $elem1404 = null; + $elem1404 = new \metastore\Partition(); + $xfer += $elem1404->read($input); + $this->new_parts []= $elem1404; } $xfer += $input->readListEnd(); } else { @@ -36217,9 +36517,9 @@ class ThriftHiveMetastore_alter_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter1335) + foreach ($this->new_parts as $iter1405) { - $xfer += $iter1335->write($output); + $xfer += $iter1405->write($output); } } $output->writeListEnd(); @@ -36434,15 +36734,15 @@ class ThriftHiveMetastore_alter_partitions_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size1336 = 0; - $_etype1339 = 0; - $xfer += $input->readListBegin($_etype1339, $_size1336); - for ($_i1340 = 0; $_i1340 < $_size1336; ++$_i1340) + $_size1406 = 0; + $_etype1409 = 0; + $xfer += $input->readListBegin($_etype1409, $_size1406); + for ($_i1410 = 0; $_i1410 < $_size1406; ++$_i1410) { - $elem1341 = null; - $elem1341 = new \metastore\Partition(); - $xfer += $elem1341->read($input); - $this->new_parts []= $elem1341; + $elem1411 = null; + $elem1411 = new \metastore\Partition(); + $xfer += $elem1411->read($input); + $this->new_parts []= $elem1411; } $xfer += $input->readListEnd(); } else { @@ -36488,9 +36788,9 @@ class ThriftHiveMetastore_alter_partitions_with_environment_context_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter1342) + foreach ($this->new_parts as $iter1412) { - $xfer += $iter1342->write($output); + $xfer += $iter1412->write($output); } } $output->writeListEnd(); @@ -37178,14 +37478,14 @@ class ThriftHiveMetastore_rename_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1343 = 0; - $_etype1346 = 0; - $xfer += $input->readListBegin($_etype1346, $_size1343); - for ($_i1347 = 0; $_i1347 < $_size1343; ++$_i1347) + $_size1413 = 0; + $_etype1416 = 0; + $xfer += $input->readListBegin($_etype1416, $_size1413); + for ($_i1417 = 0; $_i1417 < $_size1413; ++$_i1417) { - $elem1348 = null; - $xfer += $input->readString($elem1348); - $this->part_vals []= $elem1348; + $elem1418 = null; + $xfer += $input->readString($elem1418); + $this->part_vals []= $elem1418; } $xfer += $input->readListEnd(); } else { @@ -37231,9 +37531,9 @@ class ThriftHiveMetastore_rename_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1349) + foreach ($this->part_vals as $iter1419) { - $xfer += $output->writeString($iter1349); + $xfer += $output->writeString($iter1419); } } $output->writeListEnd(); @@ -37628,14 +37928,14 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { case 1: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1350 = 0; - $_etype1353 = 0; - $xfer += $input->readListBegin($_etype1353, $_size1350); - for ($_i1354 = 0; $_i1354 < $_size1350; ++$_i1354) + $_size1420 = 0; + $_etype1423 = 0; + $xfer += $input->readListBegin($_etype1423, $_size1420); + for ($_i1424 = 0; $_i1424 < $_size1420; ++$_i1424) { - $elem1355 = null; - $xfer += $input->readString($elem1355); - $this->part_vals []= $elem1355; + $elem1425 = null; + $xfer += $input->readString($elem1425); + $this->part_vals []= $elem1425; } $xfer += $input->readListEnd(); } else { @@ -37670,9 +37970,9 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1356) + foreach ($this->part_vals as $iter1426) { - $xfer += $output->writeString($iter1356); + $xfer += $output->writeString($iter1426); } } $output->writeListEnd(); @@ -38126,14 +38426,14 @@ class ThriftHiveMetastore_partition_name_to_vals_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1357 = 0; - $_etype1360 = 0; - $xfer += $input->readListBegin($_etype1360, $_size1357); - for ($_i1361 = 0; $_i1361 < $_size1357; ++$_i1361) + $_size1427 = 0; + $_etype1430 = 0; + $xfer += $input->readListBegin($_etype1430, $_size1427); + for ($_i1431 = 0; $_i1431 < $_size1427; ++$_i1431) { - $elem1362 = null; - $xfer += $input->readString($elem1362); - $this->success []= $elem1362; + $elem1432 = null; + $xfer += $input->readString($elem1432); + $this->success []= $elem1432; } $xfer += $input->readListEnd(); } else { @@ -38169,9 +38469,9 @@ class ThriftHiveMetastore_partition_name_to_vals_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1363) + foreach ($this->success as $iter1433) { - $xfer += $output->writeString($iter1363); + $xfer += $output->writeString($iter1433); } } $output->writeListEnd(); @@ -38331,17 +38631,17 @@ class ThriftHiveMetastore_partition_name_to_spec_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size1364 = 0; - $_ktype1365 = 0; - $_vtype1366 = 0; - $xfer += $input->readMapBegin($_ktype1365, $_vtype1366, $_size1364); - for ($_i1368 = 0; $_i1368 < $_size1364; ++$_i1368) + $_size1434 = 0; + $_ktype1435 = 0; + $_vtype1436 = 0; + $xfer += $input->readMapBegin($_ktype1435, $_vtype1436, $_size1434); + for ($_i1438 = 0; $_i1438 < $_size1434; ++$_i1438) { - $key1369 = ''; - $val1370 = ''; - $xfer += $input->readString($key1369); - $xfer += $input->readString($val1370); - $this->success[$key1369] = $val1370; + $key1439 = ''; + $val1440 = ''; + $xfer += $input->readString($key1439); + $xfer += $input->readString($val1440); + $this->success[$key1439] = $val1440; } $xfer += $input->readMapEnd(); } else { @@ -38377,10 +38677,10 @@ class ThriftHiveMetastore_partition_name_to_spec_result { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->success)); { - foreach ($this->success as $kiter1371 => $viter1372) + foreach ($this->success as $kiter1441 => $viter1442) { - $xfer += $output->writeString($kiter1371); - $xfer += $output->writeString($viter1372); + $xfer += $output->writeString($kiter1441); + $xfer += $output->writeString($viter1442); } } $output->writeMapEnd(); @@ -38500,17 +38800,17 @@ class ThriftHiveMetastore_markPartitionForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size1373 = 0; - $_ktype1374 = 0; - $_vtype1375 = 0; - $xfer += $input->readMapBegin($_ktype1374, $_vtype1375, $_size1373); - for ($_i1377 = 0; $_i1377 < $_size1373; ++$_i1377) + $_size1443 = 0; + $_ktype1444 = 0; + $_vtype1445 = 0; + $xfer += $input->readMapBegin($_ktype1444, $_vtype1445, $_size1443); + for ($_i1447 = 0; $_i1447 < $_size1443; ++$_i1447) { - $key1378 = ''; - $val1379 = ''; - $xfer += $input->readString($key1378); - $xfer += $input->readString($val1379); - $this->part_vals[$key1378] = $val1379; + $key1448 = ''; + $val1449 = ''; + $xfer += $input->readString($key1448); + $xfer += $input->readString($val1449); + $this->part_vals[$key1448] = $val1449; } $xfer += $input->readMapEnd(); } else { @@ -38555,10 +38855,10 @@ class ThriftHiveMetastore_markPartitionForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter1380 => $viter1381) + foreach ($this->part_vals as $kiter1450 => $viter1451) { - $xfer += $output->writeString($kiter1380); - $xfer += $output->writeString($viter1381); + $xfer += $output->writeString($kiter1450); + $xfer += $output->writeString($viter1451); } } $output->writeMapEnd(); @@ -38880,17 +39180,17 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size1382 = 0; - $_ktype1383 = 0; - $_vtype1384 = 0; - $xfer += $input->readMapBegin($_ktype1383, $_vtype1384, $_size1382); - for ($_i1386 = 0; $_i1386 < $_size1382; ++$_i1386) + $_size1452 = 0; + $_ktype1453 = 0; + $_vtype1454 = 0; + $xfer += $input->readMapBegin($_ktype1453, $_vtype1454, $_size1452); + for ($_i1456 = 0; $_i1456 < $_size1452; ++$_i1456) { - $key1387 = ''; - $val1388 = ''; - $xfer += $input->readString($key1387); - $xfer += $input->readString($val1388); - $this->part_vals[$key1387] = $val1388; + $key1457 = ''; + $val1458 = ''; + $xfer += $input->readString($key1457); + $xfer += $input->readString($val1458); + $this->part_vals[$key1457] = $val1458; } $xfer += $input->readMapEnd(); } else { @@ -38935,10 +39235,10 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter1389 => $viter1390) + foreach ($this->part_vals as $kiter1459 => $viter1460) { - $xfer += $output->writeString($kiter1389); - $xfer += $output->writeString($viter1390); + $xfer += $output->writeString($kiter1459); + $xfer += $output->writeString($viter1460); } } $output->writeMapEnd(); @@ -44417,14 +44717,14 @@ class ThriftHiveMetastore_get_functions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1391 = 0; - $_etype1394 = 0; - $xfer += $input->readListBegin($_etype1394, $_size1391); - for ($_i1395 = 0; $_i1395 < $_size1391; ++$_i1395) + $_size1461 = 0; + $_etype1464 = 0; + $xfer += $input->readListBegin($_etype1464, $_size1461); + for ($_i1465 = 0; $_i1465 < $_size1461; ++$_i1465) { - $elem1396 = null; - $xfer += $input->readString($elem1396); - $this->success []= $elem1396; + $elem1466 = null; + $xfer += $input->readString($elem1466); + $this->success []= $elem1466; } $xfer += $input->readListEnd(); } else { @@ -44460,9 +44760,9 @@ class ThriftHiveMetastore_get_functions_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1397) + foreach ($this->success as $iter1467) { - $xfer += $output->writeString($iter1397); + $xfer += $output->writeString($iter1467); } } $output->writeListEnd(); @@ -45331,14 +45631,14 @@ class ThriftHiveMetastore_get_role_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1398 = 0; - $_etype1401 = 0; - $xfer += $input->readListBegin($_etype1401, $_size1398); - for ($_i1402 = 0; $_i1402 < $_size1398; ++$_i1402) + $_size1468 = 0; + $_etype1471 = 0; + $xfer += $input->readListBegin($_etype1471, $_size1468); + for ($_i1472 = 0; $_i1472 < $_size1468; ++$_i1472) { - $elem1403 = null; - $xfer += $input->readString($elem1403); - $this->success []= $elem1403; + $elem1473 = null; + $xfer += $input->readString($elem1473); + $this->success []= $elem1473; } $xfer += $input->readListEnd(); } else { @@ -45374,9 +45674,9 @@ class ThriftHiveMetastore_get_role_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1404) + foreach ($this->success as $iter1474) { - $xfer += $output->writeString($iter1404); + $xfer += $output->writeString($iter1474); } } $output->writeListEnd(); @@ -46067,15 +46367,15 @@ class ThriftHiveMetastore_list_roles_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1405 = 0; - $_etype1408 = 0; - $xfer += $input->readListBegin($_etype1408, $_size1405); - for ($_i1409 = 0; $_i1409 < $_size1405; ++$_i1409) + $_size1475 = 0; + $_etype1478 = 0; + $xfer += $input->readListBegin($_etype1478, $_size1475); + for ($_i1479 = 0; $_i1479 < $_size1475; ++$_i1479) { - $elem1410 = null; - $elem1410 = new \metastore\Role(); - $xfer += $elem1410->read($input); - $this->success []= $elem1410; + $elem1480 = null; + $elem1480 = new \metastore\Role(); + $xfer += $elem1480->read($input); + $this->success []= $elem1480; } $xfer += $input->readListEnd(); } else { @@ -46111,9 +46411,9 @@ class ThriftHiveMetastore_list_roles_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1411) + foreach ($this->success as $iter1481) { - $xfer += $iter1411->write($output); + $xfer += $iter1481->write($output); } } $output->writeListEnd(); @@ -46775,14 +47075,14 @@ class ThriftHiveMetastore_get_privilege_set_args { case 3: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1412 = 0; - $_etype1415 = 0; - $xfer += $input->readListBegin($_etype1415, $_size1412); - for ($_i1416 = 0; $_i1416 < $_size1412; ++$_i1416) + $_size1482 = 0; + $_etype1485 = 0; + $xfer += $input->readListBegin($_etype1485, $_size1482); + for ($_i1486 = 0; $_i1486 < $_size1482; ++$_i1486) { - $elem1417 = null; - $xfer += $input->readString($elem1417); - $this->group_names []= $elem1417; + $elem1487 = null; + $xfer += $input->readString($elem1487); + $this->group_names []= $elem1487; } $xfer += $input->readListEnd(); } else { @@ -46823,9 +47123,9 @@ class ThriftHiveMetastore_get_privilege_set_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1418) + foreach ($this->group_names as $iter1488) { - $xfer += $output->writeString($iter1418); + $xfer += $output->writeString($iter1488); } } $output->writeListEnd(); @@ -47133,15 +47433,15 @@ class ThriftHiveMetastore_list_privileges_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1419 = 0; - $_etype1422 = 0; - $xfer += $input->readListBegin($_etype1422, $_size1419); - for ($_i1423 = 0; $_i1423 < $_size1419; ++$_i1423) + $_size1489 = 0; + $_etype1492 = 0; + $xfer += $input->readListBegin($_etype1492, $_size1489); + for ($_i1493 = 0; $_i1493 < $_size1489; ++$_i1493) { - $elem1424 = null; - $elem1424 = new \metastore\HiveObjectPrivilege(); - $xfer += $elem1424->read($input); - $this->success []= $elem1424; + $elem1494 = null; + $elem1494 = new \metastore\HiveObjectPrivilege(); + $xfer += $elem1494->read($input); + $this->success []= $elem1494; } $xfer += $input->readListEnd(); } else { @@ -47177,9 +47477,9 @@ class ThriftHiveMetastore_list_privileges_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1425) + foreach ($this->success as $iter1495) { - $xfer += $iter1425->write($output); + $xfer += $iter1495->write($output); } } $output->writeListEnd(); @@ -48047,14 +48347,14 @@ class ThriftHiveMetastore_set_ugi_args { case 2: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1426 = 0; - $_etype1429 = 0; - $xfer += $input->readListBegin($_etype1429, $_size1426); - for ($_i1430 = 0; $_i1430 < $_size1426; ++$_i1430) + $_size1496 = 0; + $_etype1499 = 0; + $xfer += $input->readListBegin($_etype1499, $_size1496); + for ($_i1500 = 0; $_i1500 < $_size1496; ++$_i1500) { - $elem1431 = null; - $xfer += $input->readString($elem1431); - $this->group_names []= $elem1431; + $elem1501 = null; + $xfer += $input->readString($elem1501); + $this->group_names []= $elem1501; } $xfer += $input->readListEnd(); } else { @@ -48087,9 +48387,9 @@ class ThriftHiveMetastore_set_ugi_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1432) + foreach ($this->group_names as $iter1502) { - $xfer += $output->writeString($iter1432); + $xfer += $output->writeString($iter1502); } } $output->writeListEnd(); @@ -48165,14 +48465,14 @@ class ThriftHiveMetastore_set_ugi_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1433 = 0; - $_etype1436 = 0; - $xfer += $input->readListBegin($_etype1436, $_size1433); - for ($_i1437 = 0; $_i1437 < $_size1433; ++$_i1437) + $_size1503 = 0; + $_etype1506 = 0; + $xfer += $input->readListBegin($_etype1506, $_size1503); + for ($_i1507 = 0; $_i1507 < $_size1503; ++$_i1507) { - $elem1438 = null; - $xfer += $input->readString($elem1438); - $this->success []= $elem1438; + $elem1508 = null; + $xfer += $input->readString($elem1508); + $this->success []= $elem1508; } $xfer += $input->readListEnd(); } else { @@ -48208,9 +48508,9 @@ class ThriftHiveMetastore_set_ugi_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1439) + foreach ($this->success as $iter1509) { - $xfer += $output->writeString($iter1439); + $xfer += $output->writeString($iter1509); } } $output->writeListEnd(); @@ -49327,14 +49627,14 @@ class ThriftHiveMetastore_get_all_token_identifiers_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1440 = 0; - $_etype1443 = 0; - $xfer += $input->readListBegin($_etype1443, $_size1440); - for ($_i1444 = 0; $_i1444 < $_size1440; ++$_i1444) + $_size1510 = 0; + $_etype1513 = 0; + $xfer += $input->readListBegin($_etype1513, $_size1510); + for ($_i1514 = 0; $_i1514 < $_size1510; ++$_i1514) { - $elem1445 = null; - $xfer += $input->readString($elem1445); - $this->success []= $elem1445; + $elem1515 = null; + $xfer += $input->readString($elem1515); + $this->success []= $elem1515; } $xfer += $input->readListEnd(); } else { @@ -49362,9 +49662,9 @@ class ThriftHiveMetastore_get_all_token_identifiers_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1446) + foreach ($this->success as $iter1516) { - $xfer += $output->writeString($iter1446); + $xfer += $output->writeString($iter1516); } } $output->writeListEnd(); @@ -50003,14 +50303,14 @@ class ThriftHiveMetastore_get_master_keys_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1447 = 0; - $_etype1450 = 0; - $xfer += $input->readListBegin($_etype1450, $_size1447); - for ($_i1451 = 0; $_i1451 < $_size1447; ++$_i1451) + $_size1517 = 0; + $_etype1520 = 0; + $xfer += $input->readListBegin($_etype1520, $_size1517); + for ($_i1521 = 0; $_i1521 < $_size1517; ++$_i1521) { - $elem1452 = null; - $xfer += $input->readString($elem1452); - $this->success []= $elem1452; + $elem1522 = null; + $xfer += $input->readString($elem1522); + $this->success []= $elem1522; } $xfer += $input->readListEnd(); } else { @@ -50038,9 +50338,9 @@ class ThriftHiveMetastore_get_master_keys_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1453) + foreach ($this->success as $iter1523) { - $xfer += $output->writeString($iter1453); + $xfer += $output->writeString($iter1523); } } $output->writeListEnd(); @@ -53794,14 +54094,14 @@ class ThriftHiveMetastore_find_columns_with_stats_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1454 = 0; - $_etype1457 = 0; - $xfer += $input->readListBegin($_etype1457, $_size1454); - for ($_i1458 = 0; $_i1458 < $_size1454; ++$_i1458) + $_size1524 = 0; + $_etype1527 = 0; + $xfer += $input->readListBegin($_etype1527, $_size1524); + for ($_i1528 = 0; $_i1528 < $_size1524; ++$_i1528) { - $elem1459 = null; - $xfer += $input->readString($elem1459); - $this->success []= $elem1459; + $elem1529 = null; + $xfer += $input->readString($elem1529); + $this->success []= $elem1529; } $xfer += $input->readListEnd(); } else { @@ -53829,9 +54129,9 @@ class ThriftHiveMetastore_find_columns_with_stats_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1460) + foreach ($this->success as $iter1530) { - $xfer += $output->writeString($iter1460); + $xfer += $output->writeString($iter1530); } } $output->writeListEnd(); @@ -62002,15 +62302,15 @@ class ThriftHiveMetastore_get_schema_all_versions_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) + $_size1531 = 0; + $_etype1534 = 0; + $xfer += $input->readListBegin($_etype1534, $_size1531); + for ($_i1535 = 0; $_i1535 < $_size1531; ++$_i1535) { - $elem1466 = null; - $elem1466 = new \metastore\SchemaVersion(); - $xfer += $elem1466->read($input); - $this->success []= $elem1466; + $elem1536 = null; + $elem1536 = new \metastore\SchemaVersion(); + $xfer += $elem1536->read($input); + $this->success []= $elem1536; } $xfer += $input->readListEnd(); } else { @@ -62054,9 +62354,9 @@ class ThriftHiveMetastore_get_schema_all_versions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1467) + foreach ($this->success as $iter1537) { - $xfer += $iter1467->write($output); + $xfer += $iter1537->write($output); } } $output->writeListEnd(); @@ -63925,15 +64225,15 @@ class ThriftHiveMetastore_get_runtime_stats_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) + $_size1538 = 0; + $_etype1541 = 0; + $xfer += $input->readListBegin($_etype1541, $_size1538); + for ($_i1542 = 0; $_i1542 < $_size1538; ++$_i1542) { - $elem1473 = null; - $elem1473 = new \metastore\RuntimeStat(); - $xfer += $elem1473->read($input); - $this->success []= $elem1473; + $elem1543 = null; + $elem1543 = new \metastore\RuntimeStat(); + $xfer += $elem1543->read($input); + $this->success []= $elem1543; } $xfer += $input->readListEnd(); } else { @@ -63969,9 +64269,9 @@ class ThriftHiveMetastore_get_runtime_stats_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1474) + foreach ($this->success as $iter1544) { - $xfer += $iter1474->write($output); + $xfer += $iter1544->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 a09c1d540c..6e1d41b8ae 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 @@ -7085,6 +7085,14 @@ class Table { * @var int */ public $accessType = null; + /** + * @var string[] + */ + public $requiredReadCapabilities = null; + /** + * @var string[] + */ + public $requiredWriteCapabilities = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -7198,6 +7206,22 @@ class Table { 'var' => 'accessType', 'type' => TType::BYTE, ), + 24 => array( + 'var' => 'requiredReadCapabilities', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + 25 => array( + 'var' => 'requiredWriteCapabilities', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), ); } if (is_array($vals)) { @@ -7270,6 +7294,12 @@ class Table { if (isset($vals['accessType'])) { $this->accessType = $vals['accessType']; } + if (isset($vals['requiredReadCapabilities'])) { + $this->requiredReadCapabilities = $vals['requiredReadCapabilities']; + } + if (isset($vals['requiredWriteCapabilities'])) { + $this->requiredWriteCapabilities = $vals['requiredWriteCapabilities']; + } } } @@ -7481,6 +7511,40 @@ class Table { $xfer += $input->skip($ftype); } break; + case 24: + if ($ftype == TType::LST) { + $this->requiredReadCapabilities = array(); + $_size203 = 0; + $_etype206 = 0; + $xfer += $input->readListBegin($_etype206, $_size203); + for ($_i207 = 0; $_i207 < $_size203; ++$_i207) + { + $elem208 = null; + $xfer += $input->readString($elem208); + $this->requiredReadCapabilities []= $elem208; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 25: + if ($ftype == TType::LST) { + $this->requiredWriteCapabilities = array(); + $_size209 = 0; + $_etype212 = 0; + $xfer += $input->readListBegin($_etype212, $_size209); + for ($_i213 = 0; $_i213 < $_size209; ++$_i213) + { + $elem214 = null; + $xfer += $input->readString($elem214); + $this->requiredWriteCapabilities []= $elem214; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -7545,9 +7609,9 @@ class Table { { $output->writeListBegin(TType::STRUCT, count($this->partitionKeys)); { - foreach ($this->partitionKeys as $iter203) + foreach ($this->partitionKeys as $iter215) { - $xfer += $iter203->write($output); + $xfer += $iter215->write($output); } } $output->writeListEnd(); @@ -7562,10 +7626,10 @@ class Table { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters)); { - foreach ($this->parameters as $kiter204 => $viter205) + foreach ($this->parameters as $kiter216 => $viter217) { - $xfer += $output->writeString($kiter204); - $xfer += $output->writeString($viter205); + $xfer += $output->writeString($kiter216); + $xfer += $output->writeString($viter217); } } $output->writeMapEnd(); @@ -7646,6 +7710,40 @@ class Table { $xfer += $output->writeByte($this->accessType); $xfer += $output->writeFieldEnd(); } + if ($this->requiredReadCapabilities !== null) { + if (!is_array($this->requiredReadCapabilities)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('requiredReadCapabilities', TType::LST, 24); + { + $output->writeListBegin(TType::STRING, count($this->requiredReadCapabilities)); + { + foreach ($this->requiredReadCapabilities as $iter218) + { + $xfer += $output->writeString($iter218); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->requiredWriteCapabilities !== null) { + if (!is_array($this->requiredWriteCapabilities)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('requiredWriteCapabilities', TType::LST, 25); + { + $output->writeListBegin(TType::STRING, count($this->requiredWriteCapabilities)); + { + foreach ($this->requiredWriteCapabilities as $iter219) + { + $xfer += $output->writeString($iter219); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -7835,14 +7933,14 @@ class Partition { case 1: if ($ftype == TType::LST) { $this->values = array(); - $_size206 = 0; - $_etype209 = 0; - $xfer += $input->readListBegin($_etype209, $_size206); - for ($_i210 = 0; $_i210 < $_size206; ++$_i210) + $_size220 = 0; + $_etype223 = 0; + $xfer += $input->readListBegin($_etype223, $_size220); + for ($_i224 = 0; $_i224 < $_size220; ++$_i224) { - $elem211 = null; - $xfer += $input->readString($elem211); - $this->values []= $elem211; + $elem225 = null; + $xfer += $input->readString($elem225); + $this->values []= $elem225; } $xfer += $input->readListEnd(); } else { @@ -7888,17 +7986,17 @@ class Partition { case 7: if ($ftype == TType::MAP) { $this->parameters = array(); - $_size212 = 0; - $_ktype213 = 0; - $_vtype214 = 0; - $xfer += $input->readMapBegin($_ktype213, $_vtype214, $_size212); - for ($_i216 = 0; $_i216 < $_size212; ++$_i216) + $_size226 = 0; + $_ktype227 = 0; + $_vtype228 = 0; + $xfer += $input->readMapBegin($_ktype227, $_vtype228, $_size226); + for ($_i230 = 0; $_i230 < $_size226; ++$_i230) { - $key217 = ''; - $val218 = ''; - $xfer += $input->readString($key217); - $xfer += $input->readString($val218); - $this->parameters[$key217] = $val218; + $key231 = ''; + $val232 = ''; + $xfer += $input->readString($key231); + $xfer += $input->readString($val232); + $this->parameters[$key231] = $val232; } $xfer += $input->readMapEnd(); } else { @@ -7963,9 +8061,9 @@ class Partition { { $output->writeListBegin(TType::STRING, count($this->values)); { - foreach ($this->values as $iter219) + foreach ($this->values as $iter233) { - $xfer += $output->writeString($iter219); + $xfer += $output->writeString($iter233); } } $output->writeListEnd(); @@ -8008,10 +8106,10 @@ class Partition { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters)); { - foreach ($this->parameters as $kiter220 => $viter221) + foreach ($this->parameters as $kiter234 => $viter235) { - $xfer += $output->writeString($kiter220); - $xfer += $output->writeString($viter221); + $xfer += $output->writeString($kiter234); + $xfer += $output->writeString($viter235); } } $output->writeMapEnd(); @@ -8170,14 +8268,14 @@ class PartitionWithoutSD { case 1: if ($ftype == TType::LST) { $this->values = array(); - $_size222 = 0; - $_etype225 = 0; - $xfer += $input->readListBegin($_etype225, $_size222); - for ($_i226 = 0; $_i226 < $_size222; ++$_i226) + $_size236 = 0; + $_etype239 = 0; + $xfer += $input->readListBegin($_etype239, $_size236); + for ($_i240 = 0; $_i240 < $_size236; ++$_i240) { - $elem227 = null; - $xfer += $input->readString($elem227); - $this->values []= $elem227; + $elem241 = null; + $xfer += $input->readString($elem241); + $this->values []= $elem241; } $xfer += $input->readListEnd(); } else { @@ -8208,17 +8306,17 @@ class PartitionWithoutSD { case 5: if ($ftype == TType::MAP) { $this->parameters = array(); - $_size228 = 0; - $_ktype229 = 0; - $_vtype230 = 0; - $xfer += $input->readMapBegin($_ktype229, $_vtype230, $_size228); - for ($_i232 = 0; $_i232 < $_size228; ++$_i232) + $_size242 = 0; + $_ktype243 = 0; + $_vtype244 = 0; + $xfer += $input->readMapBegin($_ktype243, $_vtype244, $_size242); + for ($_i246 = 0; $_i246 < $_size242; ++$_i246) { - $key233 = ''; - $val234 = ''; - $xfer += $input->readString($key233); - $xfer += $input->readString($val234); - $this->parameters[$key233] = $val234; + $key247 = ''; + $val248 = ''; + $xfer += $input->readString($key247); + $xfer += $input->readString($val248); + $this->parameters[$key247] = $val248; } $xfer += $input->readMapEnd(); } else { @@ -8254,9 +8352,9 @@ class PartitionWithoutSD { { $output->writeListBegin(TType::STRING, count($this->values)); { - foreach ($this->values as $iter235) + foreach ($this->values as $iter249) { - $xfer += $output->writeString($iter235); + $xfer += $output->writeString($iter249); } } $output->writeListEnd(); @@ -8286,10 +8384,10 @@ class PartitionWithoutSD { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters)); { - foreach ($this->parameters as $kiter236 => $viter237) + foreach ($this->parameters as $kiter250 => $viter251) { - $xfer += $output->writeString($kiter236); - $xfer += $output->writeString($viter237); + $xfer += $output->writeString($kiter250); + $xfer += $output->writeString($viter251); } } $output->writeMapEnd(); @@ -8374,15 +8472,15 @@ class PartitionSpecWithSharedSD { case 1: if ($ftype == TType::LST) { $this->partitions = array(); - $_size238 = 0; - $_etype241 = 0; - $xfer += $input->readListBegin($_etype241, $_size238); - for ($_i242 = 0; $_i242 < $_size238; ++$_i242) + $_size252 = 0; + $_etype255 = 0; + $xfer += $input->readListBegin($_etype255, $_size252); + for ($_i256 = 0; $_i256 < $_size252; ++$_i256) { - $elem243 = null; - $elem243 = new \metastore\PartitionWithoutSD(); - $xfer += $elem243->read($input); - $this->partitions []= $elem243; + $elem257 = null; + $elem257 = new \metastore\PartitionWithoutSD(); + $xfer += $elem257->read($input); + $this->partitions []= $elem257; } $xfer += $input->readListEnd(); } else { @@ -8418,9 +8516,9 @@ class PartitionSpecWithSharedSD { { $output->writeListBegin(TType::STRUCT, count($this->partitions)); { - foreach ($this->partitions as $iter244) + foreach ($this->partitions as $iter258) { - $xfer += $iter244->write($output); + $xfer += $iter258->write($output); } } $output->writeListEnd(); @@ -10404,15 +10502,15 @@ class ColumnStatistics { case 2: if ($ftype == TType::LST) { $this->statsObj = array(); - $_size245 = 0; - $_etype248 = 0; - $xfer += $input->readListBegin($_etype248, $_size245); - for ($_i249 = 0; $_i249 < $_size245; ++$_i249) + $_size259 = 0; + $_etype262 = 0; + $xfer += $input->readListBegin($_etype262, $_size259); + for ($_i263 = 0; $_i263 < $_size259; ++$_i263) { - $elem250 = null; - $elem250 = new \metastore\ColumnStatisticsObj(); - $xfer += $elem250->read($input); - $this->statsObj []= $elem250; + $elem264 = null; + $elem264 = new \metastore\ColumnStatisticsObj(); + $xfer += $elem264->read($input); + $this->statsObj []= $elem264; } $xfer += $input->readListEnd(); } else { @@ -10455,9 +10553,9 @@ class ColumnStatistics { { $output->writeListBegin(TType::STRUCT, count($this->statsObj)); { - foreach ($this->statsObj as $iter251) + foreach ($this->statsObj as $iter265) { - $xfer += $iter251->write($output); + $xfer += $iter265->write($output); } } $output->writeListEnd(); @@ -10527,15 +10625,15 @@ class PartitionListComposingSpec { case 1: if ($ftype == TType::LST) { $this->partitions = array(); - $_size252 = 0; - $_etype255 = 0; - $xfer += $input->readListBegin($_etype255, $_size252); - for ($_i256 = 0; $_i256 < $_size252; ++$_i256) + $_size266 = 0; + $_etype269 = 0; + $xfer += $input->readListBegin($_etype269, $_size266); + for ($_i270 = 0; $_i270 < $_size266; ++$_i270) { - $elem257 = null; - $elem257 = new \metastore\Partition(); - $xfer += $elem257->read($input); - $this->partitions []= $elem257; + $elem271 = null; + $elem271 = new \metastore\Partition(); + $xfer += $elem271->read($input); + $this->partitions []= $elem271; } $xfer += $input->readListEnd(); } else { @@ -10563,9 +10661,9 @@ class PartitionListComposingSpec { { $output->writeListBegin(TType::STRUCT, count($this->partitions)); { - foreach ($this->partitions as $iter258) + foreach ($this->partitions as $iter272) { - $xfer += $iter258->write($output); + $xfer += $iter272->write($output); } } $output->writeListEnd(); @@ -10898,15 +10996,15 @@ class AggrStats { case 1: if ($ftype == TType::LST) { $this->colStats = array(); - $_size259 = 0; - $_etype262 = 0; - $xfer += $input->readListBegin($_etype262, $_size259); - for ($_i263 = 0; $_i263 < $_size259; ++$_i263) + $_size273 = 0; + $_etype276 = 0; + $xfer += $input->readListBegin($_etype276, $_size273); + for ($_i277 = 0; $_i277 < $_size273; ++$_i277) { - $elem264 = null; - $elem264 = new \metastore\ColumnStatisticsObj(); - $xfer += $elem264->read($input); - $this->colStats []= $elem264; + $elem278 = null; + $elem278 = new \metastore\ColumnStatisticsObj(); + $xfer += $elem278->read($input); + $this->colStats []= $elem278; } $xfer += $input->readListEnd(); } else { @@ -10948,9 +11046,9 @@ class AggrStats { { $output->writeListBegin(TType::STRUCT, count($this->colStats)); { - foreach ($this->colStats as $iter265) + foreach ($this->colStats as $iter279) { - $xfer += $iter265->write($output); + $xfer += $iter279->write($output); } } $output->writeListEnd(); @@ -11058,15 +11156,15 @@ class SetPartitionsStatsRequest { case 1: if ($ftype == TType::LST) { $this->colStats = array(); - $_size266 = 0; - $_etype269 = 0; - $xfer += $input->readListBegin($_etype269, $_size266); - for ($_i270 = 0; $_i270 < $_size266; ++$_i270) + $_size280 = 0; + $_etype283 = 0; + $xfer += $input->readListBegin($_etype283, $_size280); + for ($_i284 = 0; $_i284 < $_size280; ++$_i284) { - $elem271 = null; - $elem271 = new \metastore\ColumnStatistics(); - $xfer += $elem271->read($input); - $this->colStats []= $elem271; + $elem285 = null; + $elem285 = new \metastore\ColumnStatistics(); + $xfer += $elem285->read($input); + $this->colStats []= $elem285; } $xfer += $input->readListEnd(); } else { @@ -11115,9 +11213,9 @@ class SetPartitionsStatsRequest { { $output->writeListBegin(TType::STRUCT, count($this->colStats)); { - foreach ($this->colStats as $iter272) + foreach ($this->colStats as $iter286) { - $xfer += $iter272->write($output); + $xfer += $iter286->write($output); } } $output->writeListEnd(); @@ -11291,15 +11389,15 @@ class Schema { case 1: if ($ftype == TType::LST) { $this->fieldSchemas = array(); - $_size273 = 0; - $_etype276 = 0; - $xfer += $input->readListBegin($_etype276, $_size273); - for ($_i277 = 0; $_i277 < $_size273; ++$_i277) + $_size287 = 0; + $_etype290 = 0; + $xfer += $input->readListBegin($_etype290, $_size287); + for ($_i291 = 0; $_i291 < $_size287; ++$_i291) { - $elem278 = null; - $elem278 = new \metastore\FieldSchema(); - $xfer += $elem278->read($input); - $this->fieldSchemas []= $elem278; + $elem292 = null; + $elem292 = new \metastore\FieldSchema(); + $xfer += $elem292->read($input); + $this->fieldSchemas []= $elem292; } $xfer += $input->readListEnd(); } else { @@ -11309,17 +11407,17 @@ class Schema { case 2: if ($ftype == TType::MAP) { $this->properties = array(); - $_size279 = 0; - $_ktype280 = 0; - $_vtype281 = 0; - $xfer += $input->readMapBegin($_ktype280, $_vtype281, $_size279); - for ($_i283 = 0; $_i283 < $_size279; ++$_i283) + $_size293 = 0; + $_ktype294 = 0; + $_vtype295 = 0; + $xfer += $input->readMapBegin($_ktype294, $_vtype295, $_size293); + for ($_i297 = 0; $_i297 < $_size293; ++$_i297) { - $key284 = ''; - $val285 = ''; - $xfer += $input->readString($key284); - $xfer += $input->readString($val285); - $this->properties[$key284] = $val285; + $key298 = ''; + $val299 = ''; + $xfer += $input->readString($key298); + $xfer += $input->readString($val299); + $this->properties[$key298] = $val299; } $xfer += $input->readMapEnd(); } else { @@ -11347,9 +11445,9 @@ class Schema { { $output->writeListBegin(TType::STRUCT, count($this->fieldSchemas)); { - foreach ($this->fieldSchemas as $iter286) + foreach ($this->fieldSchemas as $iter300) { - $xfer += $iter286->write($output); + $xfer += $iter300->write($output); } } $output->writeListEnd(); @@ -11364,10 +11462,10 @@ class Schema { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->properties)); { - foreach ($this->properties as $kiter287 => $viter288) + foreach ($this->properties as $kiter301 => $viter302) { - $xfer += $output->writeString($kiter287); - $xfer += $output->writeString($viter288); + $xfer += $output->writeString($kiter301); + $xfer += $output->writeString($viter302); } } $output->writeMapEnd(); @@ -11435,17 +11533,17 @@ class EnvironmentContext { case 1: if ($ftype == TType::MAP) { $this->properties = array(); - $_size289 = 0; - $_ktype290 = 0; - $_vtype291 = 0; - $xfer += $input->readMapBegin($_ktype290, $_vtype291, $_size289); - for ($_i293 = 0; $_i293 < $_size289; ++$_i293) + $_size303 = 0; + $_ktype304 = 0; + $_vtype305 = 0; + $xfer += $input->readMapBegin($_ktype304, $_vtype305, $_size303); + for ($_i307 = 0; $_i307 < $_size303; ++$_i307) { - $key294 = ''; - $val295 = ''; - $xfer += $input->readString($key294); - $xfer += $input->readString($val295); - $this->properties[$key294] = $val295; + $key308 = ''; + $val309 = ''; + $xfer += $input->readString($key308); + $xfer += $input->readString($val309); + $this->properties[$key308] = $val309; } $xfer += $input->readMapEnd(); } else { @@ -11473,10 +11571,10 @@ class EnvironmentContext { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->properties)); { - foreach ($this->properties as $kiter296 => $viter297) + foreach ($this->properties as $kiter310 => $viter311) { - $xfer += $output->writeString($kiter296); - $xfer += $output->writeString($viter297); + $xfer += $output->writeString($kiter310); + $xfer += $output->writeString($viter311); } } $output->writeMapEnd(); @@ -11662,15 +11760,15 @@ class PrimaryKeysResponse { case 1: if ($ftype == TType::LST) { $this->primaryKeys = array(); - $_size298 = 0; - $_etype301 = 0; - $xfer += $input->readListBegin($_etype301, $_size298); - for ($_i302 = 0; $_i302 < $_size298; ++$_i302) + $_size312 = 0; + $_etype315 = 0; + $xfer += $input->readListBegin($_etype315, $_size312); + for ($_i316 = 0; $_i316 < $_size312; ++$_i316) { - $elem303 = null; - $elem303 = new \metastore\SQLPrimaryKey(); - $xfer += $elem303->read($input); - $this->primaryKeys []= $elem303; + $elem317 = null; + $elem317 = new \metastore\SQLPrimaryKey(); + $xfer += $elem317->read($input); + $this->primaryKeys []= $elem317; } $xfer += $input->readListEnd(); } else { @@ -11698,9 +11796,9 @@ class PrimaryKeysResponse { { $output->writeListBegin(TType::STRUCT, count($this->primaryKeys)); { - foreach ($this->primaryKeys as $iter304) + foreach ($this->primaryKeys as $iter318) { - $xfer += $iter304->write($output); + $xfer += $iter318->write($output); } } $output->writeListEnd(); @@ -11932,15 +12030,15 @@ class ForeignKeysResponse { case 1: if ($ftype == TType::LST) { $this->foreignKeys = array(); - $_size305 = 0; - $_etype308 = 0; - $xfer += $input->readListBegin($_etype308, $_size305); - for ($_i309 = 0; $_i309 < $_size305; ++$_i309) + $_size319 = 0; + $_etype322 = 0; + $xfer += $input->readListBegin($_etype322, $_size319); + for ($_i323 = 0; $_i323 < $_size319; ++$_i323) { - $elem310 = null; - $elem310 = new \metastore\SQLForeignKey(); - $xfer += $elem310->read($input); - $this->foreignKeys []= $elem310; + $elem324 = null; + $elem324 = new \metastore\SQLForeignKey(); + $xfer += $elem324->read($input); + $this->foreignKeys []= $elem324; } $xfer += $input->readListEnd(); } else { @@ -11968,9 +12066,9 @@ class ForeignKeysResponse { { $output->writeListBegin(TType::STRUCT, count($this->foreignKeys)); { - foreach ($this->foreignKeys as $iter311) + foreach ($this->foreignKeys as $iter325) { - $xfer += $iter311->write($output); + $xfer += $iter325->write($output); } } $output->writeListEnd(); @@ -12156,15 +12254,15 @@ class UniqueConstraintsResponse { case 1: if ($ftype == TType::LST) { $this->uniqueConstraints = array(); - $_size312 = 0; - $_etype315 = 0; - $xfer += $input->readListBegin($_etype315, $_size312); - for ($_i316 = 0; $_i316 < $_size312; ++$_i316) + $_size326 = 0; + $_etype329 = 0; + $xfer += $input->readListBegin($_etype329, $_size326); + for ($_i330 = 0; $_i330 < $_size326; ++$_i330) { - $elem317 = null; - $elem317 = new \metastore\SQLUniqueConstraint(); - $xfer += $elem317->read($input); - $this->uniqueConstraints []= $elem317; + $elem331 = null; + $elem331 = new \metastore\SQLUniqueConstraint(); + $xfer += $elem331->read($input); + $this->uniqueConstraints []= $elem331; } $xfer += $input->readListEnd(); } else { @@ -12192,9 +12290,9 @@ class UniqueConstraintsResponse { { $output->writeListBegin(TType::STRUCT, count($this->uniqueConstraints)); { - foreach ($this->uniqueConstraints as $iter318) + foreach ($this->uniqueConstraints as $iter332) { - $xfer += $iter318->write($output); + $xfer += $iter332->write($output); } } $output->writeListEnd(); @@ -12380,15 +12478,15 @@ class NotNullConstraintsResponse { case 1: if ($ftype == TType::LST) { $this->notNullConstraints = array(); - $_size319 = 0; - $_etype322 = 0; - $xfer += $input->readListBegin($_etype322, $_size319); - for ($_i323 = 0; $_i323 < $_size319; ++$_i323) + $_size333 = 0; + $_etype336 = 0; + $xfer += $input->readListBegin($_etype336, $_size333); + for ($_i337 = 0; $_i337 < $_size333; ++$_i337) { - $elem324 = null; - $elem324 = new \metastore\SQLNotNullConstraint(); - $xfer += $elem324->read($input); - $this->notNullConstraints []= $elem324; + $elem338 = null; + $elem338 = new \metastore\SQLNotNullConstraint(); + $xfer += $elem338->read($input); + $this->notNullConstraints []= $elem338; } $xfer += $input->readListEnd(); } else { @@ -12416,9 +12514,9 @@ class NotNullConstraintsResponse { { $output->writeListBegin(TType::STRUCT, count($this->notNullConstraints)); { - foreach ($this->notNullConstraints as $iter325) + foreach ($this->notNullConstraints as $iter339) { - $xfer += $iter325->write($output); + $xfer += $iter339->write($output); } } $output->writeListEnd(); @@ -12604,15 +12702,15 @@ class DefaultConstraintsResponse { case 1: if ($ftype == TType::LST) { $this->defaultConstraints = array(); - $_size326 = 0; - $_etype329 = 0; - $xfer += $input->readListBegin($_etype329, $_size326); - for ($_i330 = 0; $_i330 < $_size326; ++$_i330) + $_size340 = 0; + $_etype343 = 0; + $xfer += $input->readListBegin($_etype343, $_size340); + for ($_i344 = 0; $_i344 < $_size340; ++$_i344) { - $elem331 = null; - $elem331 = new \metastore\SQLDefaultConstraint(); - $xfer += $elem331->read($input); - $this->defaultConstraints []= $elem331; + $elem345 = null; + $elem345 = new \metastore\SQLDefaultConstraint(); + $xfer += $elem345->read($input); + $this->defaultConstraints []= $elem345; } $xfer += $input->readListEnd(); } else { @@ -12640,9 +12738,9 @@ class DefaultConstraintsResponse { { $output->writeListBegin(TType::STRUCT, count($this->defaultConstraints)); { - foreach ($this->defaultConstraints as $iter332) + foreach ($this->defaultConstraints as $iter346) { - $xfer += $iter332->write($output); + $xfer += $iter346->write($output); } } $output->writeListEnd(); @@ -12828,15 +12926,15 @@ class CheckConstraintsResponse { case 1: if ($ftype == TType::LST) { $this->checkConstraints = array(); - $_size333 = 0; - $_etype336 = 0; - $xfer += $input->readListBegin($_etype336, $_size333); - for ($_i337 = 0; $_i337 < $_size333; ++$_i337) + $_size347 = 0; + $_etype350 = 0; + $xfer += $input->readListBegin($_etype350, $_size347); + for ($_i351 = 0; $_i351 < $_size347; ++$_i351) { - $elem338 = null; - $elem338 = new \metastore\SQLCheckConstraint(); - $xfer += $elem338->read($input); - $this->checkConstraints []= $elem338; + $elem352 = null; + $elem352 = new \metastore\SQLCheckConstraint(); + $xfer += $elem352->read($input); + $this->checkConstraints []= $elem352; } $xfer += $input->readListEnd(); } else { @@ -12864,9 +12962,9 @@ class CheckConstraintsResponse { { $output->writeListBegin(TType::STRUCT, count($this->checkConstraints)); { - foreach ($this->checkConstraints as $iter339) + foreach ($this->checkConstraints as $iter353) { - $xfer += $iter339->write($output); + $xfer += $iter353->write($output); } } $output->writeListEnd(); @@ -13075,15 +13173,15 @@ class AddPrimaryKeyRequest { case 1: if ($ftype == TType::LST) { $this->primaryKeyCols = array(); - $_size340 = 0; - $_etype343 = 0; - $xfer += $input->readListBegin($_etype343, $_size340); - for ($_i344 = 0; $_i344 < $_size340; ++$_i344) + $_size354 = 0; + $_etype357 = 0; + $xfer += $input->readListBegin($_etype357, $_size354); + for ($_i358 = 0; $_i358 < $_size354; ++$_i358) { - $elem345 = null; - $elem345 = new \metastore\SQLPrimaryKey(); - $xfer += $elem345->read($input); - $this->primaryKeyCols []= $elem345; + $elem359 = null; + $elem359 = new \metastore\SQLPrimaryKey(); + $xfer += $elem359->read($input); + $this->primaryKeyCols []= $elem359; } $xfer += $input->readListEnd(); } else { @@ -13111,9 +13209,9 @@ class AddPrimaryKeyRequest { { $output->writeListBegin(TType::STRUCT, count($this->primaryKeyCols)); { - foreach ($this->primaryKeyCols as $iter346) + foreach ($this->primaryKeyCols as $iter360) { - $xfer += $iter346->write($output); + $xfer += $iter360->write($output); } } $output->writeListEnd(); @@ -13178,15 +13276,15 @@ class AddForeignKeyRequest { case 1: if ($ftype == TType::LST) { $this->foreignKeyCols = array(); - $_size347 = 0; - $_etype350 = 0; - $xfer += $input->readListBegin($_etype350, $_size347); - for ($_i351 = 0; $_i351 < $_size347; ++$_i351) + $_size361 = 0; + $_etype364 = 0; + $xfer += $input->readListBegin($_etype364, $_size361); + for ($_i365 = 0; $_i365 < $_size361; ++$_i365) { - $elem352 = null; - $elem352 = new \metastore\SQLForeignKey(); - $xfer += $elem352->read($input); - $this->foreignKeyCols []= $elem352; + $elem366 = null; + $elem366 = new \metastore\SQLForeignKey(); + $xfer += $elem366->read($input); + $this->foreignKeyCols []= $elem366; } $xfer += $input->readListEnd(); } else { @@ -13214,9 +13312,9 @@ class AddForeignKeyRequest { { $output->writeListBegin(TType::STRUCT, count($this->foreignKeyCols)); { - foreach ($this->foreignKeyCols as $iter353) + foreach ($this->foreignKeyCols as $iter367) { - $xfer += $iter353->write($output); + $xfer += $iter367->write($output); } } $output->writeListEnd(); @@ -13281,15 +13379,15 @@ class AddUniqueConstraintRequest { case 1: if ($ftype == TType::LST) { $this->uniqueConstraintCols = array(); - $_size354 = 0; - $_etype357 = 0; - $xfer += $input->readListBegin($_etype357, $_size354); - for ($_i358 = 0; $_i358 < $_size354; ++$_i358) + $_size368 = 0; + $_etype371 = 0; + $xfer += $input->readListBegin($_etype371, $_size368); + for ($_i372 = 0; $_i372 < $_size368; ++$_i372) { - $elem359 = null; - $elem359 = new \metastore\SQLUniqueConstraint(); - $xfer += $elem359->read($input); - $this->uniqueConstraintCols []= $elem359; + $elem373 = null; + $elem373 = new \metastore\SQLUniqueConstraint(); + $xfer += $elem373->read($input); + $this->uniqueConstraintCols []= $elem373; } $xfer += $input->readListEnd(); } else { @@ -13317,9 +13415,9 @@ class AddUniqueConstraintRequest { { $output->writeListBegin(TType::STRUCT, count($this->uniqueConstraintCols)); { - foreach ($this->uniqueConstraintCols as $iter360) + foreach ($this->uniqueConstraintCols as $iter374) { - $xfer += $iter360->write($output); + $xfer += $iter374->write($output); } } $output->writeListEnd(); @@ -13384,15 +13482,15 @@ class AddNotNullConstraintRequest { case 1: if ($ftype == TType::LST) { $this->notNullConstraintCols = array(); - $_size361 = 0; - $_etype364 = 0; - $xfer += $input->readListBegin($_etype364, $_size361); - for ($_i365 = 0; $_i365 < $_size361; ++$_i365) + $_size375 = 0; + $_etype378 = 0; + $xfer += $input->readListBegin($_etype378, $_size375); + for ($_i379 = 0; $_i379 < $_size375; ++$_i379) { - $elem366 = null; - $elem366 = new \metastore\SQLNotNullConstraint(); - $xfer += $elem366->read($input); - $this->notNullConstraintCols []= $elem366; + $elem380 = null; + $elem380 = new \metastore\SQLNotNullConstraint(); + $xfer += $elem380->read($input); + $this->notNullConstraintCols []= $elem380; } $xfer += $input->readListEnd(); } else { @@ -13420,9 +13518,9 @@ class AddNotNullConstraintRequest { { $output->writeListBegin(TType::STRUCT, count($this->notNullConstraintCols)); { - foreach ($this->notNullConstraintCols as $iter367) + foreach ($this->notNullConstraintCols as $iter381) { - $xfer += $iter367->write($output); + $xfer += $iter381->write($output); } } $output->writeListEnd(); @@ -13487,15 +13585,15 @@ class AddDefaultConstraintRequest { case 1: if ($ftype == TType::LST) { $this->defaultConstraintCols = array(); - $_size368 = 0; - $_etype371 = 0; - $xfer += $input->readListBegin($_etype371, $_size368); - for ($_i372 = 0; $_i372 < $_size368; ++$_i372) + $_size382 = 0; + $_etype385 = 0; + $xfer += $input->readListBegin($_etype385, $_size382); + for ($_i386 = 0; $_i386 < $_size382; ++$_i386) { - $elem373 = null; - $elem373 = new \metastore\SQLDefaultConstraint(); - $xfer += $elem373->read($input); - $this->defaultConstraintCols []= $elem373; + $elem387 = null; + $elem387 = new \metastore\SQLDefaultConstraint(); + $xfer += $elem387->read($input); + $this->defaultConstraintCols []= $elem387; } $xfer += $input->readListEnd(); } else { @@ -13523,9 +13621,9 @@ class AddDefaultConstraintRequest { { $output->writeListBegin(TType::STRUCT, count($this->defaultConstraintCols)); { - foreach ($this->defaultConstraintCols as $iter374) + foreach ($this->defaultConstraintCols as $iter388) { - $xfer += $iter374->write($output); + $xfer += $iter388->write($output); } } $output->writeListEnd(); @@ -13590,15 +13688,15 @@ class AddCheckConstraintRequest { case 1: if ($ftype == TType::LST) { $this->checkConstraintCols = array(); - $_size375 = 0; - $_etype378 = 0; - $xfer += $input->readListBegin($_etype378, $_size375); - for ($_i379 = 0; $_i379 < $_size375; ++$_i379) + $_size389 = 0; + $_etype392 = 0; + $xfer += $input->readListBegin($_etype392, $_size389); + for ($_i393 = 0; $_i393 < $_size389; ++$_i393) { - $elem380 = null; - $elem380 = new \metastore\SQLCheckConstraint(); - $xfer += $elem380->read($input); - $this->checkConstraintCols []= $elem380; + $elem394 = null; + $elem394 = new \metastore\SQLCheckConstraint(); + $xfer += $elem394->read($input); + $this->checkConstraintCols []= $elem394; } $xfer += $input->readListEnd(); } else { @@ -13626,9 +13724,9 @@ class AddCheckConstraintRequest { { $output->writeListBegin(TType::STRUCT, count($this->checkConstraintCols)); { - foreach ($this->checkConstraintCols as $iter381) + foreach ($this->checkConstraintCols as $iter395) { - $xfer += $iter381->write($output); + $xfer += $iter395->write($output); } } $output->writeListEnd(); @@ -13704,15 +13802,15 @@ class PartitionsByExprResult { case 1: if ($ftype == TType::LST) { $this->partitions = array(); - $_size382 = 0; - $_etype385 = 0; - $xfer += $input->readListBegin($_etype385, $_size382); - for ($_i386 = 0; $_i386 < $_size382; ++$_i386) + $_size396 = 0; + $_etype399 = 0; + $xfer += $input->readListBegin($_etype399, $_size396); + for ($_i400 = 0; $_i400 < $_size396; ++$_i400) { - $elem387 = null; - $elem387 = new \metastore\Partition(); - $xfer += $elem387->read($input); - $this->partitions []= $elem387; + $elem401 = null; + $elem401 = new \metastore\Partition(); + $xfer += $elem401->read($input); + $this->partitions []= $elem401; } $xfer += $input->readListEnd(); } else { @@ -13747,9 +13845,9 @@ class PartitionsByExprResult { { $output->writeListBegin(TType::STRUCT, count($this->partitions)); { - foreach ($this->partitions as $iter388) + foreach ($this->partitions as $iter402) { - $xfer += $iter388->write($output); + $xfer += $iter402->write($output); } } $output->writeListEnd(); @@ -14020,15 +14118,15 @@ class TableStatsResult { case 1: if ($ftype == TType::LST) { $this->tableStats = array(); - $_size389 = 0; - $_etype392 = 0; - $xfer += $input->readListBegin($_etype392, $_size389); - for ($_i393 = 0; $_i393 < $_size389; ++$_i393) + $_size403 = 0; + $_etype406 = 0; + $xfer += $input->readListBegin($_etype406, $_size403); + for ($_i407 = 0; $_i407 < $_size403; ++$_i407) { - $elem394 = null; - $elem394 = new \metastore\ColumnStatisticsObj(); - $xfer += $elem394->read($input); - $this->tableStats []= $elem394; + $elem408 = null; + $elem408 = new \metastore\ColumnStatisticsObj(); + $xfer += $elem408->read($input); + $this->tableStats []= $elem408; } $xfer += $input->readListEnd(); } else { @@ -14063,9 +14161,9 @@ class TableStatsResult { { $output->writeListBegin(TType::STRUCT, count($this->tableStats)); { - foreach ($this->tableStats as $iter395) + foreach ($this->tableStats as $iter409) { - $xfer += $iter395->write($output); + $xfer += $iter409->write($output); } } $output->writeListEnd(); @@ -14154,28 +14252,28 @@ class PartitionsStatsResult { case 1: if ($ftype == TType::MAP) { $this->partStats = array(); - $_size396 = 0; - $_ktype397 = 0; - $_vtype398 = 0; - $xfer += $input->readMapBegin($_ktype397, $_vtype398, $_size396); - for ($_i400 = 0; $_i400 < $_size396; ++$_i400) + $_size410 = 0; + $_ktype411 = 0; + $_vtype412 = 0; + $xfer += $input->readMapBegin($_ktype411, $_vtype412, $_size410); + for ($_i414 = 0; $_i414 < $_size410; ++$_i414) { - $key401 = ''; - $val402 = array(); - $xfer += $input->readString($key401); - $val402 = array(); - $_size403 = 0; - $_etype406 = 0; - $xfer += $input->readListBegin($_etype406, $_size403); - for ($_i407 = 0; $_i407 < $_size403; ++$_i407) + $key415 = ''; + $val416 = array(); + $xfer += $input->readString($key415); + $val416 = array(); + $_size417 = 0; + $_etype420 = 0; + $xfer += $input->readListBegin($_etype420, $_size417); + for ($_i421 = 0; $_i421 < $_size417; ++$_i421) { - $elem408 = null; - $elem408 = new \metastore\ColumnStatisticsObj(); - $xfer += $elem408->read($input); - $val402 []= $elem408; + $elem422 = null; + $elem422 = new \metastore\ColumnStatisticsObj(); + $xfer += $elem422->read($input); + $val416 []= $elem422; } $xfer += $input->readListEnd(); - $this->partStats[$key401] = $val402; + $this->partStats[$key415] = $val416; } $xfer += $input->readMapEnd(); } else { @@ -14210,15 +14308,15 @@ class PartitionsStatsResult { { $output->writeMapBegin(TType::STRING, TType::LST, count($this->partStats)); { - foreach ($this->partStats as $kiter409 => $viter410) + foreach ($this->partStats as $kiter423 => $viter424) { - $xfer += $output->writeString($kiter409); + $xfer += $output->writeString($kiter423); { - $output->writeListBegin(TType::STRUCT, count($viter410)); + $output->writeListBegin(TType::STRUCT, count($viter424)); { - foreach ($viter410 as $iter411) + foreach ($viter424 as $iter425) { - $xfer += $iter411->write($output); + $xfer += $iter425->write($output); } } $output->writeListEnd(); @@ -14349,14 +14447,14 @@ class TableStatsRequest { case 3: if ($ftype == TType::LST) { $this->colNames = array(); - $_size412 = 0; - $_etype415 = 0; - $xfer += $input->readListBegin($_etype415, $_size412); - for ($_i416 = 0; $_i416 < $_size412; ++$_i416) + $_size426 = 0; + $_etype429 = 0; + $xfer += $input->readListBegin($_etype429, $_size426); + for ($_i430 = 0; $_i430 < $_size426; ++$_i430) { - $elem417 = null; - $xfer += $input->readString($elem417); - $this->colNames []= $elem417; + $elem431 = null; + $xfer += $input->readString($elem431); + $this->colNames []= $elem431; } $xfer += $input->readListEnd(); } else { @@ -14408,9 +14506,9 @@ class TableStatsRequest { { $output->writeListBegin(TType::STRING, count($this->colNames)); { - foreach ($this->colNames as $iter418) + foreach ($this->colNames as $iter432) { - $xfer += $output->writeString($iter418); + $xfer += $output->writeString($iter432); } } $output->writeListEnd(); @@ -14557,14 +14655,14 @@ class PartitionsStatsRequest { case 3: if ($ftype == TType::LST) { $this->colNames = array(); - $_size419 = 0; - $_etype422 = 0; - $xfer += $input->readListBegin($_etype422, $_size419); - for ($_i423 = 0; $_i423 < $_size419; ++$_i423) + $_size433 = 0; + $_etype436 = 0; + $xfer += $input->readListBegin($_etype436, $_size433); + for ($_i437 = 0; $_i437 < $_size433; ++$_i437) { - $elem424 = null; - $xfer += $input->readString($elem424); - $this->colNames []= $elem424; + $elem438 = null; + $xfer += $input->readString($elem438); + $this->colNames []= $elem438; } $xfer += $input->readListEnd(); } else { @@ -14574,14 +14672,14 @@ class PartitionsStatsRequest { case 4: if ($ftype == TType::LST) { $this->partNames = array(); - $_size425 = 0; - $_etype428 = 0; - $xfer += $input->readListBegin($_etype428, $_size425); - for ($_i429 = 0; $_i429 < $_size425; ++$_i429) + $_size439 = 0; + $_etype442 = 0; + $xfer += $input->readListBegin($_etype442, $_size439); + for ($_i443 = 0; $_i443 < $_size439; ++$_i443) { - $elem430 = null; - $xfer += $input->readString($elem430); - $this->partNames []= $elem430; + $elem444 = null; + $xfer += $input->readString($elem444); + $this->partNames []= $elem444; } $xfer += $input->readListEnd(); } else { @@ -14633,9 +14731,9 @@ class PartitionsStatsRequest { { $output->writeListBegin(TType::STRING, count($this->colNames)); { - foreach ($this->colNames as $iter431) + foreach ($this->colNames as $iter445) { - $xfer += $output->writeString($iter431); + $xfer += $output->writeString($iter445); } } $output->writeListEnd(); @@ -14650,9 +14748,9 @@ class PartitionsStatsRequest { { $output->writeListBegin(TType::STRING, count($this->partNames)); { - foreach ($this->partNames as $iter432) + foreach ($this->partNames as $iter446) { - $xfer += $output->writeString($iter432); + $xfer += $output->writeString($iter446); } } $output->writeListEnd(); @@ -14738,15 +14836,15 @@ class AddPartitionsResult { case 1: if ($ftype == TType::LST) { $this->partitions = array(); - $_size433 = 0; - $_etype436 = 0; - $xfer += $input->readListBegin($_etype436, $_size433); - for ($_i437 = 0; $_i437 < $_size433; ++$_i437) + $_size447 = 0; + $_etype450 = 0; + $xfer += $input->readListBegin($_etype450, $_size447); + for ($_i451 = 0; $_i451 < $_size447; ++$_i451) { - $elem438 = null; - $elem438 = new \metastore\Partition(); - $xfer += $elem438->read($input); - $this->partitions []= $elem438; + $elem452 = null; + $elem452 = new \metastore\Partition(); + $xfer += $elem452->read($input); + $this->partitions []= $elem452; } $xfer += $input->readListEnd(); } else { @@ -14781,9 +14879,9 @@ class AddPartitionsResult { { $output->writeListBegin(TType::STRUCT, count($this->partitions)); { - foreach ($this->partitions as $iter439) + foreach ($this->partitions as $iter453) { - $xfer += $iter439->write($output); + $xfer += $iter453->write($output); } } $output->writeListEnd(); @@ -14933,15 +15031,15 @@ class AddPartitionsRequest { case 3: if ($ftype == TType::LST) { $this->parts = array(); - $_size440 = 0; - $_etype443 = 0; - $xfer += $input->readListBegin($_etype443, $_size440); - for ($_i444 = 0; $_i444 < $_size440; ++$_i444) + $_size454 = 0; + $_etype457 = 0; + $xfer += $input->readListBegin($_etype457, $_size454); + for ($_i458 = 0; $_i458 < $_size454; ++$_i458) { - $elem445 = null; - $elem445 = new \metastore\Partition(); - $xfer += $elem445->read($input); - $this->parts []= $elem445; + $elem459 = null; + $elem459 = new \metastore\Partition(); + $xfer += $elem459->read($input); + $this->parts []= $elem459; } $xfer += $input->readListEnd(); } else { @@ -15007,9 +15105,9 @@ class AddPartitionsRequest { { $output->writeListBegin(TType::STRUCT, count($this->parts)); { - foreach ($this->parts as $iter446) + foreach ($this->parts as $iter460) { - $xfer += $iter446->write($output); + $xfer += $iter460->write($output); } } $output->writeListEnd(); @@ -15094,15 +15192,15 @@ class DropPartitionsResult { case 1: if ($ftype == TType::LST) { $this->partitions = array(); - $_size447 = 0; - $_etype450 = 0; - $xfer += $input->readListBegin($_etype450, $_size447); - for ($_i451 = 0; $_i451 < $_size447; ++$_i451) + $_size461 = 0; + $_etype464 = 0; + $xfer += $input->readListBegin($_etype464, $_size461); + for ($_i465 = 0; $_i465 < $_size461; ++$_i465) { - $elem452 = null; - $elem452 = new \metastore\Partition(); - $xfer += $elem452->read($input); - $this->partitions []= $elem452; + $elem466 = null; + $elem466 = new \metastore\Partition(); + $xfer += $elem466->read($input); + $this->partitions []= $elem466; } $xfer += $input->readListEnd(); } else { @@ -15130,9 +15228,9 @@ class DropPartitionsResult { { $output->writeListBegin(TType::STRUCT, count($this->partitions)); { - foreach ($this->partitions as $iter453) + foreach ($this->partitions as $iter467) { - $xfer += $iter453->write($output); + $xfer += $iter467->write($output); } } $output->writeListEnd(); @@ -15310,14 +15408,14 @@ class RequestPartsSpec { case 1: if ($ftype == TType::LST) { $this->names = array(); - $_size454 = 0; - $_etype457 = 0; - $xfer += $input->readListBegin($_etype457, $_size454); - for ($_i458 = 0; $_i458 < $_size454; ++$_i458) + $_size468 = 0; + $_etype471 = 0; + $xfer += $input->readListBegin($_etype471, $_size468); + for ($_i472 = 0; $_i472 < $_size468; ++$_i472) { - $elem459 = null; - $xfer += $input->readString($elem459); - $this->names []= $elem459; + $elem473 = null; + $xfer += $input->readString($elem473); + $this->names []= $elem473; } $xfer += $input->readListEnd(); } else { @@ -15327,15 +15425,15 @@ class RequestPartsSpec { case 2: if ($ftype == TType::LST) { $this->exprs = array(); - $_size460 = 0; - $_etype463 = 0; - $xfer += $input->readListBegin($_etype463, $_size460); - for ($_i464 = 0; $_i464 < $_size460; ++$_i464) + $_size474 = 0; + $_etype477 = 0; + $xfer += $input->readListBegin($_etype477, $_size474); + for ($_i478 = 0; $_i478 < $_size474; ++$_i478) { - $elem465 = null; - $elem465 = new \metastore\DropPartitionsExpr(); - $xfer += $elem465->read($input); - $this->exprs []= $elem465; + $elem479 = null; + $elem479 = new \metastore\DropPartitionsExpr(); + $xfer += $elem479->read($input); + $this->exprs []= $elem479; } $xfer += $input->readListEnd(); } else { @@ -15363,9 +15461,9 @@ class RequestPartsSpec { { $output->writeListBegin(TType::STRING, count($this->names)); { - foreach ($this->names as $iter466) + foreach ($this->names as $iter480) { - $xfer += $output->writeString($iter466); + $xfer += $output->writeString($iter480); } } $output->writeListEnd(); @@ -15380,9 +15478,9 @@ class RequestPartsSpec { { $output->writeListBegin(TType::STRUCT, count($this->exprs)); { - foreach ($this->exprs as $iter467) + foreach ($this->exprs as $iter481) { - $xfer += $iter467->write($output); + $xfer += $iter481->write($output); } } $output->writeListEnd(); @@ -15823,15 +15921,15 @@ class PartitionValuesRequest { case 3: if ($ftype == TType::LST) { $this->partitionKeys = array(); - $_size468 = 0; - $_etype471 = 0; - $xfer += $input->readListBegin($_etype471, $_size468); - for ($_i472 = 0; $_i472 < $_size468; ++$_i472) + $_size482 = 0; + $_etype485 = 0; + $xfer += $input->readListBegin($_etype485, $_size482); + for ($_i486 = 0; $_i486 < $_size482; ++$_i486) { - $elem473 = null; - $elem473 = new \metastore\FieldSchema(); - $xfer += $elem473->read($input); - $this->partitionKeys []= $elem473; + $elem487 = null; + $elem487 = new \metastore\FieldSchema(); + $xfer += $elem487->read($input); + $this->partitionKeys []= $elem487; } $xfer += $input->readListEnd(); } else { @@ -15855,15 +15953,15 @@ class PartitionValuesRequest { case 6: if ($ftype == TType::LST) { $this->partitionOrder = array(); - $_size474 = 0; - $_etype477 = 0; - $xfer += $input->readListBegin($_etype477, $_size474); - for ($_i478 = 0; $_i478 < $_size474; ++$_i478) + $_size488 = 0; + $_etype491 = 0; + $xfer += $input->readListBegin($_etype491, $_size488); + for ($_i492 = 0; $_i492 < $_size488; ++$_i492) { - $elem479 = null; - $elem479 = new \metastore\FieldSchema(); - $xfer += $elem479->read($input); - $this->partitionOrder []= $elem479; + $elem493 = null; + $elem493 = new \metastore\FieldSchema(); + $xfer += $elem493->read($input); + $this->partitionOrder []= $elem493; } $xfer += $input->readListEnd(); } else { @@ -15922,9 +16020,9 @@ class PartitionValuesRequest { { $output->writeListBegin(TType::STRUCT, count($this->partitionKeys)); { - foreach ($this->partitionKeys as $iter480) + foreach ($this->partitionKeys as $iter494) { - $xfer += $iter480->write($output); + $xfer += $iter494->write($output); } } $output->writeListEnd(); @@ -15949,9 +16047,9 @@ class PartitionValuesRequest { { $output->writeListBegin(TType::STRUCT, count($this->partitionOrder)); { - foreach ($this->partitionOrder as $iter481) + foreach ($this->partitionOrder as $iter495) { - $xfer += $iter481->write($output); + $xfer += $iter495->write($output); } } $output->writeListEnd(); @@ -16030,14 +16128,14 @@ class PartitionValuesRow { case 1: if ($ftype == TType::LST) { $this->row = array(); - $_size482 = 0; - $_etype485 = 0; - $xfer += $input->readListBegin($_etype485, $_size482); - for ($_i486 = 0; $_i486 < $_size482; ++$_i486) + $_size496 = 0; + $_etype499 = 0; + $xfer += $input->readListBegin($_etype499, $_size496); + for ($_i500 = 0; $_i500 < $_size496; ++$_i500) { - $elem487 = null; - $xfer += $input->readString($elem487); - $this->row []= $elem487; + $elem501 = null; + $xfer += $input->readString($elem501); + $this->row []= $elem501; } $xfer += $input->readListEnd(); } else { @@ -16065,9 +16163,9 @@ class PartitionValuesRow { { $output->writeListBegin(TType::STRING, count($this->row)); { - foreach ($this->row as $iter488) + foreach ($this->row as $iter502) { - $xfer += $output->writeString($iter488); + $xfer += $output->writeString($iter502); } } $output->writeListEnd(); @@ -16132,15 +16230,15 @@ class PartitionValuesResponse { case 1: if ($ftype == TType::LST) { $this->partitionValues = array(); - $_size489 = 0; - $_etype492 = 0; - $xfer += $input->readListBegin($_etype492, $_size489); - for ($_i493 = 0; $_i493 < $_size489; ++$_i493) + $_size503 = 0; + $_etype506 = 0; + $xfer += $input->readListBegin($_etype506, $_size503); + for ($_i507 = 0; $_i507 < $_size503; ++$_i507) { - $elem494 = null; - $elem494 = new \metastore\PartitionValuesRow(); - $xfer += $elem494->read($input); - $this->partitionValues []= $elem494; + $elem508 = null; + $elem508 = new \metastore\PartitionValuesRow(); + $xfer += $elem508->read($input); + $this->partitionValues []= $elem508; } $xfer += $input->readListEnd(); } else { @@ -16168,9 +16266,9 @@ class PartitionValuesResponse { { $output->writeListBegin(TType::STRUCT, count($this->partitionValues)); { - foreach ($this->partitionValues as $iter495) + foreach ($this->partitionValues as $iter509) { - $xfer += $iter495->write($output); + $xfer += $iter509->write($output); } } $output->writeListEnd(); @@ -16307,14 +16405,14 @@ class GetPartitionsByNamesRequest { case 3: if ($ftype == TType::LST) { $this->names = array(); - $_size496 = 0; - $_etype499 = 0; - $xfer += $input->readListBegin($_etype499, $_size496); - for ($_i500 = 0; $_i500 < $_size496; ++$_i500) + $_size510 = 0; + $_etype513 = 0; + $xfer += $input->readListBegin($_etype513, $_size510); + for ($_i514 = 0; $_i514 < $_size510; ++$_i514) { - $elem501 = null; - $xfer += $input->readString($elem501); - $this->names []= $elem501; + $elem515 = null; + $xfer += $input->readString($elem515); + $this->names []= $elem515; } $xfer += $input->readListEnd(); } else { @@ -16331,14 +16429,14 @@ class GetPartitionsByNamesRequest { case 5: if ($ftype == TType::LST) { $this->processorCapabilities = array(); - $_size502 = 0; - $_etype505 = 0; - $xfer += $input->readListBegin($_etype505, $_size502); - for ($_i506 = 0; $_i506 < $_size502; ++$_i506) + $_size516 = 0; + $_etype519 = 0; + $xfer += $input->readListBegin($_etype519, $_size516); + for ($_i520 = 0; $_i520 < $_size516; ++$_i520) { - $elem507 = null; - $xfer += $input->readString($elem507); - $this->processorCapabilities []= $elem507; + $elem521 = null; + $xfer += $input->readString($elem521); + $this->processorCapabilities []= $elem521; } $xfer += $input->readListEnd(); } else { @@ -16383,9 +16481,9 @@ class GetPartitionsByNamesRequest { { $output->writeListBegin(TType::STRING, count($this->names)); { - foreach ($this->names as $iter508) + foreach ($this->names as $iter522) { - $xfer += $output->writeString($iter508); + $xfer += $output->writeString($iter522); } } $output->writeListEnd(); @@ -16405,9 +16503,9 @@ class GetPartitionsByNamesRequest { { $output->writeListBegin(TType::STRING, count($this->processorCapabilities)); { - foreach ($this->processorCapabilities as $iter509) + foreach ($this->processorCapabilities as $iter523) { - $xfer += $output->writeString($iter509); + $xfer += $output->writeString($iter523); } } $output->writeListEnd(); @@ -16477,15 +16575,15 @@ class GetPartitionsByNamesResult { case 1: if ($ftype == TType::LST) { $this->partitions = array(); - $_size510 = 0; - $_etype513 = 0; - $xfer += $input->readListBegin($_etype513, $_size510); - for ($_i514 = 0; $_i514 < $_size510; ++$_i514) + $_size524 = 0; + $_etype527 = 0; + $xfer += $input->readListBegin($_etype527, $_size524); + for ($_i528 = 0; $_i528 < $_size524; ++$_i528) { - $elem515 = null; - $elem515 = new \metastore\Partition(); - $xfer += $elem515->read($input); - $this->partitions []= $elem515; + $elem529 = null; + $elem529 = new \metastore\Partition(); + $xfer += $elem529->read($input); + $this->partitions []= $elem529; } $xfer += $input->readListEnd(); } else { @@ -16513,9 +16611,9 @@ class GetPartitionsByNamesResult { { $output->writeListBegin(TType::STRUCT, count($this->partitions)); { - foreach ($this->partitions as $iter516) + foreach ($this->partitions as $iter530) { - $xfer += $iter516->write($output); + $xfer += $iter530->write($output); } } $output->writeListEnd(); @@ -16815,15 +16913,15 @@ class Function { case 8: if ($ftype == TType::LST) { $this->resourceUris = array(); - $_size517 = 0; - $_etype520 = 0; - $xfer += $input->readListBegin($_etype520, $_size517); - for ($_i521 = 0; $_i521 < $_size517; ++$_i521) + $_size531 = 0; + $_etype534 = 0; + $xfer += $input->readListBegin($_etype534, $_size531); + for ($_i535 = 0; $_i535 < $_size531; ++$_i535) { - $elem522 = null; - $elem522 = new \metastore\ResourceUri(); - $xfer += $elem522->read($input); - $this->resourceUris []= $elem522; + $elem536 = null; + $elem536 = new \metastore\ResourceUri(); + $xfer += $elem536->read($input); + $this->resourceUris []= $elem536; } $xfer += $input->readListEnd(); } else { @@ -16893,9 +16991,9 @@ class Function { { $output->writeListBegin(TType::STRUCT, count($this->resourceUris)); { - foreach ($this->resourceUris as $iter523) + foreach ($this->resourceUris as $iter537) { - $xfer += $iter523->write($output); + $xfer += $iter537->write($output); } } $output->writeListEnd(); @@ -17242,15 +17340,15 @@ class GetOpenTxnsInfoResponse { case 2: if ($ftype == TType::LST) { $this->open_txns = array(); - $_size524 = 0; - $_etype527 = 0; - $xfer += $input->readListBegin($_etype527, $_size524); - for ($_i528 = 0; $_i528 < $_size524; ++$_i528) + $_size538 = 0; + $_etype541 = 0; + $xfer += $input->readListBegin($_etype541, $_size538); + for ($_i542 = 0; $_i542 < $_size538; ++$_i542) { - $elem529 = null; - $elem529 = new \metastore\TxnInfo(); - $xfer += $elem529->read($input); - $this->open_txns []= $elem529; + $elem543 = null; + $elem543 = new \metastore\TxnInfo(); + $xfer += $elem543->read($input); + $this->open_txns []= $elem543; } $xfer += $input->readListEnd(); } else { @@ -17283,9 +17381,9 @@ class GetOpenTxnsInfoResponse { { $output->writeListBegin(TType::STRUCT, count($this->open_txns)); { - foreach ($this->open_txns as $iter530) + foreach ($this->open_txns as $iter544) { - $xfer += $iter530->write($output); + $xfer += $iter544->write($output); } } $output->writeListEnd(); @@ -17389,14 +17487,14 @@ class GetOpenTxnsResponse { case 2: if ($ftype == TType::LST) { $this->open_txns = array(); - $_size531 = 0; - $_etype534 = 0; - $xfer += $input->readListBegin($_etype534, $_size531); - for ($_i535 = 0; $_i535 < $_size531; ++$_i535) + $_size545 = 0; + $_etype548 = 0; + $xfer += $input->readListBegin($_etype548, $_size545); + for ($_i549 = 0; $_i549 < $_size545; ++$_i549) { - $elem536 = null; - $xfer += $input->readI64($elem536); - $this->open_txns []= $elem536; + $elem550 = null; + $xfer += $input->readI64($elem550); + $this->open_txns []= $elem550; } $xfer += $input->readListEnd(); } else { @@ -17443,9 +17541,9 @@ class GetOpenTxnsResponse { { $output->writeListBegin(TType::I64, count($this->open_txns)); { - foreach ($this->open_txns as $iter537) + foreach ($this->open_txns as $iter551) { - $xfer += $output->writeI64($iter537); + $xfer += $output->writeI64($iter551); } } $output->writeListEnd(); @@ -17620,14 +17718,14 @@ class OpenTxnRequest { case 6: if ($ftype == TType::LST) { $this->replSrcTxnIds = array(); - $_size538 = 0; - $_etype541 = 0; - $xfer += $input->readListBegin($_etype541, $_size538); - for ($_i542 = 0; $_i542 < $_size538; ++$_i542) + $_size552 = 0; + $_etype555 = 0; + $xfer += $input->readListBegin($_etype555, $_size552); + for ($_i556 = 0; $_i556 < $_size552; ++$_i556) { - $elem543 = null; - $xfer += $input->readI64($elem543); - $this->replSrcTxnIds []= $elem543; + $elem557 = null; + $xfer += $input->readI64($elem557); + $this->replSrcTxnIds []= $elem557; } $xfer += $input->readListEnd(); } else { @@ -17687,9 +17785,9 @@ class OpenTxnRequest { { $output->writeListBegin(TType::I64, count($this->replSrcTxnIds)); { - foreach ($this->replSrcTxnIds as $iter544) + foreach ($this->replSrcTxnIds as $iter558) { - $xfer += $output->writeI64($iter544); + $xfer += $output->writeI64($iter558); } } $output->writeListEnd(); @@ -17758,14 +17856,14 @@ class OpenTxnsResponse { case 1: if ($ftype == TType::LST) { $this->txn_ids = array(); - $_size545 = 0; - $_etype548 = 0; - $xfer += $input->readListBegin($_etype548, $_size545); - for ($_i549 = 0; $_i549 < $_size545; ++$_i549) + $_size559 = 0; + $_etype562 = 0; + $xfer += $input->readListBegin($_etype562, $_size559); + for ($_i563 = 0; $_i563 < $_size559; ++$_i563) { - $elem550 = null; - $xfer += $input->readI64($elem550); - $this->txn_ids []= $elem550; + $elem564 = null; + $xfer += $input->readI64($elem564); + $this->txn_ids []= $elem564; } $xfer += $input->readListEnd(); } else { @@ -17793,9 +17891,9 @@ class OpenTxnsResponse { { $output->writeListBegin(TType::I64, count($this->txn_ids)); { - foreach ($this->txn_ids as $iter551) + foreach ($this->txn_ids as $iter565) { - $xfer += $output->writeI64($iter551); + $xfer += $output->writeI64($iter565); } } $output->writeListEnd(); @@ -17957,14 +18055,14 @@ class AbortTxnsRequest { case 1: if ($ftype == TType::LST) { $this->txn_ids = array(); - $_size552 = 0; - $_etype555 = 0; - $xfer += $input->readListBegin($_etype555, $_size552); - for ($_i556 = 0; $_i556 < $_size552; ++$_i556) + $_size566 = 0; + $_etype569 = 0; + $xfer += $input->readListBegin($_etype569, $_size566); + for ($_i570 = 0; $_i570 < $_size566; ++$_i570) { - $elem557 = null; - $xfer += $input->readI64($elem557); - $this->txn_ids []= $elem557; + $elem571 = null; + $xfer += $input->readI64($elem571); + $this->txn_ids []= $elem571; } $xfer += $input->readListEnd(); } else { @@ -17992,9 +18090,9 @@ class AbortTxnsRequest { { $output->writeListBegin(TType::I64, count($this->txn_ids)); { - foreach ($this->txn_ids as $iter558) + foreach ($this->txn_ids as $iter572) { - $xfer += $output->writeI64($iter558); + $xfer += $output->writeI64($iter572); } } $output->writeListEnd(); @@ -18464,14 +18562,14 @@ class ReplLastIdInfo { case 5: if ($ftype == TType::LST) { $this->partitionList = array(); - $_size559 = 0; - $_etype562 = 0; - $xfer += $input->readListBegin($_etype562, $_size559); - for ($_i563 = 0; $_i563 < $_size559; ++$_i563) + $_size573 = 0; + $_etype576 = 0; + $xfer += $input->readListBegin($_etype576, $_size573); + for ($_i577 = 0; $_i577 < $_size573; ++$_i577) { - $elem564 = null; - $xfer += $input->readString($elem564); - $this->partitionList []= $elem564; + $elem578 = null; + $xfer += $input->readString($elem578); + $this->partitionList []= $elem578; } $xfer += $input->readListEnd(); } else { @@ -18519,9 +18617,9 @@ class ReplLastIdInfo { { $output->writeListBegin(TType::STRING, count($this->partitionList)); { - foreach ($this->partitionList as $iter565) + foreach ($this->partitionList as $iter579) { - $xfer += $output->writeString($iter565); + $xfer += $output->writeString($iter579); } } $output->writeListEnd(); @@ -18646,15 +18744,15 @@ class CommitTxnRequest { case 3: if ($ftype == TType::LST) { $this->writeEventInfos = array(); - $_size566 = 0; - $_etype569 = 0; - $xfer += $input->readListBegin($_etype569, $_size566); - for ($_i570 = 0; $_i570 < $_size566; ++$_i570) + $_size580 = 0; + $_etype583 = 0; + $xfer += $input->readListBegin($_etype583, $_size580); + for ($_i584 = 0; $_i584 < $_size580; ++$_i584) { - $elem571 = null; - $elem571 = new \metastore\WriteEventInfo(); - $xfer += $elem571->read($input); - $this->writeEventInfos []= $elem571; + $elem585 = null; + $elem585 = new \metastore\WriteEventInfo(); + $xfer += $elem585->read($input); + $this->writeEventInfos []= $elem585; } $xfer += $input->readListEnd(); } else { @@ -18708,9 +18806,9 @@ class CommitTxnRequest { { $output->writeListBegin(TType::STRUCT, count($this->writeEventInfos)); { - foreach ($this->writeEventInfos as $iter572) + foreach ($this->writeEventInfos as $iter586) { - $xfer += $iter572->write($output); + $xfer += $iter586->write($output); } } $output->writeListEnd(); @@ -18880,14 +18978,14 @@ class ReplTblWriteIdStateRequest { case 6: if ($ftype == TType::LST) { $this->partNames = array(); - $_size573 = 0; - $_etype576 = 0; - $xfer += $input->readListBegin($_etype576, $_size573); - for ($_i577 = 0; $_i577 < $_size573; ++$_i577) + $_size587 = 0; + $_etype590 = 0; + $xfer += $input->readListBegin($_etype590, $_size587); + for ($_i591 = 0; $_i591 < $_size587; ++$_i591) { - $elem578 = null; - $xfer += $input->readString($elem578); - $this->partNames []= $elem578; + $elem592 = null; + $xfer += $input->readString($elem592); + $this->partNames []= $elem592; } $xfer += $input->readListEnd(); } else { @@ -18940,9 +19038,9 @@ class ReplTblWriteIdStateRequest { { $output->writeListBegin(TType::STRING, count($this->partNames)); { - foreach ($this->partNames as $iter579) + foreach ($this->partNames as $iter593) { - $xfer += $output->writeString($iter579); + $xfer += $output->writeString($iter593); } } $output->writeListEnd(); @@ -19028,14 +19126,14 @@ class GetValidWriteIdsRequest { case 1: if ($ftype == TType::LST) { $this->fullTableNames = array(); - $_size580 = 0; - $_etype583 = 0; - $xfer += $input->readListBegin($_etype583, $_size580); - for ($_i584 = 0; $_i584 < $_size580; ++$_i584) + $_size594 = 0; + $_etype597 = 0; + $xfer += $input->readListBegin($_etype597, $_size594); + for ($_i598 = 0; $_i598 < $_size594; ++$_i598) { - $elem585 = null; - $xfer += $input->readString($elem585); - $this->fullTableNames []= $elem585; + $elem599 = null; + $xfer += $input->readString($elem599); + $this->fullTableNames []= $elem599; } $xfer += $input->readListEnd(); } else { @@ -19077,9 +19175,9 @@ class GetValidWriteIdsRequest { { $output->writeListBegin(TType::STRING, count($this->fullTableNames)); { - foreach ($this->fullTableNames as $iter586) + foreach ($this->fullTableNames as $iter600) { - $xfer += $output->writeString($iter586); + $xfer += $output->writeString($iter600); } } $output->writeListEnd(); @@ -19211,14 +19309,14 @@ class TableValidWriteIds { case 3: if ($ftype == TType::LST) { $this->invalidWriteIds = array(); - $_size587 = 0; - $_etype590 = 0; - $xfer += $input->readListBegin($_etype590, $_size587); - for ($_i591 = 0; $_i591 < $_size587; ++$_i591) + $_size601 = 0; + $_etype604 = 0; + $xfer += $input->readListBegin($_etype604, $_size601); + for ($_i605 = 0; $_i605 < $_size601; ++$_i605) { - $elem592 = null; - $xfer += $input->readI64($elem592); - $this->invalidWriteIds []= $elem592; + $elem606 = null; + $xfer += $input->readI64($elem606); + $this->invalidWriteIds []= $elem606; } $xfer += $input->readListEnd(); } else { @@ -19270,9 +19368,9 @@ class TableValidWriteIds { { $output->writeListBegin(TType::I64, count($this->invalidWriteIds)); { - foreach ($this->invalidWriteIds as $iter593) + foreach ($this->invalidWriteIds as $iter607) { - $xfer += $output->writeI64($iter593); + $xfer += $output->writeI64($iter607); } } $output->writeListEnd(); @@ -19347,15 +19445,15 @@ class GetValidWriteIdsResponse { case 1: if ($ftype == TType::LST) { $this->tblValidWriteIds = array(); - $_size594 = 0; - $_etype597 = 0; - $xfer += $input->readListBegin($_etype597, $_size594); - for ($_i598 = 0; $_i598 < $_size594; ++$_i598) + $_size608 = 0; + $_etype611 = 0; + $xfer += $input->readListBegin($_etype611, $_size608); + for ($_i612 = 0; $_i612 < $_size608; ++$_i612) { - $elem599 = null; - $elem599 = new \metastore\TableValidWriteIds(); - $xfer += $elem599->read($input); - $this->tblValidWriteIds []= $elem599; + $elem613 = null; + $elem613 = new \metastore\TableValidWriteIds(); + $xfer += $elem613->read($input); + $this->tblValidWriteIds []= $elem613; } $xfer += $input->readListEnd(); } else { @@ -19383,9 +19481,9 @@ class GetValidWriteIdsResponse { { $output->writeListBegin(TType::STRUCT, count($this->tblValidWriteIds)); { - foreach ($this->tblValidWriteIds as $iter600) + foreach ($this->tblValidWriteIds as $iter614) { - $xfer += $iter600->write($output); + $xfer += $iter614->write($output); } } $output->writeListEnd(); @@ -19610,14 +19708,14 @@ class AllocateTableWriteIdsRequest { case 3: if ($ftype == TType::LST) { $this->txnIds = array(); - $_size601 = 0; - $_etype604 = 0; - $xfer += $input->readListBegin($_etype604, $_size601); - for ($_i605 = 0; $_i605 < $_size601; ++$_i605) + $_size615 = 0; + $_etype618 = 0; + $xfer += $input->readListBegin($_etype618, $_size615); + for ($_i619 = 0; $_i619 < $_size615; ++$_i619) { - $elem606 = null; - $xfer += $input->readI64($elem606); - $this->txnIds []= $elem606; + $elem620 = null; + $xfer += $input->readI64($elem620); + $this->txnIds []= $elem620; } $xfer += $input->readListEnd(); } else { @@ -19634,15 +19732,15 @@ class AllocateTableWriteIdsRequest { case 5: if ($ftype == TType::LST) { $this->srcTxnToWriteIdList = array(); - $_size607 = 0; - $_etype610 = 0; - $xfer += $input->readListBegin($_etype610, $_size607); - for ($_i611 = 0; $_i611 < $_size607; ++$_i611) + $_size621 = 0; + $_etype624 = 0; + $xfer += $input->readListBegin($_etype624, $_size621); + for ($_i625 = 0; $_i625 < $_size621; ++$_i625) { - $elem612 = null; - $elem612 = new \metastore\TxnToWriteId(); - $xfer += $elem612->read($input); - $this->srcTxnToWriteIdList []= $elem612; + $elem626 = null; + $elem626 = new \metastore\TxnToWriteId(); + $xfer += $elem626->read($input); + $this->srcTxnToWriteIdList []= $elem626; } $xfer += $input->readListEnd(); } else { @@ -19680,9 +19778,9 @@ class AllocateTableWriteIdsRequest { { $output->writeListBegin(TType::I64, count($this->txnIds)); { - foreach ($this->txnIds as $iter613) + foreach ($this->txnIds as $iter627) { - $xfer += $output->writeI64($iter613); + $xfer += $output->writeI64($iter627); } } $output->writeListEnd(); @@ -19702,9 +19800,9 @@ class AllocateTableWriteIdsRequest { { $output->writeListBegin(TType::STRUCT, count($this->srcTxnToWriteIdList)); { - foreach ($this->srcTxnToWriteIdList as $iter614) + foreach ($this->srcTxnToWriteIdList as $iter628) { - $xfer += $iter614->write($output); + $xfer += $iter628->write($output); } } $output->writeListEnd(); @@ -19769,15 +19867,15 @@ class AllocateTableWriteIdsResponse { case 1: if ($ftype == TType::LST) { $this->txnToWriteIds = array(); - $_size615 = 0; - $_etype618 = 0; - $xfer += $input->readListBegin($_etype618, $_size615); - for ($_i619 = 0; $_i619 < $_size615; ++$_i619) + $_size629 = 0; + $_etype632 = 0; + $xfer += $input->readListBegin($_etype632, $_size629); + for ($_i633 = 0; $_i633 < $_size629; ++$_i633) { - $elem620 = null; - $elem620 = new \metastore\TxnToWriteId(); - $xfer += $elem620->read($input); - $this->txnToWriteIds []= $elem620; + $elem634 = null; + $elem634 = new \metastore\TxnToWriteId(); + $xfer += $elem634->read($input); + $this->txnToWriteIds []= $elem634; } $xfer += $input->readListEnd(); } else { @@ -19805,9 +19903,9 @@ class AllocateTableWriteIdsResponse { { $output->writeListBegin(TType::STRUCT, count($this->txnToWriteIds)); { - foreach ($this->txnToWriteIds as $iter621) + foreach ($this->txnToWriteIds as $iter635) { - $xfer += $iter621->write($output); + $xfer += $iter635->write($output); } } $output->writeListEnd(); @@ -20152,15 +20250,15 @@ class LockRequest { case 1: if ($ftype == TType::LST) { $this->component = array(); - $_size622 = 0; - $_etype625 = 0; - $xfer += $input->readListBegin($_etype625, $_size622); - for ($_i626 = 0; $_i626 < $_size622; ++$_i626) + $_size636 = 0; + $_etype639 = 0; + $xfer += $input->readListBegin($_etype639, $_size636); + for ($_i640 = 0; $_i640 < $_size636; ++$_i640) { - $elem627 = null; - $elem627 = new \metastore\LockComponent(); - $xfer += $elem627->read($input); - $this->component []= $elem627; + $elem641 = null; + $elem641 = new \metastore\LockComponent(); + $xfer += $elem641->read($input); + $this->component []= $elem641; } $xfer += $input->readListEnd(); } else { @@ -20216,9 +20314,9 @@ class LockRequest { { $output->writeListBegin(TType::STRUCT, count($this->component)); { - foreach ($this->component as $iter628) + foreach ($this->component as $iter642) { - $xfer += $iter628->write($output); + $xfer += $iter642->write($output); } } $output->writeListEnd(); @@ -21161,15 +21259,15 @@ class ShowLocksResponse { case 1: if ($ftype == TType::LST) { $this->locks = array(); - $_size629 = 0; - $_etype632 = 0; - $xfer += $input->readListBegin($_etype632, $_size629); - for ($_i633 = 0; $_i633 < $_size629; ++$_i633) + $_size643 = 0; + $_etype646 = 0; + $xfer += $input->readListBegin($_etype646, $_size643); + for ($_i647 = 0; $_i647 < $_size643; ++$_i647) { - $elem634 = null; - $elem634 = new \metastore\ShowLocksResponseElement(); - $xfer += $elem634->read($input); - $this->locks []= $elem634; + $elem648 = null; + $elem648 = new \metastore\ShowLocksResponseElement(); + $xfer += $elem648->read($input); + $this->locks []= $elem648; } $xfer += $input->readListEnd(); } else { @@ -21197,9 +21295,9 @@ class ShowLocksResponse { { $output->writeListBegin(TType::STRUCT, count($this->locks)); { - foreach ($this->locks as $iter635) + foreach ($this->locks as $iter649) { - $xfer += $iter635->write($output); + $xfer += $iter649->write($output); } } $output->writeListEnd(); @@ -21474,17 +21572,17 @@ class HeartbeatTxnRangeResponse { case 1: if ($ftype == TType::SET) { $this->aborted = array(); - $_size636 = 0; - $_etype639 = 0; - $xfer += $input->readSetBegin($_etype639, $_size636); - for ($_i640 = 0; $_i640 < $_size636; ++$_i640) + $_size650 = 0; + $_etype653 = 0; + $xfer += $input->readSetBegin($_etype653, $_size650); + for ($_i654 = 0; $_i654 < $_size650; ++$_i654) { - $elem641 = null; - $xfer += $input->readI64($elem641); - if (is_scalar($elem641)) { - $this->aborted[$elem641] = true; + $elem655 = null; + $xfer += $input->readI64($elem655); + if (is_scalar($elem655)) { + $this->aborted[$elem655] = true; } else { - $this->aborted []= $elem641; + $this->aborted []= $elem655; } } $xfer += $input->readSetEnd(); @@ -21495,17 +21593,17 @@ class HeartbeatTxnRangeResponse { case 2: if ($ftype == TType::SET) { $this->nosuch = array(); - $_size642 = 0; - $_etype645 = 0; - $xfer += $input->readSetBegin($_etype645, $_size642); - for ($_i646 = 0; $_i646 < $_size642; ++$_i646) + $_size656 = 0; + $_etype659 = 0; + $xfer += $input->readSetBegin($_etype659, $_size656); + for ($_i660 = 0; $_i660 < $_size656; ++$_i660) { - $elem647 = null; - $xfer += $input->readI64($elem647); - if (is_scalar($elem647)) { - $this->nosuch[$elem647] = true; + $elem661 = null; + $xfer += $input->readI64($elem661); + if (is_scalar($elem661)) { + $this->nosuch[$elem661] = true; } else { - $this->nosuch []= $elem647; + $this->nosuch []= $elem661; } } $xfer += $input->readSetEnd(); @@ -21534,12 +21632,12 @@ class HeartbeatTxnRangeResponse { { $output->writeSetBegin(TType::I64, count($this->aborted)); { - foreach ($this->aborted as $iter648 => $iter649) + foreach ($this->aborted as $iter662 => $iter663) { - if (is_scalar($iter649)) { - $xfer += $output->writeI64($iter648); + if (is_scalar($iter663)) { + $xfer += $output->writeI64($iter662); } else { - $xfer += $output->writeI64($iter649); + $xfer += $output->writeI64($iter663); } } } @@ -21555,12 +21653,12 @@ class HeartbeatTxnRangeResponse { { $output->writeSetBegin(TType::I64, count($this->nosuch)); { - foreach ($this->nosuch as $iter650 => $iter651) + foreach ($this->nosuch as $iter664 => $iter665) { - if (is_scalar($iter651)) { - $xfer += $output->writeI64($iter650); + if (is_scalar($iter665)) { + $xfer += $output->writeI64($iter664); } else { - $xfer += $output->writeI64($iter651); + $xfer += $output->writeI64($iter665); } } } @@ -21719,17 +21817,17 @@ class CompactionRequest { case 6: if ($ftype == TType::MAP) { $this->properties = array(); - $_size652 = 0; - $_ktype653 = 0; - $_vtype654 = 0; - $xfer += $input->readMapBegin($_ktype653, $_vtype654, $_size652); - for ($_i656 = 0; $_i656 < $_size652; ++$_i656) + $_size666 = 0; + $_ktype667 = 0; + $_vtype668 = 0; + $xfer += $input->readMapBegin($_ktype667, $_vtype668, $_size666); + for ($_i670 = 0; $_i670 < $_size666; ++$_i670) { - $key657 = ''; - $val658 = ''; - $xfer += $input->readString($key657); - $xfer += $input->readString($val658); - $this->properties[$key657] = $val658; + $key671 = ''; + $val672 = ''; + $xfer += $input->readString($key671); + $xfer += $input->readString($val672); + $this->properties[$key671] = $val672; } $xfer += $input->readMapEnd(); } else { @@ -21782,10 +21880,10 @@ class CompactionRequest { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->properties)); { - foreach ($this->properties as $kiter659 => $viter660) + foreach ($this->properties as $kiter673 => $viter674) { - $xfer += $output->writeString($kiter659); - $xfer += $output->writeString($viter660); + $xfer += $output->writeString($kiter673); + $xfer += $output->writeString($viter674); } } $output->writeMapEnd(); @@ -22780,15 +22878,15 @@ class ShowCompactResponse { case 1: if ($ftype == TType::LST) { $this->compacts = array(); - $_size661 = 0; - $_etype664 = 0; - $xfer += $input->readListBegin($_etype664, $_size661); - for ($_i665 = 0; $_i665 < $_size661; ++$_i665) + $_size675 = 0; + $_etype678 = 0; + $xfer += $input->readListBegin($_etype678, $_size675); + for ($_i679 = 0; $_i679 < $_size675; ++$_i679) { - $elem666 = null; - $elem666 = new \metastore\ShowCompactResponseElement(); - $xfer += $elem666->read($input); - $this->compacts []= $elem666; + $elem680 = null; + $elem680 = new \metastore\ShowCompactResponseElement(); + $xfer += $elem680->read($input); + $this->compacts []= $elem680; } $xfer += $input->readListEnd(); } else { @@ -22816,9 +22914,9 @@ class ShowCompactResponse { { $output->writeListBegin(TType::STRUCT, count($this->compacts)); { - foreach ($this->compacts as $iter667) + foreach ($this->compacts as $iter681) { - $xfer += $iter667->write($output); + $xfer += $iter681->write($output); } } $output->writeListEnd(); @@ -22965,14 +23063,14 @@ class AddDynamicPartitions { case 5: if ($ftype == TType::LST) { $this->partitionnames = array(); - $_size668 = 0; - $_etype671 = 0; - $xfer += $input->readListBegin($_etype671, $_size668); - for ($_i672 = 0; $_i672 < $_size668; ++$_i672) + $_size682 = 0; + $_etype685 = 0; + $xfer += $input->readListBegin($_etype685, $_size682); + for ($_i686 = 0; $_i686 < $_size682; ++$_i686) { - $elem673 = null; - $xfer += $input->readString($elem673); - $this->partitionnames []= $elem673; + $elem687 = null; + $xfer += $input->readString($elem687); + $this->partitionnames []= $elem687; } $xfer += $input->readListEnd(); } else { @@ -23027,9 +23125,9 @@ class AddDynamicPartitions { { $output->writeListBegin(TType::STRING, count($this->partitionnames)); { - foreach ($this->partitionnames as $iter674) + foreach ($this->partitionnames as $iter688) { - $xfer += $output->writeString($iter674); + $xfer += $output->writeString($iter688); } } $output->writeListEnd(); @@ -23324,14 +23422,14 @@ class NotificationEventRequest { case 3: if ($ftype == TType::LST) { $this->eventTypeSkipList = array(); - $_size675 = 0; - $_etype678 = 0; - $xfer += $input->readListBegin($_etype678, $_size675); - for ($_i679 = 0; $_i679 < $_size675; ++$_i679) + $_size689 = 0; + $_etype692 = 0; + $xfer += $input->readListBegin($_etype692, $_size689); + for ($_i693 = 0; $_i693 < $_size689; ++$_i693) { - $elem680 = null; - $xfer += $input->readString($elem680); - $this->eventTypeSkipList []= $elem680; + $elem694 = null; + $xfer += $input->readString($elem694); + $this->eventTypeSkipList []= $elem694; } $xfer += $input->readListEnd(); } else { @@ -23369,9 +23467,9 @@ class NotificationEventRequest { { $output->writeListBegin(TType::STRING, count($this->eventTypeSkipList)); { - foreach ($this->eventTypeSkipList as $iter681) + foreach ($this->eventTypeSkipList as $iter695) { - $xfer += $output->writeString($iter681); + $xfer += $output->writeString($iter695); } } $output->writeListEnd(); @@ -23672,15 +23770,15 @@ class NotificationEventResponse { case 1: if ($ftype == TType::LST) { $this->events = array(); - $_size682 = 0; - $_etype685 = 0; - $xfer += $input->readListBegin($_etype685, $_size682); - for ($_i686 = 0; $_i686 < $_size682; ++$_i686) + $_size696 = 0; + $_etype699 = 0; + $xfer += $input->readListBegin($_etype699, $_size696); + for ($_i700 = 0; $_i700 < $_size696; ++$_i700) { - $elem687 = null; - $elem687 = new \metastore\NotificationEvent(); - $xfer += $elem687->read($input); - $this->events []= $elem687; + $elem701 = null; + $elem701 = new \metastore\NotificationEvent(); + $xfer += $elem701->read($input); + $this->events []= $elem701; } $xfer += $input->readListEnd(); } else { @@ -23708,9 +23806,9 @@ class NotificationEventResponse { { $output->writeListBegin(TType::STRUCT, count($this->events)); { - foreach ($this->events as $iter688) + foreach ($this->events as $iter702) { - $xfer += $iter688->write($output); + $xfer += $iter702->write($output); } } $output->writeListEnd(); @@ -24139,14 +24237,14 @@ class InsertEventRequestData { case 2: if ($ftype == TType::LST) { $this->filesAdded = array(); - $_size689 = 0; - $_etype692 = 0; - $xfer += $input->readListBegin($_etype692, $_size689); - for ($_i693 = 0; $_i693 < $_size689; ++$_i693) + $_size703 = 0; + $_etype706 = 0; + $xfer += $input->readListBegin($_etype706, $_size703); + for ($_i707 = 0; $_i707 < $_size703; ++$_i707) { - $elem694 = null; - $xfer += $input->readString($elem694); - $this->filesAdded []= $elem694; + $elem708 = null; + $xfer += $input->readString($elem708); + $this->filesAdded []= $elem708; } $xfer += $input->readListEnd(); } else { @@ -24156,14 +24254,14 @@ class InsertEventRequestData { case 3: if ($ftype == TType::LST) { $this->filesAddedChecksum = array(); - $_size695 = 0; - $_etype698 = 0; - $xfer += $input->readListBegin($_etype698, $_size695); - for ($_i699 = 0; $_i699 < $_size695; ++$_i699) + $_size709 = 0; + $_etype712 = 0; + $xfer += $input->readListBegin($_etype712, $_size709); + for ($_i713 = 0; $_i713 < $_size709; ++$_i713) { - $elem700 = null; - $xfer += $input->readString($elem700); - $this->filesAddedChecksum []= $elem700; + $elem714 = null; + $xfer += $input->readString($elem714); + $this->filesAddedChecksum []= $elem714; } $xfer += $input->readListEnd(); } else { @@ -24173,14 +24271,14 @@ class InsertEventRequestData { case 4: if ($ftype == TType::LST) { $this->subDirectoryList = array(); - $_size701 = 0; - $_etype704 = 0; - $xfer += $input->readListBegin($_etype704, $_size701); - for ($_i705 = 0; $_i705 < $_size701; ++$_i705) + $_size715 = 0; + $_etype718 = 0; + $xfer += $input->readListBegin($_etype718, $_size715); + for ($_i719 = 0; $_i719 < $_size715; ++$_i719) { - $elem706 = null; - $xfer += $input->readString($elem706); - $this->subDirectoryList []= $elem706; + $elem720 = null; + $xfer += $input->readString($elem720); + $this->subDirectoryList []= $elem720; } $xfer += $input->readListEnd(); } else { @@ -24213,9 +24311,9 @@ class InsertEventRequestData { { $output->writeListBegin(TType::STRING, count($this->filesAdded)); { - foreach ($this->filesAdded as $iter707) + foreach ($this->filesAdded as $iter721) { - $xfer += $output->writeString($iter707); + $xfer += $output->writeString($iter721); } } $output->writeListEnd(); @@ -24230,9 +24328,9 @@ class InsertEventRequestData { { $output->writeListBegin(TType::STRING, count($this->filesAddedChecksum)); { - foreach ($this->filesAddedChecksum as $iter708) + foreach ($this->filesAddedChecksum as $iter722) { - $xfer += $output->writeString($iter708); + $xfer += $output->writeString($iter722); } } $output->writeListEnd(); @@ -24247,9 +24345,9 @@ class InsertEventRequestData { { $output->writeListBegin(TType::STRING, count($this->subDirectoryList)); { - foreach ($this->subDirectoryList as $iter709) + foreach ($this->subDirectoryList as $iter723) { - $xfer += $output->writeString($iter709); + $xfer += $output->writeString($iter723); } } $output->writeListEnd(); @@ -24478,14 +24576,14 @@ class FireEventRequest { case 5: if ($ftype == TType::LST) { $this->partitionVals = array(); - $_size710 = 0; - $_etype713 = 0; - $xfer += $input->readListBegin($_etype713, $_size710); - for ($_i714 = 0; $_i714 < $_size710; ++$_i714) + $_size724 = 0; + $_etype727 = 0; + $xfer += $input->readListBegin($_etype727, $_size724); + for ($_i728 = 0; $_i728 < $_size724; ++$_i728) { - $elem715 = null; - $xfer += $input->readString($elem715); - $this->partitionVals []= $elem715; + $elem729 = null; + $xfer += $input->readString($elem729); + $this->partitionVals []= $elem729; } $xfer += $input->readListEnd(); } else { @@ -24543,9 +24641,9 @@ class FireEventRequest { { $output->writeListBegin(TType::STRING, count($this->partitionVals)); { - foreach ($this->partitionVals as $iter716) + foreach ($this->partitionVals as $iter730) { - $xfer += $output->writeString($iter716); + $xfer += $output->writeString($iter730); } } $output->writeListEnd(); @@ -24756,14 +24854,14 @@ class WriteNotificationLogRequest { case 6: if ($ftype == TType::LST) { $this->partitionVals = array(); - $_size717 = 0; - $_etype720 = 0; - $xfer += $input->readListBegin($_etype720, $_size717); - for ($_i721 = 0; $_i721 < $_size717; ++$_i721) + $_size731 = 0; + $_etype734 = 0; + $xfer += $input->readListBegin($_etype734, $_size731); + for ($_i735 = 0; $_i735 < $_size731; ++$_i735) { - $elem722 = null; - $xfer += $input->readString($elem722); - $this->partitionVals []= $elem722; + $elem736 = null; + $xfer += $input->readString($elem736); + $this->partitionVals []= $elem736; } $xfer += $input->readListEnd(); } else { @@ -24819,9 +24917,9 @@ class WriteNotificationLogRequest { { $output->writeListBegin(TType::STRING, count($this->partitionVals)); { - foreach ($this->partitionVals as $iter723) + foreach ($this->partitionVals as $iter737) { - $xfer += $output->writeString($iter723); + $xfer += $output->writeString($iter737); } } $output->writeListEnd(); @@ -25049,18 +25147,18 @@ class GetFileMetadataByExprResult { case 1: if ($ftype == TType::MAP) { $this->metadata = array(); - $_size724 = 0; - $_ktype725 = 0; - $_vtype726 = 0; - $xfer += $input->readMapBegin($_ktype725, $_vtype726, $_size724); - for ($_i728 = 0; $_i728 < $_size724; ++$_i728) + $_size738 = 0; + $_ktype739 = 0; + $_vtype740 = 0; + $xfer += $input->readMapBegin($_ktype739, $_vtype740, $_size738); + for ($_i742 = 0; $_i742 < $_size738; ++$_i742) { - $key729 = 0; - $val730 = new \metastore\MetadataPpdResult(); - $xfer += $input->readI64($key729); - $val730 = new \metastore\MetadataPpdResult(); - $xfer += $val730->read($input); - $this->metadata[$key729] = $val730; + $key743 = 0; + $val744 = new \metastore\MetadataPpdResult(); + $xfer += $input->readI64($key743); + $val744 = new \metastore\MetadataPpdResult(); + $xfer += $val744->read($input); + $this->metadata[$key743] = $val744; } $xfer += $input->readMapEnd(); } else { @@ -25095,10 +25193,10 @@ class GetFileMetadataByExprResult { { $output->writeMapBegin(TType::I64, TType::STRUCT, count($this->metadata)); { - foreach ($this->metadata as $kiter731 => $viter732) + foreach ($this->metadata as $kiter745 => $viter746) { - $xfer += $output->writeI64($kiter731); - $xfer += $viter732->write($output); + $xfer += $output->writeI64($kiter745); + $xfer += $viter746->write($output); } } $output->writeMapEnd(); @@ -25200,14 +25298,14 @@ class GetFileMetadataByExprRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size733 = 0; - $_etype736 = 0; - $xfer += $input->readListBegin($_etype736, $_size733); - for ($_i737 = 0; $_i737 < $_size733; ++$_i737) + $_size747 = 0; + $_etype750 = 0; + $xfer += $input->readListBegin($_etype750, $_size747); + for ($_i751 = 0; $_i751 < $_size747; ++$_i751) { - $elem738 = null; - $xfer += $input->readI64($elem738); - $this->fileIds []= $elem738; + $elem752 = null; + $xfer += $input->readI64($elem752); + $this->fileIds []= $elem752; } $xfer += $input->readListEnd(); } else { @@ -25256,9 +25354,9 @@ class GetFileMetadataByExprRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter739) + foreach ($this->fileIds as $iter753) { - $xfer += $output->writeI64($iter739); + $xfer += $output->writeI64($iter753); } } $output->writeListEnd(); @@ -25352,17 +25450,17 @@ class GetFileMetadataResult { case 1: if ($ftype == TType::MAP) { $this->metadata = array(); - $_size740 = 0; - $_ktype741 = 0; - $_vtype742 = 0; - $xfer += $input->readMapBegin($_ktype741, $_vtype742, $_size740); - for ($_i744 = 0; $_i744 < $_size740; ++$_i744) + $_size754 = 0; + $_ktype755 = 0; + $_vtype756 = 0; + $xfer += $input->readMapBegin($_ktype755, $_vtype756, $_size754); + for ($_i758 = 0; $_i758 < $_size754; ++$_i758) { - $key745 = 0; - $val746 = ''; - $xfer += $input->readI64($key745); - $xfer += $input->readString($val746); - $this->metadata[$key745] = $val746; + $key759 = 0; + $val760 = ''; + $xfer += $input->readI64($key759); + $xfer += $input->readString($val760); + $this->metadata[$key759] = $val760; } $xfer += $input->readMapEnd(); } else { @@ -25397,10 +25495,10 @@ class GetFileMetadataResult { { $output->writeMapBegin(TType::I64, TType::STRING, count($this->metadata)); { - foreach ($this->metadata as $kiter747 => $viter748) + foreach ($this->metadata as $kiter761 => $viter762) { - $xfer += $output->writeI64($kiter747); - $xfer += $output->writeString($viter748); + $xfer += $output->writeI64($kiter761); + $xfer += $output->writeString($viter762); } } $output->writeMapEnd(); @@ -25469,14 +25567,14 @@ class GetFileMetadataRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size749 = 0; - $_etype752 = 0; - $xfer += $input->readListBegin($_etype752, $_size749); - for ($_i753 = 0; $_i753 < $_size749; ++$_i753) + $_size763 = 0; + $_etype766 = 0; + $xfer += $input->readListBegin($_etype766, $_size763); + for ($_i767 = 0; $_i767 < $_size763; ++$_i767) { - $elem754 = null; - $xfer += $input->readI64($elem754); - $this->fileIds []= $elem754; + $elem768 = null; + $xfer += $input->readI64($elem768); + $this->fileIds []= $elem768; } $xfer += $input->readListEnd(); } else { @@ -25504,9 +25602,9 @@ class GetFileMetadataRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter755) + foreach ($this->fileIds as $iter769) { - $xfer += $output->writeI64($iter755); + $xfer += $output->writeI64($iter769); } } $output->writeListEnd(); @@ -25646,14 +25744,14 @@ class PutFileMetadataRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size756 = 0; - $_etype759 = 0; - $xfer += $input->readListBegin($_etype759, $_size756); - for ($_i760 = 0; $_i760 < $_size756; ++$_i760) + $_size770 = 0; + $_etype773 = 0; + $xfer += $input->readListBegin($_etype773, $_size770); + for ($_i774 = 0; $_i774 < $_size770; ++$_i774) { - $elem761 = null; - $xfer += $input->readI64($elem761); - $this->fileIds []= $elem761; + $elem775 = null; + $xfer += $input->readI64($elem775); + $this->fileIds []= $elem775; } $xfer += $input->readListEnd(); } else { @@ -25663,14 +25761,14 @@ class PutFileMetadataRequest { case 2: if ($ftype == TType::LST) { $this->metadata = array(); - $_size762 = 0; - $_etype765 = 0; - $xfer += $input->readListBegin($_etype765, $_size762); - for ($_i766 = 0; $_i766 < $_size762; ++$_i766) + $_size776 = 0; + $_etype779 = 0; + $xfer += $input->readListBegin($_etype779, $_size776); + for ($_i780 = 0; $_i780 < $_size776; ++$_i780) { - $elem767 = null; - $xfer += $input->readString($elem767); - $this->metadata []= $elem767; + $elem781 = null; + $xfer += $input->readString($elem781); + $this->metadata []= $elem781; } $xfer += $input->readListEnd(); } else { @@ -25705,9 +25803,9 @@ class PutFileMetadataRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter768) + foreach ($this->fileIds as $iter782) { - $xfer += $output->writeI64($iter768); + $xfer += $output->writeI64($iter782); } } $output->writeListEnd(); @@ -25722,9 +25820,9 @@ class PutFileMetadataRequest { { $output->writeListBegin(TType::STRING, count($this->metadata)); { - foreach ($this->metadata as $iter769) + foreach ($this->metadata as $iter783) { - $xfer += $output->writeString($iter769); + $xfer += $output->writeString($iter783); } } $output->writeListEnd(); @@ -25843,14 +25941,14 @@ class ClearFileMetadataRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size770 = 0; - $_etype773 = 0; - $xfer += $input->readListBegin($_etype773, $_size770); - for ($_i774 = 0; $_i774 < $_size770; ++$_i774) + $_size784 = 0; + $_etype787 = 0; + $xfer += $input->readListBegin($_etype787, $_size784); + for ($_i788 = 0; $_i788 < $_size784; ++$_i788) { - $elem775 = null; - $xfer += $input->readI64($elem775); - $this->fileIds []= $elem775; + $elem789 = null; + $xfer += $input->readI64($elem789); + $this->fileIds []= $elem789; } $xfer += $input->readListEnd(); } else { @@ -25878,9 +25976,9 @@ class ClearFileMetadataRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter776) + foreach ($this->fileIds as $iter790) { - $xfer += $output->writeI64($iter776); + $xfer += $output->writeI64($iter790); } } $output->writeListEnd(); @@ -26164,15 +26262,15 @@ class GetAllFunctionsResponse { case 1: if ($ftype == TType::LST) { $this->functions = array(); - $_size777 = 0; - $_etype780 = 0; - $xfer += $input->readListBegin($_etype780, $_size777); - for ($_i781 = 0; $_i781 < $_size777; ++$_i781) + $_size791 = 0; + $_etype794 = 0; + $xfer += $input->readListBegin($_etype794, $_size791); + for ($_i795 = 0; $_i795 < $_size791; ++$_i795) { - $elem782 = null; - $elem782 = new \metastore\Function(); - $xfer += $elem782->read($input); - $this->functions []= $elem782; + $elem796 = null; + $elem796 = new \metastore\Function(); + $xfer += $elem796->read($input); + $this->functions []= $elem796; } $xfer += $input->readListEnd(); } else { @@ -26200,9 +26298,9 @@ class GetAllFunctionsResponse { { $output->writeListBegin(TType::STRUCT, count($this->functions)); { - foreach ($this->functions as $iter783) + foreach ($this->functions as $iter797) { - $xfer += $iter783->write($output); + $xfer += $iter797->write($output); } } $output->writeListEnd(); @@ -26266,14 +26364,14 @@ class ClientCapabilities { case 1: if ($ftype == TType::LST) { $this->values = array(); - $_size784 = 0; - $_etype787 = 0; - $xfer += $input->readListBegin($_etype787, $_size784); - for ($_i788 = 0; $_i788 < $_size784; ++$_i788) + $_size798 = 0; + $_etype801 = 0; + $xfer += $input->readListBegin($_etype801, $_size798); + for ($_i802 = 0; $_i802 < $_size798; ++$_i802) { - $elem789 = null; - $xfer += $input->readI32($elem789); - $this->values []= $elem789; + $elem803 = null; + $xfer += $input->readI32($elem803); + $this->values []= $elem803; } $xfer += $input->readListEnd(); } else { @@ -26301,9 +26399,9 @@ class ClientCapabilities { { $output->writeListBegin(TType::I32, count($this->values)); { - foreach ($this->values as $iter790) + foreach ($this->values as $iter804) { - $xfer += $output->writeI32($iter790); + $xfer += $output->writeI32($iter804); } } $output->writeListEnd(); @@ -26488,14 +26586,14 @@ class GetTableRequest { case 8: if ($ftype == TType::LST) { $this->processorCapabilities = array(); - $_size791 = 0; - $_etype794 = 0; - $xfer += $input->readListBegin($_etype794, $_size791); - for ($_i795 = 0; $_i795 < $_size791; ++$_i795) + $_size805 = 0; + $_etype808 = 0; + $xfer += $input->readListBegin($_etype808, $_size805); + for ($_i809 = 0; $_i809 < $_size805; ++$_i809) { - $elem796 = null; - $xfer += $input->readString($elem796); - $this->processorCapabilities []= $elem796; + $elem810 = null; + $xfer += $input->readString($elem810); + $this->processorCapabilities []= $elem810; } $xfer += $input->readListEnd(); } else { @@ -26563,9 +26661,9 @@ class GetTableRequest { { $output->writeListBegin(TType::STRING, count($this->processorCapabilities)); { - foreach ($this->processorCapabilities as $iter797) + foreach ($this->processorCapabilities as $iter811) { - $xfer += $output->writeString($iter797); + $xfer += $output->writeString($iter811); } } $output->writeListEnd(); @@ -26804,14 +26902,14 @@ class GetTablesRequest { case 2: if ($ftype == TType::LST) { $this->tblNames = array(); - $_size798 = 0; - $_etype801 = 0; - $xfer += $input->readListBegin($_etype801, $_size798); - for ($_i802 = 0; $_i802 < $_size798; ++$_i802) + $_size812 = 0; + $_etype815 = 0; + $xfer += $input->readListBegin($_etype815, $_size812); + for ($_i816 = 0; $_i816 < $_size812; ++$_i816) { - $elem803 = null; - $xfer += $input->readString($elem803); - $this->tblNames []= $elem803; + $elem817 = null; + $xfer += $input->readString($elem817); + $this->tblNames []= $elem817; } $xfer += $input->readListEnd(); } else { @@ -26836,14 +26934,14 @@ class GetTablesRequest { case 5: if ($ftype == TType::LST) { $this->processorCapabilities = array(); - $_size804 = 0; - $_etype807 = 0; - $xfer += $input->readListBegin($_etype807, $_size804); - for ($_i808 = 0; $_i808 < $_size804; ++$_i808) + $_size818 = 0; + $_etype821 = 0; + $xfer += $input->readListBegin($_etype821, $_size818); + for ($_i822 = 0; $_i822 < $_size818; ++$_i822) { - $elem809 = null; - $xfer += $input->readString($elem809); - $this->processorCapabilities []= $elem809; + $elem823 = null; + $xfer += $input->readString($elem823); + $this->processorCapabilities []= $elem823; } $xfer += $input->readListEnd(); } else { @@ -26883,9 +26981,9 @@ class GetTablesRequest { { $output->writeListBegin(TType::STRING, count($this->tblNames)); { - foreach ($this->tblNames as $iter810) + foreach ($this->tblNames as $iter824) { - $xfer += $output->writeString($iter810); + $xfer += $output->writeString($iter824); } } $output->writeListEnd(); @@ -26913,9 +27011,9 @@ class GetTablesRequest { { $output->writeListBegin(TType::STRING, count($this->processorCapabilities)); { - foreach ($this->processorCapabilities as $iter811) + foreach ($this->processorCapabilities as $iter825) { - $xfer += $output->writeString($iter811); + $xfer += $output->writeString($iter825); } } $output->writeListEnd(); @@ -26985,15 +27083,15 @@ class GetTablesResult { case 1: if ($ftype == TType::LST) { $this->tables = array(); - $_size812 = 0; - $_etype815 = 0; - $xfer += $input->readListBegin($_etype815, $_size812); - for ($_i816 = 0; $_i816 < $_size812; ++$_i816) + $_size826 = 0; + $_etype829 = 0; + $xfer += $input->readListBegin($_etype829, $_size826); + for ($_i830 = 0; $_i830 < $_size826; ++$_i830) { - $elem817 = null; - $elem817 = new \metastore\Table(); - $xfer += $elem817->read($input); - $this->tables []= $elem817; + $elem831 = null; + $elem831 = new \metastore\Table(); + $xfer += $elem831->read($input); + $this->tables []= $elem831; } $xfer += $input->readListEnd(); } else { @@ -27021,9 +27119,9 @@ class GetTablesResult { { $output->writeListBegin(TType::STRUCT, count($this->tables)); { - foreach ($this->tables as $iter818) + foreach ($this->tables as $iter832) { - $xfer += $iter818->write($output); + $xfer += $iter832->write($output); } } $output->writeListEnd(); @@ -27188,14 +27286,14 @@ class GetTablesExtRequest { case 6: if ($ftype == TType::LST) { $this->processorCapabilities = array(); - $_size819 = 0; - $_etype822 = 0; - $xfer += $input->readListBegin($_etype822, $_size819); - for ($_i823 = 0; $_i823 < $_size819; ++$_i823) + $_size833 = 0; + $_etype836 = 0; + $xfer += $input->readListBegin($_etype836, $_size833); + for ($_i837 = 0; $_i837 < $_size833; ++$_i837) { - $elem824 = null; - $xfer += $input->readString($elem824); - $this->processorCapabilities []= $elem824; + $elem838 = null; + $xfer += $input->readString($elem838); + $this->processorCapabilities []= $elem838; } $xfer += $input->readListEnd(); } else { @@ -27255,9 +27353,9 @@ class GetTablesExtRequest { { $output->writeListBegin(TType::STRING, count($this->processorCapabilities)); { - foreach ($this->processorCapabilities as $iter825) + foreach ($this->processorCapabilities as $iter839) { - $xfer += $output->writeString($iter825); + $xfer += $output->writeString($iter839); } } $output->writeListEnd(); @@ -27290,7 +27388,11 @@ class ExtendedTableInfo { /** * @var string[] */ - public $processorCapabilities = null; + public $requiredReadCapabilities = null; + /** + * @var string[] + */ + public $requiredWriteCapabilities = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -27304,7 +27406,15 @@ class ExtendedTableInfo { 'type' => TType::I32, ), 3 => array( - 'var' => 'processorCapabilities', + 'var' => 'requiredReadCapabilities', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + 4 => array( + 'var' => 'requiredWriteCapabilities', 'type' => TType::LST, 'etype' => TType::STRING, 'elem' => array( @@ -27320,8 +27430,11 @@ class ExtendedTableInfo { if (isset($vals['accessType'])) { $this->accessType = $vals['accessType']; } - if (isset($vals['processorCapabilities'])) { - $this->processorCapabilities = $vals['processorCapabilities']; + if (isset($vals['requiredReadCapabilities'])) { + $this->requiredReadCapabilities = $vals['requiredReadCapabilities']; + } + if (isset($vals['requiredWriteCapabilities'])) { + $this->requiredWriteCapabilities = $vals['requiredWriteCapabilities']; } } } @@ -27361,15 +27474,32 @@ class ExtendedTableInfo { break; case 3: if ($ftype == TType::LST) { - $this->processorCapabilities = array(); - $_size826 = 0; - $_etype829 = 0; - $xfer += $input->readListBegin($_etype829, $_size826); - for ($_i830 = 0; $_i830 < $_size826; ++$_i830) + $this->requiredReadCapabilities = array(); + $_size840 = 0; + $_etype843 = 0; + $xfer += $input->readListBegin($_etype843, $_size840); + for ($_i844 = 0; $_i844 < $_size840; ++$_i844) { - $elem831 = null; - $xfer += $input->readString($elem831); - $this->processorCapabilities []= $elem831; + $elem845 = null; + $xfer += $input->readString($elem845); + $this->requiredReadCapabilities []= $elem845; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::LST) { + $this->requiredWriteCapabilities = array(); + $_size846 = 0; + $_etype849 = 0; + $xfer += $input->readListBegin($_etype849, $_size846); + for ($_i850 = 0; $_i850 < $_size846; ++$_i850) + { + $elem851 = null; + $xfer += $input->readString($elem851); + $this->requiredWriteCapabilities []= $elem851; } $xfer += $input->readListEnd(); } else { @@ -27399,17 +27529,34 @@ class ExtendedTableInfo { $xfer += $output->writeI32($this->accessType); $xfer += $output->writeFieldEnd(); } - if ($this->processorCapabilities !== null) { - if (!is_array($this->processorCapabilities)) { + if ($this->requiredReadCapabilities !== null) { + if (!is_array($this->requiredReadCapabilities)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('processorCapabilities', TType::LST, 3); + $xfer += $output->writeFieldBegin('requiredReadCapabilities', TType::LST, 3); { - $output->writeListBegin(TType::STRING, count($this->processorCapabilities)); + $output->writeListBegin(TType::STRING, count($this->requiredReadCapabilities)); + { + foreach ($this->requiredReadCapabilities as $iter852) + { + $xfer += $output->writeString($iter852); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->requiredWriteCapabilities !== null) { + if (!is_array($this->requiredWriteCapabilities)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('requiredWriteCapabilities', TType::LST, 4); + { + $output->writeListBegin(TType::STRING, count($this->requiredWriteCapabilities)); { - foreach ($this->processorCapabilities as $iter832) + foreach ($this->requiredWriteCapabilities as $iter853) { - $xfer += $output->writeString($iter832); + $xfer += $output->writeString($iter853); } } $output->writeListEnd(); @@ -29216,15 +29363,15 @@ class WMFullResourcePlan { case 2: if ($ftype == TType::LST) { $this->pools = array(); - $_size833 = 0; - $_etype836 = 0; - $xfer += $input->readListBegin($_etype836, $_size833); - for ($_i837 = 0; $_i837 < $_size833; ++$_i837) + $_size854 = 0; + $_etype857 = 0; + $xfer += $input->readListBegin($_etype857, $_size854); + for ($_i858 = 0; $_i858 < $_size854; ++$_i858) { - $elem838 = null; - $elem838 = new \metastore\WMPool(); - $xfer += $elem838->read($input); - $this->pools []= $elem838; + $elem859 = null; + $elem859 = new \metastore\WMPool(); + $xfer += $elem859->read($input); + $this->pools []= $elem859; } $xfer += $input->readListEnd(); } else { @@ -29234,15 +29381,15 @@ class WMFullResourcePlan { case 3: if ($ftype == TType::LST) { $this->mappings = array(); - $_size839 = 0; - $_etype842 = 0; - $xfer += $input->readListBegin($_etype842, $_size839); - for ($_i843 = 0; $_i843 < $_size839; ++$_i843) + $_size860 = 0; + $_etype863 = 0; + $xfer += $input->readListBegin($_etype863, $_size860); + for ($_i864 = 0; $_i864 < $_size860; ++$_i864) { - $elem844 = null; - $elem844 = new \metastore\WMMapping(); - $xfer += $elem844->read($input); - $this->mappings []= $elem844; + $elem865 = null; + $elem865 = new \metastore\WMMapping(); + $xfer += $elem865->read($input); + $this->mappings []= $elem865; } $xfer += $input->readListEnd(); } else { @@ -29252,15 +29399,15 @@ class WMFullResourcePlan { case 4: if ($ftype == TType::LST) { $this->triggers = array(); - $_size845 = 0; - $_etype848 = 0; - $xfer += $input->readListBegin($_etype848, $_size845); - for ($_i849 = 0; $_i849 < $_size845; ++$_i849) + $_size866 = 0; + $_etype869 = 0; + $xfer += $input->readListBegin($_etype869, $_size866); + for ($_i870 = 0; $_i870 < $_size866; ++$_i870) { - $elem850 = null; - $elem850 = new \metastore\WMTrigger(); - $xfer += $elem850->read($input); - $this->triggers []= $elem850; + $elem871 = null; + $elem871 = new \metastore\WMTrigger(); + $xfer += $elem871->read($input); + $this->triggers []= $elem871; } $xfer += $input->readListEnd(); } else { @@ -29270,15 +29417,15 @@ class WMFullResourcePlan { case 5: if ($ftype == TType::LST) { $this->poolTriggers = array(); - $_size851 = 0; - $_etype854 = 0; - $xfer += $input->readListBegin($_etype854, $_size851); - for ($_i855 = 0; $_i855 < $_size851; ++$_i855) + $_size872 = 0; + $_etype875 = 0; + $xfer += $input->readListBegin($_etype875, $_size872); + for ($_i876 = 0; $_i876 < $_size872; ++$_i876) { - $elem856 = null; - $elem856 = new \metastore\WMPoolTrigger(); - $xfer += $elem856->read($input); - $this->poolTriggers []= $elem856; + $elem877 = null; + $elem877 = new \metastore\WMPoolTrigger(); + $xfer += $elem877->read($input); + $this->poolTriggers []= $elem877; } $xfer += $input->readListEnd(); } else { @@ -29314,9 +29461,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->pools)); { - foreach ($this->pools as $iter857) + foreach ($this->pools as $iter878) { - $xfer += $iter857->write($output); + $xfer += $iter878->write($output); } } $output->writeListEnd(); @@ -29331,9 +29478,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->mappings)); { - foreach ($this->mappings as $iter858) + foreach ($this->mappings as $iter879) { - $xfer += $iter858->write($output); + $xfer += $iter879->write($output); } } $output->writeListEnd(); @@ -29348,9 +29495,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->triggers)); { - foreach ($this->triggers as $iter859) + foreach ($this->triggers as $iter880) { - $xfer += $iter859->write($output); + $xfer += $iter880->write($output); } } $output->writeListEnd(); @@ -29365,9 +29512,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->poolTriggers)); { - foreach ($this->poolTriggers as $iter860) + foreach ($this->poolTriggers as $iter881) { - $xfer += $iter860->write($output); + $xfer += $iter881->write($output); } } $output->writeListEnd(); @@ -29993,15 +30140,15 @@ class WMGetAllResourcePlanResponse { case 1: if ($ftype == TType::LST) { $this->resourcePlans = array(); - $_size861 = 0; - $_etype864 = 0; - $xfer += $input->readListBegin($_etype864, $_size861); - for ($_i865 = 0; $_i865 < $_size861; ++$_i865) + $_size882 = 0; + $_etype885 = 0; + $xfer += $input->readListBegin($_etype885, $_size882); + for ($_i886 = 0; $_i886 < $_size882; ++$_i886) { - $elem866 = null; - $elem866 = new \metastore\WMResourcePlan(); - $xfer += $elem866->read($input); - $this->resourcePlans []= $elem866; + $elem887 = null; + $elem887 = new \metastore\WMResourcePlan(); + $xfer += $elem887->read($input); + $this->resourcePlans []= $elem887; } $xfer += $input->readListEnd(); } else { @@ -30029,9 +30176,9 @@ class WMGetAllResourcePlanResponse { { $output->writeListBegin(TType::STRUCT, count($this->resourcePlans)); { - foreach ($this->resourcePlans as $iter867) + foreach ($this->resourcePlans as $iter888) { - $xfer += $iter867->write($output); + $xfer += $iter888->write($output); } } $output->writeListEnd(); @@ -30483,14 +30630,14 @@ class WMValidateResourcePlanResponse { case 1: if ($ftype == TType::LST) { $this->errors = array(); - $_size868 = 0; - $_etype871 = 0; - $xfer += $input->readListBegin($_etype871, $_size868); - for ($_i872 = 0; $_i872 < $_size868; ++$_i872) + $_size889 = 0; + $_etype892 = 0; + $xfer += $input->readListBegin($_etype892, $_size889); + for ($_i893 = 0; $_i893 < $_size889; ++$_i893) { - $elem873 = null; - $xfer += $input->readString($elem873); - $this->errors []= $elem873; + $elem894 = null; + $xfer += $input->readString($elem894); + $this->errors []= $elem894; } $xfer += $input->readListEnd(); } else { @@ -30500,14 +30647,14 @@ class WMValidateResourcePlanResponse { case 2: if ($ftype == TType::LST) { $this->warnings = array(); - $_size874 = 0; - $_etype877 = 0; - $xfer += $input->readListBegin($_etype877, $_size874); - for ($_i878 = 0; $_i878 < $_size874; ++$_i878) + $_size895 = 0; + $_etype898 = 0; + $xfer += $input->readListBegin($_etype898, $_size895); + for ($_i899 = 0; $_i899 < $_size895; ++$_i899) { - $elem879 = null; - $xfer += $input->readString($elem879); - $this->warnings []= $elem879; + $elem900 = null; + $xfer += $input->readString($elem900); + $this->warnings []= $elem900; } $xfer += $input->readListEnd(); } else { @@ -30535,9 +30682,9 @@ class WMValidateResourcePlanResponse { { $output->writeListBegin(TType::STRING, count($this->errors)); { - foreach ($this->errors as $iter880) + foreach ($this->errors as $iter901) { - $xfer += $output->writeString($iter880); + $xfer += $output->writeString($iter901); } } $output->writeListEnd(); @@ -30552,9 +30699,9 @@ class WMValidateResourcePlanResponse { { $output->writeListBegin(TType::STRING, count($this->warnings)); { - foreach ($this->warnings as $iter881) + foreach ($this->warnings as $iter902) { - $xfer += $output->writeString($iter881); + $xfer += $output->writeString($iter902); } } $output->writeListEnd(); @@ -31296,15 +31443,15 @@ class WMGetTriggersForResourePlanResponse { case 1: if ($ftype == TType::LST) { $this->triggers = array(); - $_size882 = 0; - $_etype885 = 0; - $xfer += $input->readListBegin($_etype885, $_size882); - for ($_i886 = 0; $_i886 < $_size882; ++$_i886) + $_size903 = 0; + $_etype906 = 0; + $xfer += $input->readListBegin($_etype906, $_size903); + for ($_i907 = 0; $_i907 < $_size903; ++$_i907) { - $elem887 = null; - $elem887 = new \metastore\WMTrigger(); - $xfer += $elem887->read($input); - $this->triggers []= $elem887; + $elem908 = null; + $elem908 = new \metastore\WMTrigger(); + $xfer += $elem908->read($input); + $this->triggers []= $elem908; } $xfer += $input->readListEnd(); } else { @@ -31332,9 +31479,9 @@ class WMGetTriggersForResourePlanResponse { { $output->writeListBegin(TType::STRUCT, count($this->triggers)); { - foreach ($this->triggers as $iter888) + foreach ($this->triggers as $iter909) { - $xfer += $iter888->write($output); + $xfer += $iter909->write($output); } } $output->writeListEnd(); @@ -32964,15 +33111,15 @@ class SchemaVersion { case 4: if ($ftype == TType::LST) { $this->cols = array(); - $_size889 = 0; - $_etype892 = 0; - $xfer += $input->readListBegin($_etype892, $_size889); - for ($_i893 = 0; $_i893 < $_size889; ++$_i893) + $_size910 = 0; + $_etype913 = 0; + $xfer += $input->readListBegin($_etype913, $_size910); + for ($_i914 = 0; $_i914 < $_size910; ++$_i914) { - $elem894 = null; - $elem894 = new \metastore\FieldSchema(); - $xfer += $elem894->read($input); - $this->cols []= $elem894; + $elem915 = null; + $elem915 = new \metastore\FieldSchema(); + $xfer += $elem915->read($input); + $this->cols []= $elem915; } $xfer += $input->readListEnd(); } else { @@ -33061,9 +33208,9 @@ class SchemaVersion { { $output->writeListBegin(TType::STRUCT, count($this->cols)); { - foreach ($this->cols as $iter895) + foreach ($this->cols as $iter916) { - $xfer += $iter895->write($output); + $xfer += $iter916->write($output); } } $output->writeListEnd(); @@ -33385,17 +33532,17 @@ class FindSchemasByColsResp { case 1: if ($ftype == TType::LST) { $this->schemaVersions = array(); - $_size896 = 0; - $_etype899 = 0; - $xfer += $input->readListBegin($_etype899, $_size896); - for ($_i900 = 0; $_i900 < $_size896; ++$_i900) - { - $elem901 = null; - $elem901 = new \metastore\SchemaVersionDescriptor(); - $xfer += $elem901->read($input); - $this->schemaVersions []= $elem901; - } - $xfer += $input->readListEnd(); + $_size917 = 0; + $_etype920 = 0; + $xfer += $input->readListBegin($_etype920, $_size917); + for ($_i921 = 0; $_i921 < $_size917; ++$_i921) + { + $elem922 = null; + $elem922 = new \metastore\SchemaVersionDescriptor(); + $xfer += $elem922->read($input); + $this->schemaVersions []= $elem922; + } + $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } @@ -33421,9 +33568,9 @@ class FindSchemasByColsResp { { $output->writeListBegin(TType::STRUCT, count($this->schemaVersions)); { - foreach ($this->schemaVersions as $iter902) + foreach ($this->schemaVersions as $iter923) { - $xfer += $iter902->write($output); + $xfer += $iter923->write($output); } } $output->writeListEnd(); @@ -33937,6 +34084,492 @@ class GetRuntimeStatsRequest { } +class CreateTableRequest { + static $_TSPEC; + + /** + * @var \metastore\Table + */ + public $table = null; + /** + * @var \metastore\EnvironmentContext + */ + public $envContext = null; + /** + * @var \metastore\SQLPrimaryKey[] + */ + public $primaryKeys = null; + /** + * @var \metastore\SQLForeignKey[] + */ + public $foreignKeys = null; + /** + * @var \metastore\SQLUniqueConstraint[] + */ + public $uniqueConstraints = null; + /** + * @var \metastore\SQLNotNullConstraint[] + */ + public $notNullConstraints = null; + /** + * @var \metastore\SQLDefaultConstraint[] + */ + public $defaultConstraints = null; + /** + * @var \metastore\SQLCheckConstraint[] + */ + public $checkConstraints = 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' => 'table', + 'type' => TType::STRUCT, + 'class' => '\metastore\Table', + ), + 2 => array( + 'var' => 'envContext', + 'type' => TType::STRUCT, + 'class' => '\metastore\EnvironmentContext', + ), + 3 => array( + 'var' => 'primaryKeys', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\SQLPrimaryKey', + ), + ), + 4 => array( + 'var' => 'foreignKeys', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\SQLForeignKey', + ), + ), + 5 => array( + 'var' => 'uniqueConstraints', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\SQLUniqueConstraint', + ), + ), + 6 => array( + 'var' => 'notNullConstraints', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\SQLNotNullConstraint', + ), + ), + 7 => array( + 'var' => 'defaultConstraints', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\SQLDefaultConstraint', + ), + ), + 8 => array( + 'var' => 'checkConstraints', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\SQLCheckConstraint', + ), + ), + 9 => array( + 'var' => 'processorCapabilities', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + 10 => array( + 'var' => 'processorIdentifier', + 'type' => TType::STRING, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['table'])) { + $this->table = $vals['table']; + } + if (isset($vals['envContext'])) { + $this->envContext = $vals['envContext']; + } + if (isset($vals['primaryKeys'])) { + $this->primaryKeys = $vals['primaryKeys']; + } + if (isset($vals['foreignKeys'])) { + $this->foreignKeys = $vals['foreignKeys']; + } + if (isset($vals['uniqueConstraints'])) { + $this->uniqueConstraints = $vals['uniqueConstraints']; + } + if (isset($vals['notNullConstraints'])) { + $this->notNullConstraints = $vals['notNullConstraints']; + } + if (isset($vals['defaultConstraints'])) { + $this->defaultConstraints = $vals['defaultConstraints']; + } + if (isset($vals['checkConstraints'])) { + $this->checkConstraints = $vals['checkConstraints']; + } + if (isset($vals['processorCapabilities'])) { + $this->processorCapabilities = $vals['processorCapabilities']; + } + if (isset($vals['processorIdentifier'])) { + $this->processorIdentifier = $vals['processorIdentifier']; + } + } + } + + public function getName() { + return 'CreateTableRequest'; + } + + 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->table = new \metastore\Table(); + $xfer += $this->table->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRUCT) { + $this->envContext = new \metastore\EnvironmentContext(); + $xfer += $this->envContext->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::LST) { + $this->primaryKeys = array(); + $_size924 = 0; + $_etype927 = 0; + $xfer += $input->readListBegin($_etype927, $_size924); + for ($_i928 = 0; $_i928 < $_size924; ++$_i928) + { + $elem929 = null; + $elem929 = new \metastore\SQLPrimaryKey(); + $xfer += $elem929->read($input); + $this->primaryKeys []= $elem929; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::LST) { + $this->foreignKeys = array(); + $_size930 = 0; + $_etype933 = 0; + $xfer += $input->readListBegin($_etype933, $_size930); + for ($_i934 = 0; $_i934 < $_size930; ++$_i934) + { + $elem935 = null; + $elem935 = new \metastore\SQLForeignKey(); + $xfer += $elem935->read($input); + $this->foreignKeys []= $elem935; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::LST) { + $this->uniqueConstraints = array(); + $_size936 = 0; + $_etype939 = 0; + $xfer += $input->readListBegin($_etype939, $_size936); + for ($_i940 = 0; $_i940 < $_size936; ++$_i940) + { + $elem941 = null; + $elem941 = new \metastore\SQLUniqueConstraint(); + $xfer += $elem941->read($input); + $this->uniqueConstraints []= $elem941; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 6: + if ($ftype == TType::LST) { + $this->notNullConstraints = array(); + $_size942 = 0; + $_etype945 = 0; + $xfer += $input->readListBegin($_etype945, $_size942); + for ($_i946 = 0; $_i946 < $_size942; ++$_i946) + { + $elem947 = null; + $elem947 = new \metastore\SQLNotNullConstraint(); + $xfer += $elem947->read($input); + $this->notNullConstraints []= $elem947; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 7: + if ($ftype == TType::LST) { + $this->defaultConstraints = array(); + $_size948 = 0; + $_etype951 = 0; + $xfer += $input->readListBegin($_etype951, $_size948); + for ($_i952 = 0; $_i952 < $_size948; ++$_i952) + { + $elem953 = null; + $elem953 = new \metastore\SQLDefaultConstraint(); + $xfer += $elem953->read($input); + $this->defaultConstraints []= $elem953; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 8: + if ($ftype == TType::LST) { + $this->checkConstraints = array(); + $_size954 = 0; + $_etype957 = 0; + $xfer += $input->readListBegin($_etype957, $_size954); + for ($_i958 = 0; $_i958 < $_size954; ++$_i958) + { + $elem959 = null; + $elem959 = new \metastore\SQLCheckConstraint(); + $xfer += $elem959->read($input); + $this->checkConstraints []= $elem959; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 9: + if ($ftype == TType::LST) { + $this->processorCapabilities = array(); + $_size960 = 0; + $_etype963 = 0; + $xfer += $input->readListBegin($_etype963, $_size960); + for ($_i964 = 0; $_i964 < $_size960; ++$_i964) + { + $elem965 = null; + $xfer += $input->readString($elem965); + $this->processorCapabilities []= $elem965; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 10: + 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('CreateTableRequest'); + if ($this->table !== null) { + if (!is_object($this->table)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('table', TType::STRUCT, 1); + $xfer += $this->table->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->envContext !== null) { + if (!is_object($this->envContext)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('envContext', TType::STRUCT, 2); + $xfer += $this->envContext->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->primaryKeys !== null) { + if (!is_array($this->primaryKeys)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('primaryKeys', TType::LST, 3); + { + $output->writeListBegin(TType::STRUCT, count($this->primaryKeys)); + { + foreach ($this->primaryKeys as $iter966) + { + $xfer += $iter966->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->foreignKeys !== null) { + if (!is_array($this->foreignKeys)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('foreignKeys', TType::LST, 4); + { + $output->writeListBegin(TType::STRUCT, count($this->foreignKeys)); + { + foreach ($this->foreignKeys as $iter967) + { + $xfer += $iter967->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->uniqueConstraints !== null) { + if (!is_array($this->uniqueConstraints)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('uniqueConstraints', TType::LST, 5); + { + $output->writeListBegin(TType::STRUCT, count($this->uniqueConstraints)); + { + foreach ($this->uniqueConstraints as $iter968) + { + $xfer += $iter968->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->notNullConstraints !== null) { + if (!is_array($this->notNullConstraints)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('notNullConstraints', TType::LST, 6); + { + $output->writeListBegin(TType::STRUCT, count($this->notNullConstraints)); + { + foreach ($this->notNullConstraints as $iter969) + { + $xfer += $iter969->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->defaultConstraints !== null) { + if (!is_array($this->defaultConstraints)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('defaultConstraints', TType::LST, 7); + { + $output->writeListBegin(TType::STRUCT, count($this->defaultConstraints)); + { + foreach ($this->defaultConstraints as $iter970) + { + $xfer += $iter970->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->checkConstraints !== null) { + if (!is_array($this->checkConstraints)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('checkConstraints', TType::LST, 8); + { + $output->writeListBegin(TType::STRUCT, count($this->checkConstraints)); + { + foreach ($this->checkConstraints as $iter971) + { + $xfer += $iter971->write($output); + } + } + $output->writeListEnd(); + } + $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, 9); + { + $output->writeListBegin(TType::STRING, count($this->processorCapabilities)); + { + foreach ($this->processorCapabilities as $iter972) + { + $xfer += $output->writeString($iter972); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->processorIdentifier !== null) { + $xfer += $output->writeFieldBegin('processorIdentifier', TType::STRING, 10); + $xfer += $output->writeString($this->processorIdentifier); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + class AlterPartitionsRequest { static $_TSPEC; @@ -34076,15 +34709,15 @@ class AlterPartitionsRequest { case 4: if ($ftype == TType::LST) { $this->partitions = array(); - $_size903 = 0; - $_etype906 = 0; - $xfer += $input->readListBegin($_etype906, $_size903); - for ($_i907 = 0; $_i907 < $_size903; ++$_i907) + $_size973 = 0; + $_etype976 = 0; + $xfer += $input->readListBegin($_etype976, $_size973); + for ($_i977 = 0; $_i977 < $_size973; ++$_i977) { - $elem908 = null; - $elem908 = new \metastore\Partition(); - $xfer += $elem908->read($input); - $this->partitions []= $elem908; + $elem978 = null; + $elem978 = new \metastore\Partition(); + $xfer += $elem978->read($input); + $this->partitions []= $elem978; } $xfer += $input->readListEnd(); } else { @@ -34149,9 +34782,9 @@ class AlterPartitionsRequest { { $output->writeListBegin(TType::STRUCT, count($this->partitions)); { - foreach ($this->partitions as $iter909) + foreach ($this->partitions as $iter979) { - $xfer += $iter909->write($output); + $xfer += $iter979->write($output); } } $output->writeListEnd(); @@ -34360,14 +34993,14 @@ class RenamePartitionRequest { case 4: if ($ftype == TType::LST) { $this->partVals = array(); - $_size910 = 0; - $_etype913 = 0; - $xfer += $input->readListBegin($_etype913, $_size910); - for ($_i914 = 0; $_i914 < $_size910; ++$_i914) + $_size980 = 0; + $_etype983 = 0; + $xfer += $input->readListBegin($_etype983, $_size980); + for ($_i984 = 0; $_i984 < $_size980; ++$_i984) { - $elem915 = null; - $xfer += $input->readString($elem915); - $this->partVals []= $elem915; + $elem985 = null; + $xfer += $input->readString($elem985); + $this->partVals []= $elem985; } $xfer += $input->readListEnd(); } else { @@ -34425,9 +35058,9 @@ class RenamePartitionRequest { { $output->writeListBegin(TType::STRING, count($this->partVals)); { - foreach ($this->partVals as $iter916) + foreach ($this->partVals as $iter986) { - $xfer += $output->writeString($iter916); + $xfer += $output->writeString($iter986); } } $output->writeListEnd(); @@ -34849,14 +35482,14 @@ class GetPartitionsProjectionSpec { case 1: if ($ftype == TType::LST) { $this->fieldList = array(); - $_size917 = 0; - $_etype920 = 0; - $xfer += $input->readListBegin($_etype920, $_size917); - for ($_i921 = 0; $_i921 < $_size917; ++$_i921) + $_size987 = 0; + $_etype990 = 0; + $xfer += $input->readListBegin($_etype990, $_size987); + for ($_i991 = 0; $_i991 < $_size987; ++$_i991) { - $elem922 = null; - $xfer += $input->readString($elem922); - $this->fieldList []= $elem922; + $elem992 = null; + $xfer += $input->readString($elem992); + $this->fieldList []= $elem992; } $xfer += $input->readListEnd(); } else { @@ -34898,9 +35531,9 @@ class GetPartitionsProjectionSpec { { $output->writeListBegin(TType::STRING, count($this->fieldList)); { - foreach ($this->fieldList as $iter923) + foreach ($this->fieldList as $iter993) { - $xfer += $output->writeString($iter923); + $xfer += $output->writeString($iter993); } } $output->writeListEnd(); @@ -34992,14 +35625,14 @@ class GetPartitionsFilterSpec { case 8: if ($ftype == TType::LST) { $this->filters = array(); - $_size924 = 0; - $_etype927 = 0; - $xfer += $input->readListBegin($_etype927, $_size924); - for ($_i928 = 0; $_i928 < $_size924; ++$_i928) + $_size994 = 0; + $_etype997 = 0; + $xfer += $input->readListBegin($_etype997, $_size994); + for ($_i998 = 0; $_i998 < $_size994; ++$_i998) { - $elem929 = null; - $xfer += $input->readString($elem929); - $this->filters []= $elem929; + $elem999 = null; + $xfer += $input->readString($elem999); + $this->filters []= $elem999; } $xfer += $input->readListEnd(); } else { @@ -35032,9 +35665,9 @@ class GetPartitionsFilterSpec { { $output->writeListBegin(TType::STRING, count($this->filters)); { - foreach ($this->filters as $iter930) + foreach ($this->filters as $iter1000) { - $xfer += $output->writeString($iter930); + $xfer += $output->writeString($iter1000); } } $output->writeListEnd(); @@ -35099,15 +35732,15 @@ class GetPartitionsResponse { case 1: if ($ftype == TType::LST) { $this->partitionSpec = array(); - $_size931 = 0; - $_etype934 = 0; - $xfer += $input->readListBegin($_etype934, $_size931); - for ($_i935 = 0; $_i935 < $_size931; ++$_i935) + $_size1001 = 0; + $_etype1004 = 0; + $xfer += $input->readListBegin($_etype1004, $_size1001); + for ($_i1005 = 0; $_i1005 < $_size1001; ++$_i1005) { - $elem936 = null; - $elem936 = new \metastore\PartitionSpec(); - $xfer += $elem936->read($input); - $this->partitionSpec []= $elem936; + $elem1006 = null; + $elem1006 = new \metastore\PartitionSpec(); + $xfer += $elem1006->read($input); + $this->partitionSpec []= $elem1006; } $xfer += $input->readListEnd(); } else { @@ -35135,9 +35768,9 @@ class GetPartitionsResponse { { $output->writeListBegin(TType::STRUCT, count($this->partitionSpec)); { - foreach ($this->partitionSpec as $iter937) + foreach ($this->partitionSpec as $iter1007) { - $xfer += $iter937->write($output); + $xfer += $iter1007->write($output); } } $output->writeListEnd(); @@ -35341,14 +35974,14 @@ class GetPartitionsRequest { case 6: if ($ftype == TType::LST) { $this->groupNames = array(); - $_size938 = 0; - $_etype941 = 0; - $xfer += $input->readListBegin($_etype941, $_size938); - for ($_i942 = 0; $_i942 < $_size938; ++$_i942) + $_size1008 = 0; + $_etype1011 = 0; + $xfer += $input->readListBegin($_etype1011, $_size1008); + for ($_i1012 = 0; $_i1012 < $_size1008; ++$_i1012) { - $elem943 = null; - $xfer += $input->readString($elem943); - $this->groupNames []= $elem943; + $elem1013 = null; + $xfer += $input->readString($elem1013); + $this->groupNames []= $elem1013; } $xfer += $input->readListEnd(); } else { @@ -35374,14 +36007,14 @@ class GetPartitionsRequest { case 9: if ($ftype == TType::LST) { $this->processorCapabilities = array(); - $_size944 = 0; - $_etype947 = 0; - $xfer += $input->readListBegin($_etype947, $_size944); - for ($_i948 = 0; $_i948 < $_size944; ++$_i948) + $_size1014 = 0; + $_etype1017 = 0; + $xfer += $input->readListBegin($_etype1017, $_size1014); + for ($_i1018 = 0; $_i1018 < $_size1014; ++$_i1018) { - $elem949 = null; - $xfer += $input->readString($elem949); - $this->processorCapabilities []= $elem949; + $elem1019 = null; + $xfer += $input->readString($elem1019); + $this->processorCapabilities []= $elem1019; } $xfer += $input->readListEnd(); } else { @@ -35441,9 +36074,9 @@ class GetPartitionsRequest { { $output->writeListBegin(TType::STRING, count($this->groupNames)); { - foreach ($this->groupNames as $iter950) + foreach ($this->groupNames as $iter1020) { - $xfer += $output->writeString($iter950); + $xfer += $output->writeString($iter1020); } } $output->writeListEnd(); @@ -35474,9 +36107,9 @@ class GetPartitionsRequest { { $output->writeListBegin(TType::STRING, count($this->processorCapabilities)); { - foreach ($this->processorCapabilities as $iter951) + foreach ($this->processorCapabilities as $iter1021) { - $xfer += $output->writeString($iter951); + $xfer += $output->writeString($iter1021); } } $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 16add782ce..8e9a2c6718 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 @@ -48,6 +48,7 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help': print(' void create_table(Table tbl)') print(' void create_table_with_environment_context(Table tbl, EnvironmentContext environment_context)') print(' void create_table_with_constraints(Table tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints, checkConstraints)') + print(' void create_table_req(CreateTableRequest request)') print(' void drop_constraint(DropConstraintRequest req)') print(' void add_primary_key(AddPrimaryKeyRequest req)') print(' void add_foreign_key(AddForeignKeyRequest req)') @@ -462,6 +463,12 @@ elif cmd == 'create_table_with_constraints': sys.exit(1) pp.pprint(client.create_table_with_constraints(eval(args[0]),eval(args[1]),eval(args[2]),eval(args[3]),eval(args[4]),eval(args[5]),eval(args[6]),)) +elif cmd == 'create_table_req': + if len(args) != 1: + print('create_table_req requires 1 args') + sys.exit(1) + pp.pprint(client.create_table_req(eval(args[0]),)) + elif cmd == 'drop_constraint': if len(args) != 1: print('drop_constraint requires 1 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 540e89356c..11164a056f 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 @@ -200,6 +200,13 @@ def create_table_with_constraints(self, tbl, primaryKeys, foreignKeys, uniqueCon """ pass + def create_table_req(self, request): + """ + Parameters: + - request + """ + pass + def drop_constraint(self, req): """ Parameters: @@ -2599,6 +2606,43 @@ def recv_create_table_with_constraints(self): raise result.o4 return + def create_table_req(self, request): + """ + Parameters: + - request + """ + self.send_create_table_req(request) + self.recv_create_table_req() + + def send_create_table_req(self, request): + self._oprot.writeMessageBegin('create_table_req', TMessageType.CALL, self._seqid) + args = create_table_req_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_create_table_req(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = create_table_req_result() + result.read(iprot) + iprot.readMessageEnd() + if result.o1 is not None: + raise result.o1 + if result.o2 is not None: + raise result.o2 + if result.o3 is not None: + raise result.o3 + if result.o4 is not None: + raise result.o4 + return + def drop_constraint(self, req): """ Parameters: @@ -9748,6 +9792,7 @@ def __init__(self, handler): self._processMap["create_table"] = Processor.process_create_table self._processMap["create_table_with_environment_context"] = Processor.process_create_table_with_environment_context self._processMap["create_table_with_constraints"] = Processor.process_create_table_with_constraints + self._processMap["create_table_req"] = Processor.process_create_table_req self._processMap["drop_constraint"] = Processor.process_drop_constraint self._processMap["add_primary_key"] = Processor.process_add_primary_key self._processMap["add_foreign_key"] = Processor.process_add_foreign_key @@ -10595,6 +10640,37 @@ def process_create_table_with_constraints(self, seqid, iprot, oprot): oprot.writeMessageEnd() oprot.trans.flush() + def process_create_table_req(self, seqid, iprot, oprot): + args = create_table_req_args() + args.read(iprot) + iprot.readMessageEnd() + result = create_table_req_result() + try: + self._handler.create_table_req(args.request) + msg_type = TMessageType.REPLY + except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + raise + except AlreadyExistsException as o1: + msg_type = TMessageType.REPLY + result.o1 = o1 + except InvalidObjectException as o2: + msg_type = TMessageType.REPLY + result.o2 = o2 + except MetaException as o3: + msg_type = TMessageType.REPLY + result.o3 = o3 + except NoSuchObjectException as o4: + msg_type = TMessageType.REPLY + result.o4 = o4 + except Exception as ex: + msg_type = TMessageType.EXCEPTION + logging.exception(ex) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("create_table_req", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + def process_drop_constraint(self, seqid, iprot, oprot): args = drop_constraint_args() args.read(iprot) @@ -17138,10 +17214,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype952, _size949) = iprot.readListBegin() - for _i953 in xrange(_size949): - _elem954 = iprot.readString() - self.success.append(_elem954) + (_etype1022, _size1019) = iprot.readListBegin() + for _i1023 in xrange(_size1019): + _elem1024 = iprot.readString() + self.success.append(_elem1024) iprot.readListEnd() else: iprot.skip(ftype) @@ -17164,8 +17240,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 iter955 in self.success: - oprot.writeString(iter955) + for iter1025 in self.success: + oprot.writeString(iter1025) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -17270,10 +17346,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype959, _size956) = iprot.readListBegin() - for _i960 in xrange(_size956): - _elem961 = iprot.readString() - self.success.append(_elem961) + (_etype1029, _size1026) = iprot.readListBegin() + for _i1030 in xrange(_size1026): + _elem1031 = iprot.readString() + self.success.append(_elem1031) iprot.readListEnd() else: iprot.skip(ftype) @@ -17296,8 +17372,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 iter962 in self.success: - oprot.writeString(iter962) + for iter1032 in self.success: + oprot.writeString(iter1032) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -18067,12 +18143,12 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype964, _vtype965, _size963 ) = iprot.readMapBegin() - for _i967 in xrange(_size963): - _key968 = iprot.readString() - _val969 = Type() - _val969.read(iprot) - self.success[_key968] = _val969 + (_ktype1034, _vtype1035, _size1033 ) = iprot.readMapBegin() + for _i1037 in xrange(_size1033): + _key1038 = iprot.readString() + _val1039 = Type() + _val1039.read(iprot) + self.success[_key1038] = _val1039 iprot.readMapEnd() else: iprot.skip(ftype) @@ -18095,9 +18171,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 kiter970,viter971 in self.success.items(): - oprot.writeString(kiter970) - viter971.write(oprot) + for kiter1040,viter1041 in self.success.items(): + oprot.writeString(kiter1040) + viter1041.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -18240,11 +18316,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype975, _size972) = iprot.readListBegin() - for _i976 in xrange(_size972): - _elem977 = FieldSchema() - _elem977.read(iprot) - self.success.append(_elem977) + (_etype1045, _size1042) = iprot.readListBegin() + for _i1046 in xrange(_size1042): + _elem1047 = FieldSchema() + _elem1047.read(iprot) + self.success.append(_elem1047) iprot.readListEnd() else: iprot.skip(ftype) @@ -18279,8 +18355,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 iter978 in self.success: - iter978.write(oprot) + for iter1048 in self.success: + iter1048.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -18447,11 +18523,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype982, _size979) = iprot.readListBegin() - for _i983 in xrange(_size979): - _elem984 = FieldSchema() - _elem984.read(iprot) - self.success.append(_elem984) + (_etype1052, _size1049) = iprot.readListBegin() + for _i1053 in xrange(_size1049): + _elem1054 = FieldSchema() + _elem1054.read(iprot) + self.success.append(_elem1054) iprot.readListEnd() else: iprot.skip(ftype) @@ -18486,8 +18562,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 iter985 in self.success: - iter985.write(oprot) + for iter1055 in self.success: + iter1055.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -18640,11 +18716,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype989, _size986) = iprot.readListBegin() - for _i990 in xrange(_size986): - _elem991 = FieldSchema() - _elem991.read(iprot) - self.success.append(_elem991) + (_etype1059, _size1056) = iprot.readListBegin() + for _i1060 in xrange(_size1056): + _elem1061 = FieldSchema() + _elem1061.read(iprot) + self.success.append(_elem1061) iprot.readListEnd() else: iprot.skip(ftype) @@ -18679,8 +18755,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 iter992 in self.success: - iter992.write(oprot) + for iter1062 in self.success: + iter1062.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -18847,11 +18923,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype996, _size993) = iprot.readListBegin() - for _i997 in xrange(_size993): - _elem998 = FieldSchema() - _elem998.read(iprot) - self.success.append(_elem998) + (_etype1066, _size1063) = iprot.readListBegin() + for _i1067 in xrange(_size1063): + _elem1068 = FieldSchema() + _elem1068.read(iprot) + self.success.append(_elem1068) iprot.readListEnd() else: iprot.skip(ftype) @@ -18886,8 +18962,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 iter999 in self.success: - iter999.write(oprot) + for iter1069 in self.success: + iter1069.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -19340,66 +19416,66 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.primaryKeys = [] - (_etype1003, _size1000) = iprot.readListBegin() - for _i1004 in xrange(_size1000): - _elem1005 = SQLPrimaryKey() - _elem1005.read(iprot) - self.primaryKeys.append(_elem1005) + (_etype1073, _size1070) = iprot.readListBegin() + for _i1074 in xrange(_size1070): + _elem1075 = SQLPrimaryKey() + _elem1075.read(iprot) + self.primaryKeys.append(_elem1075) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.foreignKeys = [] - (_etype1009, _size1006) = iprot.readListBegin() - for _i1010 in xrange(_size1006): - _elem1011 = SQLForeignKey() - _elem1011.read(iprot) - self.foreignKeys.append(_elem1011) + (_etype1079, _size1076) = iprot.readListBegin() + for _i1080 in xrange(_size1076): + _elem1081 = SQLForeignKey() + _elem1081.read(iprot) + self.foreignKeys.append(_elem1081) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.uniqueConstraints = [] - (_etype1015, _size1012) = iprot.readListBegin() - for _i1016 in xrange(_size1012): - _elem1017 = SQLUniqueConstraint() - _elem1017.read(iprot) - self.uniqueConstraints.append(_elem1017) + (_etype1085, _size1082) = iprot.readListBegin() + for _i1086 in xrange(_size1082): + _elem1087 = SQLUniqueConstraint() + _elem1087.read(iprot) + self.uniqueConstraints.append(_elem1087) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.LIST: self.notNullConstraints = [] - (_etype1021, _size1018) = iprot.readListBegin() - for _i1022 in xrange(_size1018): - _elem1023 = SQLNotNullConstraint() - _elem1023.read(iprot) - self.notNullConstraints.append(_elem1023) + (_etype1091, _size1088) = iprot.readListBegin() + for _i1092 in xrange(_size1088): + _elem1093 = SQLNotNullConstraint() + _elem1093.read(iprot) + self.notNullConstraints.append(_elem1093) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.LIST: self.defaultConstraints = [] - (_etype1027, _size1024) = iprot.readListBegin() - for _i1028 in xrange(_size1024): - _elem1029 = SQLDefaultConstraint() - _elem1029.read(iprot) - self.defaultConstraints.append(_elem1029) + (_etype1097, _size1094) = iprot.readListBegin() + for _i1098 in xrange(_size1094): + _elem1099 = SQLDefaultConstraint() + _elem1099.read(iprot) + self.defaultConstraints.append(_elem1099) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.LIST: self.checkConstraints = [] - (_etype1033, _size1030) = iprot.readListBegin() - for _i1034 in xrange(_size1030): - _elem1035 = SQLCheckConstraint() - _elem1035.read(iprot) - self.checkConstraints.append(_elem1035) + (_etype1103, _size1100) = iprot.readListBegin() + for _i1104 in xrange(_size1100): + _elem1105 = SQLCheckConstraint() + _elem1105.read(iprot) + self.checkConstraints.append(_elem1105) iprot.readListEnd() else: iprot.skip(ftype) @@ -19420,43 +19496,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 iter1036 in self.primaryKeys: - iter1036.write(oprot) + for iter1106 in self.primaryKeys: + iter1106.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 iter1037 in self.foreignKeys: - iter1037.write(oprot) + for iter1107 in self.foreignKeys: + iter1107.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 iter1038 in self.uniqueConstraints: - iter1038.write(oprot) + for iter1108 in self.uniqueConstraints: + iter1108.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 iter1039 in self.notNullConstraints: - iter1039.write(oprot) + for iter1109 in self.notNullConstraints: + iter1109.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 iter1040 in self.defaultConstraints: - iter1040.write(oprot) + for iter1110 in self.defaultConstraints: + iter1110.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 iter1041 in self.checkConstraints: - iter1041.write(oprot) + for iter1111 in self.checkConstraints: + iter1111.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -19596,6 +19672,180 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +class create_table_req_args: + """ + Attributes: + - request + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', (CreateTableRequest, CreateTableRequest.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 = CreateTableRequest() + 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('create_table_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 create_table_req_result: + """ + Attributes: + - o1 + - o2 + - o3 + - o4 + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'o1', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 2 + (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3 + (4, TType.STRUCT, 'o4', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 4 + ) + + def __init__(self, o1=None, o2=None, o3=None, o4=None,): + self.o1 = o1 + self.o2 = o2 + self.o3 = o3 + self.o4 = o4 + + 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.o1 = AlreadyExistsException() + self.o1.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = InvalidObjectException() + self.o2.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.o3 = MetaException() + self.o3.read(iprot) + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.o4 = NoSuchObjectException() + self.o4.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('create_table_req_result') + 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() + if self.o3 is not None: + oprot.writeFieldBegin('o3', TType.STRUCT, 3) + self.o3.write(oprot) + oprot.writeFieldEnd() + if self.o4 is not None: + oprot.writeFieldBegin('o4', TType.STRUCT, 4) + self.o4.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.o1) + value = (value * 31) ^ hash(self.o2) + value = (value * 31) ^ hash(self.o3) + value = (value * 31) ^ hash(self.o4) + 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_constraint_args: """ Attributes: @@ -21016,10 +21266,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.partNames = [] - (_etype1045, _size1042) = iprot.readListBegin() - for _i1046 in xrange(_size1042): - _elem1047 = iprot.readString() - self.partNames.append(_elem1047) + (_etype1115, _size1112) = iprot.readListBegin() + for _i1116 in xrange(_size1112): + _elem1117 = iprot.readString() + self.partNames.append(_elem1117) iprot.readListEnd() else: iprot.skip(ftype) @@ -21044,8 +21294,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 iter1048 in self.partNames: - oprot.writeString(iter1048) + for iter1118 in self.partNames: + oprot.writeString(iter1118) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21390,10 +21640,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1052, _size1049) = iprot.readListBegin() - for _i1053 in xrange(_size1049): - _elem1054 = iprot.readString() - self.success.append(_elem1054) + (_etype1122, _size1119) = iprot.readListBegin() + for _i1123 in xrange(_size1119): + _elem1124 = iprot.readString() + self.success.append(_elem1124) iprot.readListEnd() else: iprot.skip(ftype) @@ -21416,8 +21666,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 iter1055 in self.success: - oprot.writeString(iter1055) + for iter1125 in self.success: + oprot.writeString(iter1125) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21567,10 +21817,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1059, _size1056) = iprot.readListBegin() - for _i1060 in xrange(_size1056): - _elem1061 = iprot.readString() - self.success.append(_elem1061) + (_etype1129, _size1126) = iprot.readListBegin() + for _i1130 in xrange(_size1126): + _elem1131 = iprot.readString() + self.success.append(_elem1131) iprot.readListEnd() else: iprot.skip(ftype) @@ -21593,8 +21843,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 iter1062 in self.success: - oprot.writeString(iter1062) + for iter1132 in self.success: + oprot.writeString(iter1132) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21699,11 +21949,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1066, _size1063) = iprot.readListBegin() - for _i1067 in xrange(_size1063): - _elem1068 = Table() - _elem1068.read(iprot) - self.success.append(_elem1068) + (_etype1136, _size1133) = iprot.readListBegin() + for _i1137 in xrange(_size1133): + _elem1138 = Table() + _elem1138.read(iprot) + self.success.append(_elem1138) iprot.readListEnd() else: iprot.skip(ftype) @@ -21726,8 +21976,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 iter1139 in self.success: + iter1139.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21851,10 +22101,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1073, _size1070) = iprot.readListBegin() - for _i1074 in xrange(_size1070): - _elem1075 = iprot.readString() - self.success.append(_elem1075) + (_etype1143, _size1140) = iprot.readListBegin() + for _i1144 in xrange(_size1140): + _elem1145 = iprot.readString() + self.success.append(_elem1145) iprot.readListEnd() else: iprot.skip(ftype) @@ -21877,8 +22127,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 iter1076 in self.success: - oprot.writeString(iter1076) + for iter1146 in self.success: + oprot.writeString(iter1146) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21951,10 +22201,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.tbl_types = [] - (_etype1080, _size1077) = iprot.readListBegin() - for _i1081 in xrange(_size1077): - _elem1082 = iprot.readString() - self.tbl_types.append(_elem1082) + (_etype1150, _size1147) = iprot.readListBegin() + for _i1151 in xrange(_size1147): + _elem1152 = iprot.readString() + self.tbl_types.append(_elem1152) iprot.readListEnd() else: iprot.skip(ftype) @@ -21979,8 +22229,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 iter1083 in self.tbl_types: - oprot.writeString(iter1083) + for iter1153 in self.tbl_types: + oprot.writeString(iter1153) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -22036,11 +22286,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1087, _size1084) = iprot.readListBegin() - for _i1088 in xrange(_size1084): - _elem1089 = TableMeta() - _elem1089.read(iprot) - self.success.append(_elem1089) + (_etype1157, _size1154) = iprot.readListBegin() + for _i1158 in xrange(_size1154): + _elem1159 = TableMeta() + _elem1159.read(iprot) + self.success.append(_elem1159) iprot.readListEnd() else: iprot.skip(ftype) @@ -22063,8 +22313,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 iter1090 in self.success: - iter1090.write(oprot) + for iter1160 in self.success: + iter1160.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -22188,10 +22438,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1094, _size1091) = iprot.readListBegin() - for _i1095 in xrange(_size1091): - _elem1096 = iprot.readString() - self.success.append(_elem1096) + (_etype1164, _size1161) = iprot.readListBegin() + for _i1165 in xrange(_size1161): + _elem1166 = iprot.readString() + self.success.append(_elem1166) iprot.readListEnd() else: iprot.skip(ftype) @@ -22214,8 +22464,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 iter1097 in self.success: - oprot.writeString(iter1097) + for iter1167 in self.success: + oprot.writeString(iter1167) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -22451,10 +22701,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.tbl_names = [] - (_etype1101, _size1098) = iprot.readListBegin() - for _i1102 in xrange(_size1098): - _elem1103 = iprot.readString() - self.tbl_names.append(_elem1103) + (_etype1171, _size1168) = iprot.readListBegin() + for _i1172 in xrange(_size1168): + _elem1173 = iprot.readString() + self.tbl_names.append(_elem1173) iprot.readListEnd() else: iprot.skip(ftype) @@ -22475,8 +22725,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 iter1104 in self.tbl_names: - oprot.writeString(iter1104) + for iter1174 in self.tbl_names: + oprot.writeString(iter1174) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -22528,11 +22778,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1108, _size1105) = iprot.readListBegin() - for _i1109 in xrange(_size1105): - _elem1110 = Table() - _elem1110.read(iprot) - self.success.append(_elem1110) + (_etype1178, _size1175) = iprot.readListBegin() + for _i1179 in xrange(_size1175): + _elem1180 = Table() + _elem1180.read(iprot) + self.success.append(_elem1180) iprot.readListEnd() else: iprot.skip(ftype) @@ -22549,8 +22799,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 iter1111 in self.success: - iter1111.write(oprot) + for iter1181 in self.success: + iter1181.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -22670,11 +22920,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1115, _size1112) = iprot.readListBegin() - for _i1116 in xrange(_size1112): - _elem1117 = ExtendedTableInfo() - _elem1117.read(iprot) - self.success.append(_elem1117) + (_etype1185, _size1182) = iprot.readListBegin() + for _i1186 in xrange(_size1182): + _elem1187 = ExtendedTableInfo() + _elem1187.read(iprot) + self.success.append(_elem1187) iprot.readListEnd() else: iprot.skip(ftype) @@ -22697,8 +22947,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 iter1118 in self.success: - iter1118.write(oprot) + for iter1188 in self.success: + iter1188.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -23571,10 +23821,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) + (_etype1192, _size1189) = iprot.readListBegin() + for _i1193 in xrange(_size1189): + _elem1194 = iprot.readString() + self.success.append(_elem1194) iprot.readListEnd() else: iprot.skip(ftype) @@ -23609,8 +23859,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 iter1195 in self.success: + oprot.writeString(iter1195) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -24739,11 +24989,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.new_parts = [] - (_etype1129, _size1126) = iprot.readListBegin() - for _i1130 in xrange(_size1126): - _elem1131 = Partition() - _elem1131.read(iprot) - self.new_parts.append(_elem1131) + (_etype1199, _size1196) = iprot.readListBegin() + for _i1200 in xrange(_size1196): + _elem1201 = Partition() + _elem1201.read(iprot) + self.new_parts.append(_elem1201) iprot.readListEnd() else: iprot.skip(ftype) @@ -24760,8 +25010,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 iter1132 in self.new_parts: - iter1132.write(oprot) + for iter1202 in self.new_parts: + iter1202.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -24919,11 +25169,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.new_parts = [] - (_etype1136, _size1133) = iprot.readListBegin() - for _i1137 in xrange(_size1133): - _elem1138 = PartitionSpec() - _elem1138.read(iprot) - self.new_parts.append(_elem1138) + (_etype1206, _size1203) = iprot.readListBegin() + for _i1207 in xrange(_size1203): + _elem1208 = PartitionSpec() + _elem1208.read(iprot) + self.new_parts.append(_elem1208) iprot.readListEnd() else: iprot.skip(ftype) @@ -24940,8 +25190,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 iter1139 in self.new_parts: - iter1139.write(oprot) + for iter1209 in self.new_parts: + iter1209.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -25115,10 +25365,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1143, _size1140) = iprot.readListBegin() - for _i1144 in xrange(_size1140): - _elem1145 = iprot.readString() - self.part_vals.append(_elem1145) + (_etype1213, _size1210) = iprot.readListBegin() + for _i1214 in xrange(_size1210): + _elem1215 = iprot.readString() + self.part_vals.append(_elem1215) iprot.readListEnd() else: iprot.skip(ftype) @@ -25143,8 +25393,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 iter1146 in self.part_vals: - oprot.writeString(iter1146) + for iter1216 in self.part_vals: + oprot.writeString(iter1216) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -25497,10 +25747,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1150, _size1147) = iprot.readListBegin() - for _i1151 in xrange(_size1147): - _elem1152 = iprot.readString() - self.part_vals.append(_elem1152) + (_etype1220, _size1217) = iprot.readListBegin() + for _i1221 in xrange(_size1217): + _elem1222 = iprot.readString() + self.part_vals.append(_elem1222) iprot.readListEnd() else: iprot.skip(ftype) @@ -25531,8 +25781,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 iter1153 in self.part_vals: - oprot.writeString(iter1153) + for iter1223 in self.part_vals: + oprot.writeString(iter1223) oprot.writeListEnd() oprot.writeFieldEnd() if self.environment_context is not None: @@ -26127,10 +26377,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1157, _size1154) = iprot.readListBegin() - for _i1158 in xrange(_size1154): - _elem1159 = iprot.readString() - self.part_vals.append(_elem1159) + (_etype1227, _size1224) = iprot.readListBegin() + for _i1228 in xrange(_size1224): + _elem1229 = iprot.readString() + self.part_vals.append(_elem1229) iprot.readListEnd() else: iprot.skip(ftype) @@ -26160,8 +26410,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 iter1160 in self.part_vals: - oprot.writeString(iter1160) + for iter1230 in self.part_vals: + oprot.writeString(iter1230) oprot.writeListEnd() oprot.writeFieldEnd() if self.deleteData is not None: @@ -26334,10 +26584,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1164, _size1161) = iprot.readListBegin() - for _i1165 in xrange(_size1161): - _elem1166 = iprot.readString() - self.part_vals.append(_elem1166) + (_etype1234, _size1231) = iprot.readListBegin() + for _i1235 in xrange(_size1231): + _elem1236 = iprot.readString() + self.part_vals.append(_elem1236) iprot.readListEnd() else: iprot.skip(ftype) @@ -26373,8 +26623,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 iter1167 in self.part_vals: - oprot.writeString(iter1167) + for iter1237 in self.part_vals: + oprot.writeString(iter1237) oprot.writeListEnd() oprot.writeFieldEnd() if self.deleteData is not None: @@ -27111,10 +27361,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1171, _size1168) = iprot.readListBegin() - for _i1172 in xrange(_size1168): - _elem1173 = iprot.readString() - self.part_vals.append(_elem1173) + (_etype1241, _size1238) = iprot.readListBegin() + for _i1242 in xrange(_size1238): + _elem1243 = iprot.readString() + self.part_vals.append(_elem1243) iprot.readListEnd() else: iprot.skip(ftype) @@ -27139,8 +27389,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 iter1174 in self.part_vals: - oprot.writeString(iter1174) + for iter1244 in self.part_vals: + oprot.writeString(iter1244) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -27299,11 +27549,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partitionSpecs = {} - (_ktype1176, _vtype1177, _size1175 ) = iprot.readMapBegin() - for _i1179 in xrange(_size1175): - _key1180 = iprot.readString() - _val1181 = iprot.readString() - self.partitionSpecs[_key1180] = _val1181 + (_ktype1246, _vtype1247, _size1245 ) = iprot.readMapBegin() + for _i1249 in xrange(_size1245): + _key1250 = iprot.readString() + _val1251 = iprot.readString() + self.partitionSpecs[_key1250] = _val1251 iprot.readMapEnd() else: iprot.skip(ftype) @@ -27340,9 +27590,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 kiter1182,viter1183 in self.partitionSpecs.items(): - oprot.writeString(kiter1182) - oprot.writeString(viter1183) + for kiter1252,viter1253 in self.partitionSpecs.items(): + oprot.writeString(kiter1252) + oprot.writeString(viter1253) oprot.writeMapEnd() oprot.writeFieldEnd() if self.source_db is not None: @@ -27547,11 +27797,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partitionSpecs = {} - (_ktype1185, _vtype1186, _size1184 ) = iprot.readMapBegin() - for _i1188 in xrange(_size1184): - _key1189 = iprot.readString() - _val1190 = iprot.readString() - self.partitionSpecs[_key1189] = _val1190 + (_ktype1255, _vtype1256, _size1254 ) = iprot.readMapBegin() + for _i1258 in xrange(_size1254): + _key1259 = iprot.readString() + _val1260 = iprot.readString() + self.partitionSpecs[_key1259] = _val1260 iprot.readMapEnd() else: iprot.skip(ftype) @@ -27588,9 +27838,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 kiter1191,viter1192 in self.partitionSpecs.items(): - oprot.writeString(kiter1191) - oprot.writeString(viter1192) + for kiter1261,viter1262 in self.partitionSpecs.items(): + oprot.writeString(kiter1261) + oprot.writeString(viter1262) oprot.writeMapEnd() oprot.writeFieldEnd() if self.source_db is not None: @@ -27673,11 +27923,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1196, _size1193) = iprot.readListBegin() - for _i1197 in xrange(_size1193): - _elem1198 = Partition() - _elem1198.read(iprot) - self.success.append(_elem1198) + (_etype1266, _size1263) = iprot.readListBegin() + for _i1267 in xrange(_size1263): + _elem1268 = Partition() + _elem1268.read(iprot) + self.success.append(_elem1268) iprot.readListEnd() else: iprot.skip(ftype) @@ -27718,8 +27968,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 iter1199 in self.success: - iter1199.write(oprot) + for iter1269 in self.success: + iter1269.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -27813,10 +28063,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1203, _size1200) = iprot.readListBegin() - for _i1204 in xrange(_size1200): - _elem1205 = iprot.readString() - self.part_vals.append(_elem1205) + (_etype1273, _size1270) = iprot.readListBegin() + for _i1274 in xrange(_size1270): + _elem1275 = iprot.readString() + self.part_vals.append(_elem1275) iprot.readListEnd() else: iprot.skip(ftype) @@ -27828,10 +28078,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype1209, _size1206) = iprot.readListBegin() - for _i1210 in xrange(_size1206): - _elem1211 = iprot.readString() - self.group_names.append(_elem1211) + (_etype1279, _size1276) = iprot.readListBegin() + for _i1280 in xrange(_size1276): + _elem1281 = iprot.readString() + self.group_names.append(_elem1281) iprot.readListEnd() else: iprot.skip(ftype) @@ -27856,8 +28106,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 iter1212 in self.part_vals: - oprot.writeString(iter1212) + for iter1282 in self.part_vals: + oprot.writeString(iter1282) oprot.writeListEnd() oprot.writeFieldEnd() if self.user_name is not None: @@ -27867,8 +28117,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 iter1213 in self.group_names: - oprot.writeString(iter1213) + for iter1283 in self.group_names: + oprot.writeString(iter1283) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -28297,11 +28547,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1217, _size1214) = iprot.readListBegin() - for _i1218 in xrange(_size1214): - _elem1219 = Partition() - _elem1219.read(iprot) - self.success.append(_elem1219) + (_etype1287, _size1284) = iprot.readListBegin() + for _i1288 in xrange(_size1284): + _elem1289 = Partition() + _elem1289.read(iprot) + self.success.append(_elem1289) iprot.readListEnd() else: iprot.skip(ftype) @@ -28330,8 +28580,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 iter1220 in self.success: - iter1220.write(oprot) + for iter1290 in self.success: + iter1290.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -28425,10 +28675,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype1224, _size1221) = iprot.readListBegin() - for _i1225 in xrange(_size1221): - _elem1226 = iprot.readString() - self.group_names.append(_elem1226) + (_etype1294, _size1291) = iprot.readListBegin() + for _i1295 in xrange(_size1291): + _elem1296 = iprot.readString() + self.group_names.append(_elem1296) iprot.readListEnd() else: iprot.skip(ftype) @@ -28461,8 +28711,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 iter1227 in self.group_names: - oprot.writeString(iter1227) + for iter1297 in self.group_names: + oprot.writeString(iter1297) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -28523,11 +28773,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1231, _size1228) = iprot.readListBegin() - for _i1232 in xrange(_size1228): - _elem1233 = Partition() - _elem1233.read(iprot) - self.success.append(_elem1233) + (_etype1301, _size1298) = iprot.readListBegin() + for _i1302 in xrange(_size1298): + _elem1303 = Partition() + _elem1303.read(iprot) + self.success.append(_elem1303) iprot.readListEnd() else: iprot.skip(ftype) @@ -28556,8 +28806,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 iter1234 in self.success: - iter1234.write(oprot) + for iter1304 in self.success: + iter1304.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -28715,11 +28965,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1238, _size1235) = iprot.readListBegin() - for _i1239 in xrange(_size1235): - _elem1240 = PartitionSpec() - _elem1240.read(iprot) - self.success.append(_elem1240) + (_etype1308, _size1305) = iprot.readListBegin() + for _i1309 in xrange(_size1305): + _elem1310 = PartitionSpec() + _elem1310.read(iprot) + self.success.append(_elem1310) iprot.readListEnd() else: iprot.skip(ftype) @@ -28748,8 +28998,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 iter1241 in self.success: - iter1241.write(oprot) + for iter1311 in self.success: + iter1311.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -28907,10 +29157,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1245, _size1242) = iprot.readListBegin() - for _i1246 in xrange(_size1242): - _elem1247 = iprot.readString() - self.success.append(_elem1247) + (_etype1315, _size1312) = iprot.readListBegin() + for _i1316 in xrange(_size1312): + _elem1317 = iprot.readString() + self.success.append(_elem1317) iprot.readListEnd() else: iprot.skip(ftype) @@ -28939,8 +29189,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 iter1248 in self.success: - oprot.writeString(iter1248) + for iter1318 in self.success: + oprot.writeString(iter1318) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -29180,10 +29430,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1252, _size1249) = iprot.readListBegin() - for _i1253 in xrange(_size1249): - _elem1254 = iprot.readString() - self.part_vals.append(_elem1254) + (_etype1322, _size1319) = iprot.readListBegin() + for _i1323 in xrange(_size1319): + _elem1324 = iprot.readString() + self.part_vals.append(_elem1324) iprot.readListEnd() else: iprot.skip(ftype) @@ -29213,8 +29463,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 iter1255 in self.part_vals: - oprot.writeString(iter1255) + for iter1325 in self.part_vals: + oprot.writeString(iter1325) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -29278,11 +29528,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1259, _size1256) = iprot.readListBegin() - for _i1260 in xrange(_size1256): - _elem1261 = Partition() - _elem1261.read(iprot) - self.success.append(_elem1261) + (_etype1329, _size1326) = iprot.readListBegin() + for _i1330 in xrange(_size1326): + _elem1331 = Partition() + _elem1331.read(iprot) + self.success.append(_elem1331) iprot.readListEnd() else: iprot.skip(ftype) @@ -29311,8 +29561,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 iter1262 in self.success: - iter1262.write(oprot) + for iter1332 in self.success: + iter1332.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -29399,10 +29649,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1266, _size1263) = iprot.readListBegin() - for _i1267 in xrange(_size1263): - _elem1268 = iprot.readString() - self.part_vals.append(_elem1268) + (_etype1336, _size1333) = iprot.readListBegin() + for _i1337 in xrange(_size1333): + _elem1338 = iprot.readString() + self.part_vals.append(_elem1338) iprot.readListEnd() else: iprot.skip(ftype) @@ -29419,10 +29669,10 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.group_names = [] - (_etype1272, _size1269) = iprot.readListBegin() - for _i1273 in xrange(_size1269): - _elem1274 = iprot.readString() - self.group_names.append(_elem1274) + (_etype1342, _size1339) = iprot.readListBegin() + for _i1343 in xrange(_size1339): + _elem1344 = iprot.readString() + self.group_names.append(_elem1344) iprot.readListEnd() else: iprot.skip(ftype) @@ -29447,8 +29697,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 iter1275 in self.part_vals: - oprot.writeString(iter1275) + for iter1345 in self.part_vals: + oprot.writeString(iter1345) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -29462,8 +29712,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 iter1276 in self.group_names: - oprot.writeString(iter1276) + for iter1346 in self.group_names: + oprot.writeString(iter1346) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -29525,11 +29775,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1280, _size1277) = iprot.readListBegin() - for _i1281 in xrange(_size1277): - _elem1282 = Partition() - _elem1282.read(iprot) - self.success.append(_elem1282) + (_etype1350, _size1347) = iprot.readListBegin() + for _i1351 in xrange(_size1347): + _elem1352 = Partition() + _elem1352.read(iprot) + self.success.append(_elem1352) iprot.readListEnd() else: iprot.skip(ftype) @@ -29558,8 +29808,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 iter1283 in self.success: - iter1283.write(oprot) + for iter1353 in self.success: + iter1353.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -29640,10 +29890,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1287, _size1284) = iprot.readListBegin() - for _i1288 in xrange(_size1284): - _elem1289 = iprot.readString() - self.part_vals.append(_elem1289) + (_etype1357, _size1354) = iprot.readListBegin() + for _i1358 in xrange(_size1354): + _elem1359 = iprot.readString() + self.part_vals.append(_elem1359) iprot.readListEnd() else: iprot.skip(ftype) @@ -29673,8 +29923,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 iter1290 in self.part_vals: - oprot.writeString(iter1290) + for iter1360 in self.part_vals: + oprot.writeString(iter1360) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -29738,10 +29988,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1294, _size1291) = iprot.readListBegin() - for _i1295 in xrange(_size1291): - _elem1296 = iprot.readString() - self.success.append(_elem1296) + (_etype1364, _size1361) = iprot.readListBegin() + for _i1365 in xrange(_size1361): + _elem1366 = iprot.readString() + self.success.append(_elem1366) iprot.readListEnd() else: iprot.skip(ftype) @@ -29770,8 +30020,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 iter1297 in self.success: - oprot.writeString(iter1297) + for iter1367 in self.success: + oprot.writeString(iter1367) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -29942,11 +30192,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) + (_etype1371, _size1368) = iprot.readListBegin() + for _i1372 in xrange(_size1368): + _elem1373 = Partition() + _elem1373.read(iprot) + self.success.append(_elem1373) iprot.readListEnd() else: iprot.skip(ftype) @@ -29975,8 +30225,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 iter1374 in self.success: + iter1374.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -30147,11 +30397,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) + (_etype1378, _size1375) = iprot.readListBegin() + for _i1379 in xrange(_size1375): + _elem1380 = PartitionSpec() + _elem1380.read(iprot) + self.success.append(_elem1380) iprot.readListEnd() else: iprot.skip(ftype) @@ -30180,8 +30430,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 iter1381 in self.success: + iter1381.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -30601,10 +30851,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.names = [] - (_etype1315, _size1312) = iprot.readListBegin() - for _i1316 in xrange(_size1312): - _elem1317 = iprot.readString() - self.names.append(_elem1317) + (_etype1385, _size1382) = iprot.readListBegin() + for _i1386 in xrange(_size1382): + _elem1387 = iprot.readString() + self.names.append(_elem1387) iprot.readListEnd() else: iprot.skip(ftype) @@ -30629,8 +30879,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 iter1318 in self.names: - oprot.writeString(iter1318) + for iter1388 in self.names: + oprot.writeString(iter1388) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -30689,11 +30939,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1322, _size1319) = iprot.readListBegin() - for _i1323 in xrange(_size1319): - _elem1324 = Partition() - _elem1324.read(iprot) - self.success.append(_elem1324) + (_etype1392, _size1389) = iprot.readListBegin() + for _i1393 in xrange(_size1389): + _elem1394 = Partition() + _elem1394.read(iprot) + self.success.append(_elem1394) iprot.readListEnd() else: iprot.skip(ftype) @@ -30722,8 +30972,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 iter1325 in self.success: - iter1325.write(oprot) + for iter1395 in self.success: + iter1395.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -31132,11 +31382,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.new_parts = [] - (_etype1329, _size1326) = iprot.readListBegin() - for _i1330 in xrange(_size1326): - _elem1331 = Partition() - _elem1331.read(iprot) - self.new_parts.append(_elem1331) + (_etype1399, _size1396) = iprot.readListBegin() + for _i1400 in xrange(_size1396): + _elem1401 = Partition() + _elem1401.read(iprot) + self.new_parts.append(_elem1401) iprot.readListEnd() else: iprot.skip(ftype) @@ -31161,8 +31411,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 iter1332 in self.new_parts: - iter1332.write(oprot) + for iter1402 in self.new_parts: + iter1402.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -31315,11 +31565,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.new_parts = [] - (_etype1336, _size1333) = iprot.readListBegin() - for _i1337 in xrange(_size1333): - _elem1338 = Partition() - _elem1338.read(iprot) - self.new_parts.append(_elem1338) + (_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) @@ -31350,8 +31600,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 iter1339 in self.new_parts: - iter1339.write(oprot) + for iter1409 in self.new_parts: + iter1409.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.environment_context is not None: @@ -31854,10 +32104,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1343, _size1340) = iprot.readListBegin() - for _i1344 in xrange(_size1340): - _elem1345 = iprot.readString() - self.part_vals.append(_elem1345) + (_etype1413, _size1410) = iprot.readListBegin() + for _i1414 in xrange(_size1410): + _elem1415 = iprot.readString() + self.part_vals.append(_elem1415) iprot.readListEnd() else: iprot.skip(ftype) @@ -31888,8 +32138,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 iter1346 in self.part_vals: - oprot.writeString(iter1346) + for iter1416 in self.part_vals: + oprot.writeString(iter1416) oprot.writeListEnd() oprot.writeFieldEnd() if self.new_part is not None: @@ -32190,10 +32440,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.part_vals = [] - (_etype1350, _size1347) = iprot.readListBegin() - for _i1351 in xrange(_size1347): - _elem1352 = iprot.readString() - self.part_vals.append(_elem1352) + (_etype1420, _size1417) = iprot.readListBegin() + for _i1421 in xrange(_size1417): + _elem1422 = iprot.readString() + self.part_vals.append(_elem1422) iprot.readListEnd() else: iprot.skip(ftype) @@ -32215,8 +32465,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 iter1353 in self.part_vals: - oprot.writeString(iter1353) + for iter1423 in self.part_vals: + oprot.writeString(iter1423) oprot.writeListEnd() oprot.writeFieldEnd() if self.throw_exception is not None: @@ -32574,10 +32824,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1357, _size1354) = iprot.readListBegin() - for _i1358 in xrange(_size1354): - _elem1359 = iprot.readString() - self.success.append(_elem1359) + (_etype1427, _size1424) = iprot.readListBegin() + for _i1428 in xrange(_size1424): + _elem1429 = iprot.readString() + self.success.append(_elem1429) iprot.readListEnd() else: iprot.skip(ftype) @@ -32600,8 +32850,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 iter1360 in self.success: - oprot.writeString(iter1360) + for iter1430 in self.success: + oprot.writeString(iter1430) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -32725,11 +32975,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype1362, _vtype1363, _size1361 ) = iprot.readMapBegin() - for _i1365 in xrange(_size1361): - _key1366 = iprot.readString() - _val1367 = iprot.readString() - self.success[_key1366] = _val1367 + (_ktype1432, _vtype1433, _size1431 ) = iprot.readMapBegin() + for _i1435 in xrange(_size1431): + _key1436 = iprot.readString() + _val1437 = iprot.readString() + self.success[_key1436] = _val1437 iprot.readMapEnd() else: iprot.skip(ftype) @@ -32752,9 +33002,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 kiter1368,viter1369 in self.success.items(): - oprot.writeString(kiter1368) - oprot.writeString(viter1369) + for kiter1438,viter1439 in self.success.items(): + oprot.writeString(kiter1438) + oprot.writeString(viter1439) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -32830,11 +33080,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype1371, _vtype1372, _size1370 ) = iprot.readMapBegin() - for _i1374 in xrange(_size1370): - _key1375 = iprot.readString() - _val1376 = iprot.readString() - self.part_vals[_key1375] = _val1376 + (_ktype1441, _vtype1442, _size1440 ) = iprot.readMapBegin() + for _i1444 in xrange(_size1440): + _key1445 = iprot.readString() + _val1446 = iprot.readString() + self.part_vals[_key1445] = _val1446 iprot.readMapEnd() else: iprot.skip(ftype) @@ -32864,9 +33114,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 kiter1377,viter1378 in self.part_vals.items(): - oprot.writeString(kiter1377) - oprot.writeString(viter1378) + for kiter1447,viter1448 in self.part_vals.items(): + oprot.writeString(kiter1447) + oprot.writeString(viter1448) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -33080,11 +33330,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype1380, _vtype1381, _size1379 ) = iprot.readMapBegin() - for _i1383 in xrange(_size1379): - _key1384 = iprot.readString() - _val1385 = iprot.readString() - self.part_vals[_key1384] = _val1385 + (_ktype1450, _vtype1451, _size1449 ) = iprot.readMapBegin() + for _i1453 in xrange(_size1449): + _key1454 = iprot.readString() + _val1455 = iprot.readString() + self.part_vals[_key1454] = _val1455 iprot.readMapEnd() else: iprot.skip(ftype) @@ -33114,9 +33364,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 kiter1386,viter1387 in self.part_vals.items(): - oprot.writeString(kiter1386) - oprot.writeString(viter1387) + for kiter1456,viter1457 in self.part_vals.items(): + oprot.writeString(kiter1456) + oprot.writeString(viter1457) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -37142,10 +37392,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1391, _size1388) = iprot.readListBegin() - for _i1392 in xrange(_size1388): - _elem1393 = iprot.readString() - self.success.append(_elem1393) + (_etype1461, _size1458) = iprot.readListBegin() + for _i1462 in xrange(_size1458): + _elem1463 = iprot.readString() + self.success.append(_elem1463) iprot.readListEnd() else: iprot.skip(ftype) @@ -37168,8 +37418,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 iter1394 in self.success: - oprot.writeString(iter1394) + for iter1464 in self.success: + oprot.writeString(iter1464) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -37857,10 +38107,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1398, _size1395) = iprot.readListBegin() - for _i1399 in xrange(_size1395): - _elem1400 = iprot.readString() - self.success.append(_elem1400) + (_etype1468, _size1465) = iprot.readListBegin() + for _i1469 in xrange(_size1465): + _elem1470 = iprot.readString() + self.success.append(_elem1470) iprot.readListEnd() else: iprot.skip(ftype) @@ -37883,8 +38133,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 iter1401 in self.success: - oprot.writeString(iter1401) + for iter1471 in self.success: + oprot.writeString(iter1471) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -38398,11 +38648,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1405, _size1402) = iprot.readListBegin() - for _i1406 in xrange(_size1402): - _elem1407 = Role() - _elem1407.read(iprot) - self.success.append(_elem1407) + (_etype1475, _size1472) = iprot.readListBegin() + for _i1476 in xrange(_size1472): + _elem1477 = Role() + _elem1477.read(iprot) + self.success.append(_elem1477) iprot.readListEnd() else: iprot.skip(ftype) @@ -38425,8 +38675,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 iter1408 in self.success: - iter1408.write(oprot) + for iter1478 in self.success: + iter1478.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -38935,10 +39185,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.group_names = [] - (_etype1412, _size1409) = iprot.readListBegin() - for _i1413 in xrange(_size1409): - _elem1414 = iprot.readString() - self.group_names.append(_elem1414) + (_etype1482, _size1479) = iprot.readListBegin() + for _i1483 in xrange(_size1479): + _elem1484 = iprot.readString() + self.group_names.append(_elem1484) iprot.readListEnd() else: iprot.skip(ftype) @@ -38963,8 +39213,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 iter1415 in self.group_names: - oprot.writeString(iter1415) + for iter1485 in self.group_names: + oprot.writeString(iter1485) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -39191,11 +39441,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1419, _size1416) = iprot.readListBegin() - for _i1420 in xrange(_size1416): - _elem1421 = HiveObjectPrivilege() - _elem1421.read(iprot) - self.success.append(_elem1421) + (_etype1489, _size1486) = iprot.readListBegin() + for _i1490 in xrange(_size1486): + _elem1491 = HiveObjectPrivilege() + _elem1491.read(iprot) + self.success.append(_elem1491) iprot.readListEnd() else: iprot.skip(ftype) @@ -39218,8 +39468,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 iter1422 in self.success: - iter1422.write(oprot) + for iter1492 in self.success: + iter1492.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -39889,10 +40139,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.group_names = [] - (_etype1426, _size1423) = iprot.readListBegin() - for _i1427 in xrange(_size1423): - _elem1428 = iprot.readString() - self.group_names.append(_elem1428) + (_etype1496, _size1493) = iprot.readListBegin() + for _i1497 in xrange(_size1493): + _elem1498 = iprot.readString() + self.group_names.append(_elem1498) iprot.readListEnd() else: iprot.skip(ftype) @@ -39913,8 +40163,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 iter1429 in self.group_names: - oprot.writeString(iter1429) + for iter1499 in self.group_names: + oprot.writeString(iter1499) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -39969,10 +40219,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1433, _size1430) = iprot.readListBegin() - for _i1434 in xrange(_size1430): - _elem1435 = iprot.readString() - self.success.append(_elem1435) + (_etype1503, _size1500) = iprot.readListBegin() + for _i1504 in xrange(_size1500): + _elem1505 = iprot.readString() + self.success.append(_elem1505) iprot.readListEnd() else: iprot.skip(ftype) @@ -39995,8 +40245,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 iter1436 in self.success: - oprot.writeString(iter1436) + for iter1506 in self.success: + oprot.writeString(iter1506) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -40928,10 +41178,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1440, _size1437) = iprot.readListBegin() - for _i1441 in xrange(_size1437): - _elem1442 = iprot.readString() - self.success.append(_elem1442) + (_etype1510, _size1507) = iprot.readListBegin() + for _i1511 in xrange(_size1507): + _elem1512 = iprot.readString() + self.success.append(_elem1512) iprot.readListEnd() else: iprot.skip(ftype) @@ -40948,8 +41198,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 iter1443 in self.success: - oprot.writeString(iter1443) + for iter1513 in self.success: + oprot.writeString(iter1513) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -41476,10 +41726,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1447, _size1444) = iprot.readListBegin() - for _i1448 in xrange(_size1444): - _elem1449 = iprot.readString() - self.success.append(_elem1449) + (_etype1517, _size1514) = iprot.readListBegin() + for _i1518 in xrange(_size1514): + _elem1519 = iprot.readString() + self.success.append(_elem1519) iprot.readListEnd() else: iprot.skip(ftype) @@ -41496,8 +41746,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 iter1450 in self.success: - oprot.writeString(iter1450) + for iter1520 in self.success: + oprot.writeString(iter1520) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -44510,10 +44760,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1454, _size1451) = iprot.readListBegin() - for _i1455 in xrange(_size1451): - _elem1456 = iprot.readString() - self.success.append(_elem1456) + (_etype1524, _size1521) = iprot.readListBegin() + for _i1525 in xrange(_size1521): + _elem1526 = iprot.readString() + self.success.append(_elem1526) iprot.readListEnd() else: iprot.skip(ftype) @@ -44530,8 +44780,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 iter1457 in self.success: - oprot.writeString(iter1457) + for iter1527 in self.success: + oprot.writeString(iter1527) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -50841,11 +51091,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1461, _size1458) = iprot.readListBegin() - for _i1462 in xrange(_size1458): - _elem1463 = SchemaVersion() - _elem1463.read(iprot) - self.success.append(_elem1463) + (_etype1531, _size1528) = iprot.readListBegin() + for _i1532 in xrange(_size1528): + _elem1533 = SchemaVersion() + _elem1533.read(iprot) + self.success.append(_elem1533) iprot.readListEnd() else: iprot.skip(ftype) @@ -50874,8 +51124,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 iter1464 in self.success: - iter1464.write(oprot) + for iter1534 in self.success: + iter1534.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -52350,11 +52600,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1468, _size1465) = iprot.readListBegin() - for _i1469 in xrange(_size1465): - _elem1470 = RuntimeStat() - _elem1470.read(iprot) - self.success.append(_elem1470) + (_etype1538, _size1535) = iprot.readListBegin() + for _i1539 in xrange(_size1535): + _elem1540 = RuntimeStat() + _elem1540.read(iprot) + self.success.append(_elem1540) iprot.readListEnd() else: iprot.skip(ftype) @@ -52377,8 +52627,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 iter1471 in self.success: - iter1471.write(oprot) + for iter1541 in self.success: + iter1541.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 d6a08bbe32..ffee182198 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 @@ -4956,6 +4956,8 @@ class Table: - isStatsCompliant - colStats - accessType + - requiredReadCapabilities + - requiredWriteCapabilities """ thrift_spec = ( @@ -4983,9 +4985,11 @@ class Table: (21, TType.BOOL, 'isStatsCompliant', None, None, ), # 21 (22, TType.STRUCT, 'colStats', (ColumnStatistics, ColumnStatistics.thrift_spec), None, ), # 22 (23, TType.BYTE, 'accessType', None, None, ), # 23 + (24, TType.LIST, 'requiredReadCapabilities', (TType.STRING,None), None, ), # 24 + (25, TType.LIST, 'requiredWriteCapabilities', (TType.STRING,None), None, ), # 25 ) - def __init__(self, id=None, tableName=None, dbName=None, owner=None, createTime=None, lastAccessTime=None, retention=None, sd=None, partitionKeys=None, parameters=None, viewOriginalText=None, viewExpandedText=None, tableType=None, privileges=None, temporary=thrift_spec[15][4], rewriteEnabled=None, creationMetadata=None, catName=None, ownerType=thrift_spec[19][4], writeId=thrift_spec[20][4], isStatsCompliant=None, colStats=None, accessType=None,): + def __init__(self, id=None, tableName=None, dbName=None, owner=None, createTime=None, lastAccessTime=None, retention=None, sd=None, partitionKeys=None, parameters=None, viewOriginalText=None, viewExpandedText=None, tableType=None, privileges=None, temporary=thrift_spec[15][4], rewriteEnabled=None, creationMetadata=None, catName=None, ownerType=thrift_spec[19][4], writeId=thrift_spec[20][4], isStatsCompliant=None, colStats=None, accessType=None, requiredReadCapabilities=None, requiredWriteCapabilities=None,): self.id = id self.tableName = tableName self.dbName = dbName @@ -5009,6 +5013,8 @@ def __init__(self, id=None, tableName=None, dbName=None, owner=None, createTime= self.isStatsCompliant = isStatsCompliant self.colStats = colStats self.accessType = accessType + self.requiredReadCapabilities = requiredReadCapabilities + self.requiredWriteCapabilities = requiredWriteCapabilities 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: @@ -5150,6 +5156,26 @@ def read(self, iprot): self.accessType = iprot.readByte() else: iprot.skip(ftype) + elif fid == 24: + if ftype == TType.LIST: + self.requiredReadCapabilities = [] + (_etype205, _size202) = iprot.readListBegin() + for _i206 in xrange(_size202): + _elem207 = iprot.readString() + self.requiredReadCapabilities.append(_elem207) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 25: + if ftype == TType.LIST: + self.requiredWriteCapabilities = [] + (_etype211, _size208) = iprot.readListBegin() + for _i212 in xrange(_size208): + _elem213 = iprot.readString() + self.requiredWriteCapabilities.append(_elem213) + iprot.readListEnd() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -5195,16 +5221,16 @@ def write(self, oprot): if self.partitionKeys is not None: oprot.writeFieldBegin('partitionKeys', TType.LIST, 9) oprot.writeListBegin(TType.STRUCT, len(self.partitionKeys)) - for iter202 in self.partitionKeys: - iter202.write(oprot) + for iter214 in self.partitionKeys: + iter214.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.parameters is not None: oprot.writeFieldBegin('parameters', TType.MAP, 10) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.parameters)) - for kiter203,viter204 in self.parameters.items(): - oprot.writeString(kiter203) - oprot.writeString(viter204) + for kiter215,viter216 in self.parameters.items(): + oprot.writeString(kiter215) + oprot.writeString(viter216) oprot.writeMapEnd() oprot.writeFieldEnd() if self.viewOriginalText is not None: @@ -5259,6 +5285,20 @@ def write(self, oprot): oprot.writeFieldBegin('accessType', TType.BYTE, 23) oprot.writeByte(self.accessType) oprot.writeFieldEnd() + if self.requiredReadCapabilities is not None: + oprot.writeFieldBegin('requiredReadCapabilities', TType.LIST, 24) + oprot.writeListBegin(TType.STRING, len(self.requiredReadCapabilities)) + for iter217 in self.requiredReadCapabilities: + oprot.writeString(iter217) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.requiredWriteCapabilities is not None: + oprot.writeFieldBegin('requiredWriteCapabilities', TType.LIST, 25) + oprot.writeListBegin(TType.STRING, len(self.requiredWriteCapabilities)) + for iter218 in self.requiredWriteCapabilities: + oprot.writeString(iter218) + oprot.writeListEnd() + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -5291,6 +5331,8 @@ def __hash__(self): value = (value * 31) ^ hash(self.isStatsCompliant) value = (value * 31) ^ hash(self.colStats) value = (value * 31) ^ hash(self.accessType) + value = (value * 31) ^ hash(self.requiredReadCapabilities) + value = (value * 31) ^ hash(self.requiredWriteCapabilities) return value def __repr__(self): @@ -5363,10 +5405,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.values = [] - (_etype208, _size205) = iprot.readListBegin() - for _i209 in xrange(_size205): - _elem210 = iprot.readString() - self.values.append(_elem210) + (_etype222, _size219) = iprot.readListBegin() + for _i223 in xrange(_size219): + _elem224 = iprot.readString() + self.values.append(_elem224) iprot.readListEnd() else: iprot.skip(ftype) @@ -5399,11 +5441,11 @@ def read(self, iprot): elif fid == 7: if ftype == TType.MAP: self.parameters = {} - (_ktype212, _vtype213, _size211 ) = iprot.readMapBegin() - for _i215 in xrange(_size211): - _key216 = iprot.readString() - _val217 = iprot.readString() - self.parameters[_key216] = _val217 + (_ktype226, _vtype227, _size225 ) = iprot.readMapBegin() + for _i229 in xrange(_size225): + _key230 = iprot.readString() + _val231 = iprot.readString() + self.parameters[_key230] = _val231 iprot.readMapEnd() else: iprot.skip(ftype) @@ -5447,8 +5489,8 @@ def write(self, oprot): if self.values is not None: oprot.writeFieldBegin('values', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.values)) - for iter218 in self.values: - oprot.writeString(iter218) + for iter232 in self.values: + oprot.writeString(iter232) oprot.writeListEnd() oprot.writeFieldEnd() if self.dbName is not None: @@ -5474,9 +5516,9 @@ def write(self, oprot): if self.parameters is not None: oprot.writeFieldBegin('parameters', TType.MAP, 7) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.parameters)) - for kiter219,viter220 in self.parameters.items(): - oprot.writeString(kiter219) - oprot.writeString(viter220) + for kiter233,viter234 in self.parameters.items(): + oprot.writeString(kiter233) + oprot.writeString(viter234) oprot.writeMapEnd() oprot.writeFieldEnd() if self.privileges is not None: @@ -5574,10 +5616,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.values = [] - (_etype224, _size221) = iprot.readListBegin() - for _i225 in xrange(_size221): - _elem226 = iprot.readString() - self.values.append(_elem226) + (_etype238, _size235) = iprot.readListBegin() + for _i239 in xrange(_size235): + _elem240 = iprot.readString() + self.values.append(_elem240) iprot.readListEnd() else: iprot.skip(ftype) @@ -5599,11 +5641,11 @@ def read(self, iprot): elif fid == 5: if ftype == TType.MAP: self.parameters = {} - (_ktype228, _vtype229, _size227 ) = iprot.readMapBegin() - for _i231 in xrange(_size227): - _key232 = iprot.readString() - _val233 = iprot.readString() - self.parameters[_key232] = _val233 + (_ktype242, _vtype243, _size241 ) = iprot.readMapBegin() + for _i245 in xrange(_size241): + _key246 = iprot.readString() + _val247 = iprot.readString() + self.parameters[_key246] = _val247 iprot.readMapEnd() else: iprot.skip(ftype) @@ -5626,8 +5668,8 @@ def write(self, oprot): if self.values is not None: oprot.writeFieldBegin('values', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.values)) - for iter234 in self.values: - oprot.writeString(iter234) + for iter248 in self.values: + oprot.writeString(iter248) oprot.writeListEnd() oprot.writeFieldEnd() if self.createTime is not None: @@ -5645,9 +5687,9 @@ def write(self, oprot): if self.parameters is not None: oprot.writeFieldBegin('parameters', TType.MAP, 5) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.parameters)) - for kiter235,viter236 in self.parameters.items(): - oprot.writeString(kiter235) - oprot.writeString(viter236) + for kiter249,viter250 in self.parameters.items(): + oprot.writeString(kiter249) + oprot.writeString(viter250) oprot.writeMapEnd() oprot.writeFieldEnd() if self.privileges is not None: @@ -5711,11 +5753,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitions = [] - (_etype240, _size237) = iprot.readListBegin() - for _i241 in xrange(_size237): - _elem242 = PartitionWithoutSD() - _elem242.read(iprot) - self.partitions.append(_elem242) + (_etype254, _size251) = iprot.readListBegin() + for _i255 in xrange(_size251): + _elem256 = PartitionWithoutSD() + _elem256.read(iprot) + self.partitions.append(_elem256) iprot.readListEnd() else: iprot.skip(ftype) @@ -5738,8 +5780,8 @@ def write(self, oprot): if self.partitions is not None: oprot.writeFieldBegin('partitions', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.partitions)) - for iter243 in self.partitions: - iter243.write(oprot) + for iter257 in self.partitions: + iter257.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.sd is not None: @@ -7175,11 +7217,11 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.statsObj = [] - (_etype247, _size244) = iprot.readListBegin() - for _i248 in xrange(_size244): - _elem249 = ColumnStatisticsObj() - _elem249.read(iprot) - self.statsObj.append(_elem249) + (_etype261, _size258) = iprot.readListBegin() + for _i262 in xrange(_size258): + _elem263 = ColumnStatisticsObj() + _elem263.read(iprot) + self.statsObj.append(_elem263) iprot.readListEnd() else: iprot.skip(ftype) @@ -7205,8 +7247,8 @@ def write(self, oprot): if self.statsObj is not None: oprot.writeFieldBegin('statsObj', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.statsObj)) - for iter250 in self.statsObj: - iter250.write(oprot) + for iter264 in self.statsObj: + iter264.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.isStatsCompliant is not None: @@ -7268,11 +7310,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitions = [] - (_etype254, _size251) = iprot.readListBegin() - for _i255 in xrange(_size251): - _elem256 = Partition() - _elem256.read(iprot) - self.partitions.append(_elem256) + (_etype268, _size265) = iprot.readListBegin() + for _i269 in xrange(_size265): + _elem270 = Partition() + _elem270.read(iprot) + self.partitions.append(_elem270) iprot.readListEnd() else: iprot.skip(ftype) @@ -7289,8 +7331,8 @@ def write(self, oprot): if self.partitions is not None: oprot.writeFieldBegin('partitions', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.partitions)) - for iter257 in self.partitions: - iter257.write(oprot) + for iter271 in self.partitions: + iter271.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -7506,11 +7548,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.colStats = [] - (_etype261, _size258) = iprot.readListBegin() - for _i262 in xrange(_size258): - _elem263 = ColumnStatisticsObj() - _elem263.read(iprot) - self.colStats.append(_elem263) + (_etype275, _size272) = iprot.readListBegin() + for _i276 in xrange(_size272): + _elem277 = ColumnStatisticsObj() + _elem277.read(iprot) + self.colStats.append(_elem277) iprot.readListEnd() else: iprot.skip(ftype) @@ -7537,8 +7579,8 @@ def write(self, oprot): if self.colStats is not None: oprot.writeFieldBegin('colStats', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.colStats)) - for iter264 in self.colStats: - iter264.write(oprot) + for iter278 in self.colStats: + iter278.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.partsFound is not None: @@ -7613,11 +7655,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.colStats = [] - (_etype268, _size265) = iprot.readListBegin() - for _i269 in xrange(_size265): - _elem270 = ColumnStatistics() - _elem270.read(iprot) - self.colStats.append(_elem270) + (_etype282, _size279) = iprot.readListBegin() + for _i283 in xrange(_size279): + _elem284 = ColumnStatistics() + _elem284.read(iprot) + self.colStats.append(_elem284) iprot.readListEnd() else: iprot.skip(ftype) @@ -7649,8 +7691,8 @@ def write(self, oprot): if self.colStats is not None: oprot.writeFieldBegin('colStats', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.colStats)) - for iter271 in self.colStats: - iter271.write(oprot) + for iter285 in self.colStats: + iter285.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.needMerge is not None: @@ -7789,22 +7831,22 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fieldSchemas = [] - (_etype275, _size272) = iprot.readListBegin() - for _i276 in xrange(_size272): - _elem277 = FieldSchema() - _elem277.read(iprot) - self.fieldSchemas.append(_elem277) + (_etype289, _size286) = iprot.readListBegin() + for _i290 in xrange(_size286): + _elem291 = FieldSchema() + _elem291.read(iprot) + self.fieldSchemas.append(_elem291) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.MAP: self.properties = {} - (_ktype279, _vtype280, _size278 ) = iprot.readMapBegin() - for _i282 in xrange(_size278): - _key283 = iprot.readString() - _val284 = iprot.readString() - self.properties[_key283] = _val284 + (_ktype293, _vtype294, _size292 ) = iprot.readMapBegin() + for _i296 in xrange(_size292): + _key297 = iprot.readString() + _val298 = iprot.readString() + self.properties[_key297] = _val298 iprot.readMapEnd() else: iprot.skip(ftype) @@ -7821,16 +7863,16 @@ def write(self, oprot): if self.fieldSchemas is not None: oprot.writeFieldBegin('fieldSchemas', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.fieldSchemas)) - for iter285 in self.fieldSchemas: - iter285.write(oprot) + for iter299 in self.fieldSchemas: + iter299.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.properties is not None: oprot.writeFieldBegin('properties', TType.MAP, 2) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.properties)) - for kiter286,viter287 in self.properties.items(): - oprot.writeString(kiter286) - oprot.writeString(viter287) + for kiter300,viter301 in self.properties.items(): + oprot.writeString(kiter300) + oprot.writeString(viter301) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -7883,11 +7925,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.properties = {} - (_ktype289, _vtype290, _size288 ) = iprot.readMapBegin() - for _i292 in xrange(_size288): - _key293 = iprot.readString() - _val294 = iprot.readString() - self.properties[_key293] = _val294 + (_ktype303, _vtype304, _size302 ) = iprot.readMapBegin() + for _i306 in xrange(_size302): + _key307 = iprot.readString() + _val308 = iprot.readString() + self.properties[_key307] = _val308 iprot.readMapEnd() else: iprot.skip(ftype) @@ -7904,9 +7946,9 @@ def write(self, oprot): if self.properties is not None: oprot.writeFieldBegin('properties', TType.MAP, 1) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.properties)) - for kiter295,viter296 in self.properties.items(): - oprot.writeString(kiter295) - oprot.writeString(viter296) + for kiter309,viter310 in self.properties.items(): + oprot.writeString(kiter309) + oprot.writeString(viter310) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8053,11 +8095,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.primaryKeys = [] - (_etype300, _size297) = iprot.readListBegin() - for _i301 in xrange(_size297): - _elem302 = SQLPrimaryKey() - _elem302.read(iprot) - self.primaryKeys.append(_elem302) + (_etype314, _size311) = iprot.readListBegin() + for _i315 in xrange(_size311): + _elem316 = SQLPrimaryKey() + _elem316.read(iprot) + self.primaryKeys.append(_elem316) iprot.readListEnd() else: iprot.skip(ftype) @@ -8074,8 +8116,8 @@ def write(self, oprot): if self.primaryKeys is not None: oprot.writeFieldBegin('primaryKeys', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.primaryKeys)) - for iter303 in self.primaryKeys: - iter303.write(oprot) + for iter317 in self.primaryKeys: + iter317.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8246,11 +8288,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.foreignKeys = [] - (_etype307, _size304) = iprot.readListBegin() - for _i308 in xrange(_size304): - _elem309 = SQLForeignKey() - _elem309.read(iprot) - self.foreignKeys.append(_elem309) + (_etype321, _size318) = iprot.readListBegin() + for _i322 in xrange(_size318): + _elem323 = SQLForeignKey() + _elem323.read(iprot) + self.foreignKeys.append(_elem323) iprot.readListEnd() else: iprot.skip(ftype) @@ -8267,8 +8309,8 @@ def write(self, oprot): if self.foreignKeys is not None: oprot.writeFieldBegin('foreignKeys', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.foreignKeys)) - for iter310 in self.foreignKeys: - iter310.write(oprot) + for iter324 in self.foreignKeys: + iter324.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8419,11 +8461,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.uniqueConstraints = [] - (_etype314, _size311) = iprot.readListBegin() - for _i315 in xrange(_size311): - _elem316 = SQLUniqueConstraint() - _elem316.read(iprot) - self.uniqueConstraints.append(_elem316) + (_etype328, _size325) = iprot.readListBegin() + for _i329 in xrange(_size325): + _elem330 = SQLUniqueConstraint() + _elem330.read(iprot) + self.uniqueConstraints.append(_elem330) iprot.readListEnd() else: iprot.skip(ftype) @@ -8440,8 +8482,8 @@ def write(self, oprot): if self.uniqueConstraints is not None: oprot.writeFieldBegin('uniqueConstraints', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.uniqueConstraints)) - for iter317 in self.uniqueConstraints: - iter317.write(oprot) + for iter331 in self.uniqueConstraints: + iter331.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8592,11 +8634,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.notNullConstraints = [] - (_etype321, _size318) = iprot.readListBegin() - for _i322 in xrange(_size318): - _elem323 = SQLNotNullConstraint() - _elem323.read(iprot) - self.notNullConstraints.append(_elem323) + (_etype335, _size332) = iprot.readListBegin() + for _i336 in xrange(_size332): + _elem337 = SQLNotNullConstraint() + _elem337.read(iprot) + self.notNullConstraints.append(_elem337) iprot.readListEnd() else: iprot.skip(ftype) @@ -8613,8 +8655,8 @@ def write(self, oprot): if self.notNullConstraints is not None: oprot.writeFieldBegin('notNullConstraints', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.notNullConstraints)) - for iter324 in self.notNullConstraints: - iter324.write(oprot) + for iter338 in self.notNullConstraints: + iter338.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8765,11 +8807,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.defaultConstraints = [] - (_etype328, _size325) = iprot.readListBegin() - for _i329 in xrange(_size325): - _elem330 = SQLDefaultConstraint() - _elem330.read(iprot) - self.defaultConstraints.append(_elem330) + (_etype342, _size339) = iprot.readListBegin() + for _i343 in xrange(_size339): + _elem344 = SQLDefaultConstraint() + _elem344.read(iprot) + self.defaultConstraints.append(_elem344) iprot.readListEnd() else: iprot.skip(ftype) @@ -8786,8 +8828,8 @@ def write(self, oprot): if self.defaultConstraints is not None: oprot.writeFieldBegin('defaultConstraints', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.defaultConstraints)) - for iter331 in self.defaultConstraints: - iter331.write(oprot) + for iter345 in self.defaultConstraints: + iter345.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8938,11 +8980,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.checkConstraints = [] - (_etype335, _size332) = iprot.readListBegin() - for _i336 in xrange(_size332): - _elem337 = SQLCheckConstraint() - _elem337.read(iprot) - self.checkConstraints.append(_elem337) + (_etype349, _size346) = iprot.readListBegin() + for _i350 in xrange(_size346): + _elem351 = SQLCheckConstraint() + _elem351.read(iprot) + self.checkConstraints.append(_elem351) iprot.readListEnd() else: iprot.skip(ftype) @@ -8959,8 +9001,8 @@ def write(self, oprot): if self.checkConstraints is not None: oprot.writeFieldBegin('checkConstraints', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.checkConstraints)) - for iter338 in self.checkConstraints: - iter338.write(oprot) + for iter352 in self.checkConstraints: + iter352.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9124,11 +9166,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.primaryKeyCols = [] - (_etype342, _size339) = iprot.readListBegin() - for _i343 in xrange(_size339): - _elem344 = SQLPrimaryKey() - _elem344.read(iprot) - self.primaryKeyCols.append(_elem344) + (_etype356, _size353) = iprot.readListBegin() + for _i357 in xrange(_size353): + _elem358 = SQLPrimaryKey() + _elem358.read(iprot) + self.primaryKeyCols.append(_elem358) iprot.readListEnd() else: iprot.skip(ftype) @@ -9145,8 +9187,8 @@ def write(self, oprot): if self.primaryKeyCols is not None: oprot.writeFieldBegin('primaryKeyCols', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.primaryKeyCols)) - for iter345 in self.primaryKeyCols: - iter345.write(oprot) + for iter359 in self.primaryKeyCols: + iter359.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9200,11 +9242,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.foreignKeyCols = [] - (_etype349, _size346) = iprot.readListBegin() - for _i350 in xrange(_size346): - _elem351 = SQLForeignKey() - _elem351.read(iprot) - self.foreignKeyCols.append(_elem351) + (_etype363, _size360) = iprot.readListBegin() + for _i364 in xrange(_size360): + _elem365 = SQLForeignKey() + _elem365.read(iprot) + self.foreignKeyCols.append(_elem365) iprot.readListEnd() else: iprot.skip(ftype) @@ -9221,8 +9263,8 @@ def write(self, oprot): if self.foreignKeyCols is not None: oprot.writeFieldBegin('foreignKeyCols', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.foreignKeyCols)) - for iter352 in self.foreignKeyCols: - iter352.write(oprot) + for iter366 in self.foreignKeyCols: + iter366.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9276,11 +9318,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.uniqueConstraintCols = [] - (_etype356, _size353) = iprot.readListBegin() - for _i357 in xrange(_size353): - _elem358 = SQLUniqueConstraint() - _elem358.read(iprot) - self.uniqueConstraintCols.append(_elem358) + (_etype370, _size367) = iprot.readListBegin() + for _i371 in xrange(_size367): + _elem372 = SQLUniqueConstraint() + _elem372.read(iprot) + self.uniqueConstraintCols.append(_elem372) iprot.readListEnd() else: iprot.skip(ftype) @@ -9297,8 +9339,8 @@ def write(self, oprot): if self.uniqueConstraintCols is not None: oprot.writeFieldBegin('uniqueConstraintCols', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.uniqueConstraintCols)) - for iter359 in self.uniqueConstraintCols: - iter359.write(oprot) + for iter373 in self.uniqueConstraintCols: + iter373.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9352,11 +9394,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.notNullConstraintCols = [] - (_etype363, _size360) = iprot.readListBegin() - for _i364 in xrange(_size360): - _elem365 = SQLNotNullConstraint() - _elem365.read(iprot) - self.notNullConstraintCols.append(_elem365) + (_etype377, _size374) = iprot.readListBegin() + for _i378 in xrange(_size374): + _elem379 = SQLNotNullConstraint() + _elem379.read(iprot) + self.notNullConstraintCols.append(_elem379) iprot.readListEnd() else: iprot.skip(ftype) @@ -9373,8 +9415,8 @@ def write(self, oprot): if self.notNullConstraintCols is not None: oprot.writeFieldBegin('notNullConstraintCols', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.notNullConstraintCols)) - for iter366 in self.notNullConstraintCols: - iter366.write(oprot) + for iter380 in self.notNullConstraintCols: + iter380.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9428,11 +9470,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.defaultConstraintCols = [] - (_etype370, _size367) = iprot.readListBegin() - for _i371 in xrange(_size367): - _elem372 = SQLDefaultConstraint() - _elem372.read(iprot) - self.defaultConstraintCols.append(_elem372) + (_etype384, _size381) = iprot.readListBegin() + for _i385 in xrange(_size381): + _elem386 = SQLDefaultConstraint() + _elem386.read(iprot) + self.defaultConstraintCols.append(_elem386) iprot.readListEnd() else: iprot.skip(ftype) @@ -9449,8 +9491,8 @@ def write(self, oprot): if self.defaultConstraintCols is not None: oprot.writeFieldBegin('defaultConstraintCols', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.defaultConstraintCols)) - for iter373 in self.defaultConstraintCols: - iter373.write(oprot) + for iter387 in self.defaultConstraintCols: + iter387.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9504,11 +9546,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.checkConstraintCols = [] - (_etype377, _size374) = iprot.readListBegin() - for _i378 in xrange(_size374): - _elem379 = SQLCheckConstraint() - _elem379.read(iprot) - self.checkConstraintCols.append(_elem379) + (_etype391, _size388) = iprot.readListBegin() + for _i392 in xrange(_size388): + _elem393 = SQLCheckConstraint() + _elem393.read(iprot) + self.checkConstraintCols.append(_elem393) iprot.readListEnd() else: iprot.skip(ftype) @@ -9525,8 +9567,8 @@ def write(self, oprot): if self.checkConstraintCols is not None: oprot.writeFieldBegin('checkConstraintCols', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.checkConstraintCols)) - for iter380 in self.checkConstraintCols: - iter380.write(oprot) + for iter394 in self.checkConstraintCols: + iter394.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9583,11 +9625,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitions = [] - (_etype384, _size381) = iprot.readListBegin() - for _i385 in xrange(_size381): - _elem386 = Partition() - _elem386.read(iprot) - self.partitions.append(_elem386) + (_etype398, _size395) = iprot.readListBegin() + for _i399 in xrange(_size395): + _elem400 = Partition() + _elem400.read(iprot) + self.partitions.append(_elem400) iprot.readListEnd() else: iprot.skip(ftype) @@ -9609,8 +9651,8 @@ def write(self, oprot): if self.partitions is not None: oprot.writeFieldBegin('partitions', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.partitions)) - for iter387 in self.partitions: - iter387.write(oprot) + for iter401 in self.partitions: + iter401.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.hasUnknownPartitions is not None: @@ -9810,11 +9852,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.tableStats = [] - (_etype391, _size388) = iprot.readListBegin() - for _i392 in xrange(_size388): - _elem393 = ColumnStatisticsObj() - _elem393.read(iprot) - self.tableStats.append(_elem393) + (_etype405, _size402) = iprot.readListBegin() + for _i406 in xrange(_size402): + _elem407 = ColumnStatisticsObj() + _elem407.read(iprot) + self.tableStats.append(_elem407) iprot.readListEnd() else: iprot.skip(ftype) @@ -9836,8 +9878,8 @@ def write(self, oprot): if self.tableStats is not None: oprot.writeFieldBegin('tableStats', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.tableStats)) - for iter394 in self.tableStats: - iter394.write(oprot) + for iter408 in self.tableStats: + iter408.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.isStatsCompliant is not None: @@ -9899,17 +9941,17 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partStats = {} - (_ktype396, _vtype397, _size395 ) = iprot.readMapBegin() - for _i399 in xrange(_size395): - _key400 = iprot.readString() - _val401 = [] - (_etype405, _size402) = iprot.readListBegin() - for _i406 in xrange(_size402): - _elem407 = ColumnStatisticsObj() - _elem407.read(iprot) - _val401.append(_elem407) + (_ktype410, _vtype411, _size409 ) = iprot.readMapBegin() + for _i413 in xrange(_size409): + _key414 = iprot.readString() + _val415 = [] + (_etype419, _size416) = iprot.readListBegin() + for _i420 in xrange(_size416): + _elem421 = ColumnStatisticsObj() + _elem421.read(iprot) + _val415.append(_elem421) iprot.readListEnd() - self.partStats[_key400] = _val401 + self.partStats[_key414] = _val415 iprot.readMapEnd() else: iprot.skip(ftype) @@ -9931,11 +9973,11 @@ def write(self, oprot): if self.partStats is not None: oprot.writeFieldBegin('partStats', TType.MAP, 1) oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.partStats)) - for kiter408,viter409 in self.partStats.items(): - oprot.writeString(kiter408) - oprot.writeListBegin(TType.STRUCT, len(viter409)) - for iter410 in viter409: - iter410.write(oprot) + for kiter422,viter423 in self.partStats.items(): + oprot.writeString(kiter422) + oprot.writeListBegin(TType.STRUCT, len(viter423)) + for iter424 in viter423: + iter424.write(oprot) oprot.writeListEnd() oprot.writeMapEnd() oprot.writeFieldEnd() @@ -10017,10 +10059,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.colNames = [] - (_etype414, _size411) = iprot.readListBegin() - for _i415 in xrange(_size411): - _elem416 = iprot.readString() - self.colNames.append(_elem416) + (_etype428, _size425) = iprot.readListBegin() + for _i429 in xrange(_size425): + _elem430 = iprot.readString() + self.colNames.append(_elem430) iprot.readListEnd() else: iprot.skip(ftype) @@ -10055,8 +10097,8 @@ def write(self, oprot): if self.colNames is not None: oprot.writeFieldBegin('colNames', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.colNames)) - for iter417 in self.colNames: - oprot.writeString(iter417) + for iter431 in self.colNames: + oprot.writeString(iter431) oprot.writeListEnd() oprot.writeFieldEnd() if self.catName is not None: @@ -10151,20 +10193,20 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.colNames = [] - (_etype421, _size418) = iprot.readListBegin() - for _i422 in xrange(_size418): - _elem423 = iprot.readString() - self.colNames.append(_elem423) + (_etype435, _size432) = iprot.readListBegin() + for _i436 in xrange(_size432): + _elem437 = iprot.readString() + self.colNames.append(_elem437) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.partNames = [] - (_etype427, _size424) = iprot.readListBegin() - for _i428 in xrange(_size424): - _elem429 = iprot.readString() - self.partNames.append(_elem429) + (_etype441, _size438) = iprot.readListBegin() + for _i442 in xrange(_size438): + _elem443 = iprot.readString() + self.partNames.append(_elem443) iprot.readListEnd() else: iprot.skip(ftype) @@ -10199,15 +10241,15 @@ def write(self, oprot): if self.colNames is not None: oprot.writeFieldBegin('colNames', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.colNames)) - for iter430 in self.colNames: - oprot.writeString(iter430) + for iter444 in self.colNames: + oprot.writeString(iter444) oprot.writeListEnd() oprot.writeFieldEnd() if self.partNames is not None: oprot.writeFieldBegin('partNames', TType.LIST, 4) oprot.writeListBegin(TType.STRING, len(self.partNames)) - for iter431 in self.partNames: - oprot.writeString(iter431) + for iter445 in self.partNames: + oprot.writeString(iter445) oprot.writeListEnd() oprot.writeFieldEnd() if self.catName is not None: @@ -10283,11 +10325,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitions = [] - (_etype435, _size432) = iprot.readListBegin() - for _i436 in xrange(_size432): - _elem437 = Partition() - _elem437.read(iprot) - self.partitions.append(_elem437) + (_etype449, _size446) = iprot.readListBegin() + for _i450 in xrange(_size446): + _elem451 = Partition() + _elem451.read(iprot) + self.partitions.append(_elem451) iprot.readListEnd() else: iprot.skip(ftype) @@ -10309,8 +10351,8 @@ def write(self, oprot): if self.partitions is not None: oprot.writeFieldBegin('partitions', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.partitions)) - for iter438 in self.partitions: - iter438.write(oprot) + for iter452 in self.partitions: + iter452.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.isStatsCompliant is not None: @@ -10395,11 +10437,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.parts = [] - (_etype442, _size439) = iprot.readListBegin() - for _i443 in xrange(_size439): - _elem444 = Partition() - _elem444.read(iprot) - self.parts.append(_elem444) + (_etype456, _size453) = iprot.readListBegin() + for _i457 in xrange(_size453): + _elem458 = Partition() + _elem458.read(iprot) + self.parts.append(_elem458) iprot.readListEnd() else: iprot.skip(ftype) @@ -10444,8 +10486,8 @@ def write(self, oprot): if self.parts is not None: oprot.writeFieldBegin('parts', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.parts)) - for iter445 in self.parts: - iter445.write(oprot) + for iter459 in self.parts: + iter459.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ifNotExists is not None: @@ -10527,11 +10569,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitions = [] - (_etype449, _size446) = iprot.readListBegin() - for _i450 in xrange(_size446): - _elem451 = Partition() - _elem451.read(iprot) - self.partitions.append(_elem451) + (_etype463, _size460) = iprot.readListBegin() + for _i464 in xrange(_size460): + _elem465 = Partition() + _elem465.read(iprot) + self.partitions.append(_elem465) iprot.readListEnd() else: iprot.skip(ftype) @@ -10548,8 +10590,8 @@ def write(self, oprot): if self.partitions is not None: oprot.writeFieldBegin('partitions', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.partitions)) - for iter452 in self.partitions: - iter452.write(oprot) + for iter466 in self.partitions: + iter466.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10684,21 +10726,21 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.names = [] - (_etype456, _size453) = iprot.readListBegin() - for _i457 in xrange(_size453): - _elem458 = iprot.readString() - self.names.append(_elem458) + (_etype470, _size467) = iprot.readListBegin() + for _i471 in xrange(_size467): + _elem472 = iprot.readString() + self.names.append(_elem472) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.exprs = [] - (_etype462, _size459) = iprot.readListBegin() - for _i463 in xrange(_size459): - _elem464 = DropPartitionsExpr() - _elem464.read(iprot) - self.exprs.append(_elem464) + (_etype476, _size473) = iprot.readListBegin() + for _i477 in xrange(_size473): + _elem478 = DropPartitionsExpr() + _elem478.read(iprot) + self.exprs.append(_elem478) iprot.readListEnd() else: iprot.skip(ftype) @@ -10715,15 +10757,15 @@ def write(self, oprot): if self.names is not None: oprot.writeFieldBegin('names', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.names)) - for iter465 in self.names: - oprot.writeString(iter465) + for iter479 in self.names: + oprot.writeString(iter479) oprot.writeListEnd() oprot.writeFieldEnd() if self.exprs is not None: oprot.writeFieldBegin('exprs', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.exprs)) - for iter466 in self.exprs: - iter466.write(oprot) + for iter480 in self.exprs: + iter480.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10987,11 +11029,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.partitionKeys = [] - (_etype470, _size467) = iprot.readListBegin() - for _i471 in xrange(_size467): - _elem472 = FieldSchema() - _elem472.read(iprot) - self.partitionKeys.append(_elem472) + (_etype484, _size481) = iprot.readListBegin() + for _i485 in xrange(_size481): + _elem486 = FieldSchema() + _elem486.read(iprot) + self.partitionKeys.append(_elem486) iprot.readListEnd() else: iprot.skip(ftype) @@ -11008,11 +11050,11 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.partitionOrder = [] - (_etype476, _size473) = iprot.readListBegin() - for _i477 in xrange(_size473): - _elem478 = FieldSchema() - _elem478.read(iprot) - self.partitionOrder.append(_elem478) + (_etype490, _size487) = iprot.readListBegin() + for _i491 in xrange(_size487): + _elem492 = FieldSchema() + _elem492.read(iprot) + self.partitionOrder.append(_elem492) iprot.readListEnd() else: iprot.skip(ftype) @@ -11052,8 +11094,8 @@ def write(self, oprot): if self.partitionKeys is not None: oprot.writeFieldBegin('partitionKeys', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.partitionKeys)) - for iter479 in self.partitionKeys: - iter479.write(oprot) + for iter493 in self.partitionKeys: + iter493.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.applyDistinct is not None: @@ -11067,8 +11109,8 @@ def write(self, oprot): if self.partitionOrder is not None: oprot.writeFieldBegin('partitionOrder', TType.LIST, 6) oprot.writeListBegin(TType.STRUCT, len(self.partitionOrder)) - for iter480 in self.partitionOrder: - iter480.write(oprot) + for iter494 in self.partitionOrder: + iter494.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ascending is not None: @@ -11146,10 +11188,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.row = [] - (_etype484, _size481) = iprot.readListBegin() - for _i485 in xrange(_size481): - _elem486 = iprot.readString() - self.row.append(_elem486) + (_etype498, _size495) = iprot.readListBegin() + for _i499 in xrange(_size495): + _elem500 = iprot.readString() + self.row.append(_elem500) iprot.readListEnd() else: iprot.skip(ftype) @@ -11166,8 +11208,8 @@ def write(self, oprot): if self.row is not None: oprot.writeFieldBegin('row', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.row)) - for iter487 in self.row: - oprot.writeString(iter487) + for iter501 in self.row: + oprot.writeString(iter501) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11221,11 +11263,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitionValues = [] - (_etype491, _size488) = iprot.readListBegin() - for _i492 in xrange(_size488): - _elem493 = PartitionValuesRow() - _elem493.read(iprot) - self.partitionValues.append(_elem493) + (_etype505, _size502) = iprot.readListBegin() + for _i506 in xrange(_size502): + _elem507 = PartitionValuesRow() + _elem507.read(iprot) + self.partitionValues.append(_elem507) iprot.readListEnd() else: iprot.skip(ftype) @@ -11242,8 +11284,8 @@ def write(self, oprot): if self.partitionValues is not None: oprot.writeFieldBegin('partitionValues', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.partitionValues)) - for iter494 in self.partitionValues: - iter494.write(oprot) + for iter508 in self.partitionValues: + iter508.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11322,10 +11364,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.names = [] - (_etype498, _size495) = iprot.readListBegin() - for _i499 in xrange(_size495): - _elem500 = iprot.readString() - self.names.append(_elem500) + (_etype512, _size509) = iprot.readListBegin() + for _i513 in xrange(_size509): + _elem514 = iprot.readString() + self.names.append(_elem514) iprot.readListEnd() else: iprot.skip(ftype) @@ -11337,10 +11379,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.processorCapabilities = [] - (_etype504, _size501) = iprot.readListBegin() - for _i505 in xrange(_size501): - _elem506 = iprot.readString() - self.processorCapabilities.append(_elem506) + (_etype518, _size515) = iprot.readListBegin() + for _i519 in xrange(_size515): + _elem520 = iprot.readString() + self.processorCapabilities.append(_elem520) iprot.readListEnd() else: iprot.skip(ftype) @@ -11370,8 +11412,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 iter507 in self.names: - oprot.writeString(iter507) + for iter521 in self.names: + oprot.writeString(iter521) oprot.writeListEnd() oprot.writeFieldEnd() if self.get_col_stats is not None: @@ -11381,8 +11423,8 @@ def write(self, oprot): if self.processorCapabilities is not None: oprot.writeFieldBegin('processorCapabilities', TType.LIST, 5) oprot.writeListBegin(TType.STRING, len(self.processorCapabilities)) - for iter508 in self.processorCapabilities: - oprot.writeString(iter508) + for iter522 in self.processorCapabilities: + oprot.writeString(iter522) oprot.writeListEnd() oprot.writeFieldEnd() if self.processorIdentifier is not None: @@ -11447,11 +11489,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitions = [] - (_etype512, _size509) = iprot.readListBegin() - for _i513 in xrange(_size509): - _elem514 = Partition() - _elem514.read(iprot) - self.partitions.append(_elem514) + (_etype526, _size523) = iprot.readListBegin() + for _i527 in xrange(_size523): + _elem528 = Partition() + _elem528.read(iprot) + self.partitions.append(_elem528) iprot.readListEnd() else: iprot.skip(ftype) @@ -11468,8 +11510,8 @@ def write(self, oprot): if self.partitions is not None: oprot.writeFieldBegin('partitions', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.partitions)) - for iter515 in self.partitions: - iter515.write(oprot) + for iter529 in self.partitions: + iter529.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11660,11 +11702,11 @@ def read(self, iprot): elif fid == 8: if ftype == TType.LIST: self.resourceUris = [] - (_etype519, _size516) = iprot.readListBegin() - for _i520 in xrange(_size516): - _elem521 = ResourceUri() - _elem521.read(iprot) - self.resourceUris.append(_elem521) + (_etype533, _size530) = iprot.readListBegin() + for _i534 in xrange(_size530): + _elem535 = ResourceUri() + _elem535.read(iprot) + self.resourceUris.append(_elem535) iprot.readListEnd() else: iprot.skip(ftype) @@ -11714,8 +11756,8 @@ def write(self, oprot): if self.resourceUris is not None: oprot.writeFieldBegin('resourceUris', TType.LIST, 8) oprot.writeListBegin(TType.STRUCT, len(self.resourceUris)) - for iter522 in self.resourceUris: - iter522.write(oprot) + for iter536 in self.resourceUris: + iter536.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.catName is not None: @@ -11964,11 +12006,11 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.open_txns = [] - (_etype526, _size523) = iprot.readListBegin() - for _i527 in xrange(_size523): - _elem528 = TxnInfo() - _elem528.read(iprot) - self.open_txns.append(_elem528) + (_etype540, _size537) = iprot.readListBegin() + for _i541 in xrange(_size537): + _elem542 = TxnInfo() + _elem542.read(iprot) + self.open_txns.append(_elem542) iprot.readListEnd() else: iprot.skip(ftype) @@ -11989,8 +12031,8 @@ def write(self, oprot): if self.open_txns is not None: oprot.writeFieldBegin('open_txns', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.open_txns)) - for iter529 in self.open_txns: - iter529.write(oprot) + for iter543 in self.open_txns: + iter543.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12061,10 +12103,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.open_txns = [] - (_etype533, _size530) = iprot.readListBegin() - for _i534 in xrange(_size530): - _elem535 = iprot.readI64() - self.open_txns.append(_elem535) + (_etype547, _size544) = iprot.readListBegin() + for _i548 in xrange(_size544): + _elem549 = iprot.readI64() + self.open_txns.append(_elem549) iprot.readListEnd() else: iprot.skip(ftype) @@ -12095,8 +12137,8 @@ def write(self, oprot): if self.open_txns is not None: oprot.writeFieldBegin('open_txns', TType.LIST, 2) oprot.writeListBegin(TType.I64, len(self.open_txns)) - for iter536 in self.open_txns: - oprot.writeI64(iter536) + for iter550 in self.open_txns: + oprot.writeI64(iter550) oprot.writeListEnd() oprot.writeFieldEnd() if self.min_open_txn is not None: @@ -12208,10 +12250,10 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.replSrcTxnIds = [] - (_etype540, _size537) = iprot.readListBegin() - for _i541 in xrange(_size537): - _elem542 = iprot.readI64() - self.replSrcTxnIds.append(_elem542) + (_etype554, _size551) = iprot.readListBegin() + for _i555 in xrange(_size551): + _elem556 = iprot.readI64() + self.replSrcTxnIds.append(_elem556) iprot.readListEnd() else: iprot.skip(ftype) @@ -12253,8 +12295,8 @@ def write(self, oprot): if self.replSrcTxnIds is not None: oprot.writeFieldBegin('replSrcTxnIds', TType.LIST, 6) oprot.writeListBegin(TType.I64, len(self.replSrcTxnIds)) - for iter543 in self.replSrcTxnIds: - oprot.writeI64(iter543) + for iter557 in self.replSrcTxnIds: + oprot.writeI64(iter557) oprot.writeListEnd() oprot.writeFieldEnd() if self.txn_type is not None: @@ -12322,10 +12364,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.txn_ids = [] - (_etype547, _size544) = iprot.readListBegin() - for _i548 in xrange(_size544): - _elem549 = iprot.readI64() - self.txn_ids.append(_elem549) + (_etype561, _size558) = iprot.readListBegin() + for _i562 in xrange(_size558): + _elem563 = iprot.readI64() + self.txn_ids.append(_elem563) iprot.readListEnd() else: iprot.skip(ftype) @@ -12342,8 +12384,8 @@ def write(self, oprot): if self.txn_ids is not None: oprot.writeFieldBegin('txn_ids', TType.LIST, 1) oprot.writeListBegin(TType.I64, len(self.txn_ids)) - for iter550 in self.txn_ids: - oprot.writeI64(iter550) + for iter564 in self.txn_ids: + oprot.writeI64(iter564) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12477,10 +12519,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.txn_ids = [] - (_etype554, _size551) = iprot.readListBegin() - for _i555 in xrange(_size551): - _elem556 = iprot.readI64() - self.txn_ids.append(_elem556) + (_etype568, _size565) = iprot.readListBegin() + for _i569 in xrange(_size565): + _elem570 = iprot.readI64() + self.txn_ids.append(_elem570) iprot.readListEnd() else: iprot.skip(ftype) @@ -12497,8 +12539,8 @@ def write(self, oprot): if self.txn_ids is not None: oprot.writeFieldBegin('txn_ids', TType.LIST, 1) oprot.writeListBegin(TType.I64, len(self.txn_ids)) - for iter557 in self.txn_ids: - oprot.writeI64(iter557) + for iter571 in self.txn_ids: + oprot.writeI64(iter571) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12832,10 +12874,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.partitionList = [] - (_etype561, _size558) = iprot.readListBegin() - for _i562 in xrange(_size558): - _elem563 = iprot.readString() - self.partitionList.append(_elem563) + (_etype575, _size572) = iprot.readListBegin() + for _i576 in xrange(_size572): + _elem577 = iprot.readString() + self.partitionList.append(_elem577) iprot.readListEnd() else: iprot.skip(ftype) @@ -12868,8 +12910,8 @@ def write(self, oprot): if self.partitionList is not None: oprot.writeFieldBegin('partitionList', TType.LIST, 5) oprot.writeListBegin(TType.STRING, len(self.partitionList)) - for iter564 in self.partitionList: - oprot.writeString(iter564) + for iter578 in self.partitionList: + oprot.writeString(iter578) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12951,11 +12993,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.writeEventInfos = [] - (_etype568, _size565) = iprot.readListBegin() - for _i569 in xrange(_size565): - _elem570 = WriteEventInfo() - _elem570.read(iprot) - self.writeEventInfos.append(_elem570) + (_etype582, _size579) = iprot.readListBegin() + for _i583 in xrange(_size579): + _elem584 = WriteEventInfo() + _elem584.read(iprot) + self.writeEventInfos.append(_elem584) iprot.readListEnd() else: iprot.skip(ftype) @@ -12992,8 +13034,8 @@ def write(self, oprot): if self.writeEventInfos is not None: oprot.writeFieldBegin('writeEventInfos', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.writeEventInfos)) - for iter571 in self.writeEventInfos: - iter571.write(oprot) + for iter585 in self.writeEventInfos: + iter585.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.keyValue is not None: @@ -13099,10 +13141,10 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.partNames = [] - (_etype575, _size572) = iprot.readListBegin() - for _i576 in xrange(_size572): - _elem577 = iprot.readString() - self.partNames.append(_elem577) + (_etype589, _size586) = iprot.readListBegin() + for _i590 in xrange(_size586): + _elem591 = iprot.readString() + self.partNames.append(_elem591) iprot.readListEnd() else: iprot.skip(ftype) @@ -13139,8 +13181,8 @@ def write(self, oprot): if self.partNames is not None: oprot.writeFieldBegin('partNames', TType.LIST, 6) oprot.writeListBegin(TType.STRING, len(self.partNames)) - for iter578 in self.partNames: - oprot.writeString(iter578) + for iter592 in self.partNames: + oprot.writeString(iter592) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13213,10 +13255,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fullTableNames = [] - (_etype582, _size579) = iprot.readListBegin() - for _i583 in xrange(_size579): - _elem584 = iprot.readString() - self.fullTableNames.append(_elem584) + (_etype596, _size593) = iprot.readListBegin() + for _i597 in xrange(_size593): + _elem598 = iprot.readString() + self.fullTableNames.append(_elem598) iprot.readListEnd() else: iprot.skip(ftype) @@ -13243,8 +13285,8 @@ def write(self, oprot): if self.fullTableNames is not None: oprot.writeFieldBegin('fullTableNames', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.fullTableNames)) - for iter585 in self.fullTableNames: - oprot.writeString(iter585) + for iter599 in self.fullTableNames: + oprot.writeString(iter599) oprot.writeListEnd() oprot.writeFieldEnd() if self.validTxnList is not None: @@ -13330,10 +13372,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.invalidWriteIds = [] - (_etype589, _size586) = iprot.readListBegin() - for _i590 in xrange(_size586): - _elem591 = iprot.readI64() - self.invalidWriteIds.append(_elem591) + (_etype603, _size600) = iprot.readListBegin() + for _i604 in xrange(_size600): + _elem605 = iprot.readI64() + self.invalidWriteIds.append(_elem605) iprot.readListEnd() else: iprot.skip(ftype) @@ -13368,8 +13410,8 @@ def write(self, oprot): if self.invalidWriteIds is not None: oprot.writeFieldBegin('invalidWriteIds', TType.LIST, 3) oprot.writeListBegin(TType.I64, len(self.invalidWriteIds)) - for iter592 in self.invalidWriteIds: - oprot.writeI64(iter592) + for iter606 in self.invalidWriteIds: + oprot.writeI64(iter606) oprot.writeListEnd() oprot.writeFieldEnd() if self.minOpenWriteId is not None: @@ -13441,11 +13483,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.tblValidWriteIds = [] - (_etype596, _size593) = iprot.readListBegin() - for _i597 in xrange(_size593): - _elem598 = TableValidWriteIds() - _elem598.read(iprot) - self.tblValidWriteIds.append(_elem598) + (_etype610, _size607) = iprot.readListBegin() + for _i611 in xrange(_size607): + _elem612 = TableValidWriteIds() + _elem612.read(iprot) + self.tblValidWriteIds.append(_elem612) iprot.readListEnd() else: iprot.skip(ftype) @@ -13462,8 +13504,8 @@ def write(self, oprot): if self.tblValidWriteIds is not None: oprot.writeFieldBegin('tblValidWriteIds', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.tblValidWriteIds)) - for iter599 in self.tblValidWriteIds: - iter599.write(oprot) + for iter613 in self.tblValidWriteIds: + iter613.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13621,10 +13663,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.txnIds = [] - (_etype603, _size600) = iprot.readListBegin() - for _i604 in xrange(_size600): - _elem605 = iprot.readI64() - self.txnIds.append(_elem605) + (_etype617, _size614) = iprot.readListBegin() + for _i618 in xrange(_size614): + _elem619 = iprot.readI64() + self.txnIds.append(_elem619) iprot.readListEnd() else: iprot.skip(ftype) @@ -13636,11 +13678,11 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.srcTxnToWriteIdList = [] - (_etype609, _size606) = iprot.readListBegin() - for _i610 in xrange(_size606): - _elem611 = TxnToWriteId() - _elem611.read(iprot) - self.srcTxnToWriteIdList.append(_elem611) + (_etype623, _size620) = iprot.readListBegin() + for _i624 in xrange(_size620): + _elem625 = TxnToWriteId() + _elem625.read(iprot) + self.srcTxnToWriteIdList.append(_elem625) iprot.readListEnd() else: iprot.skip(ftype) @@ -13665,8 +13707,8 @@ def write(self, oprot): if self.txnIds is not None: oprot.writeFieldBegin('txnIds', TType.LIST, 3) oprot.writeListBegin(TType.I64, len(self.txnIds)) - for iter612 in self.txnIds: - oprot.writeI64(iter612) + for iter626 in self.txnIds: + oprot.writeI64(iter626) oprot.writeListEnd() oprot.writeFieldEnd() if self.replPolicy is not None: @@ -13676,8 +13718,8 @@ def write(self, oprot): if self.srcTxnToWriteIdList is not None: oprot.writeFieldBegin('srcTxnToWriteIdList', TType.LIST, 5) oprot.writeListBegin(TType.STRUCT, len(self.srcTxnToWriteIdList)) - for iter613 in self.srcTxnToWriteIdList: - iter613.write(oprot) + for iter627 in self.srcTxnToWriteIdList: + iter627.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13737,11 +13779,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.txnToWriteIds = [] - (_etype617, _size614) = iprot.readListBegin() - for _i618 in xrange(_size614): - _elem619 = TxnToWriteId() - _elem619.read(iprot) - self.txnToWriteIds.append(_elem619) + (_etype631, _size628) = iprot.readListBegin() + for _i632 in xrange(_size628): + _elem633 = TxnToWriteId() + _elem633.read(iprot) + self.txnToWriteIds.append(_elem633) iprot.readListEnd() else: iprot.skip(ftype) @@ -13758,8 +13800,8 @@ def write(self, oprot): if self.txnToWriteIds is not None: oprot.writeFieldBegin('txnToWriteIds', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.txnToWriteIds)) - for iter620 in self.txnToWriteIds: - iter620.write(oprot) + for iter634 in self.txnToWriteIds: + iter634.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13987,11 +14029,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.component = [] - (_etype624, _size621) = iprot.readListBegin() - for _i625 in xrange(_size621): - _elem626 = LockComponent() - _elem626.read(iprot) - self.component.append(_elem626) + (_etype638, _size635) = iprot.readListBegin() + for _i639 in xrange(_size635): + _elem640 = LockComponent() + _elem640.read(iprot) + self.component.append(_elem640) iprot.readListEnd() else: iprot.skip(ftype) @@ -14028,8 +14070,8 @@ def write(self, oprot): if self.component is not None: oprot.writeFieldBegin('component', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.component)) - for iter627 in self.component: - iter627.write(oprot) + for iter641 in self.component: + iter641.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.txnid is not None: @@ -14727,11 +14769,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.locks = [] - (_etype631, _size628) = iprot.readListBegin() - for _i632 in xrange(_size628): - _elem633 = ShowLocksResponseElement() - _elem633.read(iprot) - self.locks.append(_elem633) + (_etype645, _size642) = iprot.readListBegin() + for _i646 in xrange(_size642): + _elem647 = ShowLocksResponseElement() + _elem647.read(iprot) + self.locks.append(_elem647) iprot.readListEnd() else: iprot.skip(ftype) @@ -14748,8 +14790,8 @@ def write(self, oprot): if self.locks is not None: oprot.writeFieldBegin('locks', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.locks)) - for iter634 in self.locks: - iter634.write(oprot) + for iter648 in self.locks: + iter648.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14964,20 +15006,20 @@ def read(self, iprot): if fid == 1: if ftype == TType.SET: self.aborted = set() - (_etype638, _size635) = iprot.readSetBegin() - for _i639 in xrange(_size635): - _elem640 = iprot.readI64() - self.aborted.add(_elem640) + (_etype652, _size649) = iprot.readSetBegin() + for _i653 in xrange(_size649): + _elem654 = iprot.readI64() + self.aborted.add(_elem654) iprot.readSetEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.SET: self.nosuch = set() - (_etype644, _size641) = iprot.readSetBegin() - for _i645 in xrange(_size641): - _elem646 = iprot.readI64() - self.nosuch.add(_elem646) + (_etype658, _size655) = iprot.readSetBegin() + for _i659 in xrange(_size655): + _elem660 = iprot.readI64() + self.nosuch.add(_elem660) iprot.readSetEnd() else: iprot.skip(ftype) @@ -14994,15 +15036,15 @@ def write(self, oprot): if self.aborted is not None: oprot.writeFieldBegin('aborted', TType.SET, 1) oprot.writeSetBegin(TType.I64, len(self.aborted)) - for iter647 in self.aborted: - oprot.writeI64(iter647) + for iter661 in self.aborted: + oprot.writeI64(iter661) oprot.writeSetEnd() oprot.writeFieldEnd() if self.nosuch is not None: oprot.writeFieldBegin('nosuch', TType.SET, 2) oprot.writeSetBegin(TType.I64, len(self.nosuch)) - for iter648 in self.nosuch: - oprot.writeI64(iter648) + for iter662 in self.nosuch: + oprot.writeI64(iter662) oprot.writeSetEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15099,11 +15141,11 @@ def read(self, iprot): elif fid == 6: if ftype == TType.MAP: self.properties = {} - (_ktype650, _vtype651, _size649 ) = iprot.readMapBegin() - for _i653 in xrange(_size649): - _key654 = iprot.readString() - _val655 = iprot.readString() - self.properties[_key654] = _val655 + (_ktype664, _vtype665, _size663 ) = iprot.readMapBegin() + for _i667 in xrange(_size663): + _key668 = iprot.readString() + _val669 = iprot.readString() + self.properties[_key668] = _val669 iprot.readMapEnd() else: iprot.skip(ftype) @@ -15140,9 +15182,9 @@ def write(self, oprot): if self.properties is not None: oprot.writeFieldBegin('properties', TType.MAP, 6) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.properties)) - for kiter656,viter657 in self.properties.items(): - oprot.writeString(kiter656) - oprot.writeString(viter657) + for kiter670,viter671 in self.properties.items(): + oprot.writeString(kiter670) + oprot.writeString(viter671) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15859,11 +15901,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.compacts = [] - (_etype661, _size658) = iprot.readListBegin() - for _i662 in xrange(_size658): - _elem663 = ShowCompactResponseElement() - _elem663.read(iprot) - self.compacts.append(_elem663) + (_etype675, _size672) = iprot.readListBegin() + for _i676 in xrange(_size672): + _elem677 = ShowCompactResponseElement() + _elem677.read(iprot) + self.compacts.append(_elem677) iprot.readListEnd() else: iprot.skip(ftype) @@ -15880,8 +15922,8 @@ def write(self, oprot): if self.compacts is not None: oprot.writeFieldBegin('compacts', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.compacts)) - for iter664 in self.compacts: - iter664.write(oprot) + for iter678 in self.compacts: + iter678.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15970,10 +16012,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.partitionnames = [] - (_etype668, _size665) = iprot.readListBegin() - for _i669 in xrange(_size665): - _elem670 = iprot.readString() - self.partitionnames.append(_elem670) + (_etype682, _size679) = iprot.readListBegin() + for _i683 in xrange(_size679): + _elem684 = iprot.readString() + self.partitionnames.append(_elem684) iprot.readListEnd() else: iprot.skip(ftype) @@ -16011,8 +16053,8 @@ def write(self, oprot): if self.partitionnames is not None: oprot.writeFieldBegin('partitionnames', TType.LIST, 5) oprot.writeListBegin(TType.STRING, len(self.partitionnames)) - for iter671 in self.partitionnames: - oprot.writeString(iter671) + for iter685 in self.partitionnames: + oprot.writeString(iter685) oprot.writeListEnd() oprot.writeFieldEnd() if self.operationType is not None: @@ -16231,10 +16273,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.eventTypeSkipList = [] - (_etype675, _size672) = iprot.readListBegin() - for _i676 in xrange(_size672): - _elem677 = iprot.readString() - self.eventTypeSkipList.append(_elem677) + (_etype689, _size686) = iprot.readListBegin() + for _i690 in xrange(_size686): + _elem691 = iprot.readString() + self.eventTypeSkipList.append(_elem691) iprot.readListEnd() else: iprot.skip(ftype) @@ -16259,8 +16301,8 @@ def write(self, oprot): if self.eventTypeSkipList is not None: oprot.writeFieldBegin('eventTypeSkipList', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.eventTypeSkipList)) - for iter678 in self.eventTypeSkipList: - oprot.writeString(iter678) + for iter692 in self.eventTypeSkipList: + oprot.writeString(iter692) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16480,11 +16522,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.events = [] - (_etype682, _size679) = iprot.readListBegin() - for _i683 in xrange(_size679): - _elem684 = NotificationEvent() - _elem684.read(iprot) - self.events.append(_elem684) + (_etype696, _size693) = iprot.readListBegin() + for _i697 in xrange(_size693): + _elem698 = NotificationEvent() + _elem698.read(iprot) + self.events.append(_elem698) iprot.readListEnd() else: iprot.skip(ftype) @@ -16501,8 +16543,8 @@ def write(self, oprot): if self.events is not None: oprot.writeFieldBegin('events', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.events)) - for iter685 in self.events: - iter685.write(oprot) + for iter699 in self.events: + iter699.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16825,30 +16867,30 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.filesAdded = [] - (_etype689, _size686) = iprot.readListBegin() - for _i690 in xrange(_size686): - _elem691 = iprot.readString() - self.filesAdded.append(_elem691) + (_etype703, _size700) = iprot.readListBegin() + for _i704 in xrange(_size700): + _elem705 = iprot.readString() + self.filesAdded.append(_elem705) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.filesAddedChecksum = [] - (_etype695, _size692) = iprot.readListBegin() - for _i696 in xrange(_size692): - _elem697 = iprot.readString() - self.filesAddedChecksum.append(_elem697) + (_etype709, _size706) = iprot.readListBegin() + for _i710 in xrange(_size706): + _elem711 = iprot.readString() + self.filesAddedChecksum.append(_elem711) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.subDirectoryList = [] - (_etype701, _size698) = iprot.readListBegin() - for _i702 in xrange(_size698): - _elem703 = iprot.readString() - self.subDirectoryList.append(_elem703) + (_etype715, _size712) = iprot.readListBegin() + for _i716 in xrange(_size712): + _elem717 = iprot.readString() + self.subDirectoryList.append(_elem717) iprot.readListEnd() else: iprot.skip(ftype) @@ -16869,22 +16911,22 @@ def write(self, oprot): if self.filesAdded is not None: oprot.writeFieldBegin('filesAdded', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.filesAdded)) - for iter704 in self.filesAdded: - oprot.writeString(iter704) + for iter718 in self.filesAdded: + oprot.writeString(iter718) oprot.writeListEnd() oprot.writeFieldEnd() if self.filesAddedChecksum is not None: oprot.writeFieldBegin('filesAddedChecksum', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.filesAddedChecksum)) - for iter705 in self.filesAddedChecksum: - oprot.writeString(iter705) + for iter719 in self.filesAddedChecksum: + oprot.writeString(iter719) oprot.writeListEnd() oprot.writeFieldEnd() if self.subDirectoryList is not None: oprot.writeFieldBegin('subDirectoryList', TType.LIST, 4) oprot.writeListBegin(TType.STRING, len(self.subDirectoryList)) - for iter706 in self.subDirectoryList: - oprot.writeString(iter706) + for iter720 in self.subDirectoryList: + oprot.writeString(iter720) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -17043,10 +17085,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.partitionVals = [] - (_etype710, _size707) = iprot.readListBegin() - for _i711 in xrange(_size707): - _elem712 = iprot.readString() - self.partitionVals.append(_elem712) + (_etype724, _size721) = iprot.readListBegin() + for _i725 in xrange(_size721): + _elem726 = iprot.readString() + self.partitionVals.append(_elem726) iprot.readListEnd() else: iprot.skip(ftype) @@ -17084,8 +17126,8 @@ def write(self, oprot): if self.partitionVals is not None: oprot.writeFieldBegin('partitionVals', TType.LIST, 5) oprot.writeListBegin(TType.STRING, len(self.partitionVals)) - for iter713 in self.partitionVals: - oprot.writeString(iter713) + for iter727 in self.partitionVals: + oprot.writeString(iter727) oprot.writeListEnd() oprot.writeFieldEnd() if self.catName is not None: @@ -17237,10 +17279,10 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.partitionVals = [] - (_etype717, _size714) = iprot.readListBegin() - for _i718 in xrange(_size714): - _elem719 = iprot.readString() - self.partitionVals.append(_elem719) + (_etype731, _size728) = iprot.readListBegin() + for _i732 in xrange(_size728): + _elem733 = iprot.readString() + self.partitionVals.append(_elem733) iprot.readListEnd() else: iprot.skip(ftype) @@ -17277,8 +17319,8 @@ def write(self, oprot): if self.partitionVals is not None: oprot.writeFieldBegin('partitionVals', TType.LIST, 6) oprot.writeListBegin(TType.STRING, len(self.partitionVals)) - for iter720 in self.partitionVals: - oprot.writeString(iter720) + for iter734 in self.partitionVals: + oprot.writeString(iter734) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -17472,12 +17514,12 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.metadata = {} - (_ktype722, _vtype723, _size721 ) = iprot.readMapBegin() - for _i725 in xrange(_size721): - _key726 = iprot.readI64() - _val727 = MetadataPpdResult() - _val727.read(iprot) - self.metadata[_key726] = _val727 + (_ktype736, _vtype737, _size735 ) = iprot.readMapBegin() + for _i739 in xrange(_size735): + _key740 = iprot.readI64() + _val741 = MetadataPpdResult() + _val741.read(iprot) + self.metadata[_key740] = _val741 iprot.readMapEnd() else: iprot.skip(ftype) @@ -17499,9 +17541,9 @@ def write(self, oprot): if self.metadata is not None: oprot.writeFieldBegin('metadata', TType.MAP, 1) oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.metadata)) - for kiter728,viter729 in self.metadata.items(): - oprot.writeI64(kiter728) - viter729.write(oprot) + for kiter742,viter743 in self.metadata.items(): + oprot.writeI64(kiter742) + viter743.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.isSupported is not None: @@ -17571,10 +17613,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype733, _size730) = iprot.readListBegin() - for _i734 in xrange(_size730): - _elem735 = iprot.readI64() - self.fileIds.append(_elem735) + (_etype747, _size744) = iprot.readListBegin() + for _i748 in xrange(_size744): + _elem749 = iprot.readI64() + self.fileIds.append(_elem749) iprot.readListEnd() else: iprot.skip(ftype) @@ -17606,8 +17648,8 @@ def write(self, oprot): if self.fileIds is not None: oprot.writeFieldBegin('fileIds', TType.LIST, 1) oprot.writeListBegin(TType.I64, len(self.fileIds)) - for iter736 in self.fileIds: - oprot.writeI64(iter736) + for iter750 in self.fileIds: + oprot.writeI64(iter750) oprot.writeListEnd() oprot.writeFieldEnd() if self.expr is not None: @@ -17681,11 +17723,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.metadata = {} - (_ktype738, _vtype739, _size737 ) = iprot.readMapBegin() - for _i741 in xrange(_size737): - _key742 = iprot.readI64() - _val743 = iprot.readString() - self.metadata[_key742] = _val743 + (_ktype752, _vtype753, _size751 ) = iprot.readMapBegin() + for _i755 in xrange(_size751): + _key756 = iprot.readI64() + _val757 = iprot.readString() + self.metadata[_key756] = _val757 iprot.readMapEnd() else: iprot.skip(ftype) @@ -17707,9 +17749,9 @@ def write(self, oprot): if self.metadata is not None: oprot.writeFieldBegin('metadata', TType.MAP, 1) oprot.writeMapBegin(TType.I64, TType.STRING, len(self.metadata)) - for kiter744,viter745 in self.metadata.items(): - oprot.writeI64(kiter744) - oprot.writeString(viter745) + for kiter758,viter759 in self.metadata.items(): + oprot.writeI64(kiter758) + oprot.writeString(viter759) oprot.writeMapEnd() oprot.writeFieldEnd() if self.isSupported is not None: @@ -17770,10 +17812,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype749, _size746) = iprot.readListBegin() - for _i750 in xrange(_size746): - _elem751 = iprot.readI64() - self.fileIds.append(_elem751) + (_etype763, _size760) = iprot.readListBegin() + for _i764 in xrange(_size760): + _elem765 = iprot.readI64() + self.fileIds.append(_elem765) iprot.readListEnd() else: iprot.skip(ftype) @@ -17790,8 +17832,8 @@ def write(self, oprot): if self.fileIds is not None: oprot.writeFieldBegin('fileIds', TType.LIST, 1) oprot.writeListBegin(TType.I64, len(self.fileIds)) - for iter752 in self.fileIds: - oprot.writeI64(iter752) + for iter766 in self.fileIds: + oprot.writeI64(iter766) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -17897,20 +17939,20 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype756, _size753) = iprot.readListBegin() - for _i757 in xrange(_size753): - _elem758 = iprot.readI64() - self.fileIds.append(_elem758) + (_etype770, _size767) = iprot.readListBegin() + for _i771 in xrange(_size767): + _elem772 = iprot.readI64() + self.fileIds.append(_elem772) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.metadata = [] - (_etype762, _size759) = iprot.readListBegin() - for _i763 in xrange(_size759): - _elem764 = iprot.readString() - self.metadata.append(_elem764) + (_etype776, _size773) = iprot.readListBegin() + for _i777 in xrange(_size773): + _elem778 = iprot.readString() + self.metadata.append(_elem778) iprot.readListEnd() else: iprot.skip(ftype) @@ -17932,15 +17974,15 @@ def write(self, oprot): if self.fileIds is not None: oprot.writeFieldBegin('fileIds', TType.LIST, 1) oprot.writeListBegin(TType.I64, len(self.fileIds)) - for iter765 in self.fileIds: - oprot.writeI64(iter765) + for iter779 in self.fileIds: + oprot.writeI64(iter779) oprot.writeListEnd() oprot.writeFieldEnd() if self.metadata is not None: oprot.writeFieldBegin('metadata', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.metadata)) - for iter766 in self.metadata: - oprot.writeString(iter766) + for iter780 in self.metadata: + oprot.writeString(iter780) oprot.writeListEnd() oprot.writeFieldEnd() if self.type is not None: @@ -18048,10 +18090,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype770, _size767) = iprot.readListBegin() - for _i771 in xrange(_size767): - _elem772 = iprot.readI64() - self.fileIds.append(_elem772) + (_etype784, _size781) = iprot.readListBegin() + for _i785 in xrange(_size781): + _elem786 = iprot.readI64() + self.fileIds.append(_elem786) iprot.readListEnd() else: iprot.skip(ftype) @@ -18068,8 +18110,8 @@ def write(self, oprot): if self.fileIds is not None: oprot.writeFieldBegin('fileIds', TType.LIST, 1) oprot.writeListBegin(TType.I64, len(self.fileIds)) - for iter773 in self.fileIds: - oprot.writeI64(iter773) + for iter787 in self.fileIds: + oprot.writeI64(iter787) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -18298,11 +18340,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.functions = [] - (_etype777, _size774) = iprot.readListBegin() - for _i778 in xrange(_size774): - _elem779 = Function() - _elem779.read(iprot) - self.functions.append(_elem779) + (_etype791, _size788) = iprot.readListBegin() + for _i792 in xrange(_size788): + _elem793 = Function() + _elem793.read(iprot) + self.functions.append(_elem793) iprot.readListEnd() else: iprot.skip(ftype) @@ -18319,8 +18361,8 @@ def write(self, oprot): if self.functions is not None: oprot.writeFieldBegin('functions', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.functions)) - for iter780 in self.functions: - iter780.write(oprot) + for iter794 in self.functions: + iter794.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -18372,10 +18414,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.values = [] - (_etype784, _size781) = iprot.readListBegin() - for _i785 in xrange(_size781): - _elem786 = iprot.readI32() - self.values.append(_elem786) + (_etype798, _size795) = iprot.readListBegin() + for _i799 in xrange(_size795): + _elem800 = iprot.readI32() + self.values.append(_elem800) iprot.readListEnd() else: iprot.skip(ftype) @@ -18392,8 +18434,8 @@ def write(self, oprot): if self.values is not None: oprot.writeFieldBegin('values', TType.LIST, 1) oprot.writeListBegin(TType.I32, len(self.values)) - for iter787 in self.values: - oprot.writeI32(iter787) + for iter801 in self.values: + oprot.writeI32(iter801) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -18500,10 +18542,10 @@ def read(self, iprot): elif fid == 8: if ftype == TType.LIST: self.processorCapabilities = [] - (_etype791, _size788) = iprot.readListBegin() - for _i792 in xrange(_size788): - _elem793 = iprot.readString() - self.processorCapabilities.append(_elem793) + (_etype805, _size802) = iprot.readListBegin() + for _i806 in xrange(_size802): + _elem807 = iprot.readString() + self.processorCapabilities.append(_elem807) iprot.readListEnd() else: iprot.skip(ftype) @@ -18549,8 +18591,8 @@ def write(self, oprot): if self.processorCapabilities is not None: oprot.writeFieldBegin('processorCapabilities', TType.LIST, 8) oprot.writeListBegin(TType.STRING, len(self.processorCapabilities)) - for iter794 in self.processorCapabilities: - oprot.writeString(iter794) + for iter808 in self.processorCapabilities: + oprot.writeString(iter808) oprot.writeListEnd() oprot.writeFieldEnd() if self.processorIdentifier is not None: @@ -18718,10 +18760,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.tblNames = [] - (_etype798, _size795) = iprot.readListBegin() - for _i799 in xrange(_size795): - _elem800 = iprot.readString() - self.tblNames.append(_elem800) + (_etype812, _size809) = iprot.readListBegin() + for _i813 in xrange(_size809): + _elem814 = iprot.readString() + self.tblNames.append(_elem814) iprot.readListEnd() else: iprot.skip(ftype) @@ -18739,10 +18781,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.processorCapabilities = [] - (_etype804, _size801) = iprot.readListBegin() - for _i805 in xrange(_size801): - _elem806 = iprot.readString() - self.processorCapabilities.append(_elem806) + (_etype818, _size815) = iprot.readListBegin() + for _i819 in xrange(_size815): + _elem820 = iprot.readString() + self.processorCapabilities.append(_elem820) iprot.readListEnd() else: iprot.skip(ftype) @@ -18768,8 +18810,8 @@ def write(self, oprot): if self.tblNames is not None: oprot.writeFieldBegin('tblNames', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.tblNames)) - for iter807 in self.tblNames: - oprot.writeString(iter807) + for iter821 in self.tblNames: + oprot.writeString(iter821) oprot.writeListEnd() oprot.writeFieldEnd() if self.capabilities is not None: @@ -18783,8 +18825,8 @@ def write(self, oprot): if self.processorCapabilities is not None: oprot.writeFieldBegin('processorCapabilities', TType.LIST, 5) oprot.writeListBegin(TType.STRING, len(self.processorCapabilities)) - for iter808 in self.processorCapabilities: - oprot.writeString(iter808) + for iter822 in self.processorCapabilities: + oprot.writeString(iter822) oprot.writeListEnd() oprot.writeFieldEnd() if self.processorIdentifier is not None: @@ -18847,11 +18889,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.tables = [] - (_etype812, _size809) = iprot.readListBegin() - for _i813 in xrange(_size809): - _elem814 = Table() - _elem814.read(iprot) - self.tables.append(_elem814) + (_etype826, _size823) = iprot.readListBegin() + for _i827 in xrange(_size823): + _elem828 = Table() + _elem828.read(iprot) + self.tables.append(_elem828) iprot.readListEnd() else: iprot.skip(ftype) @@ -18868,8 +18910,8 @@ def write(self, oprot): if self.tables is not None: oprot.writeFieldBegin('tables', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.tables)) - for iter815 in self.tables: - iter815.write(oprot) + for iter829 in self.tables: + iter829.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -18966,10 +19008,10 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.processorCapabilities = [] - (_etype819, _size816) = iprot.readListBegin() - for _i820 in xrange(_size816): - _elem821 = iprot.readString() - self.processorCapabilities.append(_elem821) + (_etype833, _size830) = iprot.readListBegin() + for _i834 in xrange(_size830): + _elem835 = iprot.readString() + self.processorCapabilities.append(_elem835) iprot.readListEnd() else: iprot.skip(ftype) @@ -19011,8 +19053,8 @@ def write(self, oprot): if self.processorCapabilities is not None: oprot.writeFieldBegin('processorCapabilities', TType.LIST, 6) oprot.writeListBegin(TType.STRING, len(self.processorCapabilities)) - for iter822 in self.processorCapabilities: - oprot.writeString(iter822) + for iter836 in self.processorCapabilities: + oprot.writeString(iter836) oprot.writeListEnd() oprot.writeFieldEnd() if self.processorIdentifier is not None: @@ -19061,20 +19103,23 @@ class ExtendedTableInfo: Attributes: - tblName - accessType - - processorCapabilities + - requiredReadCapabilities + - requiredWriteCapabilities """ thrift_spec = ( None, # 0 (1, TType.STRING, 'tblName', None, None, ), # 1 (2, TType.I32, 'accessType', None, None, ), # 2 - (3, TType.LIST, 'processorCapabilities', (TType.STRING,None), None, ), # 3 + (3, TType.LIST, 'requiredReadCapabilities', (TType.STRING,None), None, ), # 3 + (4, TType.LIST, 'requiredWriteCapabilities', (TType.STRING,None), None, ), # 4 ) - def __init__(self, tblName=None, accessType=None, processorCapabilities=None,): + def __init__(self, tblName=None, accessType=None, requiredReadCapabilities=None, requiredWriteCapabilities=None,): self.tblName = tblName self.accessType = accessType - self.processorCapabilities = processorCapabilities + self.requiredReadCapabilities = requiredReadCapabilities + self.requiredWriteCapabilities = requiredWriteCapabilities 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: @@ -19097,11 +19142,21 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: - self.processorCapabilities = [] - (_etype826, _size823) = iprot.readListBegin() - for _i827 in xrange(_size823): - _elem828 = iprot.readString() - self.processorCapabilities.append(_elem828) + self.requiredReadCapabilities = [] + (_etype840, _size837) = iprot.readListBegin() + for _i841 in xrange(_size837): + _elem842 = iprot.readString() + self.requiredReadCapabilities.append(_elem842) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.LIST: + self.requiredWriteCapabilities = [] + (_etype846, _size843) = iprot.readListBegin() + for _i847 in xrange(_size843): + _elem848 = iprot.readString() + self.requiredWriteCapabilities.append(_elem848) iprot.readListEnd() else: iprot.skip(ftype) @@ -19123,11 +19178,18 @@ def write(self, oprot): oprot.writeFieldBegin('accessType', TType.I32, 2) oprot.writeI32(self.accessType) oprot.writeFieldEnd() - if self.processorCapabilities is not None: - oprot.writeFieldBegin('processorCapabilities', TType.LIST, 3) - oprot.writeListBegin(TType.STRING, len(self.processorCapabilities)) - for iter829 in self.processorCapabilities: - oprot.writeString(iter829) + if self.requiredReadCapabilities is not None: + oprot.writeFieldBegin('requiredReadCapabilities', TType.LIST, 3) + oprot.writeListBegin(TType.STRING, len(self.requiredReadCapabilities)) + for iter849 in self.requiredReadCapabilities: + oprot.writeString(iter849) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.requiredWriteCapabilities is not None: + oprot.writeFieldBegin('requiredWriteCapabilities', TType.LIST, 4) + oprot.writeListBegin(TType.STRING, len(self.requiredWriteCapabilities)) + for iter850 in self.requiredWriteCapabilities: + oprot.writeString(iter850) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -19143,7 +19205,8 @@ def __hash__(self): value = 17 value = (value * 31) ^ hash(self.tblName) value = (value * 31) ^ hash(self.accessType) - value = (value * 31) ^ hash(self.processorCapabilities) + value = (value * 31) ^ hash(self.requiredReadCapabilities) + value = (value * 31) ^ hash(self.requiredWriteCapabilities) return value def __repr__(self): @@ -20428,44 +20491,44 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.pools = [] - (_etype833, _size830) = iprot.readListBegin() - for _i834 in xrange(_size830): - _elem835 = WMPool() - _elem835.read(iprot) - self.pools.append(_elem835) + (_etype854, _size851) = iprot.readListBegin() + for _i855 in xrange(_size851): + _elem856 = WMPool() + _elem856.read(iprot) + self.pools.append(_elem856) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.mappings = [] - (_etype839, _size836) = iprot.readListBegin() - for _i840 in xrange(_size836): - _elem841 = WMMapping() - _elem841.read(iprot) - self.mappings.append(_elem841) + (_etype860, _size857) = iprot.readListBegin() + for _i861 in xrange(_size857): + _elem862 = WMMapping() + _elem862.read(iprot) + self.mappings.append(_elem862) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.triggers = [] - (_etype845, _size842) = iprot.readListBegin() - for _i846 in xrange(_size842): - _elem847 = WMTrigger() - _elem847.read(iprot) - self.triggers.append(_elem847) + (_etype866, _size863) = iprot.readListBegin() + for _i867 in xrange(_size863): + _elem868 = WMTrigger() + _elem868.read(iprot) + self.triggers.append(_elem868) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.LIST: self.poolTriggers = [] - (_etype851, _size848) = iprot.readListBegin() - for _i852 in xrange(_size848): - _elem853 = WMPoolTrigger() - _elem853.read(iprot) - self.poolTriggers.append(_elem853) + (_etype872, _size869) = iprot.readListBegin() + for _i873 in xrange(_size869): + _elem874 = WMPoolTrigger() + _elem874.read(iprot) + self.poolTriggers.append(_elem874) iprot.readListEnd() else: iprot.skip(ftype) @@ -20486,29 +20549,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 iter854 in self.pools: - iter854.write(oprot) + for iter875 in self.pools: + iter875.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 iter855 in self.mappings: - iter855.write(oprot) + for iter876 in self.mappings: + iter876.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 iter856 in self.triggers: - iter856.write(oprot) + for iter877 in self.triggers: + iter877.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 iter857 in self.poolTriggers: - iter857.write(oprot) + for iter878 in self.poolTriggers: + iter878.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21033,11 +21096,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.resourcePlans = [] - (_etype861, _size858) = iprot.readListBegin() - for _i862 in xrange(_size858): - _elem863 = WMResourcePlan() - _elem863.read(iprot) - self.resourcePlans.append(_elem863) + (_etype882, _size879) = iprot.readListBegin() + for _i883 in xrange(_size879): + _elem884 = WMResourcePlan() + _elem884.read(iprot) + self.resourcePlans.append(_elem884) iprot.readListEnd() else: iprot.skip(ftype) @@ -21054,8 +21117,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 iter864 in self.resourcePlans: - iter864.write(oprot) + for iter885 in self.resourcePlans: + iter885.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21385,20 +21448,20 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.errors = [] - (_etype868, _size865) = iprot.readListBegin() - for _i869 in xrange(_size865): - _elem870 = iprot.readString() - self.errors.append(_elem870) + (_etype889, _size886) = iprot.readListBegin() + for _i890 in xrange(_size886): + _elem891 = iprot.readString() + self.errors.append(_elem891) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.warnings = [] - (_etype874, _size871) = iprot.readListBegin() - for _i875 in xrange(_size871): - _elem876 = iprot.readString() - self.warnings.append(_elem876) + (_etype895, _size892) = iprot.readListBegin() + for _i896 in xrange(_size892): + _elem897 = iprot.readString() + self.warnings.append(_elem897) iprot.readListEnd() else: iprot.skip(ftype) @@ -21415,15 +21478,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 iter877 in self.errors: - oprot.writeString(iter877) + for iter898 in self.errors: + oprot.writeString(iter898) oprot.writeListEnd() oprot.writeFieldEnd() if self.warnings is not None: oprot.writeFieldBegin('warnings', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.warnings)) - for iter878 in self.warnings: - oprot.writeString(iter878) + for iter899 in self.warnings: + oprot.writeString(iter899) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -22039,11 +22102,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.triggers = [] - (_etype882, _size879) = iprot.readListBegin() - for _i883 in xrange(_size879): - _elem884 = WMTrigger() - _elem884.read(iprot) - self.triggers.append(_elem884) + (_etype903, _size900) = iprot.readListBegin() + for _i904 in xrange(_size900): + _elem905 = WMTrigger() + _elem905.read(iprot) + self.triggers.append(_elem905) iprot.readListEnd() else: iprot.skip(ftype) @@ -22060,8 +22123,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 iter885 in self.triggers: - iter885.write(oprot) + for iter906 in self.triggers: + iter906.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -23271,11 +23334,11 @@ def read(self, iprot): elif fid == 4: if ftype == TType.LIST: self.cols = [] - (_etype889, _size886) = iprot.readListBegin() - for _i890 in xrange(_size886): - _elem891 = FieldSchema() - _elem891.read(iprot) - self.cols.append(_elem891) + (_etype910, _size907) = iprot.readListBegin() + for _i911 in xrange(_size907): + _elem912 = FieldSchema() + _elem912.read(iprot) + self.cols.append(_elem912) iprot.readListEnd() else: iprot.skip(ftype) @@ -23335,8 +23398,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 iter892 in self.cols: - iter892.write(oprot) + for iter913 in self.cols: + iter913.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.state is not None: @@ -23591,11 +23654,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.schemaVersions = [] - (_etype896, _size893) = iprot.readListBegin() - for _i897 in xrange(_size893): - _elem898 = SchemaVersionDescriptor() - _elem898.read(iprot) - self.schemaVersions.append(_elem898) + (_etype917, _size914) = iprot.readListBegin() + for _i918 in xrange(_size914): + _elem919 = SchemaVersionDescriptor() + _elem919.read(iprot) + self.schemaVersions.append(_elem919) iprot.readListEnd() else: iprot.skip(ftype) @@ -23612,8 +23675,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 iter899 in self.schemaVersions: - iter899.write(oprot) + for iter920 in self.schemaVersions: + iter920.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -24039,6 +24102,254 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +class CreateTableRequest: + """ + Attributes: + - table + - envContext + - primaryKeys + - foreignKeys + - uniqueConstraints + - notNullConstraints + - defaultConstraints + - checkConstraints + - processorCapabilities + - processorIdentifier + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'table', (Table, Table.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'envContext', (EnvironmentContext, EnvironmentContext.thrift_spec), None, ), # 2 + (3, TType.LIST, 'primaryKeys', (TType.STRUCT,(SQLPrimaryKey, SQLPrimaryKey.thrift_spec)), None, ), # 3 + (4, TType.LIST, 'foreignKeys', (TType.STRUCT,(SQLForeignKey, SQLForeignKey.thrift_spec)), None, ), # 4 + (5, TType.LIST, 'uniqueConstraints', (TType.STRUCT,(SQLUniqueConstraint, SQLUniqueConstraint.thrift_spec)), None, ), # 5 + (6, TType.LIST, 'notNullConstraints', (TType.STRUCT,(SQLNotNullConstraint, SQLNotNullConstraint.thrift_spec)), None, ), # 6 + (7, TType.LIST, 'defaultConstraints', (TType.STRUCT,(SQLDefaultConstraint, SQLDefaultConstraint.thrift_spec)), None, ), # 7 + (8, TType.LIST, 'checkConstraints', (TType.STRUCT,(SQLCheckConstraint, SQLCheckConstraint.thrift_spec)), None, ), # 8 + (9, TType.LIST, 'processorCapabilities', (TType.STRING,None), None, ), # 9 + (10, TType.STRING, 'processorIdentifier', None, None, ), # 10 + ) + + def __init__(self, table=None, envContext=None, primaryKeys=None, foreignKeys=None, uniqueConstraints=None, notNullConstraints=None, defaultConstraints=None, checkConstraints=None, processorCapabilities=None, processorIdentifier=None,): + self.table = table + self.envContext = envContext + self.primaryKeys = primaryKeys + self.foreignKeys = foreignKeys + self.uniqueConstraints = uniqueConstraints + self.notNullConstraints = notNullConstraints + self.defaultConstraints = defaultConstraints + self.checkConstraints = checkConstraints + 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.STRUCT: + self.table = Table() + self.table.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.envContext = EnvironmentContext() + self.envContext.read(iprot) + else: + iprot.skip(ftype) + 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) + 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) + 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) + 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) + 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) + 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) + 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) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 10: + 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('CreateTableRequest') + if self.table is not None: + oprot.writeFieldBegin('table', TType.STRUCT, 1) + self.table.write(oprot) + oprot.writeFieldEnd() + if self.envContext is not None: + oprot.writeFieldBegin('envContext', TType.STRUCT, 2) + self.envContext.write(oprot) + oprot.writeFieldEnd() + 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) + 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) + 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) + 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) + 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) + 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) + 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) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.processorIdentifier is not None: + oprot.writeFieldBegin('processorIdentifier', TType.STRING, 10) + oprot.writeString(self.processorIdentifier) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.table is None: + raise TProtocol.TProtocolException(message='Required field table is unset!') + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.table) + value = (value * 31) ^ hash(self.envContext) + value = (value * 31) ^ hash(self.primaryKeys) + value = (value * 31) ^ hash(self.foreignKeys) + value = (value * 31) ^ hash(self.uniqueConstraints) + value = (value * 31) ^ hash(self.notNullConstraints) + value = (value * 31) ^ hash(self.defaultConstraints) + value = (value * 31) ^ hash(self.checkConstraints) + 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 AlterPartitionsRequest: """ Attributes: @@ -24098,11 +24409,11 @@ def read(self, iprot): elif fid == 4: if ftype == TType.LIST: self.partitions = [] - (_etype903, _size900) = iprot.readListBegin() - for _i904 in xrange(_size900): - _elem905 = Partition() - _elem905.read(iprot) - self.partitions.append(_elem905) + (_etype973, _size970) = iprot.readListBegin() + for _i974 in xrange(_size970): + _elem975 = Partition() + _elem975.read(iprot) + self.partitions.append(_elem975) iprot.readListEnd() else: iprot.skip(ftype) @@ -24147,8 +24458,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 iter906 in self.partitions: - iter906.write(oprot) + for iter976 in self.partitions: + iter976.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.environmentContext is not None: @@ -24300,10 +24611,10 @@ def read(self, iprot): elif fid == 4: if ftype == TType.LIST: self.partVals = [] - (_etype910, _size907) = iprot.readListBegin() - for _i911 in xrange(_size907): - _elem912 = iprot.readString() - self.partVals.append(_elem912) + (_etype980, _size977) = iprot.readListBegin() + for _i981 in xrange(_size977): + _elem982 = iprot.readString() + self.partVals.append(_elem982) iprot.readListEnd() else: iprot.skip(ftype) @@ -24343,8 +24654,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 iter913 in self.partVals: - oprot.writeString(iter913) + for iter983 in self.partVals: + oprot.writeString(iter983) oprot.writeListEnd() oprot.writeFieldEnd() if self.newPart is not None: @@ -24666,10 +24977,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fieldList = [] - (_etype917, _size914) = iprot.readListBegin() - for _i918 in xrange(_size914): - _elem919 = iprot.readString() - self.fieldList.append(_elem919) + (_etype987, _size984) = iprot.readListBegin() + for _i988 in xrange(_size984): + _elem989 = iprot.readString() + self.fieldList.append(_elem989) iprot.readListEnd() else: iprot.skip(ftype) @@ -24696,8 +25007,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 iter920 in self.fieldList: - oprot.writeString(iter920) + for iter990 in self.fieldList: + oprot.writeString(iter990) oprot.writeListEnd() oprot.writeFieldEnd() if self.includeParamKeyPattern is not None: @@ -24773,10 +25084,10 @@ def read(self, iprot): elif fid == 8: if ftype == TType.LIST: self.filters = [] - (_etype924, _size921) = iprot.readListBegin() - for _i925 in xrange(_size921): - _elem926 = iprot.readString() - self.filters.append(_elem926) + (_etype994, _size991) = iprot.readListBegin() + for _i995 in xrange(_size991): + _elem996 = iprot.readString() + self.filters.append(_elem996) iprot.readListEnd() else: iprot.skip(ftype) @@ -24797,8 +25108,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 iter927 in self.filters: - oprot.writeString(iter927) + for iter997 in self.filters: + oprot.writeString(iter997) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -24851,11 +25162,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitionSpec = [] - (_etype931, _size928) = iprot.readListBegin() - for _i932 in xrange(_size928): - _elem933 = PartitionSpec() - _elem933.read(iprot) - self.partitionSpec.append(_elem933) + (_etype1001, _size998) = iprot.readListBegin() + for _i1002 in xrange(_size998): + _elem1003 = PartitionSpec() + _elem1003.read(iprot) + self.partitionSpec.append(_elem1003) iprot.readListEnd() else: iprot.skip(ftype) @@ -24872,8 +25183,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 iter934 in self.partitionSpec: - iter934.write(oprot) + for iter1004 in self.partitionSpec: + iter1004.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -24977,10 +25288,10 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.groupNames = [] - (_etype938, _size935) = iprot.readListBegin() - for _i939 in xrange(_size935): - _elem940 = iprot.readString() - self.groupNames.append(_elem940) + (_etype1008, _size1005) = iprot.readListBegin() + for _i1009 in xrange(_size1005): + _elem1010 = iprot.readString() + self.groupNames.append(_elem1010) iprot.readListEnd() else: iprot.skip(ftype) @@ -24999,10 +25310,10 @@ def read(self, iprot): elif fid == 9: if ftype == TType.LIST: self.processorCapabilities = [] - (_etype944, _size941) = iprot.readListBegin() - for _i945 in xrange(_size941): - _elem946 = iprot.readString() - self.processorCapabilities.append(_elem946) + (_etype1014, _size1011) = iprot.readListBegin() + for _i1015 in xrange(_size1011): + _elem1016 = iprot.readString() + self.processorCapabilities.append(_elem1016) iprot.readListEnd() else: iprot.skip(ftype) @@ -25044,8 +25355,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 iter947 in self.groupNames: - oprot.writeString(iter947) + for iter1017 in self.groupNames: + oprot.writeString(iter1017) oprot.writeListEnd() oprot.writeFieldEnd() if self.projectionSpec is not None: @@ -25059,8 +25370,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 iter948 in self.processorCapabilities: - oprot.writeString(iter948) + for iter1018 in self.processorCapabilities: + oprot.writeString(iter1018) 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 e7a121a424..c0442ff7c0 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 @@ -1167,6 +1167,8 @@ class Table ISSTATSCOMPLIANT = 21 COLSTATS = 22 ACCESSTYPE = 23 + REQUIREDREADCAPABILITIES = 24 + REQUIREDWRITECAPABILITIES = 25 FIELDS = { ID => {:type => ::Thrift::Types::I64, :name => 'id', :optional => true}, @@ -1191,7 +1193,9 @@ class Table WRITEID => {:type => ::Thrift::Types::I64, :name => 'writeId', :default => -1, :optional => true}, ISSTATSCOMPLIANT => {:type => ::Thrift::Types::BOOL, :name => 'isStatsCompliant', :optional => true}, COLSTATS => {:type => ::Thrift::Types::STRUCT, :name => 'colStats', :class => ::ColumnStatistics, :optional => true}, - ACCESSTYPE => {:type => ::Thrift::Types::BYTE, :name => 'accessType', :optional => true} + ACCESSTYPE => {:type => ::Thrift::Types::BYTE, :name => 'accessType', :optional => true}, + REQUIREDREADCAPABILITIES => {:type => ::Thrift::Types::LIST, :name => 'requiredReadCapabilities', :element => {:type => ::Thrift::Types::STRING}, :optional => true}, + REQUIREDWRITECAPABILITIES => {:type => ::Thrift::Types::LIST, :name => 'requiredWriteCapabilities', :element => {:type => ::Thrift::Types::STRING}, :optional => true} } def struct_fields; FIELDS; end @@ -4238,12 +4242,14 @@ class ExtendedTableInfo include ::Thrift::Struct, ::Thrift::Struct_Union TBLNAME = 1 ACCESSTYPE = 2 - PROCESSORCAPABILITIES = 3 + REQUIREDREADCAPABILITIES = 3 + REQUIREDWRITECAPABILITIES = 4 FIELDS = { TBLNAME => {:type => ::Thrift::Types::STRING, :name => 'tblName'}, ACCESSTYPE => {:type => ::Thrift::Types::I32, :name => 'accessType', :optional => true}, - PROCESSORCAPABILITIES => {:type => ::Thrift::Types::LIST, :name => 'processorCapabilities', :element => {:type => ::Thrift::Types::STRING}, :optional => true} + REQUIREDREADCAPABILITIES => {:type => ::Thrift::Types::LIST, :name => 'requiredReadCapabilities', :element => {:type => ::Thrift::Types::STRING}, :optional => true}, + REQUIREDWRITECAPABILITIES => {:type => ::Thrift::Types::LIST, :name => 'requiredWriteCapabilities', :element => {:type => ::Thrift::Types::STRING}, :optional => true} } def struct_fields; FIELDS; end @@ -5398,6 +5404,41 @@ class GetRuntimeStatsRequest ::Thrift::Struct.generate_accessors self end +class CreateTableRequest + include ::Thrift::Struct, ::Thrift::Struct_Union + TABLE = 1 + ENVCONTEXT = 2 + PRIMARYKEYS = 3 + FOREIGNKEYS = 4 + UNIQUECONSTRAINTS = 5 + NOTNULLCONSTRAINTS = 6 + DEFAULTCONSTRAINTS = 7 + CHECKCONSTRAINTS = 8 + PROCESSORCAPABILITIES = 9 + PROCESSORIDENTIFIER = 10 + + FIELDS = { + TABLE => {:type => ::Thrift::Types::STRUCT, :name => 'table', :class => ::Table}, + ENVCONTEXT => {:type => ::Thrift::Types::STRUCT, :name => 'envContext', :class => ::EnvironmentContext, :optional => true}, + PRIMARYKEYS => {:type => ::Thrift::Types::LIST, :name => 'primaryKeys', :element => {:type => ::Thrift::Types::STRUCT, :class => ::SQLPrimaryKey}, :optional => true}, + FOREIGNKEYS => {:type => ::Thrift::Types::LIST, :name => 'foreignKeys', :element => {:type => ::Thrift::Types::STRUCT, :class => ::SQLForeignKey}, :optional => true}, + UNIQUECONSTRAINTS => {:type => ::Thrift::Types::LIST, :name => 'uniqueConstraints', :element => {:type => ::Thrift::Types::STRUCT, :class => ::SQLUniqueConstraint}, :optional => true}, + NOTNULLCONSTRAINTS => {:type => ::Thrift::Types::LIST, :name => 'notNullConstraints', :element => {:type => ::Thrift::Types::STRUCT, :class => ::SQLNotNullConstraint}, :optional => true}, + DEFAULTCONSTRAINTS => {:type => ::Thrift::Types::LIST, :name => 'defaultConstraints', :element => {:type => ::Thrift::Types::STRUCT, :class => ::SQLDefaultConstraint}, :optional => true}, + CHECKCONSTRAINTS => {:type => ::Thrift::Types::LIST, :name => 'checkConstraints', :element => {:type => ::Thrift::Types::STRUCT, :class => ::SQLCheckConstraint}, :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 table is unset!') unless @table + end + + ::Thrift::Struct.generate_accessors self +end + class AlterPartitionsRequest include ::Thrift::Struct, ::Thrift::Struct_Union CATNAME = 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 b8b725bbac..3151fd82b8 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 @@ -420,6 +420,24 @@ module ThriftHiveMetastore return end + def create_table_req(request) + send_create_table_req(request) + recv_create_table_req() + end + + def send_create_table_req(request) + send_message('create_table_req', Create_table_req_args, :request => request) + end + + def recv_create_table_req() + result = receive_message(Create_table_req_result) + raise result.o1 unless result.o1.nil? + raise result.o2 unless result.o2.nil? + raise result.o3 unless result.o3.nil? + raise result.o4 unless result.o4.nil? + return + end + def drop_constraint(req) send_drop_constraint(req) recv_drop_constraint() @@ -4082,6 +4100,23 @@ module ThriftHiveMetastore write_result(result, oprot, 'create_table_with_constraints', seqid) end + def process_create_table_req(seqid, iprot, oprot) + args = read_args(iprot, Create_table_req_args) + result = Create_table_req_result.new() + begin + @handler.create_table_req(args.request) + rescue ::AlreadyExistsException => o1 + result.o1 = o1 + rescue ::InvalidObjectException => o2 + result.o2 = o2 + rescue ::MetaException => o3 + result.o3 = o3 + rescue ::NoSuchObjectException => o4 + result.o4 = o4 + end + write_result(result, oprot, 'create_table_req', seqid) + end + def process_drop_constraint(seqid, iprot, oprot) args = read_args(iprot, Drop_constraint_args) result = Drop_constraint_result.new() @@ -7443,6 +7478,44 @@ module ThriftHiveMetastore ::Thrift::Struct.generate_accessors self end + class Create_table_req_args + include ::Thrift::Struct, ::Thrift::Struct_Union + REQUEST = 1 + + FIELDS = { + REQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'request', :class => ::CreateTableRequest} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Create_table_req_result + include ::Thrift::Struct, ::Thrift::Struct_Union + O1 = 1 + O2 = 2 + O3 = 3 + O4 = 4 + + FIELDS = { + O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::AlreadyExistsException}, + O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::InvalidObjectException}, + O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::MetaException}, + O4 => {:type => ::Thrift::Types::STRUCT, :name => 'o4', :class => ::NoSuchObjectException} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + class Drop_constraint_args include ::Thrift::Struct, ::Thrift::Struct_Union REQ = 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 153f4b8fd1..ced24ba04d 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 @@ -216,7 +216,7 @@ public HiveMetaStoreClient(Configuration conf, HiveMetaHookLoader hookLoader, Bo proxyUser = System.getProperty(HADOOP_PROXY_USER); } //if HADOOP_PROXY_USER is set, create DelegationToken using real user - if(proxyUser != null) { + if (proxyUser != null) { LOG.info(HADOOP_PROXY_USER + " is set. Using delegation " + "token for HiveMetaStore connection."); try { @@ -236,8 +236,8 @@ public Void run() throws Exception { close(); } catch (Exception e) { LOG.error("Error while setting delegation token for " + proxyUser, e); - if(e instanceof MetaException) { - throw (MetaException)e; + if (e instanceof MetaException) { + throw (MetaException) e; } else { throw new MetaException(e.getMessage()); } @@ -275,7 +275,7 @@ public Void run() throws Exception { return (ThriftHiveMetastore.Iface) method.invoke(null, conf); } catch (InvocationTargetException e) { if (e.getCause() != null) { - MetaStoreUtils.logAndThrowMetaException((Exception)e.getCause()); + MetaStoreUtils.logAndThrowMetaException((Exception) e.getCause()); } MetaStoreUtils.logAndThrowMetaException(e); } catch (ClassNotFoundException @@ -288,10 +288,11 @@ public Void run() throws Exception { private boolean getIfClientFilterEnabled() { boolean isEnabled = MetastoreConf.getBoolVar(conf, ConfVars.METASTORE_CLIENT_FILTER_ENABLED); - LOG.info("HMS client filtering is " + (isEnabled?"enabled.":"disabled.")); + LOG.info("HMS client filtering is " + (isEnabled ? "enabled." : "disabled.")); return isEnabled; } + private void resolveUris() throws MetaException { String thriftUris = MetastoreConf.getVar(conf, ConfVars.THRIFT_URIS); String serviceDiscoveryMode = MetastoreConf.getVar(conf, ConfVars.THRIFT_SERVICE_DISCOVERY_MODE); @@ -303,11 +304,11 @@ private void resolveUris() throws MetaException { if (serviceDiscoveryMode == null || serviceDiscoveryMode.trim().isEmpty()) { metastoreUrisString = Arrays.asList(thriftUris.split(",")); } else if (serviceDiscoveryMode.equalsIgnoreCase("zookeeper")) { - metastoreUrisString = new ArrayList(); - // Add scheme to the bare URI we get. - for (String s : MetastoreConf.getZKConfig(conf).getServerUris()) { - metastoreUrisString.add("thrift://" + s); - } + metastoreUrisString = new ArrayList(); + // Add scheme to the bare URI we get. + for (String s : MetastoreConf.getZKConfig(conf).getServerUris()) { + metastoreUrisString.add("thrift://" + s); + } } else { throw new IllegalArgumentException("Invalid metastore dynamic service discovery mode " + serviceDiscoveryMode); @@ -419,7 +420,7 @@ public boolean isLocalMetaStore() { @Override public boolean isCompatibleWith(Configuration conf) { // Make a copy of currentMetaVars, there is a race condition that - // currentMetaVars might be changed during the execution of the method + // currentMetaVars might be changed during the execution of the method Map currentMetaVarsCopy = currentMetaVars; if (currentMetaVarsCopy == null) { return false; // recreate @@ -564,15 +565,15 @@ private void open() throws MetaException { // Create an SSL socket and connect transport = SecurityUtils.getSSLSocket(store.getHost(), store.getPort(), clientSocketTimeout, - trustStorePath, trustStorePassword ); + trustStorePath, trustStorePassword); LOG.debug("Opened an SSL connection to metastore, current connections: " + connCount.incrementAndGet()); if (LOG.isTraceEnabled()) { LOG.trace("", new LogUtils.StackTraceLogger("METASTORE SSL CONNECTION TRACE - open - " + System.identityHashCode(this))); } - } catch(IOException e) { + } catch (IOException e) { throw new IllegalArgumentException(e); - } catch(TTransportException e) { + } catch (TTransportException e) { tte = e; throw new MetaException(e.toString()); } @@ -595,7 +596,7 @@ private void open() throws MetaException { // tokenSig could be null tokenStrForm = SecurityUtils.getTokenStrForm(tokenSig); - if(tokenStrForm != null) { + if (tokenStrForm != null) { LOG.debug("HMSC::open(): Found delegation token. Creating DIGEST-based thrift connection."); // authenticate using delegation tokens via the "DIGEST" mechanism transport = authBridge.createClientTransport(null, store.getHost(), @@ -646,14 +647,14 @@ private void open() throws MetaException { } } - if (isConnected && !useSasl && MetastoreConf.getBoolVar(conf, ConfVars.EXECUTE_SET_UGI)){ + if (isConnected && !useSasl && MetastoreConf.getBoolVar(conf, ConfVars.EXECUTE_SET_UGI)) { // Call set_ugi, only in unsecure mode. try { UserGroupInformation ugi = SecurityUtils.getUGI(); client.set_ugi(ugi.getUserName(), Arrays.asList(ugi.getGroupNames())); } catch (LoginException e) { LOG.warn("Failed to do login. set_ugi() is not successful, " + - "Continuing without it.", e); + "Continuing without it.", e); } catch (IOException e) { LOG.warn("Failed to find ugi of client set_ugi() is not successful, " + "Continuing without it.", e); @@ -664,7 +665,7 @@ private void open() throws MetaException { } } catch (MetaException e) { LOG.error("Failed to connect to metastore with URI (" + store - + ") in attempt " + attempt, e); + + ") in attempt " + attempt, e); } if (isConnected) { break; @@ -681,7 +682,7 @@ private void open() throws MetaException { if (!isConnected) { throw new MetaException("Could not connect to meta store using any of the URIs provided." + - " Most recent failure: " + StringUtils.stringifyException(tte)); + " Most recent failure: " + StringUtils.stringifyException(tte)); } snapshotActiveConf(); @@ -699,7 +700,7 @@ private void snapshotActiveConf() { @Override public String getTokenStrForm() throws IOException { return tokenStrForm; - } + } @Override public void close() { @@ -886,38 +887,40 @@ public Partition appendPartition(String dbName, String tableName, List p /** * Exchange the partition between two tables - * @param partitionSpecs partitions specs of the parent partition to be exchanged - * @param destDb the db of the destination table + * + * @param partitionSpecs partitions specs of the parent partition to be exchanged + * @param destDb the db of the destination table * @param destinationTableName the destination table name * @return new partition after exchanging */ @Override public Partition exchange_partition(Map partitionSpecs, - String sourceDb, String sourceTable, String destDb, - String destinationTableName) throws TException { + String sourceDb, String sourceTable, String destDb, + String destinationTableName) throws TException { return exchange_partition(partitionSpecs, getDefaultCatalog(conf), sourceDb, sourceTable, getDefaultCatalog(conf), destDb, destinationTableName); } @Override public Partition exchange_partition(Map partitionSpecs, String sourceCat, - String sourceDb, String sourceTable, String destCat, - String destDb, String destTableName) throws TException { + String sourceDb, String sourceTable, String destCat, + String destDb, String destTableName) throws TException { return client.exchange_partition(partitionSpecs, prependCatalogToDbName(sourceCat, sourceDb, conf), sourceTable, prependCatalogToDbName(destCat, destDb, conf), destTableName); } /** * Exchange the partitions between two tables - * @param partitionSpecs partitions specs of the parent partition to be exchanged - * @param destDb the db of the destination table + * + * @param partitionSpecs partitions specs of the parent partition to be exchanged + * @param destDb the db of the destination table * @param destinationTableName the destination table name * @return new partitions after exchanging */ @Override public List exchange_partitions(Map partitionSpecs, - String sourceDb, String sourceTable, String destDb, - String destinationTableName) throws TException { + String sourceDb, String sourceTable, String destDb, + String destinationTableName) throws TException { return exchange_partitions(partitionSpecs, getDefaultCatalog(conf), sourceDb, sourceTable, getDefaultCatalog(conf), destDb, destinationTableName); } @@ -948,7 +951,8 @@ public AggrStats getAggrColStatsFor(String dbName, String tblName, List List partNames, String writeIdList) throws NoSuchObjectException, MetaException, TException { return getAggrColStatsFor(getDefaultCatalog(conf), dbName, tblName, colNames, - partNames, writeIdList); } + partNames, writeIdList); + } @Override public AggrStats getAggrColStatsFor(String catName, String dbName, String tblName, List colNames, @@ -956,7 +960,7 @@ public AggrStats getAggrColStatsFor(String catName, String dbName, String tblNam throws NoSuchObjectException, MetaException, TException { if (colNames.isEmpty() || partNames.isEmpty()) { LOG.debug("Columns is empty or partNames is empty : Short-circuiting stats eval on client side."); - return new AggrStats(new ArrayList<>(),0); // Nothing to aggregate + return new AggrStats(new ArrayList<>(), 0); // Nothing to aggregate } PartitionsStatsRequest req = new PartitionsStatsRequest(dbName, tblName, colNames, partNames); req.setCatName(catName); @@ -980,6 +984,7 @@ public void validatePartitionNameCharacters(List partVals) /** * Create a new Database + * * @param db * @throws AlreadyExistsException * @throws InvalidObjectException @@ -1001,19 +1006,41 @@ public void createDatabase(Database db) * @throws MetaException * @throws NoSuchObjectException * @throws TException - * @see org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore.Iface#create_table(org.apache.hadoop.hive.metastore.api.Table) + * @see org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore.Iface#create_table(org.apache.hadoop.hive.metastore.api.CreateTableRequest) */ @Override public void createTable(Table tbl) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, TException { - createTable(tbl, null); + CreateTableRequest request = new CreateTableRequest(tbl); + createTable(request); } public void createTable(Table tbl, EnvironmentContext envContext) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, TException { + CreateTableRequest request = new CreateTableRequest(tbl); + request.setEnvContext(envContext); + createTable(request); + } + + /** + * @param request + * @throws MetaException + * @throws NoSuchObjectException + * @throws TException + */ + @Override + public void createTable(CreateTableRequest request) throws + InvalidObjectException, MetaException, NoSuchObjectException, TException { + Table tbl = request.getTable(); if (!tbl.isSetCatName()) { tbl.setCatName(getDefaultCatalog(conf)); } + + if (processorCapabilities != null) { + request.setProcessorCapabilities(new ArrayList(Arrays.asList(processorCapabilities))); + request.setProcessorIdentifier(processorIdentifier); + } + HiveMetaHook hook = getHook(tbl); if (hook != null) { hook.preCreateTable(tbl); @@ -1021,17 +1048,16 @@ public void createTable(Table tbl, EnvironmentContext envContext) throws Already boolean success = false; try { // Subclasses can override this step (for example, for temporary tables) - create_table_with_environment_context(tbl, envContext); + client.create_table_req(request); if (hook != null) { hook.commitCreateTable(tbl); } success = true; - } - finally { + } finally { if (!success && (hook != null)) { try { hook.rollbackCreateTable(tbl); - } catch (Exception e){ + } catch (Exception e) { LOG.error("Create rollback failed with", e); } } @@ -1048,6 +1074,8 @@ public void createTableWithConstraints(Table tbl, throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, TException { + CreateTableRequest createTableRequest = new CreateTableRequest(tbl); + if (!tbl.isSetCatName()) { String defaultCat = getDefaultCatalog(conf); tbl.setCatName(defaultCat); @@ -1059,6 +1087,7 @@ public void createTableWithConstraints(Table tbl, } if (uniqueConstraints != null) { uniqueConstraints.forEach(uc -> uc.setCatName(defaultCat)); + createTableRequest.setUniqueConstraints(uniqueConstraints); } if (notNullConstraints != null) { notNullConstraints.forEach(nn -> nn.setCatName(defaultCat)); @@ -1070,15 +1099,40 @@ public void createTableWithConstraints(Table tbl, checkConstraints.forEach(cc -> cc.setCatName(defaultCat)); } } + + if (primaryKeys != null) + createTableRequest.setPrimaryKeys(primaryKeys); + + if (foreignKeys != null) + createTableRequest.setForeignKeys(foreignKeys); + + if (uniqueConstraints != null) + createTableRequest.setUniqueConstraints(uniqueConstraints); + + if (notNullConstraints != null) + createTableRequest.setNotNullConstraints(notNullConstraints); + + if (defaultConstraints != null) + createTableRequest.setDefaultConstraints(defaultConstraints); + + if (checkConstraints != null) + createTableRequest.setCheckConstraints(checkConstraints); + + if (processorCapabilities != null) { + createTableRequest.setProcessorCapabilities(new ArrayList(Arrays.asList(processorCapabilities))); + } + + if (processorIdentifier != null) { + createTableRequest.setProcessorIdentifier(processorIdentifier); + } HiveMetaHook hook = getHook(tbl); if (hook != null) { hook.preCreateTable(tbl); } boolean success = false; try { - // Subclasses can override this step (for example, for temporary tables) - client.create_table_with_constraints(tbl, primaryKeys, foreignKeys, - uniqueConstraints, notNullConstraints, defaultConstraints, checkConstraints); + // Subclasses can override this step (for example, for temporary tables + client.create_table_req(createTableRequest); if (hook != null) { hook.commitCreateTable(tbl); } @@ -1124,7 +1178,7 @@ public void addForeignKey(List foreignKeyCols) throws TException @Override public void addUniqueConstraint(List uniqueConstraintCols) throws - NoSuchObjectException, MetaException, TException { + NoSuchObjectException, MetaException, TException { if (!uniqueConstraintCols.isEmpty() && !uniqueConstraintCols.get(0).isSetCatName()) { String defaultCat = getDefaultCatalog(conf); uniqueConstraintCols.forEach(uc -> uc.setCatName(defaultCat)); @@ -1134,7 +1188,7 @@ public void addUniqueConstraint(List uniqueConstraintCols) @Override public void addNotNullConstraint(List notNullConstraintCols) throws - NoSuchObjectException, MetaException, TException { + NoSuchObjectException, MetaException, TException { if (!notNullConstraintCols.isEmpty() && !notNullConstraintCols.get(0).isSetCatName()) { String defaultCat = getDefaultCatalog(conf); notNullConstraintCols.forEach(nn -> nn.setCatName(defaultCat)); @@ -1499,7 +1553,7 @@ public void dropTable(String catName, String dbName, String tableName, boolean d boolean ignoreUnknownTable, boolean ifPurge) throws TException { //build new environmentContext with ifPurge; EnvironmentContext envContext = null; - if(ifPurge){ + if (ifPurge) { Map warehouseOptions; warehouseOptions = new HashMap<>(); warehouseOptions.put("ifPurge", "TRUE"); @@ -1513,25 +1567,18 @@ public void dropTable(String catName, String dbName, String tableName, boolean d * Drop the table and choose whether to: delete the underlying table data; * throw if the table doesn't exist; save the data in the trash. * - * @param catName catalog name - * @param dbname database name - * @param name table name - * @param deleteData - * delete the underlying data or just delete the table in metadata - * @param ignoreUnknownTab - * don't throw if the requested table doesn't exist - * @param envContext - * for communicating with thrift - * @throws MetaException - * could not drop table properly - * @throws NoSuchObjectException - * the table wasn't found - * @throws TException - * a thrift communication error occurred - * @throws UnsupportedOperationException - * dropping an index table is not allowed + * @param catName catalog name + * @param dbname database name + * @param name table name + * @param deleteData delete the underlying data or just delete the table in metadata + * @param ignoreUnknownTab don't throw if the requested table doesn't exist + * @param envContext for communicating with thrift + * @throws MetaException could not drop table properly + * @throws NoSuchObjectException the table wasn't found + * @throws TException a thrift communication error occurred + * @throws UnsupportedOperationException dropping an index table is not allowed * @see org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore.Iface#drop_table(java.lang.String, - * java.lang.String, boolean) + * java.lang.String, boolean) */ public void dropTable(String catName, String dbname, String name, boolean deleteData, boolean ignoreUnknownTab, EnvironmentContext envContext) throws MetaException, TException, @@ -1555,7 +1602,7 @@ public void dropTable(String catName, String dbname, String name, boolean delete if (hook != null) { hook.commitDropTable(tbl, deleteData || (envContext != null && "TRUE".equals(envContext.getProperties().get("ifPurge")))); } - success=true; + success = true; } catch (NoSuchObjectException e) { if (!ignoreUnknownTab) { throw e; @@ -1688,7 +1735,7 @@ public PartitionSpecProxy listPartitionSpecs(String dbName, String tableName, in public PartitionSpecProxy listPartitionSpecs(String catName, String dbName, String tableName, int maxParts) throws TException { List partitionSpecs = - client.get_partitions_pspec(prependCatalogToDbName(catName, dbName, conf), tableName, maxParts); + client.get_partitions_pspec(prependCatalogToDbName(catName, dbName, conf), tableName, maxParts); partitionSpecs = FilterUtils.filterPartitionSpecsIfEnabled(isClientFilterEnabled, filterHook, partitionSpecs); return PartitionSpecProxy.Factory.get(partitionSpecs); } @@ -1759,7 +1806,7 @@ public PartitionSpecProxy listPartitionSpecs(String catName, String dbName, Stri public List listPartitionsByFilter(String catName, String db_name, String tbl_name, String filter, int max_parts) throws TException { // TODO should we add capabilities here as well as it returns Partition objects - List parts =client.get_partitions_by_filter(prependCatalogToDbName( + List parts = client.get_partitions_by_filter(prependCatalogToDbName( catName, db_name, conf), tbl_name, filter, shrinkMaxtoShort(max_parts)); return deepCopyPartitions(FilterUtils.filterPartitionsIfEnabled(isClientFilterEnabled, filterHook, parts)); } @@ -1875,7 +1922,7 @@ public Partition getPartition(String catName, String dbName, String tblName, gpbnr.setNames(part_names); gpbnr.setGet_col_stats(getColStats); if (processorCapabilities != null) - gpbnr.setProcessorCapabilities(Arrays.asList(processorCapabilities)); + gpbnr.setProcessorCapabilities(new ArrayList(Arrays.asList(processorCapabilities))); if (processorIdentifier != null) gpbnr.setProcessorIdentifier(processorIdentifier); @@ -1936,7 +1983,7 @@ public Table getTable(String catName, String dbName, String tableName, boolean g req.setCapabilities(version); req.setGetColumnStats(getColumnStats); if (processorCapabilities != null) - req.setProcessorCapabilities(Arrays.asList(processorCapabilities)); + req.setProcessorCapabilities(new ArrayList(Arrays.asList(processorCapabilities))); if (processorIdentifier != null) req.setProcessorIdentifier(processorIdentifier); @@ -1946,7 +1993,7 @@ public Table getTable(String catName, String dbName, String tableName, boolean g @Override public Table getTable(String catName, String dbName, String tableName, - String validWriteIdList) throws TException { + String validWriteIdList) throws TException { return getTable(catName, dbName, tableName, validWriteIdList, false); } @@ -1959,7 +2006,7 @@ public Table getTable(String catName, String dbName, String tableName, String va req.setValidWriteIdList(validWriteIdList); req.setGetColumnStats(getColumnStats); if (processorCapabilities != null) - req.setProcessorCapabilities(Arrays.asList(processorCapabilities)); + req.setProcessorCapabilities(new ArrayList(Arrays.asList(processorCapabilities))); if (processorIdentifier != null) req.setProcessorIdentifier(processorIdentifier); @@ -1981,7 +2028,7 @@ public Table getTable(String catName, String dbName, String tableName, String va req.setTblNames(tableNames); req.setCapabilities(version); if (processorCapabilities != null) - req.setProcessorCapabilities(Arrays.asList(processorCapabilities)); + req.setProcessorCapabilities(new ArrayList(Arrays.asList(processorCapabilities))); List
tabs = client.get_table_objects_by_name_req(req).getTables(); return deepCopyTables(FilterUtils.filterTablesIfEnabled(isClientFilterEnabled, filterHook, tabs)); } @@ -2005,7 +2052,9 @@ public void updateCreationMetadata(String catName, String dbName, String tableNa } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public List listTableNamesByFilter(String dbName, String filter, short maxTables) throws TException { @@ -2070,7 +2119,9 @@ public Type getType(String name) throws NoSuchObjectException, MetaException, TE return FilterUtils.filterTableNamesIfEnabled(isClientFilterEnabled, filterHook, catName, dbName, tables); } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public List getTablesExt(String catName, String dbName, String tablePattern, int requestedFields, int limit) throws MetaException, TException { @@ -2081,7 +2132,7 @@ public Type getType(String name) throws NoSuchObjectException, MetaException, TE if (processorIdentifier != null) req.setProcessorIdentifier(processorIdentifier); if (processorCapabilities != null) - req.setProcessorCapabilities(Arrays.asList(processorCapabilities)); + req.setProcessorCapabilities(new ArrayList(Arrays.asList(processorCapabilities))); return client.get_tables_ext(req); } @@ -2130,7 +2181,7 @@ public Type getType(String name) throws NoSuchObjectException, MetaException, TE List tableTypes) throws TException { List tableMetas = client.get_table_meta(prependCatalogToDbName( catName, dbPatterns, conf), tablePatterns, tableTypes); - return FilterUtils.filterTableMetasIfEnabled(isClientFilterEnabled, filterHook, catName,dbPatterns, tableMetas); + return FilterUtils.filterTableMetasIfEnabled(isClientFilterEnabled, filterHook, catName, dbPatterns, tableMetas); } @Override @@ -2319,7 +2370,7 @@ public void alterDatabase(String catName, String dbName, Database newDb) throws @Override public List getForeignKeys(ForeignKeysRequest req) throws MetaException, - NoSuchObjectException, TException { + NoSuchObjectException, TException { if (!req.isSetCatName()) { req.setCatName(getDefaultCatalog(conf)); } @@ -2328,7 +2379,7 @@ public void alterDatabase(String catName, String dbName, Database newDb) throws @Override public List getUniqueConstraints(UniqueConstraintsRequest req) - throws MetaException, NoSuchObjectException, TException { + throws MetaException, NoSuchObjectException, TException { if (!req.isSetCatName()) { req.setCatName(getDefaultCatalog(conf)); } @@ -2337,7 +2388,7 @@ public void alterDatabase(String catName, String dbName, Database newDb) throws @Override public List getNotNullConstraints(NotNullConstraintsRequest req) - throws MetaException, NoSuchObjectException, TException { + throws MetaException, NoSuchObjectException, TException { if (!req.isSetCatName()) { req.setCatName(getDefaultCatalog(conf)); } @@ -2362,7 +2413,9 @@ public void alterDatabase(String catName, String dbName, Database newDb) throws return client.get_check_constraints(req).getCheckConstraints(); } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public boolean updateTableColumnStatistics(ColumnStatistics statsObj) throws TException { if (!statsObj.getStatsDesc().isSetCatName()) { @@ -2461,7 +2514,7 @@ public void flushCache() { @Override public boolean deletePartitionColumnStatistics(String dbName, String tableName, String partName, - String colName) throws TException { + String colName) throws TException { return deletePartitionColumnStatistics(getDefaultCatalog(conf), dbName, tableName, partName, colName); } @@ -2471,12 +2524,12 @@ public boolean deletePartitionColumnStatistics(String catName, String dbName, St String partName, String colName) throws TException { return client.delete_partition_column_statistics(prependCatalogToDbName(catName, dbName, conf), - tableName, partName, colName); + tableName, partName, colName); } @Override public boolean deleteTableColumnStatistics(String dbName, String tableName, String colName) - throws TException { + throws TException { return deleteTableColumnStatistics(getDefaultCatalog(conf), dbName, tableName, colName); } @@ -2496,7 +2549,7 @@ public boolean deleteTableColumnStatistics(String catName, String dbName, String public List getSchema(String catName, String db, String tableName) throws TException { EnvironmentContext envCxt = null; String addedJars = MetastoreConf.getVar(conf, ConfVars.ADDED_JARS); - if(org.apache.commons.lang.StringUtils.isNotBlank(addedJars)) { + if (org.apache.commons.lang.StringUtils.isNotBlank(addedJars)) { Map props = new HashMap<>(); props.put("hive.added.jars.path", addedJars); envCxt = new EnvironmentContext(props); @@ -2548,7 +2601,7 @@ public boolean dropPartitionByName(String dbName, String tableName, String partN boolean deleteData, EnvironmentContext envContext) throws NoSuchObjectException, MetaException, TException { return client.drop_partition_by_name_with_environment_context(dbName, tableName, partName, - deleteData, envContext); + deleteData, envContext); } private HiveMetaHook getHook(Table tbl) throws MetaException { @@ -2563,8 +2616,9 @@ private HiveMetaHook getHook(Table tbl) throws MetaException { * NoSuchObjectException if user has no access. When the db or table is filtered out, we don't need * to even fetch the partitions. Therefore this check ensures table-level security and * could improve performance when filtering partitions. + * * @param catName the catalog name - * @param dbName the database name + * @param dbName the database name * @param tblName the table name contained in the database * @throws NoSuchObjectException if the database or table is filtered out */ @@ -2584,7 +2638,7 @@ private void checkDbAndTableFilters(final String catName, final String dbName, f } @Override - public Map partitionNameToSpec(String name) throws MetaException, TException{ + public Map partitionNameToSpec(String name) throws MetaException, TException { return client.partition_name_to_spec(name); } @@ -2653,7 +2707,7 @@ protected PrincipalPrivilegeSet deepCopy(PrincipalPrivilegeSet pps) { } private List deepCopyPartitions( - Collection src, List dest) { + Collection src, List dest) { if (src == null) { return dest; } @@ -2737,7 +2791,7 @@ public GetPrincipalsInRoleResponse get_principals_in_role(GetPrincipalsInRoleReq @Override public GetRoleGrantsForPrincipalResponse get_role_grants_for_principal( - GetRoleGrantsForPrincipalRequest getRolePrincReq) throws MetaException, TException { + GetRoleGrantsForPrincipalRequest getRolePrincReq) throws MetaException, TException { return client.get_role_grants_for_principal(getRolePrincReq); } @@ -2842,7 +2896,7 @@ public PrincipalPrivilegeSet get_privilege_set(HiveObjectRef hiveObject, } public String getDelegationToken(String renewerKerberosPrincipalName) throws - MetaException, TException, IOException { + MetaException, TException, IOException { //a convenience method that makes the intended owner for the delegation //token request the current user String owner = SecurityUtils.getUser(); @@ -2851,7 +2905,7 @@ public String getDelegationToken(String renewerKerberosPrincipalName) throws @Override public String getDelegationToken(String owner, String renewerKerberosPrincipalName) throws - MetaException, TException { + MetaException, TException { // This is expected to be a no-op, so we will return null when we use local metastore. if (localMetaStore) { return null; @@ -2878,7 +2932,7 @@ public void cancelDelegationToken(String tokenStrForm) throws MetaException, TEx @Override public boolean addToken(String tokenIdentifier, String delegationToken) throws TException { - return client.add_token(tokenIdentifier, delegationToken); + return client.add_token(tokenIdentifier, delegationToken); } @Override @@ -2987,7 +3041,7 @@ private OpenTxnsResponse openTxnsIntr(String user, int numTxns, String replPolic } OpenTxnRequest rqst = new OpenTxnRequest(numTxns, user, hostname); if (replPolicy != null) { - assert srcTxnIds != null; + assert srcTxnIds != null; assert numTxns == srcTxnIds.size(); // need to set this only for replication tasks rqst.setReplPolicy(replPolicy); @@ -2995,7 +3049,7 @@ private OpenTxnsResponse openTxnsIntr(String user, int numTxns, String replPolic } else { assert srcTxnIds == null; } - if(txnType != null) { + if (txnType != null) { rqst.setTxn_type(txnType); } return client.open_txns(rqst); @@ -3025,9 +3079,9 @@ public void commitTxnWithKeyValue(long txnid, long tableId, String key, TxnAbortedException, TException { CommitTxnRequest ctr = new CommitTxnRequest(txnid); Preconditions.checkNotNull(key, "The key to commit together" - + " with the transaction can't be null"); + + " with the transaction can't be null"); Preconditions.checkNotNull(value, "The value to commit together" - + " with the transaction can't be null"); + + " with the transaction can't be null"); ctr.setKeyValue(new CommitTxnKeyValue(tableId, key, value)); client.commit_txn(ctr); @@ -3091,7 +3145,7 @@ public long allocateTableWriteId(long txnId, String dbName, String tableName) th @Override public List replAllocateTableWriteIdsBatch(String dbName, String tableName, - String replPolicy, List srcTxnToWriteIdList) throws TException { + String replPolicy, List srcTxnToWriteIdList) throws TException { AllocateTableWriteIdsRequest rqst = new AllocateTableWriteIdsRequest(dbName, tableName); rqst.setReplPolicy(replPolicy); rqst.setSrcTxnToWriteIdList(srcTxnToWriteIdList); @@ -3144,14 +3198,14 @@ public void heartbeat(long txnid, long lockid) @Override public HeartbeatTxnRangeResponse heartbeatTxnRange(long min, long max) - throws NoSuchTxnException, TxnAbortedException, TException { + throws NoSuchTxnException, TxnAbortedException, TException { HeartbeatTxnRangeRequest rqst = new HeartbeatTxnRangeRequest(min, max); return client.heartbeat_txn_range(rqst); } @Override @Deprecated - public void compact(String dbname, String tableName, String partitionName, CompactionType type) + public void compact(String dbname, String tableName, String partitionName, CompactionType type) throws TException { CompactionRequest cr = new CompactionRequest(); if (dbname == null) { @@ -3166,6 +3220,7 @@ public void compact(String dbname, String tableName, String partitionName, Comp cr.setType(type); client.compact(cr); } + @Deprecated @Override public void compact(String dbname, String tableName, String partitionName, CompactionType type, @@ -3175,7 +3230,7 @@ public void compact(String dbname, String tableName, String partitionName, Compa @Override public CompactionResponse compact2(String dbname, String tableName, String partitionName, CompactionType type, - Map tblproperties) throws TException { + Map tblproperties) throws TException { CompactionRequest cr = new CompactionRequest(); if (dbname == null) { cr.setDbname(DEFAULT_DATABASE_NAME); @@ -3190,6 +3245,7 @@ public CompactionResponse compact2(String dbname, String tableName, String parti cr.setProperties(tblproperties); return client.compact2(cr); } + @Override public ShowCompactResponse showCompactions() throws TException { return client.show_compact(new ShowCompactRequest()); @@ -3201,6 +3257,7 @@ public void addDynamicPartitions(long txnId, long writeId, String dbName, String List partNames) throws TException { client.add_dynamic_partitions(new AddDynamicPartitions(txnId, writeId, dbName, tableName, partNames)); } + @Override public void addDynamicPartitions(long txnId, long writeId, String dbName, String tableName, List partNames, DataOperationType operationType) throws TException { @@ -3220,8 +3277,7 @@ public void insertTable(Table table, boolean overwrite) throws MetaException { try { hiveMetaHook.commitInsertTable(table, overwrite); failed = false; - } - finally { + } finally { if (failed) { hiveMetaHook.rollbackInsertTable(table, overwrite); } @@ -3304,14 +3360,13 @@ public void addWriteNotificationLog(WriteNotificationLogRequest rqst) throws TEx * fixed all reentrancy bugs. * * @param client unsynchronized client - * * @return synchronized client */ public static IMetaStoreClient newSynchronizedClient( IMetaStoreClient client) { return (IMetaStoreClient) Proxy.newProxyInstance( HiveMetaStoreClient.class.getClassLoader(), - new Class [] { IMetaStoreClient.class }, + new Class[]{IMetaStoreClient.class}, new SynchronizedHandler(client)); } @@ -3323,7 +3378,7 @@ public static IMetaStoreClient newSynchronizedClient( } @Override - public synchronized Object invoke(Object proxy, Method method, Object [] args) + public synchronized Object invoke(Object proxy, Method method, Object[] args) throws Throwable { try { return method.invoke(client, args); @@ -3334,7 +3389,7 @@ public synchronized Object invoke(Object proxy, Method method, Object [] args) } @Override - public void markPartitionForEvent(String db_name, String tbl_name, Map partKVs, PartitionEventType eventType) + public void markPartitionForEvent(String db_name, String tbl_name, Map partKVs, PartitionEventType eventType) throws TException { markPartitionForEvent(getDefaultCatalog(conf), db_name, tbl_name, partKVs, eventType); } @@ -3349,7 +3404,7 @@ public void markPartitionForEvent(String catName, String db_name, String tbl_nam } @Override - public boolean isPartitionMarkedForEvent(String db_name, String tbl_name, Map partKVs, PartitionEventType eventType) + public boolean isPartitionMarkedForEvent(String db_name, String tbl_name, Map partKVs, PartitionEventType eventType) throws TException { return isPartitionMarkedForEvent(getDefaultCatalog(conf), db_name, tbl_name, partKVs, eventType); } @@ -3423,8 +3478,18 @@ public GetAllFunctionsResponse getAllFunctions() throws TException { protected void create_table_with_environment_context(Table tbl, EnvironmentContext envContext) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, TException { - client.create_table_with_environment_context(tbl, envContext); - } + CreateTableRequest request = new CreateTableRequest(tbl); + if (envContext != null) { + request.setEnvContext(envContext); + } + + if (processorCapabilities != null) { + request.setProcessorCapabilities(new ArrayList(Arrays.asList(processorCapabilities))); + request.setProcessorIdentifier(processorIdentifier); + } + + client.create_table_req(request); +} protected void drop_table_with_environment_context(String catName, String dbname, String name, boolean deleteData, EnvironmentContext envContext) throws TException { @@ -3878,7 +3943,7 @@ public void addRuntimeStat(RuntimeStat stat) throws TException { public GetPartitionsResponse getPartitionsWithSpecs(GetPartitionsRequest request) throws TException { if (processorCapabilities != null) - request.setProcessorCapabilities(Arrays.asList(processorCapabilities)); + request.setProcessorCapabilities(new ArrayList(Arrays.asList(processorCapabilities))); if (processorIdentifier != null) request.setProcessorIdentifier(processorIdentifier); return client.get_partitions_with_specs(request); diff --git standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java index aa7e8dfcbd..4561b41593 100644 --- standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java +++ standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java @@ -32,108 +32,7 @@ import org.apache.hadoop.hive.common.ValidWriteIdList; import org.apache.hadoop.hive.common.classification.RetrySemantics; import org.apache.hadoop.hive.metastore.annotation.NoReconnect; -import org.apache.hadoop.hive.metastore.api.AggrStats; -import org.apache.hadoop.hive.metastore.api.AlreadyExistsException; -import org.apache.hadoop.hive.metastore.api.CheckConstraintsRequest; -import org.apache.hadoop.hive.metastore.api.Catalog; -import org.apache.hadoop.hive.metastore.api.CmRecycleRequest; -import org.apache.hadoop.hive.metastore.api.CmRecycleResponse; -import org.apache.hadoop.hive.metastore.api.ColumnStatistics; -import org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj; -import org.apache.hadoop.hive.metastore.api.CommitTxnRequest; -import org.apache.hadoop.hive.metastore.api.CompactionResponse; -import org.apache.hadoop.hive.metastore.api.CompactionType; -import org.apache.hadoop.hive.metastore.api.ConfigValSecurityException; -import org.apache.hadoop.hive.metastore.api.CreationMetadata; -import org.apache.hadoop.hive.metastore.api.CurrentNotificationEventId; -import org.apache.hadoop.hive.metastore.api.DataOperationType; -import org.apache.hadoop.hive.metastore.api.DefaultConstraintsRequest; -import org.apache.hadoop.hive.metastore.api.Database; -import org.apache.hadoop.hive.metastore.api.EnvironmentContext; -import org.apache.hadoop.hive.metastore.api.ExtendedTableInfo; -import org.apache.hadoop.hive.metastore.api.FieldSchema; -import org.apache.hadoop.hive.metastore.api.FindSchemasByColsResp; -import org.apache.hadoop.hive.metastore.api.FindSchemasByColsRqst; -import org.apache.hadoop.hive.metastore.api.FireEventRequest; -import org.apache.hadoop.hive.metastore.api.FireEventResponse; -import org.apache.hadoop.hive.metastore.api.ForeignKeysRequest; -import org.apache.hadoop.hive.metastore.api.Function; -import org.apache.hadoop.hive.metastore.api.GetAllFunctionsResponse; -import org.apache.hadoop.hive.metastore.api.GetOpenTxnsInfoResponse; -import org.apache.hadoop.hive.metastore.api.GetPartitionsRequest; -import org.apache.hadoop.hive.metastore.api.GetPartitionsResponse; -import org.apache.hadoop.hive.metastore.api.GetPrincipalsInRoleRequest; -import org.apache.hadoop.hive.metastore.api.GetPrincipalsInRoleResponse; -import org.apache.hadoop.hive.metastore.api.GetRoleGrantsForPrincipalRequest; -import org.apache.hadoop.hive.metastore.api.GetRoleGrantsForPrincipalResponse; -import org.apache.hadoop.hive.metastore.api.GetTablesExtRequestFields; -import org.apache.hadoop.hive.metastore.api.HeartbeatTxnRangeResponse; -import org.apache.hadoop.hive.metastore.api.HiveObjectPrivilege; -import org.apache.hadoop.hive.metastore.api.HiveObjectRef; -import org.apache.hadoop.hive.metastore.api.ISchema; -import org.apache.hadoop.hive.metastore.api.InvalidInputException; -import org.apache.hadoop.hive.metastore.api.InvalidObjectException; -import org.apache.hadoop.hive.metastore.api.InvalidOperationException; -import org.apache.hadoop.hive.metastore.api.InvalidPartitionException; -import org.apache.hadoop.hive.metastore.api.LockRequest; -import org.apache.hadoop.hive.metastore.api.LockResponse; -import org.apache.hadoop.hive.metastore.api.Materialization; -import org.apache.hadoop.hive.metastore.api.MetaException; -import org.apache.hadoop.hive.metastore.api.MetadataPpdResult; -import org.apache.hadoop.hive.metastore.api.NoSuchLockException; -import org.apache.hadoop.hive.metastore.api.NoSuchObjectException; -import org.apache.hadoop.hive.metastore.api.NoSuchTxnException; -import org.apache.hadoop.hive.metastore.api.NotNullConstraintsRequest; -import org.apache.hadoop.hive.metastore.api.NotificationEvent; -import org.apache.hadoop.hive.metastore.api.NotificationEventResponse; -import org.apache.hadoop.hive.metastore.api.NotificationEventsCountRequest; -import org.apache.hadoop.hive.metastore.api.NotificationEventsCountResponse; -import org.apache.hadoop.hive.metastore.api.OpenTxnsResponse; -import org.apache.hadoop.hive.metastore.api.Partition; -import org.apache.hadoop.hive.metastore.api.PartitionEventType; -import org.apache.hadoop.hive.metastore.api.PartitionValuesRequest; -import org.apache.hadoop.hive.metastore.api.PartitionValuesResponse; -import org.apache.hadoop.hive.metastore.api.PrimaryKeysRequest; -import org.apache.hadoop.hive.metastore.api.PrincipalPrivilegeSet; -import org.apache.hadoop.hive.metastore.api.PrincipalType; -import org.apache.hadoop.hive.metastore.api.PrivilegeBag; -import org.apache.hadoop.hive.metastore.api.Role; -import org.apache.hadoop.hive.metastore.api.RuntimeStat; -import org.apache.hadoop.hive.metastore.api.SQLCheckConstraint; -import org.apache.hadoop.hive.metastore.api.SQLDefaultConstraint; -import org.apache.hadoop.hive.metastore.api.SQLForeignKey; -import org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint; -import org.apache.hadoop.hive.metastore.api.SQLPrimaryKey; -import org.apache.hadoop.hive.metastore.api.SQLUniqueConstraint; -import org.apache.hadoop.hive.metastore.api.SchemaVersion; -import org.apache.hadoop.hive.metastore.api.SchemaVersionState; -import org.apache.hadoop.hive.metastore.api.SerDeInfo; -import org.apache.hadoop.hive.metastore.api.SetPartitionsStatsRequest; -import org.apache.hadoop.hive.metastore.api.ShowCompactResponse; -import org.apache.hadoop.hive.metastore.api.ShowLocksRequest; -import org.apache.hadoop.hive.metastore.api.ShowLocksResponse; -import org.apache.hadoop.hive.metastore.api.Table; -import org.apache.hadoop.hive.metastore.api.TableMeta; -import org.apache.hadoop.hive.metastore.api.TableValidWriteIds; -import org.apache.hadoop.hive.metastore.api.TxnAbortedException; -import org.apache.hadoop.hive.metastore.api.TxnOpenException; -import org.apache.hadoop.hive.metastore.api.TxnToWriteId; -import org.apache.hadoop.hive.metastore.api.TxnType; -import org.apache.hadoop.hive.metastore.api.UniqueConstraintsRequest; -import org.apache.hadoop.hive.metastore.api.UnknownDBException; -import org.apache.hadoop.hive.metastore.api.UnknownPartitionException; -import org.apache.hadoop.hive.metastore.api.UnknownTableException; -import org.apache.hadoop.hive.metastore.api.WMFullResourcePlan; -import org.apache.hadoop.hive.metastore.api.WMMapping; -import org.apache.hadoop.hive.metastore.api.WMNullablePool; -import org.apache.hadoop.hive.metastore.api.WMNullableResourcePlan; -import org.apache.hadoop.hive.metastore.api.WMPool; -import org.apache.hadoop.hive.metastore.api.WMResourcePlan; -import org.apache.hadoop.hive.metastore.api.WMTrigger; -import org.apache.hadoop.hive.metastore.api.WMValidateResourcePlanResponse; -import org.apache.hadoop.hive.metastore.api.WriteNotificationLogRequest; -import org.apache.hadoop.hive.metastore.api.CompactionInfoStruct; -import org.apache.hadoop.hive.metastore.api.OptionalCompactionInfoStruct; +import org.apache.hadoop.hive.metastore.api.*; import org.apache.hadoop.hive.metastore.partition.spec.PartitionSpecProxy; import org.apache.hadoop.hive.metastore.utils.ObjectPair; import org.apache.thrift.TException; @@ -1672,12 +1571,24 @@ boolean isPartitionMarkedForEvent(String catName, String db_name, String tbl_nam * @throws MetaException * @throws NoSuchObjectException * @throws TException - * @see org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore.Iface#create_table(org.apache.hadoop.hive.metastore.api.Table) + * @see org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore.Iface#create_table(org.apache.hadoop.hive.metastore.api.CreateTableRequest) */ void createTable(Table tbl) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, TException; + /** + * @param request CreateTableRequest + * @throws AlreadyExistsException + * @throws InvalidObjectException + * @throws MetaException + * @throws NoSuchObjectException + * @throws TException + */ + + void createTable(CreateTableRequest request) throws AlreadyExistsException, + InvalidObjectException, MetaException, NoSuchObjectException, TException; + /** * Alter a table * @param databaseName database name diff --git standalone-metastore/metastore-common/src/main/thrift/hive_metastore.thrift standalone-metastore/metastore-common/src/main/thrift/hive_metastore.thrift index ca46a8bb3b..7e55970c0f 100644 --- standalone-metastore/metastore-common/src/main/thrift/hive_metastore.thrift +++ standalone-metastore/metastore-common/src/main/thrift/hive_metastore.thrift @@ -462,7 +462,9 @@ struct Table { 20: optional i64 writeId=-1, 21: optional bool isStatsCompliant, 22: optional ColumnStatistics colStats, // column statistics for table - 23: optional byte accessType + 23: optional byte accessType, + 24: optional list requiredReadCapabilities, + 25: optional list requiredWriteCapabilities } struct Partition { @@ -1389,9 +1391,10 @@ struct GetTablesExtRequest { // response to GetTablesExtRequest call struct ExtendedTableInfo { - 1: required string tblName, // always returned - 2: optional i32 accessType, // if AccessType set - 3: optional list processorCapabilities // if ProcessorCapabilities set + 1: required string tblName, // always returned + 2: optional i32 accessType, // if AccessType set + 3: optional list requiredReadCapabilities // capabilities required for read access + 4: optional list requiredWriteCapabilities // capabilities required for write access } // Request type for cm_recycle @@ -1725,6 +1728,19 @@ struct GetRuntimeStatsRequest { 2: required i32 maxCreateTime } +struct CreateTableRequest { + 1: required Table table, + 2: optional EnvironmentContext envContext, + 3: optional list primaryKeys, + 4: optional list foreignKeys, + 5: optional list uniqueConstraints, + 6: optional list notNullConstraints, + 7: optional list defaultConstraints, + 8: optional list checkConstraints, + 9: optional list processorCapabilities, + 10: optional string processorIdentifier +} + struct AlterPartitionsRequest { 1: optional string catName, 2: required string dbName, @@ -1947,6 +1963,9 @@ service ThriftHiveMetastore extends fb303.FacebookService throws (1:AlreadyExistsException o1, 2:InvalidObjectException o2, 3:MetaException o3, 4:NoSuchObjectException o4) + void create_table_req(1:CreateTableRequest request) throws (1:AlreadyExistsException o1, + 2:InvalidObjectException o2, 3:MetaException o3, + 4:NoSuchObjectException o4) void drop_constraint(1:DropConstraintRequest req) throws(1:NoSuchObjectException o1, 2:MetaException o3) void add_primary_key(1:AddPrimaryKeyRequest req) 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 7e97f8d9dd..b375de6e8c 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 @@ -1924,18 +1924,60 @@ private void create_table_core(final RawStore ms, final Table tbl, final EnvironmentContext envContext) throws AlreadyExistsException, MetaException, InvalidObjectException, NoSuchObjectException, InvalidInputException { - create_table_core(ms, tbl, envContext, null, null, null, null, null, null); + CreateTableRequest req = new CreateTableRequest(tbl); + req.setEnvContext(envContext); + create_table_core(ms, req); } private void create_table_core(final RawStore ms, final Table tbl, final EnvironmentContext envContext, List primaryKeys, List foreignKeys, List uniqueConstraints, List notNullConstraints, List defaultConstraints, - List checkConstraints) + List checkConstraints, + List processorCapabilities, String processorIdentifier) throws AlreadyExistsException, MetaException, InvalidObjectException, NoSuchObjectException, InvalidInputException { - + CreateTableRequest req = new CreateTableRequest(tbl); + if (envContext != null) + req.setEnvContext(envContext); + if (primaryKeys != null) + req.setPrimaryKeys(primaryKeys); + if (foreignKeys != null) + req.setForeignKeys(foreignKeys); + if (uniqueConstraints != null) + req.setUniqueConstraints(uniqueConstraints); + if (notNullConstraints != null) + req.setNotNullConstraints(notNullConstraints); + if (defaultConstraints != null) + req.setDefaultConstraints(defaultConstraints); + if (checkConstraints != null) + req.setCheckConstraints(checkConstraints); + if (processorCapabilities != null) { + req.setProcessorCapabilities(processorCapabilities); + req.setProcessorIdentifier(processorIdentifier); + } + create_table_core(ms, req); + } + + private void create_table_core(final RawStore ms, final CreateTableRequest req) + throws AlreadyExistsException, MetaException, + InvalidObjectException, NoSuchObjectException, InvalidInputException { ColumnStatistics colStats = null; + Table tbl = req.getTable(); + EnvironmentContext envContext = req.getEnvContext(); + List primaryKeys = req.getPrimaryKeys(); + List foreignKeys = req.getForeignKeys(); + List uniqueConstraints = req.getUniqueConstraints(); + List notNullConstraints = req.getNotNullConstraints(); + List defaultConstraints = req.getDefaultConstraints(); + List checkConstraints = req.getCheckConstraints(); + List processorCapabilities = req.getProcessorCapabilities(); + String processorId = req.getProcessorIdentifier(); + + if (transformer != null && !isInTest) { + tbl = transformer.transformCreateTable(tbl, processorCapabilities, processorId); + } + // If the given table has column statistics, save it here. We will update it later. // We don't want it to be part of the Table object being created, lest the create table // event will also have the col stats which we don't want. @@ -2230,6 +2272,32 @@ public void create_table_with_environment_context(final Table tbl, } } + @Override + public void create_table_req(final CreateTableRequest req) + throws AlreadyExistsException, MetaException, InvalidObjectException, + InvalidInputException { + Table tbl = req.getTable(); + startFunction("create_table_req", ": " + tbl.toString()); + boolean success = false; + Exception ex = null; + try { + create_table_core(getMS(), req); + success = true; + } catch (NoSuchObjectException e) { + LOG.warn("create_table_req got ", e); + ex = e; + throw new InvalidObjectException(e.getMessage()); + } catch (MetaException | InvalidObjectException | AlreadyExistsException | InvalidInputException e) { + ex = e; + throw e; + } catch (Exception e) { + ex = e; + throw newMetaException(e); + } finally { + endFunction("create_table_req", success, ex, tbl.getTableName()); + } + } + @Override public void create_table_with_constraints(final Table tbl, final List primaryKeys, final List foreignKeys, @@ -2243,12 +2311,15 @@ public void create_table_with_constraints(final Table tbl, boolean success = false; Exception ex = null; try { - create_table_core(getMS(), tbl, null, primaryKeys, foreignKeys, - uniqueConstraints, notNullConstraints, defaultConstraints, checkConstraints); + CreateTableRequest req = new CreateTableRequest(tbl); + req.setPrimaryKeys(primaryKeys); + req.setForeignKeys(foreignKeys); + req.setUniqueConstraints(uniqueConstraints); + req.setNotNullConstraints(notNullConstraints); + req.setDefaultConstraints(defaultConstraints); + req.setCheckConstraints(checkConstraints); + create_table_req(req); success = true; - } catch (NoSuchObjectException e) { - ex = e; - throw new InvalidObjectException(e.getMessage()); } catch (MetaException | InvalidObjectException | AlreadyExistsException | InvalidInputException e) { ex = e; @@ -2257,7 +2328,7 @@ public void create_table_with_constraints(final Table tbl, ex = e; throw newMetaException(e); } finally { - endFunction("create_table", success, ex, tbl.getTableName()); + endFunction("create_table_with_constraints", success, ex, tbl.getTableName()); } } @@ -3125,8 +3196,10 @@ private ExtendedTableInfo convertTableToExtendedTable (Table table, extTable.setAccessType(table.getAccessType()); if ((mask & GetTablesExtRequestFields.PROCESSOR_CAPABILITIES.getValue()) - == GetTablesExtRequestFields.PROCESSOR_CAPABILITIES.getValue()) - extTable.setProcessorCapabilities(processorCapabilities); + == GetTablesExtRequestFields.PROCESSOR_CAPABILITIES.getValue()) { + extTable.setRequiredReadCapabilities(table.getRequiredReadCapabilities()); + extTable.setRequiredWriteCapabilities(table.getRequiredWriteCapabilities()); + } return extTable; } @@ -3178,7 +3251,6 @@ private Table getTableInternal(String catName, String dbname, String name, throw new MetaException("Unexpected result from metadata transformer:return list size is " + ret.size()); } t = (Table)(ret.keySet().iterator().next()); - LOG.debug("Table " + t.getTableName() + " requires " + Arrays.toString((ret.get(t)).toArray())); } } 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 d33c36e5cc..1f5b7d3067 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 @@ -55,4 +55,13 @@ */ // TODO HiveMetaException or MetaException public List transformPartitions(List parts, List processorCapabilities, String processorId) throws MetaException; + + /** + * @param table A table object to be transformed prior to the creation of the table + * @param processorCapabilities A array of String capabilities received from the data processor + * @param processorId String ID used for logging purpose. + * @return Table An altered Table based on the processor capabilities + * @throws HiveMetaException + */ + public Table transformCreateTable(Table table, 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 4b543c8da9..0caeada519 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 @@ -94,6 +94,8 @@ public MetastoreDefaultTransformer(IHMSHandler handler) throws HiveMetaException int numBuckets = table.getSd().getNumBuckets(); boolean isBucketed = (numBuckets > 0) ? true : false; List generated = new ArrayList(); + List requiredReads = new ArrayList<>(); + List requiredWrites = new ArrayList<>(); LOG.info("Table " + table.getTableName() + ",#bucket=" + numBuckets + ",isBucketed:" + isBucketed + ",tableType=" + tableType + ",tableCapabilities=" + tCapabilities); @@ -113,13 +115,27 @@ public MetastoreDefaultTransformer(IHMSHandler handler) throws HiveMetaException newTable.setAccessType(ACCESSTYPE_READWRITE); } else { newTable.setAccessType(ACCESSTYPE_READONLY); + requiredWrites.add(HIVEBUCKET2); StorageDescriptor newSd = new StorageDescriptor(table.getSd()); newSd.setNumBuckets(-1); // remove bucketing info newTable.setSd(newSd); + newTable.setRequiredWriteCapabilities(requiredWrites); LOG.info("Bucketed table without HIVEBUCKET2 capability, removed bucketing info from table"); } - } else { // Unbucketed, so RW for all - newTable.setAccessType(ACCESSTYPE_READWRITE); + } else { // Unbucketed + if (processorCapabilities.contains(EXTWRITE) && processorCapabilities.contains(EXTREAD)) { + newTable.setAccessType(ACCESSTYPE_READWRITE); + } else if (processorCapabilities.contains(EXTREAD)) { + newTable.setAccessType(ACCESSTYPE_READONLY); + requiredWrites.add(EXTWRITE); + newTable.setRequiredWriteCapabilities(requiredWrites); + } else { + newTable.setAccessType(ACCESSTYPE_NONE); + requiredReads.add(EXTREAD); + requiredWrites.add(EXTWRITE); + newTable.setRequiredWriteCapabilities(requiredWrites); + newTable.setRequiredReadCapabilities(requiredReads); + } } ret.put(newTable, generated); @@ -127,18 +143,11 @@ public MetastoreDefaultTransformer(IHMSHandler handler) throws HiveMetaException case "MANAGED_TABLE": String txnal = params.get("transactional"); if (txnal == null || txnal.equalsIgnoreCase("FALSE")) { // non-ACID MANAGED table - table.setAccessType(ACCESSTYPE_READONLY); + table.setAccessType(ACCESSTYPE_READWRITE); generated.addAll(acidWriteList); } if (txnal != null && txnal.equalsIgnoreCase("TRUE")) { // ACID table - if (!(processorCapabilities.contains(CONNECTORREAD) || - processorCapabilities.contains(HIVEFULLACIDREAD) || - processorCapabilities.contains(HIVEMANAGEDINSERTREAD))) { - table.setAccessType(ACCESSTYPE_NONE); // clients have no access to ACID tables without capabilities - generated.addAll(acidList); - } - String txntype = params.get("transactional_properties"); if (txntype != null && txntype.equalsIgnoreCase("insert_only")) { // MICRO_MANAGED Tables // MGD table is insert only, not full ACID @@ -146,14 +155,21 @@ public MetastoreDefaultTransformer(IHMSHandler handler) throws HiveMetaException 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)) { table.setAccessType(ACCESSTYPE_READONLY); // clients have RO access to INSERT-ONLY ACID tables generated.addAll(insertOnlyWriteList); + table.setRequiredWriteCapabilities(insertOnlyWriteList); processorCapabilities.retainAll(getReads(insertOnlyList)); generated.addAll(processorCapabilities); + LOG.info("Processor has one of the read capabilities on insert-only, granting RO"); } else { table.setAccessType(ACCESSTYPE_NONE); // clients have NO access to INSERT-ONLY ACID tables + generated.addAll(acidList); generated.addAll(insertOnlyList); + table.setRequiredWriteCapabilities(insertOnlyWriteList); + table.setRequiredReadCapabilities(Arrays.asList(CONNECTORREAD, HIVEMANAGEDINSERTREAD)); + LOG.info("Processor has no read or write capabilities on insert-only, NO access"); } } else { // FULL ACID MANAGED TABLE if (processorCapabilities.contains(HIVEFULLACIDWRITE) || processorCapabilities.contains(CONNECTORWRITE)) { @@ -163,10 +179,13 @@ public MetastoreDefaultTransformer(IHMSHandler handler) throws HiveMetaException } else if (processorCapabilities.contains(HIVEFULLACIDREAD) || processorCapabilities.contains(CONNECTORREAD)) { 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 { table.setAccessType(ACCESSTYPE_NONE); // clients have NO access to IUD ACID tables + table.setRequiredWriteCapabilities(acidWriteList); + table.setRequiredReadCapabilities(Arrays.asList(CONNECTORREAD, HIVEFULLACIDREAD)); generated.addAll(acidList); } } @@ -179,6 +198,7 @@ public MetastoreDefaultTransformer(IHMSHandler handler) throws HiveMetaException table.setAccessType(ACCESSTYPE_READONLY); } else { table.setAccessType(ACCESSTYPE_NONE); + table.setRequiredReadCapabilities(generated); generated.add(HIVESQL); generated.add(CONNECTORREAD); } @@ -193,6 +213,7 @@ public MetastoreDefaultTransformer(IHMSHandler handler) throws HiveMetaException } else { LOG.info("Processor has no READ abilities or HIVEMQT, AccessType=None"); table.setAccessType(ACCESSTYPE_NONE); + table.setRequiredReadCapabilities(Arrays.asList(CONNECTORREAD, HIVEMQT)); generated.addAll(MQTLIST); } ret.put(table, generated); @@ -227,6 +248,8 @@ public MetastoreDefaultTransformer(IHMSHandler handler) throws HiveMetaException newTable.setSd(newSd); removedBucketing = true; newTable.setAccessType(ACCESSTYPE_READONLY); + LOG.info("Adding HIVEBUCKET2 to requiredWrites"); + requiredWrites.add(HIVEBUCKET2); LOG.info("Removed bucketing information from table"); } @@ -234,13 +257,23 @@ public MetastoreDefaultTransformer(IHMSHandler handler) throws HiveMetaException if (!removedBucketing) { LOG.info("EXTWRITE Matches, accessType=" + ACCESSTYPE_READWRITE); newTable.setAccessType(ACCESSTYPE_READWRITE); + ret.put(newTable, requiredCapabilities); + continue; } - } else if (requiredCapabilities.contains(EXTREAD) && processorCapabilities.contains(EXTREAD)) { + } + + if (requiredCapabilities.contains(EXTREAD) && processorCapabilities.contains(EXTREAD)) { LOG.debug("EXTREAD Matches, accessType=" + ACCESSTYPE_READONLY); newTable.setAccessType(ACCESSTYPE_READONLY); + requiredWrites.add(EXTWRITE); + newTable.setRequiredWriteCapabilities(requiredWrites); } else { LOG.debug("No matches, accessType=" + ACCESSTYPE_NONE); newTable.setAccessType(ACCESSTYPE_NONE); + requiredReads.add(EXTREAD); + requiredWrites.addAll(getWrites(requiredCapabilities)); + newTable.setRequiredReadCapabilities(requiredReads); + newTable.setRequiredWriteCapabilities(requiredWrites); } LOG.info("setting required to " + requiredCapabilities); @@ -250,6 +283,8 @@ public MetastoreDefaultTransformer(IHMSHandler handler) throws HiveMetaException if (processorCapabilities.size() == 0) { // processor has no capabilities LOG.info("Client has no capabilities for type " + tableType + ",accesstype is NONE"); table.setAccessType(ACCESSTYPE_NONE); + table.setRequiredReadCapabilities(getReads(requiredCapabilities)); + table.setRequiredWriteCapabilities(getWrites(requiredCapabilities)); ret.put(table, requiredCapabilities); continue; } @@ -267,6 +302,7 @@ public MetastoreDefaultTransformer(IHMSHandler handler) throws HiveMetaException LOG.info("Table is non ACID, accesstype is RO"); table.setAccessType(ACCESSTYPE_READONLY); List missing = diff(requiredCapabilities, processorCapabilities); + table.setRequiredWriteCapabilities(getWrites(missing)); ret.put(table, missing); continue; } @@ -292,8 +328,16 @@ public MetastoreDefaultTransformer(IHMSHandler handler) throws HiveMetaException ret.put(table, hintList); continue; } else if (processorCapabilities.containsAll(getReads(requiredCapabilities)) - || processorCapabilities.contains(CONNECTORREAD)) { + || processorCapabilities.contains(HIVEMANAGEDINSERTREAD)) { table.setAccessType(ACCESSTYPE_READONLY); + table.setRequiredWriteCapabilities(diff(getWrites(requiredCapabilities), getWrites(processorCapabilities))); + hintList.add(HIVEMANAGEDINSERTWRITE); + hintList.addAll(diff(getWrites(requiredCapabilities), processorCapabilities)); + ret.put(table, hintList); + continue; + } else if (processorCapabilities.contains(CONNECTORREAD)) { + table.setAccessType(ACCESSTYPE_READONLY); + table.setRequiredWriteCapabilities(diff(getWrites(requiredCapabilities), getWrites(processorCapabilities))); hintList.add(CONNECTORREAD); hintList.addAll(diff(getWrites(requiredCapabilities), processorCapabilities)); ret.put(table, hintList); @@ -301,6 +345,8 @@ public MetastoreDefaultTransformer(IHMSHandler handler) throws HiveMetaException } else { table.setAccessType(ACCESSTYPE_NONE); ret.put(table, requiredCapabilities); + table.setRequiredWriteCapabilities(diff(getWrites(requiredCapabilities), getWrites(processorCapabilities))); + table.setRequiredReadCapabilities(diff(getReads(requiredCapabilities), getReads(processorCapabilities))); continue; } } else { // MANAGED FULL ACID TABLES @@ -309,6 +355,7 @@ public MetastoreDefaultTransformer(IHMSHandler handler) throws HiveMetaException || processorCapabilities.contains(HIVEFULLACIDWRITE)) { LOG.info("Processor has all writes or atleast " + HIVEFULLACIDWRITE + ", access is RW"); table.setAccessType(ACCESSTYPE_READWRITE); // clients have RW access to ACID tables + hintList.add(HIVEFULLACIDWRITE); ret.put(table, hintList); continue; } @@ -322,12 +369,15 @@ public MetastoreDefaultTransformer(IHMSHandler handler) throws HiveMetaException } else if (processorCapabilities.contains(HIVEFULLACIDREAD) || (processorCapabilities.contains(CONNECTORREAD) )) { table.setAccessType(ACCESSTYPE_READONLY); // clients have RO access to IUD ACID tables + table.setRequiredWriteCapabilities(diff(getWrites(requiredCapabilities), getWrites(processorCapabilities))); hintList.add(CONNECTORREAD); hintList.addAll(diff(getWrites(requiredCapabilities), processorCapabilities)); ret.put(table, hintList); continue; } else { 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))); ret.put(table, requiredCapabilities); continue; } @@ -336,25 +386,20 @@ public MetastoreDefaultTransformer(IHMSHandler handler) throws HiveMetaException LOG.info("setting required to " + ret.get(table) + ",MANAGED:Access=" + table.getAccessType()); break; case "VIRTUAL_VIEW": - if (processorCapabilities.containsAll(requiredCapabilities)) { - table.setAccessType(ACCESSTYPE_READONLY); - ret.put(table, new ArrayList()); - } else { - table.setAccessType(ACCESSTYPE_NONE); - ret.put(table, requiredCapabilities); - } - break; case "MATERIALIZED_VIEW": if (processorCapabilities.containsAll(requiredCapabilities)) { table.setAccessType(ACCESSTYPE_READONLY); ret.put(table, new ArrayList()); } else { table.setAccessType(ACCESSTYPE_NONE); + table.setRequiredReadCapabilities(diff(getReads(requiredCapabilities), getReads(processorCapabilities))); ret.put(table, requiredCapabilities); } break; default: table.setAccessType(ACCESSTYPE_NONE); + table.setRequiredReadCapabilities(getReads(requiredCapabilities)); + table.setRequiredWriteCapabilities(getWrites(requiredCapabilities)); ret.put(table, requiredCapabilities); break; } @@ -391,8 +436,10 @@ public MetastoreDefaultTransformer(IHMSHandler handler) throws HiveMetaException String tableType = table.getTableType(); String tCapabilities = params.get(OBJCAPABILITIES); tableBuckets = table.getSd().getNumBuckets(); - partBuckets = partition.getSd().getNumBuckets(); - LOG.info("Number of original part buckets=" + partBuckets); + if (partition.getSd() != null) { + partBuckets = partition.getSd().getNumBuckets(); + LOG.info("Number of original part buckets=" + partBuckets); + } if (tCapabilities == null) { LOG.debug("Table " + table.getTableName() + " has no specific required capabilities"); @@ -471,6 +518,60 @@ public MetastoreDefaultTransformer(IHMSHandler handler) throws HiveMetaException return ret; } + @Override + public Table transformCreateTable(Table table, List processorCapabilities, String processorId) throws MetaException { + Table newTable = new Table(table); + LOG.info("Starting translation for CreateTable for processor " + processorId + " with " + processorCapabilities + + " on table " + newTable.getTableName()); + Map params = table.getParameters(); + if (params == null) + params = new HashMap<>(); + String tableType = newTable.getTableType(); + String txnal = null; + + if (TableType.MANAGED_TABLE.name().equals(tableType)) { + LOG.info("Table is a MANAGED_TABLE"); + txnal = params.get("transactional"); + if (txnal == null || txnal.equalsIgnoreCase("FALSE")) { // non-ACID MANAGED TABLE + LOG.info("Converting " + newTable.getTableName() + " to EXTERNAL tableType for " + processorId); + newTable.setTableType(TableType.EXTERNAL_TABLE.toString()); + params.remove("transactional"); + params.remove("transactional_properties"); + params.put("EXTERNAL", "TRUE"); + params.put("external.table.purge", "TRUE"); + params.put("TRANSLATED_TO_EXTERNAL", "TRUE"); + newTable.setParameters(params); + LOG.info("Modified table params are:" + params.toString()); + } else { // ACID table + if (processorCapabilities == null || processorCapabilities.isEmpty()) { + throw new MetaException("Processor has no capabilities, cannot create an ACID table."); + } + String txntype = params.get("transactional_properties"); + if (txntype != null && txntype.equalsIgnoreCase("insert_only")) { // MICRO_MANAGED Tables + if (processorCapabilities.contains(HIVEMANAGEDINSERTWRITE)) { + LOG.info("Processor has required capabilities to be able to create INSERT-only tables"); + return newTable; + } else { + throw new MetaException("Processor does not have capabilities to create a INSERT ACID table:" + + diff(insertOnlyWriteList, processorCapabilities)); + } + } else { // FULL-ACID table + if (processorCapabilities.contains(HIVEFULLACIDWRITE)) { + LOG.info("Processor has required capabilities to be able to create FULLACID tables."); + return newTable; + } else { + throw new MetaException("Processor does not have capabilities to create a FULL ACID table:" + + diff(acidWriteList, processorCapabilities)); + } + } + } + } else { + LOG.info("Table to be created is of type " + tableType + " but not " + TableType.MANAGED_TABLE.toString()); + } + LOG.info("Transformer returning table:" + newTable.toString()); + return newTable; + } + // 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/HiveMetaStoreClientPreCatalog.java standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClientPreCatalog.java index 4878a47b2d..ccd7af5545 100644 --- standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClientPreCatalog.java +++ standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClientPreCatalog.java @@ -769,11 +769,21 @@ public void createDatabase(Database db) @Override public void createTable(Table tbl) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, TException { - createTable(tbl, null); + CreateTableRequest request = new CreateTableRequest(tbl); + createTable(request); } public void createTable(Table tbl, EnvironmentContext envContext) throws AlreadyExistsException, + InvalidObjectException, MetaException, NoSuchObjectException, TException { + CreateTableRequest request = new CreateTableRequest(tbl); + request.setEnvContext(envContext); + createTable(request); + } + + + public void createTable(CreateTableRequest request) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, TException { + Table tbl = request.getTable(); HiveMetaHook hook = getHook(tbl); if (hook != null) { hook.preCreateTable(tbl); @@ -781,7 +791,7 @@ public void createTable(Table tbl, EnvironmentContext envContext) throws Already boolean success = false; try { // Subclasses can override this step (for example, for temporary tables) - create_table_with_environment_context(tbl, envContext); + client.create_table_req(request); if (hook != null) { hook.commitCreateTable(tbl); } diff --git standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/NonCatCallsWithCatalog.java standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/NonCatCallsWithCatalog.java index 377a550188..b5e51ae8a3 100644 --- standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/NonCatCallsWithCatalog.java +++ standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/NonCatCallsWithCatalog.java @@ -59,6 +59,7 @@ import org.apache.hadoop.hive.metastore.client.builder.SQLUniqueConstraintBuilder; import org.apache.hadoop.hive.metastore.client.builder.TableBuilder; import org.apache.hadoop.hive.metastore.conf.MetastoreConf; +import org.apache.hadoop.hive.metastore.conf.MetastoreConf.ConfVars; import org.apache.hadoop.hive.metastore.partition.spec.PartitionSpecProxy; import org.apache.thrift.TException; import org.junit.After; @@ -96,6 +97,7 @@ @Before public void setUp() throws Exception { conf = MetastoreConf.newMetastoreConf(); + MetastoreConf.setBoolVar(this.conf, ConfVars.HIVE_IN_TEST, true); MetaStoreTestUtils.setConfForStandloneMode(conf); // Get new client diff --git standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/client/TestAppendPartitions.java standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/client/TestAppendPartitions.java index 462584ac66..e2593fecdc 100644 --- standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/client/TestAppendPartitions.java +++ standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/client/TestAppendPartitions.java @@ -27,6 +27,7 @@ import org.apache.commons.lang.StringUtils; import org.apache.hadoop.fs.Path; +import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hive.metastore.IMetaStoreClient; import org.apache.hadoop.hive.metastore.MetaStoreTestUtils; import org.apache.hadoop.hive.metastore.TableType; @@ -44,6 +45,8 @@ import org.apache.hadoop.hive.metastore.client.builder.DatabaseBuilder; import org.apache.hadoop.hive.metastore.client.builder.PartitionBuilder; import org.apache.hadoop.hive.metastore.client.builder.TableBuilder; +import org.apache.hadoop.hive.metastore.conf.MetastoreConf; +import org.apache.hadoop.hive.metastore.conf.MetastoreConf.ConfVars; import org.apache.hadoop.hive.metastore.minihms.AbstractMetaStoreService; import org.apache.thrift.TException; import org.apache.thrift.transport.TTransportException; @@ -65,6 +68,7 @@ public class TestAppendPartitions extends MetaStoreClientTest { private AbstractMetaStoreService metaStore; private IMetaStoreClient client; + private Configuration conf; private static final String DB_NAME = "test_append_part_db"; private static Table tableWithPartitions; @@ -78,6 +82,8 @@ public TestAppendPartitions(String name, AbstractMetaStoreService metaStore) { @Before public void setUp() throws Exception { + conf = org.apache.hadoop.hive.metastore.conf.MetastoreConf.newMetastoreConf(); + MetastoreConf.setBoolVar(conf, ConfVars.HIVE_IN_TEST, true); // Get new client client = metaStore.getClient(); diff --git standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/client/TestDropPartitions.java standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/client/TestDropPartitions.java index 2a566e8813..91c9edac95 100644 --- standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/client/TestDropPartitions.java +++ standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/client/TestDropPartitions.java @@ -568,9 +568,14 @@ public void testDropPartitionByNameBogusCatalog() throws Exception { private Table createTable(String tableName, List partCols, Map tableParams) throws Exception { + String type = "MANAGED_TABLE"; + if (tableParams != null) + type = (tableParams.getOrDefault("EXTERNAL", "FALSE").equalsIgnoreCase("TRUE")) ? + "EXTERNAL_TABLE" : "MANAGED_TABLE"; Table table = new TableBuilder() .setDbName(DB_NAME) .setTableName(tableName) + .setType(type) .addCol("test_id", "int", "test col id") .addCol("test_value", "string", "test col value") .setPartCols(partCols) diff --git standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/client/TestTablesCreateDropAlterTruncate.java standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/client/TestTablesCreateDropAlterTruncate.java index 6c8c9435f2..08ec6c4d83 100644 --- standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/client/TestTablesCreateDropAlterTruncate.java +++ standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/client/TestTablesCreateDropAlterTruncate.java @@ -47,6 +47,7 @@ import org.apache.hadoop.hive.metastore.client.builder.PartitionBuilder; import org.apache.hadoop.hive.metastore.client.builder.TableBuilder; import org.apache.hadoop.hive.metastore.conf.MetastoreConf; +import org.apache.hadoop.hive.metastore.conf.MetastoreConf.ConfVars; import org.apache.hadoop.hive.metastore.minihms.AbstractMetaStoreService; import org.apache.thrift.TApplicationException; import org.apache.thrift.TException; @@ -102,6 +103,7 @@ public static void startMetaStores() { Map extraConf = new HashMap<>(); extraConf.put("fs.trash.checkpoint.interval", "30"); // FS_TRASH_CHECKPOINT_INTERVAL_KEY extraConf.put("fs.trash.interval", "30"); // FS_TRASH_INTERVAL_KEY (hadoop-2) + extraConf.put(ConfVars.HIVE_IN_TEST.getVarname(), "true"); startMetaStores(msConf, extraConf); }