diff --git a/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java b/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java index 3295d1dbc5..8cab20a024 100644 --- a/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java +++ b/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java @@ -464,12 +464,6 @@ private static void populateLlapDaemonVarsSet(Set llapDaemonVarsSetLocal "TTL of dump dirs before cleanup."), REPL_DUMP_METADATA_ONLY("hive.repl.dump.metadata.only", false, "Indicates whether replication dump only metadata information or data + metadata."), - REPL_DUMP_INCLUDE_ACID_TABLES("hive.repl.dump.include.acid.tables", false, - "Indicates if repl dump should include information about ACID tables. It should be \n" - + "used in conjunction with 'hive.repl.dump.metadata.only' to enable copying of \n" - + "metadata for acid tables which do not require the corresponding transaction \n" - + "semantics to be applied on target. This can be removed when ACID table \n" - + "replication is supported."), REPL_BOOTSTRAP_DUMP_OPEN_TXN_TIMEOUT("hive.repl.bootstrap.dump.open.txn.timeout", "1h", new TimeValidator(TimeUnit.HOURS), "Indicates the timeout for all transactions which are opened before triggering bootstrap REPL DUMP. " diff --git a/hcatalog/server-extensions/src/main/java/org/apache/hive/hcatalog/listener/DbNotificationListener.java b/hcatalog/server-extensions/src/main/java/org/apache/hive/hcatalog/listener/DbNotificationListener.java index 6321f9bdb7..717cc8afa8 100644 --- a/hcatalog/server-extensions/src/main/java/org/apache/hive/hcatalog/listener/DbNotificationListener.java +++ b/hcatalog/server-extensions/src/main/java/org/apache/hive/hcatalog/listener/DbNotificationListener.java @@ -23,6 +23,7 @@ import java.sql.SQLException; import java.sql.Statement; import java.util.ArrayList; +import java.util.Collections; import java.util.Iterator; import java.util.List; import java.util.concurrent.TimeUnit; @@ -75,11 +76,14 @@ import org.apache.hadoop.hive.metastore.events.AbortTxnEvent; import org.apache.hadoop.hive.metastore.events.AllocWriteIdEvent; import org.apache.hadoop.hive.metastore.events.ListenerEvent; +import org.apache.hadoop.hive.metastore.events.AcidWriteEvent; +import org.apache.hadoop.hive.metastore.messaging.AcidWriteMessage; import org.apache.hadoop.hive.metastore.messaging.EventMessage.EventType; import org.apache.hadoop.hive.metastore.messaging.MessageFactory; import org.apache.hadoop.hive.metastore.messaging.OpenTxnMessage; import org.apache.hadoop.hive.metastore.messaging.PartitionFiles; import org.apache.hadoop.hive.metastore.tools.SQLGenerator; +import org.apache.hadoop.hive.metastore.txn.TxnUtils; import org.apache.hadoop.util.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -269,10 +273,16 @@ public boolean hasNext() { public PartitionFiles next() { try { Partition p = partitionIter.next(); - List files = Lists.newArrayList(new FileIterator(p.getSd().getLocation())); + Iterator fileIterator; + //For transactional tables, the actual file copy will be done by acid write event during replay of commit txn. + if (!TxnUtils.isTransactionalTable(t)) { + List files = Lists.newArrayList(new FileIterator(p.getSd().getLocation())); + fileIterator = files.iterator(); + } else { + fileIterator = Collections.emptyIterator(); + } PartitionFiles partitionFiles = - new PartitionFiles(Warehouse.makePartName(t.getPartitionKeys(), p.getValues()), - files.iterator()); + new PartitionFiles(Warehouse.makePartName(t.getPartitionKeys(), p.getValues()), fileIterator); return partitionFiles; } catch (MetaException e) { throw new RuntimeException(e); @@ -414,10 +424,15 @@ public void onDropFunction(DropFunctionEvent fnEvent) throws MetaException { class FileChksumIterator implements Iterator { private List files; private List chksums; + private List subDirs; int i = 0; FileChksumIterator(List files, List chksums) { + this(files, chksums, null); + } + FileChksumIterator(List files, List chksums, List subDirs) { this.files = files; this.chksums = chksums; + this.subDirs = subDirs; } @Override public boolean hasNext() { @@ -428,7 +443,8 @@ public boolean hasNext() { public String next() { String result; try { - result = ReplChangeManager.encodeFileUri(files.get(i), chksums != null ? chksums.get(i) : null, null); + result = ReplChangeManager.encodeFileUri(files.get(i), chksums != null ? chksums.get(i) : null, + subDirs != null ? subDirs.get(i) : null); } catch (IOException e) { // File operations failed LOG.error("Encoding file URI failed with error " + e.getMessage()); @@ -623,6 +639,23 @@ public void onAllocWriteId(AllocWriteIdEvent allocWriteIdEvent, Connection dbCon } } + @Override + public void onAcidWrite(AcidWriteEvent acidWriteEvent, Connection dbConn, SQLGenerator sqlGenerator) + throws MetaException { + AcidWriteMessage msg = msgFactory.buildAcidWriteMessage(acidWriteEvent, + new FileChksumIterator(acidWriteEvent.getFiles(), acidWriteEvent.getChecksums(), + acidWriteEvent.getSubDirs())); + NotificationEvent event = new NotificationEvent(0, now(), EventType.ACID_WRITE.toString(), msg.toString()); + event.setMessageFormat(msgFactory.getMessageFormat()); + event.setDbName(acidWriteEvent.getDatabase()); + event.setTableName(acidWriteEvent.getTable()); + try { + addWriteNotificationLog(event, acidWriteEvent, dbConn, sqlGenerator, msg); + } catch (SQLException e) { + throw new MetaException("Unable to add write notification log " + StringUtils.stringifyException(e)); + } + } + private int now() { long millis = System.currentTimeMillis(); millis /= 1000; @@ -634,12 +667,133 @@ private int now() { return (int)millis; } + /** + * Close statement instance. + * @param stmt statement instance. + */ + private static void closeStmt(Statement stmt) { + try { + if (stmt != null && !stmt.isClosed()) { + stmt.close(); + } + } catch (SQLException e) { + LOG.warn("Failed to close statement " + e.getMessage()); + } + } + + /** + * Close the ResultSet. + * @param rs may be {@code null} + */ + private static void close(ResultSet rs) { + try { + if (rs != null && !rs.isClosed()) { + rs.close(); + } + } catch(SQLException ex) { + LOG.warn("Failed to close result set " + ex.getMessage()); + } + } + + private long getNextNLId(Statement stmt, SQLGenerator sqlGenerator, String sequence) + throws SQLException, MetaException { + String s = sqlGenerator.addForUpdateClause("select \"NEXT_VAL\" from " + + "\"SEQUENCE_TABLE\" where \"SEQUENCE_NAME\" = " + quoteString(sequence)); + LOG.debug("Going to execute query <" + s + ">"); + ResultSet rs = null; + try { + rs = stmt.executeQuery(s); + if (!rs.next()) { + throw new MetaException("Transaction database not properly configured, can't find next NL id."); + } + + long nextNLId = rs.getLong(1); + long updatedNLId = nextNLId + 1; + s = "update \"SEQUENCE_TABLE\" set \"NEXT_VAL\" = " + updatedNLId + " where \"SEQUENCE_NAME\" = " + + quoteString(sequence); + LOG.debug("Going to execute update <" + s + ">"); + stmt.executeUpdate(s); + return nextNLId; + }finally { + close(rs); + } + } + + private void addWriteNotificationLog(NotificationEvent event, AcidWriteEvent acidWriteEvent, Connection dbConn, + SQLGenerator sqlGenerator, AcidWriteMessage msg) throws MetaException, SQLException { + LOG.debug("DbNotificationListener: adding write notification log for : {}", event.getMessage()); + assert ((dbConn != null) && (sqlGenerator != null)); + + Statement stmt =null; + ResultSet rs = null; + String dbName = acidWriteEvent.getDatabase(); + String tblName = acidWriteEvent.getTable(); + String partition = acidWriteEvent.getPartition(); + String tableObj = msg.getTableObjStr(); + String partitionObj = msg.getPartitionObjStr(); + String files = ReplChangeManager.joinWithSeparator(msg.getFiles()); + + try { + stmt = dbConn.createStatement(); + if (sqlGenerator.getDbProduct() == MYSQL) { + stmt.execute("SET @@session.sql_mode=ANSI_QUOTES"); + } + + String s = sqlGenerator.addForUpdateClause("select \"WNL_FILES\", \"WNL_ID\" from" + + " \"TXN_WRITE_NOTIFICATION_LOG\" " + + "where \"WNL_DATABASE\" = " + quoteString(dbName) + + "and \"WNL_TABLE\" = " + quoteString(tblName) + " and \"WNL_PARTITION\" = " + + quoteString(partition) + " and \"WNL_TXNID\" = " + Long.toString(acidWriteEvent.getTxnId())); + LOG.debug("Going to execute query <" + s + ">"); + rs = stmt.executeQuery(s); + if (!rs.next()) { + // if rs is empty then no lock is taken and thus it can not cause deadlock. + long nextNLId = getNextNLId(stmt, sqlGenerator, + "org.apache.hadoop.hive.metastore.model.MTxnWriteNotificationLog"); + s = "insert into \"TXN_WRITE_NOTIFICATION_LOG\" (\"WNL_ID\", \"WNL_TXNID\", \"WNL_WRITEID\"," + + " \"WNL_DATABASE\", \"WNL_TABLE\"," + + " \"WNL_PARTITION\", \"WNL_TABLE_OBJ\", \"WNL_PARTITION_OBJ\", \"WNL_FILES\", \"WNL_EVENT_TIME\")" + + " values (" + nextNLId + + "," + acidWriteEvent.getTxnId() + "," + acidWriteEvent.getWriteId()+ "," + + quoteString(dbName)+ "," + quoteString(tblName)+ "," + quoteString(partition)+ "," + + quoteString(tableObj)+ "," + quoteString(partitionObj) + "," + quoteString(files)+ + "," + now() + ")"; + LOG.info("Going to execute insert <" + s + ">"); + stmt.execute(sqlGenerator.addEscapeCharacters(s)); + } else { + String existingFiles = rs.getString(1); + if (existingFiles.contains(sqlGenerator.addEscapeCharacters(files))) { + // If list of files are already present then no need to update it again. This scenario can come in case of + // retry done to the meta store for the same operation. + LOG.info("file list " + files + " already present"); + return; + } + long nlId = rs.getLong(2); + files = ReplChangeManager.joinWithSeparator(Lists.newArrayList(files, existingFiles)); + s = "update \"TXN_WRITE_NOTIFICATION_LOG\" set \"WNL_TABLE_OBJ\" = " + quoteString(tableObj) + "," + + " \"WNL_PARTITION_OBJ\" = " + quoteString(partitionObj) + "," + + " \"WNL_FILES\" = " + quoteString(files) + "," + + " \"WNL_EVENT_TIME\" = " + now() + + " where \"WNL_ID\" = " + nlId; + LOG.info("Going to execute update <" + s + ">"); + stmt.executeUpdate(sqlGenerator.addEscapeCharacters(s)); + } + } catch (SQLException e) { + LOG.warn("failed to add write notification log" + e.getMessage()); + throw e; + } finally { + closeStmt(stmt); + close(rs); + } + } + static String quoteString(String input) { return "'" + input + "'"; } private void addNotificationLog(NotificationEvent event, ListenerEvent listenerEvent, Connection dbConn, SQLGenerator sqlGenerator) throws MetaException, SQLException { + LOG.debug("DbNotificationListener: adding notification log for : {}", event.getMessage()); if ((dbConn == null) || (sqlGenerator == null)) { LOG.info("connection or sql generator is not set so executing sql via DN"); process(event, listenerEvent); @@ -669,22 +823,8 @@ private void addNotificationLog(NotificationEvent event, ListenerEvent listenerE LOG.debug("Going to execute update <" + s + ">"); stmt.executeUpdate(s); - s = sqlGenerator.addForUpdateClause("select \"NEXT_VAL\" from " + - "\"SEQUENCE_TABLE\" where \"SEQUENCE_NAME\" = " + - " 'org.apache.hadoop.hive.metastore.model.MNotificationLog'"); - LOG.debug("Going to execute query <" + s + ">"); - rs = stmt.executeQuery(s); - if (!rs.next()) { - throw new MetaException("failed to get next NEXT_VAL from SEQUENCE_TABLE"); - } - - long nextNLId = rs.getLong(1); - long updatedNLId = nextNLId + 1; - s = "update \"SEQUENCE_TABLE\" set \"NEXT_VAL\" = " + updatedNLId + " where \"SEQUENCE_NAME\" = " + - - " 'org.apache.hadoop.hive.metastore.model.MNotificationLog'"; - LOG.debug("Going to execute update <" + s + ">"); - stmt.executeUpdate(s); + long nextNLId = getNextNLId(stmt, sqlGenerator, + "org.apache.hadoop.hive.metastore.model.MNotificationLog"); List insert = new ArrayList<>(); @@ -712,20 +852,8 @@ private void addNotificationLog(NotificationEvent event, ListenerEvent listenerE LOG.warn("failed to add notification log" + e.getMessage()); throw e; } finally { - if (stmt != null && !stmt.isClosed()) { - try { - stmt.close(); - } catch (SQLException e) { - LOG.warn("Failed to close statement " + e.getMessage()); - } - } - if (rs != null && !rs.isClosed()) { - try { - rs.close(); - } catch (SQLException e) { - LOG.warn("Failed to close result set " + e.getMessage()); - } - } + closeStmt(stmt); + close(rs); } } @@ -742,12 +870,12 @@ private void process(NotificationEvent event, ListenerEvent listenerEvent) throw event.getMessage()); HMSHandler.getMSForConf(conf).addNotificationEvent(event); - // Set the DB_NOTIFICATION_EVENT_ID for future reference by other listeners. - if (event.isSetEventId()) { - listenerEvent.putParameter( - MetaStoreEventListenerConstants.DB_NOTIFICATION_EVENT_ID_KEY_NAME, - Long.toString(event.getEventId())); - } + // Set the DB_NOTIFICATION_EVENT_ID for future reference by other listeners. + if (event.isSetEventId()) { + listenerEvent.putParameter( + MetaStoreEventListenerConstants.DB_NOTIFICATION_EVENT_ID_KEY_NAME, + Long.toString(event.getEventId())); + } } private static class CleanerThread extends Thread { @@ -768,6 +896,7 @@ public void run() { while (true) { try { rs.cleanNotificationEvents(ttl); + rs.cleanWriteNotificationEvents(ttl); } catch (Exception ex) { //catching exceptions here makes sure that the thread doesn't die in case of unexpected //exceptions diff --git a/itests/hcatalog-unit/src/test/java/org/apache/hive/hcatalog/listener/DummyRawStoreFailEvent.java b/itests/hcatalog-unit/src/test/java/org/apache/hive/hcatalog/listener/DummyRawStoreFailEvent.java index 0cc0ae5771..b4754f0d64 100644 --- a/itests/hcatalog-unit/src/test/java/org/apache/hive/hcatalog/listener/DummyRawStoreFailEvent.java +++ b/itests/hcatalog-unit/src/test/java/org/apache/hive/hcatalog/listener/DummyRawStoreFailEvent.java @@ -86,6 +86,7 @@ import org.apache.hadoop.hive.metastore.api.WMMapping; import org.apache.hadoop.hive.metastore.api.WMPool; import org.apache.hadoop.hive.metastore.api.WMNullablePool; +import org.apache.hadoop.hive.metastore.api.WriteEventInfo; import org.apache.hadoop.hive.metastore.partition.spec.PartitionSpecProxy; import org.apache.hadoop.hive.metastore.utils.MetaStoreUtils.ColStatsObjWithSourceInfo; import org.apache.thrift.TException; @@ -869,6 +870,20 @@ public void cleanNotificationEvents(int olderThan) { objectStore.cleanNotificationEvents(olderThan); } + @Override + public void cleanWriteNotificationEvents(int olderThan) { + if (!shouldEventSucceed) { + //throw exception to simulate an issue with cleaner thread + throw new RuntimeException("Dummy exception while cleaning write notifications"); + } + objectStore.cleanWriteNotificationEvents(olderThan); + } + + @Override + public List getAllWriteEventInfo(long txnId, String dbName, String tableName) throws MetaException { + return objectStore.getAllWriteEventInfo(txnId, dbName, tableName); + } + @Override public CurrentNotificationEventId getCurrentNotificationEventId() { return objectStore.getCurrentNotificationEventId(); diff --git a/itests/hcatalog-unit/src/test/java/org/apache/hive/hcatalog/listener/TestDbNotificationListener.java b/itests/hcatalog-unit/src/test/java/org/apache/hive/hcatalog/listener/TestDbNotificationListener.java index eef917e9f4..82429e36a5 100644 --- a/itests/hcatalog-unit/src/test/java/org/apache/hive/hcatalog/listener/TestDbNotificationListener.java +++ b/itests/hcatalog-unit/src/test/java/org/apache/hive/hcatalog/listener/TestDbNotificationListener.java @@ -75,6 +75,7 @@ import org.apache.hadoop.hive.metastore.events.AbortTxnEvent; import org.apache.hadoop.hive.metastore.events.ListenerEvent; import org.apache.hadoop.hive.metastore.events.AllocWriteIdEvent; +import org.apache.hadoop.hive.metastore.events.AcidWriteEvent; import org.apache.hadoop.hive.metastore.messaging.AddPartitionMessage; import org.apache.hadoop.hive.metastore.messaging.AlterPartitionMessage; import org.apache.hadoop.hive.metastore.messaging.AlterTableMessage; @@ -238,6 +239,10 @@ public void onAbortTxn(AbortTxnEvent abortTxnEvent) throws MetaException { public void onAllocWriteId(AllocWriteIdEvent allocWriteIdEvent) throws MetaException { pushEventId(EventType.ALLOC_WRITE_ID, allocWriteIdEvent); } + + public void onAcidWrite(AcidWriteEvent acidWriteEvent) throws MetaException { + pushEventId(EventType.ACID_WRITE, acidWriteEvent); + } } @SuppressWarnings("rawtypes") diff --git a/itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/TestReplicationScenarios.java b/itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/TestReplicationScenarios.java index f4cdf02c97..33484bdaf3 100644 --- a/itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/TestReplicationScenarios.java +++ b/itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/TestReplicationScenarios.java @@ -2830,78 +2830,6 @@ public void testRemoveStats() throws IOException { verifyRun("SELECT max(a) from " + replDbName + ".ptned2 where b=1", new String[]{"8"}, driverMirror); } - // TODO: This test should be removed once ACID tables replication is supported. - @Test - public void testSkipTables() throws Exception { - String testName = "skipTables"; - String dbName = createDB(testName, driver); - String replDbName = dbName + "_dupe"; - - // TODO: this is wrong; this test sets up dummy txn manager and so it cannot create ACID tables. - // If I change it to use proper txn manager, the setup for some tests hangs. - // This used to work by accident, now this works due a test flag. The test needs to be fixed. - // Create table - run("CREATE TABLE " + dbName + ".acid_table (key int, value int) PARTITIONED BY (load_date date) " + - "CLUSTERED BY(key) INTO 2 BUCKETS STORED AS ORC TBLPROPERTIES ('transactional'='true')", driver); - run("CREATE TABLE " + dbName + ".mm_table (key int, value int) PARTITIONED BY (load_date date) " + - "CLUSTERED BY(key) INTO 2 BUCKETS STORED AS ORC TBLPROPERTIES ('transactional'='true'," + - " 'transactional_properties'='insert_only')", driver); - verifyIfTableExist(dbName, "acid_table", metaStoreClient); - verifyIfTableExist(dbName, "mm_table", metaStoreClient); - - // Bootstrap test - Tuple bootstrapDump = bootstrapLoadAndVerify(dbName, replDbName); - String replDumpId = bootstrapDump.lastReplId; - verifyIfTableNotExist(replDbName, "acid_table", metaStoreClientMirror); - verifyIfTableNotExist(replDbName, "mm_table", metaStoreClientMirror); - - // Test alter table - run("ALTER TABLE " + dbName + ".acid_table RENAME TO " + dbName + ".acid_table_rename", driver); - verifyIfTableExist(dbName, "acid_table_rename", metaStoreClient); - - // Dummy create table command to mark proper last repl ID after dump - run("CREATE TABLE " + dbName + ".dummy (a int)", driver); - - // Perform REPL-DUMP/LOAD - Tuple incrementalDump = incrementalLoadAndVerify(dbName, replDumpId, replDbName); - replDumpId = incrementalDump.lastReplId; - verifyIfTableNotExist(replDbName, "acid_table_rename", metaStoreClientMirror); - - // Create another table for incremental repl verification - run("CREATE TABLE " + dbName + ".acid_table_incremental (key int, value int) PARTITIONED BY (load_date date) " + - "CLUSTERED BY(key) INTO 2 BUCKETS STORED AS ORC TBLPROPERTIES ('transactional'='true')", driver); - run("CREATE TABLE " + dbName + ".mm_table_incremental (key int, value int) PARTITIONED BY (load_date date) " + - "CLUSTERED BY(key) INTO 2 BUCKETS STORED AS ORC TBLPROPERTIES ('transactional'='true'," + - " 'transactional_properties'='insert_only')", driver); - verifyIfTableExist(dbName, "acid_table_incremental", metaStoreClient); - verifyIfTableExist(dbName, "mm_table_incremental", metaStoreClient); - - // Dummy insert into command to mark proper last repl ID after dump - run("INSERT INTO " + dbName + ".dummy values(1)", driver); - - // Perform REPL-DUMP/LOAD - incrementalDump = incrementalLoadAndVerify(dbName, replDumpId, replDbName); - replDumpId = incrementalDump.lastReplId; - verifyIfTableNotExist(replDbName, "acid_table_incremental", metaStoreClientMirror); - verifyIfTableNotExist(replDbName, "mm_table_incremental", metaStoreClientMirror); - - // Test adding a constraint - run("ALTER TABLE " + dbName + ".acid_table_incremental ADD CONSTRAINT key_pk PRIMARY KEY (key) DISABLE NOVALIDATE", driver); - try { - List pks = metaStoreClient.getPrimaryKeys(new PrimaryKeysRequest(dbName, "acid_table_incremental")); - assertEquals(pks.size(), 1); - } catch (TException te) { - assertNull(te); - } - - // Dummy insert into command to mark proper last repl ID after dump - run("INSERT INTO " + dbName + ".dummy values(2)", driver); - - // Perform REPL-DUMP/LOAD - incrementalLoadAndVerify(dbName, replDumpId, replDbName); - verifyIfTableNotExist(replDbName, "acid_table_incremental", metaStoreClientMirror); - } - @Test public void testDeleteStagingDir() throws IOException { String testName = "deleteStagingDir"; diff --git a/itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/TestReplicationScenariosAcidTables.java b/itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/TestReplicationScenariosAcidTables.java index 9a2d296c05..24205cd98e 100644 --- a/itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/TestReplicationScenariosAcidTables.java +++ b/itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/TestReplicationScenariosAcidTables.java @@ -30,6 +30,7 @@ import org.apache.hadoop.hive.shims.Utils; import static org.apache.hadoop.hive.metastore.ReplChangeManager.SOURCE_OF_REPLICATION; import org.junit.rules.TestName; + import org.junit.rules.TestRule; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -45,6 +46,8 @@ import java.util.Arrays; import java.util.HashMap; import java.util.List; +import java.util.Collections; +import com.google.common.collect.Lists; /** * TestReplicationScenariosAcidTables - test replication for ACID tables @@ -58,7 +61,12 @@ protected static final Logger LOG = LoggerFactory.getLogger(TestReplicationScenarios.class); private static WarehouseInstance primary, replica, replicaNonAcid; - private String primaryDbName, replicatedDbName; + private String primaryDbName, replicatedDbName, primaryDbNameExtra; + private enum OperationType { + REPL_TEST_ACID_INSERT, REPL_TEST_ACID_INSERT_SELECT, REPL_TEST_ACID_CTAS, + REPL_TEST_ACID_INSERT_OVERWRITE, REPL_TEST_ACID_INSERT_IMPORT, REPL_TEST_ACID_INSERT_LOADLOCAL, + REPL_TEST_ACID_INSERT_UNION + } @BeforeClass public static void classLevelSetup() throws Exception { @@ -71,9 +79,13 @@ public static void classLevelSetup() throws Exception { put("fs.defaultFS", miniDFSCluster.getFileSystem().getUri().toString()); put("hive.support.concurrency", "true"); put("hive.txn.manager", "org.apache.hadoop.hive.ql.lockmgr.DbTxnManager"); - put("hive.repl.dump.include.acid.tables", "true"); put("hive.metastore.client.capability.check", "false"); put("hive.repl.bootstrap.dump.open.txn.timeout", "1s"); + put("hive.exec.dynamic.partition.mode", "nonstrict"); + put("hive.strict.checks.bucketing", "false"); + put("hive.mapred.mode", "nonstrict"); + put("mapred.input.dir.recursive", "true"); + put("hive.metastore.disallow.incompatible.col.type.changes", "false"); }}; primary = new WarehouseInstance(LOG, miniDFSCluster, overridesForHiveConf); replica = new WarehouseInstance(LOG, miniDFSCluster, overridesForHiveConf); @@ -81,7 +93,6 @@ public static void classLevelSetup() throws Exception { put("fs.defaultFS", miniDFSCluster.getFileSystem().getUri().toString()); put("hive.support.concurrency", "false"); put("hive.txn.manager", "org.apache.hadoop.hive.ql.lockmgr.DummyTxnManager"); - put("hive.repl.dump.include.acid.tables", "true"); put("hive.metastore.client.capability.check", "false"); }}; replicaNonAcid = new WarehouseInstance(LOG, miniDFSCluster, overridesForHiveConf1); @@ -100,6 +111,9 @@ public void setup() throws Throwable { replicatedDbName = "replicated_" + primaryDbName; primary.run("create database " + primaryDbName + " WITH DBPROPERTIES ( '" + SOURCE_OF_REPLICATION + "' = '1,2,3')"); + primaryDbNameExtra = primaryDbName+"_extra"; + primary.run("create database " + primaryDbNameExtra + " WITH DBPROPERTIES ( '" + + SOURCE_OF_REPLICATION + "' = '1,2,3')"); } @After @@ -107,6 +121,7 @@ public void tearDown() throws Throwable { primary.run("drop database if exists " + primaryDbName + " cascade"); replica.run("drop database if exists " + replicatedDbName + " cascade"); replicaNonAcid.run("drop database if exists " + replicatedDbName + " cascade"); + primary.run("drop database if exists " + primaryDbName + "_extra cascade"); } @Test @@ -345,4 +360,607 @@ public void testTxnEventNonAcid() throws Throwable { .run("REPL STATUS " + replicatedDbName) .verifyResult(bootStrapDump.lastReplicationId); } + + @Test + public void testInsert() throws Throwable { + String tableName = testName.getMethodName(); + String tableNameMM = testName.getMethodName() + "_MM"; + WarehouseInstance.Tuple incrementalDump; + WarehouseInstance.Tuple bootStrapDump = primary.dump(primaryDbName, null); + replica.load(replicatedDbName, bootStrapDump.dumpLocation) + .run("REPL STATUS " + replicatedDbName) + .verifyResult(bootStrapDump.lastReplicationId); + insertRecords(tableName, null, false, OperationType.REPL_TEST_ACID_INSERT); + incrementalDump = verifyLoad(tableName, null, bootStrapDump.lastReplicationId); + insertRecords(tableNameMM, null, true, OperationType.REPL_TEST_ACID_INSERT); + incrementalDump = verifyLoad(tableNameMM, null, incrementalDump.lastReplicationId); + } + + @Test + public void testDelete() throws Throwable { + String tableName = testName.getMethodName(); + WarehouseInstance.Tuple incrementalDump; + + WarehouseInstance.Tuple bootStrapDump = primary.dump(primaryDbName, null); + replica.load(replicatedDbName, bootStrapDump.dumpLocation) + .run("REPL STATUS " + replicatedDbName) + .verifyResult(bootStrapDump.lastReplicationId); + + insertRecords(tableName, null, false, OperationType.REPL_TEST_ACID_INSERT); + deleteRecords(tableName); + incrementalDump = verifyIncrementalLoad(Collections.singletonList("select count(*) from " + tableName), + Collections.singletonList(new String[] {"0"}), bootStrapDump.lastReplicationId); + } + + @Test + public void testUpdate() throws Throwable { + String tableName = testName.getMethodName(); + WarehouseInstance.Tuple incrementalDump; + + WarehouseInstance.Tuple bootStrapDump = primary.dump(primaryDbName, null); + replica.load(replicatedDbName, bootStrapDump.dumpLocation) + .run("REPL STATUS " + replicatedDbName) + .verifyResult(bootStrapDump.lastReplicationId); + + insertRecords(tableName, null, false, OperationType.REPL_TEST_ACID_INSERT); + updateRecords(tableName); + incrementalDump = verifyIncrementalLoad(Collections.singletonList("select value from " + + tableName + " order by value"), + Collections.singletonList(new String[] {"1", "100", "100", "100", "100"}), + bootStrapDump.lastReplicationId); + } + + @Test + public void testTruncate() throws Throwable { + String tableName = testName.getMethodName(); + String tableNameMM = testName.getMethodName() + "_MM"; + WarehouseInstance.Tuple incrementalDump; + + WarehouseInstance.Tuple bootStrapDump = primary.dump(primaryDbName, null); + replica.load(replicatedDbName, bootStrapDump.dumpLocation) + .run("REPL STATUS " + replicatedDbName) + .verifyResult(bootStrapDump.lastReplicationId); + + insertRecords(tableName, null, false, OperationType.REPL_TEST_ACID_INSERT); + truncateTable(tableName); + incrementalDump = verifyIncrementalLoad(Collections.singletonList("select count(*) from " + tableName), + Collections.singletonList(new String[] {"0"}), bootStrapDump.lastReplicationId); + + insertRecords(tableNameMM, null, true, OperationType.REPL_TEST_ACID_INSERT); + truncateTable(tableNameMM); + incrementalDump = verifyIncrementalLoad(Collections.singletonList("select count(*) from " + tableNameMM), + Collections.singletonList(new String[] {"0"}), bootStrapDump.lastReplicationId); + } + + @Test + public void testInsertIntoFromSelect() throws Throwable { + String tableName = testName.getMethodName(); + String tableNameMM = testName.getMethodName() + "_MM"; + String tableNameSelect = testName.getMethodName() + "_Select"; + String tableNameSelectMM = testName.getMethodName() + "_SelectMM"; + WarehouseInstance.Tuple incrementalDump; + + WarehouseInstance.Tuple bootStrapDump = primary.dump(primaryDbName, null); + replica.load(replicatedDbName, bootStrapDump.dumpLocation) + .run("REPL STATUS " + replicatedDbName) + .verifyResult(bootStrapDump.lastReplicationId); + + insertRecords(tableName, null, false, OperationType.REPL_TEST_ACID_INSERT); + insertRecords(tableName, tableNameSelect, false, OperationType.REPL_TEST_ACID_INSERT_SELECT); + incrementalDump = verifyLoad(tableName, tableNameSelect, bootStrapDump.lastReplicationId); + + insertRecords(tableNameMM, null, true, OperationType.REPL_TEST_ACID_INSERT); + insertRecords(tableNameMM, tableNameSelectMM, true, OperationType.REPL_TEST_ACID_INSERT_SELECT); + incrementalDump = verifyLoad(tableNameMM, tableNameSelectMM, incrementalDump.lastReplicationId); + } + + @Test + public void testMerge() throws Throwable { + String tableName = testName.getMethodName(); + String tableNameMerge = testName.getMethodName() + "_Merge"; + WarehouseInstance.Tuple incrementalDump; + + WarehouseInstance.Tuple bootStrapDump = primary.dump(primaryDbName, null); + replica.load(replicatedDbName, bootStrapDump.dumpLocation) + .run("REPL STATUS " + replicatedDbName) + .verifyResult(bootStrapDump.lastReplicationId); + + insertForMerge(tableName, tableNameMerge, false); + incrementalDump = verifyIncrementalLoad(Lists.newArrayList("select last_update_user from " + + tableName + " order by last_update_user", + "select ID from " + tableNameMerge + " order by ID"), + Lists.newArrayList(new String[] {"creation", "creation", "creation", "creation", "creation", + "creation", "creation", "merge_update", "merge_insert", "merge_insert"}, + new String[] {"1", "4", "7", "8", "8", "11"}), + bootStrapDump.lastReplicationId); + } + + @Test + public void testCreateAsSelect() throws Throwable { + String tableName = testName.getMethodName(); + String tableNameMM = testName.getMethodName() + "_MM"; + String tableNameCTAS = testName.getMethodName() + "_CTAS"; + String tableNameCTASMM = testName.getMethodName() + "_CTASMM"; + WarehouseInstance.Tuple incrementalDump; + + WarehouseInstance.Tuple bootStrapDump = primary.dump(primaryDbName, null); + replica.load(replicatedDbName, bootStrapDump.dumpLocation) + .run("REPL STATUS " + replicatedDbName) + .verifyResult(bootStrapDump.lastReplicationId); + + insertRecords(tableName, null, false, OperationType.REPL_TEST_ACID_INSERT); + insertRecords(tableName, tableNameCTAS, false, OperationType.REPL_TEST_ACID_CTAS); + incrementalDump = verifyLoad(tableName, tableNameCTAS, bootStrapDump.lastReplicationId); + + insertRecords(tableNameMM, null, true, OperationType.REPL_TEST_ACID_INSERT); + insertRecords(tableNameMM, tableNameCTASMM, true, OperationType.REPL_TEST_ACID_CTAS); + incrementalDump = verifyLoad(tableNameMM, tableNameCTASMM, incrementalDump.lastReplicationId); + } + + @Test + public void testImport() throws Throwable { + String tableName = testName.getMethodName(); + String tableNameMM = testName.getMethodName() + "_MM"; + String tableNameImport = testName.getMethodName() + "_Import"; + String tableNameImportMM = testName.getMethodName() + "_ImportMM"; + WarehouseInstance.Tuple incrementalDump; + + WarehouseInstance.Tuple bootStrapDump = primary.dump(primaryDbName, null); + replica.load(replicatedDbName, bootStrapDump.dumpLocation) + .run("REPL STATUS " + replicatedDbName) + .verifyResult(bootStrapDump.lastReplicationId); + + insertRecords(tableName, null, false, OperationType.REPL_TEST_ACID_INSERT); + insertRecords(tableName, tableNameImport, false, OperationType.REPL_TEST_ACID_INSERT_IMPORT); + incrementalDump = verifyLoad(tableName, tableNameImport, bootStrapDump.lastReplicationId); + + insertRecords(tableNameMM, null, true, OperationType.REPL_TEST_ACID_INSERT); + insertRecords(tableNameMM, tableNameImportMM, true, OperationType.REPL_TEST_ACID_INSERT_IMPORT); + incrementalDump = verifyLoad(tableNameMM, tableNameImportMM, incrementalDump.lastReplicationId); + } + + @Test + public void testInsertOverwrite() throws Throwable { + String tableName = testName.getMethodName(); + String tableNameOW = testName.getMethodName() +"_OW"; + String tableNameMM = testName.getMethodName() + "_MM"; + String tableNameOWMM = testName.getMethodName() +"_OWMM"; + WarehouseInstance.Tuple incrementalDump; + WarehouseInstance.Tuple bootStrapDump = primary.dump(primaryDbName, null); + replica.load(replicatedDbName, bootStrapDump.dumpLocation) + .run("REPL STATUS " + replicatedDbName) + .verifyResult(bootStrapDump.lastReplicationId); + + insertRecords(tableName, null, false, OperationType.REPL_TEST_ACID_INSERT); + insertRecords(tableName, tableNameOW, false, OperationType.REPL_TEST_ACID_INSERT_OVERWRITE); + incrementalDump = verifyLoad(tableName, tableNameOW, bootStrapDump.lastReplicationId); + + insertRecords(tableNameMM, null, true, OperationType.REPL_TEST_ACID_INSERT); + insertRecords(tableNameMM, tableNameOWMM, true, OperationType.REPL_TEST_ACID_INSERT_OVERWRITE); + incrementalDump = verifyLoad(tableNameMM, tableNameOWMM, incrementalDump.lastReplicationId); + } + + //TODO: need to check why its failing. Loading to acid table from local path is failing. + public void testLoadLocal() throws Throwable { + String tableName = testName.getMethodName(); + String tableNameLL = testName.getMethodName() +"_LL"; + String tableNameMM = testName.getMethodName() + "_MM"; + String tableNameLLMM = testName.getMethodName() +"_LLMM"; + + WarehouseInstance.Tuple incrementalDump; + WarehouseInstance.Tuple bootStrapDump = primary.dump(primaryDbName, null); + replica.load(replicatedDbName, bootStrapDump.dumpLocation) + .run("REPL STATUS " + replicatedDbName) + .verifyResult(bootStrapDump.lastReplicationId); + + insertRecords(tableName, null, false, OperationType.REPL_TEST_ACID_INSERT); + insertRecords(tableName, tableNameLL, false, OperationType.REPL_TEST_ACID_INSERT_LOADLOCAL); + incrementalDump = verifyLoad(tableName, tableNameLL, bootStrapDump.lastReplicationId); + + insertRecords(tableNameMM, null, true, OperationType.REPL_TEST_ACID_INSERT); + insertRecords(tableNameMM, tableNameLLMM, true, OperationType.REPL_TEST_ACID_INSERT_LOADLOCAL); + incrementalDump = verifyLoad(tableNameMM, tableNameLLMM, incrementalDump.lastReplicationId); + } + + @Test + public void testInsertUnion() throws Throwable { + String tableName = testName.getMethodName(); + String tableNameUnion = testName.getMethodName() +"_UNION"; + String tableNameMM = testName.getMethodName() + "_MM"; + String tableNameUnionMM = testName.getMethodName() +"_UNIONMM"; + String[] resultArray = new String[]{"1", "2", "3", "4", "5"}; + String[] resultArrayUnion = new String[]{"1", "1", "2", "2", "3", "3", "4", "4", "5", "5"}; + + WarehouseInstance.Tuple incrementalDump; + WarehouseInstance.Tuple bootStrapDump = primary.dump(primaryDbName, null); + replica.load(replicatedDbName, bootStrapDump.dumpLocation) + .run("REPL STATUS " + replicatedDbName) + .verifyResult(bootStrapDump.lastReplicationId); + + insertRecords(tableName, null, false, OperationType.REPL_TEST_ACID_INSERT); + insertRecords(tableName, tableNameUnion, false, OperationType.REPL_TEST_ACID_INSERT_UNION); + incrementalDump = verifyIncrementalLoad(Lists.newArrayList("select key from " + tableName + " order by key", + "select key from " + tableNameUnion + " order by key", + "select key from " + tableName + "_nopart" + " order by key", + "select key from " + tableNameUnion + "_nopart" + " order by key"), + Lists.newArrayList(resultArray, resultArrayUnion, resultArray, resultArrayUnion), + bootStrapDump.lastReplicationId); + + insertRecords(tableNameMM, null, true, OperationType.REPL_TEST_ACID_INSERT); + insertRecords(tableNameMM, tableNameUnionMM, true, OperationType.REPL_TEST_ACID_INSERT_UNION); + incrementalDump = verifyIncrementalLoad(Lists.newArrayList("select key from " + tableNameMM + " order by key", + "select key from " + tableNameUnionMM + " order by key", + "select key from " + tableNameMM + "_nopart" + " order by key", + "select key from " + tableNameUnionMM + "_nopart" + " order by key"), + Lists.newArrayList(resultArray, resultArrayUnion, resultArray, resultArrayUnion), + incrementalDump.lastReplicationId); + } + + @Test + public void testReplCM() throws Throwable { + String tableName = testName.getMethodName(); + String tableNameMM = testName.getMethodName() + "_MM"; + String[] result = new String[]{"5"}; + + WarehouseInstance.Tuple incrementalDump; + WarehouseInstance.Tuple bootStrapDump = primary.dump(primaryDbName, null); + replica.load(replicatedDbName, bootStrapDump.dumpLocation) + .run("REPL STATUS " + replicatedDbName) + .verifyResult(bootStrapDump.lastReplicationId); + + insertRecords(tableName, null, false, OperationType.REPL_TEST_ACID_INSERT); + incrementalDump = primary.dump(primaryDbName, bootStrapDump.lastReplicationId); + truncateTable(tableName); + replica.loadWithoutExplain(replicatedDbName, incrementalDump.dumpLocation) + .run("REPL STATUS " + replicatedDbName).verifyResult(incrementalDump.lastReplicationId); + verifyResultsInReplica(Lists.newArrayList("select count(*) from " + tableName, + "select count(*) from " + tableName + "_nopart"), + Lists.newArrayList(result, result)); + + insertRecords(tableNameMM, null, true, OperationType.REPL_TEST_ACID_INSERT); + incrementalDump = primary.dump(primaryDbName, bootStrapDump.lastReplicationId); + truncateTable(tableNameMM); + replica.loadWithoutExplain(replicatedDbName, incrementalDump.dumpLocation) + .run("REPL STATUS " + replicatedDbName).verifyResult(incrementalDump.lastReplicationId); + verifyResultsInReplica(Lists.newArrayList("select count(*) from " + tableNameMM, + "select count(*) from " + tableNameMM + "_nopart"), + Lists.newArrayList(result, result)); + } + + @Test + public void testMultiStatementTxn() throws Throwable { + String tableName = testName.getMethodName(); + String[] resultArray = new String[]{"1", "2", "3", "4", "5"}; + String tableNameMM = testName.getMethodName() + "_MM"; + String tableProperty = "'transactional'='true'"; + WarehouseInstance.Tuple incrementalDump; + WarehouseInstance.Tuple bootStrapDump = primary.dump(primaryDbName, null); + replica.load(replicatedDbName, bootStrapDump.dumpLocation) + .run("REPL STATUS " + replicatedDbName) + .verifyResult(bootStrapDump.lastReplicationId); + + insertIntoDB(primaryDbName, tableName, tableProperty, resultArray, true); + incrementalDump = verifyLoad(tableName, null, bootStrapDump.lastReplicationId); + + tableProperty = setMMtableProperty(tableProperty); + insertIntoDB(primaryDbName, tableNameMM, tableProperty, resultArray, true); + incrementalDump = verifyLoad(tableNameMM, null, incrementalDump.lastReplicationId); + } + + @Test + public void testMultiStatementTxnUpdateDelete() throws Throwable { + String tableName = testName.getMethodName(); + String[] resultArray = new String[]{"1", "2", "3", "4", "5"}; + String tableProperty = "'transactional'='true'"; + WarehouseInstance.Tuple incrementalDump; + WarehouseInstance.Tuple bootStrapDump = primary.dump(primaryDbName, null); + replica.load(replicatedDbName, bootStrapDump.dumpLocation) + .run("REPL STATUS " + replicatedDbName) + .verifyResult(bootStrapDump.lastReplicationId); + + insertIntoDB(primaryDbName, tableName, tableProperty, resultArray, true); + updateRecords(tableName); + incrementalDump = verifyIncrementalLoad(Collections.singletonList("select value from " + + tableName + " order by value"), + Collections.singletonList(new String[] {"1", "100", "100", "100", "100"}), + bootStrapDump.lastReplicationId); + + deleteRecords(tableName); + incrementalDump = verifyIncrementalLoad(Collections.singletonList("select count(*) from " + tableName), + Collections.singletonList(new String[] {"0"}), incrementalDump.lastReplicationId); + } + + @Test + public void testMultiDBTxn() throws Throwable { + String tableName = testName.getMethodName(); + String dbName1 = tableName + "_db1"; + String dbName2 = tableName + "_db2"; + String[] resultArray = new String[]{"1", "2", "3", "4", "5"}; + String tableProperty = "'transactional'='true'"; + String txnStrStart = "START TRANSACTION"; + String txnStrCommit = "COMMIT"; + + WarehouseInstance.Tuple incrementalDump; + primary.run("alter database default set dbproperties ('repl.source.for' = '1, 2, 3')"); + WarehouseInstance.Tuple bootStrapDump = primary.dump("`*`", null); + + primary.run("use " + primaryDbName) + .run("create database " + dbName1 + " WITH DBPROPERTIES ( '" + SOURCE_OF_REPLICATION + "' = '1,2,3')") + .run("create database " + dbName2 + " WITH DBPROPERTIES ( '" + SOURCE_OF_REPLICATION + "' = '1,2,3')") + .run("CREATE TABLE " + dbName1 + "." + tableName + " (key int, value int) PARTITIONED BY (load_date date) " + + "CLUSTERED BY(key) INTO 3 BUCKETS STORED AS ORC TBLPROPERTIES ( " + tableProperty + ")") + .run("use " + dbName1) + .run("SHOW TABLES LIKE '" + tableName + "'") + .verifyResult(tableName) + .run("CREATE TABLE " + dbName2 + "." + tableName + " (key int, value int) PARTITIONED BY (load_date date) " + + "CLUSTERED BY(key) INTO 3 BUCKETS STORED AS ORC TBLPROPERTIES ( " + tableProperty + ")") + .run("use " + dbName2) + .run("SHOW TABLES LIKE '" + tableName + "'") + .verifyResult(tableName) + .run(txnStrStart) + .run("INSERT INTO " + dbName2 + "." + tableName + " partition (load_date='2016-03-02') VALUES (5, 5)") + .run("INSERT INTO " + dbName1 + "." + tableName + " partition (load_date='2016-03-01') VALUES (1, 1)") + .run("INSERT INTO " + dbName1 + "." + tableName + " partition (load_date='2016-03-01') VALUES (2, 2)") + .run("INSERT INTO " + dbName2 + "." + tableName + " partition (load_date='2016-03-01') VALUES (2, 2)") + .run("INSERT INTO " + dbName2 + "." + tableName + " partition (load_date='2016-03-02') VALUES (3, 3)") + .run("INSERT INTO " + dbName1 + "." + tableName + " partition (load_date='2016-03-02') VALUES (3, 3)") + .run("INSERT INTO " + dbName1 + "." + tableName + " partition (load_date='2016-03-03') VALUES (4, 4)") + .run("INSERT INTO " + dbName1 + "." + tableName + " partition (load_date='2016-03-02') VALUES (5, 5)") + .run("INSERT INTO " + dbName2 + "." + tableName + " partition (load_date='2016-03-01') VALUES (1, 1)") + .run("INSERT INTO " + dbName2 + "." + tableName + " partition (load_date='2016-03-03') VALUES (4, 4)") + .run("select key from " + dbName2 + "." + tableName + " order by key") + .verifyResults(resultArray) + .run("select key from " + dbName1 + "." + tableName + " order by key") + .verifyResults(resultArray) + .run(txnStrCommit); + + incrementalDump = primary.dump("`*`", bootStrapDump.lastReplicationId); + + // Due to the limitation that we can only have one instance of Persistence Manager Factory in a JVM + // we are not able to create multiple embedded derby instances for two different MetaStore instances. + primary.run("drop database " + primaryDbName + " cascade"); + primary.run("drop database " + dbName1 + " cascade"); + primary.run("drop database " + dbName2 + " cascade"); + //End of additional steps + + replica.loadWithoutExplain("", bootStrapDump.dumpLocation) + .run("REPL STATUS default") + .verifyResult(bootStrapDump.lastReplicationId); + + replica.loadWithoutExplain("", incrementalDump.dumpLocation) + .run("REPL STATUS " + dbName1) + .run("select key from " + dbName1 + "." + tableName + " order by key") + .verifyResults(resultArray) + .run("select key from " + dbName2 + "." + tableName + " order by key") + .verifyResults(resultArray); + + replica.run("drop database " + primaryDbName + " cascade"); + replica.run("drop database " + dbName1 + " cascade"); + replica.run("drop database " + dbName2 + " cascade"); + } + + private void verifyResultsInReplica(List selectStmtList, List expectedValues) throws Throwable { + for (int idx = 0; idx < selectStmtList.size(); idx++) { + replica.run("use " + replicatedDbName) + .run(selectStmtList.get(idx)) + .verifyResults(expectedValues.get(idx)); + } + } + + private WarehouseInstance.Tuple verifyIncrementalLoad(List selectStmtList, + List expectedValues, String lastReplId) throws Throwable { + WarehouseInstance.Tuple incrementalDump = primary.dump(primaryDbName, lastReplId); + replica.loadWithoutExplain(replicatedDbName, incrementalDump.dumpLocation) + .run("REPL STATUS " + replicatedDbName).verifyResult(incrementalDump.lastReplicationId); + verifyResultsInReplica(selectStmtList, expectedValues); + + replica.loadWithoutExplain(replicatedDbName, incrementalDump.dumpLocation) + .run("REPL STATUS " + replicatedDbName).verifyResult(incrementalDump.lastReplicationId); + verifyResultsInReplica(selectStmtList, expectedValues); + return incrementalDump; + } + + private void deleteRecords(String tableName) throws Throwable { + primary.run("use " + primaryDbName) + .run("delete from " + tableName) + .run("select count(*) from " + tableName) + .verifyResult("0"); + } + + private void updateRecords(String tableName) throws Throwable { + primary.run("use " + primaryDbName) + .run("update " + tableName + " set value = 100 where key >= 2") + .run("select value from " + tableName + " order by value") + .verifyResults(new String[] {"1", "100", "100", "100", "100"}); + } + + private void truncateTable(String tableName) throws Throwable { + primary.run("use " + primaryDbName) + .run("truncate table " + tableName) + .run("select count(*) from " + tableName) + .verifyResult("0") + .run("truncate table " + tableName + "_nopart") + .run("select count(*) from " + tableName + "_nopart") + .verifyResult("0"); + } + + private WarehouseInstance.Tuple verifyLoad(String tableName, String tableNameOp, String lastReplId) throws Throwable { + String[] resultArray = new String[]{"1", "2", "3", "4", "5"}; + if (tableNameOp == null) { + return verifyIncrementalLoad(Lists.newArrayList("select key from " + tableName + " order by key", + "select key from " + tableName + "_nopart order by key"), + Lists.newArrayList(resultArray, resultArray), lastReplId); + } + return verifyIncrementalLoad(Lists.newArrayList("select key from " + tableName + " order by key", + "select key from " + tableNameOp + " order by key", + "select key from " + tableName + "_nopart" + " order by key", + "select key from " + tableNameOp + "_nopart" + " order by key"), + Lists.newArrayList(resultArray, resultArray, resultArray, resultArray), lastReplId); + } + + private void insertIntoDB(String dbName, String tableName, String tableProperty, String[] resultArray, boolean isTxn) + throws Throwable { + String txnStrStart = "START TRANSACTION"; + String txnStrCommit = "COMMIT"; + if (!isTxn) { + txnStrStart = "use " + dbName; //dummy + txnStrCommit = "use " + dbName; //dummy + } + primary.run("use " + dbName); + primary.run("CREATE TABLE " + tableName + " (key int, value int) PARTITIONED BY (load_date date) " + + "CLUSTERED BY(key) INTO 3 BUCKETS STORED AS ORC TBLPROPERTIES ( " + tableProperty + ")") + .run("SHOW TABLES LIKE '" + tableName + "'") + .verifyResult(tableName) + .run("CREATE TABLE " + tableName + "_nopart (key int, value int) " + + "CLUSTERED BY(key) INTO 3 BUCKETS STORED AS ORC TBLPROPERTIES ( " + tableProperty + ")") + .run("SHOW TABLES LIKE '" + tableName + "_nopart'") + .run("ALTER TABLE " + tableName + " ADD PARTITION (load_date='2016-03-03')") + .run(txnStrStart) + .run("INSERT INTO " + tableName + " partition (load_date='2016-03-01') VALUES (1, 1)") + .run("INSERT INTO " + tableName + " partition (load_date='2016-03-01') VALUES (2, 2)") + .run("INSERT INTO " + tableName + " partition (load_date='2016-03-02') VALUES (3, 3)") + .run("INSERT INTO " + tableName + " partition (load_date='2016-03-03') VALUES (4, 4)") + .run("INSERT INTO " + tableName + " partition (load_date='2016-03-02') VALUES (5, 5)") + .run("select key from " + tableName + " order by key") + .verifyResults(resultArray) + .run("INSERT INTO " + tableName + "_nopart (key, value) select key, value from " + tableName) + .run("select key from " + tableName + "_nopart" + " order by key") + .verifyResults(resultArray) + .run(txnStrCommit); + } + + private void insertIntoDB(String dbName, String tableName, String tableProperty, String[] resultArray) + throws Throwable { + insertIntoDB(dbName, tableName, tableProperty, resultArray, false); + } + + private void insertRecords(String tableName, String tableNameOp, boolean isMMTable, + OperationType opType) throws Throwable { + String[] resultArray = new String[]{"1", "2", "3", "4", "5"}; + String tableProperty = "'transactional'='true'"; + if (isMMTable) { + tableProperty = setMMtableProperty(tableProperty); + } + primary.run("use " + primaryDbName); + + switch (opType) { + case REPL_TEST_ACID_INSERT: + insertIntoDB(primaryDbName, tableName, tableProperty, resultArray); + insertIntoDB(primaryDbNameExtra, tableName, tableProperty, resultArray); + return; + case REPL_TEST_ACID_INSERT_OVERWRITE: + primary.run("CREATE TABLE " + tableNameOp + " (key int, value int) PARTITIONED BY (load_date date) " + + "CLUSTERED BY(key) INTO 3 BUCKETS STORED AS ORC TBLPROPERTIES ( "+ tableProperty + " )") + .run("INSERT INTO " + tableNameOp + " partition (load_date='2016-03-01') VALUES (2, 2)") + .run("INSERT INTO " + tableNameOp + " partition (load_date='2016-03-01') VALUES (10, 12)") + .run("INSERT INTO " + tableNameOp + " partition (load_date='2016-03-02') VALUES (11, 1)") + .run("select key from " + tableNameOp + " order by key") + .verifyResults(new String[]{"2", "10", "11"}) + .run("insert overwrite table " + tableNameOp + " select * from " + tableName) + .run("CREATE TABLE " + tableNameOp + "_nopart (key int, value int) " + + "CLUSTERED BY(key) INTO 3 BUCKETS STORED AS ORC TBLPROPERTIES ( "+ tableProperty + " )") + .run("INSERT INTO " + tableNameOp + "_nopart VALUES (2, 2)") + .run("INSERT INTO " + tableNameOp + "_nopart VALUES (10, 12)") + .run("INSERT INTO " + tableNameOp + "_nopart VALUES (11, 1)") + .run("select key from " + tableNameOp + "_nopart" + " order by key") + .verifyResults(new String[]{"2", "10", "11"}) + .run("insert overwrite table " + tableNameOp + "_nopart select * from " + tableName + "_nopart") + .run("select key from " + tableNameOp + "_nopart" + " order by key"); + break; + case REPL_TEST_ACID_INSERT_SELECT: + primary.run("CREATE TABLE " + tableNameOp + " (key int, value int) PARTITIONED BY (load_date date) " + + "CLUSTERED BY(key) INTO 3 BUCKETS STORED AS ORC TBLPROPERTIES ( " + tableProperty + " )") + .run("insert into " + tableNameOp + " partition (load_date) select * from " + tableName) + .run("CREATE TABLE " + tableNameOp + "_nopart (key int, value int) " + + "CLUSTERED BY(key) INTO 3 BUCKETS STORED AS ORC TBLPROPERTIES ( " + tableProperty + " )") + .run("insert into " + tableNameOp + "_nopart select * from " + tableName + "_nopart"); + break; + case REPL_TEST_ACID_INSERT_IMPORT: + String path = "hdfs:///tmp/" + primaryDbName + "/"; + String exportPath = "'" + path + tableName + "/'"; + String exportPathNoPart = "'" + path + tableName + "_nopart/'"; + primary.run("export table " + tableName + " to " + exportPath) + .run("import table " + tableNameOp + " from " + exportPath) + .run("export table " + tableName + "_nopart to " + exportPathNoPart) + .run("import table " + tableNameOp + "_nopart from " + exportPathNoPart); + break; + case REPL_TEST_ACID_CTAS: + primary.run("create table " + tableNameOp + " as select * from " + tableName) + .run("create table " + tableNameOp + "_nopart as select * from " + tableName + "_nopart"); + break; + case REPL_TEST_ACID_INSERT_LOADLOCAL: + primary.run("CREATE TABLE " + tableNameOp + " (key int, value int) PARTITIONED BY (load_date date) " + + "CLUSTERED BY(key) INTO 3 BUCKETS STORED AS ORC TBLPROPERTIES ( " + tableProperty + ")") + .run("SHOW TABLES LIKE '" + tableNameOp + "'") + .verifyResult(tableNameOp) + .run("INSERT OVERWRITE LOCAL DIRECTORY './test.dat' SELECT a.* FROM " + tableName + " a") + .run("LOAD DATA LOCAL INPATH './test.dat' OVERWRITE INTO TABLE " + tableNameOp + + " PARTITION (load_date='2008-08-15')") + .run("CREATE TABLE " + tableNameOp + "_nopart (key int, value int) " + + "CLUSTERED BY(key) INTO 3 BUCKETS STORED AS ORC TBLPROPERTIES ( " + tableProperty + ")") + .run("SHOW TABLES LIKE '" + tableNameOp + "_nopart'") + .verifyResult(tableNameOp + "_nopart") + .run("LOAD DATA LOCAL INPATH './test.dat' OVERWRITE INTO TABLE " + tableNameOp + "_nopart"); + break; + case REPL_TEST_ACID_INSERT_UNION: + primary.run("CREATE TABLE " + tableNameOp + " (key int, value int) PARTITIONED BY (load_date date) " + + "CLUSTERED BY(key) INTO 3 BUCKETS STORED AS ORC TBLPROPERTIES ( " + tableProperty + ")") + .run("SHOW TABLES LIKE '" + tableNameOp + "'") + .verifyResult(tableNameOp) + .run("insert overwrite table " + tableNameOp + " partition (load_date) select * from " + tableName + + " union all select * from " + tableName) + .run("CREATE TABLE " + tableNameOp + "_nopart (key int, value int) " + + "CLUSTERED BY(key) INTO 3 BUCKETS STORED AS ORC TBLPROPERTIES ( " + tableProperty + ")") + .run("insert overwrite table " + tableNameOp + "_nopart select * from " + tableName + + "_nopart union all select * from " + tableName + "_nopart"); + resultArray = new String[]{"1", "2", "3", "4", "5", "1", "2", "3", "4", "5"}; + break; + default: + return; + } + primary.run("select key from " + tableNameOp + " order by key").verifyResults(resultArray); + primary.run("select key from " + tableNameOp + "_nopart" + " order by key").verifyResults(resultArray); + } + + private String setMMtableProperty(String tableProperty) throws Throwable { + return tableProperty.concat(", 'transactional_properties' = 'insert_only'"); + } + + private void insertForMerge(String tableName, String tableNameMerge, boolean isMMTable) throws Throwable { + String tableProperty = "'transactional'='true'"; + if (isMMTable) { + tableProperty = setMMtableProperty(tableProperty); + } + primary.run("use " + primaryDbName) + .run("CREATE TABLE " + tableName + "( ID int, TranValue string, last_update_user string) PARTITIONED BY " + + "(tran_date string) CLUSTERED BY (ID) into 5 buckets STORED AS ORC TBLPROPERTIES " + + " ( "+ tableProperty + " )") + .run("SHOW TABLES LIKE '" + tableName + "'") + .verifyResult(tableName) + .run("CREATE TABLE " + tableNameMerge + " ( ID int, TranValue string, tran_date string) STORED AS ORC ") + .run("SHOW TABLES LIKE '" + tableNameMerge + "'") + .verifyResult(tableNameMerge) + .run("INSERT INTO " + tableName + " PARTITION (tran_date) VALUES (1, 'value_01', 'creation', '20170410')," + + " (2, 'value_02', 'creation', '20170410'), (3, 'value_03', 'creation', '20170410'), " + + " (4, 'value_04', 'creation', '20170410'), (5, 'value_05', 'creation', '20170413'), " + + " (6, 'value_06', 'creation', '20170413'), (7, 'value_07', 'creation', '20170413'), " + + " (8, 'value_08', 'creation', '20170413'), (9, 'value_09', 'creation', '20170413'), " + + " (10, 'value_10','creation', '20170413')") + .run("select ID from " + tableName + " order by ID") + .verifyResults(new String[] {"1", "2", "3", "4", "5", "6", "7", "8", "9", "10"}) + .run("INSERT INTO " + tableNameMerge + " VALUES (1, 'value_01', '20170410'), " + + " (4, NULL, '20170410'), (7, 'value_77777', '20170413'), " + + " (8, NULL, '20170413'), (8, 'value_08', '20170415'), " + + "(11, 'value_11', '20170415')") + .run("select ID from " + tableNameMerge + " order by ID") + .verifyResults(new String[] {"1", "4", "7", "8", "8", "11"}) + .run("MERGE INTO " + tableName + " AS T USING " + tableNameMerge + " AS S ON T.ID = S.ID and" + + " T.tran_date = S.tran_date WHEN MATCHED AND (T.TranValue != S.TranValue AND S.TranValue " + + " IS NOT NULL) THEN UPDATE SET TranValue = S.TranValue, last_update_user = " + + " 'merge_update' WHEN MATCHED AND S.TranValue IS NULL THEN DELETE WHEN NOT MATCHED " + + " THEN INSERT VALUES (S.ID, S.TranValue,'merge_insert', S.tran_date)") + .run("select last_update_user from " + tableName + " order by last_update_user") + .verifyResults(new String[] {"creation", "creation", "creation", "creation", "creation", + "creation", "creation", "merge_update", "merge_insert", "merge_insert"}); + } } diff --git a/itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/TestReplicationScenariosAcrossInstances.java b/itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/TestReplicationScenariosAcrossInstances.java index 182a77277b..a149aa4308 100644 --- a/itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/TestReplicationScenariosAcrossInstances.java +++ b/itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/TestReplicationScenariosAcrossInstances.java @@ -310,8 +310,7 @@ public void testMetadataBootstrapDump() throws Throwable { "clustered by(key) into 2 buckets stored as orc tblproperties ('transactional'='true')") .run("create table table1 (i int, j int)") .run("insert into table1 values (1,2)") - .dump(primaryDbName, null, Arrays.asList("'hive.repl.dump.metadata.only'='true'", - "'hive.repl.dump.include.acid.tables'='true'")); + .dump(primaryDbName, null, Arrays.asList("'hive.repl.dump.metadata.only'='true'")); replica.load(replicatedDbName, tuple.dumpLocation) .run("use " + replicatedDbName) @@ -330,8 +329,7 @@ public void testIncrementalMetadataReplication() throws Throwable { .run("create table table2 (a int, city string) partitioned by (country string)") .run("create table table3 (i int, j int)") .run("insert into table1 values (1,2)") - .dump(primaryDbName, null, Arrays.asList("'hive.repl.dump.metadata.only'='true'", - "'hive.repl.dump.include.acid.tables'='true'")); + .dump(primaryDbName, null, Arrays.asList("'hive.repl.dump.metadata.only'='true'")); replica.load(replicatedDbName, bootstrapTuple.dumpLocation) .run("use " + replicatedDbName) @@ -420,8 +418,7 @@ public void testBootStrapDumpOfWarehouse() throws Throwable { SOURCE_OF_REPLICATION + "' = '1,2,3')") .run("use " + dbTwo) .run("create table t1 (i int, j int)") - .dump("`*`", null, Arrays.asList("'hive.repl.dump.metadata.only'='true'", - "'hive.repl.dump.include.acid.tables'='true'")); + .dump("`*`", null, Arrays.asList("'hive.repl.dump.metadata.only'='true'")); /* Due to the limitation that we can only have one instance of Persistence Manager Factory in a JVM @@ -477,8 +474,7 @@ public void testIncrementalDumpOfWarehouse() throws Throwable { .run("use " + dbOne) .run("create table t1 (i int, j int) partitioned by (load_date date) " + "clustered by(i) into 2 buckets stored as orc tblproperties ('transactional'='true') ") - .dump("`*`", null, Arrays.asList("'hive.repl.dump.metadata.only'='true'", - "'hive.repl.dump.include.acid.tables'='true'")); + .dump("`*`", null, Arrays.asList("'hive.repl.dump.metadata.only'='true'")); String dbTwo = primaryDbName + randomTwo; WarehouseInstance.Tuple incrementalTuple = primary @@ -489,8 +485,7 @@ public void testIncrementalDumpOfWarehouse() throws Throwable { .run("use " + dbOne) .run("create table t2 (a int, b int)") .dump("`*`", bootstrapTuple.lastReplicationId, - Arrays.asList("'hive.repl.dump.metadata.only'='true'", - "'hive.repl.dump.include.acid.tables'='true'")); + Arrays.asList("'hive.repl.dump.metadata.only'='true'")); /* Due to the limitation that we can only have one instance of Persistence Manager Factory in a JVM diff --git a/itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/WarehouseInstance.java b/itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/WarehouseInstance.java index 17fd799b0c..35edf9df8d 100644 --- a/itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/WarehouseInstance.java +++ b/itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/WarehouseInstance.java @@ -224,6 +224,11 @@ WarehouseInstance load(String replicatedDbName, String dumpLocation) throws Thro return this; } + WarehouseInstance loadWithoutExplain(String replicatedDbName, String dumpLocation) throws Throwable { + run("REPL LOAD " + replicatedDbName + " FROM '" + dumpLocation + "'"); + return this; + } + WarehouseInstance load(String replicatedDbName, String dumpLocation, List withClauseOptions) throws Throwable { String replLoadCmd = "REPL LOAD " + replicatedDbName + " FROM '" + dumpLocation + "'"; diff --git a/ql/src/java/org/apache/hadoop/hive/metastore/SynchronizedMetaStoreClient.java b/ql/src/java/org/apache/hadoop/hive/metastore/SynchronizedMetaStoreClient.java index f87a6aa426..2ba6d0796c 100644 --- a/ql/src/java/org/apache/hadoop/hive/metastore/SynchronizedMetaStoreClient.java +++ b/ql/src/java/org/apache/hadoop/hive/metastore/SynchronizedMetaStoreClient.java @@ -35,6 +35,7 @@ import org.apache.hadoop.hive.metastore.api.ShowLocksRequest; import org.apache.hadoop.hive.metastore.api.ShowLocksResponse; import org.apache.hadoop.hive.metastore.api.UnknownTableException; +import org.apache.hadoop.hive.metastore.api.WriteNotificationLogRequest; import org.apache.thrift.TException; @@ -109,6 +110,10 @@ public synchronized FireEventResponse fireListenerEvent(FireEventRequest rqst) t return client.fireListenerEvent(rqst); } + public synchronized void addWriteNotificationLog(WriteNotificationLogRequest rqst) throws TException { + client.addWriteNotificationLog(rqst); + } + public synchronized void close() { client.close(); } diff --git a/ql/src/java/org/apache/hadoop/hive/ql/exec/MoveTask.java b/ql/src/java/org/apache/hadoop/hive/ql/exec/MoveTask.java index dbda5fdef4..2980962b98 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/exec/MoveTask.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/MoveTask.java @@ -132,7 +132,11 @@ private void moveFileInDfs (Path sourcePath, Path targetPath, HiveConf conf) if (HiveConf.getBoolVar(conf, HiveConf.ConfVars.HIVE_INSERT_INTO_MULTILEVEL_DIRS)) { deletePath = createTargetPath(targetPath, tgtFs); } - Hive.clearDestForSubDirSrc(conf, targetPath, sourcePath, false); + //For acid table incremental replication, just copy the content of staging directory to destination. + //No need to clean it. + if (work.isNeedCleanTarget()) { + Hive.clearDestForSubDirSrc(conf, targetPath, sourcePath, false); + } if (!Hive.moveFile(conf, sourcePath, targetPath, true, false)) { try { if (deletePath != null) { diff --git a/ql/src/java/org/apache/hadoop/hive/ql/exec/ReplCopyTask.java b/ql/src/java/org/apache/hadoop/hive/ql/exec/ReplCopyTask.java index 8a89103b3d..fb314de786 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/exec/ReplCopyTask.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/ReplCopyTask.java @@ -150,10 +150,11 @@ protected int execute(DriverContext driverContext) { continue; } String destFileName = srcFile.getCmPath().getName(); - Path destFile = new Path(toPath, destFileName); + Path destRoot = CopyUtils.getCopyDestination(srcFile, toPath); + Path destFile = new Path(destRoot, destFileName); if (dstFs.exists(destFile)) { String destFileWithSourceName = srcFile.getSourcePath().getName(); - Path newDestFile = new Path(toPath, destFileWithSourceName); + Path newDestFile = new Path(destRoot, destFileWithSourceName); boolean result = dstFs.rename(destFile, newDestFile); if (!result) { throw new IllegalStateException( diff --git a/ql/src/java/org/apache/hadoop/hive/ql/exec/ReplTxnTask.java b/ql/src/java/org/apache/hadoop/hive/ql/exec/ReplTxnTask.java index 5bbc25ab2a..c2953c5ce0 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/exec/ReplTxnTask.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/ReplTxnTask.java @@ -18,6 +18,8 @@ package org.apache.hadoop.hive.ql.exec; +import org.apache.hadoop.hive.metastore.api.CommitTxnRequest; +import org.apache.hadoop.hive.metastore.api.Database; import org.apache.hadoop.hive.metastore.api.TxnToWriteId; import org.apache.hadoop.hive.ql.DriverContext; import org.apache.hadoop.hive.ql.lockmgr.HiveTxnManager; @@ -60,8 +62,19 @@ public int execute(DriverContext driverContext) { return 0; } } catch (InvalidTableException e) { - LOG.info("Table does not exist so, ignoring the operation as it might be a retry(idempotent) case."); - return 0; + // In scenarios like import to mm tables, the alloc write id event is generated before create table event. + try { + Database database = Hive.get().getDatabase(work.getDbName()); + if (!replicationSpec.allowReplacementInto(database.getParameters())) { + // if the event is already replayed, then no need to replay it again. + LOG.debug("ReplTxnTask: Event is skipped as it is already replayed. Event Id: " + + replicationSpec.getReplicationState() + "Event Type: " + work.getOperationType()); + return 0; + } + } catch (HiveException e1) { + LOG.error("Get database failed with exception " + e1.getMessage()); + return 1; + } } catch (HiveException e) { LOG.error("Get table failed with exception " + e.getMessage()); return 1; @@ -85,10 +98,16 @@ public int execute(DriverContext driverContext) { } return 0; case REPL_COMMIT_TXN: - for (long txnId : work.getTxnIds()) { - txnManager.replCommitTxn(replPolicy, txnId); - LOG.info("Replayed CommitTxn Event for policy " + replPolicy + " with srcTxn " + txnId); - } + // Currently only one commit txn per event is supported. + assert (work.getTxnIds().size() == 1); + + long txnId = work.getTxnIds().get(0); + CommitTxnRequest commitTxnRequest = new CommitTxnRequest(txnId); + commitTxnRequest.setReplPolicy(work.getReplPolicy()); + commitTxnRequest.setWriteEventInfos(work.getWriteEventInfos()); + txnManager.replCommitTxn(commitTxnRequest); + LOG.info("Replayed CommitTxn Event for replPolicy: " + replPolicy + " with srcTxn: " + txnId + + "WriteEventInfos: " + work.getWriteEventInfos()); return 0; case REPL_ALLOC_WRITE_ID: assert work.getTxnToWriteIdList() != null; diff --git a/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/ReplDumpTask.java b/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/ReplDumpTask.java index ccdf04aae7..f40e0db67c 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/ReplDumpTask.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/ReplDumpTask.java @@ -194,7 +194,9 @@ private void dumpEvent(NotificationEvent ev, Path evRoot, Path cmRoot) throws Ex cmRoot, getHive(), conf, - getNewEventOnlyReplicationSpec(ev.getEventId()) + getNewEventOnlyReplicationSpec(ev.getEventId()), + work.dbNameOrPattern, + work.tableNameOrPattern ); EventHandler eventHandler = EventHandlerFactory.handlerFor(ev); eventHandler.handle(context); diff --git a/ql/src/java/org/apache/hadoop/hive/ql/io/AcidUtils.java b/ql/src/java/org/apache/hadoop/hive/ql/io/AcidUtils.java index 7fce67fc3e..16ba82ef6d 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/io/AcidUtils.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/io/AcidUtils.java @@ -22,7 +22,6 @@ import java.io.IOException; import java.io.Serializable; -import java.nio.ByteBuffer; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; @@ -71,21 +70,7 @@ import org.slf4j.LoggerFactory; import com.google.common.annotations.VisibleForTesting; - -import java.io.IOException; -import java.io.Serializable; import java.nio.charset.Charset; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Properties; -import java.util.Set; -import java.util.regex.Pattern; - -import static org.apache.hadoop.hive.ql.exec.Utilities.COPY_KEYWORD; - /** * Utilities that are shared by all of the ACID input and output formats. They @@ -1907,6 +1892,28 @@ public static String getAcidSubDir(Path dataPath) { return null; } + //Get the first level acid directory (if any) from a given path + public static String getFirstLevelAcidDirPath(Path dataPath, FileSystem fileSystem) throws IOException { + if (dataPath == null) { + return null; + } + String firstLevelAcidDir = getAcidSubDir(dataPath); + if (firstLevelAcidDir != null) { + return firstLevelAcidDir; + } + + String acidDirPath = getFirstLevelAcidDirPath(dataPath.getParent(), fileSystem); + if (acidDirPath == null) { + return null; + } + + // We need the path for directory so no need to append file name + if (fileSystem.isDirectory(dataPath)) { + return acidDirPath + Path.SEPARATOR + dataPath.getName(); + } + return acidDirPath; + } + public static boolean isAcidEnabled(HiveConf hiveConf) { String txnMgr = hiveConf.getVar(HiveConf.ConfVars.HIVE_TXN_MANAGER); boolean concurrency = hiveConf.getBoolVar(HiveConf.ConfVars.HIVE_SUPPORT_CONCURRENCY); diff --git a/ql/src/java/org/apache/hadoop/hive/ql/io/HiveInputFormat.java b/ql/src/java/org/apache/hadoop/hive/ql/io/HiveInputFormat.java index bcc05081aa..ec8527ef27 100755 --- a/ql/src/java/org/apache/hadoop/hive/ql/io/HiveInputFormat.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/io/HiveInputFormat.java @@ -26,30 +26,32 @@ import java.util.Comparator; import java.util.HashSet; import java.util.Iterator; -import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; +import org.apache.hadoop.hive.common.FileUtils; +import org.apache.hadoop.hive.common.StringInternUtils; +import org.apache.hadoop.hive.common.ValidTxnWriteIdList; +import org.apache.hadoop.hive.common.ValidWriteIdList; +import org.apache.hadoop.hive.ql.exec.SerializationUtilities; +import org.apache.hive.common.util.HiveStringUtils; +import org.apache.hive.common.util.Ref; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.apache.hadoop.conf.Configurable; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FileStatus; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; -import org.apache.hadoop.hive.common.FileUtils; -import org.apache.hadoop.hive.common.JavaUtils; -import org.apache.hadoop.hive.common.StringInternUtils; -import org.apache.hadoop.hive.common.ValidTxnWriteIdList; -import org.apache.hadoop.hive.common.ValidWriteIdList; import org.apache.hadoop.hive.conf.HiveConf; import org.apache.hadoop.hive.conf.HiveConf.ConfVars; import org.apache.hadoop.hive.io.HiveIOExceptionHandlerUtil; import org.apache.hadoop.hive.llap.io.api.LlapIo; import org.apache.hadoop.hive.llap.io.api.LlapProxy; import org.apache.hadoop.hive.ql.exec.Operator; -import org.apache.hadoop.hive.ql.exec.SerializationUtilities; import org.apache.hadoop.hive.ql.exec.TableScanOperator; import org.apache.hadoop.hive.ql.exec.Utilities; import org.apache.hadoop.hive.ql.exec.spark.SparkDynamicPartitionPruner; @@ -62,8 +64,6 @@ import org.apache.hadoop.hive.ql.plan.PartitionDesc; import org.apache.hadoop.hive.ql.plan.TableDesc; import org.apache.hadoop.hive.ql.plan.TableScanDesc; -import org.apache.hadoop.hive.ql.plan.VectorPartitionDesc; -import org.apache.hadoop.hive.ql.plan.VectorPartitionDesc.VectorMapOperatorReadType; import org.apache.hadoop.hive.ql.session.SessionState; import org.apache.hadoop.hive.serde2.ColumnProjectionUtils; import org.apache.hadoop.hive.serde2.Deserializer; @@ -78,10 +78,7 @@ import org.apache.hadoop.mapred.RecordReader; import org.apache.hadoop.mapred.Reporter; import org.apache.hadoop.util.StringUtils; -import org.apache.hive.common.util.Ref; import org.apache.hive.common.util.ReflectionUtil; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; /** * HiveInputFormat is a parameterized InputFormat which looks at the path name @@ -460,8 +457,9 @@ private void addSplitsForGroup(List dirs, TableScanOperator tableScan, Job InputFormat inputFormat, Class inputFormatClass, int splits, TableDesc table, List result) throws IOException { + String tableName = table.getTableName(); ValidWriteIdList validWriteIdList = AcidUtils.getTableValidWriteIdList( - conf, table.getTableName()); + conf, tableName == null ? null : HiveStringUtils.normalizeIdentifier(tableName)); ValidWriteIdList validMmWriteIdList = getMmValidWriteIds(conf, table, validWriteIdList); try { diff --git a/ql/src/java/org/apache/hadoop/hive/ql/lockmgr/DbTxnManager.java b/ql/src/java/org/apache/hadoop/hive/ql/lockmgr/DbTxnManager.java index 4fd1d4ec54..78980fad93 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/lockmgr/DbTxnManager.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/lockmgr/DbTxnManager.java @@ -37,6 +37,7 @@ Licensed to the Apache Software Foundation (ASF) under one import org.apache.hadoop.hive.metastore.api.NoSuchTxnException; import org.apache.hadoop.hive.metastore.api.TxnAbortedException; import org.apache.hadoop.hive.metastore.api.TxnToWriteId; +import org.apache.hadoop.hive.metastore.api.CommitTxnRequest; import org.apache.hadoop.hive.metastore.txn.TxnUtils; import org.apache.hadoop.hive.metastore.utils.MetaStoreUtils; import org.apache.hadoop.hive.ql.Context; @@ -638,14 +639,15 @@ public void releaseLocks(List hiveLocks) throws LockException { } @Override - public void replCommitTxn(String replPolicy, long srcTxnId) throws LockException { + public void replCommitTxn(CommitTxnRequest rqst) throws LockException { try { - getMS().replCommitTxn(srcTxnId, replPolicy); + getMS().replCommitTxn(rqst); } catch (NoSuchTxnException e) { - LOG.error("Metastore could not find " + JavaUtils.txnIdToString(srcTxnId)); - throw new LockException(e, ErrorMsg.TXN_NO_SUCH_TRANSACTION, JavaUtils.txnIdToString(srcTxnId)); + LOG.error("Metastore could not find " + JavaUtils.txnIdToString(rqst.getTxnid())); + throw new LockException(e, ErrorMsg.TXN_NO_SUCH_TRANSACTION, JavaUtils.txnIdToString(rqst.getTxnid())); } catch (TxnAbortedException e) { - LockException le = new LockException(e, ErrorMsg.TXN_ABORTED, JavaUtils.txnIdToString(srcTxnId), e.getMessage()); + LockException le = new LockException(e, ErrorMsg.TXN_ABORTED, + JavaUtils.txnIdToString(rqst.getTxnid()), e.getMessage()); LOG.error(le.getMessage()); throw le; } catch (TException e) { @@ -1013,7 +1015,11 @@ public int getStmtIdAndIncrement() { assert isTxnOpen(); return stmtId++; } - + @Override + public int getCurrentStmtId() { + assert isTxnOpen(); + return stmtId; + } @Override public long getTableWriteId(String dbName, String tableName) throws LockException { assert isTxnOpen(); diff --git a/ql/src/java/org/apache/hadoop/hive/ql/lockmgr/DummyTxnManager.java b/ql/src/java/org/apache/hadoop/hive/ql/lockmgr/DummyTxnManager.java index ab9d67e441..a7fc52225b 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/lockmgr/DummyTxnManager.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/lockmgr/DummyTxnManager.java @@ -18,6 +18,7 @@ package org.apache.hadoop.hive.ql.lockmgr; import org.apache.hadoop.hive.common.ValidTxnWriteIdList; +import org.apache.hadoop.hive.metastore.api.CommitTxnRequest; import org.apache.hadoop.hive.metastore.api.TxnToWriteId; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -74,6 +75,8 @@ public int getStmtIdAndIncrement() { return 0; } @Override + public int getCurrentStmtId() {return 0;} + @Override public long getTableWriteId(String dbName, String tableName) throws LockException { return 0L; } @@ -220,7 +223,7 @@ public void commitTxn() throws LockException { } @Override - public void replCommitTxn(String replPolicy, long srcTxnId) throws LockException { + public void replCommitTxn(CommitTxnRequest rqst) throws LockException { // No-op } diff --git a/ql/src/java/org/apache/hadoop/hive/ql/lockmgr/HiveTxnManager.java b/ql/src/java/org/apache/hadoop/hive/ql/lockmgr/HiveTxnManager.java index 5f68e085a0..9575552ff0 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/lockmgr/HiveTxnManager.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/lockmgr/HiveTxnManager.java @@ -19,6 +19,7 @@ import org.apache.hadoop.hive.common.ValidTxnList; import org.apache.hadoop.hive.common.ValidTxnWriteIdList; +import org.apache.hadoop.hive.metastore.api.CommitTxnRequest; import org.apache.hadoop.hive.metastore.api.LockResponse; import org.apache.hadoop.hive.metastore.api.TxnToWriteId; import org.apache.hadoop.hive.ql.Context; @@ -61,11 +62,11 @@ /** * Commit the transaction in target cluster. - * @param replPolicy Replication policy to uniquely identify the source cluster. - * @param srcTxnId The id of the transaction at the source cluster + * + * @param rqst Commit transaction request having information related to commit txn and write events. * @throws LockException in case of failure to commit the transaction. */ - void replCommitTxn(String replPolicy, long srcTxnId) throws LockException; + void replCommitTxn(CommitTxnRequest rqst) throws LockException; /** * Abort the transaction in target cluster. @@ -295,6 +296,9 @@ void replAllocateTableWriteIdsBatch(String dbName, String tableName, String repl */ int getStmtIdAndIncrement(); + // Can be used by operation to set the stmt id when allocation is done somewhere else. + int getCurrentStmtId(); + /** * Acquire the materialization rebuild lock for a given view. We need to specify the fully * qualified name of the materialized view and the open transaction ID so we can identify diff --git a/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java b/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java index 107d032eb7..572616acea 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java @@ -63,20 +63,11 @@ import com.google.common.collect.ImmutableList; import org.apache.calcite.plan.RelOptMaterialization; -import org.apache.calcite.plan.RelOptRule; -import org.apache.calcite.plan.RelOptRuleCall; import org.apache.calcite.plan.hep.HepPlanner; import org.apache.calcite.plan.hep.HepProgramBuilder; import org.apache.calcite.rel.RelNode; import org.apache.calcite.rel.core.Project; -import org.apache.calcite.rel.core.TableScan; -import org.apache.calcite.rel.type.RelDataType; -import org.apache.calcite.rel.type.RelDataTypeField; import org.apache.calcite.rex.RexBuilder; -import org.apache.calcite.rex.RexNode; -import org.apache.calcite.sql.fun.SqlStdOperatorTable; -import org.apache.calcite.sql.type.SqlTypeName; -import org.apache.calcite.tools.RelBuilder; import org.apache.commons.io.FilenameUtils; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FileChecksum; @@ -88,11 +79,9 @@ import org.apache.hadoop.hdfs.DistributedFileSystem; import org.apache.hadoop.hive.common.FileUtils; import org.apache.hadoop.hive.common.HiveStatsUtils; -import org.apache.hadoop.hive.common.JavaUtils; import org.apache.hadoop.hive.common.ObjectPair; import org.apache.hadoop.hive.common.StatsSetupConst; import org.apache.hadoop.hive.common.ValidTxnWriteIdList; -import org.apache.hadoop.hive.common.ValidWriteIdList; import org.apache.hadoop.hive.common.classification.InterfaceAudience.LimitedPrivate; import org.apache.hadoop.hive.common.classification.InterfaceStability.Unstable; import org.apache.hadoop.hive.common.log.InPlaceUpdate; @@ -167,6 +156,7 @@ import org.apache.hadoop.hive.metastore.api.WMTrigger; import org.apache.hadoop.hive.metastore.api.WMValidateResourcePlanResponse; import org.apache.hadoop.hive.metastore.api.hive_metastoreConstants; +import org.apache.hadoop.hive.metastore.api.WriteNotificationLogRequest; import org.apache.hadoop.hive.metastore.utils.MetaStoreUtils; import org.apache.hadoop.hive.ql.ErrorMsg; import org.apache.hadoop.hive.ql.exec.AbstractFileMergeOperator; @@ -178,7 +168,6 @@ import org.apache.hadoop.hive.ql.io.AcidUtils; import org.apache.hadoop.hive.ql.lockmgr.DbTxnManager; import org.apache.hadoop.hive.ql.log.PerfLogger; -import org.apache.hadoop.hive.ql.optimizer.calcite.HiveRelFactories; import org.apache.hadoop.hive.ql.optimizer.calcite.RelOptHiveTable; import org.apache.hadoop.hive.ql.optimizer.calcite.rules.views.HiveAugmentMaterializationRule; import org.apache.hadoop.hive.ql.optimizer.listbucketingpruner.ListBucketingPrunerUtils; @@ -200,7 +189,6 @@ import org.apache.hadoop.mapred.InputFormat; import org.apache.hadoop.security.UserGroupInformation; import org.apache.hadoop.util.StringUtils; -import org.apache.hive.common.util.TxnIdUtils; import org.apache.thrift.TException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -1695,7 +1683,7 @@ public Partition loadPartition(Path loadPath, Table tbl, Map par // If config is set, table is not temporary and partition being inserted exists, capture // the list of files added. For not yet existing partitions (insert overwrite to new partition // or dynamic partition inserts), the add partition event will capture the list of files added. - if (conf.getBoolVar(ConfVars.FIRE_EVENTS_FOR_DML) && !tbl.isTemporary() && (null != oldPart)) { + if (areEventsForDmlNeeded(tbl, oldPart)) { newFiles = Collections.synchronizedList(new ArrayList()); } @@ -1711,8 +1699,8 @@ public Partition loadPartition(Path loadPath, Table tbl, Map par Utilities.FILE_OP_LOGGER.trace("not moving " + loadPath + " to " + newPartPath + " (MM)"); } assert !isAcidIUDoperation; - if (areEventsForDmlNeeded(tbl, oldPart)) { - newFiles = listFilesCreatedByQuery(loadPath, writeId, stmtId); + if (newFiles != null) { + listFilesCreatedByQuery(loadPath, writeId, stmtId, isMmTableWrite ? isInsertOverwrite : false, newFiles); } if (Utilities.FILE_OP_LOGGER.isTraceEnabled()) { Utilities.FILE_OP_LOGGER.trace("maybe deleting stuff from " + oldPartPath @@ -1757,7 +1745,11 @@ public Partition loadPartition(Path loadPath, Table tbl, Map par // Generate an insert event only if inserting into an existing partition // When inserting into a new partition, the add partition event takes care of insert event if ((null != oldPart) && (null != newFiles)) { - fireInsertEvent(tbl, partSpec, (loadFileType == LoadFileType.REPLACE_ALL), newFiles); + if (isTxnTable) { + addWriteNotificationLog(tbl, partSpec, newFiles, writeId); + } else { + fireInsertEvent(tbl, partSpec, (loadFileType == LoadFileType.REPLACE_ALL), newFiles); + } } else { LOG.debug("No new files were created, and is not a replace, or we're inserting into a " + "partition that does not exist yet. Skipping generating INSERT event."); @@ -1830,6 +1822,12 @@ public Partition loadPartition(Path loadPath, Table tbl, Map par } throw e; } + + // For acid table, add the acid_write event with file list at the time of load itself. But + // it should be done after partition is created. + if (isTxnTable && (null != newFiles)) { + addWriteNotificationLog(tbl, partSpec, newFiles, writeId); + } } else { setStatsPropAndAlterPartition(hasFollowingStatsTask, tbl, newTPart); } @@ -1882,50 +1880,47 @@ private Path fixFullAcidPathForLoadData(LoadFileType loadFileType, Path destPath } private boolean areEventsForDmlNeeded(Table tbl, Partition oldPart) { - return conf.getBoolVar(ConfVars.FIRE_EVENTS_FOR_DML) && !tbl.isTemporary() && oldPart != null; + // For Acid IUD, add partition is a meta data only operation. So need to add the new files added + // information into the TXN_WRITE_NOTIFICATION_LOG table. + return conf.getBoolVar(ConfVars.FIRE_EVENTS_FOR_DML) && !tbl.isTemporary() && + ((null != oldPart) || AcidUtils.isTransactionalTable(tbl)); + } + + private void listFilesInsideAcidDirectory(Path acidDir, FileSystem srcFs, List newFiles) throws IOException { + // list out all the files/directory in the path + FileStatus[] acidFiles; + acidFiles = srcFs.listStatus(acidDir); + if (acidFiles == null) { + LOG.debug("No files added by this query in: " + acidDir); + return; + } + for (FileStatus acidFile : acidFiles) { + // need to list out only files, ignore folders. + if (!acidFile.isDirectory()) { + newFiles.add(acidFile.getPath()); + } else { + listFilesInsideAcidDirectory(acidFile.getPath(), srcFs, newFiles); + } + } } - private List listFilesCreatedByQuery(Path loadPath, long writeId, int stmtId) throws HiveException { - List newFiles = new ArrayList(); - final String filePrefix = AcidUtils.deltaSubdir(writeId, writeId, stmtId); - FileStatus[] srcs; - FileSystem srcFs; + private void listFilesCreatedByQuery(Path loadPath, long writeId, int stmtId, + boolean isInsertOverwrite, List newFiles) throws HiveException { + Path acidDir = new Path(loadPath, AcidUtils.baseOrDeltaSubdir(isInsertOverwrite, writeId, writeId, stmtId)); try { - srcFs = loadPath.getFileSystem(conf); - srcs = srcFs.listStatus(loadPath); + FileSystem srcFs = loadPath.getFileSystem(conf); + if (srcFs.exists(acidDir) && srcFs.isDirectory(acidDir)){ + // list out all the files in the path + listFilesInsideAcidDirectory(acidDir, srcFs, newFiles); + } else { + LOG.info("directory does not exist: " + acidDir); + return; + } } catch (IOException e) { LOG.error("Error listing files", e); throw new HiveException(e); } - if (srcs == null) { - LOG.info("No sources specified: " + loadPath); - return newFiles; - } - PathFilter subdirFilter = null; - - // Note: just like the move path, we only do one level of recursion. - for (FileStatus src : srcs) { - if (src.isDirectory()) { - if (subdirFilter == null) { - subdirFilter = new PathFilter() { - @Override - public boolean accept(Path path) { - return path.getName().startsWith(filePrefix); - } - }; - } - try { - for (FileStatus srcFile : srcFs.listStatus(src.getPath(), subdirFilter)) { - newFiles.add(srcFile.getPath()); - } - } catch (IOException e) { - throw new HiveException(e); - } - } else if (src.getPath().getName().startsWith(filePrefix)) { - newFiles.add(src.getPath()); - } - } - return newFiles; + return; } private void setStatsPropAndAlterPartition(boolean hasFollowingStatsTask, Table tbl, @@ -2288,7 +2283,11 @@ public void loadTable(Path loadPath, String tableName, LoadFileType loadFileType Utilities.FILE_OP_LOGGER.debug( "not moving " + loadPath + " to " + tbl.getPath() + " (MM)"); } - newFiles = listFilesCreatedByQuery(loadPath, writeId, stmtId); + + //new files list is required only for event notification. + if (newFiles != null) { + listFilesCreatedByQuery(loadPath, writeId, stmtId, isMmTable ? isInsertOverwrite : false, newFiles); + } } else { // Either a non-MM query, or a load into MM table from an external source. Path tblPath = tbl.getPath(); @@ -2353,7 +2352,11 @@ public void loadTable(Path loadPath, String tableName, LoadFileType loadFileType alterTable(tbl, environmentContext); - fireInsertEvent(tbl, null, (loadFileType == LoadFileType.REPLACE_ALL), newFiles); + if (AcidUtils.isTransactionalTable(tbl)) { + addWriteNotificationLog(tbl, null, newFiles, writeId); + } else { + fireInsertEvent(tbl, null, (loadFileType == LoadFileType.REPLACE_ALL), newFiles); + } } /** @@ -2604,6 +2607,48 @@ private void alterPartitionSpecInMemory(Table tbl, tpart.getSd().setLocation(partPath); } + private void addWriteNotificationLog(Table tbl, Map partitionSpec, + List newFiles, Long writeId) throws HiveException { + if (!conf.getBoolVar(ConfVars.FIRE_EVENTS_FOR_DML)) { + LOG.debug("write notification log is ignored as dml event logging is disabled"); + return; + } + + if (tbl.isTemporary()) { + LOG.debug("write notification log is ignored as " + tbl.getTableName() + " is temporary : " + writeId); + return; + } + + if (newFiles == null || newFiles.isEmpty()) { + LOG.debug("write notification log is ignored as file list is empty"); + return; + } + + LOG.debug("adding write notification log for operation " + writeId + " table " + tbl.getCompleteName() + + "partition " + partitionSpec + " list of files " + newFiles); + + try { + FileSystem fileSystem = tbl.getDataLocation().getFileSystem(conf); + Long txnId = SessionState.get().getTxnMgr().getCurrentTxnId(); + + InsertEventRequestData insertData = new InsertEventRequestData(); + insertData.setReplace(true); + + WriteNotificationLogRequest rqst = new WriteNotificationLogRequest(txnId, writeId, + tbl.getDbName(), tbl.getTableName(), insertData); + addInsertFileInformation(newFiles, fileSystem, insertData); + + if (partitionSpec != null && !partitionSpec.isEmpty()) { + for (FieldSchema fs : tbl.getPartitionKeys()) { + rqst.addToPartitionVals(partitionSpec.get(fs.getName())); + } + } + getSynchronizedMSC().addWriteNotificationLog(rqst); + } catch (IOException | TException e) { + throw new HiveException(e); + } + } + private void fireInsertEvent(Table tbl, Map partitionSpec, boolean replace, List newFiles) throws HiveException { if (conf.getBoolVar(ConfVars.FIRE_EVENTS_FOR_DML)) { @@ -2680,6 +2725,7 @@ private static void addInsertNonDirectoryInformation(Path p, FileSystem fileSyst InsertEventRequestData insertData) throws IOException { insertData.addToFilesAdded(p.toString()); FileChecksum cksum = fileSystem.getFileChecksum(p); + String acidDirPath = AcidUtils.getFirstLevelAcidDirPath(p.getParent(), fileSystem); // File checksum is not implemented for local filesystem (RawLocalFileSystem) if (cksum != null) { String checksumString = @@ -2689,6 +2735,11 @@ private static void addInsertNonDirectoryInformation(Path p, FileSystem fileSyst // Add an empty checksum string for filesystems that don't generate one insertData.addToFilesAddedChecksum(""); } + + // acid dir will be present only for acid write operations. + if (acidDirPath != null) { + insertData.addToSubDirectoryList(acidDirPath); + } } public boolean dropPartition(String tblName, List part_vals, boolean deleteData) @@ -3645,7 +3696,6 @@ public static boolean moveFile(final HiveConf conf, Path srcf, final Path destf, @Override public Void call() throws HiveException { SessionState.setCurrentSessionState(parentSession); - final String group = srcStatus.getGroup(); try { boolean success = false; if (destFs instanceof DistributedFileSystem) { diff --git a/ql/src/java/org/apache/hadoop/hive/ql/metadata/HiveUtils.java b/ql/src/java/org/apache/hadoop/hive/ql/metadata/HiveUtils.java index f1c4d9827b..e04a0f3dce 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/metadata/HiveUtils.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/metadata/HiveUtils.java @@ -21,6 +21,7 @@ import java.util.ArrayList; import java.util.List; +import org.apache.hadoop.fs.Path; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.apache.hadoop.conf.Configuration; @@ -431,11 +432,19 @@ public static String getLocalDirList(Configuration conf) { public static String getReplPolicy(String dbName, String tableName) { if ((dbName == null) || (dbName.isEmpty())) { - return null; + return "*.*"; } else if ((tableName == null) || (tableName.isEmpty())) { return dbName.toLowerCase() + ".*"; } else { return dbName.toLowerCase() + "." + tableName.toLowerCase(); } } + + public static Path getDumpPath(Path root, String dbName, String tableName) { + assert (dbName != null); + if ((tableName != null) && (!tableName.isEmpty())) { + return new Path(root, dbName + "." + tableName); + } + return new Path(root, dbName); + } } diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/ImportSemanticAnalyzer.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/ImportSemanticAnalyzer.java index cc7f0d5ca0..be0f976b7a 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/parse/ImportSemanticAnalyzer.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/ImportSemanticAnalyzer.java @@ -56,6 +56,7 @@ import org.apache.hadoop.hive.ql.plan.DDLWork; import org.apache.hadoop.hive.ql.plan.DropTableDesc; import org.apache.hadoop.hive.ql.plan.LoadTableDesc; +import org.apache.hadoop.hive.ql.plan.LoadMultiFilesDesc; import org.apache.hadoop.hive.ql.plan.LoadTableDesc.LoadFileType; import org.apache.hadoop.hive.ql.plan.MoveWork; import org.apache.hadoop.hive.ql.session.SessionState; @@ -249,9 +250,11 @@ public static boolean prepareImport(boolean isImportCmd, throw new HiveException(e); } + boolean inReplicationScope = false; if ((replicationSpec != null) && replicationSpec.isInReplicationScope()){ tblDesc.setReplicationSpec(replicationSpec); StatsSetupConst.setBasicStatsState(tblDesc.getTblProps(), StatsSetupConst.FALSE); + inReplicationScope = true; } if (isExternalSet) { @@ -275,7 +278,7 @@ public static boolean prepareImport(boolean isImportCmd, for (Partition partition : partitions) { // TODO: this should ideally not create AddPartitionDesc per partition AddPartitionDesc partsDesc = getBaseAddPartitionDescFromPartition(fromPath, dbname, tblDesc, partition); - if ((replicationSpec != null) && replicationSpec.isInReplicationScope()){ + if (inReplicationScope){ StatsSetupConst.setBasicStatsState(partsDesc.getPartition(0).getPartParams(), StatsSetupConst.FALSE); } partitionDescs.add(partsDesc); @@ -335,13 +338,14 @@ public static boolean prepareImport(boolean isImportCmd, //if importing into existing transactional table or will create a new transactional table //(because Export was done from transactional table), need a writeId // Explain plan doesn't open a txn and hence no need to allocate write id. - if (x.getCtx().getExplainConfig() == null) { + // In replication flow, no need to allocate write id. It will be allocated using the alloc write id event. + if (x.getCtx().getExplainConfig() == null && !inReplicationScope) { writeId = txnMgr.getTableWriteId(tblDesc.getDatabaseName(), tblDesc.getTableName()); stmtId = txnMgr.getStmtIdAndIncrement(); } } - if (!replicationSpec.isInReplicationScope()) { + if (!inReplicationScope) { createRegularImportTasks( tblDesc, partitionDescs, isPartSpecSet, replicationSpec, table, @@ -390,7 +394,7 @@ private static ImportTableDesc getBaseCreateTableDescFromTable(String dbName, Path dataPath = new Path(fromURI.toString(), EximUtil.DATA_PATH_NAME); Path destPath = null, loadPath = null; LoadFileType lft; - if (AcidUtils.isTransactionalTable(table)) { + if (AcidUtils.isTransactionalTable(table) && !replicationSpec.isInReplicationScope()) { String mmSubdir = replace ? AcidUtils.baseDir(writeId) : AcidUtils.deltaSubdir(writeId, writeId, stmtId); destPath = new Path(tgtPath, mmSubdir); @@ -428,13 +432,26 @@ private static ImportTableDesc getBaseCreateTableDescFromTable(String dbName, copyTask = TaskFactory.get(new CopyWork(dataPath, destPath, false)); } - LoadTableDesc loadTableWork = new LoadTableDesc( - loadPath, Utilities.getTableDesc(table), new TreeMap<>(), lft, writeId); - loadTableWork.setStmtId(stmtId); + MoveWork moveWork = new MoveWork(x.getInputs(), x.getOutputs(), null, null, false); + + + if (replicationSpec.isInReplicationScope() && AcidUtils.isTransactionalTable(table)) { + LoadMultiFilesDesc loadFilesWork = new LoadMultiFilesDesc( + Collections.singletonList(destPath), + Collections.singletonList(tgtPath), + true, null, null); + moveWork.setMultiFilesDesc(loadFilesWork); + moveWork.setNeedCleanTarget(false); + } else { + LoadTableDesc loadTableWork = new LoadTableDesc( + loadPath, Utilities.getTableDesc(table), new TreeMap<>(), lft, writeId); + loadTableWork.setStmtId(stmtId); + moveWork.setLoadTableWork(loadTableWork); + } + //if Importing into existing table, FileFormat is checked by // ImportSemanticAnalzyer.checked checkTable() - MoveWork mv = new MoveWork(x.getInputs(), x.getOutputs(), loadTableWork, null, false); - Task loadTableTask = TaskFactory.get(mv, x.getConf()); + Task loadTableTask = TaskFactory.get(moveWork, x.getConf()); copyTask.addDependentTask(loadTableTask); x.getTasks().add(copyTask); return loadTableTask; @@ -498,8 +515,10 @@ private static ImportTableDesc getBaseCreateTableDescFromTable(String dbName, + partSpecToString(partSpec.getPartSpec()) + " with source location: " + srcLocation); Path tgtLocation = new Path(partSpec.getLocation()); - Path destPath = !AcidUtils.isTransactionalTable(table.getParameters()) ? - x.getCtx().getExternalTmpPath(tgtLocation) + //Replication scope the write id will be invalid + Boolean useStagingDirectory = !AcidUtils.isTransactionalTable(table.getParameters()) || + replicationSpec.isInReplicationScope(); + Path destPath = useStagingDirectory ? x.getCtx().getExternalTmpPath(tgtLocation) : new Path(tgtLocation, AcidUtils.deltaSubdir(writeId, writeId, stmtId)); Path moveTaskSrc = !AcidUtils.isTransactionalTable(table.getParameters()) ? destPath : tgtLocation; if (Utilities.FILE_OP_LOGGER.isTraceEnabled()) { @@ -523,17 +542,29 @@ private static ImportTableDesc getBaseCreateTableDescFromTable(String dbName, Task addPartTask = TaskFactory.get( new DDLWork(x.getInputs(), x.getOutputs(), addPartitionDesc), x.getConf()); + MoveWork moveWork = new MoveWork(x.getInputs(), x.getOutputs(), + null, null, false); + // Note: this sets LoadFileType incorrectly for ACID; is that relevant for import? // See setLoadFileType and setIsAcidIow calls elsewhere for an example. - LoadTableDesc loadTableWork = new LoadTableDesc(moveTaskSrc, Utilities.getTableDesc(table), - partSpec.getPartSpec(), - replicationSpec.isReplace() ? LoadFileType.REPLACE_ALL : LoadFileType.OVERWRITE_EXISTING, - writeId); - loadTableWork.setStmtId(stmtId); - loadTableWork.setInheritTableSpecs(false); - Task loadPartTask = TaskFactory.get( - new MoveWork(x.getInputs(), x.getOutputs(), loadTableWork, null, false), - x.getConf()); + if (replicationSpec.isInReplicationScope() && AcidUtils.isTransactionalTable(tblDesc.getTblProps())) { + LoadMultiFilesDesc loadFilesWork = new LoadMultiFilesDesc( + Collections.singletonList(destPath), + Collections.singletonList(tgtLocation), + true, null, null); + moveWork.setMultiFilesDesc(loadFilesWork); + moveWork.setNeedCleanTarget(false); + } else { + LoadTableDesc loadTableWork = new LoadTableDesc(moveTaskSrc, Utilities.getTableDesc(table), + partSpec.getPartSpec(), + replicationSpec.isReplace() ? LoadFileType.REPLACE_ALL : LoadFileType.OVERWRITE_EXISTING, + writeId); + loadTableWork.setStmtId(stmtId); + loadTableWork.setInheritTableSpecs(false); + moveWork.setLoadTableWork(loadTableWork); + } + + Task loadPartTask = TaskFactory.get(moveWork, x.getConf()); copyTask.addDependentTask(loadPartTask); addPartTask.addDependentTask(loadPartTask); x.getTasks().add(copyTask); @@ -1008,7 +1039,8 @@ private static void createReplImportTasks( t.addDependentTask( addSinglePartition(fromURI, fs, tblDesc, table, wh, addPartitionDesc, replicationSpec, x, writeId, stmtId)); if (updatedMetadata != null) { - updatedMetadata.addPartition(addPartitionDesc.getPartition(0).getPartSpec()); + updatedMetadata.addPartition(table.getDbName(), table.getTableName(), + addPartitionDesc.getPartition(0).getPartSpec()); } } } else { @@ -1060,13 +1092,15 @@ private static void createReplImportTasks( x.getTasks().add(addSinglePartition( fromURI, fs, tblDesc, table, wh, addPartitionDesc, replicationSpec, x, writeId, stmtId)); if (updatedMetadata != null) { - updatedMetadata.addPartition(addPartitionDesc.getPartition(0).getPartSpec()); + updatedMetadata.addPartition(table.getDbName(), table.getTableName(), + addPartitionDesc.getPartition(0).getPartSpec()); } } else { x.getTasks().add(alterSinglePartition( fromURI, fs, tblDesc, table, wh, addPartitionDesc, replicationSpec, null, x)); if (updatedMetadata != null) { - updatedMetadata.addPartition(addPartitionDesc.getPartition(0).getPartSpec()); + updatedMetadata.addPartition(table.getDbName(), table.getTableName(), + addPartitionDesc.getPartition(0).getPartSpec()); } } } else { @@ -1081,7 +1115,8 @@ private static void createReplImportTasks( fromURI, fs, tblDesc, table, wh, addPartitionDesc, replicationSpec, ptn, x)); } if (updatedMetadata != null) { - updatedMetadata.addPartition(addPartitionDesc.getPartition(0).getPartSpec()); + updatedMetadata.addPartition(table.getDbName(), table.getTableName(), + addPartitionDesc.getPartition(0).getPartSpec()); } if (lockType == WriteEntity.WriteType.DDL_NO_LOCK){ lockType = WriteEntity.WriteType.DDL_SHARED; diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/ReplicationSemanticAnalyzer.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/ReplicationSemanticAnalyzer.java index d7b3104cf1..82c7237c96 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/parse/ReplicationSemanticAnalyzer.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/ReplicationSemanticAnalyzer.java @@ -141,11 +141,11 @@ private void initReplDump(ASTNode ast) throws HiveException { Database database = db.getDatabase(dbName); if (database != null) { if (!ReplChangeManager.isSourceOfReplication(database)) { - throw new SemanticException("Cannot dump database " + dbNameOrPattern + + throw new SemanticException("Cannot dump database " + dbName + " as it is not a source of replication"); } } else { - throw new SemanticException("Cannot dump database " + dbNameOrPattern + " as it does not exist"); + throw new SemanticException("Cannot dump database " + dbName + " as it does not exist"); } } @@ -580,49 +580,53 @@ private void analyzeReplLoad(ASTNode ast) throws SemanticException { private List> addUpdateReplStateTasks( boolean isDatabaseLoad, - UpdatedMetaDataTracker updatedMetadata, + UpdatedMetaDataTracker updatedMetaDataTracker, List> importTasks) throws SemanticException { - String replState = updatedMetadata.getReplicationState(); - String dbName = updatedMetadata.getDatabase(); - String tableName = updatedMetadata.getTable(); - - // If no import tasks generated by the event or no table updated for table level load, then no - // need to update the repl state to any object. - if (importTasks.isEmpty() || (!isDatabaseLoad && (tableName == null))) { - LOG.debug("No objects need update of repl state: Either 0 import tasks or table level load"); + // If no import tasks generated by the event then no need to update the repl state to any object. + if (importTasks.isEmpty()) { + LOG.debug("No objects need update of repl state: 0 import tasks"); return importTasks; } // Create a barrier task for dependency collection of import tasks Task barrierTask = TaskFactory.get(new DependencyCollectionWork()); - - // Link import tasks to the barrier task which will in-turn linked with repl state update tasks - for (Task t : importTasks){ - t.addDependentTask(barrierTask); - LOG.debug("Added {}:{} as a precursor of barrier task {}:{}", - t.getClass(), t.getId(), barrierTask.getClass(), barrierTask.getId()); - } - List> tasks = new ArrayList<>(); Task updateReplIdTask; - // If any partition is updated, then update repl state in partition object - for (final Map partSpec : updatedMetadata.getPartitions()) { - updateReplIdTask = tableUpdateReplStateTask(dbName, tableName, partSpec, replState, barrierTask); - tasks.add(updateReplIdTask); + for (UpdatedMetaDataTracker.UpdateMetaData updateMetaData : updatedMetaDataTracker.getUpdateMetaDataList()) { + String replState = updateMetaData.getReplState(); + String dbName = updateMetaData.getDbName(); + String tableName = updateMetaData.getTableName(); + // If any partition is updated, then update repl state in partition object + for (final Map partSpec : updateMetaData.getPartitionsList()) { + updateReplIdTask = tableUpdateReplStateTask(dbName, tableName, partSpec, replState, barrierTask); + tasks.add(updateReplIdTask); + } + + if (tableName != null) { + // If any table/partition is updated, then update repl state in table object + updateReplIdTask = tableUpdateReplStateTask(dbName, tableName, null, replState, barrierTask); + tasks.add(updateReplIdTask); + } + + // For table level load, need not update replication state for the database + if (isDatabaseLoad) { + // If any table/partition is updated, then update repl state in db object + updateReplIdTask = dbUpdateReplStateTask(dbName, replState, barrierTask); + tasks.add(updateReplIdTask); + } } - if (tableName != null) { - // If any table/partition is updated, then update repl state in table object - updateReplIdTask = tableUpdateReplStateTask(dbName, tableName, null, replState, barrierTask); - tasks.add(updateReplIdTask); + if (tasks.isEmpty()) { + LOG.debug("No objects need update of repl state: 0 update tracker tasks"); + return importTasks; } - // For table level load, need not update replication state for the database - if (isDatabaseLoad) { - // If any table/partition is updated, then update repl state in db object - updateReplIdTask = dbUpdateReplStateTask(dbName, replState, barrierTask); - tasks.add(updateReplIdTask); + // Link import tasks to the barrier task which will in-turn linked with repl state update tasks + for (Task t : importTasks){ + t.addDependentTask(barrierTask); + LOG.debug("Added {}:{} as a precursor of barrier task {}:{}", + t.getClass(), t.getId(), barrierTask.getClass(), barrierTask.getId()); } // At least one task would have been added to update the repl state diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java index d5ed581861..79a29e3b0f 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java @@ -7281,6 +7281,9 @@ protected Operator genFileSinkPlan(String dest, QB qb, Operator input) boolean isReplace = !qb.getParseInfo().isInsertIntoTable( dest_tab.getDbName(), dest_tab.getTableName()); ltd = new LoadTableDesc(queryTmpdir, table_desc, dpCtx, acidOp, isReplace, writeId); + if (writeId != null) { + ltd.setStmtId(txnMgr.getCurrentStmtId()); + } // For Acid table, Insert Overwrite shouldn't replace the table content. We keep the old // deltas and base and leave them up to the cleaner to clean up boolean isInsertInto = qb.getParseInfo().isInsertIntoTable( @@ -7376,6 +7379,9 @@ protected Operator genFileSinkPlan(String dest, QB qb, Operator input) throw new SemanticException("Failed to allocate write Id", ex); } ltd = new LoadTableDesc(queryTmpdir, table_desc, dest_part.getSpec(), acidOp, writeId); + if (writeId != null) { + ltd.setStmtId(txnMgr.getCurrentStmtId()); + } // For the current context for generating File Sink Operator, it is either INSERT INTO or INSERT OVERWRITE. // So the next line works. boolean isInsertInto = !qb.getParseInfo().isDestToOpTypeInsertOverwrite(dest); diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/UpdateDeleteSemanticAnalyzer.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/UpdateDeleteSemanticAnalyzer.java index 512f1ff3da..31901b036c 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/parse/UpdateDeleteSemanticAnalyzer.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/UpdateDeleteSemanticAnalyzer.java @@ -178,9 +178,23 @@ private void analyzeAcidExport(ASTNode ast) throws SemanticException { String newTableName = getTmptTableNameForExport(exportTable); //this is db.table Map tblProps = new HashMap<>(); tblProps.put(hive_metastoreConstants.TABLE_IS_TRANSACTIONAL, Boolean.FALSE.toString()); + String location; + + // for temporary tables we set the location to something in the session's scratch dir + // it has the same life cycle as the tmp table + try { + // Generate a unique ID for temp table path. + // This path will be fixed for the life of the temp table. + Path path = new Path(SessionState.getTempTableSpace(conf), UUID.randomUUID().toString()); + path = Warehouse.getDnsPath(path, conf); + location = path.toString(); + } catch (MetaException err) { + throw new SemanticException("Error while generating temp table path:", err); + } + CreateTableLikeDesc ctlt = new CreateTableLikeDesc(newTableName, false, true, null, - null, null, null, null, + null, location, null, null, tblProps, true, //important so we get an exception on name collision Warehouse.getQualifiedName(exportTable.getTTable()), false); diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/CopyUtils.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/CopyUtils.java index 2557121f2d..9face12793 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/CopyUtils.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/CopyUtils.java @@ -370,7 +370,7 @@ private boolean isLocal(FileSystem fs) { return result; } - private Path getCopyDestination(ReplChangeManager.FileInfo fileInfo, Path destRoot) { + public static Path getCopyDestination(ReplChangeManager.FileInfo fileInfo, Path destRoot) { if (fileInfo.getSubDir() == null) { return destRoot; } diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/Utils.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/Utils.java index 14572ad8ae..a1caf1746b 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/Utils.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/Utils.java @@ -177,10 +177,6 @@ public static Boolean shouldReplicate(ReplicationSpec replicationSpec, Table tab } if (replicationSpec.isInReplicationScope()) { - boolean isAcidTable = AcidUtils.isTransactionalTable(tableHandle); - if (isAcidTable) { - return hiveConf.getBoolVar(HiveConf.ConfVars.REPL_DUMP_INCLUDE_ACID_TABLES); - } return !tableHandle.isTemporary(); } return true; diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/events/CommitTxnHandler.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/events/CommitTxnHandler.java index db97d7c945..f04cd93069 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/events/CommitTxnHandler.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/events/CommitTxnHandler.java @@ -18,9 +18,27 @@ */ package org.apache.hadoop.hive.ql.parse.repl.dump.events; +import com.google.common.collect.Lists; +import org.apache.hadoop.fs.Path; +import org.apache.hadoop.hive.conf.HiveConf; +import org.apache.hadoop.hive.metastore.HiveMetaStore; +import org.apache.hadoop.hive.metastore.ReplChangeManager; import org.apache.hadoop.hive.metastore.api.NotificationEvent; +import org.apache.hadoop.hive.metastore.api.WriteEventInfo; +import org.apache.hadoop.hive.metastore.messaging.CommitTxnMessage; +import org.apache.hadoop.hive.metastore.utils.StringUtils; +import org.apache.hadoop.hive.ql.metadata.HiveUtils; +import org.apache.hadoop.hive.ql.metadata.Partition; +import org.apache.hadoop.hive.ql.parse.EximUtil; +import org.apache.hadoop.hive.ql.parse.SemanticException; import org.apache.hadoop.hive.ql.parse.repl.DumpType; import org.apache.hadoop.hive.ql.parse.repl.load.DumpMetaData; +import org.apache.hadoop.fs.FileSystem; +import java.io.BufferedWriter; +import java.io.IOException; +import java.io.OutputStreamWriter; +import java.util.ArrayList; +import java.util.List; class CommitTxnHandler extends AbstractEventHandler { @@ -28,11 +46,116 @@ super(event); } + private BufferedWriter writer(Context withinContext, Path dataPath) throws IOException { + Path filesPath = new Path(dataPath, EximUtil.FILES_NAME); + FileSystem fs = dataPath.getFileSystem(withinContext.hiveConf); + return new BufferedWriter(new OutputStreamWriter(fs.create(filesPath))); + } + + private void writeDumpFiles(Context withinContext, Iterable files, Path dataPath) throws IOException { + // encoded filename/checksum of files, write into _files + try (BufferedWriter fileListWriter = writer(withinContext, dataPath)) { + for (String file : files) { + fileListWriter.write(file + "\n"); + } + } + } + + private void createDumpFile(Context withinContext, org.apache.hadoop.hive.ql.metadata.Table qlMdTable, + List qlPtns, List> fileListArray) throws IOException, SemanticException { + if (fileListArray == null || fileListArray.isEmpty()) { + return; + } + + Path metaDataPath = new Path(withinContext.eventRoot, EximUtil.METADATA_NAME); + withinContext.replicationSpec.setIsReplace(true); + EximUtil.createExportDump(metaDataPath.getFileSystem(withinContext.hiveConf), metaDataPath, + qlMdTable, qlPtns, + withinContext.replicationSpec, + withinContext.hiveConf); + + if ((null == qlPtns) || qlPtns.isEmpty()) { + Path dataPath = new Path(withinContext.eventRoot, EximUtil.DATA_PATH_NAME); + writeDumpFiles(withinContext, fileListArray.get(0), dataPath); + } else { + for (int idx = 0; idx < qlPtns.size(); idx++) { + Path dataPath = new Path(withinContext.eventRoot, qlPtns.get(idx).getName()); + writeDumpFiles(withinContext, fileListArray.get(idx), dataPath); + } + } + } + + private void createDumpFileForTable(Context withinContext, org.apache.hadoop.hive.ql.metadata.Table qlMdTable, + List qlPtns, List> fileListArray) throws IOException, SemanticException { + Path newPath = HiveUtils.getDumpPath(withinContext.eventRoot, qlMdTable.getDbName(), qlMdTable.getTableName()); + Context context = new Context(withinContext); + context.setEventRoot(newPath); + createDumpFile(context, qlMdTable, qlPtns, fileListArray); + } + @Override public void handle(Context withinContext) throws Exception { LOG.info("Processing#{} COMMIT_TXN message : {}", fromEventId(), event.getMessage()); + String payload = event.getMessage(); + + if (!withinContext.hiveConf.getBoolVar(HiveConf.ConfVars.REPL_DUMP_METADATA_ONLY)) { + CommitTxnMessage commitTxnMessage = deserializer.getCommitTxnMessage(event.getMessage()); + + String contextDbName = withinContext.dbName == null ? null : + StringUtils.normalizeIdentifier(withinContext.dbName); + String contextTableName = withinContext.tableName == null ? null : + StringUtils.normalizeIdentifier(withinContext.tableName); + List writeEventInfoList = HiveMetaStore.HMSHandler.getMSForConf(withinContext.hiveConf). + getAllWriteEventInfo(commitTxnMessage.getTxnId(), contextDbName, contextTableName); + int numEntry = (writeEventInfoList != null ? writeEventInfoList.size() : 0); + if (numEntry != 0) { + commitTxnMessage.addWriteEventInfo(writeEventInfoList); + payload = commitTxnMessage.toString(); + LOG.debug("payload for commit txn event : " + payload); + } + + org.apache.hadoop.hive.ql.metadata.Table qlMdTablePrev = null; + org.apache.hadoop.hive.ql.metadata.Table qlMdTable = null; + List qlPtns = new ArrayList<>(); + List> filesTobeAdded = new ArrayList<>(); + + // The below loop creates dump directory for each table. It reads through the list of write notification events, + // groups the entries per table and creates the lists of files to be replicated. The event directory in the dump + // path will have subdirectory for each table. This folder will have metadata for the table and the list of files + // to be replicated. The entries are added in the table with txn id, db name,table name, partition name + // combination as primary key, so the entries with same table will come together. Only basic table metadata is + // used during import, so we need not dump the latest table metadata. + for (int idx = 0; idx < numEntry; idx++) { + qlMdTable = new org.apache.hadoop.hive.ql.metadata.Table(commitTxnMessage.getTableObj(idx)); + if (qlMdTablePrev == null) { + qlMdTablePrev = qlMdTable; + } + + // one dump directory per table + if (!qlMdTablePrev.getCompleteName().equals(qlMdTable.getCompleteName())) { + createDumpFileForTable(withinContext, qlMdTablePrev, qlPtns, filesTobeAdded); + qlPtns = new ArrayList<>(); + filesTobeAdded = new ArrayList<>(); + qlMdTablePrev = qlMdTable; + } + + if (qlMdTable.isPartitioned() && (null != commitTxnMessage.getPartitionObj(idx))) { + qlPtns.add(new org.apache.hadoop.hive.ql.metadata.Partition(qlMdTable, + commitTxnMessage.getPartitionObj(idx))); + } + + filesTobeAdded.add(Lists.newArrayList( + ReplChangeManager.getListFromSeparatedString(commitTxnMessage.getFiles(idx)))); + } + + //Dump last table in the list + if (qlMdTablePrev != null) { + createDumpFileForTable(withinContext, qlMdTablePrev, qlPtns, filesTobeAdded); + } + } + DumpMetaData dmd = withinContext.createDmd(this); - dmd.setPayload(event.getMessage()); + dmd.setPayload(payload); dmd.write(); } diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/events/EventHandler.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/events/EventHandler.java index c0fa7b2d4e..ec35f4e94d 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/events/EventHandler.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/events/EventHandler.java @@ -35,18 +35,37 @@ DumpType dumpType(); class Context { - final Path eventRoot, cmRoot; + Path eventRoot; + final Path cmRoot; final Hive db; final HiveConf hiveConf; final ReplicationSpec replicationSpec; + final String dbName; + final String tableName; public Context(Path eventRoot, Path cmRoot, Hive db, HiveConf hiveConf, - ReplicationSpec replicationSpec) { + ReplicationSpec replicationSpec, String dbName, String tableName) { this.eventRoot = eventRoot; this.cmRoot = cmRoot; this.db = db; this.hiveConf = hiveConf; this.replicationSpec = replicationSpec; + this.dbName = dbName; + this.tableName = tableName; + } + + public Context(Context other) { + this.eventRoot = other.eventRoot; + this.cmRoot = other.cmRoot; + this.db = other.db; + this.hiveConf = other.hiveConf; + this.replicationSpec = other.replicationSpec; + this.dbName = other.dbName; + this.tableName = other.tableName; + } + + public void setEventRoot(Path eventRoot) { + this.eventRoot = eventRoot; } DumpMetaData createDmd(EventHandler eventHandler) { diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/events/InsertHandler.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/events/InsertHandler.java index 5ac3af0c30..cf3822a3fe 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/events/InsertHandler.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/events/InsertHandler.java @@ -22,6 +22,7 @@ import org.apache.hadoop.hive.conf.HiveConf; import org.apache.hadoop.hive.metastore.api.NotificationEvent; import org.apache.hadoop.hive.metastore.messaging.InsertMessage; +import org.apache.hadoop.hive.ql.io.AcidUtils; import org.apache.hadoop.hive.ql.metadata.Partition; import org.apache.hadoop.hive.ql.parse.EximUtil; import org.apache.hadoop.hive.ql.parse.repl.DumpType; @@ -53,6 +54,9 @@ public void handle(Context withinContext) throws Exception { return; } + // In case of ACID tables, insert event should not have fired. + assert(!AcidUtils.isTransactionalTable(qlMdTable)); + List qlPtns = null; if (qlMdTable.isPartitioned() && (null != insertMsg.getPtnObj())) { qlPtns = Collections.singletonList(partitionObject(qlMdTable, insertMsg)); diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/load/UpdatedMetaDataTracker.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/load/UpdatedMetaDataTracker.java index d76f4193e0..84d3b8c9fa 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/load/UpdatedMetaDataTracker.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/load/UpdatedMetaDataTracker.java @@ -17,7 +17,11 @@ */ package org.apache.hadoop.hive.ql.parse.repl.load; +import org.apache.hadoop.hive.ql.metadata.HiveException; +import org.apache.hadoop.hive.ql.parse.SemanticException; +import org.apache.hive.common.util.HiveStringUtils; import java.util.ArrayList; +import java.util.HashMap; import java.util.Map; import java.util.List; @@ -25,52 +29,113 @@ * Utility class to help track and return the metadata which are updated by repl load */ public class UpdatedMetaDataTracker { - private String replState; - private String dbName; - private String tableName; - private List> partitionsList; - public UpdatedMetaDataTracker() { - this.replState = null; - this.dbName = null; - this.tableName = null; - this.partitionsList = new ArrayList<>(); + /** + * Utility class to store replication state of a table. + */ + public static class UpdateMetaData { + private String replState; + private String dbName; + private String tableName; + private List> partitionsList; + + UpdateMetaData(String replState, String dbName, String tableName, Map partSpec) { + this.replState = replState; + this.dbName = dbName; + this.tableName = tableName; + this.partitionsList = new ArrayList<>(); + if (partSpec != null) { + this.partitionsList.add(partSpec); + } + } + + public String getReplState() { + return replState; + } + + public String getDbName() { + return dbName; + } + + public String getTableName() { + return tableName; + } + + public List> getPartitionsList() { + return partitionsList; + } + + public void addPartition(Map partSpec) { + this.partitionsList.add(partSpec); + } } - public void copyUpdatedMetadata(UpdatedMetaDataTracker other) { - this.replState = other.replState; - this.dbName = other.dbName; - this.tableName = other.tableName; - this.partitionsList = other.getPartitions(); + private List updateMetaDataList; + private Map updateMetaDataMap; + + public UpdatedMetaDataTracker() { + updateMetaDataList = new ArrayList<>(); + updateMetaDataMap = new HashMap<>(); } - public void set(String replState, String dbName, String tableName, Map partSpec) { - this.replState = replState; - this.dbName = dbName; - this.tableName = tableName; - if (partSpec != null) { - addPartition(partSpec); + public void copyUpdatedMetadata(UpdatedMetaDataTracker other) { + int size = updateMetaDataList.size(); + for (UpdateMetaData updateMetaDataOther : other.updateMetaDataList) { + String key = getKey(normalizeIdentifier(updateMetaDataOther.getDbName()), + normalizeIdentifier(updateMetaDataOther.getTableName())); + Integer idx = updateMetaDataMap.get(key); + if (idx == null) { + updateMetaDataList.add(updateMetaDataOther); + updateMetaDataMap.put(key, size++); + } else if (updateMetaDataOther.partitionsList != null && updateMetaDataOther.partitionsList.size() != 0) { + UpdateMetaData updateMetaData = updateMetaDataList.get(idx); + for (Map partSpec : updateMetaDataOther.partitionsList) { + updateMetaData.addPartition(partSpec); + } + } } } - public void addPartition(Map partSpec) { - partitionsList.add(partSpec); + public void set(String replState, String dbName, String tableName, Map partSpec) + throws SemanticException { + if (dbName == null) { + throw new SemanticException("db name can not be null"); + } + String key = getKey(normalizeIdentifier(dbName), normalizeIdentifier(tableName)); + Integer idx = updateMetaDataMap.get(key); + if (idx == null) { + updateMetaDataList.add(new UpdateMetaData(replState, dbName, tableName, partSpec)); + updateMetaDataMap.put(key, updateMetaDataList.size() - 1); + } else { + updateMetaDataList.get(idx).addPartition(partSpec); + } } - public String getReplicationState() { - return replState; + public void addPartition(String dbName, String tableName, Map partSpec) throws SemanticException { + if (dbName == null) { + throw new SemanticException("db name can not be null"); + } + String key = getKey(normalizeIdentifier(dbName), normalizeIdentifier(tableName)); + Integer idx = updateMetaDataMap.get(key); + if (idx == null) { + throw new SemanticException("add partition to metadata map failed as list is not yet set for table : " + key); + } + updateMetaDataList.get(idx).addPartition(partSpec); } - public String getDatabase() { - return dbName; + public List getUpdateMetaDataList() { + return updateMetaDataList; } - public String getTable() { - return tableName; + private String getKey(String dbName, String tableName) { + if (tableName == null) { + return dbName + ".*"; + } + return dbName + "." + tableName; } - public List> getPartitions() { - return partitionsList; + private String normalizeIdentifier(String name) { + return name == null ? null : HiveStringUtils.normalizeIdentifier(name); } } diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/load/message/AbortTxnHandler.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/load/message/AbortTxnHandler.java index afc7426217..d3f3306366 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/load/message/AbortTxnHandler.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/load/message/AbortTxnHandler.java @@ -48,7 +48,12 @@ msg.getTxnId(), ReplTxnWork.OperationType.REPL_ABORT_TXN, context.eventOnlyReplicationSpec()), context.hiveConf ); - updatedMetadata.set(context.dmd.getEventTo().toString(), context.dbName, context.tableName, null); + + // For warehouse level dump, don't update the metadata of database as we don't know this txn is for which database. + // Anyways, if this event gets executed again, it is taken care of. + if (!context.isDbNameEmpty()) { + updatedMetadata.set(context.dmd.getEventTo().toString(), context.dbName, context.tableName, null); + } context.log.debug("Added Abort txn task : {}", abortTxnTask.getId()); return Collections.singletonList(abortTxnTask); } diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/load/message/AllocWriteIdHandler.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/load/message/AllocWriteIdHandler.java index 9bdbf649a6..63f2577bb5 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/load/message/AllocWriteIdHandler.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/load/message/AllocWriteIdHandler.java @@ -52,7 +52,7 @@ .getTableName()); // Repl policy should be created based on the table name in context. - ReplTxnWork work = new ReplTxnWork(HiveUtils.getReplPolicy(dbName, context.tableName), dbName, tableName, + ReplTxnWork work = new ReplTxnWork(HiveUtils.getReplPolicy(context.dbName, context.tableName), dbName, tableName, ReplTxnWork.OperationType.REPL_ALLOC_WRITE_ID, msg.getTxnToWriteIdList(), context.eventOnlyReplicationSpec()); Task allocWriteIdTask = TaskFactory.get(work, context.hiveConf); diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/load/message/CommitTxnHandler.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/load/message/CommitTxnHandler.java index d25102ef1d..e836354fd8 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/load/message/CommitTxnHandler.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/load/message/CommitTxnHandler.java @@ -17,7 +17,12 @@ */ package org.apache.hadoop.hive.ql.parse.repl.load.message; +import org.apache.hadoop.fs.Path; +import org.apache.hadoop.hive.metastore.api.WriteEventInfo; import org.apache.hadoop.hive.metastore.messaging.CommitTxnMessage; +import org.apache.hadoop.hive.ql.exec.repl.bootstrap.AddDependencyToLeaves; +import org.apache.hadoop.hive.ql.exec.util.DAGTraversal; +import org.apache.hadoop.hive.ql.metadata.Table; import org.apache.hadoop.hive.ql.plan.ReplTxnWork; import org.apache.hadoop.hive.ql.exec.Task; import org.apache.hadoop.hive.ql.exec.TaskFactory; @@ -25,7 +30,7 @@ import org.apache.hadoop.hive.ql.metadata.HiveUtils; import org.apache.hadoop.hive.ql.parse.SemanticException; import java.io.Serializable; -import java.util.Collections; +import java.util.ArrayList; import java.util.List; /** @@ -35,20 +40,74 @@ public class CommitTxnHandler extends AbstractMessageHandler { @Override public List> handle(Context context) - throws SemanticException { + throws SemanticException { if (!AcidUtils.isAcidEnabled(context.hiveConf)) { context.log.error("Cannot load transaction events as acid is not enabled"); throw new SemanticException("Cannot load transaction events as acid is not enabled"); } CommitTxnMessage msg = deserializer.getCommitTxnMessage(context.dmd.getPayload()); - Task commitTxnTask = TaskFactory.get( - new ReplTxnWork(HiveUtils.getReplPolicy(context.dbName, context.tableName), context.dbName, context.tableName, - msg.getTxnId(), ReplTxnWork.OperationType.REPL_COMMIT_TXN, context.eventOnlyReplicationSpec()), - context.hiveConf - ); - updatedMetadata.set(context.dmd.getEventTo().toString(), context.dbName, context.tableName, null); + int numEntry = (msg.getTables() == null ? 0 : msg.getTables().size()); + List> tasks = new ArrayList<>(); + String dbName = context.dbName; + String tableNamePrev = null; + String tblName = context.tableName; + + ReplTxnWork work = new ReplTxnWork(HiveUtils.getReplPolicy(context.dbName, context.tableName), context.dbName, + context.tableName, msg.getTxnId(), ReplTxnWork.OperationType.REPL_COMMIT_TXN, context.eventOnlyReplicationSpec()); + + if (numEntry > 0) { + context.log.debug("Commit txn handler for txnid " + msg.getTxnId() + " databases : " + msg.getDatabases() + + " tables : " + msg.getTables() + " partitions : " + msg.getPartitions() + " files : " + + msg.getFilesList() + " write ids : " + msg.getWriteIds()); + } + + for (int idx = 0; idx < numEntry; idx++) { + String actualTblName = msg.getTables().get(idx); + String actualDBName = msg.getDatabases().get(idx); + String completeName = Table.getCompleteName(actualDBName, actualTblName); + + // One import task per table. Events for same table are kept together in one dump directory during dump and are + // grouped together in commit txn message. + if (tableNamePrev == null || !(completeName.equals(tableNamePrev))) { + // The data location is created by source, so the location should be formed based on the table name in msg. + Path location = HiveUtils.getDumpPath(new Path(context.location), actualDBName, actualTblName); + tblName = context.isTableNameEmpty() ? actualTblName : context.tableName; + dbName = (context.isDbNameEmpty() ? actualDBName : context.dbName); // for warehouse level dump, use db name from write event + Context currentContext = new Context(context, dbName, tblName); + currentContext.setLocation(location.toUri().toString()); + + // Piggybacking in Import logic for now + TableHandler tableHandler = new TableHandler(); + tasks.addAll((tableHandler.handle(currentContext))); + readEntitySet.addAll(tableHandler.readEntities()); + writeEntitySet.addAll(tableHandler.writeEntities()); + getUpdatedMetadata().copyUpdatedMetadata(tableHandler.getUpdatedMetadata()); + tableNamePrev = completeName; + } + + try { + WriteEventInfo writeEventInfo = new WriteEventInfo(msg.getWriteIds().get(idx), + dbName, tblName, msg.getFiles(idx)); + if (msg.getPartitions().get(idx) != null && !msg.getPartitions().get(idx).isEmpty()) { + writeEventInfo.setPartition(msg.getPartitions().get(idx)); + } + work.addWriteEventInfo(writeEventInfo); + } catch (Exception e) { + throw new SemanticException("Failed to extract write event info from commit txn message : " + e.getMessage()); + } + } + + Task commitTxnTask = TaskFactory.get(work, context.hiveConf); + + // For warehouse level dump, don't update the metadata of database as we don't know this txn is for which database. + // Anyways, if this event gets executed again, it is taken care of. + if (!context.isDbNameEmpty()) { + updatedMetadata.set(context.dmd.getEventTo().toString(), context.dbName, context.tableName, null); + } context.log.debug("Added Commit txn task : {}", commitTxnTask.getId()); - return Collections.singletonList(commitTxnTask); + DAGTraversal.traverse(tasks, new AddDependencyToLeaves(commitTxnTask)); + return tasks; } } + diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/load/message/MessageHandler.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/load/message/MessageHandler.java index ef4a901b8f..cdf51dd12c 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/load/message/MessageHandler.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/load/message/MessageHandler.java @@ -46,8 +46,8 @@ UpdatedMetaDataTracker getUpdatedMetadata(); class Context { - public String dbName; - public final String tableName, location; + public String location; + public final String tableName, dbName; public final Task precursor; public DumpMetaData dmd; final HiveConf hiveConf; @@ -101,5 +101,9 @@ ReplicationSpec eventOnlyReplicationSpec() throws SemanticException { public HiveTxnManager getTxnMgr() { return nestedContext.getHiveTxnManager(); } + + public void setLocation(String location) { + this.location = location; + } } } diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/load/message/OpenTxnHandler.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/load/message/OpenTxnHandler.java index 190e02172f..5dcc44e56b 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/load/message/OpenTxnHandler.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/load/message/OpenTxnHandler.java @@ -47,7 +47,12 @@ msg.getTxnIds(), ReplTxnWork.OperationType.REPL_OPEN_TXN, context.eventOnlyReplicationSpec()), context.hiveConf ); - updatedMetadata.set(context.dmd.getEventTo().toString(), context.dbName, context.tableName, null); + + // For warehouse level dump, don't update the metadata of database as we don't know this txn is for which database. + // Anyways, if this event gets executed again, it is taken care of. + if (!context.isDbNameEmpty()) { + updatedMetadata.set(context.dmd.getEventTo().toString(), context.dbName, context.tableName, null); + } context.log.debug("Added Open txn task : {}", openTxnTask.getId()); return Collections.singletonList(openTxnTask); } diff --git a/ql/src/java/org/apache/hadoop/hive/ql/plan/MoveWork.java b/ql/src/java/org/apache/hadoop/hive/ql/plan/MoveWork.java index 9a1e3a1af5..47a56d5ade 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/plan/MoveWork.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/plan/MoveWork.java @@ -40,6 +40,7 @@ private LoadMultiFilesDesc loadMultiFilesWork; private boolean checkFileFormat; private boolean srcLocal; + private boolean needCleanTarget; /** * ReadEntitites that are passed to the hooks. @@ -63,6 +64,7 @@ public MoveWork() { private MoveWork(HashSet inputs, HashSet outputs) { this.inputs = inputs; this.outputs = outputs; + this.needCleanTarget = true; } public MoveWork(HashSet inputs, HashSet outputs, @@ -93,6 +95,7 @@ public MoveWork(final MoveWork o) { srcLocal = o.isSrcLocal(); inputs = o.getInputs(); outputs = o.getOutputs(); + needCleanTarget = o.needCleanTarget; } @Explain(displayName = "tables", explainLevels = { Level.USER, Level.DEFAULT, Level.EXTENDED }) @@ -153,5 +156,12 @@ public boolean isSrcLocal() { public void setSrcLocal(boolean srcLocal) { this.srcLocal = srcLocal; } - + + public boolean isNeedCleanTarget() { + return needCleanTarget; + } + + public void setNeedCleanTarget(boolean needCleanTarget) { + this.needCleanTarget = needCleanTarget; + } } diff --git a/ql/src/java/org/apache/hadoop/hive/ql/plan/ReplTxnWork.java b/ql/src/java/org/apache/hadoop/hive/ql/plan/ReplTxnWork.java index 3c853c9ccd..a6ab83659d 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/plan/ReplTxnWork.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/plan/ReplTxnWork.java @@ -20,8 +20,10 @@ import java.io.Serializable; import org.apache.hadoop.hive.metastore.api.TxnToWriteId; +import org.apache.hadoop.hive.metastore.api.WriteEventInfo; import org.apache.hadoop.hive.ql.parse.ReplicationSpec; import org.apache.hadoop.hive.ql.plan.Explain.Level; +import java.util.ArrayList; import java.util.Collections; import java.util.List; @@ -40,6 +42,7 @@ private List txnIds; private List txnToWriteIdList; private ReplicationSpec replicationSpec; + private List writeEventInfos; /** * OperationType. @@ -60,6 +63,7 @@ public ReplTxnWork(String replPolicy, String dbName, String tableName, List txnIds, OperationType type, @@ -86,6 +90,13 @@ public ReplTxnWork(String dbName, String tableName, List partNames, this.operation = type; } + public void addWriteEventInfo(WriteEventInfo writeEventInfo) { + if (this.writeEventInfos == null) { + this.writeEventInfos = new ArrayList<>(); + } + this.writeEventInfos.add(writeEventInfo); + } + public List getTxnIds() { return txnIds; } @@ -121,4 +132,8 @@ public OperationType getOperationType() { public ReplicationSpec getReplicationSpec() { return replicationSpec; } + + public List getWriteEventInfos() { + return writeEventInfos; + } } diff --git a/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp b/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp index ddb175e314..9b0df3f0ea 100644 --- a/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp +++ b/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp @@ -2107,14 +2107,14 @@ uint32_t ThriftHiveMetastore_get_databases_result::read(::apache::thrift::protoc if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1200; - ::apache::thrift::protocol::TType _etype1203; - xfer += iprot->readListBegin(_etype1203, _size1200); - this->success.resize(_size1200); - uint32_t _i1204; - for (_i1204 = 0; _i1204 < _size1200; ++_i1204) + uint32_t _size1224; + ::apache::thrift::protocol::TType _etype1227; + xfer += iprot->readListBegin(_etype1227, _size1224); + this->success.resize(_size1224); + uint32_t _i1228; + for (_i1228 = 0; _i1228 < _size1224; ++_i1228) { - xfer += iprot->readString(this->success[_i1204]); + xfer += iprot->readString(this->success[_i1228]); } xfer += iprot->readListEnd(); } @@ -2153,10 +2153,10 @@ uint32_t ThriftHiveMetastore_get_databases_result::write(::apache::thrift::proto xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter1205; - for (_iter1205 = this->success.begin(); _iter1205 != this->success.end(); ++_iter1205) + std::vector ::const_iterator _iter1229; + for (_iter1229 = this->success.begin(); _iter1229 != this->success.end(); ++_iter1229) { - xfer += oprot->writeString((*_iter1205)); + xfer += oprot->writeString((*_iter1229)); } xfer += oprot->writeListEnd(); } @@ -2201,14 +2201,14 @@ uint32_t ThriftHiveMetastore_get_databases_presult::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1206; - ::apache::thrift::protocol::TType _etype1209; - xfer += iprot->readListBegin(_etype1209, _size1206); - (*(this->success)).resize(_size1206); - uint32_t _i1210; - for (_i1210 = 0; _i1210 < _size1206; ++_i1210) + uint32_t _size1230; + ::apache::thrift::protocol::TType _etype1233; + xfer += iprot->readListBegin(_etype1233, _size1230); + (*(this->success)).resize(_size1230); + uint32_t _i1234; + for (_i1234 = 0; _i1234 < _size1230; ++_i1234) { - xfer += iprot->readString((*(this->success))[_i1210]); + xfer += iprot->readString((*(this->success))[_i1234]); } xfer += iprot->readListEnd(); } @@ -2325,14 +2325,14 @@ uint32_t ThriftHiveMetastore_get_all_databases_result::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1211; - ::apache::thrift::protocol::TType _etype1214; - xfer += iprot->readListBegin(_etype1214, _size1211); - this->success.resize(_size1211); - uint32_t _i1215; - for (_i1215 = 0; _i1215 < _size1211; ++_i1215) + uint32_t _size1235; + ::apache::thrift::protocol::TType _etype1238; + xfer += iprot->readListBegin(_etype1238, _size1235); + this->success.resize(_size1235); + uint32_t _i1239; + for (_i1239 = 0; _i1239 < _size1235; ++_i1239) { - xfer += iprot->readString(this->success[_i1215]); + xfer += iprot->readString(this->success[_i1239]); } xfer += iprot->readListEnd(); } @@ -2371,10 +2371,10 @@ uint32_t ThriftHiveMetastore_get_all_databases_result::write(::apache::thrift::p xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter1216; - for (_iter1216 = this->success.begin(); _iter1216 != this->success.end(); ++_iter1216) + std::vector ::const_iterator _iter1240; + for (_iter1240 = this->success.begin(); _iter1240 != this->success.end(); ++_iter1240) { - xfer += oprot->writeString((*_iter1216)); + xfer += oprot->writeString((*_iter1240)); } xfer += oprot->writeListEnd(); } @@ -2419,14 +2419,14 @@ uint32_t ThriftHiveMetastore_get_all_databases_presult::read(::apache::thrift::p if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1217; - ::apache::thrift::protocol::TType _etype1220; - xfer += iprot->readListBegin(_etype1220, _size1217); - (*(this->success)).resize(_size1217); - uint32_t _i1221; - for (_i1221 = 0; _i1221 < _size1217; ++_i1221) + uint32_t _size1241; + ::apache::thrift::protocol::TType _etype1244; + xfer += iprot->readListBegin(_etype1244, _size1241); + (*(this->success)).resize(_size1241); + uint32_t _i1245; + for (_i1245 = 0; _i1245 < _size1241; ++_i1245) { - xfer += iprot->readString((*(this->success))[_i1221]); + xfer += iprot->readString((*(this->success))[_i1245]); } xfer += iprot->readListEnd(); } @@ -3488,17 +3488,17 @@ uint32_t ThriftHiveMetastore_get_type_all_result::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_MAP) { { this->success.clear(); - uint32_t _size1222; - ::apache::thrift::protocol::TType _ktype1223; - ::apache::thrift::protocol::TType _vtype1224; - xfer += iprot->readMapBegin(_ktype1223, _vtype1224, _size1222); - uint32_t _i1226; - for (_i1226 = 0; _i1226 < _size1222; ++_i1226) + uint32_t _size1246; + ::apache::thrift::protocol::TType _ktype1247; + ::apache::thrift::protocol::TType _vtype1248; + xfer += iprot->readMapBegin(_ktype1247, _vtype1248, _size1246); + uint32_t _i1250; + for (_i1250 = 0; _i1250 < _size1246; ++_i1250) { - std::string _key1227; - xfer += iprot->readString(_key1227); - Type& _val1228 = this->success[_key1227]; - xfer += _val1228.read(iprot); + std::string _key1251; + xfer += iprot->readString(_key1251); + Type& _val1252 = this->success[_key1251]; + xfer += _val1252.read(iprot); } xfer += iprot->readMapEnd(); } @@ -3537,11 +3537,11 @@ uint32_t ThriftHiveMetastore_get_type_all_result::write(::apache::thrift::protoc xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::map ::const_iterator _iter1229; - for (_iter1229 = this->success.begin(); _iter1229 != this->success.end(); ++_iter1229) + std::map ::const_iterator _iter1253; + for (_iter1253 = this->success.begin(); _iter1253 != this->success.end(); ++_iter1253) { - xfer += oprot->writeString(_iter1229->first); - xfer += _iter1229->second.write(oprot); + xfer += oprot->writeString(_iter1253->first); + xfer += _iter1253->second.write(oprot); } xfer += oprot->writeMapEnd(); } @@ -3586,17 +3586,17 @@ uint32_t ThriftHiveMetastore_get_type_all_presult::read(::apache::thrift::protoc if (ftype == ::apache::thrift::protocol::T_MAP) { { (*(this->success)).clear(); - uint32_t _size1230; - ::apache::thrift::protocol::TType _ktype1231; - ::apache::thrift::protocol::TType _vtype1232; - xfer += iprot->readMapBegin(_ktype1231, _vtype1232, _size1230); - uint32_t _i1234; - for (_i1234 = 0; _i1234 < _size1230; ++_i1234) + uint32_t _size1254; + ::apache::thrift::protocol::TType _ktype1255; + ::apache::thrift::protocol::TType _vtype1256; + xfer += iprot->readMapBegin(_ktype1255, _vtype1256, _size1254); + uint32_t _i1258; + for (_i1258 = 0; _i1258 < _size1254; ++_i1258) { - std::string _key1235; - xfer += iprot->readString(_key1235); - Type& _val1236 = (*(this->success))[_key1235]; - xfer += _val1236.read(iprot); + std::string _key1259; + xfer += iprot->readString(_key1259); + Type& _val1260 = (*(this->success))[_key1259]; + xfer += _val1260.read(iprot); } xfer += iprot->readMapEnd(); } @@ -3750,14 +3750,14 @@ uint32_t ThriftHiveMetastore_get_fields_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1237; - ::apache::thrift::protocol::TType _etype1240; - xfer += iprot->readListBegin(_etype1240, _size1237); - this->success.resize(_size1237); - uint32_t _i1241; - for (_i1241 = 0; _i1241 < _size1237; ++_i1241) + uint32_t _size1261; + ::apache::thrift::protocol::TType _etype1264; + xfer += iprot->readListBegin(_etype1264, _size1261); + this->success.resize(_size1261); + uint32_t _i1265; + for (_i1265 = 0; _i1265 < _size1261; ++_i1265) { - xfer += this->success[_i1241].read(iprot); + xfer += this->success[_i1265].read(iprot); } xfer += iprot->readListEnd(); } @@ -3812,10 +3812,10 @@ uint32_t ThriftHiveMetastore_get_fields_result::write(::apache::thrift::protocol xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter1242; - for (_iter1242 = this->success.begin(); _iter1242 != this->success.end(); ++_iter1242) + std::vector ::const_iterator _iter1266; + for (_iter1266 = this->success.begin(); _iter1266 != this->success.end(); ++_iter1266) { - xfer += (*_iter1242).write(oprot); + xfer += (*_iter1266).write(oprot); } xfer += oprot->writeListEnd(); } @@ -3868,14 +3868,14 @@ uint32_t ThriftHiveMetastore_get_fields_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1243; - ::apache::thrift::protocol::TType _etype1246; - xfer += iprot->readListBegin(_etype1246, _size1243); - (*(this->success)).resize(_size1243); - uint32_t _i1247; - for (_i1247 = 0; _i1247 < _size1243; ++_i1247) + uint32_t _size1267; + ::apache::thrift::protocol::TType _etype1270; + xfer += iprot->readListBegin(_etype1270, _size1267); + (*(this->success)).resize(_size1267); + uint32_t _i1271; + for (_i1271 = 0; _i1271 < _size1267; ++_i1271) { - xfer += (*(this->success))[_i1247].read(iprot); + xfer += (*(this->success))[_i1271].read(iprot); } xfer += iprot->readListEnd(); } @@ -4061,14 +4061,14 @@ uint32_t ThriftHiveMetastore_get_fields_with_environment_context_result::read(:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1248; - ::apache::thrift::protocol::TType _etype1251; - xfer += iprot->readListBegin(_etype1251, _size1248); - this->success.resize(_size1248); - uint32_t _i1252; - for (_i1252 = 0; _i1252 < _size1248; ++_i1252) + uint32_t _size1272; + ::apache::thrift::protocol::TType _etype1275; + xfer += iprot->readListBegin(_etype1275, _size1272); + this->success.resize(_size1272); + uint32_t _i1276; + for (_i1276 = 0; _i1276 < _size1272; ++_i1276) { - xfer += this->success[_i1252].read(iprot); + xfer += this->success[_i1276].read(iprot); } xfer += iprot->readListEnd(); } @@ -4123,10 +4123,10 @@ uint32_t ThriftHiveMetastore_get_fields_with_environment_context_result::write(: xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter1253; - for (_iter1253 = this->success.begin(); _iter1253 != this->success.end(); ++_iter1253) + std::vector ::const_iterator _iter1277; + for (_iter1277 = this->success.begin(); _iter1277 != this->success.end(); ++_iter1277) { - xfer += (*_iter1253).write(oprot); + xfer += (*_iter1277).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4179,14 +4179,14 @@ uint32_t ThriftHiveMetastore_get_fields_with_environment_context_presult::read(: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1254; - ::apache::thrift::protocol::TType _etype1257; - xfer += iprot->readListBegin(_etype1257, _size1254); - (*(this->success)).resize(_size1254); - uint32_t _i1258; - for (_i1258 = 0; _i1258 < _size1254; ++_i1258) + uint32_t _size1278; + ::apache::thrift::protocol::TType _etype1281; + xfer += iprot->readListBegin(_etype1281, _size1278); + (*(this->success)).resize(_size1278); + uint32_t _i1282; + for (_i1282 = 0; _i1282 < _size1278; ++_i1282) { - xfer += (*(this->success))[_i1258].read(iprot); + xfer += (*(this->success))[_i1282].read(iprot); } xfer += iprot->readListEnd(); } @@ -4356,14 +4356,14 @@ uint32_t ThriftHiveMetastore_get_schema_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1259; - ::apache::thrift::protocol::TType _etype1262; - xfer += iprot->readListBegin(_etype1262, _size1259); - this->success.resize(_size1259); - uint32_t _i1263; - for (_i1263 = 0; _i1263 < _size1259; ++_i1263) + uint32_t _size1283; + ::apache::thrift::protocol::TType _etype1286; + xfer += iprot->readListBegin(_etype1286, _size1283); + this->success.resize(_size1283); + uint32_t _i1287; + for (_i1287 = 0; _i1287 < _size1283; ++_i1287) { - xfer += this->success[_i1263].read(iprot); + xfer += this->success[_i1287].read(iprot); } xfer += iprot->readListEnd(); } @@ -4418,10 +4418,10 @@ uint32_t ThriftHiveMetastore_get_schema_result::write(::apache::thrift::protocol xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter1264; - for (_iter1264 = this->success.begin(); _iter1264 != this->success.end(); ++_iter1264) + std::vector ::const_iterator _iter1288; + for (_iter1288 = this->success.begin(); _iter1288 != this->success.end(); ++_iter1288) { - xfer += (*_iter1264).write(oprot); + xfer += (*_iter1288).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4474,14 +4474,14 @@ uint32_t ThriftHiveMetastore_get_schema_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1265; - ::apache::thrift::protocol::TType _etype1268; - xfer += iprot->readListBegin(_etype1268, _size1265); - (*(this->success)).resize(_size1265); - uint32_t _i1269; - for (_i1269 = 0; _i1269 < _size1265; ++_i1269) + uint32_t _size1289; + ::apache::thrift::protocol::TType _etype1292; + xfer += iprot->readListBegin(_etype1292, _size1289); + (*(this->success)).resize(_size1289); + uint32_t _i1293; + for (_i1293 = 0; _i1293 < _size1289; ++_i1293) { - xfer += (*(this->success))[_i1269].read(iprot); + xfer += (*(this->success))[_i1293].read(iprot); } xfer += iprot->readListEnd(); } @@ -4667,14 +4667,14 @@ uint32_t ThriftHiveMetastore_get_schema_with_environment_context_result::read(:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1270; - ::apache::thrift::protocol::TType _etype1273; - xfer += iprot->readListBegin(_etype1273, _size1270); - this->success.resize(_size1270); - uint32_t _i1274; - for (_i1274 = 0; _i1274 < _size1270; ++_i1274) + uint32_t _size1294; + ::apache::thrift::protocol::TType _etype1297; + xfer += iprot->readListBegin(_etype1297, _size1294); + this->success.resize(_size1294); + uint32_t _i1298; + for (_i1298 = 0; _i1298 < _size1294; ++_i1298) { - xfer += this->success[_i1274].read(iprot); + xfer += this->success[_i1298].read(iprot); } xfer += iprot->readListEnd(); } @@ -4729,10 +4729,10 @@ uint32_t ThriftHiveMetastore_get_schema_with_environment_context_result::write(: xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter1275; - for (_iter1275 = this->success.begin(); _iter1275 != this->success.end(); ++_iter1275) + std::vector ::const_iterator _iter1299; + for (_iter1299 = this->success.begin(); _iter1299 != this->success.end(); ++_iter1299) { - xfer += (*_iter1275).write(oprot); + xfer += (*_iter1299).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4785,14 +4785,14 @@ uint32_t ThriftHiveMetastore_get_schema_with_environment_context_presult::read(: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1276; - ::apache::thrift::protocol::TType _etype1279; - xfer += iprot->readListBegin(_etype1279, _size1276); - (*(this->success)).resize(_size1276); - uint32_t _i1280; - for (_i1280 = 0; _i1280 < _size1276; ++_i1280) + uint32_t _size1300; + ::apache::thrift::protocol::TType _etype1303; + xfer += iprot->readListBegin(_etype1303, _size1300); + (*(this->success)).resize(_size1300); + uint32_t _i1304; + for (_i1304 = 0; _i1304 < _size1300; ++_i1304) { - xfer += (*(this->success))[_i1280].read(iprot); + xfer += (*(this->success))[_i1304].read(iprot); } xfer += iprot->readListEnd(); } @@ -5385,14 +5385,14 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::read(::apache:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->primaryKeys.clear(); - uint32_t _size1281; - ::apache::thrift::protocol::TType _etype1284; - xfer += iprot->readListBegin(_etype1284, _size1281); - this->primaryKeys.resize(_size1281); - uint32_t _i1285; - for (_i1285 = 0; _i1285 < _size1281; ++_i1285) + uint32_t _size1305; + ::apache::thrift::protocol::TType _etype1308; + xfer += iprot->readListBegin(_etype1308, _size1305); + this->primaryKeys.resize(_size1305); + uint32_t _i1309; + for (_i1309 = 0; _i1309 < _size1305; ++_i1309) { - xfer += this->primaryKeys[_i1285].read(iprot); + xfer += this->primaryKeys[_i1309].read(iprot); } xfer += iprot->readListEnd(); } @@ -5405,14 +5405,14 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::read(::apache:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->foreignKeys.clear(); - uint32_t _size1286; - ::apache::thrift::protocol::TType _etype1289; - xfer += iprot->readListBegin(_etype1289, _size1286); - this->foreignKeys.resize(_size1286); - uint32_t _i1290; - for (_i1290 = 0; _i1290 < _size1286; ++_i1290) + uint32_t _size1310; + ::apache::thrift::protocol::TType _etype1313; + xfer += iprot->readListBegin(_etype1313, _size1310); + this->foreignKeys.resize(_size1310); + uint32_t _i1314; + for (_i1314 = 0; _i1314 < _size1310; ++_i1314) { - xfer += this->foreignKeys[_i1290].read(iprot); + xfer += this->foreignKeys[_i1314].read(iprot); } xfer += iprot->readListEnd(); } @@ -5425,14 +5425,14 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::read(::apache:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->uniqueConstraints.clear(); - uint32_t _size1291; - ::apache::thrift::protocol::TType _etype1294; - xfer += iprot->readListBegin(_etype1294, _size1291); - this->uniqueConstraints.resize(_size1291); - uint32_t _i1295; - for (_i1295 = 0; _i1295 < _size1291; ++_i1295) + uint32_t _size1315; + ::apache::thrift::protocol::TType _etype1318; + xfer += iprot->readListBegin(_etype1318, _size1315); + this->uniqueConstraints.resize(_size1315); + uint32_t _i1319; + for (_i1319 = 0; _i1319 < _size1315; ++_i1319) { - xfer += this->uniqueConstraints[_i1295].read(iprot); + xfer += this->uniqueConstraints[_i1319].read(iprot); } xfer += iprot->readListEnd(); } @@ -5445,14 +5445,14 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::read(::apache:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->notNullConstraints.clear(); - uint32_t _size1296; - ::apache::thrift::protocol::TType _etype1299; - xfer += iprot->readListBegin(_etype1299, _size1296); - this->notNullConstraints.resize(_size1296); - uint32_t _i1300; - for (_i1300 = 0; _i1300 < _size1296; ++_i1300) + uint32_t _size1320; + ::apache::thrift::protocol::TType _etype1323; + xfer += iprot->readListBegin(_etype1323, _size1320); + this->notNullConstraints.resize(_size1320); + uint32_t _i1324; + for (_i1324 = 0; _i1324 < _size1320; ++_i1324) { - xfer += this->notNullConstraints[_i1300].read(iprot); + xfer += this->notNullConstraints[_i1324].read(iprot); } xfer += iprot->readListEnd(); } @@ -5465,14 +5465,14 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::read(::apache:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->defaultConstraints.clear(); - uint32_t _size1301; - ::apache::thrift::protocol::TType _etype1304; - xfer += iprot->readListBegin(_etype1304, _size1301); - this->defaultConstraints.resize(_size1301); - uint32_t _i1305; - for (_i1305 = 0; _i1305 < _size1301; ++_i1305) + uint32_t _size1325; + ::apache::thrift::protocol::TType _etype1328; + xfer += iprot->readListBegin(_etype1328, _size1325); + this->defaultConstraints.resize(_size1325); + uint32_t _i1329; + for (_i1329 = 0; _i1329 < _size1325; ++_i1329) { - xfer += this->defaultConstraints[_i1305].read(iprot); + xfer += this->defaultConstraints[_i1329].read(iprot); } xfer += iprot->readListEnd(); } @@ -5485,14 +5485,14 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::read(::apache:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->checkConstraints.clear(); - uint32_t _size1306; - ::apache::thrift::protocol::TType _etype1309; - xfer += iprot->readListBegin(_etype1309, _size1306); - this->checkConstraints.resize(_size1306); - uint32_t _i1310; - for (_i1310 = 0; _i1310 < _size1306; ++_i1310) + uint32_t _size1330; + ::apache::thrift::protocol::TType _etype1333; + xfer += iprot->readListBegin(_etype1333, _size1330); + this->checkConstraints.resize(_size1330); + uint32_t _i1334; + for (_i1334 = 0; _i1334 < _size1330; ++_i1334) { - xfer += this->checkConstraints[_i1310].read(iprot); + xfer += this->checkConstraints[_i1334].read(iprot); } xfer += iprot->readListEnd(); } @@ -5525,10 +5525,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::write(::apache: xfer += oprot->writeFieldBegin("primaryKeys", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->primaryKeys.size())); - std::vector ::const_iterator _iter1311; - for (_iter1311 = this->primaryKeys.begin(); _iter1311 != this->primaryKeys.end(); ++_iter1311) + std::vector ::const_iterator _iter1335; + for (_iter1335 = this->primaryKeys.begin(); _iter1335 != this->primaryKeys.end(); ++_iter1335) { - xfer += (*_iter1311).write(oprot); + xfer += (*_iter1335).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5537,10 +5537,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::write(::apache: xfer += oprot->writeFieldBegin("foreignKeys", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->foreignKeys.size())); - std::vector ::const_iterator _iter1312; - for (_iter1312 = this->foreignKeys.begin(); _iter1312 != this->foreignKeys.end(); ++_iter1312) + std::vector ::const_iterator _iter1336; + for (_iter1336 = this->foreignKeys.begin(); _iter1336 != this->foreignKeys.end(); ++_iter1336) { - xfer += (*_iter1312).write(oprot); + xfer += (*_iter1336).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5549,10 +5549,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::write(::apache: xfer += oprot->writeFieldBegin("uniqueConstraints", ::apache::thrift::protocol::T_LIST, 4); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->uniqueConstraints.size())); - std::vector ::const_iterator _iter1313; - for (_iter1313 = this->uniqueConstraints.begin(); _iter1313 != this->uniqueConstraints.end(); ++_iter1313) + std::vector ::const_iterator _iter1337; + for (_iter1337 = this->uniqueConstraints.begin(); _iter1337 != this->uniqueConstraints.end(); ++_iter1337) { - xfer += (*_iter1313).write(oprot); + xfer += (*_iter1337).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5561,10 +5561,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::write(::apache: xfer += oprot->writeFieldBegin("notNullConstraints", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->notNullConstraints.size())); - std::vector ::const_iterator _iter1314; - for (_iter1314 = this->notNullConstraints.begin(); _iter1314 != this->notNullConstraints.end(); ++_iter1314) + std::vector ::const_iterator _iter1338; + for (_iter1338 = this->notNullConstraints.begin(); _iter1338 != this->notNullConstraints.end(); ++_iter1338) { - xfer += (*_iter1314).write(oprot); + xfer += (*_iter1338).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5573,10 +5573,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::write(::apache: xfer += oprot->writeFieldBegin("defaultConstraints", ::apache::thrift::protocol::T_LIST, 6); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->defaultConstraints.size())); - std::vector ::const_iterator _iter1315; - for (_iter1315 = this->defaultConstraints.begin(); _iter1315 != this->defaultConstraints.end(); ++_iter1315) + std::vector ::const_iterator _iter1339; + for (_iter1339 = this->defaultConstraints.begin(); _iter1339 != this->defaultConstraints.end(); ++_iter1339) { - xfer += (*_iter1315).write(oprot); + xfer += (*_iter1339).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5585,10 +5585,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::write(::apache: xfer += oprot->writeFieldBegin("checkConstraints", ::apache::thrift::protocol::T_LIST, 7); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->checkConstraints.size())); - std::vector ::const_iterator _iter1316; - for (_iter1316 = this->checkConstraints.begin(); _iter1316 != this->checkConstraints.end(); ++_iter1316) + std::vector ::const_iterator _iter1340; + for (_iter1340 = this->checkConstraints.begin(); _iter1340 != this->checkConstraints.end(); ++_iter1340) { - xfer += (*_iter1316).write(oprot); + xfer += (*_iter1340).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5616,10 +5616,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_pargs::write(::apache xfer += oprot->writeFieldBegin("primaryKeys", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*(this->primaryKeys)).size())); - std::vector ::const_iterator _iter1317; - for (_iter1317 = (*(this->primaryKeys)).begin(); _iter1317 != (*(this->primaryKeys)).end(); ++_iter1317) + std::vector ::const_iterator _iter1341; + for (_iter1341 = (*(this->primaryKeys)).begin(); _iter1341 != (*(this->primaryKeys)).end(); ++_iter1341) { - xfer += (*_iter1317).write(oprot); + xfer += (*_iter1341).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5628,10 +5628,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_pargs::write(::apache xfer += oprot->writeFieldBegin("foreignKeys", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*(this->foreignKeys)).size())); - std::vector ::const_iterator _iter1318; - for (_iter1318 = (*(this->foreignKeys)).begin(); _iter1318 != (*(this->foreignKeys)).end(); ++_iter1318) + std::vector ::const_iterator _iter1342; + for (_iter1342 = (*(this->foreignKeys)).begin(); _iter1342 != (*(this->foreignKeys)).end(); ++_iter1342) { - xfer += (*_iter1318).write(oprot); + xfer += (*_iter1342).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5640,10 +5640,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_pargs::write(::apache xfer += oprot->writeFieldBegin("uniqueConstraints", ::apache::thrift::protocol::T_LIST, 4); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*(this->uniqueConstraints)).size())); - std::vector ::const_iterator _iter1319; - for (_iter1319 = (*(this->uniqueConstraints)).begin(); _iter1319 != (*(this->uniqueConstraints)).end(); ++_iter1319) + std::vector ::const_iterator _iter1343; + for (_iter1343 = (*(this->uniqueConstraints)).begin(); _iter1343 != (*(this->uniqueConstraints)).end(); ++_iter1343) { - xfer += (*_iter1319).write(oprot); + xfer += (*_iter1343).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5652,10 +5652,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_pargs::write(::apache xfer += oprot->writeFieldBegin("notNullConstraints", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*(this->notNullConstraints)).size())); - std::vector ::const_iterator _iter1320; - for (_iter1320 = (*(this->notNullConstraints)).begin(); _iter1320 != (*(this->notNullConstraints)).end(); ++_iter1320) + std::vector ::const_iterator _iter1344; + for (_iter1344 = (*(this->notNullConstraints)).begin(); _iter1344 != (*(this->notNullConstraints)).end(); ++_iter1344) { - xfer += (*_iter1320).write(oprot); + xfer += (*_iter1344).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5664,10 +5664,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_pargs::write(::apache xfer += oprot->writeFieldBegin("defaultConstraints", ::apache::thrift::protocol::T_LIST, 6); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*(this->defaultConstraints)).size())); - std::vector ::const_iterator _iter1321; - for (_iter1321 = (*(this->defaultConstraints)).begin(); _iter1321 != (*(this->defaultConstraints)).end(); ++_iter1321) + std::vector ::const_iterator _iter1345; + for (_iter1345 = (*(this->defaultConstraints)).begin(); _iter1345 != (*(this->defaultConstraints)).end(); ++_iter1345) { - xfer += (*_iter1321).write(oprot); + xfer += (*_iter1345).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5676,10 +5676,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_pargs::write(::apache xfer += oprot->writeFieldBegin("checkConstraints", ::apache::thrift::protocol::T_LIST, 7); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*(this->checkConstraints)).size())); - std::vector ::const_iterator _iter1322; - for (_iter1322 = (*(this->checkConstraints)).begin(); _iter1322 != (*(this->checkConstraints)).end(); ++_iter1322) + std::vector ::const_iterator _iter1346; + for (_iter1346 = (*(this->checkConstraints)).begin(); _iter1346 != (*(this->checkConstraints)).end(); ++_iter1346) { - xfer += (*_iter1322).write(oprot); + xfer += (*_iter1346).write(oprot); } xfer += oprot->writeListEnd(); } @@ -7847,14 +7847,14 @@ uint32_t ThriftHiveMetastore_truncate_table_args::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partNames.clear(); - uint32_t _size1323; - ::apache::thrift::protocol::TType _etype1326; - xfer += iprot->readListBegin(_etype1326, _size1323); - this->partNames.resize(_size1323); - uint32_t _i1327; - for (_i1327 = 0; _i1327 < _size1323; ++_i1327) + uint32_t _size1347; + ::apache::thrift::protocol::TType _etype1350; + xfer += iprot->readListBegin(_etype1350, _size1347); + this->partNames.resize(_size1347); + uint32_t _i1351; + for (_i1351 = 0; _i1351 < _size1347; ++_i1351) { - xfer += iprot->readString(this->partNames[_i1327]); + xfer += iprot->readString(this->partNames[_i1351]); } xfer += iprot->readListEnd(); } @@ -7891,10 +7891,10 @@ uint32_t ThriftHiveMetastore_truncate_table_args::write(::apache::thrift::protoc xfer += oprot->writeFieldBegin("partNames", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->partNames.size())); - std::vector ::const_iterator _iter1328; - for (_iter1328 = this->partNames.begin(); _iter1328 != this->partNames.end(); ++_iter1328) + std::vector ::const_iterator _iter1352; + for (_iter1352 = this->partNames.begin(); _iter1352 != this->partNames.end(); ++_iter1352) { - xfer += oprot->writeString((*_iter1328)); + xfer += oprot->writeString((*_iter1352)); } xfer += oprot->writeListEnd(); } @@ -7926,10 +7926,10 @@ uint32_t ThriftHiveMetastore_truncate_table_pargs::write(::apache::thrift::proto xfer += oprot->writeFieldBegin("partNames", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->partNames)).size())); - std::vector ::const_iterator _iter1329; - for (_iter1329 = (*(this->partNames)).begin(); _iter1329 != (*(this->partNames)).end(); ++_iter1329) + std::vector ::const_iterator _iter1353; + for (_iter1353 = (*(this->partNames)).begin(); _iter1353 != (*(this->partNames)).end(); ++_iter1353) { - xfer += oprot->writeString((*_iter1329)); + xfer += oprot->writeString((*_iter1353)); } xfer += oprot->writeListEnd(); } @@ -8173,14 +8173,14 @@ uint32_t ThriftHiveMetastore_get_tables_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1330; - ::apache::thrift::protocol::TType _etype1333; - xfer += iprot->readListBegin(_etype1333, _size1330); - this->success.resize(_size1330); - uint32_t _i1334; - for (_i1334 = 0; _i1334 < _size1330; ++_i1334) + uint32_t _size1354; + ::apache::thrift::protocol::TType _etype1357; + xfer += iprot->readListBegin(_etype1357, _size1354); + this->success.resize(_size1354); + uint32_t _i1358; + for (_i1358 = 0; _i1358 < _size1354; ++_i1358) { - xfer += iprot->readString(this->success[_i1334]); + xfer += iprot->readString(this->success[_i1358]); } xfer += iprot->readListEnd(); } @@ -8219,10 +8219,10 @@ uint32_t ThriftHiveMetastore_get_tables_result::write(::apache::thrift::protocol xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter1335; - for (_iter1335 = this->success.begin(); _iter1335 != this->success.end(); ++_iter1335) + std::vector ::const_iterator _iter1359; + for (_iter1359 = this->success.begin(); _iter1359 != this->success.end(); ++_iter1359) { - xfer += oprot->writeString((*_iter1335)); + xfer += oprot->writeString((*_iter1359)); } xfer += oprot->writeListEnd(); } @@ -8267,14 +8267,14 @@ uint32_t ThriftHiveMetastore_get_tables_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1336; - ::apache::thrift::protocol::TType _etype1339; - xfer += iprot->readListBegin(_etype1339, _size1336); - (*(this->success)).resize(_size1336); - uint32_t _i1340; - for (_i1340 = 0; _i1340 < _size1336; ++_i1340) + uint32_t _size1360; + ::apache::thrift::protocol::TType _etype1363; + xfer += iprot->readListBegin(_etype1363, _size1360); + (*(this->success)).resize(_size1360); + uint32_t _i1364; + for (_i1364 = 0; _i1364 < _size1360; ++_i1364) { - xfer += iprot->readString((*(this->success))[_i1340]); + xfer += iprot->readString((*(this->success))[_i1364]); } xfer += iprot->readListEnd(); } @@ -8444,14 +8444,14 @@ uint32_t ThriftHiveMetastore_get_tables_by_type_result::read(::apache::thrift::p if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1341; - ::apache::thrift::protocol::TType _etype1344; - xfer += iprot->readListBegin(_etype1344, _size1341); - this->success.resize(_size1341); - uint32_t _i1345; - for (_i1345 = 0; _i1345 < _size1341; ++_i1345) + uint32_t _size1365; + ::apache::thrift::protocol::TType _etype1368; + xfer += iprot->readListBegin(_etype1368, _size1365); + this->success.resize(_size1365); + uint32_t _i1369; + for (_i1369 = 0; _i1369 < _size1365; ++_i1369) { - xfer += iprot->readString(this->success[_i1345]); + xfer += iprot->readString(this->success[_i1369]); } xfer += iprot->readListEnd(); } @@ -8490,10 +8490,10 @@ uint32_t ThriftHiveMetastore_get_tables_by_type_result::write(::apache::thrift:: xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter1346; - for (_iter1346 = this->success.begin(); _iter1346 != this->success.end(); ++_iter1346) + std::vector ::const_iterator _iter1370; + for (_iter1370 = this->success.begin(); _iter1370 != this->success.end(); ++_iter1370) { - xfer += oprot->writeString((*_iter1346)); + xfer += oprot->writeString((*_iter1370)); } xfer += oprot->writeListEnd(); } @@ -8538,14 +8538,14 @@ uint32_t ThriftHiveMetastore_get_tables_by_type_presult::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1347; - ::apache::thrift::protocol::TType _etype1350; - xfer += iprot->readListBegin(_etype1350, _size1347); - (*(this->success)).resize(_size1347); - uint32_t _i1351; - for (_i1351 = 0; _i1351 < _size1347; ++_i1351) + uint32_t _size1371; + ::apache::thrift::protocol::TType _etype1374; + xfer += iprot->readListBegin(_etype1374, _size1371); + (*(this->success)).resize(_size1371); + uint32_t _i1375; + for (_i1375 = 0; _i1375 < _size1371; ++_i1375) { - xfer += iprot->readString((*(this->success))[_i1351]); + xfer += iprot->readString((*(this->success))[_i1375]); } xfer += iprot->readListEnd(); } @@ -8683,14 +8683,14 @@ uint32_t ThriftHiveMetastore_get_materialized_views_for_rewriting_result::read(: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1352; - ::apache::thrift::protocol::TType _etype1355; - xfer += iprot->readListBegin(_etype1355, _size1352); - this->success.resize(_size1352); - uint32_t _i1356; - for (_i1356 = 0; _i1356 < _size1352; ++_i1356) + uint32_t _size1376; + ::apache::thrift::protocol::TType _etype1379; + xfer += iprot->readListBegin(_etype1379, _size1376); + this->success.resize(_size1376); + uint32_t _i1380; + for (_i1380 = 0; _i1380 < _size1376; ++_i1380) { - xfer += iprot->readString(this->success[_i1356]); + xfer += iprot->readString(this->success[_i1380]); } xfer += iprot->readListEnd(); } @@ -8729,10 +8729,10 @@ uint32_t ThriftHiveMetastore_get_materialized_views_for_rewriting_result::write( xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter1357; - for (_iter1357 = this->success.begin(); _iter1357 != this->success.end(); ++_iter1357) + std::vector ::const_iterator _iter1381; + for (_iter1381 = this->success.begin(); _iter1381 != this->success.end(); ++_iter1381) { - xfer += oprot->writeString((*_iter1357)); + xfer += oprot->writeString((*_iter1381)); } xfer += oprot->writeListEnd(); } @@ -8777,14 +8777,14 @@ uint32_t ThriftHiveMetastore_get_materialized_views_for_rewriting_presult::read( if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1358; - ::apache::thrift::protocol::TType _etype1361; - xfer += iprot->readListBegin(_etype1361, _size1358); - (*(this->success)).resize(_size1358); - uint32_t _i1362; - for (_i1362 = 0; _i1362 < _size1358; ++_i1362) + uint32_t _size1382; + ::apache::thrift::protocol::TType _etype1385; + xfer += iprot->readListBegin(_etype1385, _size1382); + (*(this->success)).resize(_size1382); + uint32_t _i1386; + for (_i1386 = 0; _i1386 < _size1382; ++_i1386) { - xfer += iprot->readString((*(this->success))[_i1362]); + xfer += iprot->readString((*(this->success))[_i1386]); } xfer += iprot->readListEnd(); } @@ -8859,14 +8859,14 @@ uint32_t ThriftHiveMetastore_get_table_meta_args::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tbl_types.clear(); - uint32_t _size1363; - ::apache::thrift::protocol::TType _etype1366; - xfer += iprot->readListBegin(_etype1366, _size1363); - this->tbl_types.resize(_size1363); - uint32_t _i1367; - for (_i1367 = 0; _i1367 < _size1363; ++_i1367) + uint32_t _size1387; + ::apache::thrift::protocol::TType _etype1390; + xfer += iprot->readListBegin(_etype1390, _size1387); + this->tbl_types.resize(_size1387); + uint32_t _i1391; + for (_i1391 = 0; _i1391 < _size1387; ++_i1391) { - xfer += iprot->readString(this->tbl_types[_i1367]); + xfer += iprot->readString(this->tbl_types[_i1391]); } xfer += iprot->readListEnd(); } @@ -8903,10 +8903,10 @@ uint32_t ThriftHiveMetastore_get_table_meta_args::write(::apache::thrift::protoc xfer += oprot->writeFieldBegin("tbl_types", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->tbl_types.size())); - std::vector ::const_iterator _iter1368; - for (_iter1368 = this->tbl_types.begin(); _iter1368 != this->tbl_types.end(); ++_iter1368) + std::vector ::const_iterator _iter1392; + for (_iter1392 = this->tbl_types.begin(); _iter1392 != this->tbl_types.end(); ++_iter1392) { - xfer += oprot->writeString((*_iter1368)); + xfer += oprot->writeString((*_iter1392)); } xfer += oprot->writeListEnd(); } @@ -8938,10 +8938,10 @@ uint32_t ThriftHiveMetastore_get_table_meta_pargs::write(::apache::thrift::proto xfer += oprot->writeFieldBegin("tbl_types", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->tbl_types)).size())); - std::vector ::const_iterator _iter1369; - for (_iter1369 = (*(this->tbl_types)).begin(); _iter1369 != (*(this->tbl_types)).end(); ++_iter1369) + std::vector ::const_iterator _iter1393; + for (_iter1393 = (*(this->tbl_types)).begin(); _iter1393 != (*(this->tbl_types)).end(); ++_iter1393) { - xfer += oprot->writeString((*_iter1369)); + xfer += oprot->writeString((*_iter1393)); } xfer += oprot->writeListEnd(); } @@ -8982,14 +8982,14 @@ uint32_t ThriftHiveMetastore_get_table_meta_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1370; - ::apache::thrift::protocol::TType _etype1373; - xfer += iprot->readListBegin(_etype1373, _size1370); - this->success.resize(_size1370); - uint32_t _i1374; - for (_i1374 = 0; _i1374 < _size1370; ++_i1374) + uint32_t _size1394; + ::apache::thrift::protocol::TType _etype1397; + xfer += iprot->readListBegin(_etype1397, _size1394); + this->success.resize(_size1394); + uint32_t _i1398; + for (_i1398 = 0; _i1398 < _size1394; ++_i1398) { - xfer += this->success[_i1374].read(iprot); + xfer += this->success[_i1398].read(iprot); } xfer += iprot->readListEnd(); } @@ -9028,10 +9028,10 @@ uint32_t ThriftHiveMetastore_get_table_meta_result::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter1375; - for (_iter1375 = this->success.begin(); _iter1375 != this->success.end(); ++_iter1375) + std::vector ::const_iterator _iter1399; + for (_iter1399 = this->success.begin(); _iter1399 != this->success.end(); ++_iter1399) { - xfer += (*_iter1375).write(oprot); + xfer += (*_iter1399).write(oprot); } xfer += oprot->writeListEnd(); } @@ -9076,14 +9076,14 @@ uint32_t ThriftHiveMetastore_get_table_meta_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1376; - ::apache::thrift::protocol::TType _etype1379; - xfer += iprot->readListBegin(_etype1379, _size1376); - (*(this->success)).resize(_size1376); - uint32_t _i1380; - for (_i1380 = 0; _i1380 < _size1376; ++_i1380) + uint32_t _size1400; + ::apache::thrift::protocol::TType _etype1403; + xfer += iprot->readListBegin(_etype1403, _size1400); + (*(this->success)).resize(_size1400); + uint32_t _i1404; + for (_i1404 = 0; _i1404 < _size1400; ++_i1404) { - xfer += (*(this->success))[_i1380].read(iprot); + xfer += (*(this->success))[_i1404].read(iprot); } xfer += iprot->readListEnd(); } @@ -9221,14 +9221,14 @@ uint32_t ThriftHiveMetastore_get_all_tables_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1381; - ::apache::thrift::protocol::TType _etype1384; - xfer += iprot->readListBegin(_etype1384, _size1381); - this->success.resize(_size1381); - uint32_t _i1385; - for (_i1385 = 0; _i1385 < _size1381; ++_i1385) + uint32_t _size1405; + ::apache::thrift::protocol::TType _etype1408; + xfer += iprot->readListBegin(_etype1408, _size1405); + this->success.resize(_size1405); + uint32_t _i1409; + for (_i1409 = 0; _i1409 < _size1405; ++_i1409) { - xfer += iprot->readString(this->success[_i1385]); + xfer += iprot->readString(this->success[_i1409]); } xfer += iprot->readListEnd(); } @@ -9267,10 +9267,10 @@ uint32_t ThriftHiveMetastore_get_all_tables_result::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter1386; - for (_iter1386 = this->success.begin(); _iter1386 != this->success.end(); ++_iter1386) + std::vector ::const_iterator _iter1410; + for (_iter1410 = this->success.begin(); _iter1410 != this->success.end(); ++_iter1410) { - xfer += oprot->writeString((*_iter1386)); + xfer += oprot->writeString((*_iter1410)); } xfer += oprot->writeListEnd(); } @@ -9315,14 +9315,14 @@ uint32_t ThriftHiveMetastore_get_all_tables_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1387; - ::apache::thrift::protocol::TType _etype1390; - xfer += iprot->readListBegin(_etype1390, _size1387); - (*(this->success)).resize(_size1387); - uint32_t _i1391; - for (_i1391 = 0; _i1391 < _size1387; ++_i1391) + uint32_t _size1411; + ::apache::thrift::protocol::TType _etype1414; + xfer += iprot->readListBegin(_etype1414, _size1411); + (*(this->success)).resize(_size1411); + uint32_t _i1415; + for (_i1415 = 0; _i1415 < _size1411; ++_i1415) { - xfer += iprot->readString((*(this->success))[_i1391]); + xfer += iprot->readString((*(this->success))[_i1415]); } xfer += iprot->readListEnd(); } @@ -9632,14 +9632,14 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_args::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tbl_names.clear(); - uint32_t _size1392; - ::apache::thrift::protocol::TType _etype1395; - xfer += iprot->readListBegin(_etype1395, _size1392); - this->tbl_names.resize(_size1392); - uint32_t _i1396; - for (_i1396 = 0; _i1396 < _size1392; ++_i1396) + uint32_t _size1416; + ::apache::thrift::protocol::TType _etype1419; + xfer += iprot->readListBegin(_etype1419, _size1416); + this->tbl_names.resize(_size1416); + uint32_t _i1420; + for (_i1420 = 0; _i1420 < _size1416; ++_i1420) { - xfer += iprot->readString(this->tbl_names[_i1396]); + xfer += iprot->readString(this->tbl_names[_i1420]); } xfer += iprot->readListEnd(); } @@ -9672,10 +9672,10 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_args::write(::apache::thr xfer += oprot->writeFieldBegin("tbl_names", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->tbl_names.size())); - std::vector ::const_iterator _iter1397; - for (_iter1397 = this->tbl_names.begin(); _iter1397 != this->tbl_names.end(); ++_iter1397) + std::vector ::const_iterator _iter1421; + for (_iter1421 = this->tbl_names.begin(); _iter1421 != this->tbl_names.end(); ++_iter1421) { - xfer += oprot->writeString((*_iter1397)); + xfer += oprot->writeString((*_iter1421)); } xfer += oprot->writeListEnd(); } @@ -9703,10 +9703,10 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_pargs::write(::apache::th xfer += oprot->writeFieldBegin("tbl_names", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->tbl_names)).size())); - std::vector ::const_iterator _iter1398; - for (_iter1398 = (*(this->tbl_names)).begin(); _iter1398 != (*(this->tbl_names)).end(); ++_iter1398) + std::vector ::const_iterator _iter1422; + for (_iter1422 = (*(this->tbl_names)).begin(); _iter1422 != (*(this->tbl_names)).end(); ++_iter1422) { - xfer += oprot->writeString((*_iter1398)); + xfer += oprot->writeString((*_iter1422)); } xfer += oprot->writeListEnd(); } @@ -9747,14 +9747,14 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_result::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1399; - ::apache::thrift::protocol::TType _etype1402; - xfer += iprot->readListBegin(_etype1402, _size1399); - this->success.resize(_size1399); - uint32_t _i1403; - for (_i1403 = 0; _i1403 < _size1399; ++_i1403) + uint32_t _size1423; + ::apache::thrift::protocol::TType _etype1426; + xfer += iprot->readListBegin(_etype1426, _size1423); + this->success.resize(_size1423); + uint32_t _i1427; + for (_i1427 = 0; _i1427 < _size1423; ++_i1427) { - xfer += this->success[_i1403].read(iprot); + xfer += this->success[_i1427].read(iprot); } xfer += iprot->readListEnd(); } @@ -9785,10 +9785,10 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_result::write(::apache::t xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter1404; - for (_iter1404 = this->success.begin(); _iter1404 != this->success.end(); ++_iter1404) + std::vector
::const_iterator _iter1428; + for (_iter1428 = this->success.begin(); _iter1428 != this->success.end(); ++_iter1428) { - xfer += (*_iter1404).write(oprot); + xfer += (*_iter1428).write(oprot); } xfer += oprot->writeListEnd(); } @@ -9829,14 +9829,14 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_presult::read(::apache::t if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1405; - ::apache::thrift::protocol::TType _etype1408; - xfer += iprot->readListBegin(_etype1408, _size1405); - (*(this->success)).resize(_size1405); - uint32_t _i1409; - for (_i1409 = 0; _i1409 < _size1405; ++_i1409) + uint32_t _size1429; + ::apache::thrift::protocol::TType _etype1432; + xfer += iprot->readListBegin(_etype1432, _size1429); + (*(this->success)).resize(_size1429); + uint32_t _i1433; + for (_i1433 = 0; _i1433 < _size1429; ++_i1433) { - xfer += (*(this->success))[_i1409].read(iprot); + xfer += (*(this->success))[_i1433].read(iprot); } xfer += iprot->readListEnd(); } @@ -10369,14 +10369,14 @@ uint32_t ThriftHiveMetastore_get_materialization_invalidation_info_args::read(:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tbl_names.clear(); - uint32_t _size1410; - ::apache::thrift::protocol::TType _etype1413; - xfer += iprot->readListBegin(_etype1413, _size1410); - this->tbl_names.resize(_size1410); - uint32_t _i1414; - for (_i1414 = 0; _i1414 < _size1410; ++_i1414) + uint32_t _size1434; + ::apache::thrift::protocol::TType _etype1437; + xfer += iprot->readListBegin(_etype1437, _size1434); + this->tbl_names.resize(_size1434); + uint32_t _i1438; + for (_i1438 = 0; _i1438 < _size1434; ++_i1438) { - xfer += iprot->readString(this->tbl_names[_i1414]); + xfer += iprot->readString(this->tbl_names[_i1438]); } xfer += iprot->readListEnd(); } @@ -10409,10 +10409,10 @@ uint32_t ThriftHiveMetastore_get_materialization_invalidation_info_args::write(: xfer += oprot->writeFieldBegin("tbl_names", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->tbl_names.size())); - std::vector ::const_iterator _iter1415; - for (_iter1415 = this->tbl_names.begin(); _iter1415 != this->tbl_names.end(); ++_iter1415) + std::vector ::const_iterator _iter1439; + for (_iter1439 = this->tbl_names.begin(); _iter1439 != this->tbl_names.end(); ++_iter1439) { - xfer += oprot->writeString((*_iter1415)); + xfer += oprot->writeString((*_iter1439)); } xfer += oprot->writeListEnd(); } @@ -10440,10 +10440,10 @@ uint32_t ThriftHiveMetastore_get_materialization_invalidation_info_pargs::write( xfer += oprot->writeFieldBegin("tbl_names", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->tbl_names)).size())); - std::vector ::const_iterator _iter1416; - for (_iter1416 = (*(this->tbl_names)).begin(); _iter1416 != (*(this->tbl_names)).end(); ++_iter1416) + std::vector ::const_iterator _iter1440; + for (_iter1440 = (*(this->tbl_names)).begin(); _iter1440 != (*(this->tbl_names)).end(); ++_iter1440) { - xfer += oprot->writeString((*_iter1416)); + xfer += oprot->writeString((*_iter1440)); } xfer += oprot->writeListEnd(); } @@ -10484,17 +10484,17 @@ uint32_t ThriftHiveMetastore_get_materialization_invalidation_info_result::read( if (ftype == ::apache::thrift::protocol::T_MAP) { { this->success.clear(); - uint32_t _size1417; - ::apache::thrift::protocol::TType _ktype1418; - ::apache::thrift::protocol::TType _vtype1419; - xfer += iprot->readMapBegin(_ktype1418, _vtype1419, _size1417); - uint32_t _i1421; - for (_i1421 = 0; _i1421 < _size1417; ++_i1421) + uint32_t _size1441; + ::apache::thrift::protocol::TType _ktype1442; + ::apache::thrift::protocol::TType _vtype1443; + xfer += iprot->readMapBegin(_ktype1442, _vtype1443, _size1441); + uint32_t _i1445; + for (_i1445 = 0; _i1445 < _size1441; ++_i1445) { - std::string _key1422; - xfer += iprot->readString(_key1422); - Materialization& _val1423 = this->success[_key1422]; - xfer += _val1423.read(iprot); + std::string _key1446; + xfer += iprot->readString(_key1446); + Materialization& _val1447 = this->success[_key1446]; + xfer += _val1447.read(iprot); } xfer += iprot->readMapEnd(); } @@ -10549,11 +10549,11 @@ uint32_t ThriftHiveMetastore_get_materialization_invalidation_info_result::write xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::map ::const_iterator _iter1424; - for (_iter1424 = this->success.begin(); _iter1424 != this->success.end(); ++_iter1424) + std::map ::const_iterator _iter1448; + for (_iter1448 = this->success.begin(); _iter1448 != this->success.end(); ++_iter1448) { - xfer += oprot->writeString(_iter1424->first); - xfer += _iter1424->second.write(oprot); + xfer += oprot->writeString(_iter1448->first); + xfer += _iter1448->second.write(oprot); } xfer += oprot->writeMapEnd(); } @@ -10606,17 +10606,17 @@ uint32_t ThriftHiveMetastore_get_materialization_invalidation_info_presult::read if (ftype == ::apache::thrift::protocol::T_MAP) { { (*(this->success)).clear(); - uint32_t _size1425; - ::apache::thrift::protocol::TType _ktype1426; - ::apache::thrift::protocol::TType _vtype1427; - xfer += iprot->readMapBegin(_ktype1426, _vtype1427, _size1425); - uint32_t _i1429; - for (_i1429 = 0; _i1429 < _size1425; ++_i1429) + uint32_t _size1449; + ::apache::thrift::protocol::TType _ktype1450; + ::apache::thrift::protocol::TType _vtype1451; + xfer += iprot->readMapBegin(_ktype1450, _vtype1451, _size1449); + uint32_t _i1453; + for (_i1453 = 0; _i1453 < _size1449; ++_i1453) { - std::string _key1430; - xfer += iprot->readString(_key1430); - Materialization& _val1431 = (*(this->success))[_key1430]; - xfer += _val1431.read(iprot); + std::string _key1454; + xfer += iprot->readString(_key1454); + Materialization& _val1455 = (*(this->success))[_key1454]; + xfer += _val1455.read(iprot); } xfer += iprot->readMapEnd(); } @@ -11077,14 +11077,14 @@ uint32_t ThriftHiveMetastore_get_table_names_by_filter_result::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1432; - ::apache::thrift::protocol::TType _etype1435; - xfer += iprot->readListBegin(_etype1435, _size1432); - this->success.resize(_size1432); - uint32_t _i1436; - for (_i1436 = 0; _i1436 < _size1432; ++_i1436) + uint32_t _size1456; + ::apache::thrift::protocol::TType _etype1459; + xfer += iprot->readListBegin(_etype1459, _size1456); + this->success.resize(_size1456); + uint32_t _i1460; + for (_i1460 = 0; _i1460 < _size1456; ++_i1460) { - xfer += iprot->readString(this->success[_i1436]); + xfer += iprot->readString(this->success[_i1460]); } xfer += iprot->readListEnd(); } @@ -11139,10 +11139,10 @@ uint32_t ThriftHiveMetastore_get_table_names_by_filter_result::write(::apache::t xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter1437; - for (_iter1437 = this->success.begin(); _iter1437 != this->success.end(); ++_iter1437) + std::vector ::const_iterator _iter1461; + for (_iter1461 = this->success.begin(); _iter1461 != this->success.end(); ++_iter1461) { - xfer += oprot->writeString((*_iter1437)); + xfer += oprot->writeString((*_iter1461)); } xfer += oprot->writeListEnd(); } @@ -11195,14 +11195,14 @@ uint32_t ThriftHiveMetastore_get_table_names_by_filter_presult::read(::apache::t if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1438; - ::apache::thrift::protocol::TType _etype1441; - xfer += iprot->readListBegin(_etype1441, _size1438); - (*(this->success)).resize(_size1438); - uint32_t _i1442; - for (_i1442 = 0; _i1442 < _size1438; ++_i1442) + uint32_t _size1462; + ::apache::thrift::protocol::TType _etype1465; + xfer += iprot->readListBegin(_etype1465, _size1462); + (*(this->success)).resize(_size1462); + uint32_t _i1466; + for (_i1466 = 0; _i1466 < _size1462; ++_i1466) { - xfer += iprot->readString((*(this->success))[_i1442]); + xfer += iprot->readString((*(this->success))[_i1466]); } xfer += iprot->readListEnd(); } @@ -12536,14 +12536,14 @@ uint32_t ThriftHiveMetastore_add_partitions_args::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size1443; - ::apache::thrift::protocol::TType _etype1446; - xfer += iprot->readListBegin(_etype1446, _size1443); - this->new_parts.resize(_size1443); - uint32_t _i1447; - for (_i1447 = 0; _i1447 < _size1443; ++_i1447) + uint32_t _size1467; + ::apache::thrift::protocol::TType _etype1470; + xfer += iprot->readListBegin(_etype1470, _size1467); + this->new_parts.resize(_size1467); + uint32_t _i1471; + for (_i1471 = 0; _i1471 < _size1467; ++_i1471) { - xfer += this->new_parts[_i1447].read(iprot); + xfer += this->new_parts[_i1471].read(iprot); } xfer += iprot->readListEnd(); } @@ -12572,10 +12572,10 @@ uint32_t ThriftHiveMetastore_add_partitions_args::write(::apache::thrift::protoc xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->new_parts.size())); - std::vector ::const_iterator _iter1448; - for (_iter1448 = this->new_parts.begin(); _iter1448 != this->new_parts.end(); ++_iter1448) + std::vector ::const_iterator _iter1472; + for (_iter1472 = this->new_parts.begin(); _iter1472 != this->new_parts.end(); ++_iter1472) { - xfer += (*_iter1448).write(oprot); + xfer += (*_iter1472).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12599,10 +12599,10 @@ uint32_t ThriftHiveMetastore_add_partitions_pargs::write(::apache::thrift::proto xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*(this->new_parts)).size())); - std::vector ::const_iterator _iter1449; - for (_iter1449 = (*(this->new_parts)).begin(); _iter1449 != (*(this->new_parts)).end(); ++_iter1449) + std::vector ::const_iterator _iter1473; + for (_iter1473 = (*(this->new_parts)).begin(); _iter1473 != (*(this->new_parts)).end(); ++_iter1473) { - xfer += (*_iter1449).write(oprot); + xfer += (*_iter1473).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12811,14 +12811,14 @@ uint32_t ThriftHiveMetastore_add_partitions_pspec_args::read(::apache::thrift::p if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size1450; - ::apache::thrift::protocol::TType _etype1453; - xfer += iprot->readListBegin(_etype1453, _size1450); - this->new_parts.resize(_size1450); - uint32_t _i1454; - for (_i1454 = 0; _i1454 < _size1450; ++_i1454) + uint32_t _size1474; + ::apache::thrift::protocol::TType _etype1477; + xfer += iprot->readListBegin(_etype1477, _size1474); + this->new_parts.resize(_size1474); + uint32_t _i1478; + for (_i1478 = 0; _i1478 < _size1474; ++_i1478) { - xfer += this->new_parts[_i1454].read(iprot); + xfer += this->new_parts[_i1478].read(iprot); } xfer += iprot->readListEnd(); } @@ -12847,10 +12847,10 @@ uint32_t ThriftHiveMetastore_add_partitions_pspec_args::write(::apache::thrift:: xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->new_parts.size())); - std::vector ::const_iterator _iter1455; - for (_iter1455 = this->new_parts.begin(); _iter1455 != this->new_parts.end(); ++_iter1455) + std::vector ::const_iterator _iter1479; + for (_iter1479 = this->new_parts.begin(); _iter1479 != this->new_parts.end(); ++_iter1479) { - xfer += (*_iter1455).write(oprot); + xfer += (*_iter1479).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12874,10 +12874,10 @@ uint32_t ThriftHiveMetastore_add_partitions_pspec_pargs::write(::apache::thrift: xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*(this->new_parts)).size())); - std::vector ::const_iterator _iter1456; - for (_iter1456 = (*(this->new_parts)).begin(); _iter1456 != (*(this->new_parts)).end(); ++_iter1456) + std::vector ::const_iterator _iter1480; + for (_iter1480 = (*(this->new_parts)).begin(); _iter1480 != (*(this->new_parts)).end(); ++_iter1480) { - xfer += (*_iter1456).write(oprot); + xfer += (*_iter1480).write(oprot); } xfer += oprot->writeListEnd(); } @@ -13102,14 +13102,14 @@ uint32_t ThriftHiveMetastore_append_partition_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1457; - ::apache::thrift::protocol::TType _etype1460; - xfer += iprot->readListBegin(_etype1460, _size1457); - this->part_vals.resize(_size1457); - uint32_t _i1461; - for (_i1461 = 0; _i1461 < _size1457; ++_i1461) + uint32_t _size1481; + ::apache::thrift::protocol::TType _etype1484; + xfer += iprot->readListBegin(_etype1484, _size1481); + this->part_vals.resize(_size1481); + uint32_t _i1485; + for (_i1485 = 0; _i1485 < _size1481; ++_i1485) { - xfer += iprot->readString(this->part_vals[_i1461]); + xfer += iprot->readString(this->part_vals[_i1485]); } xfer += iprot->readListEnd(); } @@ -13146,10 +13146,10 @@ uint32_t ThriftHiveMetastore_append_partition_args::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter1462; - for (_iter1462 = this->part_vals.begin(); _iter1462 != this->part_vals.end(); ++_iter1462) + std::vector ::const_iterator _iter1486; + for (_iter1486 = this->part_vals.begin(); _iter1486 != this->part_vals.end(); ++_iter1486) { - xfer += oprot->writeString((*_iter1462)); + xfer += oprot->writeString((*_iter1486)); } xfer += oprot->writeListEnd(); } @@ -13181,10 +13181,10 @@ uint32_t ThriftHiveMetastore_append_partition_pargs::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter1463; - for (_iter1463 = (*(this->part_vals)).begin(); _iter1463 != (*(this->part_vals)).end(); ++_iter1463) + std::vector ::const_iterator _iter1487; + for (_iter1487 = (*(this->part_vals)).begin(); _iter1487 != (*(this->part_vals)).end(); ++_iter1487) { - xfer += oprot->writeString((*_iter1463)); + xfer += oprot->writeString((*_iter1487)); } xfer += oprot->writeListEnd(); } @@ -13656,14 +13656,14 @@ uint32_t ThriftHiveMetastore_append_partition_with_environment_context_args::rea if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1464; - ::apache::thrift::protocol::TType _etype1467; - xfer += iprot->readListBegin(_etype1467, _size1464); - this->part_vals.resize(_size1464); - uint32_t _i1468; - for (_i1468 = 0; _i1468 < _size1464; ++_i1468) + uint32_t _size1488; + ::apache::thrift::protocol::TType _etype1491; + xfer += iprot->readListBegin(_etype1491, _size1488); + this->part_vals.resize(_size1488); + uint32_t _i1492; + for (_i1492 = 0; _i1492 < _size1488; ++_i1492) { - xfer += iprot->readString(this->part_vals[_i1468]); + xfer += iprot->readString(this->part_vals[_i1492]); } xfer += iprot->readListEnd(); } @@ -13708,10 +13708,10 @@ uint32_t ThriftHiveMetastore_append_partition_with_environment_context_args::wri xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter1469; - for (_iter1469 = this->part_vals.begin(); _iter1469 != this->part_vals.end(); ++_iter1469) + std::vector ::const_iterator _iter1493; + for (_iter1493 = this->part_vals.begin(); _iter1493 != this->part_vals.end(); ++_iter1493) { - xfer += oprot->writeString((*_iter1469)); + xfer += oprot->writeString((*_iter1493)); } xfer += oprot->writeListEnd(); } @@ -13747,10 +13747,10 @@ uint32_t ThriftHiveMetastore_append_partition_with_environment_context_pargs::wr xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter1470; - for (_iter1470 = (*(this->part_vals)).begin(); _iter1470 != (*(this->part_vals)).end(); ++_iter1470) + std::vector ::const_iterator _iter1494; + for (_iter1494 = (*(this->part_vals)).begin(); _iter1494 != (*(this->part_vals)).end(); ++_iter1494) { - xfer += oprot->writeString((*_iter1470)); + xfer += oprot->writeString((*_iter1494)); } xfer += oprot->writeListEnd(); } @@ -14553,14 +14553,14 @@ uint32_t ThriftHiveMetastore_drop_partition_args::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1471; - ::apache::thrift::protocol::TType _etype1474; - xfer += iprot->readListBegin(_etype1474, _size1471); - this->part_vals.resize(_size1471); - uint32_t _i1475; - for (_i1475 = 0; _i1475 < _size1471; ++_i1475) + uint32_t _size1495; + ::apache::thrift::protocol::TType _etype1498; + xfer += iprot->readListBegin(_etype1498, _size1495); + this->part_vals.resize(_size1495); + uint32_t _i1499; + for (_i1499 = 0; _i1499 < _size1495; ++_i1499) { - xfer += iprot->readString(this->part_vals[_i1475]); + xfer += iprot->readString(this->part_vals[_i1499]); } xfer += iprot->readListEnd(); } @@ -14605,10 +14605,10 @@ uint32_t ThriftHiveMetastore_drop_partition_args::write(::apache::thrift::protoc xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter1476; - for (_iter1476 = this->part_vals.begin(); _iter1476 != this->part_vals.end(); ++_iter1476) + std::vector ::const_iterator _iter1500; + for (_iter1500 = this->part_vals.begin(); _iter1500 != this->part_vals.end(); ++_iter1500) { - xfer += oprot->writeString((*_iter1476)); + xfer += oprot->writeString((*_iter1500)); } xfer += oprot->writeListEnd(); } @@ -14644,10 +14644,10 @@ uint32_t ThriftHiveMetastore_drop_partition_pargs::write(::apache::thrift::proto xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter1477; - for (_iter1477 = (*(this->part_vals)).begin(); _iter1477 != (*(this->part_vals)).end(); ++_iter1477) + std::vector ::const_iterator _iter1501; + for (_iter1501 = (*(this->part_vals)).begin(); _iter1501 != (*(this->part_vals)).end(); ++_iter1501) { - xfer += oprot->writeString((*_iter1477)); + xfer += oprot->writeString((*_iter1501)); } xfer += oprot->writeListEnd(); } @@ -14856,14 +14856,14 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_args::read( if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1478; - ::apache::thrift::protocol::TType _etype1481; - xfer += iprot->readListBegin(_etype1481, _size1478); - this->part_vals.resize(_size1478); - uint32_t _i1482; - for (_i1482 = 0; _i1482 < _size1478; ++_i1482) + uint32_t _size1502; + ::apache::thrift::protocol::TType _etype1505; + xfer += iprot->readListBegin(_etype1505, _size1502); + this->part_vals.resize(_size1502); + uint32_t _i1506; + for (_i1506 = 0; _i1506 < _size1502; ++_i1506) { - xfer += iprot->readString(this->part_vals[_i1482]); + xfer += iprot->readString(this->part_vals[_i1506]); } xfer += iprot->readListEnd(); } @@ -14916,10 +14916,10 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_args::write xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter1483; - for (_iter1483 = this->part_vals.begin(); _iter1483 != this->part_vals.end(); ++_iter1483) + std::vector ::const_iterator _iter1507; + for (_iter1507 = this->part_vals.begin(); _iter1507 != this->part_vals.end(); ++_iter1507) { - xfer += oprot->writeString((*_iter1483)); + xfer += oprot->writeString((*_iter1507)); } xfer += oprot->writeListEnd(); } @@ -14959,10 +14959,10 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_pargs::writ xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter1484; - for (_iter1484 = (*(this->part_vals)).begin(); _iter1484 != (*(this->part_vals)).end(); ++_iter1484) + std::vector ::const_iterator _iter1508; + for (_iter1508 = (*(this->part_vals)).begin(); _iter1508 != (*(this->part_vals)).end(); ++_iter1508) { - xfer += oprot->writeString((*_iter1484)); + xfer += oprot->writeString((*_iter1508)); } xfer += oprot->writeListEnd(); } @@ -15968,14 +15968,14 @@ uint32_t ThriftHiveMetastore_get_partition_args::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1485; - ::apache::thrift::protocol::TType _etype1488; - xfer += iprot->readListBegin(_etype1488, _size1485); - this->part_vals.resize(_size1485); - uint32_t _i1489; - for (_i1489 = 0; _i1489 < _size1485; ++_i1489) + uint32_t _size1509; + ::apache::thrift::protocol::TType _etype1512; + xfer += iprot->readListBegin(_etype1512, _size1509); + this->part_vals.resize(_size1509); + uint32_t _i1513; + for (_i1513 = 0; _i1513 < _size1509; ++_i1513) { - xfer += iprot->readString(this->part_vals[_i1489]); + xfer += iprot->readString(this->part_vals[_i1513]); } xfer += iprot->readListEnd(); } @@ -16012,10 +16012,10 @@ uint32_t ThriftHiveMetastore_get_partition_args::write(::apache::thrift::protoco xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter1490; - for (_iter1490 = this->part_vals.begin(); _iter1490 != this->part_vals.end(); ++_iter1490) + std::vector ::const_iterator _iter1514; + for (_iter1514 = this->part_vals.begin(); _iter1514 != this->part_vals.end(); ++_iter1514) { - xfer += oprot->writeString((*_iter1490)); + xfer += oprot->writeString((*_iter1514)); } xfer += oprot->writeListEnd(); } @@ -16047,10 +16047,10 @@ uint32_t ThriftHiveMetastore_get_partition_pargs::write(::apache::thrift::protoc xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter1491; - for (_iter1491 = (*(this->part_vals)).begin(); _iter1491 != (*(this->part_vals)).end(); ++_iter1491) + std::vector ::const_iterator _iter1515; + for (_iter1515 = (*(this->part_vals)).begin(); _iter1515 != (*(this->part_vals)).end(); ++_iter1515) { - xfer += oprot->writeString((*_iter1491)); + xfer += oprot->writeString((*_iter1515)); } xfer += oprot->writeListEnd(); } @@ -16239,17 +16239,17 @@ uint32_t ThriftHiveMetastore_exchange_partition_args::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->partitionSpecs.clear(); - uint32_t _size1492; - ::apache::thrift::protocol::TType _ktype1493; - ::apache::thrift::protocol::TType _vtype1494; - xfer += iprot->readMapBegin(_ktype1493, _vtype1494, _size1492); - uint32_t _i1496; - for (_i1496 = 0; _i1496 < _size1492; ++_i1496) + uint32_t _size1516; + ::apache::thrift::protocol::TType _ktype1517; + ::apache::thrift::protocol::TType _vtype1518; + xfer += iprot->readMapBegin(_ktype1517, _vtype1518, _size1516); + uint32_t _i1520; + for (_i1520 = 0; _i1520 < _size1516; ++_i1520) { - std::string _key1497; - xfer += iprot->readString(_key1497); - std::string& _val1498 = this->partitionSpecs[_key1497]; - xfer += iprot->readString(_val1498); + std::string _key1521; + xfer += iprot->readString(_key1521); + std::string& _val1522 = this->partitionSpecs[_key1521]; + xfer += iprot->readString(_val1522); } xfer += iprot->readMapEnd(); } @@ -16310,11 +16310,11 @@ uint32_t ThriftHiveMetastore_exchange_partition_args::write(::apache::thrift::pr xfer += oprot->writeFieldBegin("partitionSpecs", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->partitionSpecs.size())); - std::map ::const_iterator _iter1499; - for (_iter1499 = this->partitionSpecs.begin(); _iter1499 != this->partitionSpecs.end(); ++_iter1499) + std::map ::const_iterator _iter1523; + for (_iter1523 = this->partitionSpecs.begin(); _iter1523 != this->partitionSpecs.end(); ++_iter1523) { - xfer += oprot->writeString(_iter1499->first); - xfer += oprot->writeString(_iter1499->second); + xfer += oprot->writeString(_iter1523->first); + xfer += oprot->writeString(_iter1523->second); } xfer += oprot->writeMapEnd(); } @@ -16354,11 +16354,11 @@ uint32_t ThriftHiveMetastore_exchange_partition_pargs::write(::apache::thrift::p xfer += oprot->writeFieldBegin("partitionSpecs", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast((*(this->partitionSpecs)).size())); - std::map ::const_iterator _iter1500; - for (_iter1500 = (*(this->partitionSpecs)).begin(); _iter1500 != (*(this->partitionSpecs)).end(); ++_iter1500) + std::map ::const_iterator _iter1524; + for (_iter1524 = (*(this->partitionSpecs)).begin(); _iter1524 != (*(this->partitionSpecs)).end(); ++_iter1524) { - xfer += oprot->writeString(_iter1500->first); - xfer += oprot->writeString(_iter1500->second); + xfer += oprot->writeString(_iter1524->first); + xfer += oprot->writeString(_iter1524->second); } xfer += oprot->writeMapEnd(); } @@ -16603,17 +16603,17 @@ uint32_t ThriftHiveMetastore_exchange_partitions_args::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_MAP) { { this->partitionSpecs.clear(); - uint32_t _size1501; - ::apache::thrift::protocol::TType _ktype1502; - ::apache::thrift::protocol::TType _vtype1503; - xfer += iprot->readMapBegin(_ktype1502, _vtype1503, _size1501); - uint32_t _i1505; - for (_i1505 = 0; _i1505 < _size1501; ++_i1505) + uint32_t _size1525; + ::apache::thrift::protocol::TType _ktype1526; + ::apache::thrift::protocol::TType _vtype1527; + xfer += iprot->readMapBegin(_ktype1526, _vtype1527, _size1525); + uint32_t _i1529; + for (_i1529 = 0; _i1529 < _size1525; ++_i1529) { - std::string _key1506; - xfer += iprot->readString(_key1506); - std::string& _val1507 = this->partitionSpecs[_key1506]; - xfer += iprot->readString(_val1507); + std::string _key1530; + xfer += iprot->readString(_key1530); + std::string& _val1531 = this->partitionSpecs[_key1530]; + xfer += iprot->readString(_val1531); } xfer += iprot->readMapEnd(); } @@ -16674,11 +16674,11 @@ uint32_t ThriftHiveMetastore_exchange_partitions_args::write(::apache::thrift::p xfer += oprot->writeFieldBegin("partitionSpecs", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->partitionSpecs.size())); - std::map ::const_iterator _iter1508; - for (_iter1508 = this->partitionSpecs.begin(); _iter1508 != this->partitionSpecs.end(); ++_iter1508) + std::map ::const_iterator _iter1532; + for (_iter1532 = this->partitionSpecs.begin(); _iter1532 != this->partitionSpecs.end(); ++_iter1532) { - xfer += oprot->writeString(_iter1508->first); - xfer += oprot->writeString(_iter1508->second); + xfer += oprot->writeString(_iter1532->first); + xfer += oprot->writeString(_iter1532->second); } xfer += oprot->writeMapEnd(); } @@ -16718,11 +16718,11 @@ uint32_t ThriftHiveMetastore_exchange_partitions_pargs::write(::apache::thrift:: xfer += oprot->writeFieldBegin("partitionSpecs", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast((*(this->partitionSpecs)).size())); - std::map ::const_iterator _iter1509; - for (_iter1509 = (*(this->partitionSpecs)).begin(); _iter1509 != (*(this->partitionSpecs)).end(); ++_iter1509) + std::map ::const_iterator _iter1533; + for (_iter1533 = (*(this->partitionSpecs)).begin(); _iter1533 != (*(this->partitionSpecs)).end(); ++_iter1533) { - xfer += oprot->writeString(_iter1509->first); - xfer += oprot->writeString(_iter1509->second); + xfer += oprot->writeString(_iter1533->first); + xfer += oprot->writeString(_iter1533->second); } xfer += oprot->writeMapEnd(); } @@ -16779,14 +16779,14 @@ uint32_t ThriftHiveMetastore_exchange_partitions_result::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1510; - ::apache::thrift::protocol::TType _etype1513; - xfer += iprot->readListBegin(_etype1513, _size1510); - this->success.resize(_size1510); - uint32_t _i1514; - for (_i1514 = 0; _i1514 < _size1510; ++_i1514) + uint32_t _size1534; + ::apache::thrift::protocol::TType _etype1537; + xfer += iprot->readListBegin(_etype1537, _size1534); + this->success.resize(_size1534); + uint32_t _i1538; + for (_i1538 = 0; _i1538 < _size1534; ++_i1538) { - xfer += this->success[_i1514].read(iprot); + xfer += this->success[_i1538].read(iprot); } xfer += iprot->readListEnd(); } @@ -16849,10 +16849,10 @@ uint32_t ThriftHiveMetastore_exchange_partitions_result::write(::apache::thrift: xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter1515; - for (_iter1515 = this->success.begin(); _iter1515 != this->success.end(); ++_iter1515) + std::vector ::const_iterator _iter1539; + for (_iter1539 = this->success.begin(); _iter1539 != this->success.end(); ++_iter1539) { - xfer += (*_iter1515).write(oprot); + xfer += (*_iter1539).write(oprot); } xfer += oprot->writeListEnd(); } @@ -16909,14 +16909,14 @@ uint32_t ThriftHiveMetastore_exchange_partitions_presult::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1516; - ::apache::thrift::protocol::TType _etype1519; - xfer += iprot->readListBegin(_etype1519, _size1516); - (*(this->success)).resize(_size1516); - uint32_t _i1520; - for (_i1520 = 0; _i1520 < _size1516; ++_i1520) + uint32_t _size1540; + ::apache::thrift::protocol::TType _etype1543; + xfer += iprot->readListBegin(_etype1543, _size1540); + (*(this->success)).resize(_size1540); + uint32_t _i1544; + for (_i1544 = 0; _i1544 < _size1540; ++_i1544) { - xfer += (*(this->success))[_i1520].read(iprot); + xfer += (*(this->success))[_i1544].read(iprot); } xfer += iprot->readListEnd(); } @@ -17015,14 +17015,14 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_args::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1521; - ::apache::thrift::protocol::TType _etype1524; - xfer += iprot->readListBegin(_etype1524, _size1521); - this->part_vals.resize(_size1521); - uint32_t _i1525; - for (_i1525 = 0; _i1525 < _size1521; ++_i1525) + uint32_t _size1545; + ::apache::thrift::protocol::TType _etype1548; + xfer += iprot->readListBegin(_etype1548, _size1545); + this->part_vals.resize(_size1545); + uint32_t _i1549; + for (_i1549 = 0; _i1549 < _size1545; ++_i1549) { - xfer += iprot->readString(this->part_vals[_i1525]); + xfer += iprot->readString(this->part_vals[_i1549]); } xfer += iprot->readListEnd(); } @@ -17043,14 +17043,14 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_args::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { this->group_names.clear(); - uint32_t _size1526; - ::apache::thrift::protocol::TType _etype1529; - xfer += iprot->readListBegin(_etype1529, _size1526); - this->group_names.resize(_size1526); - uint32_t _i1530; - for (_i1530 = 0; _i1530 < _size1526; ++_i1530) + uint32_t _size1550; + ::apache::thrift::protocol::TType _etype1553; + xfer += iprot->readListBegin(_etype1553, _size1550); + this->group_names.resize(_size1550); + uint32_t _i1554; + for (_i1554 = 0; _i1554 < _size1550; ++_i1554) { - xfer += iprot->readString(this->group_names[_i1530]); + xfer += iprot->readString(this->group_names[_i1554]); } xfer += iprot->readListEnd(); } @@ -17087,10 +17087,10 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_args::write(::apache::thrif xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter1531; - for (_iter1531 = this->part_vals.begin(); _iter1531 != this->part_vals.end(); ++_iter1531) + std::vector ::const_iterator _iter1555; + for (_iter1555 = this->part_vals.begin(); _iter1555 != this->part_vals.end(); ++_iter1555) { - xfer += oprot->writeString((*_iter1531)); + xfer += oprot->writeString((*_iter1555)); } xfer += oprot->writeListEnd(); } @@ -17103,10 +17103,10 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_args::write(::apache::thrif xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size())); - std::vector ::const_iterator _iter1532; - for (_iter1532 = this->group_names.begin(); _iter1532 != this->group_names.end(); ++_iter1532) + std::vector ::const_iterator _iter1556; + for (_iter1556 = this->group_names.begin(); _iter1556 != this->group_names.end(); ++_iter1556) { - xfer += oprot->writeString((*_iter1532)); + xfer += oprot->writeString((*_iter1556)); } xfer += oprot->writeListEnd(); } @@ -17138,10 +17138,10 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_pargs::write(::apache::thri xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter1533; - for (_iter1533 = (*(this->part_vals)).begin(); _iter1533 != (*(this->part_vals)).end(); ++_iter1533) + std::vector ::const_iterator _iter1557; + for (_iter1557 = (*(this->part_vals)).begin(); _iter1557 != (*(this->part_vals)).end(); ++_iter1557) { - xfer += oprot->writeString((*_iter1533)); + xfer += oprot->writeString((*_iter1557)); } xfer += oprot->writeListEnd(); } @@ -17154,10 +17154,10 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_pargs::write(::apache::thri xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size())); - std::vector ::const_iterator _iter1534; - for (_iter1534 = (*(this->group_names)).begin(); _iter1534 != (*(this->group_names)).end(); ++_iter1534) + std::vector ::const_iterator _iter1558; + for (_iter1558 = (*(this->group_names)).begin(); _iter1558 != (*(this->group_names)).end(); ++_iter1558) { - xfer += oprot->writeString((*_iter1534)); + xfer += oprot->writeString((*_iter1558)); } xfer += oprot->writeListEnd(); } @@ -17716,14 +17716,14 @@ uint32_t ThriftHiveMetastore_get_partitions_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1535; - ::apache::thrift::protocol::TType _etype1538; - xfer += iprot->readListBegin(_etype1538, _size1535); - this->success.resize(_size1535); - uint32_t _i1539; - for (_i1539 = 0; _i1539 < _size1535; ++_i1539) + uint32_t _size1559; + ::apache::thrift::protocol::TType _etype1562; + xfer += iprot->readListBegin(_etype1562, _size1559); + this->success.resize(_size1559); + uint32_t _i1563; + for (_i1563 = 0; _i1563 < _size1559; ++_i1563) { - xfer += this->success[_i1539].read(iprot); + xfer += this->success[_i1563].read(iprot); } xfer += iprot->readListEnd(); } @@ -17770,10 +17770,10 @@ uint32_t ThriftHiveMetastore_get_partitions_result::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter1540; - for (_iter1540 = this->success.begin(); _iter1540 != this->success.end(); ++_iter1540) + std::vector ::const_iterator _iter1564; + for (_iter1564 = this->success.begin(); _iter1564 != this->success.end(); ++_iter1564) { - xfer += (*_iter1540).write(oprot); + xfer += (*_iter1564).write(oprot); } xfer += oprot->writeListEnd(); } @@ -17822,14 +17822,14 @@ uint32_t ThriftHiveMetastore_get_partitions_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1541; - ::apache::thrift::protocol::TType _etype1544; - xfer += iprot->readListBegin(_etype1544, _size1541); - (*(this->success)).resize(_size1541); - uint32_t _i1545; - for (_i1545 = 0; _i1545 < _size1541; ++_i1545) + uint32_t _size1565; + ::apache::thrift::protocol::TType _etype1568; + xfer += iprot->readListBegin(_etype1568, _size1565); + (*(this->success)).resize(_size1565); + uint32_t _i1569; + for (_i1569 = 0; _i1569 < _size1565; ++_i1569) { - xfer += (*(this->success))[_i1545].read(iprot); + xfer += (*(this->success))[_i1569].read(iprot); } xfer += iprot->readListEnd(); } @@ -17928,14 +17928,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_args::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->group_names.clear(); - uint32_t _size1546; - ::apache::thrift::protocol::TType _etype1549; - xfer += iprot->readListBegin(_etype1549, _size1546); - this->group_names.resize(_size1546); - uint32_t _i1550; - for (_i1550 = 0; _i1550 < _size1546; ++_i1550) + uint32_t _size1570; + ::apache::thrift::protocol::TType _etype1573; + xfer += iprot->readListBegin(_etype1573, _size1570); + this->group_names.resize(_size1570); + uint32_t _i1574; + for (_i1574 = 0; _i1574 < _size1570; ++_i1574) { - xfer += iprot->readString(this->group_names[_i1550]); + xfer += iprot->readString(this->group_names[_i1574]); } xfer += iprot->readListEnd(); } @@ -17980,10 +17980,10 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_args::write(::apache::thri xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size())); - std::vector ::const_iterator _iter1551; - for (_iter1551 = this->group_names.begin(); _iter1551 != this->group_names.end(); ++_iter1551) + std::vector ::const_iterator _iter1575; + for (_iter1575 = this->group_names.begin(); _iter1575 != this->group_names.end(); ++_iter1575) { - xfer += oprot->writeString((*_iter1551)); + xfer += oprot->writeString((*_iter1575)); } xfer += oprot->writeListEnd(); } @@ -18023,10 +18023,10 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_pargs::write(::apache::thr xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size())); - std::vector ::const_iterator _iter1552; - for (_iter1552 = (*(this->group_names)).begin(); _iter1552 != (*(this->group_names)).end(); ++_iter1552) + std::vector ::const_iterator _iter1576; + for (_iter1576 = (*(this->group_names)).begin(); _iter1576 != (*(this->group_names)).end(); ++_iter1576) { - xfer += oprot->writeString((*_iter1552)); + xfer += oprot->writeString((*_iter1576)); } xfer += oprot->writeListEnd(); } @@ -18067,14 +18067,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_result::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1553; - ::apache::thrift::protocol::TType _etype1556; - xfer += iprot->readListBegin(_etype1556, _size1553); - this->success.resize(_size1553); - uint32_t _i1557; - for (_i1557 = 0; _i1557 < _size1553; ++_i1557) + uint32_t _size1577; + ::apache::thrift::protocol::TType _etype1580; + xfer += iprot->readListBegin(_etype1580, _size1577); + this->success.resize(_size1577); + uint32_t _i1581; + for (_i1581 = 0; _i1581 < _size1577; ++_i1581) { - xfer += this->success[_i1557].read(iprot); + xfer += this->success[_i1581].read(iprot); } xfer += iprot->readListEnd(); } @@ -18121,10 +18121,10 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_result::write(::apache::th xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter1558; - for (_iter1558 = this->success.begin(); _iter1558 != this->success.end(); ++_iter1558) + std::vector ::const_iterator _iter1582; + for (_iter1582 = this->success.begin(); _iter1582 != this->success.end(); ++_iter1582) { - xfer += (*_iter1558).write(oprot); + xfer += (*_iter1582).write(oprot); } xfer += oprot->writeListEnd(); } @@ -18173,14 +18173,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_presult::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1559; - ::apache::thrift::protocol::TType _etype1562; - xfer += iprot->readListBegin(_etype1562, _size1559); - (*(this->success)).resize(_size1559); - uint32_t _i1563; - for (_i1563 = 0; _i1563 < _size1559; ++_i1563) + uint32_t _size1583; + ::apache::thrift::protocol::TType _etype1586; + xfer += iprot->readListBegin(_etype1586, _size1583); + (*(this->success)).resize(_size1583); + uint32_t _i1587; + for (_i1587 = 0; _i1587 < _size1583; ++_i1587) { - xfer += (*(this->success))[_i1563].read(iprot); + xfer += (*(this->success))[_i1587].read(iprot); } xfer += iprot->readListEnd(); } @@ -18358,14 +18358,14 @@ uint32_t ThriftHiveMetastore_get_partitions_pspec_result::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1564; - ::apache::thrift::protocol::TType _etype1567; - xfer += iprot->readListBegin(_etype1567, _size1564); - this->success.resize(_size1564); - uint32_t _i1568; - for (_i1568 = 0; _i1568 < _size1564; ++_i1568) + uint32_t _size1588; + ::apache::thrift::protocol::TType _etype1591; + xfer += iprot->readListBegin(_etype1591, _size1588); + this->success.resize(_size1588); + uint32_t _i1592; + for (_i1592 = 0; _i1592 < _size1588; ++_i1592) { - xfer += this->success[_i1568].read(iprot); + xfer += this->success[_i1592].read(iprot); } xfer += iprot->readListEnd(); } @@ -18412,10 +18412,10 @@ uint32_t ThriftHiveMetastore_get_partitions_pspec_result::write(::apache::thrift xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter1569; - for (_iter1569 = this->success.begin(); _iter1569 != this->success.end(); ++_iter1569) + std::vector ::const_iterator _iter1593; + for (_iter1593 = this->success.begin(); _iter1593 != this->success.end(); ++_iter1593) { - xfer += (*_iter1569).write(oprot); + xfer += (*_iter1593).write(oprot); } xfer += oprot->writeListEnd(); } @@ -18464,14 +18464,14 @@ uint32_t ThriftHiveMetastore_get_partitions_pspec_presult::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1570; - ::apache::thrift::protocol::TType _etype1573; - xfer += iprot->readListBegin(_etype1573, _size1570); - (*(this->success)).resize(_size1570); - uint32_t _i1574; - for (_i1574 = 0; _i1574 < _size1570; ++_i1574) + uint32_t _size1594; + ::apache::thrift::protocol::TType _etype1597; + xfer += iprot->readListBegin(_etype1597, _size1594); + (*(this->success)).resize(_size1594); + uint32_t _i1598; + for (_i1598 = 0; _i1598 < _size1594; ++_i1598) { - xfer += (*(this->success))[_i1574].read(iprot); + xfer += (*(this->success))[_i1598].read(iprot); } xfer += iprot->readListEnd(); } @@ -18649,14 +18649,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_result::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1575; - ::apache::thrift::protocol::TType _etype1578; - xfer += iprot->readListBegin(_etype1578, _size1575); - this->success.resize(_size1575); - uint32_t _i1579; - for (_i1579 = 0; _i1579 < _size1575; ++_i1579) + uint32_t _size1599; + ::apache::thrift::protocol::TType _etype1602; + xfer += iprot->readListBegin(_etype1602, _size1599); + this->success.resize(_size1599); + uint32_t _i1603; + for (_i1603 = 0; _i1603 < _size1599; ++_i1603) { - xfer += iprot->readString(this->success[_i1579]); + xfer += iprot->readString(this->success[_i1603]); } xfer += iprot->readListEnd(); } @@ -18703,10 +18703,10 @@ uint32_t ThriftHiveMetastore_get_partition_names_result::write(::apache::thrift: xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter1580; - for (_iter1580 = this->success.begin(); _iter1580 != this->success.end(); ++_iter1580) + std::vector ::const_iterator _iter1604; + for (_iter1604 = this->success.begin(); _iter1604 != this->success.end(); ++_iter1604) { - xfer += oprot->writeString((*_iter1580)); + xfer += oprot->writeString((*_iter1604)); } xfer += oprot->writeListEnd(); } @@ -18755,14 +18755,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_presult::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1581; - ::apache::thrift::protocol::TType _etype1584; - xfer += iprot->readListBegin(_etype1584, _size1581); - (*(this->success)).resize(_size1581); - uint32_t _i1585; - for (_i1585 = 0; _i1585 < _size1581; ++_i1585) + uint32_t _size1605; + ::apache::thrift::protocol::TType _etype1608; + xfer += iprot->readListBegin(_etype1608, _size1605); + (*(this->success)).resize(_size1605); + uint32_t _i1609; + for (_i1609 = 0; _i1609 < _size1605; ++_i1609) { - xfer += iprot->readString((*(this->success))[_i1585]); + xfer += iprot->readString((*(this->success))[_i1609]); } xfer += iprot->readListEnd(); } @@ -19072,14 +19072,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_args::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1586; - ::apache::thrift::protocol::TType _etype1589; - xfer += iprot->readListBegin(_etype1589, _size1586); - this->part_vals.resize(_size1586); - uint32_t _i1590; - for (_i1590 = 0; _i1590 < _size1586; ++_i1590) + uint32_t _size1610; + ::apache::thrift::protocol::TType _etype1613; + xfer += iprot->readListBegin(_etype1613, _size1610); + this->part_vals.resize(_size1610); + uint32_t _i1614; + for (_i1614 = 0; _i1614 < _size1610; ++_i1614) { - xfer += iprot->readString(this->part_vals[_i1590]); + xfer += iprot->readString(this->part_vals[_i1614]); } xfer += iprot->readListEnd(); } @@ -19124,10 +19124,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_args::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter1591; - for (_iter1591 = this->part_vals.begin(); _iter1591 != this->part_vals.end(); ++_iter1591) + std::vector ::const_iterator _iter1615; + for (_iter1615 = this->part_vals.begin(); _iter1615 != this->part_vals.end(); ++_iter1615) { - xfer += oprot->writeString((*_iter1591)); + xfer += oprot->writeString((*_iter1615)); } xfer += oprot->writeListEnd(); } @@ -19163,10 +19163,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_pargs::write(::apache::thrift::pr xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter1592; - for (_iter1592 = (*(this->part_vals)).begin(); _iter1592 != (*(this->part_vals)).end(); ++_iter1592) + std::vector ::const_iterator _iter1616; + for (_iter1616 = (*(this->part_vals)).begin(); _iter1616 != (*(this->part_vals)).end(); ++_iter1616) { - xfer += oprot->writeString((*_iter1592)); + xfer += oprot->writeString((*_iter1616)); } xfer += oprot->writeListEnd(); } @@ -19211,14 +19211,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_result::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1593; - ::apache::thrift::protocol::TType _etype1596; - xfer += iprot->readListBegin(_etype1596, _size1593); - this->success.resize(_size1593); - uint32_t _i1597; - for (_i1597 = 0; _i1597 < _size1593; ++_i1597) + uint32_t _size1617; + ::apache::thrift::protocol::TType _etype1620; + xfer += iprot->readListBegin(_etype1620, _size1617); + this->success.resize(_size1617); + uint32_t _i1621; + for (_i1621 = 0; _i1621 < _size1617; ++_i1621) { - xfer += this->success[_i1597].read(iprot); + xfer += this->success[_i1621].read(iprot); } xfer += iprot->readListEnd(); } @@ -19265,10 +19265,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_result::write(::apache::thrift::p xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter1598; - for (_iter1598 = this->success.begin(); _iter1598 != this->success.end(); ++_iter1598) + std::vector ::const_iterator _iter1622; + for (_iter1622 = this->success.begin(); _iter1622 != this->success.end(); ++_iter1622) { - xfer += (*_iter1598).write(oprot); + xfer += (*_iter1622).write(oprot); } xfer += oprot->writeListEnd(); } @@ -19317,14 +19317,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_presult::read(::apache::thrift::p if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1599; - ::apache::thrift::protocol::TType _etype1602; - xfer += iprot->readListBegin(_etype1602, _size1599); - (*(this->success)).resize(_size1599); - uint32_t _i1603; - for (_i1603 = 0; _i1603 < _size1599; ++_i1603) + uint32_t _size1623; + ::apache::thrift::protocol::TType _etype1626; + xfer += iprot->readListBegin(_etype1626, _size1623); + (*(this->success)).resize(_size1623); + uint32_t _i1627; + for (_i1627 = 0; _i1627 < _size1623; ++_i1627) { - xfer += (*(this->success))[_i1603].read(iprot); + xfer += (*(this->success))[_i1627].read(iprot); } xfer += iprot->readListEnd(); } @@ -19407,14 +19407,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_args::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1604; - ::apache::thrift::protocol::TType _etype1607; - xfer += iprot->readListBegin(_etype1607, _size1604); - this->part_vals.resize(_size1604); - uint32_t _i1608; - for (_i1608 = 0; _i1608 < _size1604; ++_i1608) + uint32_t _size1628; + ::apache::thrift::protocol::TType _etype1631; + xfer += iprot->readListBegin(_etype1631, _size1628); + this->part_vals.resize(_size1628); + uint32_t _i1632; + for (_i1632 = 0; _i1632 < _size1628; ++_i1632) { - xfer += iprot->readString(this->part_vals[_i1608]); + xfer += iprot->readString(this->part_vals[_i1632]); } xfer += iprot->readListEnd(); } @@ -19443,14 +19443,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_args::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { this->group_names.clear(); - uint32_t _size1609; - ::apache::thrift::protocol::TType _etype1612; - xfer += iprot->readListBegin(_etype1612, _size1609); - this->group_names.resize(_size1609); - uint32_t _i1613; - for (_i1613 = 0; _i1613 < _size1609; ++_i1613) + uint32_t _size1633; + ::apache::thrift::protocol::TType _etype1636; + xfer += iprot->readListBegin(_etype1636, _size1633); + this->group_names.resize(_size1633); + uint32_t _i1637; + for (_i1637 = 0; _i1637 < _size1633; ++_i1637) { - xfer += iprot->readString(this->group_names[_i1613]); + xfer += iprot->readString(this->group_names[_i1637]); } xfer += iprot->readListEnd(); } @@ -19487,10 +19487,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_args::write(::apache::t xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter1614; - for (_iter1614 = this->part_vals.begin(); _iter1614 != this->part_vals.end(); ++_iter1614) + std::vector ::const_iterator _iter1638; + for (_iter1638 = this->part_vals.begin(); _iter1638 != this->part_vals.end(); ++_iter1638) { - xfer += oprot->writeString((*_iter1614)); + xfer += oprot->writeString((*_iter1638)); } xfer += oprot->writeListEnd(); } @@ -19507,10 +19507,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_args::write(::apache::t xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 6); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size())); - std::vector ::const_iterator _iter1615; - for (_iter1615 = this->group_names.begin(); _iter1615 != this->group_names.end(); ++_iter1615) + std::vector ::const_iterator _iter1639; + for (_iter1639 = this->group_names.begin(); _iter1639 != this->group_names.end(); ++_iter1639) { - xfer += oprot->writeString((*_iter1615)); + xfer += oprot->writeString((*_iter1639)); } xfer += oprot->writeListEnd(); } @@ -19542,10 +19542,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_pargs::write(::apache:: xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter1616; - for (_iter1616 = (*(this->part_vals)).begin(); _iter1616 != (*(this->part_vals)).end(); ++_iter1616) + std::vector ::const_iterator _iter1640; + for (_iter1640 = (*(this->part_vals)).begin(); _iter1640 != (*(this->part_vals)).end(); ++_iter1640) { - xfer += oprot->writeString((*_iter1616)); + xfer += oprot->writeString((*_iter1640)); } xfer += oprot->writeListEnd(); } @@ -19562,10 +19562,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_pargs::write(::apache:: xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 6); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size())); - std::vector ::const_iterator _iter1617; - for (_iter1617 = (*(this->group_names)).begin(); _iter1617 != (*(this->group_names)).end(); ++_iter1617) + std::vector ::const_iterator _iter1641; + for (_iter1641 = (*(this->group_names)).begin(); _iter1641 != (*(this->group_names)).end(); ++_iter1641) { - xfer += oprot->writeString((*_iter1617)); + xfer += oprot->writeString((*_iter1641)); } xfer += oprot->writeListEnd(); } @@ -19606,14 +19606,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_result::read(::apache:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1618; - ::apache::thrift::protocol::TType _etype1621; - xfer += iprot->readListBegin(_etype1621, _size1618); - this->success.resize(_size1618); - uint32_t _i1622; - for (_i1622 = 0; _i1622 < _size1618; ++_i1622) + uint32_t _size1642; + ::apache::thrift::protocol::TType _etype1645; + xfer += iprot->readListBegin(_etype1645, _size1642); + this->success.resize(_size1642); + uint32_t _i1646; + for (_i1646 = 0; _i1646 < _size1642; ++_i1646) { - xfer += this->success[_i1622].read(iprot); + xfer += this->success[_i1646].read(iprot); } xfer += iprot->readListEnd(); } @@ -19660,10 +19660,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_result::write(::apache: xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter1623; - for (_iter1623 = this->success.begin(); _iter1623 != this->success.end(); ++_iter1623) + std::vector ::const_iterator _iter1647; + for (_iter1647 = this->success.begin(); _iter1647 != this->success.end(); ++_iter1647) { - xfer += (*_iter1623).write(oprot); + xfer += (*_iter1647).write(oprot); } xfer += oprot->writeListEnd(); } @@ -19712,14 +19712,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_presult::read(::apache: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1624; - ::apache::thrift::protocol::TType _etype1627; - xfer += iprot->readListBegin(_etype1627, _size1624); - (*(this->success)).resize(_size1624); - uint32_t _i1628; - for (_i1628 = 0; _i1628 < _size1624; ++_i1628) + uint32_t _size1648; + ::apache::thrift::protocol::TType _etype1651; + xfer += iprot->readListBegin(_etype1651, _size1648); + (*(this->success)).resize(_size1648); + uint32_t _i1652; + for (_i1652 = 0; _i1652 < _size1648; ++_i1652) { - xfer += (*(this->success))[_i1628].read(iprot); + xfer += (*(this->success))[_i1652].read(iprot); } xfer += iprot->readListEnd(); } @@ -19802,14 +19802,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_args::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1629; - ::apache::thrift::protocol::TType _etype1632; - xfer += iprot->readListBegin(_etype1632, _size1629); - this->part_vals.resize(_size1629); - uint32_t _i1633; - for (_i1633 = 0; _i1633 < _size1629; ++_i1633) + uint32_t _size1653; + ::apache::thrift::protocol::TType _etype1656; + xfer += iprot->readListBegin(_etype1656, _size1653); + this->part_vals.resize(_size1653); + uint32_t _i1657; + for (_i1657 = 0; _i1657 < _size1653; ++_i1657) { - xfer += iprot->readString(this->part_vals[_i1633]); + xfer += iprot->readString(this->part_vals[_i1657]); } xfer += iprot->readListEnd(); } @@ -19854,10 +19854,10 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_args::write(::apache::thrift xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter1634; - for (_iter1634 = this->part_vals.begin(); _iter1634 != this->part_vals.end(); ++_iter1634) + std::vector ::const_iterator _iter1658; + for (_iter1658 = this->part_vals.begin(); _iter1658 != this->part_vals.end(); ++_iter1658) { - xfer += oprot->writeString((*_iter1634)); + xfer += oprot->writeString((*_iter1658)); } xfer += oprot->writeListEnd(); } @@ -19893,10 +19893,10 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_pargs::write(::apache::thrif xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter1635; - for (_iter1635 = (*(this->part_vals)).begin(); _iter1635 != (*(this->part_vals)).end(); ++_iter1635) + std::vector ::const_iterator _iter1659; + for (_iter1659 = (*(this->part_vals)).begin(); _iter1659 != (*(this->part_vals)).end(); ++_iter1659) { - xfer += oprot->writeString((*_iter1635)); + xfer += oprot->writeString((*_iter1659)); } xfer += oprot->writeListEnd(); } @@ -19941,14 +19941,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1636; - ::apache::thrift::protocol::TType _etype1639; - xfer += iprot->readListBegin(_etype1639, _size1636); - this->success.resize(_size1636); - uint32_t _i1640; - for (_i1640 = 0; _i1640 < _size1636; ++_i1640) + uint32_t _size1660; + ::apache::thrift::protocol::TType _etype1663; + xfer += iprot->readListBegin(_etype1663, _size1660); + this->success.resize(_size1660); + uint32_t _i1664; + for (_i1664 = 0; _i1664 < _size1660; ++_i1664) { - xfer += iprot->readString(this->success[_i1640]); + xfer += iprot->readString(this->success[_i1664]); } xfer += iprot->readListEnd(); } @@ -19995,10 +19995,10 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_result::write(::apache::thri xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter1641; - for (_iter1641 = this->success.begin(); _iter1641 != this->success.end(); ++_iter1641) + std::vector ::const_iterator _iter1665; + for (_iter1665 = this->success.begin(); _iter1665 != this->success.end(); ++_iter1665) { - xfer += oprot->writeString((*_iter1641)); + xfer += oprot->writeString((*_iter1665)); } xfer += oprot->writeListEnd(); } @@ -20047,14 +20047,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1642; - ::apache::thrift::protocol::TType _etype1645; - xfer += iprot->readListBegin(_etype1645, _size1642); - (*(this->success)).resize(_size1642); - uint32_t _i1646; - for (_i1646 = 0; _i1646 < _size1642; ++_i1646) + uint32_t _size1666; + ::apache::thrift::protocol::TType _etype1669; + xfer += iprot->readListBegin(_etype1669, _size1666); + (*(this->success)).resize(_size1666); + uint32_t _i1670; + for (_i1670 = 0; _i1670 < _size1666; ++_i1670) { - xfer += iprot->readString((*(this->success))[_i1646]); + xfer += iprot->readString((*(this->success))[_i1670]); } xfer += iprot->readListEnd(); } @@ -20248,14 +20248,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_result::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1647; - ::apache::thrift::protocol::TType _etype1650; - xfer += iprot->readListBegin(_etype1650, _size1647); - this->success.resize(_size1647); - uint32_t _i1651; - for (_i1651 = 0; _i1651 < _size1647; ++_i1651) + uint32_t _size1671; + ::apache::thrift::protocol::TType _etype1674; + xfer += iprot->readListBegin(_etype1674, _size1671); + this->success.resize(_size1671); + uint32_t _i1675; + for (_i1675 = 0; _i1675 < _size1671; ++_i1675) { - xfer += this->success[_i1651].read(iprot); + xfer += this->success[_i1675].read(iprot); } xfer += iprot->readListEnd(); } @@ -20302,10 +20302,10 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_result::write(::apache::th xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter1652; - for (_iter1652 = this->success.begin(); _iter1652 != this->success.end(); ++_iter1652) + std::vector ::const_iterator _iter1676; + for (_iter1676 = this->success.begin(); _iter1676 != this->success.end(); ++_iter1676) { - xfer += (*_iter1652).write(oprot); + xfer += (*_iter1676).write(oprot); } xfer += oprot->writeListEnd(); } @@ -20354,14 +20354,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_presult::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1653; - ::apache::thrift::protocol::TType _etype1656; - xfer += iprot->readListBegin(_etype1656, _size1653); - (*(this->success)).resize(_size1653); - uint32_t _i1657; - for (_i1657 = 0; _i1657 < _size1653; ++_i1657) + uint32_t _size1677; + ::apache::thrift::protocol::TType _etype1680; + xfer += iprot->readListBegin(_etype1680, _size1677); + (*(this->success)).resize(_size1677); + uint32_t _i1681; + for (_i1681 = 0; _i1681 < _size1677; ++_i1681) { - xfer += (*(this->success))[_i1657].read(iprot); + xfer += (*(this->success))[_i1681].read(iprot); } xfer += iprot->readListEnd(); } @@ -20555,14 +20555,14 @@ uint32_t ThriftHiveMetastore_get_part_specs_by_filter_result::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1658; - ::apache::thrift::protocol::TType _etype1661; - xfer += iprot->readListBegin(_etype1661, _size1658); - this->success.resize(_size1658); - uint32_t _i1662; - for (_i1662 = 0; _i1662 < _size1658; ++_i1662) + uint32_t _size1682; + ::apache::thrift::protocol::TType _etype1685; + xfer += iprot->readListBegin(_etype1685, _size1682); + this->success.resize(_size1682); + uint32_t _i1686; + for (_i1686 = 0; _i1686 < _size1682; ++_i1686) { - xfer += this->success[_i1662].read(iprot); + xfer += this->success[_i1686].read(iprot); } xfer += iprot->readListEnd(); } @@ -20609,10 +20609,10 @@ uint32_t ThriftHiveMetastore_get_part_specs_by_filter_result::write(::apache::th xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter1663; - for (_iter1663 = this->success.begin(); _iter1663 != this->success.end(); ++_iter1663) + std::vector ::const_iterator _iter1687; + for (_iter1687 = this->success.begin(); _iter1687 != this->success.end(); ++_iter1687) { - xfer += (*_iter1663).write(oprot); + xfer += (*_iter1687).write(oprot); } xfer += oprot->writeListEnd(); } @@ -20661,14 +20661,14 @@ uint32_t ThriftHiveMetastore_get_part_specs_by_filter_presult::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1664; - ::apache::thrift::protocol::TType _etype1667; - xfer += iprot->readListBegin(_etype1667, _size1664); - (*(this->success)).resize(_size1664); - uint32_t _i1668; - for (_i1668 = 0; _i1668 < _size1664; ++_i1668) + uint32_t _size1688; + ::apache::thrift::protocol::TType _etype1691; + xfer += iprot->readListBegin(_etype1691, _size1688); + (*(this->success)).resize(_size1688); + uint32_t _i1692; + for (_i1692 = 0; _i1692 < _size1688; ++_i1692) { - xfer += (*(this->success))[_i1668].read(iprot); + xfer += (*(this->success))[_i1692].read(iprot); } xfer += iprot->readListEnd(); } @@ -21237,14 +21237,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_args::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { this->names.clear(); - uint32_t _size1669; - ::apache::thrift::protocol::TType _etype1672; - xfer += iprot->readListBegin(_etype1672, _size1669); - this->names.resize(_size1669); - uint32_t _i1673; - for (_i1673 = 0; _i1673 < _size1669; ++_i1673) + uint32_t _size1693; + ::apache::thrift::protocol::TType _etype1696; + xfer += iprot->readListBegin(_etype1696, _size1693); + this->names.resize(_size1693); + uint32_t _i1697; + for (_i1697 = 0; _i1697 < _size1693; ++_i1697) { - xfer += iprot->readString(this->names[_i1673]); + xfer += iprot->readString(this->names[_i1697]); } xfer += iprot->readListEnd(); } @@ -21281,10 +21281,10 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_args::write(::apache::thrif xfer += oprot->writeFieldBegin("names", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->names.size())); - std::vector ::const_iterator _iter1674; - for (_iter1674 = this->names.begin(); _iter1674 != this->names.end(); ++_iter1674) + std::vector ::const_iterator _iter1698; + for (_iter1698 = this->names.begin(); _iter1698 != this->names.end(); ++_iter1698) { - xfer += oprot->writeString((*_iter1674)); + xfer += oprot->writeString((*_iter1698)); } xfer += oprot->writeListEnd(); } @@ -21316,10 +21316,10 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_pargs::write(::apache::thri xfer += oprot->writeFieldBegin("names", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->names)).size())); - std::vector ::const_iterator _iter1675; - for (_iter1675 = (*(this->names)).begin(); _iter1675 != (*(this->names)).end(); ++_iter1675) + std::vector ::const_iterator _iter1699; + for (_iter1699 = (*(this->names)).begin(); _iter1699 != (*(this->names)).end(); ++_iter1699) { - xfer += oprot->writeString((*_iter1675)); + xfer += oprot->writeString((*_iter1699)); } xfer += oprot->writeListEnd(); } @@ -21360,14 +21360,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_result::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1676; - ::apache::thrift::protocol::TType _etype1679; - xfer += iprot->readListBegin(_etype1679, _size1676); - this->success.resize(_size1676); - uint32_t _i1680; - for (_i1680 = 0; _i1680 < _size1676; ++_i1680) + uint32_t _size1700; + ::apache::thrift::protocol::TType _etype1703; + xfer += iprot->readListBegin(_etype1703, _size1700); + this->success.resize(_size1700); + uint32_t _i1704; + for (_i1704 = 0; _i1704 < _size1700; ++_i1704) { - xfer += this->success[_i1680].read(iprot); + xfer += this->success[_i1704].read(iprot); } xfer += iprot->readListEnd(); } @@ -21414,10 +21414,10 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_result::write(::apache::thr xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter1681; - for (_iter1681 = this->success.begin(); _iter1681 != this->success.end(); ++_iter1681) + std::vector ::const_iterator _iter1705; + for (_iter1705 = this->success.begin(); _iter1705 != this->success.end(); ++_iter1705) { - xfer += (*_iter1681).write(oprot); + xfer += (*_iter1705).write(oprot); } xfer += oprot->writeListEnd(); } @@ -21466,14 +21466,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_presult::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1682; - ::apache::thrift::protocol::TType _etype1685; - xfer += iprot->readListBegin(_etype1685, _size1682); - (*(this->success)).resize(_size1682); - uint32_t _i1686; - for (_i1686 = 0; _i1686 < _size1682; ++_i1686) + uint32_t _size1706; + ::apache::thrift::protocol::TType _etype1709; + xfer += iprot->readListBegin(_etype1709, _size1706); + (*(this->success)).resize(_size1706); + uint32_t _i1710; + for (_i1710 = 0; _i1710 < _size1706; ++_i1710) { - xfer += (*(this->success))[_i1686].read(iprot); + xfer += (*(this->success))[_i1710].read(iprot); } xfer += iprot->readListEnd(); } @@ -21795,14 +21795,14 @@ uint32_t ThriftHiveMetastore_alter_partitions_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size1687; - ::apache::thrift::protocol::TType _etype1690; - xfer += iprot->readListBegin(_etype1690, _size1687); - this->new_parts.resize(_size1687); - uint32_t _i1691; - for (_i1691 = 0; _i1691 < _size1687; ++_i1691) + uint32_t _size1711; + ::apache::thrift::protocol::TType _etype1714; + xfer += iprot->readListBegin(_etype1714, _size1711); + this->new_parts.resize(_size1711); + uint32_t _i1715; + for (_i1715 = 0; _i1715 < _size1711; ++_i1715) { - xfer += this->new_parts[_i1691].read(iprot); + xfer += this->new_parts[_i1715].read(iprot); } xfer += iprot->readListEnd(); } @@ -21839,10 +21839,10 @@ uint32_t ThriftHiveMetastore_alter_partitions_args::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->new_parts.size())); - std::vector ::const_iterator _iter1692; - for (_iter1692 = this->new_parts.begin(); _iter1692 != this->new_parts.end(); ++_iter1692) + std::vector ::const_iterator _iter1716; + for (_iter1716 = this->new_parts.begin(); _iter1716 != this->new_parts.end(); ++_iter1716) { - xfer += (*_iter1692).write(oprot); + xfer += (*_iter1716).write(oprot); } xfer += oprot->writeListEnd(); } @@ -21874,10 +21874,10 @@ uint32_t ThriftHiveMetastore_alter_partitions_pargs::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*(this->new_parts)).size())); - std::vector ::const_iterator _iter1693; - for (_iter1693 = (*(this->new_parts)).begin(); _iter1693 != (*(this->new_parts)).end(); ++_iter1693) + std::vector ::const_iterator _iter1717; + for (_iter1717 = (*(this->new_parts)).begin(); _iter1717 != (*(this->new_parts)).end(); ++_iter1717) { - xfer += (*_iter1693).write(oprot); + xfer += (*_iter1717).write(oprot); } xfer += oprot->writeListEnd(); } @@ -22062,14 +22062,14 @@ uint32_t ThriftHiveMetastore_alter_partitions_with_environment_context_args::rea if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size1694; - ::apache::thrift::protocol::TType _etype1697; - xfer += iprot->readListBegin(_etype1697, _size1694); - this->new_parts.resize(_size1694); - uint32_t _i1698; - for (_i1698 = 0; _i1698 < _size1694; ++_i1698) + uint32_t _size1718; + ::apache::thrift::protocol::TType _etype1721; + xfer += iprot->readListBegin(_etype1721, _size1718); + this->new_parts.resize(_size1718); + uint32_t _i1722; + for (_i1722 = 0; _i1722 < _size1718; ++_i1722) { - xfer += this->new_parts[_i1698].read(iprot); + xfer += this->new_parts[_i1722].read(iprot); } xfer += iprot->readListEnd(); } @@ -22114,10 +22114,10 @@ uint32_t ThriftHiveMetastore_alter_partitions_with_environment_context_args::wri xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->new_parts.size())); - std::vector ::const_iterator _iter1699; - for (_iter1699 = this->new_parts.begin(); _iter1699 != this->new_parts.end(); ++_iter1699) + std::vector ::const_iterator _iter1723; + for (_iter1723 = this->new_parts.begin(); _iter1723 != this->new_parts.end(); ++_iter1723) { - xfer += (*_iter1699).write(oprot); + xfer += (*_iter1723).write(oprot); } xfer += oprot->writeListEnd(); } @@ -22153,10 +22153,10 @@ uint32_t ThriftHiveMetastore_alter_partitions_with_environment_context_pargs::wr xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*(this->new_parts)).size())); - std::vector ::const_iterator _iter1700; - for (_iter1700 = (*(this->new_parts)).begin(); _iter1700 != (*(this->new_parts)).end(); ++_iter1700) + std::vector ::const_iterator _iter1724; + for (_iter1724 = (*(this->new_parts)).begin(); _iter1724 != (*(this->new_parts)).end(); ++_iter1724) { - xfer += (*_iter1700).write(oprot); + xfer += (*_iter1724).write(oprot); } xfer += oprot->writeListEnd(); } @@ -22600,14 +22600,14 @@ uint32_t ThriftHiveMetastore_rename_partition_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1701; - ::apache::thrift::protocol::TType _etype1704; - xfer += iprot->readListBegin(_etype1704, _size1701); - this->part_vals.resize(_size1701); - uint32_t _i1705; - for (_i1705 = 0; _i1705 < _size1701; ++_i1705) + uint32_t _size1725; + ::apache::thrift::protocol::TType _etype1728; + xfer += iprot->readListBegin(_etype1728, _size1725); + this->part_vals.resize(_size1725); + uint32_t _i1729; + for (_i1729 = 0; _i1729 < _size1725; ++_i1729) { - xfer += iprot->readString(this->part_vals[_i1705]); + xfer += iprot->readString(this->part_vals[_i1729]); } xfer += iprot->readListEnd(); } @@ -22652,10 +22652,10 @@ uint32_t ThriftHiveMetastore_rename_partition_args::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter1706; - for (_iter1706 = this->part_vals.begin(); _iter1706 != this->part_vals.end(); ++_iter1706) + std::vector ::const_iterator _iter1730; + for (_iter1730 = this->part_vals.begin(); _iter1730 != this->part_vals.end(); ++_iter1730) { - xfer += oprot->writeString((*_iter1706)); + xfer += oprot->writeString((*_iter1730)); } xfer += oprot->writeListEnd(); } @@ -22691,10 +22691,10 @@ uint32_t ThriftHiveMetastore_rename_partition_pargs::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter1707; - for (_iter1707 = (*(this->part_vals)).begin(); _iter1707 != (*(this->part_vals)).end(); ++_iter1707) + std::vector ::const_iterator _iter1731; + for (_iter1731 = (*(this->part_vals)).begin(); _iter1731 != (*(this->part_vals)).end(); ++_iter1731) { - xfer += oprot->writeString((*_iter1707)); + xfer += oprot->writeString((*_iter1731)); } xfer += oprot->writeListEnd(); } @@ -22867,14 +22867,14 @@ uint32_t ThriftHiveMetastore_partition_name_has_valid_characters_args::read(::ap if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1708; - ::apache::thrift::protocol::TType _etype1711; - xfer += iprot->readListBegin(_etype1711, _size1708); - this->part_vals.resize(_size1708); - uint32_t _i1712; - for (_i1712 = 0; _i1712 < _size1708; ++_i1712) + uint32_t _size1732; + ::apache::thrift::protocol::TType _etype1735; + xfer += iprot->readListBegin(_etype1735, _size1732); + this->part_vals.resize(_size1732); + uint32_t _i1736; + for (_i1736 = 0; _i1736 < _size1732; ++_i1736) { - xfer += iprot->readString(this->part_vals[_i1712]); + xfer += iprot->readString(this->part_vals[_i1736]); } xfer += iprot->readListEnd(); } @@ -22911,10 +22911,10 @@ uint32_t ThriftHiveMetastore_partition_name_has_valid_characters_args::write(::a xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter1713; - for (_iter1713 = this->part_vals.begin(); _iter1713 != this->part_vals.end(); ++_iter1713) + std::vector ::const_iterator _iter1737; + for (_iter1737 = this->part_vals.begin(); _iter1737 != this->part_vals.end(); ++_iter1737) { - xfer += oprot->writeString((*_iter1713)); + xfer += oprot->writeString((*_iter1737)); } xfer += oprot->writeListEnd(); } @@ -22942,10 +22942,10 @@ uint32_t ThriftHiveMetastore_partition_name_has_valid_characters_pargs::write(:: xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter1714; - for (_iter1714 = (*(this->part_vals)).begin(); _iter1714 != (*(this->part_vals)).end(); ++_iter1714) + std::vector ::const_iterator _iter1738; + for (_iter1738 = (*(this->part_vals)).begin(); _iter1738 != (*(this->part_vals)).end(); ++_iter1738) { - xfer += oprot->writeString((*_iter1714)); + xfer += oprot->writeString((*_iter1738)); } xfer += oprot->writeListEnd(); } @@ -23420,14 +23420,14 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1715; - ::apache::thrift::protocol::TType _etype1718; - xfer += iprot->readListBegin(_etype1718, _size1715); - this->success.resize(_size1715); - uint32_t _i1719; - for (_i1719 = 0; _i1719 < _size1715; ++_i1719) + uint32_t _size1739; + ::apache::thrift::protocol::TType _etype1742; + xfer += iprot->readListBegin(_etype1742, _size1739); + this->success.resize(_size1739); + uint32_t _i1743; + for (_i1743 = 0; _i1743 < _size1739; ++_i1743) { - xfer += iprot->readString(this->success[_i1719]); + xfer += iprot->readString(this->success[_i1743]); } xfer += iprot->readListEnd(); } @@ -23466,10 +23466,10 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_result::write(::apache::thri xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter1720; - for (_iter1720 = this->success.begin(); _iter1720 != this->success.end(); ++_iter1720) + std::vector ::const_iterator _iter1744; + for (_iter1744 = this->success.begin(); _iter1744 != this->success.end(); ++_iter1744) { - xfer += oprot->writeString((*_iter1720)); + xfer += oprot->writeString((*_iter1744)); } xfer += oprot->writeListEnd(); } @@ -23514,14 +23514,14 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1721; - ::apache::thrift::protocol::TType _etype1724; - xfer += iprot->readListBegin(_etype1724, _size1721); - (*(this->success)).resize(_size1721); - uint32_t _i1725; - for (_i1725 = 0; _i1725 < _size1721; ++_i1725) + uint32_t _size1745; + ::apache::thrift::protocol::TType _etype1748; + xfer += iprot->readListBegin(_etype1748, _size1745); + (*(this->success)).resize(_size1745); + uint32_t _i1749; + for (_i1749 = 0; _i1749 < _size1745; ++_i1749) { - xfer += iprot->readString((*(this->success))[_i1725]); + xfer += iprot->readString((*(this->success))[_i1749]); } xfer += iprot->readListEnd(); } @@ -23659,17 +23659,17 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_MAP) { { this->success.clear(); - uint32_t _size1726; - ::apache::thrift::protocol::TType _ktype1727; - ::apache::thrift::protocol::TType _vtype1728; - xfer += iprot->readMapBegin(_ktype1727, _vtype1728, _size1726); - uint32_t _i1730; - for (_i1730 = 0; _i1730 < _size1726; ++_i1730) + uint32_t _size1750; + ::apache::thrift::protocol::TType _ktype1751; + ::apache::thrift::protocol::TType _vtype1752; + xfer += iprot->readMapBegin(_ktype1751, _vtype1752, _size1750); + uint32_t _i1754; + for (_i1754 = 0; _i1754 < _size1750; ++_i1754) { - std::string _key1731; - xfer += iprot->readString(_key1731); - std::string& _val1732 = this->success[_key1731]; - xfer += iprot->readString(_val1732); + std::string _key1755; + xfer += iprot->readString(_key1755); + std::string& _val1756 = this->success[_key1755]; + xfer += iprot->readString(_val1756); } xfer += iprot->readMapEnd(); } @@ -23708,11 +23708,11 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_result::write(::apache::thri xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::map ::const_iterator _iter1733; - for (_iter1733 = this->success.begin(); _iter1733 != this->success.end(); ++_iter1733) + std::map ::const_iterator _iter1757; + for (_iter1757 = this->success.begin(); _iter1757 != this->success.end(); ++_iter1757) { - xfer += oprot->writeString(_iter1733->first); - xfer += oprot->writeString(_iter1733->second); + xfer += oprot->writeString(_iter1757->first); + xfer += oprot->writeString(_iter1757->second); } xfer += oprot->writeMapEnd(); } @@ -23757,17 +23757,17 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_MAP) { { (*(this->success)).clear(); - uint32_t _size1734; - ::apache::thrift::protocol::TType _ktype1735; - ::apache::thrift::protocol::TType _vtype1736; - xfer += iprot->readMapBegin(_ktype1735, _vtype1736, _size1734); - uint32_t _i1738; - for (_i1738 = 0; _i1738 < _size1734; ++_i1738) + uint32_t _size1758; + ::apache::thrift::protocol::TType _ktype1759; + ::apache::thrift::protocol::TType _vtype1760; + xfer += iprot->readMapBegin(_ktype1759, _vtype1760, _size1758); + uint32_t _i1762; + for (_i1762 = 0; _i1762 < _size1758; ++_i1762) { - std::string _key1739; - xfer += iprot->readString(_key1739); - std::string& _val1740 = (*(this->success))[_key1739]; - xfer += iprot->readString(_val1740); + std::string _key1763; + xfer += iprot->readString(_key1763); + std::string& _val1764 = (*(this->success))[_key1763]; + xfer += iprot->readString(_val1764); } xfer += iprot->readMapEnd(); } @@ -23842,17 +23842,17 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_MAP) { { this->part_vals.clear(); - uint32_t _size1741; - ::apache::thrift::protocol::TType _ktype1742; - ::apache::thrift::protocol::TType _vtype1743; - xfer += iprot->readMapBegin(_ktype1742, _vtype1743, _size1741); - uint32_t _i1745; - for (_i1745 = 0; _i1745 < _size1741; ++_i1745) + uint32_t _size1765; + ::apache::thrift::protocol::TType _ktype1766; + ::apache::thrift::protocol::TType _vtype1767; + xfer += iprot->readMapBegin(_ktype1766, _vtype1767, _size1765); + uint32_t _i1769; + for (_i1769 = 0; _i1769 < _size1765; ++_i1769) { - std::string _key1746; - xfer += iprot->readString(_key1746); - std::string& _val1747 = this->part_vals[_key1746]; - xfer += iprot->readString(_val1747); + std::string _key1770; + xfer += iprot->readString(_key1770); + std::string& _val1771 = this->part_vals[_key1770]; + xfer += iprot->readString(_val1771); } xfer += iprot->readMapEnd(); } @@ -23863,9 +23863,9 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::read(::apache::thrift:: break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1748; - xfer += iprot->readI32(ecast1748); - this->eventType = (PartitionEventType::type)ecast1748; + int32_t ecast1772; + xfer += iprot->readI32(ecast1772); + this->eventType = (PartitionEventType::type)ecast1772; this->__isset.eventType = true; } else { xfer += iprot->skip(ftype); @@ -23899,11 +23899,11 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::write(::apache::thrift: xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_MAP, 3); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::map ::const_iterator _iter1749; - for (_iter1749 = this->part_vals.begin(); _iter1749 != this->part_vals.end(); ++_iter1749) + std::map ::const_iterator _iter1773; + for (_iter1773 = this->part_vals.begin(); _iter1773 != this->part_vals.end(); ++_iter1773) { - xfer += oprot->writeString(_iter1749->first); - xfer += oprot->writeString(_iter1749->second); + xfer += oprot->writeString(_iter1773->first); + xfer += oprot->writeString(_iter1773->second); } xfer += oprot->writeMapEnd(); } @@ -23939,11 +23939,11 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_pargs::write(::apache::thrift xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_MAP, 3); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::map ::const_iterator _iter1750; - for (_iter1750 = (*(this->part_vals)).begin(); _iter1750 != (*(this->part_vals)).end(); ++_iter1750) + std::map ::const_iterator _iter1774; + for (_iter1774 = (*(this->part_vals)).begin(); _iter1774 != (*(this->part_vals)).end(); ++_iter1774) { - xfer += oprot->writeString(_iter1750->first); - xfer += oprot->writeString(_iter1750->second); + xfer += oprot->writeString(_iter1774->first); + xfer += oprot->writeString(_iter1774->second); } xfer += oprot->writeMapEnd(); } @@ -24212,17 +24212,17 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_MAP) { { this->part_vals.clear(); - uint32_t _size1751; - ::apache::thrift::protocol::TType _ktype1752; - ::apache::thrift::protocol::TType _vtype1753; - xfer += iprot->readMapBegin(_ktype1752, _vtype1753, _size1751); - uint32_t _i1755; - for (_i1755 = 0; _i1755 < _size1751; ++_i1755) + uint32_t _size1775; + ::apache::thrift::protocol::TType _ktype1776; + ::apache::thrift::protocol::TType _vtype1777; + xfer += iprot->readMapBegin(_ktype1776, _vtype1777, _size1775); + uint32_t _i1779; + for (_i1779 = 0; _i1779 < _size1775; ++_i1779) { - std::string _key1756; - xfer += iprot->readString(_key1756); - std::string& _val1757 = this->part_vals[_key1756]; - xfer += iprot->readString(_val1757); + std::string _key1780; + xfer += iprot->readString(_key1780); + std::string& _val1781 = this->part_vals[_key1780]; + xfer += iprot->readString(_val1781); } xfer += iprot->readMapEnd(); } @@ -24233,9 +24233,9 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::read(::apache::thri break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1758; - xfer += iprot->readI32(ecast1758); - this->eventType = (PartitionEventType::type)ecast1758; + int32_t ecast1782; + xfer += iprot->readI32(ecast1782); + this->eventType = (PartitionEventType::type)ecast1782; this->__isset.eventType = true; } else { xfer += iprot->skip(ftype); @@ -24269,11 +24269,11 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::write(::apache::thr xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_MAP, 3); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::map ::const_iterator _iter1759; - for (_iter1759 = this->part_vals.begin(); _iter1759 != this->part_vals.end(); ++_iter1759) + std::map ::const_iterator _iter1783; + for (_iter1783 = this->part_vals.begin(); _iter1783 != this->part_vals.end(); ++_iter1783) { - xfer += oprot->writeString(_iter1759->first); - xfer += oprot->writeString(_iter1759->second); + xfer += oprot->writeString(_iter1783->first); + xfer += oprot->writeString(_iter1783->second); } xfer += oprot->writeMapEnd(); } @@ -24309,11 +24309,11 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_pargs::write(::apache::th xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_MAP, 3); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::map ::const_iterator _iter1760; - for (_iter1760 = (*(this->part_vals)).begin(); _iter1760 != (*(this->part_vals)).end(); ++_iter1760) + std::map ::const_iterator _iter1784; + for (_iter1784 = (*(this->part_vals)).begin(); _iter1784 != (*(this->part_vals)).end(); ++_iter1784) { - xfer += oprot->writeString(_iter1760->first); - xfer += oprot->writeString(_iter1760->second); + xfer += oprot->writeString(_iter1784->first); + xfer += oprot->writeString(_iter1784->second); } xfer += oprot->writeMapEnd(); } @@ -29462,14 +29462,14 @@ uint32_t ThriftHiveMetastore_get_functions_result::read(::apache::thrift::protoc if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1761; - ::apache::thrift::protocol::TType _etype1764; - xfer += iprot->readListBegin(_etype1764, _size1761); - this->success.resize(_size1761); - uint32_t _i1765; - for (_i1765 = 0; _i1765 < _size1761; ++_i1765) + uint32_t _size1785; + ::apache::thrift::protocol::TType _etype1788; + xfer += iprot->readListBegin(_etype1788, _size1785); + this->success.resize(_size1785); + uint32_t _i1789; + for (_i1789 = 0; _i1789 < _size1785; ++_i1789) { - xfer += iprot->readString(this->success[_i1765]); + xfer += iprot->readString(this->success[_i1789]); } xfer += iprot->readListEnd(); } @@ -29508,10 +29508,10 @@ uint32_t ThriftHiveMetastore_get_functions_result::write(::apache::thrift::proto xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter1766; - for (_iter1766 = this->success.begin(); _iter1766 != this->success.end(); ++_iter1766) + std::vector ::const_iterator _iter1790; + for (_iter1790 = this->success.begin(); _iter1790 != this->success.end(); ++_iter1790) { - xfer += oprot->writeString((*_iter1766)); + xfer += oprot->writeString((*_iter1790)); } xfer += oprot->writeListEnd(); } @@ -29556,14 +29556,14 @@ uint32_t ThriftHiveMetastore_get_functions_presult::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1767; - ::apache::thrift::protocol::TType _etype1770; - xfer += iprot->readListBegin(_etype1770, _size1767); - (*(this->success)).resize(_size1767); - uint32_t _i1771; - for (_i1771 = 0; _i1771 < _size1767; ++_i1771) + uint32_t _size1791; + ::apache::thrift::protocol::TType _etype1794; + xfer += iprot->readListBegin(_etype1794, _size1791); + (*(this->success)).resize(_size1791); + uint32_t _i1795; + for (_i1795 = 0; _i1795 < _size1791; ++_i1795) { - xfer += iprot->readString((*(this->success))[_i1771]); + xfer += iprot->readString((*(this->success))[_i1795]); } xfer += iprot->readListEnd(); } @@ -30523,14 +30523,14 @@ uint32_t ThriftHiveMetastore_get_role_names_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1772; - ::apache::thrift::protocol::TType _etype1775; - xfer += iprot->readListBegin(_etype1775, _size1772); - this->success.resize(_size1772); - uint32_t _i1776; - for (_i1776 = 0; _i1776 < _size1772; ++_i1776) + uint32_t _size1796; + ::apache::thrift::protocol::TType _etype1799; + xfer += iprot->readListBegin(_etype1799, _size1796); + this->success.resize(_size1796); + uint32_t _i1800; + for (_i1800 = 0; _i1800 < _size1796; ++_i1800) { - xfer += iprot->readString(this->success[_i1776]); + xfer += iprot->readString(this->success[_i1800]); } xfer += iprot->readListEnd(); } @@ -30569,10 +30569,10 @@ uint32_t ThriftHiveMetastore_get_role_names_result::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter1777; - for (_iter1777 = this->success.begin(); _iter1777 != this->success.end(); ++_iter1777) + std::vector ::const_iterator _iter1801; + for (_iter1801 = this->success.begin(); _iter1801 != this->success.end(); ++_iter1801) { - xfer += oprot->writeString((*_iter1777)); + xfer += oprot->writeString((*_iter1801)); } xfer += oprot->writeListEnd(); } @@ -30617,14 +30617,14 @@ uint32_t ThriftHiveMetastore_get_role_names_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1778; - ::apache::thrift::protocol::TType _etype1781; - xfer += iprot->readListBegin(_etype1781, _size1778); - (*(this->success)).resize(_size1778); - uint32_t _i1782; - for (_i1782 = 0; _i1782 < _size1778; ++_i1782) + uint32_t _size1802; + ::apache::thrift::protocol::TType _etype1805; + xfer += iprot->readListBegin(_etype1805, _size1802); + (*(this->success)).resize(_size1802); + uint32_t _i1806; + for (_i1806 = 0; _i1806 < _size1802; ++_i1806) { - xfer += iprot->readString((*(this->success))[_i1782]); + xfer += iprot->readString((*(this->success))[_i1806]); } xfer += iprot->readListEnd(); } @@ -30697,9 +30697,9 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1783; - xfer += iprot->readI32(ecast1783); - this->principal_type = (PrincipalType::type)ecast1783; + int32_t ecast1807; + xfer += iprot->readI32(ecast1807); + this->principal_type = (PrincipalType::type)ecast1807; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -30715,9 +30715,9 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1784; - xfer += iprot->readI32(ecast1784); - this->grantorType = (PrincipalType::type)ecast1784; + int32_t ecast1808; + xfer += iprot->readI32(ecast1808); + this->grantorType = (PrincipalType::type)ecast1808; this->__isset.grantorType = true; } else { xfer += iprot->skip(ftype); @@ -30988,9 +30988,9 @@ uint32_t ThriftHiveMetastore_revoke_role_args::read(::apache::thrift::protocol:: break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1785; - xfer += iprot->readI32(ecast1785); - this->principal_type = (PrincipalType::type)ecast1785; + int32_t ecast1809; + xfer += iprot->readI32(ecast1809); + this->principal_type = (PrincipalType::type)ecast1809; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -31221,9 +31221,9 @@ uint32_t ThriftHiveMetastore_list_roles_args::read(::apache::thrift::protocol::T break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1786; - xfer += iprot->readI32(ecast1786); - this->principal_type = (PrincipalType::type)ecast1786; + int32_t ecast1810; + xfer += iprot->readI32(ecast1810); + this->principal_type = (PrincipalType::type)ecast1810; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -31312,14 +31312,14 @@ uint32_t ThriftHiveMetastore_list_roles_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1787; - ::apache::thrift::protocol::TType _etype1790; - xfer += iprot->readListBegin(_etype1790, _size1787); - this->success.resize(_size1787); - uint32_t _i1791; - for (_i1791 = 0; _i1791 < _size1787; ++_i1791) + uint32_t _size1811; + ::apache::thrift::protocol::TType _etype1814; + xfer += iprot->readListBegin(_etype1814, _size1811); + this->success.resize(_size1811); + uint32_t _i1815; + for (_i1815 = 0; _i1815 < _size1811; ++_i1815) { - xfer += this->success[_i1791].read(iprot); + xfer += this->success[_i1815].read(iprot); } xfer += iprot->readListEnd(); } @@ -31358,10 +31358,10 @@ uint32_t ThriftHiveMetastore_list_roles_result::write(::apache::thrift::protocol xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter1792; - for (_iter1792 = this->success.begin(); _iter1792 != this->success.end(); ++_iter1792) + std::vector ::const_iterator _iter1816; + for (_iter1816 = this->success.begin(); _iter1816 != this->success.end(); ++_iter1816) { - xfer += (*_iter1792).write(oprot); + xfer += (*_iter1816).write(oprot); } xfer += oprot->writeListEnd(); } @@ -31406,14 +31406,14 @@ uint32_t ThriftHiveMetastore_list_roles_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1793; - ::apache::thrift::protocol::TType _etype1796; - xfer += iprot->readListBegin(_etype1796, _size1793); - (*(this->success)).resize(_size1793); - uint32_t _i1797; - for (_i1797 = 0; _i1797 < _size1793; ++_i1797) + uint32_t _size1817; + ::apache::thrift::protocol::TType _etype1820; + xfer += iprot->readListBegin(_etype1820, _size1817); + (*(this->success)).resize(_size1817); + uint32_t _i1821; + for (_i1821 = 0; _i1821 < _size1817; ++_i1821) { - xfer += (*(this->success))[_i1797].read(iprot); + xfer += (*(this->success))[_i1821].read(iprot); } xfer += iprot->readListEnd(); } @@ -32109,14 +32109,14 @@ uint32_t ThriftHiveMetastore_get_privilege_set_args::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->group_names.clear(); - uint32_t _size1798; - ::apache::thrift::protocol::TType _etype1801; - xfer += iprot->readListBegin(_etype1801, _size1798); - this->group_names.resize(_size1798); - uint32_t _i1802; - for (_i1802 = 0; _i1802 < _size1798; ++_i1802) + uint32_t _size1822; + ::apache::thrift::protocol::TType _etype1825; + xfer += iprot->readListBegin(_etype1825, _size1822); + this->group_names.resize(_size1822); + uint32_t _i1826; + for (_i1826 = 0; _i1826 < _size1822; ++_i1826) { - xfer += iprot->readString(this->group_names[_i1802]); + xfer += iprot->readString(this->group_names[_i1826]); } xfer += iprot->readListEnd(); } @@ -32153,10 +32153,10 @@ uint32_t ThriftHiveMetastore_get_privilege_set_args::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size())); - std::vector ::const_iterator _iter1803; - for (_iter1803 = this->group_names.begin(); _iter1803 != this->group_names.end(); ++_iter1803) + std::vector ::const_iterator _iter1827; + for (_iter1827 = this->group_names.begin(); _iter1827 != this->group_names.end(); ++_iter1827) { - xfer += oprot->writeString((*_iter1803)); + xfer += oprot->writeString((*_iter1827)); } xfer += oprot->writeListEnd(); } @@ -32188,10 +32188,10 @@ uint32_t ThriftHiveMetastore_get_privilege_set_pargs::write(::apache::thrift::pr xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size())); - std::vector ::const_iterator _iter1804; - for (_iter1804 = (*(this->group_names)).begin(); _iter1804 != (*(this->group_names)).end(); ++_iter1804) + std::vector ::const_iterator _iter1828; + for (_iter1828 = (*(this->group_names)).begin(); _iter1828 != (*(this->group_names)).end(); ++_iter1828) { - xfer += oprot->writeString((*_iter1804)); + xfer += oprot->writeString((*_iter1828)); } xfer += oprot->writeListEnd(); } @@ -32366,9 +32366,9 @@ uint32_t ThriftHiveMetastore_list_privileges_args::read(::apache::thrift::protoc break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1805; - xfer += iprot->readI32(ecast1805); - this->principal_type = (PrincipalType::type)ecast1805; + int32_t ecast1829; + xfer += iprot->readI32(ecast1829); + this->principal_type = (PrincipalType::type)ecast1829; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -32473,14 +32473,14 @@ uint32_t ThriftHiveMetastore_list_privileges_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1806; - ::apache::thrift::protocol::TType _etype1809; - xfer += iprot->readListBegin(_etype1809, _size1806); - this->success.resize(_size1806); - uint32_t _i1810; - for (_i1810 = 0; _i1810 < _size1806; ++_i1810) + uint32_t _size1830; + ::apache::thrift::protocol::TType _etype1833; + xfer += iprot->readListBegin(_etype1833, _size1830); + this->success.resize(_size1830); + uint32_t _i1834; + for (_i1834 = 0; _i1834 < _size1830; ++_i1834) { - xfer += this->success[_i1810].read(iprot); + xfer += this->success[_i1834].read(iprot); } xfer += iprot->readListEnd(); } @@ -32519,10 +32519,10 @@ uint32_t ThriftHiveMetastore_list_privileges_result::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter1811; - for (_iter1811 = this->success.begin(); _iter1811 != this->success.end(); ++_iter1811) + std::vector ::const_iterator _iter1835; + for (_iter1835 = this->success.begin(); _iter1835 != this->success.end(); ++_iter1835) { - xfer += (*_iter1811).write(oprot); + xfer += (*_iter1835).write(oprot); } xfer += oprot->writeListEnd(); } @@ -32567,14 +32567,14 @@ uint32_t ThriftHiveMetastore_list_privileges_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1812; - ::apache::thrift::protocol::TType _etype1815; - xfer += iprot->readListBegin(_etype1815, _size1812); - (*(this->success)).resize(_size1812); - uint32_t _i1816; - for (_i1816 = 0; _i1816 < _size1812; ++_i1816) + uint32_t _size1836; + ::apache::thrift::protocol::TType _etype1839; + xfer += iprot->readListBegin(_etype1839, _size1836); + (*(this->success)).resize(_size1836); + uint32_t _i1840; + for (_i1840 = 0; _i1840 < _size1836; ++_i1840) { - xfer += (*(this->success))[_i1816].read(iprot); + xfer += (*(this->success))[_i1840].read(iprot); } xfer += iprot->readListEnd(); } @@ -33501,14 +33501,14 @@ uint32_t ThriftHiveMetastore_set_ugi_args::read(::apache::thrift::protocol::TPro if (ftype == ::apache::thrift::protocol::T_LIST) { { this->group_names.clear(); - uint32_t _size1817; - ::apache::thrift::protocol::TType _etype1820; - xfer += iprot->readListBegin(_etype1820, _size1817); - this->group_names.resize(_size1817); - uint32_t _i1821; - for (_i1821 = 0; _i1821 < _size1817; ++_i1821) + uint32_t _size1841; + ::apache::thrift::protocol::TType _etype1844; + xfer += iprot->readListBegin(_etype1844, _size1841); + this->group_names.resize(_size1841); + uint32_t _i1845; + for (_i1845 = 0; _i1845 < _size1841; ++_i1845) { - xfer += iprot->readString(this->group_names[_i1821]); + xfer += iprot->readString(this->group_names[_i1845]); } xfer += iprot->readListEnd(); } @@ -33541,10 +33541,10 @@ uint32_t ThriftHiveMetastore_set_ugi_args::write(::apache::thrift::protocol::TPr xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size())); - std::vector ::const_iterator _iter1822; - for (_iter1822 = this->group_names.begin(); _iter1822 != this->group_names.end(); ++_iter1822) + std::vector ::const_iterator _iter1846; + for (_iter1846 = this->group_names.begin(); _iter1846 != this->group_names.end(); ++_iter1846) { - xfer += oprot->writeString((*_iter1822)); + xfer += oprot->writeString((*_iter1846)); } xfer += oprot->writeListEnd(); } @@ -33572,10 +33572,10 @@ uint32_t ThriftHiveMetastore_set_ugi_pargs::write(::apache::thrift::protocol::TP xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size())); - std::vector ::const_iterator _iter1823; - for (_iter1823 = (*(this->group_names)).begin(); _iter1823 != (*(this->group_names)).end(); ++_iter1823) + std::vector ::const_iterator _iter1847; + for (_iter1847 = (*(this->group_names)).begin(); _iter1847 != (*(this->group_names)).end(); ++_iter1847) { - xfer += oprot->writeString((*_iter1823)); + xfer += oprot->writeString((*_iter1847)); } xfer += oprot->writeListEnd(); } @@ -33616,14 +33616,14 @@ uint32_t ThriftHiveMetastore_set_ugi_result::read(::apache::thrift::protocol::TP if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1824; - ::apache::thrift::protocol::TType _etype1827; - xfer += iprot->readListBegin(_etype1827, _size1824); - this->success.resize(_size1824); - uint32_t _i1828; - for (_i1828 = 0; _i1828 < _size1824; ++_i1828) + uint32_t _size1848; + ::apache::thrift::protocol::TType _etype1851; + xfer += iprot->readListBegin(_etype1851, _size1848); + this->success.resize(_size1848); + uint32_t _i1852; + for (_i1852 = 0; _i1852 < _size1848; ++_i1852) { - xfer += iprot->readString(this->success[_i1828]); + xfer += iprot->readString(this->success[_i1852]); } xfer += iprot->readListEnd(); } @@ -33662,10 +33662,10 @@ uint32_t ThriftHiveMetastore_set_ugi_result::write(::apache::thrift::protocol::T xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter1829; - for (_iter1829 = this->success.begin(); _iter1829 != this->success.end(); ++_iter1829) + std::vector ::const_iterator _iter1853; + for (_iter1853 = this->success.begin(); _iter1853 != this->success.end(); ++_iter1853) { - xfer += oprot->writeString((*_iter1829)); + xfer += oprot->writeString((*_iter1853)); } xfer += oprot->writeListEnd(); } @@ -33710,14 +33710,14 @@ uint32_t ThriftHiveMetastore_set_ugi_presult::read(::apache::thrift::protocol::T if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1830; - ::apache::thrift::protocol::TType _etype1833; - xfer += iprot->readListBegin(_etype1833, _size1830); - (*(this->success)).resize(_size1830); - uint32_t _i1834; - for (_i1834 = 0; _i1834 < _size1830; ++_i1834) + uint32_t _size1854; + ::apache::thrift::protocol::TType _etype1857; + xfer += iprot->readListBegin(_etype1857, _size1854); + (*(this->success)).resize(_size1854); + uint32_t _i1858; + for (_i1858 = 0; _i1858 < _size1854; ++_i1858) { - xfer += iprot->readString((*(this->success))[_i1834]); + xfer += iprot->readString((*(this->success))[_i1858]); } xfer += iprot->readListEnd(); } @@ -35028,14 +35028,14 @@ uint32_t ThriftHiveMetastore_get_all_token_identifiers_result::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1835; - ::apache::thrift::protocol::TType _etype1838; - xfer += iprot->readListBegin(_etype1838, _size1835); - this->success.resize(_size1835); - uint32_t _i1839; - for (_i1839 = 0; _i1839 < _size1835; ++_i1839) + uint32_t _size1859; + ::apache::thrift::protocol::TType _etype1862; + xfer += iprot->readListBegin(_etype1862, _size1859); + this->success.resize(_size1859); + uint32_t _i1863; + for (_i1863 = 0; _i1863 < _size1859; ++_i1863) { - xfer += iprot->readString(this->success[_i1839]); + xfer += iprot->readString(this->success[_i1863]); } xfer += iprot->readListEnd(); } @@ -35066,10 +35066,10 @@ uint32_t ThriftHiveMetastore_get_all_token_identifiers_result::write(::apache::t xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter1840; - for (_iter1840 = this->success.begin(); _iter1840 != this->success.end(); ++_iter1840) + std::vector ::const_iterator _iter1864; + for (_iter1864 = this->success.begin(); _iter1864 != this->success.end(); ++_iter1864) { - xfer += oprot->writeString((*_iter1840)); + xfer += oprot->writeString((*_iter1864)); } xfer += oprot->writeListEnd(); } @@ -35110,14 +35110,14 @@ uint32_t ThriftHiveMetastore_get_all_token_identifiers_presult::read(::apache::t if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1841; - ::apache::thrift::protocol::TType _etype1844; - xfer += iprot->readListBegin(_etype1844, _size1841); - (*(this->success)).resize(_size1841); - uint32_t _i1845; - for (_i1845 = 0; _i1845 < _size1841; ++_i1845) + uint32_t _size1865; + ::apache::thrift::protocol::TType _etype1868; + xfer += iprot->readListBegin(_etype1868, _size1865); + (*(this->success)).resize(_size1865); + uint32_t _i1869; + for (_i1869 = 0; _i1869 < _size1865; ++_i1869) { - xfer += iprot->readString((*(this->success))[_i1845]); + xfer += iprot->readString((*(this->success))[_i1869]); } xfer += iprot->readListEnd(); } @@ -35843,14 +35843,14 @@ uint32_t ThriftHiveMetastore_get_master_keys_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1846; - ::apache::thrift::protocol::TType _etype1849; - xfer += iprot->readListBegin(_etype1849, _size1846); - this->success.resize(_size1846); - uint32_t _i1850; - for (_i1850 = 0; _i1850 < _size1846; ++_i1850) + uint32_t _size1870; + ::apache::thrift::protocol::TType _etype1873; + xfer += iprot->readListBegin(_etype1873, _size1870); + this->success.resize(_size1870); + uint32_t _i1874; + for (_i1874 = 0; _i1874 < _size1870; ++_i1874) { - xfer += iprot->readString(this->success[_i1850]); + xfer += iprot->readString(this->success[_i1874]); } xfer += iprot->readListEnd(); } @@ -35881,10 +35881,10 @@ uint32_t ThriftHiveMetastore_get_master_keys_result::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter1851; - for (_iter1851 = this->success.begin(); _iter1851 != this->success.end(); ++_iter1851) + std::vector ::const_iterator _iter1875; + for (_iter1875 = this->success.begin(); _iter1875 != this->success.end(); ++_iter1875) { - xfer += oprot->writeString((*_iter1851)); + xfer += oprot->writeString((*_iter1875)); } xfer += oprot->writeListEnd(); } @@ -35925,14 +35925,14 @@ uint32_t ThriftHiveMetastore_get_master_keys_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1852; - ::apache::thrift::protocol::TType _etype1855; - xfer += iprot->readListBegin(_etype1855, _size1852); - (*(this->success)).resize(_size1852); - uint32_t _i1856; - for (_i1856 = 0; _i1856 < _size1852; ++_i1856) + uint32_t _size1876; + ::apache::thrift::protocol::TType _etype1879; + xfer += iprot->readListBegin(_etype1879, _size1876); + (*(this->success)).resize(_size1876); + uint32_t _i1880; + for (_i1880 = 0; _i1880 < _size1876; ++_i1880) { - xfer += iprot->readString((*(this->success))[_i1856]); + xfer += iprot->readString((*(this->success))[_i1880]); } xfer += iprot->readListEnd(); } @@ -40565,6 +40565,193 @@ uint32_t ThriftHiveMetastore_flushCache_presult::read(::apache::thrift::protocol } +ThriftHiveMetastore_add_write_notification_log_args::~ThriftHiveMetastore_add_write_notification_log_args() throw() { +} + + +uint32_t ThriftHiveMetastore_add_write_notification_log_args::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case -1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->rqst.read(iprot); + this->__isset.rqst = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ThriftHiveMetastore_add_write_notification_log_args::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_write_notification_log_args"); + + xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, -1); + xfer += this->rqst.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_add_write_notification_log_pargs::~ThriftHiveMetastore_add_write_notification_log_pargs() throw() { +} + + +uint32_t ThriftHiveMetastore_add_write_notification_log_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_write_notification_log_pargs"); + + xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, -1); + xfer += (*(this->rqst)).write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_add_write_notification_log_result::~ThriftHiveMetastore_add_write_notification_log_result() throw() { +} + + +uint32_t ThriftHiveMetastore_add_write_notification_log_result::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 0: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->success.read(iprot); + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ThriftHiveMetastore_add_write_notification_log_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + + uint32_t xfer = 0; + + xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_write_notification_log_result"); + + if (this->__isset.success) { + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); + xfer += this->success.write(oprot); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_add_write_notification_log_presult::~ThriftHiveMetastore_add_write_notification_log_presult() throw() { +} + + +uint32_t ThriftHiveMetastore_add_write_notification_log_presult::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 0: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += (*(this->success)).read(iprot); + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + + ThriftHiveMetastore_cm_recycle_args::~ThriftHiveMetastore_cm_recycle_args() throw() { } @@ -47729,14 +47916,14 @@ uint32_t ThriftHiveMetastore_get_schema_all_versions_result::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1857; - ::apache::thrift::protocol::TType _etype1860; - xfer += iprot->readListBegin(_etype1860, _size1857); - this->success.resize(_size1857); - uint32_t _i1861; - for (_i1861 = 0; _i1861 < _size1857; ++_i1861) + uint32_t _size1881; + ::apache::thrift::protocol::TType _etype1884; + xfer += iprot->readListBegin(_etype1884, _size1881); + this->success.resize(_size1881); + uint32_t _i1885; + for (_i1885 = 0; _i1885 < _size1881; ++_i1885) { - xfer += this->success[_i1861].read(iprot); + xfer += this->success[_i1885].read(iprot); } xfer += iprot->readListEnd(); } @@ -47783,10 +47970,10 @@ uint32_t ThriftHiveMetastore_get_schema_all_versions_result::write(::apache::thr xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter1862; - for (_iter1862 = this->success.begin(); _iter1862 != this->success.end(); ++_iter1862) + std::vector ::const_iterator _iter1886; + for (_iter1886 = this->success.begin(); _iter1886 != this->success.end(); ++_iter1886) { - xfer += (*_iter1862).write(oprot); + xfer += (*_iter1886).write(oprot); } xfer += oprot->writeListEnd(); } @@ -47835,14 +48022,14 @@ uint32_t ThriftHiveMetastore_get_schema_all_versions_presult::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1863; - ::apache::thrift::protocol::TType _etype1866; - xfer += iprot->readListBegin(_etype1866, _size1863); - (*(this->success)).resize(_size1863); - uint32_t _i1867; - for (_i1867 = 0; _i1867 < _size1863; ++_i1867) + uint32_t _size1887; + ::apache::thrift::protocol::TType _etype1890; + xfer += iprot->readListBegin(_etype1890, _size1887); + (*(this->success)).resize(_size1887); + uint32_t _i1891; + for (_i1891 = 0; _i1891 < _size1887; ++_i1891) { - xfer += (*(this->success))[_i1867].read(iprot); + xfer += (*(this->success))[_i1891].read(iprot); } xfer += iprot->readListEnd(); } @@ -49895,14 +50082,14 @@ uint32_t ThriftHiveMetastore_get_runtime_stats_result::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1868; - ::apache::thrift::protocol::TType _etype1871; - xfer += iprot->readListBegin(_etype1871, _size1868); - this->success.resize(_size1868); - uint32_t _i1872; - for (_i1872 = 0; _i1872 < _size1868; ++_i1872) + uint32_t _size1892; + ::apache::thrift::protocol::TType _etype1895; + xfer += iprot->readListBegin(_etype1895, _size1892); + this->success.resize(_size1892); + uint32_t _i1896; + for (_i1896 = 0; _i1896 < _size1892; ++_i1896) { - xfer += this->success[_i1872].read(iprot); + xfer += this->success[_i1896].read(iprot); } xfer += iprot->readListEnd(); } @@ -49941,10 +50128,10 @@ uint32_t ThriftHiveMetastore_get_runtime_stats_result::write(::apache::thrift::p xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter1873; - for (_iter1873 = this->success.begin(); _iter1873 != this->success.end(); ++_iter1873) + std::vector ::const_iterator _iter1897; + for (_iter1897 = this->success.begin(); _iter1897 != this->success.end(); ++_iter1897) { - xfer += (*_iter1873).write(oprot); + xfer += (*_iter1897).write(oprot); } xfer += oprot->writeListEnd(); } @@ -49989,14 +50176,14 @@ uint32_t ThriftHiveMetastore_get_runtime_stats_presult::read(::apache::thrift::p if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1874; - ::apache::thrift::protocol::TType _etype1877; - xfer += iprot->readListBegin(_etype1877, _size1874); - (*(this->success)).resize(_size1874); - uint32_t _i1878; - for (_i1878 = 0; _i1878 < _size1874; ++_i1878) + uint32_t _size1898; + ::apache::thrift::protocol::TType _etype1901; + xfer += iprot->readListBegin(_etype1901, _size1898); + (*(this->success)).resize(_size1898); + uint32_t _i1902; + for (_i1902 = 0; _i1902 < _size1898; ++_i1902) { - xfer += (*(this->success))[_i1878].read(iprot); + xfer += (*(this->success))[_i1902].read(iprot); } xfer += iprot->readListEnd(); } @@ -60398,6 +60585,64 @@ void ThriftHiveMetastoreClient::recv_flushCache() return; } +void ThriftHiveMetastoreClient::add_write_notification_log(WriteNotificationLogResponse& _return, const WriteNotificationLogRequest& rqst) +{ + send_add_write_notification_log(rqst); + recv_add_write_notification_log(_return); +} + +void ThriftHiveMetastoreClient::send_add_write_notification_log(const WriteNotificationLogRequest& rqst) +{ + int32_t cseqid = 0; + oprot_->writeMessageBegin("add_write_notification_log", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_add_write_notification_log_pargs args; + args.rqst = &rqst; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); +} + +void ThriftHiveMetastoreClient::recv_add_write_notification_log(WriteNotificationLogResponse& _return) +{ + + int32_t rseqid = 0; + std::string fname; + ::apache::thrift::protocol::TMessageType mtype; + + iprot_->readMessageBegin(fname, mtype, rseqid); + if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { + ::apache::thrift::TApplicationException x; + x.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + throw x; + } + if (mtype != ::apache::thrift::protocol::T_REPLY) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + if (fname.compare("add_write_notification_log") != 0) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + ThriftHiveMetastore_add_write_notification_log_presult result; + result.success = &_return; + result.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + if (result.__isset.success) { + // _return pointer has now been filled + return; + } + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "add_write_notification_log failed: unknown result"); +} + void ThriftHiveMetastoreClient::cm_recycle(CmRecycleResponse& _return, const CmRecycleRequest& request) { send_cm_recycle(request); @@ -72782,6 +73027,60 @@ void ThriftHiveMetastoreProcessor::process_flushCache(int32_t seqid, ::apache::t } } +void ThriftHiveMetastoreProcessor::process_add_write_notification_log(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) +{ + void* ctx = NULL; + if (this->eventHandler_.get() != NULL) { + ctx = this->eventHandler_->getContext("ThriftHiveMetastore.add_write_notification_log", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "ThriftHiveMetastore.add_write_notification_log"); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preRead(ctx, "ThriftHiveMetastore.add_write_notification_log"); + } + + ThriftHiveMetastore_add_write_notification_log_args args; + args.read(iprot); + iprot->readMessageEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->postRead(ctx, "ThriftHiveMetastore.add_write_notification_log", bytes); + } + + ThriftHiveMetastore_add_write_notification_log_result result; + try { + iface_->add_write_notification_log(result.success, args.rqst); + result.__isset.success = true; + } catch (const std::exception& e) { + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->handlerError(ctx, "ThriftHiveMetastore.add_write_notification_log"); + } + + ::apache::thrift::TApplicationException x(e.what()); + oprot->writeMessageBegin("add_write_notification_log", ::apache::thrift::protocol::T_EXCEPTION, seqid); + x.write(oprot); + oprot->writeMessageEnd(); + oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); + return; + } + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preWrite(ctx, "ThriftHiveMetastore.add_write_notification_log"); + } + + oprot->writeMessageBegin("add_write_notification_log", ::apache::thrift::protocol::T_REPLY, seqid); + result.write(oprot); + oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->postWrite(ctx, "ThriftHiveMetastore.add_write_notification_log", bytes); + } +} + void ThriftHiveMetastoreProcessor::process_cm_recycle(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { void* ctx = NULL; @@ -90199,6 +90498,90 @@ void ThriftHiveMetastoreConcurrentClient::recv_flushCache(const int32_t seqid) } // end while(true) } +void ThriftHiveMetastoreConcurrentClient::add_write_notification_log(WriteNotificationLogResponse& _return, const WriteNotificationLogRequest& rqst) +{ + int32_t seqid = send_add_write_notification_log(rqst); + recv_add_write_notification_log(_return, seqid); +} + +int32_t ThriftHiveMetastoreConcurrentClient::send_add_write_notification_log(const WriteNotificationLogRequest& rqst) +{ + int32_t cseqid = this->sync_.generateSeqId(); + ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); + oprot_->writeMessageBegin("add_write_notification_log", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_add_write_notification_log_pargs args; + args.rqst = &rqst; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); + + sentry.commit(); + return cseqid; +} + +void ThriftHiveMetastoreConcurrentClient::recv_add_write_notification_log(WriteNotificationLogResponse& _return, const int32_t seqid) +{ + + int32_t rseqid = 0; + std::string fname; + ::apache::thrift::protocol::TMessageType mtype; + + // the read mutex gets dropped and reacquired as part of waitForWork() + // The destructor of this sentry wakes up other clients + ::apache::thrift::async::TConcurrentRecvSentry sentry(&this->sync_, seqid); + + while(true) { + if(!this->sync_.getPending(fname, mtype, rseqid)) { + iprot_->readMessageBegin(fname, mtype, rseqid); + } + if(seqid == rseqid) { + if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { + ::apache::thrift::TApplicationException x; + x.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + sentry.commit(); + throw x; + } + if (mtype != ::apache::thrift::protocol::T_REPLY) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + if (fname.compare("add_write_notification_log") != 0) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + // in a bad state, don't commit + using ::apache::thrift::protocol::TProtocolException; + throw TProtocolException(TProtocolException::INVALID_DATA); + } + ThriftHiveMetastore_add_write_notification_log_presult result; + result.success = &_return; + result.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + if (result.__isset.success) { + // _return pointer has now been filled + sentry.commit(); + return; + } + // in a bad state, don't commit + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "add_write_notification_log failed: unknown result"); + } + // seqid != rseqid + this->sync_.updatePending(fname, mtype, rseqid); + + // this will temporarily unlock the readMutex, and let other clients get work done + this->sync_.waitForWork(seqid); + } // end while(true) +} + void ThriftHiveMetastoreConcurrentClient::cm_recycle(CmRecycleResponse& _return, const CmRecycleRequest& request) { int32_t seqid = send_cm_recycle(request); diff --git a/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h b/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h index b7987e3845..1018647aba 100644 --- a/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h +++ b/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h @@ -186,6 +186,7 @@ class ThriftHiveMetastoreIf : virtual public ::facebook::fb303::FacebookService virtual void get_notification_events_count(NotificationEventsCountResponse& _return, const NotificationEventsCountRequest& rqst) = 0; virtual void fire_listener_event(FireEventResponse& _return, const FireEventRequest& rqst) = 0; virtual void flushCache() = 0; + virtual void add_write_notification_log(WriteNotificationLogResponse& _return, const WriteNotificationLogRequest& rqst) = 0; virtual void cm_recycle(CmRecycleResponse& _return, const CmRecycleRequest& request) = 0; virtual void get_file_metadata_by_expr(GetFileMetadataByExprResult& _return, const GetFileMetadataByExprRequest& req) = 0; virtual void get_file_metadata(GetFileMetadataResult& _return, const GetFileMetadataRequest& req) = 0; @@ -776,6 +777,9 @@ class ThriftHiveMetastoreNull : virtual public ThriftHiveMetastoreIf , virtual p void flushCache() { return; } + void add_write_notification_log(WriteNotificationLogResponse& /* _return */, const WriteNotificationLogRequest& /* rqst */) { + return; + } void cm_recycle(CmRecycleResponse& /* _return */, const CmRecycleRequest& /* request */) { return; } @@ -21104,6 +21108,110 @@ class ThriftHiveMetastore_flushCache_presult { }; +typedef struct _ThriftHiveMetastore_add_write_notification_log_args__isset { + _ThriftHiveMetastore_add_write_notification_log_args__isset() : rqst(false) {} + bool rqst :1; +} _ThriftHiveMetastore_add_write_notification_log_args__isset; + +class ThriftHiveMetastore_add_write_notification_log_args { + public: + + ThriftHiveMetastore_add_write_notification_log_args(const ThriftHiveMetastore_add_write_notification_log_args&); + ThriftHiveMetastore_add_write_notification_log_args& operator=(const ThriftHiveMetastore_add_write_notification_log_args&); + ThriftHiveMetastore_add_write_notification_log_args() { + } + + virtual ~ThriftHiveMetastore_add_write_notification_log_args() throw(); + WriteNotificationLogRequest rqst; + + _ThriftHiveMetastore_add_write_notification_log_args__isset __isset; + + void __set_rqst(const WriteNotificationLogRequest& val); + + bool operator == (const ThriftHiveMetastore_add_write_notification_log_args & rhs) const + { + if (!(rqst == rhs.rqst)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_add_write_notification_log_args &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_add_write_notification_log_args & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + + +class ThriftHiveMetastore_add_write_notification_log_pargs { + public: + + + virtual ~ThriftHiveMetastore_add_write_notification_log_pargs() throw(); + const WriteNotificationLogRequest* rqst; + + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_add_write_notification_log_result__isset { + _ThriftHiveMetastore_add_write_notification_log_result__isset() : success(false) {} + bool success :1; +} _ThriftHiveMetastore_add_write_notification_log_result__isset; + +class ThriftHiveMetastore_add_write_notification_log_result { + public: + + ThriftHiveMetastore_add_write_notification_log_result(const ThriftHiveMetastore_add_write_notification_log_result&); + ThriftHiveMetastore_add_write_notification_log_result& operator=(const ThriftHiveMetastore_add_write_notification_log_result&); + ThriftHiveMetastore_add_write_notification_log_result() { + } + + virtual ~ThriftHiveMetastore_add_write_notification_log_result() throw(); + WriteNotificationLogResponse success; + + _ThriftHiveMetastore_add_write_notification_log_result__isset __isset; + + void __set_success(const WriteNotificationLogResponse& val); + + bool operator == (const ThriftHiveMetastore_add_write_notification_log_result & rhs) const + { + if (!(success == rhs.success)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_add_write_notification_log_result &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_add_write_notification_log_result & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_add_write_notification_log_presult__isset { + _ThriftHiveMetastore_add_write_notification_log_presult__isset() : success(false) {} + bool success :1; +} _ThriftHiveMetastore_add_write_notification_log_presult__isset; + +class ThriftHiveMetastore_add_write_notification_log_presult { + public: + + + virtual ~ThriftHiveMetastore_add_write_notification_log_presult() throw(); + WriteNotificationLogResponse* success; + + _ThriftHiveMetastore_add_write_notification_log_presult__isset __isset; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + +}; + typedef struct _ThriftHiveMetastore_cm_recycle_args__isset { _ThriftHiveMetastore_cm_recycle_args__isset() : request(false) {} bool request :1; @@ -26591,6 +26699,9 @@ class ThriftHiveMetastoreClient : virtual public ThriftHiveMetastoreIf, public void flushCache(); void send_flushCache(); void recv_flushCache(); + void add_write_notification_log(WriteNotificationLogResponse& _return, const WriteNotificationLogRequest& rqst); + void send_add_write_notification_log(const WriteNotificationLogRequest& rqst); + void recv_add_write_notification_log(WriteNotificationLogResponse& _return); void cm_recycle(CmRecycleResponse& _return, const CmRecycleRequest& request); void send_cm_recycle(const CmRecycleRequest& request); void recv_cm_recycle(CmRecycleResponse& _return); @@ -26891,6 +27002,7 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP void process_get_notification_events_count(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_fire_listener_event(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_flushCache(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_add_write_notification_log(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_cm_recycle(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_file_metadata_by_expr(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_file_metadata(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); @@ -27101,6 +27213,7 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP processMap_["get_notification_events_count"] = &ThriftHiveMetastoreProcessor::process_get_notification_events_count; processMap_["fire_listener_event"] = &ThriftHiveMetastoreProcessor::process_fire_listener_event; processMap_["flushCache"] = &ThriftHiveMetastoreProcessor::process_flushCache; + processMap_["add_write_notification_log"] = &ThriftHiveMetastoreProcessor::process_add_write_notification_log; processMap_["cm_recycle"] = &ThriftHiveMetastoreProcessor::process_cm_recycle; processMap_["get_file_metadata_by_expr"] = &ThriftHiveMetastoreProcessor::process_get_file_metadata_by_expr; processMap_["get_file_metadata"] = &ThriftHiveMetastoreProcessor::process_get_file_metadata; @@ -28746,6 +28859,16 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi ifaces_[i]->flushCache(); } + void add_write_notification_log(WriteNotificationLogResponse& _return, const WriteNotificationLogRequest& rqst) { + size_t sz = ifaces_.size(); + size_t i = 0; + for (; i < (sz - 1); ++i) { + ifaces_[i]->add_write_notification_log(_return, rqst); + } + ifaces_[i]->add_write_notification_log(_return, rqst); + return; + } + void cm_recycle(CmRecycleResponse& _return, const CmRecycleRequest& request) { size_t sz = ifaces_.size(); size_t i = 0; @@ -29664,6 +29787,9 @@ class ThriftHiveMetastoreConcurrentClient : virtual public ThriftHiveMetastoreIf void flushCache(); int32_t send_flushCache(); void recv_flushCache(const int32_t seqid); + void add_write_notification_log(WriteNotificationLogResponse& _return, const WriteNotificationLogRequest& rqst); + int32_t send_add_write_notification_log(const WriteNotificationLogRequest& rqst); + void recv_add_write_notification_log(WriteNotificationLogResponse& _return, const int32_t seqid); void cm_recycle(CmRecycleResponse& _return, const CmRecycleRequest& request); int32_t send_cm_recycle(const CmRecycleRequest& request); void recv_cm_recycle(CmRecycleResponse& _return, const int32_t seqid); diff --git a/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp b/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp index 3d9d75efe3..ae77902d48 100644 --- a/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp +++ b/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp @@ -842,6 +842,11 @@ class ThriftHiveMetastoreHandler : virtual public ThriftHiveMetastoreIf { printf("flushCache\n"); } + void add_write_notification_log(WriteNotificationLogResponse& _return, const WriteNotificationLogRequest& rqst) { + // Your implementation goes here + printf("add_write_notification_log\n"); + } + void cm_recycle(CmRecycleResponse& _return, const CmRecycleRequest& request) { // Your implementation goes here printf("cm_recycle\n"); diff --git a/standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp b/standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp index 8925fe248d..7597094d85 100644 --- a/standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp +++ b/standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp @@ -16486,6 +16486,11 @@ void CommitTxnRequest::__set_replPolicy(const std::string& val) { __isset.replPolicy = true; } +void CommitTxnRequest::__set_writeEventInfos(const std::vector & val) { + this->writeEventInfos = val; +__isset.writeEventInfos = true; +} + uint32_t CommitTxnRequest::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); @@ -16524,6 +16529,26 @@ uint32_t CommitTxnRequest::read(::apache::thrift::protocol::TProtocol* iprot) { xfer += iprot->skip(ftype); } break; + case 3: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->writeEventInfos.clear(); + uint32_t _size671; + ::apache::thrift::protocol::TType _etype674; + xfer += iprot->readListBegin(_etype674, _size671); + this->writeEventInfos.resize(_size671); + uint32_t _i675; + for (_i675 = 0; _i675 < _size671; ++_i675) + { + xfer += this->writeEventInfos[_i675].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.writeEventInfos = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -16552,6 +16577,19 @@ uint32_t CommitTxnRequest::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeString(this->replPolicy); xfer += oprot->writeFieldEnd(); } + if (this->__isset.writeEventInfos) { + xfer += oprot->writeFieldBegin("writeEventInfos", ::apache::thrift::protocol::T_LIST, 3); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->writeEventInfos.size())); + std::vector ::const_iterator _iter676; + for (_iter676 = this->writeEventInfos.begin(); _iter676 != this->writeEventInfos.end(); ++_iter676) + { + xfer += (*_iter676).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; @@ -16561,18 +16599,21 @@ void swap(CommitTxnRequest &a, CommitTxnRequest &b) { using ::std::swap; swap(a.txnid, b.txnid); swap(a.replPolicy, b.replPolicy); + swap(a.writeEventInfos, b.writeEventInfos); swap(a.__isset, b.__isset); } -CommitTxnRequest::CommitTxnRequest(const CommitTxnRequest& other671) { - txnid = other671.txnid; - replPolicy = other671.replPolicy; - __isset = other671.__isset; +CommitTxnRequest::CommitTxnRequest(const CommitTxnRequest& other677) { + txnid = other677.txnid; + replPolicy = other677.replPolicy; + writeEventInfos = other677.writeEventInfos; + __isset = other677.__isset; } -CommitTxnRequest& CommitTxnRequest::operator=(const CommitTxnRequest& other672) { - txnid = other672.txnid; - replPolicy = other672.replPolicy; - __isset = other672.__isset; +CommitTxnRequest& CommitTxnRequest::operator=(const CommitTxnRequest& other678) { + txnid = other678.txnid; + replPolicy = other678.replPolicy; + writeEventInfos = other678.writeEventInfos; + __isset = other678.__isset; return *this; } void CommitTxnRequest::printTo(std::ostream& out) const { @@ -16580,6 +16621,231 @@ void CommitTxnRequest::printTo(std::ostream& out) const { out << "CommitTxnRequest("; out << "txnid=" << to_string(txnid); out << ", " << "replPolicy="; (__isset.replPolicy ? (out << to_string(replPolicy)) : (out << "")); + out << ", " << "writeEventInfos="; (__isset.writeEventInfos ? (out << to_string(writeEventInfos)) : (out << "")); + out << ")"; +} + + +WriteEventInfo::~WriteEventInfo() throw() { +} + + +void WriteEventInfo::__set_writeId(const int64_t val) { + this->writeId = val; +} + +void WriteEventInfo::__set_database(const std::string& val) { + this->database = val; +} + +void WriteEventInfo::__set_table(const std::string& val) { + this->table = val; +} + +void WriteEventInfo::__set_files(const std::string& val) { + this->files = val; +} + +void WriteEventInfo::__set_partition(const std::string& val) { + this->partition = val; +__isset.partition = true; +} + +void WriteEventInfo::__set_tableObj(const std::string& val) { + this->tableObj = val; +__isset.tableObj = true; +} + +void WriteEventInfo::__set_partitionObj(const std::string& val) { + this->partitionObj = val; +__isset.partitionObj = true; +} + +uint32_t WriteEventInfo::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + bool isset_writeId = false; + bool isset_database = false; + bool isset_table = false; + bool isset_files = false; + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->writeId); + isset_writeId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->database); + isset_database = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->table); + isset_table = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->files); + isset_files = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->partition); + this->__isset.partition = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->tableObj); + this->__isset.tableObj = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 7: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->partitionObj); + this->__isset.partitionObj = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_writeId) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_database) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_table) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_files) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t WriteEventInfo::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("WriteEventInfo"); + + xfer += oprot->writeFieldBegin("writeId", ::apache::thrift::protocol::T_I64, 1); + xfer += oprot->writeI64(this->writeId); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("database", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->database); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("table", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->table); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("files", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->files); + xfer += oprot->writeFieldEnd(); + + if (this->__isset.partition) { + xfer += oprot->writeFieldBegin("partition", ::apache::thrift::protocol::T_STRING, 5); + xfer += oprot->writeString(this->partition); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.tableObj) { + xfer += oprot->writeFieldBegin("tableObj", ::apache::thrift::protocol::T_STRING, 6); + xfer += oprot->writeString(this->tableObj); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.partitionObj) { + xfer += oprot->writeFieldBegin("partitionObj", ::apache::thrift::protocol::T_STRING, 7); + xfer += oprot->writeString(this->partitionObj); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(WriteEventInfo &a, WriteEventInfo &b) { + using ::std::swap; + swap(a.writeId, b.writeId); + swap(a.database, b.database); + swap(a.table, b.table); + swap(a.files, b.files); + swap(a.partition, b.partition); + swap(a.tableObj, b.tableObj); + swap(a.partitionObj, b.partitionObj); + swap(a.__isset, b.__isset); +} + +WriteEventInfo::WriteEventInfo(const WriteEventInfo& other679) { + writeId = other679.writeId; + database = other679.database; + table = other679.table; + files = other679.files; + partition = other679.partition; + tableObj = other679.tableObj; + partitionObj = other679.partitionObj; + __isset = other679.__isset; +} +WriteEventInfo& WriteEventInfo::operator=(const WriteEventInfo& other680) { + writeId = other680.writeId; + database = other680.database; + table = other680.table; + files = other680.files; + partition = other680.partition; + tableObj = other680.tableObj; + partitionObj = other680.partitionObj; + __isset = other680.__isset; + return *this; +} +void WriteEventInfo::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "WriteEventInfo("; + out << "writeId=" << to_string(writeId); + out << ", " << "database=" << to_string(database); + out << ", " << "table=" << to_string(table); + out << ", " << "files=" << to_string(files); + out << ", " << "partition="; (__isset.partition ? (out << to_string(partition)) : (out << "")); + out << ", " << "tableObj="; (__isset.tableObj ? (out << to_string(tableObj)) : (out << "")); + out << ", " << "partitionObj="; (__isset.partitionObj ? (out << to_string(partitionObj)) : (out << "")); out << ")"; } @@ -16683,14 +16949,14 @@ uint32_t ReplTblWriteIdStateRequest::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partNames.clear(); - uint32_t _size673; - ::apache::thrift::protocol::TType _etype676; - xfer += iprot->readListBegin(_etype676, _size673); - this->partNames.resize(_size673); - uint32_t _i677; - for (_i677 = 0; _i677 < _size673; ++_i677) + uint32_t _size681; + ::apache::thrift::protocol::TType _etype684; + xfer += iprot->readListBegin(_etype684, _size681); + this->partNames.resize(_size681); + uint32_t _i685; + for (_i685 = 0; _i685 < _size681; ++_i685) { - xfer += iprot->readString(this->partNames[_i677]); + xfer += iprot->readString(this->partNames[_i685]); } xfer += iprot->readListEnd(); } @@ -16750,10 +17016,10 @@ uint32_t ReplTblWriteIdStateRequest::write(::apache::thrift::protocol::TProtocol xfer += oprot->writeFieldBegin("partNames", ::apache::thrift::protocol::T_LIST, 6); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->partNames.size())); - std::vector ::const_iterator _iter678; - for (_iter678 = this->partNames.begin(); _iter678 != this->partNames.end(); ++_iter678) + std::vector ::const_iterator _iter686; + for (_iter686 = this->partNames.begin(); _iter686 != this->partNames.end(); ++_iter686) { - xfer += oprot->writeString((*_iter678)); + xfer += oprot->writeString((*_iter686)); } xfer += oprot->writeListEnd(); } @@ -16775,23 +17041,23 @@ void swap(ReplTblWriteIdStateRequest &a, ReplTblWriteIdStateRequest &b) { swap(a.__isset, b.__isset); } -ReplTblWriteIdStateRequest::ReplTblWriteIdStateRequest(const ReplTblWriteIdStateRequest& other679) { - validWriteIdlist = other679.validWriteIdlist; - user = other679.user; - hostName = other679.hostName; - dbName = other679.dbName; - tableName = other679.tableName; - partNames = other679.partNames; - __isset = other679.__isset; -} -ReplTblWriteIdStateRequest& ReplTblWriteIdStateRequest::operator=(const ReplTblWriteIdStateRequest& other680) { - validWriteIdlist = other680.validWriteIdlist; - user = other680.user; - hostName = other680.hostName; - dbName = other680.dbName; - tableName = other680.tableName; - partNames = other680.partNames; - __isset = other680.__isset; +ReplTblWriteIdStateRequest::ReplTblWriteIdStateRequest(const ReplTblWriteIdStateRequest& other687) { + validWriteIdlist = other687.validWriteIdlist; + user = other687.user; + hostName = other687.hostName; + dbName = other687.dbName; + tableName = other687.tableName; + partNames = other687.partNames; + __isset = other687.__isset; +} +ReplTblWriteIdStateRequest& ReplTblWriteIdStateRequest::operator=(const ReplTblWriteIdStateRequest& other688) { + validWriteIdlist = other688.validWriteIdlist; + user = other688.user; + hostName = other688.hostName; + dbName = other688.dbName; + tableName = other688.tableName; + partNames = other688.partNames; + __isset = other688.__isset; return *this; } void ReplTblWriteIdStateRequest::printTo(std::ostream& out) const { @@ -16846,14 +17112,14 @@ uint32_t GetValidWriteIdsRequest::read(::apache::thrift::protocol::TProtocol* ip if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fullTableNames.clear(); - uint32_t _size681; - ::apache::thrift::protocol::TType _etype684; - xfer += iprot->readListBegin(_etype684, _size681); - this->fullTableNames.resize(_size681); - uint32_t _i685; - for (_i685 = 0; _i685 < _size681; ++_i685) + uint32_t _size689; + ::apache::thrift::protocol::TType _etype692; + xfer += iprot->readListBegin(_etype692, _size689); + this->fullTableNames.resize(_size689); + uint32_t _i693; + for (_i693 = 0; _i693 < _size689; ++_i693) { - xfer += iprot->readString(this->fullTableNames[_i685]); + xfer += iprot->readString(this->fullTableNames[_i693]); } xfer += iprot->readListEnd(); } @@ -16894,10 +17160,10 @@ uint32_t GetValidWriteIdsRequest::write(::apache::thrift::protocol::TProtocol* o xfer += oprot->writeFieldBegin("fullTableNames", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->fullTableNames.size())); - std::vector ::const_iterator _iter686; - for (_iter686 = this->fullTableNames.begin(); _iter686 != this->fullTableNames.end(); ++_iter686) + std::vector ::const_iterator _iter694; + for (_iter694 = this->fullTableNames.begin(); _iter694 != this->fullTableNames.end(); ++_iter694) { - xfer += oprot->writeString((*_iter686)); + xfer += oprot->writeString((*_iter694)); } xfer += oprot->writeListEnd(); } @@ -16918,13 +17184,13 @@ void swap(GetValidWriteIdsRequest &a, GetValidWriteIdsRequest &b) { swap(a.validTxnList, b.validTxnList); } -GetValidWriteIdsRequest::GetValidWriteIdsRequest(const GetValidWriteIdsRequest& other687) { - fullTableNames = other687.fullTableNames; - validTxnList = other687.validTxnList; +GetValidWriteIdsRequest::GetValidWriteIdsRequest(const GetValidWriteIdsRequest& other695) { + fullTableNames = other695.fullTableNames; + validTxnList = other695.validTxnList; } -GetValidWriteIdsRequest& GetValidWriteIdsRequest::operator=(const GetValidWriteIdsRequest& other688) { - fullTableNames = other688.fullTableNames; - validTxnList = other688.validTxnList; +GetValidWriteIdsRequest& GetValidWriteIdsRequest::operator=(const GetValidWriteIdsRequest& other696) { + fullTableNames = other696.fullTableNames; + validTxnList = other696.validTxnList; return *this; } void GetValidWriteIdsRequest::printTo(std::ostream& out) const { @@ -17006,14 +17272,14 @@ uint32_t TableValidWriteIds::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->invalidWriteIds.clear(); - uint32_t _size689; - ::apache::thrift::protocol::TType _etype692; - xfer += iprot->readListBegin(_etype692, _size689); - this->invalidWriteIds.resize(_size689); - uint32_t _i693; - for (_i693 = 0; _i693 < _size689; ++_i693) + uint32_t _size697; + ::apache::thrift::protocol::TType _etype700; + xfer += iprot->readListBegin(_etype700, _size697); + this->invalidWriteIds.resize(_size697); + uint32_t _i701; + for (_i701 = 0; _i701 < _size697; ++_i701) { - xfer += iprot->readI64(this->invalidWriteIds[_i693]); + xfer += iprot->readI64(this->invalidWriteIds[_i701]); } xfer += iprot->readListEnd(); } @@ -17074,10 +17340,10 @@ uint32_t TableValidWriteIds::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("invalidWriteIds", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->invalidWriteIds.size())); - std::vector ::const_iterator _iter694; - for (_iter694 = this->invalidWriteIds.begin(); _iter694 != this->invalidWriteIds.end(); ++_iter694) + std::vector ::const_iterator _iter702; + for (_iter702 = this->invalidWriteIds.begin(); _iter702 != this->invalidWriteIds.end(); ++_iter702) { - xfer += oprot->writeI64((*_iter694)); + xfer += oprot->writeI64((*_iter702)); } xfer += oprot->writeListEnd(); } @@ -17107,21 +17373,21 @@ void swap(TableValidWriteIds &a, TableValidWriteIds &b) { swap(a.__isset, b.__isset); } -TableValidWriteIds::TableValidWriteIds(const TableValidWriteIds& other695) { - fullTableName = other695.fullTableName; - writeIdHighWaterMark = other695.writeIdHighWaterMark; - invalidWriteIds = other695.invalidWriteIds; - minOpenWriteId = other695.minOpenWriteId; - abortedBits = other695.abortedBits; - __isset = other695.__isset; -} -TableValidWriteIds& TableValidWriteIds::operator=(const TableValidWriteIds& other696) { - fullTableName = other696.fullTableName; - writeIdHighWaterMark = other696.writeIdHighWaterMark; - invalidWriteIds = other696.invalidWriteIds; - minOpenWriteId = other696.minOpenWriteId; - abortedBits = other696.abortedBits; - __isset = other696.__isset; +TableValidWriteIds::TableValidWriteIds(const TableValidWriteIds& other703) { + fullTableName = other703.fullTableName; + writeIdHighWaterMark = other703.writeIdHighWaterMark; + invalidWriteIds = other703.invalidWriteIds; + minOpenWriteId = other703.minOpenWriteId; + abortedBits = other703.abortedBits; + __isset = other703.__isset; +} +TableValidWriteIds& TableValidWriteIds::operator=(const TableValidWriteIds& other704) { + fullTableName = other704.fullTableName; + writeIdHighWaterMark = other704.writeIdHighWaterMark; + invalidWriteIds = other704.invalidWriteIds; + minOpenWriteId = other704.minOpenWriteId; + abortedBits = other704.abortedBits; + __isset = other704.__isset; return *this; } void TableValidWriteIds::printTo(std::ostream& out) const { @@ -17170,14 +17436,14 @@ uint32_t GetValidWriteIdsResponse::read(::apache::thrift::protocol::TProtocol* i if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tblValidWriteIds.clear(); - uint32_t _size697; - ::apache::thrift::protocol::TType _etype700; - xfer += iprot->readListBegin(_etype700, _size697); - this->tblValidWriteIds.resize(_size697); - uint32_t _i701; - for (_i701 = 0; _i701 < _size697; ++_i701) + uint32_t _size705; + ::apache::thrift::protocol::TType _etype708; + xfer += iprot->readListBegin(_etype708, _size705); + this->tblValidWriteIds.resize(_size705); + uint32_t _i709; + for (_i709 = 0; _i709 < _size705; ++_i709) { - xfer += this->tblValidWriteIds[_i701].read(iprot); + xfer += this->tblValidWriteIds[_i709].read(iprot); } xfer += iprot->readListEnd(); } @@ -17208,10 +17474,10 @@ uint32_t GetValidWriteIdsResponse::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldBegin("tblValidWriteIds", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->tblValidWriteIds.size())); - std::vector ::const_iterator _iter702; - for (_iter702 = this->tblValidWriteIds.begin(); _iter702 != this->tblValidWriteIds.end(); ++_iter702) + std::vector ::const_iterator _iter710; + for (_iter710 = this->tblValidWriteIds.begin(); _iter710 != this->tblValidWriteIds.end(); ++_iter710) { - xfer += (*_iter702).write(oprot); + xfer += (*_iter710).write(oprot); } xfer += oprot->writeListEnd(); } @@ -17227,11 +17493,11 @@ void swap(GetValidWriteIdsResponse &a, GetValidWriteIdsResponse &b) { swap(a.tblValidWriteIds, b.tblValidWriteIds); } -GetValidWriteIdsResponse::GetValidWriteIdsResponse(const GetValidWriteIdsResponse& other703) { - tblValidWriteIds = other703.tblValidWriteIds; +GetValidWriteIdsResponse::GetValidWriteIdsResponse(const GetValidWriteIdsResponse& other711) { + tblValidWriteIds = other711.tblValidWriteIds; } -GetValidWriteIdsResponse& GetValidWriteIdsResponse::operator=(const GetValidWriteIdsResponse& other704) { - tblValidWriteIds = other704.tblValidWriteIds; +GetValidWriteIdsResponse& GetValidWriteIdsResponse::operator=(const GetValidWriteIdsResponse& other712) { + tblValidWriteIds = other712.tblValidWriteIds; return *this; } void GetValidWriteIdsResponse::printTo(std::ostream& out) const { @@ -17312,14 +17578,14 @@ uint32_t AllocateTableWriteIdsRequest::read(::apache::thrift::protocol::TProtoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->txnIds.clear(); - uint32_t _size705; - ::apache::thrift::protocol::TType _etype708; - xfer += iprot->readListBegin(_etype708, _size705); - this->txnIds.resize(_size705); - uint32_t _i709; - for (_i709 = 0; _i709 < _size705; ++_i709) + uint32_t _size713; + ::apache::thrift::protocol::TType _etype716; + xfer += iprot->readListBegin(_etype716, _size713); + this->txnIds.resize(_size713); + uint32_t _i717; + for (_i717 = 0; _i717 < _size713; ++_i717) { - xfer += iprot->readI64(this->txnIds[_i709]); + xfer += iprot->readI64(this->txnIds[_i717]); } xfer += iprot->readListEnd(); } @@ -17340,14 +17606,14 @@ uint32_t AllocateTableWriteIdsRequest::read(::apache::thrift::protocol::TProtoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->srcTxnToWriteIdList.clear(); - uint32_t _size710; - ::apache::thrift::protocol::TType _etype713; - xfer += iprot->readListBegin(_etype713, _size710); - this->srcTxnToWriteIdList.resize(_size710); - uint32_t _i714; - for (_i714 = 0; _i714 < _size710; ++_i714) + uint32_t _size718; + ::apache::thrift::protocol::TType _etype721; + xfer += iprot->readListBegin(_etype721, _size718); + this->srcTxnToWriteIdList.resize(_size718); + uint32_t _i722; + for (_i722 = 0; _i722 < _size718; ++_i722) { - xfer += this->srcTxnToWriteIdList[_i714].read(iprot); + xfer += this->srcTxnToWriteIdList[_i722].read(iprot); } xfer += iprot->readListEnd(); } @@ -17389,10 +17655,10 @@ uint32_t AllocateTableWriteIdsRequest::write(::apache::thrift::protocol::TProtoc xfer += oprot->writeFieldBegin("txnIds", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->txnIds.size())); - std::vector ::const_iterator _iter715; - for (_iter715 = this->txnIds.begin(); _iter715 != this->txnIds.end(); ++_iter715) + std::vector ::const_iterator _iter723; + for (_iter723 = this->txnIds.begin(); _iter723 != this->txnIds.end(); ++_iter723) { - xfer += oprot->writeI64((*_iter715)); + xfer += oprot->writeI64((*_iter723)); } xfer += oprot->writeListEnd(); } @@ -17407,10 +17673,10 @@ uint32_t AllocateTableWriteIdsRequest::write(::apache::thrift::protocol::TProtoc xfer += oprot->writeFieldBegin("srcTxnToWriteIdList", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->srcTxnToWriteIdList.size())); - std::vector ::const_iterator _iter716; - for (_iter716 = this->srcTxnToWriteIdList.begin(); _iter716 != this->srcTxnToWriteIdList.end(); ++_iter716) + std::vector ::const_iterator _iter724; + for (_iter724 = this->srcTxnToWriteIdList.begin(); _iter724 != this->srcTxnToWriteIdList.end(); ++_iter724) { - xfer += (*_iter716).write(oprot); + xfer += (*_iter724).write(oprot); } xfer += oprot->writeListEnd(); } @@ -17431,21 +17697,21 @@ void swap(AllocateTableWriteIdsRequest &a, AllocateTableWriteIdsRequest &b) { swap(a.__isset, b.__isset); } -AllocateTableWriteIdsRequest::AllocateTableWriteIdsRequest(const AllocateTableWriteIdsRequest& other717) { - dbName = other717.dbName; - tableName = other717.tableName; - txnIds = other717.txnIds; - replPolicy = other717.replPolicy; - srcTxnToWriteIdList = other717.srcTxnToWriteIdList; - __isset = other717.__isset; -} -AllocateTableWriteIdsRequest& AllocateTableWriteIdsRequest::operator=(const AllocateTableWriteIdsRequest& other718) { - dbName = other718.dbName; - tableName = other718.tableName; - txnIds = other718.txnIds; - replPolicy = other718.replPolicy; - srcTxnToWriteIdList = other718.srcTxnToWriteIdList; - __isset = other718.__isset; +AllocateTableWriteIdsRequest::AllocateTableWriteIdsRequest(const AllocateTableWriteIdsRequest& other725) { + dbName = other725.dbName; + tableName = other725.tableName; + txnIds = other725.txnIds; + replPolicy = other725.replPolicy; + srcTxnToWriteIdList = other725.srcTxnToWriteIdList; + __isset = other725.__isset; +} +AllocateTableWriteIdsRequest& AllocateTableWriteIdsRequest::operator=(const AllocateTableWriteIdsRequest& other726) { + dbName = other726.dbName; + tableName = other726.tableName; + txnIds = other726.txnIds; + replPolicy = other726.replPolicy; + srcTxnToWriteIdList = other726.srcTxnToWriteIdList; + __isset = other726.__isset; return *this; } void AllocateTableWriteIdsRequest::printTo(std::ostream& out) const { @@ -17551,13 +17817,13 @@ void swap(TxnToWriteId &a, TxnToWriteId &b) { swap(a.writeId, b.writeId); } -TxnToWriteId::TxnToWriteId(const TxnToWriteId& other719) { - txnId = other719.txnId; - writeId = other719.writeId; +TxnToWriteId::TxnToWriteId(const TxnToWriteId& other727) { + txnId = other727.txnId; + writeId = other727.writeId; } -TxnToWriteId& TxnToWriteId::operator=(const TxnToWriteId& other720) { - txnId = other720.txnId; - writeId = other720.writeId; +TxnToWriteId& TxnToWriteId::operator=(const TxnToWriteId& other728) { + txnId = other728.txnId; + writeId = other728.writeId; return *this; } void TxnToWriteId::printTo(std::ostream& out) const { @@ -17603,14 +17869,14 @@ uint32_t AllocateTableWriteIdsResponse::read(::apache::thrift::protocol::TProtoc if (ftype == ::apache::thrift::protocol::T_LIST) { { this->txnToWriteIds.clear(); - uint32_t _size721; - ::apache::thrift::protocol::TType _etype724; - xfer += iprot->readListBegin(_etype724, _size721); - this->txnToWriteIds.resize(_size721); - uint32_t _i725; - for (_i725 = 0; _i725 < _size721; ++_i725) + uint32_t _size729; + ::apache::thrift::protocol::TType _etype732; + xfer += iprot->readListBegin(_etype732, _size729); + this->txnToWriteIds.resize(_size729); + uint32_t _i733; + for (_i733 = 0; _i733 < _size729; ++_i733) { - xfer += this->txnToWriteIds[_i725].read(iprot); + xfer += this->txnToWriteIds[_i733].read(iprot); } xfer += iprot->readListEnd(); } @@ -17641,10 +17907,10 @@ uint32_t AllocateTableWriteIdsResponse::write(::apache::thrift::protocol::TProto xfer += oprot->writeFieldBegin("txnToWriteIds", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->txnToWriteIds.size())); - std::vector ::const_iterator _iter726; - for (_iter726 = this->txnToWriteIds.begin(); _iter726 != this->txnToWriteIds.end(); ++_iter726) + std::vector ::const_iterator _iter734; + for (_iter734 = this->txnToWriteIds.begin(); _iter734 != this->txnToWriteIds.end(); ++_iter734) { - xfer += (*_iter726).write(oprot); + xfer += (*_iter734).write(oprot); } xfer += oprot->writeListEnd(); } @@ -17660,11 +17926,11 @@ void swap(AllocateTableWriteIdsResponse &a, AllocateTableWriteIdsResponse &b) { swap(a.txnToWriteIds, b.txnToWriteIds); } -AllocateTableWriteIdsResponse::AllocateTableWriteIdsResponse(const AllocateTableWriteIdsResponse& other727) { - txnToWriteIds = other727.txnToWriteIds; +AllocateTableWriteIdsResponse::AllocateTableWriteIdsResponse(const AllocateTableWriteIdsResponse& other735) { + txnToWriteIds = other735.txnToWriteIds; } -AllocateTableWriteIdsResponse& AllocateTableWriteIdsResponse::operator=(const AllocateTableWriteIdsResponse& other728) { - txnToWriteIds = other728.txnToWriteIds; +AllocateTableWriteIdsResponse& AllocateTableWriteIdsResponse::operator=(const AllocateTableWriteIdsResponse& other736) { + txnToWriteIds = other736.txnToWriteIds; return *this; } void AllocateTableWriteIdsResponse::printTo(std::ostream& out) const { @@ -17742,9 +18008,9 @@ uint32_t LockComponent::read(::apache::thrift::protocol::TProtocol* iprot) { { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast729; - xfer += iprot->readI32(ecast729); - this->type = (LockType::type)ecast729; + int32_t ecast737; + xfer += iprot->readI32(ecast737); + this->type = (LockType::type)ecast737; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -17752,9 +18018,9 @@ uint32_t LockComponent::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast730; - xfer += iprot->readI32(ecast730); - this->level = (LockLevel::type)ecast730; + int32_t ecast738; + xfer += iprot->readI32(ecast738); + this->level = (LockLevel::type)ecast738; isset_level = true; } else { xfer += iprot->skip(ftype); @@ -17786,9 +18052,9 @@ uint32_t LockComponent::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 6: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast731; - xfer += iprot->readI32(ecast731); - this->operationType = (DataOperationType::type)ecast731; + int32_t ecast739; + xfer += iprot->readI32(ecast739); + this->operationType = (DataOperationType::type)ecast739; this->__isset.operationType = true; } else { xfer += iprot->skip(ftype); @@ -17888,27 +18154,27 @@ void swap(LockComponent &a, LockComponent &b) { swap(a.__isset, b.__isset); } -LockComponent::LockComponent(const LockComponent& other732) { - type = other732.type; - level = other732.level; - dbname = other732.dbname; - tablename = other732.tablename; - partitionname = other732.partitionname; - operationType = other732.operationType; - isTransactional = other732.isTransactional; - isDynamicPartitionWrite = other732.isDynamicPartitionWrite; - __isset = other732.__isset; -} -LockComponent& LockComponent::operator=(const LockComponent& other733) { - type = other733.type; - level = other733.level; - dbname = other733.dbname; - tablename = other733.tablename; - partitionname = other733.partitionname; - operationType = other733.operationType; - isTransactional = other733.isTransactional; - isDynamicPartitionWrite = other733.isDynamicPartitionWrite; - __isset = other733.__isset; +LockComponent::LockComponent(const LockComponent& other740) { + type = other740.type; + level = other740.level; + dbname = other740.dbname; + tablename = other740.tablename; + partitionname = other740.partitionname; + operationType = other740.operationType; + isTransactional = other740.isTransactional; + isDynamicPartitionWrite = other740.isDynamicPartitionWrite; + __isset = other740.__isset; +} +LockComponent& LockComponent::operator=(const LockComponent& other741) { + type = other741.type; + level = other741.level; + dbname = other741.dbname; + tablename = other741.tablename; + partitionname = other741.partitionname; + operationType = other741.operationType; + isTransactional = other741.isTransactional; + isDynamicPartitionWrite = other741.isDynamicPartitionWrite; + __isset = other741.__isset; return *this; } void LockComponent::printTo(std::ostream& out) const { @@ -17980,14 +18246,14 @@ uint32_t LockRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->component.clear(); - uint32_t _size734; - ::apache::thrift::protocol::TType _etype737; - xfer += iprot->readListBegin(_etype737, _size734); - this->component.resize(_size734); - uint32_t _i738; - for (_i738 = 0; _i738 < _size734; ++_i738) + uint32_t _size742; + ::apache::thrift::protocol::TType _etype745; + xfer += iprot->readListBegin(_etype745, _size742); + this->component.resize(_size742); + uint32_t _i746; + for (_i746 = 0; _i746 < _size742; ++_i746) { - xfer += this->component[_i738].read(iprot); + xfer += this->component[_i746].read(iprot); } xfer += iprot->readListEnd(); } @@ -18054,10 +18320,10 @@ uint32_t LockRequest::write(::apache::thrift::protocol::TProtocol* oprot) const xfer += oprot->writeFieldBegin("component", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->component.size())); - std::vector ::const_iterator _iter739; - for (_iter739 = this->component.begin(); _iter739 != this->component.end(); ++_iter739) + std::vector ::const_iterator _iter747; + for (_iter747 = this->component.begin(); _iter747 != this->component.end(); ++_iter747) { - xfer += (*_iter739).write(oprot); + xfer += (*_iter747).write(oprot); } xfer += oprot->writeListEnd(); } @@ -18096,21 +18362,21 @@ void swap(LockRequest &a, LockRequest &b) { swap(a.__isset, b.__isset); } -LockRequest::LockRequest(const LockRequest& other740) { - component = other740.component; - txnid = other740.txnid; - user = other740.user; - hostname = other740.hostname; - agentInfo = other740.agentInfo; - __isset = other740.__isset; -} -LockRequest& LockRequest::operator=(const LockRequest& other741) { - component = other741.component; - txnid = other741.txnid; - user = other741.user; - hostname = other741.hostname; - agentInfo = other741.agentInfo; - __isset = other741.__isset; +LockRequest::LockRequest(const LockRequest& other748) { + component = other748.component; + txnid = other748.txnid; + user = other748.user; + hostname = other748.hostname; + agentInfo = other748.agentInfo; + __isset = other748.__isset; +} +LockRequest& LockRequest::operator=(const LockRequest& other749) { + component = other749.component; + txnid = other749.txnid; + user = other749.user; + hostname = other749.hostname; + agentInfo = other749.agentInfo; + __isset = other749.__isset; return *this; } void LockRequest::printTo(std::ostream& out) const { @@ -18170,9 +18436,9 @@ uint32_t LockResponse::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast742; - xfer += iprot->readI32(ecast742); - this->state = (LockState::type)ecast742; + int32_t ecast750; + xfer += iprot->readI32(ecast750); + this->state = (LockState::type)ecast750; isset_state = true; } else { xfer += iprot->skip(ftype); @@ -18218,13 +18484,13 @@ void swap(LockResponse &a, LockResponse &b) { swap(a.state, b.state); } -LockResponse::LockResponse(const LockResponse& other743) { - lockid = other743.lockid; - state = other743.state; +LockResponse::LockResponse(const LockResponse& other751) { + lockid = other751.lockid; + state = other751.state; } -LockResponse& LockResponse::operator=(const LockResponse& other744) { - lockid = other744.lockid; - state = other744.state; +LockResponse& LockResponse::operator=(const LockResponse& other752) { + lockid = other752.lockid; + state = other752.state; return *this; } void LockResponse::printTo(std::ostream& out) const { @@ -18346,17 +18612,17 @@ void swap(CheckLockRequest &a, CheckLockRequest &b) { swap(a.__isset, b.__isset); } -CheckLockRequest::CheckLockRequest(const CheckLockRequest& other745) { - lockid = other745.lockid; - txnid = other745.txnid; - elapsed_ms = other745.elapsed_ms; - __isset = other745.__isset; +CheckLockRequest::CheckLockRequest(const CheckLockRequest& other753) { + lockid = other753.lockid; + txnid = other753.txnid; + elapsed_ms = other753.elapsed_ms; + __isset = other753.__isset; } -CheckLockRequest& CheckLockRequest::operator=(const CheckLockRequest& other746) { - lockid = other746.lockid; - txnid = other746.txnid; - elapsed_ms = other746.elapsed_ms; - __isset = other746.__isset; +CheckLockRequest& CheckLockRequest::operator=(const CheckLockRequest& other754) { + lockid = other754.lockid; + txnid = other754.txnid; + elapsed_ms = other754.elapsed_ms; + __isset = other754.__isset; return *this; } void CheckLockRequest::printTo(std::ostream& out) const { @@ -18440,11 +18706,11 @@ void swap(UnlockRequest &a, UnlockRequest &b) { swap(a.lockid, b.lockid); } -UnlockRequest::UnlockRequest(const UnlockRequest& other747) { - lockid = other747.lockid; +UnlockRequest::UnlockRequest(const UnlockRequest& other755) { + lockid = other755.lockid; } -UnlockRequest& UnlockRequest::operator=(const UnlockRequest& other748) { - lockid = other748.lockid; +UnlockRequest& UnlockRequest::operator=(const UnlockRequest& other756) { + lockid = other756.lockid; return *this; } void UnlockRequest::printTo(std::ostream& out) const { @@ -18583,19 +18849,19 @@ void swap(ShowLocksRequest &a, ShowLocksRequest &b) { swap(a.__isset, b.__isset); } -ShowLocksRequest::ShowLocksRequest(const ShowLocksRequest& other749) { - dbname = other749.dbname; - tablename = other749.tablename; - partname = other749.partname; - isExtended = other749.isExtended; - __isset = other749.__isset; +ShowLocksRequest::ShowLocksRequest(const ShowLocksRequest& other757) { + dbname = other757.dbname; + tablename = other757.tablename; + partname = other757.partname; + isExtended = other757.isExtended; + __isset = other757.__isset; } -ShowLocksRequest& ShowLocksRequest::operator=(const ShowLocksRequest& other750) { - dbname = other750.dbname; - tablename = other750.tablename; - partname = other750.partname; - isExtended = other750.isExtended; - __isset = other750.__isset; +ShowLocksRequest& ShowLocksRequest::operator=(const ShowLocksRequest& other758) { + dbname = other758.dbname; + tablename = other758.tablename; + partname = other758.partname; + isExtended = other758.isExtended; + __isset = other758.__isset; return *this; } void ShowLocksRequest::printTo(std::ostream& out) const { @@ -18748,9 +19014,9 @@ uint32_t ShowLocksResponseElement::read(::apache::thrift::protocol::TProtocol* i break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast751; - xfer += iprot->readI32(ecast751); - this->state = (LockState::type)ecast751; + int32_t ecast759; + xfer += iprot->readI32(ecast759); + this->state = (LockState::type)ecast759; isset_state = true; } else { xfer += iprot->skip(ftype); @@ -18758,9 +19024,9 @@ uint32_t ShowLocksResponseElement::read(::apache::thrift::protocol::TProtocol* i break; case 6: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast752; - xfer += iprot->readI32(ecast752); - this->type = (LockType::type)ecast752; + int32_t ecast760; + xfer += iprot->readI32(ecast760); + this->type = (LockType::type)ecast760; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -18976,43 +19242,43 @@ void swap(ShowLocksResponseElement &a, ShowLocksResponseElement &b) { swap(a.__isset, b.__isset); } -ShowLocksResponseElement::ShowLocksResponseElement(const ShowLocksResponseElement& other753) { - lockid = other753.lockid; - dbname = other753.dbname; - tablename = other753.tablename; - partname = other753.partname; - state = other753.state; - type = other753.type; - txnid = other753.txnid; - lastheartbeat = other753.lastheartbeat; - acquiredat = other753.acquiredat; - user = other753.user; - hostname = other753.hostname; - heartbeatCount = other753.heartbeatCount; - agentInfo = other753.agentInfo; - blockedByExtId = other753.blockedByExtId; - blockedByIntId = other753.blockedByIntId; - lockIdInternal = other753.lockIdInternal; - __isset = other753.__isset; +ShowLocksResponseElement::ShowLocksResponseElement(const ShowLocksResponseElement& other761) { + lockid = other761.lockid; + dbname = other761.dbname; + tablename = other761.tablename; + partname = other761.partname; + state = other761.state; + type = other761.type; + txnid = other761.txnid; + lastheartbeat = other761.lastheartbeat; + acquiredat = other761.acquiredat; + user = other761.user; + hostname = other761.hostname; + heartbeatCount = other761.heartbeatCount; + agentInfo = other761.agentInfo; + blockedByExtId = other761.blockedByExtId; + blockedByIntId = other761.blockedByIntId; + lockIdInternal = other761.lockIdInternal; + __isset = other761.__isset; } -ShowLocksResponseElement& ShowLocksResponseElement::operator=(const ShowLocksResponseElement& other754) { - lockid = other754.lockid; - dbname = other754.dbname; - tablename = other754.tablename; - partname = other754.partname; - state = other754.state; - type = other754.type; - txnid = other754.txnid; - lastheartbeat = other754.lastheartbeat; - acquiredat = other754.acquiredat; - user = other754.user; - hostname = other754.hostname; - heartbeatCount = other754.heartbeatCount; - agentInfo = other754.agentInfo; - blockedByExtId = other754.blockedByExtId; - blockedByIntId = other754.blockedByIntId; - lockIdInternal = other754.lockIdInternal; - __isset = other754.__isset; +ShowLocksResponseElement& ShowLocksResponseElement::operator=(const ShowLocksResponseElement& other762) { + lockid = other762.lockid; + dbname = other762.dbname; + tablename = other762.tablename; + partname = other762.partname; + state = other762.state; + type = other762.type; + txnid = other762.txnid; + lastheartbeat = other762.lastheartbeat; + acquiredat = other762.acquiredat; + user = other762.user; + hostname = other762.hostname; + heartbeatCount = other762.heartbeatCount; + agentInfo = other762.agentInfo; + blockedByExtId = other762.blockedByExtId; + blockedByIntId = other762.blockedByIntId; + lockIdInternal = other762.lockIdInternal; + __isset = other762.__isset; return *this; } void ShowLocksResponseElement::printTo(std::ostream& out) const { @@ -19071,14 +19337,14 @@ uint32_t ShowLocksResponse::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->locks.clear(); - uint32_t _size755; - ::apache::thrift::protocol::TType _etype758; - xfer += iprot->readListBegin(_etype758, _size755); - this->locks.resize(_size755); - uint32_t _i759; - for (_i759 = 0; _i759 < _size755; ++_i759) + uint32_t _size763; + ::apache::thrift::protocol::TType _etype766; + xfer += iprot->readListBegin(_etype766, _size763); + this->locks.resize(_size763); + uint32_t _i767; + for (_i767 = 0; _i767 < _size763; ++_i767) { - xfer += this->locks[_i759].read(iprot); + xfer += this->locks[_i767].read(iprot); } xfer += iprot->readListEnd(); } @@ -19107,10 +19373,10 @@ uint32_t ShowLocksResponse::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("locks", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->locks.size())); - std::vector ::const_iterator _iter760; - for (_iter760 = this->locks.begin(); _iter760 != this->locks.end(); ++_iter760) + std::vector ::const_iterator _iter768; + for (_iter768 = this->locks.begin(); _iter768 != this->locks.end(); ++_iter768) { - xfer += (*_iter760).write(oprot); + xfer += (*_iter768).write(oprot); } xfer += oprot->writeListEnd(); } @@ -19127,13 +19393,13 @@ void swap(ShowLocksResponse &a, ShowLocksResponse &b) { swap(a.__isset, b.__isset); } -ShowLocksResponse::ShowLocksResponse(const ShowLocksResponse& other761) { - locks = other761.locks; - __isset = other761.__isset; +ShowLocksResponse::ShowLocksResponse(const ShowLocksResponse& other769) { + locks = other769.locks; + __isset = other769.__isset; } -ShowLocksResponse& ShowLocksResponse::operator=(const ShowLocksResponse& other762) { - locks = other762.locks; - __isset = other762.__isset; +ShowLocksResponse& ShowLocksResponse::operator=(const ShowLocksResponse& other770) { + locks = other770.locks; + __isset = other770.__isset; return *this; } void ShowLocksResponse::printTo(std::ostream& out) const { @@ -19234,15 +19500,15 @@ void swap(HeartbeatRequest &a, HeartbeatRequest &b) { swap(a.__isset, b.__isset); } -HeartbeatRequest::HeartbeatRequest(const HeartbeatRequest& other763) { - lockid = other763.lockid; - txnid = other763.txnid; - __isset = other763.__isset; +HeartbeatRequest::HeartbeatRequest(const HeartbeatRequest& other771) { + lockid = other771.lockid; + txnid = other771.txnid; + __isset = other771.__isset; } -HeartbeatRequest& HeartbeatRequest::operator=(const HeartbeatRequest& other764) { - lockid = other764.lockid; - txnid = other764.txnid; - __isset = other764.__isset; +HeartbeatRequest& HeartbeatRequest::operator=(const HeartbeatRequest& other772) { + lockid = other772.lockid; + txnid = other772.txnid; + __isset = other772.__isset; return *this; } void HeartbeatRequest::printTo(std::ostream& out) const { @@ -19345,13 +19611,13 @@ void swap(HeartbeatTxnRangeRequest &a, HeartbeatTxnRangeRequest &b) { swap(a.max, b.max); } -HeartbeatTxnRangeRequest::HeartbeatTxnRangeRequest(const HeartbeatTxnRangeRequest& other765) { - min = other765.min; - max = other765.max; +HeartbeatTxnRangeRequest::HeartbeatTxnRangeRequest(const HeartbeatTxnRangeRequest& other773) { + min = other773.min; + max = other773.max; } -HeartbeatTxnRangeRequest& HeartbeatTxnRangeRequest::operator=(const HeartbeatTxnRangeRequest& other766) { - min = other766.min; - max = other766.max; +HeartbeatTxnRangeRequest& HeartbeatTxnRangeRequest::operator=(const HeartbeatTxnRangeRequest& other774) { + min = other774.min; + max = other774.max; return *this; } void HeartbeatTxnRangeRequest::printTo(std::ostream& out) const { @@ -19402,15 +19668,15 @@ uint32_t HeartbeatTxnRangeResponse::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_SET) { { this->aborted.clear(); - uint32_t _size767; - ::apache::thrift::protocol::TType _etype770; - xfer += iprot->readSetBegin(_etype770, _size767); - uint32_t _i771; - for (_i771 = 0; _i771 < _size767; ++_i771) + uint32_t _size775; + ::apache::thrift::protocol::TType _etype778; + xfer += iprot->readSetBegin(_etype778, _size775); + uint32_t _i779; + for (_i779 = 0; _i779 < _size775; ++_i779) { - int64_t _elem772; - xfer += iprot->readI64(_elem772); - this->aborted.insert(_elem772); + int64_t _elem780; + xfer += iprot->readI64(_elem780); + this->aborted.insert(_elem780); } xfer += iprot->readSetEnd(); } @@ -19423,15 +19689,15 @@ uint32_t HeartbeatTxnRangeResponse::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_SET) { { this->nosuch.clear(); - uint32_t _size773; - ::apache::thrift::protocol::TType _etype776; - xfer += iprot->readSetBegin(_etype776, _size773); - uint32_t _i777; - for (_i777 = 0; _i777 < _size773; ++_i777) + uint32_t _size781; + ::apache::thrift::protocol::TType _etype784; + xfer += iprot->readSetBegin(_etype784, _size781); + uint32_t _i785; + for (_i785 = 0; _i785 < _size781; ++_i785) { - int64_t _elem778; - xfer += iprot->readI64(_elem778); - this->nosuch.insert(_elem778); + int64_t _elem786; + xfer += iprot->readI64(_elem786); + this->nosuch.insert(_elem786); } xfer += iprot->readSetEnd(); } @@ -19464,10 +19730,10 @@ uint32_t HeartbeatTxnRangeResponse::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldBegin("aborted", ::apache::thrift::protocol::T_SET, 1); { xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_I64, static_cast(this->aborted.size())); - std::set ::const_iterator _iter779; - for (_iter779 = this->aborted.begin(); _iter779 != this->aborted.end(); ++_iter779) + std::set ::const_iterator _iter787; + for (_iter787 = this->aborted.begin(); _iter787 != this->aborted.end(); ++_iter787) { - xfer += oprot->writeI64((*_iter779)); + xfer += oprot->writeI64((*_iter787)); } xfer += oprot->writeSetEnd(); } @@ -19476,10 +19742,10 @@ uint32_t HeartbeatTxnRangeResponse::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldBegin("nosuch", ::apache::thrift::protocol::T_SET, 2); { xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_I64, static_cast(this->nosuch.size())); - std::set ::const_iterator _iter780; - for (_iter780 = this->nosuch.begin(); _iter780 != this->nosuch.end(); ++_iter780) + std::set ::const_iterator _iter788; + for (_iter788 = this->nosuch.begin(); _iter788 != this->nosuch.end(); ++_iter788) { - xfer += oprot->writeI64((*_iter780)); + xfer += oprot->writeI64((*_iter788)); } xfer += oprot->writeSetEnd(); } @@ -19496,13 +19762,13 @@ void swap(HeartbeatTxnRangeResponse &a, HeartbeatTxnRangeResponse &b) { swap(a.nosuch, b.nosuch); } -HeartbeatTxnRangeResponse::HeartbeatTxnRangeResponse(const HeartbeatTxnRangeResponse& other781) { - aborted = other781.aborted; - nosuch = other781.nosuch; +HeartbeatTxnRangeResponse::HeartbeatTxnRangeResponse(const HeartbeatTxnRangeResponse& other789) { + aborted = other789.aborted; + nosuch = other789.nosuch; } -HeartbeatTxnRangeResponse& HeartbeatTxnRangeResponse::operator=(const HeartbeatTxnRangeResponse& other782) { - aborted = other782.aborted; - nosuch = other782.nosuch; +HeartbeatTxnRangeResponse& HeartbeatTxnRangeResponse::operator=(const HeartbeatTxnRangeResponse& other790) { + aborted = other790.aborted; + nosuch = other790.nosuch; return *this; } void HeartbeatTxnRangeResponse::printTo(std::ostream& out) const { @@ -19595,9 +19861,9 @@ uint32_t CompactionRequest::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast783; - xfer += iprot->readI32(ecast783); - this->type = (CompactionType::type)ecast783; + int32_t ecast791; + xfer += iprot->readI32(ecast791); + this->type = (CompactionType::type)ecast791; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -19615,17 +19881,17 @@ uint32_t CompactionRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->properties.clear(); - uint32_t _size784; - ::apache::thrift::protocol::TType _ktype785; - ::apache::thrift::protocol::TType _vtype786; - xfer += iprot->readMapBegin(_ktype785, _vtype786, _size784); - uint32_t _i788; - for (_i788 = 0; _i788 < _size784; ++_i788) + uint32_t _size792; + ::apache::thrift::protocol::TType _ktype793; + ::apache::thrift::protocol::TType _vtype794; + xfer += iprot->readMapBegin(_ktype793, _vtype794, _size792); + uint32_t _i796; + for (_i796 = 0; _i796 < _size792; ++_i796) { - std::string _key789; - xfer += iprot->readString(_key789); - std::string& _val790 = this->properties[_key789]; - xfer += iprot->readString(_val790); + std::string _key797; + xfer += iprot->readString(_key797); + std::string& _val798 = this->properties[_key797]; + xfer += iprot->readString(_val798); } xfer += iprot->readMapEnd(); } @@ -19683,11 +19949,11 @@ uint32_t CompactionRequest::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("properties", ::apache::thrift::protocol::T_MAP, 6); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->properties.size())); - std::map ::const_iterator _iter791; - for (_iter791 = this->properties.begin(); _iter791 != this->properties.end(); ++_iter791) + std::map ::const_iterator _iter799; + for (_iter799 = this->properties.begin(); _iter799 != this->properties.end(); ++_iter799) { - xfer += oprot->writeString(_iter791->first); - xfer += oprot->writeString(_iter791->second); + xfer += oprot->writeString(_iter799->first); + xfer += oprot->writeString(_iter799->second); } xfer += oprot->writeMapEnd(); } @@ -19709,23 +19975,23 @@ void swap(CompactionRequest &a, CompactionRequest &b) { swap(a.__isset, b.__isset); } -CompactionRequest::CompactionRequest(const CompactionRequest& other792) { - dbname = other792.dbname; - tablename = other792.tablename; - partitionname = other792.partitionname; - type = other792.type; - runas = other792.runas; - properties = other792.properties; - __isset = other792.__isset; -} -CompactionRequest& CompactionRequest::operator=(const CompactionRequest& other793) { - dbname = other793.dbname; - tablename = other793.tablename; - partitionname = other793.partitionname; - type = other793.type; - runas = other793.runas; - properties = other793.properties; - __isset = other793.__isset; +CompactionRequest::CompactionRequest(const CompactionRequest& other800) { + dbname = other800.dbname; + tablename = other800.tablename; + partitionname = other800.partitionname; + type = other800.type; + runas = other800.runas; + properties = other800.properties; + __isset = other800.__isset; +} +CompactionRequest& CompactionRequest::operator=(const CompactionRequest& other801) { + dbname = other801.dbname; + tablename = other801.tablename; + partitionname = other801.partitionname; + type = other801.type; + runas = other801.runas; + properties = other801.properties; + __isset = other801.__isset; return *this; } void CompactionRequest::printTo(std::ostream& out) const { @@ -19852,15 +20118,15 @@ void swap(CompactionResponse &a, CompactionResponse &b) { swap(a.accepted, b.accepted); } -CompactionResponse::CompactionResponse(const CompactionResponse& other794) { - id = other794.id; - state = other794.state; - accepted = other794.accepted; +CompactionResponse::CompactionResponse(const CompactionResponse& other802) { + id = other802.id; + state = other802.state; + accepted = other802.accepted; } -CompactionResponse& CompactionResponse::operator=(const CompactionResponse& other795) { - id = other795.id; - state = other795.state; - accepted = other795.accepted; +CompactionResponse& CompactionResponse::operator=(const CompactionResponse& other803) { + id = other803.id; + state = other803.state; + accepted = other803.accepted; return *this; } void CompactionResponse::printTo(std::ostream& out) const { @@ -19921,11 +20187,11 @@ void swap(ShowCompactRequest &a, ShowCompactRequest &b) { (void) b; } -ShowCompactRequest::ShowCompactRequest(const ShowCompactRequest& other796) { - (void) other796; +ShowCompactRequest::ShowCompactRequest(const ShowCompactRequest& other804) { + (void) other804; } -ShowCompactRequest& ShowCompactRequest::operator=(const ShowCompactRequest& other797) { - (void) other797; +ShowCompactRequest& ShowCompactRequest::operator=(const ShowCompactRequest& other805) { + (void) other805; return *this; } void ShowCompactRequest::printTo(std::ostream& out) const { @@ -20051,9 +20317,9 @@ uint32_t ShowCompactResponseElement::read(::apache::thrift::protocol::TProtocol* break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast798; - xfer += iprot->readI32(ecast798); - this->type = (CompactionType::type)ecast798; + int32_t ecast806; + xfer += iprot->readI32(ecast806); + this->type = (CompactionType::type)ecast806; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -20240,37 +20506,37 @@ void swap(ShowCompactResponseElement &a, ShowCompactResponseElement &b) { swap(a.__isset, b.__isset); } -ShowCompactResponseElement::ShowCompactResponseElement(const ShowCompactResponseElement& other799) { - dbname = other799.dbname; - tablename = other799.tablename; - partitionname = other799.partitionname; - type = other799.type; - state = other799.state; - workerid = other799.workerid; - start = other799.start; - runAs = other799.runAs; - hightestTxnId = other799.hightestTxnId; - metaInfo = other799.metaInfo; - endTime = other799.endTime; - hadoopJobId = other799.hadoopJobId; - id = other799.id; - __isset = other799.__isset; -} -ShowCompactResponseElement& ShowCompactResponseElement::operator=(const ShowCompactResponseElement& other800) { - dbname = other800.dbname; - tablename = other800.tablename; - partitionname = other800.partitionname; - type = other800.type; - state = other800.state; - workerid = other800.workerid; - start = other800.start; - runAs = other800.runAs; - hightestTxnId = other800.hightestTxnId; - metaInfo = other800.metaInfo; - endTime = other800.endTime; - hadoopJobId = other800.hadoopJobId; - id = other800.id; - __isset = other800.__isset; +ShowCompactResponseElement::ShowCompactResponseElement(const ShowCompactResponseElement& other807) { + dbname = other807.dbname; + tablename = other807.tablename; + partitionname = other807.partitionname; + type = other807.type; + state = other807.state; + workerid = other807.workerid; + start = other807.start; + runAs = other807.runAs; + hightestTxnId = other807.hightestTxnId; + metaInfo = other807.metaInfo; + endTime = other807.endTime; + hadoopJobId = other807.hadoopJobId; + id = other807.id; + __isset = other807.__isset; +} +ShowCompactResponseElement& ShowCompactResponseElement::operator=(const ShowCompactResponseElement& other808) { + dbname = other808.dbname; + tablename = other808.tablename; + partitionname = other808.partitionname; + type = other808.type; + state = other808.state; + workerid = other808.workerid; + start = other808.start; + runAs = other808.runAs; + hightestTxnId = other808.hightestTxnId; + metaInfo = other808.metaInfo; + endTime = other808.endTime; + hadoopJobId = other808.hadoopJobId; + id = other808.id; + __isset = other808.__isset; return *this; } void ShowCompactResponseElement::printTo(std::ostream& out) const { @@ -20327,14 +20593,14 @@ uint32_t ShowCompactResponse::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->compacts.clear(); - uint32_t _size801; - ::apache::thrift::protocol::TType _etype804; - xfer += iprot->readListBegin(_etype804, _size801); - this->compacts.resize(_size801); - uint32_t _i805; - for (_i805 = 0; _i805 < _size801; ++_i805) + uint32_t _size809; + ::apache::thrift::protocol::TType _etype812; + xfer += iprot->readListBegin(_etype812, _size809); + this->compacts.resize(_size809); + uint32_t _i813; + for (_i813 = 0; _i813 < _size809; ++_i813) { - xfer += this->compacts[_i805].read(iprot); + xfer += this->compacts[_i813].read(iprot); } xfer += iprot->readListEnd(); } @@ -20365,10 +20631,10 @@ uint32_t ShowCompactResponse::write(::apache::thrift::protocol::TProtocol* oprot xfer += oprot->writeFieldBegin("compacts", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->compacts.size())); - std::vector ::const_iterator _iter806; - for (_iter806 = this->compacts.begin(); _iter806 != this->compacts.end(); ++_iter806) + std::vector ::const_iterator _iter814; + for (_iter814 = this->compacts.begin(); _iter814 != this->compacts.end(); ++_iter814) { - xfer += (*_iter806).write(oprot); + xfer += (*_iter814).write(oprot); } xfer += oprot->writeListEnd(); } @@ -20384,11 +20650,11 @@ void swap(ShowCompactResponse &a, ShowCompactResponse &b) { swap(a.compacts, b.compacts); } -ShowCompactResponse::ShowCompactResponse(const ShowCompactResponse& other807) { - compacts = other807.compacts; +ShowCompactResponse::ShowCompactResponse(const ShowCompactResponse& other815) { + compacts = other815.compacts; } -ShowCompactResponse& ShowCompactResponse::operator=(const ShowCompactResponse& other808) { - compacts = other808.compacts; +ShowCompactResponse& ShowCompactResponse::operator=(const ShowCompactResponse& other816) { + compacts = other816.compacts; return *this; } void ShowCompactResponse::printTo(std::ostream& out) const { @@ -20490,14 +20756,14 @@ uint32_t AddDynamicPartitions::read(::apache::thrift::protocol::TProtocol* iprot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitionnames.clear(); - uint32_t _size809; - ::apache::thrift::protocol::TType _etype812; - xfer += iprot->readListBegin(_etype812, _size809); - this->partitionnames.resize(_size809); - uint32_t _i813; - for (_i813 = 0; _i813 < _size809; ++_i813) + uint32_t _size817; + ::apache::thrift::protocol::TType _etype820; + xfer += iprot->readListBegin(_etype820, _size817); + this->partitionnames.resize(_size817); + uint32_t _i821; + for (_i821 = 0; _i821 < _size817; ++_i821) { - xfer += iprot->readString(this->partitionnames[_i813]); + xfer += iprot->readString(this->partitionnames[_i821]); } xfer += iprot->readListEnd(); } @@ -20508,9 +20774,9 @@ uint32_t AddDynamicPartitions::read(::apache::thrift::protocol::TProtocol* iprot break; case 6: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast814; - xfer += iprot->readI32(ecast814); - this->operationType = (DataOperationType::type)ecast814; + int32_t ecast822; + xfer += iprot->readI32(ecast822); + this->operationType = (DataOperationType::type)ecast822; this->__isset.operationType = true; } else { xfer += iprot->skip(ftype); @@ -20562,10 +20828,10 @@ uint32_t AddDynamicPartitions::write(::apache::thrift::protocol::TProtocol* opro xfer += oprot->writeFieldBegin("partitionnames", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->partitionnames.size())); - std::vector ::const_iterator _iter815; - for (_iter815 = this->partitionnames.begin(); _iter815 != this->partitionnames.end(); ++_iter815) + std::vector ::const_iterator _iter823; + for (_iter823 = this->partitionnames.begin(); _iter823 != this->partitionnames.end(); ++_iter823) { - xfer += oprot->writeString((*_iter815)); + xfer += oprot->writeString((*_iter823)); } xfer += oprot->writeListEnd(); } @@ -20592,23 +20858,23 @@ void swap(AddDynamicPartitions &a, AddDynamicPartitions &b) { swap(a.__isset, b.__isset); } -AddDynamicPartitions::AddDynamicPartitions(const AddDynamicPartitions& other816) { - txnid = other816.txnid; - writeid = other816.writeid; - dbname = other816.dbname; - tablename = other816.tablename; - partitionnames = other816.partitionnames; - operationType = other816.operationType; - __isset = other816.__isset; -} -AddDynamicPartitions& AddDynamicPartitions::operator=(const AddDynamicPartitions& other817) { - txnid = other817.txnid; - writeid = other817.writeid; - dbname = other817.dbname; - tablename = other817.tablename; - partitionnames = other817.partitionnames; - operationType = other817.operationType; - __isset = other817.__isset; +AddDynamicPartitions::AddDynamicPartitions(const AddDynamicPartitions& other824) { + txnid = other824.txnid; + writeid = other824.writeid; + dbname = other824.dbname; + tablename = other824.tablename; + partitionnames = other824.partitionnames; + operationType = other824.operationType; + __isset = other824.__isset; +} +AddDynamicPartitions& AddDynamicPartitions::operator=(const AddDynamicPartitions& other825) { + txnid = other825.txnid; + writeid = other825.writeid; + dbname = other825.dbname; + tablename = other825.tablename; + partitionnames = other825.partitionnames; + operationType = other825.operationType; + __isset = other825.__isset; return *this; } void AddDynamicPartitions::printTo(std::ostream& out) const { @@ -20791,23 +21057,23 @@ void swap(BasicTxnInfo &a, BasicTxnInfo &b) { swap(a.__isset, b.__isset); } -BasicTxnInfo::BasicTxnInfo(const BasicTxnInfo& other818) { - isnull = other818.isnull; - time = other818.time; - txnid = other818.txnid; - dbname = other818.dbname; - tablename = other818.tablename; - partitionname = other818.partitionname; - __isset = other818.__isset; -} -BasicTxnInfo& BasicTxnInfo::operator=(const BasicTxnInfo& other819) { - isnull = other819.isnull; - time = other819.time; - txnid = other819.txnid; - dbname = other819.dbname; - tablename = other819.tablename; - partitionname = other819.partitionname; - __isset = other819.__isset; +BasicTxnInfo::BasicTxnInfo(const BasicTxnInfo& other826) { + isnull = other826.isnull; + time = other826.time; + txnid = other826.txnid; + dbname = other826.dbname; + tablename = other826.tablename; + partitionname = other826.partitionname; + __isset = other826.__isset; +} +BasicTxnInfo& BasicTxnInfo::operator=(const BasicTxnInfo& other827) { + isnull = other827.isnull; + time = other827.time; + txnid = other827.txnid; + dbname = other827.dbname; + tablename = other827.tablename; + partitionname = other827.partitionname; + __isset = other827.__isset; return *this; } void BasicTxnInfo::printTo(std::ostream& out) const { @@ -20901,15 +21167,15 @@ uint32_t CreationMetadata::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_SET) { { this->tablesUsed.clear(); - uint32_t _size820; - ::apache::thrift::protocol::TType _etype823; - xfer += iprot->readSetBegin(_etype823, _size820); - uint32_t _i824; - for (_i824 = 0; _i824 < _size820; ++_i824) + uint32_t _size828; + ::apache::thrift::protocol::TType _etype831; + xfer += iprot->readSetBegin(_etype831, _size828); + uint32_t _i832; + for (_i832 = 0; _i832 < _size828; ++_i832) { - std::string _elem825; - xfer += iprot->readString(_elem825); - this->tablesUsed.insert(_elem825); + std::string _elem833; + xfer += iprot->readString(_elem833); + this->tablesUsed.insert(_elem833); } xfer += iprot->readSetEnd(); } @@ -20966,10 +21232,10 @@ uint32_t CreationMetadata::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldBegin("tablesUsed", ::apache::thrift::protocol::T_SET, 4); { xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_STRING, static_cast(this->tablesUsed.size())); - std::set ::const_iterator _iter826; - for (_iter826 = this->tablesUsed.begin(); _iter826 != this->tablesUsed.end(); ++_iter826) + std::set ::const_iterator _iter834; + for (_iter834 = this->tablesUsed.begin(); _iter834 != this->tablesUsed.end(); ++_iter834) { - xfer += oprot->writeString((*_iter826)); + xfer += oprot->writeString((*_iter834)); } xfer += oprot->writeSetEnd(); } @@ -20995,21 +21261,21 @@ void swap(CreationMetadata &a, CreationMetadata &b) { swap(a.__isset, b.__isset); } -CreationMetadata::CreationMetadata(const CreationMetadata& other827) { - catName = other827.catName; - dbName = other827.dbName; - tblName = other827.tblName; - tablesUsed = other827.tablesUsed; - validTxnList = other827.validTxnList; - __isset = other827.__isset; -} -CreationMetadata& CreationMetadata::operator=(const CreationMetadata& other828) { - catName = other828.catName; - dbName = other828.dbName; - tblName = other828.tblName; - tablesUsed = other828.tablesUsed; - validTxnList = other828.validTxnList; - __isset = other828.__isset; +CreationMetadata::CreationMetadata(const CreationMetadata& other835) { + catName = other835.catName; + dbName = other835.dbName; + tblName = other835.tblName; + tablesUsed = other835.tablesUsed; + validTxnList = other835.validTxnList; + __isset = other835.__isset; +} +CreationMetadata& CreationMetadata::operator=(const CreationMetadata& other836) { + catName = other836.catName; + dbName = other836.dbName; + tblName = other836.tblName; + tablesUsed = other836.tablesUsed; + validTxnList = other836.validTxnList; + __isset = other836.__isset; return *this; } void CreationMetadata::printTo(std::ostream& out) const { @@ -21115,15 +21381,15 @@ void swap(NotificationEventRequest &a, NotificationEventRequest &b) { swap(a.__isset, b.__isset); } -NotificationEventRequest::NotificationEventRequest(const NotificationEventRequest& other829) { - lastEvent = other829.lastEvent; - maxEvents = other829.maxEvents; - __isset = other829.__isset; +NotificationEventRequest::NotificationEventRequest(const NotificationEventRequest& other837) { + lastEvent = other837.lastEvent; + maxEvents = other837.maxEvents; + __isset = other837.__isset; } -NotificationEventRequest& NotificationEventRequest::operator=(const NotificationEventRequest& other830) { - lastEvent = other830.lastEvent; - maxEvents = other830.maxEvents; - __isset = other830.__isset; +NotificationEventRequest& NotificationEventRequest::operator=(const NotificationEventRequest& other838) { + lastEvent = other838.lastEvent; + maxEvents = other838.maxEvents; + __isset = other838.__isset; return *this; } void NotificationEventRequest::printTo(std::ostream& out) const { @@ -21343,27 +21609,27 @@ void swap(NotificationEvent &a, NotificationEvent &b) { swap(a.__isset, b.__isset); } -NotificationEvent::NotificationEvent(const NotificationEvent& other831) { - eventId = other831.eventId; - eventTime = other831.eventTime; - eventType = other831.eventType; - dbName = other831.dbName; - tableName = other831.tableName; - message = other831.message; - messageFormat = other831.messageFormat; - catName = other831.catName; - __isset = other831.__isset; -} -NotificationEvent& NotificationEvent::operator=(const NotificationEvent& other832) { - eventId = other832.eventId; - eventTime = other832.eventTime; - eventType = other832.eventType; - dbName = other832.dbName; - tableName = other832.tableName; - message = other832.message; - messageFormat = other832.messageFormat; - catName = other832.catName; - __isset = other832.__isset; +NotificationEvent::NotificationEvent(const NotificationEvent& other839) { + eventId = other839.eventId; + eventTime = other839.eventTime; + eventType = other839.eventType; + dbName = other839.dbName; + tableName = other839.tableName; + message = other839.message; + messageFormat = other839.messageFormat; + catName = other839.catName; + __isset = other839.__isset; +} +NotificationEvent& NotificationEvent::operator=(const NotificationEvent& other840) { + eventId = other840.eventId; + eventTime = other840.eventTime; + eventType = other840.eventType; + dbName = other840.dbName; + tableName = other840.tableName; + message = other840.message; + messageFormat = other840.messageFormat; + catName = other840.catName; + __isset = other840.__isset; return *this; } void NotificationEvent::printTo(std::ostream& out) const { @@ -21415,14 +21681,14 @@ uint32_t NotificationEventResponse::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { this->events.clear(); - uint32_t _size833; - ::apache::thrift::protocol::TType _etype836; - xfer += iprot->readListBegin(_etype836, _size833); - this->events.resize(_size833); - uint32_t _i837; - for (_i837 = 0; _i837 < _size833; ++_i837) + uint32_t _size841; + ::apache::thrift::protocol::TType _etype844; + xfer += iprot->readListBegin(_etype844, _size841); + this->events.resize(_size841); + uint32_t _i845; + for (_i845 = 0; _i845 < _size841; ++_i845) { - xfer += this->events[_i837].read(iprot); + xfer += this->events[_i845].read(iprot); } xfer += iprot->readListEnd(); } @@ -21453,10 +21719,10 @@ uint32_t NotificationEventResponse::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldBegin("events", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->events.size())); - std::vector ::const_iterator _iter838; - for (_iter838 = this->events.begin(); _iter838 != this->events.end(); ++_iter838) + std::vector ::const_iterator _iter846; + for (_iter846 = this->events.begin(); _iter846 != this->events.end(); ++_iter846) { - xfer += (*_iter838).write(oprot); + xfer += (*_iter846).write(oprot); } xfer += oprot->writeListEnd(); } @@ -21472,11 +21738,11 @@ void swap(NotificationEventResponse &a, NotificationEventResponse &b) { swap(a.events, b.events); } -NotificationEventResponse::NotificationEventResponse(const NotificationEventResponse& other839) { - events = other839.events; +NotificationEventResponse::NotificationEventResponse(const NotificationEventResponse& other847) { + events = other847.events; } -NotificationEventResponse& NotificationEventResponse::operator=(const NotificationEventResponse& other840) { - events = other840.events; +NotificationEventResponse& NotificationEventResponse::operator=(const NotificationEventResponse& other848) { + events = other848.events; return *this; } void NotificationEventResponse::printTo(std::ostream& out) const { @@ -21558,11 +21824,11 @@ void swap(CurrentNotificationEventId &a, CurrentNotificationEventId &b) { swap(a.eventId, b.eventId); } -CurrentNotificationEventId::CurrentNotificationEventId(const CurrentNotificationEventId& other841) { - eventId = other841.eventId; +CurrentNotificationEventId::CurrentNotificationEventId(const CurrentNotificationEventId& other849) { + eventId = other849.eventId; } -CurrentNotificationEventId& CurrentNotificationEventId::operator=(const CurrentNotificationEventId& other842) { - eventId = other842.eventId; +CurrentNotificationEventId& CurrentNotificationEventId::operator=(const CurrentNotificationEventId& other850) { + eventId = other850.eventId; return *this; } void CurrentNotificationEventId::printTo(std::ostream& out) const { @@ -21684,17 +21950,17 @@ void swap(NotificationEventsCountRequest &a, NotificationEventsCountRequest &b) swap(a.__isset, b.__isset); } -NotificationEventsCountRequest::NotificationEventsCountRequest(const NotificationEventsCountRequest& other843) { - fromEventId = other843.fromEventId; - dbName = other843.dbName; - catName = other843.catName; - __isset = other843.__isset; +NotificationEventsCountRequest::NotificationEventsCountRequest(const NotificationEventsCountRequest& other851) { + fromEventId = other851.fromEventId; + dbName = other851.dbName; + catName = other851.catName; + __isset = other851.__isset; } -NotificationEventsCountRequest& NotificationEventsCountRequest::operator=(const NotificationEventsCountRequest& other844) { - fromEventId = other844.fromEventId; - dbName = other844.dbName; - catName = other844.catName; - __isset = other844.__isset; +NotificationEventsCountRequest& NotificationEventsCountRequest::operator=(const NotificationEventsCountRequest& other852) { + fromEventId = other852.fromEventId; + dbName = other852.dbName; + catName = other852.catName; + __isset = other852.__isset; return *this; } void NotificationEventsCountRequest::printTo(std::ostream& out) const { @@ -21778,11 +22044,11 @@ void swap(NotificationEventsCountResponse &a, NotificationEventsCountResponse &b swap(a.eventsCount, b.eventsCount); } -NotificationEventsCountResponse::NotificationEventsCountResponse(const NotificationEventsCountResponse& other845) { - eventsCount = other845.eventsCount; +NotificationEventsCountResponse::NotificationEventsCountResponse(const NotificationEventsCountResponse& other853) { + eventsCount = other853.eventsCount; } -NotificationEventsCountResponse& NotificationEventsCountResponse::operator=(const NotificationEventsCountResponse& other846) { - eventsCount = other846.eventsCount; +NotificationEventsCountResponse& NotificationEventsCountResponse::operator=(const NotificationEventsCountResponse& other854) { + eventsCount = other854.eventsCount; return *this; } void NotificationEventsCountResponse::printTo(std::ostream& out) const { @@ -21811,6 +22077,11 @@ void InsertEventRequestData::__set_filesAddedChecksum(const std::vector & val) { + this->subDirectoryList = val; +__isset.subDirectoryList = true; +} + uint32_t InsertEventRequestData::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); @@ -21845,14 +22116,14 @@ uint32_t InsertEventRequestData::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->filesAdded.clear(); - uint32_t _size847; - ::apache::thrift::protocol::TType _etype850; - xfer += iprot->readListBegin(_etype850, _size847); - this->filesAdded.resize(_size847); - uint32_t _i851; - for (_i851 = 0; _i851 < _size847; ++_i851) + uint32_t _size855; + ::apache::thrift::protocol::TType _etype858; + xfer += iprot->readListBegin(_etype858, _size855); + this->filesAdded.resize(_size855); + uint32_t _i859; + for (_i859 = 0; _i859 < _size855; ++_i859) { - xfer += iprot->readString(this->filesAdded[_i851]); + xfer += iprot->readString(this->filesAdded[_i859]); } xfer += iprot->readListEnd(); } @@ -21865,14 +22136,14 @@ uint32_t InsertEventRequestData::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->filesAddedChecksum.clear(); - uint32_t _size852; - ::apache::thrift::protocol::TType _etype855; - xfer += iprot->readListBegin(_etype855, _size852); - this->filesAddedChecksum.resize(_size852); - uint32_t _i856; - for (_i856 = 0; _i856 < _size852; ++_i856) + uint32_t _size860; + ::apache::thrift::protocol::TType _etype863; + xfer += iprot->readListBegin(_etype863, _size860); + this->filesAddedChecksum.resize(_size860); + uint32_t _i864; + for (_i864 = 0; _i864 < _size860; ++_i864) { - xfer += iprot->readString(this->filesAddedChecksum[_i856]); + xfer += iprot->readString(this->filesAddedChecksum[_i864]); } xfer += iprot->readListEnd(); } @@ -21881,6 +22152,26 @@ uint32_t InsertEventRequestData::read(::apache::thrift::protocol::TProtocol* ipr xfer += iprot->skip(ftype); } break; + case 4: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->subDirectoryList.clear(); + uint32_t _size865; + ::apache::thrift::protocol::TType _etype868; + xfer += iprot->readListBegin(_etype868, _size865); + this->subDirectoryList.resize(_size865); + uint32_t _i869; + for (_i869 = 0; _i869 < _size865; ++_i869) + { + xfer += iprot->readString(this->subDirectoryList[_i869]); + } + xfer += iprot->readListEnd(); + } + this->__isset.subDirectoryList = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -21908,10 +22199,10 @@ uint32_t InsertEventRequestData::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldBegin("filesAdded", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->filesAdded.size())); - std::vector ::const_iterator _iter857; - for (_iter857 = this->filesAdded.begin(); _iter857 != this->filesAdded.end(); ++_iter857) + std::vector ::const_iterator _iter870; + for (_iter870 = this->filesAdded.begin(); _iter870 != this->filesAdded.end(); ++_iter870) { - xfer += oprot->writeString((*_iter857)); + xfer += oprot->writeString((*_iter870)); } xfer += oprot->writeListEnd(); } @@ -21921,10 +22212,23 @@ uint32_t InsertEventRequestData::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldBegin("filesAddedChecksum", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->filesAddedChecksum.size())); - std::vector ::const_iterator _iter858; - for (_iter858 = this->filesAddedChecksum.begin(); _iter858 != this->filesAddedChecksum.end(); ++_iter858) + std::vector ::const_iterator _iter871; + for (_iter871 = this->filesAddedChecksum.begin(); _iter871 != this->filesAddedChecksum.end(); ++_iter871) + { + xfer += oprot->writeString((*_iter871)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.subDirectoryList) { + xfer += oprot->writeFieldBegin("subDirectoryList", ::apache::thrift::protocol::T_LIST, 4); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->subDirectoryList.size())); + std::vector ::const_iterator _iter872; + for (_iter872 = this->subDirectoryList.begin(); _iter872 != this->subDirectoryList.end(); ++_iter872) { - xfer += oprot->writeString((*_iter858)); + xfer += oprot->writeString((*_iter872)); } xfer += oprot->writeListEnd(); } @@ -21940,20 +22244,23 @@ void swap(InsertEventRequestData &a, InsertEventRequestData &b) { swap(a.replace, b.replace); swap(a.filesAdded, b.filesAdded); swap(a.filesAddedChecksum, b.filesAddedChecksum); + swap(a.subDirectoryList, b.subDirectoryList); swap(a.__isset, b.__isset); } -InsertEventRequestData::InsertEventRequestData(const InsertEventRequestData& other859) { - replace = other859.replace; - filesAdded = other859.filesAdded; - filesAddedChecksum = other859.filesAddedChecksum; - __isset = other859.__isset; +InsertEventRequestData::InsertEventRequestData(const InsertEventRequestData& other873) { + replace = other873.replace; + filesAdded = other873.filesAdded; + filesAddedChecksum = other873.filesAddedChecksum; + subDirectoryList = other873.subDirectoryList; + __isset = other873.__isset; } -InsertEventRequestData& InsertEventRequestData::operator=(const InsertEventRequestData& other860) { - replace = other860.replace; - filesAdded = other860.filesAdded; - filesAddedChecksum = other860.filesAddedChecksum; - __isset = other860.__isset; +InsertEventRequestData& InsertEventRequestData::operator=(const InsertEventRequestData& other874) { + replace = other874.replace; + filesAdded = other874.filesAdded; + filesAddedChecksum = other874.filesAddedChecksum; + subDirectoryList = other874.subDirectoryList; + __isset = other874.__isset; return *this; } void InsertEventRequestData::printTo(std::ostream& out) const { @@ -21962,6 +22269,7 @@ void InsertEventRequestData::printTo(std::ostream& out) const { out << "replace="; (__isset.replace ? (out << to_string(replace)) : (out << "")); out << ", " << "filesAdded=" << to_string(filesAdded); out << ", " << "filesAddedChecksum="; (__isset.filesAddedChecksum ? (out << to_string(filesAddedChecksum)) : (out << "")); + out << ", " << "subDirectoryList="; (__isset.subDirectoryList ? (out << to_string(subDirectoryList)) : (out << "")); out << ")"; } @@ -22035,13 +22343,13 @@ void swap(FireEventRequestData &a, FireEventRequestData &b) { swap(a.__isset, b.__isset); } -FireEventRequestData::FireEventRequestData(const FireEventRequestData& other861) { - insertData = other861.insertData; - __isset = other861.__isset; +FireEventRequestData::FireEventRequestData(const FireEventRequestData& other875) { + insertData = other875.insertData; + __isset = other875.__isset; } -FireEventRequestData& FireEventRequestData::operator=(const FireEventRequestData& other862) { - insertData = other862.insertData; - __isset = other862.__isset; +FireEventRequestData& FireEventRequestData::operator=(const FireEventRequestData& other876) { + insertData = other876.insertData; + __isset = other876.__isset; return *this; } void FireEventRequestData::printTo(std::ostream& out) const { @@ -22056,35 +22364,314 @@ FireEventRequest::~FireEventRequest() throw() { } -void FireEventRequest::__set_successful(const bool val) { - this->successful = val; +void FireEventRequest::__set_successful(const bool val) { + this->successful = val; +} + +void FireEventRequest::__set_data(const FireEventRequestData& val) { + this->data = val; +} + +void FireEventRequest::__set_dbName(const std::string& val) { + this->dbName = val; +__isset.dbName = true; +} + +void FireEventRequest::__set_tableName(const std::string& val) { + this->tableName = val; +__isset.tableName = true; +} + +void FireEventRequest::__set_partitionVals(const std::vector & val) { + this->partitionVals = val; +__isset.partitionVals = true; +} + +void FireEventRequest::__set_catName(const std::string& val) { + this->catName = val; +__isset.catName = true; +} + +uint32_t FireEventRequest::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + bool isset_successful = false; + bool isset_data = false; + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->successful); + isset_successful = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->data.read(iprot); + isset_data = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->dbName); + this->__isset.dbName = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->tableName); + this->__isset.tableName = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->partitionVals.clear(); + uint32_t _size877; + ::apache::thrift::protocol::TType _etype880; + xfer += iprot->readListBegin(_etype880, _size877); + this->partitionVals.resize(_size877); + uint32_t _i881; + for (_i881 = 0; _i881 < _size877; ++_i881) + { + xfer += iprot->readString(this->partitionVals[_i881]); + } + xfer += iprot->readListEnd(); + } + this->__isset.partitionVals = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->catName); + this->__isset.catName = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_successful) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_data) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t FireEventRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("FireEventRequest"); + + xfer += oprot->writeFieldBegin("successful", ::apache::thrift::protocol::T_BOOL, 1); + xfer += oprot->writeBool(this->successful); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("data", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->data.write(oprot); + xfer += oprot->writeFieldEnd(); + + if (this->__isset.dbName) { + xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->dbName); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.tableName) { + xfer += oprot->writeFieldBegin("tableName", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->tableName); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.partitionVals) { + xfer += oprot->writeFieldBegin("partitionVals", ::apache::thrift::protocol::T_LIST, 5); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->partitionVals.size())); + std::vector ::const_iterator _iter882; + for (_iter882 = this->partitionVals.begin(); _iter882 != this->partitionVals.end(); ++_iter882) + { + xfer += oprot->writeString((*_iter882)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.catName) { + xfer += oprot->writeFieldBegin("catName", ::apache::thrift::protocol::T_STRING, 6); + xfer += oprot->writeString(this->catName); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(FireEventRequest &a, FireEventRequest &b) { + using ::std::swap; + swap(a.successful, b.successful); + swap(a.data, b.data); + swap(a.dbName, b.dbName); + swap(a.tableName, b.tableName); + swap(a.partitionVals, b.partitionVals); + swap(a.catName, b.catName); + swap(a.__isset, b.__isset); +} + +FireEventRequest::FireEventRequest(const FireEventRequest& other883) { + successful = other883.successful; + data = other883.data; + dbName = other883.dbName; + tableName = other883.tableName; + partitionVals = other883.partitionVals; + catName = other883.catName; + __isset = other883.__isset; +} +FireEventRequest& FireEventRequest::operator=(const FireEventRequest& other884) { + successful = other884.successful; + data = other884.data; + dbName = other884.dbName; + tableName = other884.tableName; + partitionVals = other884.partitionVals; + catName = other884.catName; + __isset = other884.__isset; + return *this; +} +void FireEventRequest::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "FireEventRequest("; + out << "successful=" << to_string(successful); + out << ", " << "data=" << to_string(data); + out << ", " << "dbName="; (__isset.dbName ? (out << to_string(dbName)) : (out << "")); + out << ", " << "tableName="; (__isset.tableName ? (out << to_string(tableName)) : (out << "")); + out << ", " << "partitionVals="; (__isset.partitionVals ? (out << to_string(partitionVals)) : (out << "")); + out << ", " << "catName="; (__isset.catName ? (out << to_string(catName)) : (out << "")); + out << ")"; +} + + +FireEventResponse::~FireEventResponse() throw() { +} + + +uint32_t FireEventResponse::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + xfer += iprot->skip(ftype); + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t FireEventResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("FireEventResponse"); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(FireEventResponse &a, FireEventResponse &b) { + using ::std::swap; + (void) a; + (void) b; +} + +FireEventResponse::FireEventResponse(const FireEventResponse& other885) { + (void) other885; +} +FireEventResponse& FireEventResponse::operator=(const FireEventResponse& other886) { + (void) other886; + return *this; +} +void FireEventResponse::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "FireEventResponse("; + out << ")"; +} + + +WriteNotificationLogRequest::~WriteNotificationLogRequest() throw() { +} + + +void WriteNotificationLogRequest::__set_txnId(const int64_t val) { + this->txnId = val; +} + +void WriteNotificationLogRequest::__set_writeId(const int64_t val) { + this->writeId = val; } -void FireEventRequest::__set_data(const FireEventRequestData& val) { - this->data = val; +void WriteNotificationLogRequest::__set_db(const std::string& val) { + this->db = val; } -void FireEventRequest::__set_dbName(const std::string& val) { - this->dbName = val; -__isset.dbName = true; +void WriteNotificationLogRequest::__set_table(const std::string& val) { + this->table = val; } -void FireEventRequest::__set_tableName(const std::string& val) { - this->tableName = val; -__isset.tableName = true; +void WriteNotificationLogRequest::__set_fileInfo(const InsertEventRequestData& val) { + this->fileInfo = val; } -void FireEventRequest::__set_partitionVals(const std::vector & val) { +void WriteNotificationLogRequest::__set_partitionVals(const std::vector & val) { this->partitionVals = val; __isset.partitionVals = true; } -void FireEventRequest::__set_catName(const std::string& val) { - this->catName = val; -__isset.catName = true; -} - -uint32_t FireEventRequest::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t WriteNotificationLogRequest::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -22096,8 +22683,11 @@ uint32_t FireEventRequest::read(::apache::thrift::protocol::TProtocol* iprot) { using ::apache::thrift::protocol::TProtocolException; - bool isset_successful = false; - bool isset_data = false; + bool isset_txnId = false; + bool isset_writeId = false; + bool isset_db = false; + bool isset_table = false; + bool isset_fileInfo = false; while (true) { @@ -22108,49 +22698,57 @@ uint32_t FireEventRequest::read(::apache::thrift::protocol::TProtocol* iprot) { switch (fid) { case 1: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->successful); - isset_successful = true; + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->txnId); + isset_txnId = true; } else { xfer += iprot->skip(ftype); } break; case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->data.read(iprot); - isset_data = true; + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->writeId); + isset_writeId = true; } else { xfer += iprot->skip(ftype); } break; case 3: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->dbName); - this->__isset.dbName = true; + xfer += iprot->readString(this->db); + isset_db = true; } else { xfer += iprot->skip(ftype); } break; case 4: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->tableName); - this->__isset.tableName = true; + xfer += iprot->readString(this->table); + isset_table = true; } else { xfer += iprot->skip(ftype); } break; case 5: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->fileInfo.read(iprot); + isset_fileInfo = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitionVals.clear(); - uint32_t _size863; - ::apache::thrift::protocol::TType _etype866; - xfer += iprot->readListBegin(_etype866, _size863); - this->partitionVals.resize(_size863); - uint32_t _i867; - for (_i867 = 0; _i867 < _size863; ++_i867) + uint32_t _size887; + ::apache::thrift::protocol::TType _etype890; + xfer += iprot->readListBegin(_etype890, _size887); + this->partitionVals.resize(_size887); + uint32_t _i891; + for (_i891 = 0; _i891 < _size887; ++_i891) { - xfer += iprot->readString(this->partitionVals[_i867]); + xfer += iprot->readString(this->partitionVals[_i891]); } xfer += iprot->readListEnd(); } @@ -22159,14 +22757,6 @@ uint32_t FireEventRequest::read(::apache::thrift::protocol::TProtocol* iprot) { xfer += iprot->skip(ftype); } break; - case 6: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->catName); - this->__isset.catName = true; - } else { - xfer += iprot->skip(ftype); - } - break; default: xfer += iprot->skip(ftype); break; @@ -22176,107 +22766,110 @@ uint32_t FireEventRequest::read(::apache::thrift::protocol::TProtocol* iprot) { xfer += iprot->readStructEnd(); - if (!isset_successful) + if (!isset_txnId) throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_data) + if (!isset_writeId) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_db) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_table) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_fileInfo) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t FireEventRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t WriteNotificationLogRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("FireEventRequest"); + xfer += oprot->writeStructBegin("WriteNotificationLogRequest"); - xfer += oprot->writeFieldBegin("successful", ::apache::thrift::protocol::T_BOOL, 1); - xfer += oprot->writeBool(this->successful); + xfer += oprot->writeFieldBegin("txnId", ::apache::thrift::protocol::T_I64, 1); + xfer += oprot->writeI64(this->txnId); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("data", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->data.write(oprot); + xfer += oprot->writeFieldBegin("writeId", ::apache::thrift::protocol::T_I64, 2); + xfer += oprot->writeI64(this->writeId); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("db", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->db); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("table", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->table); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("fileInfo", ::apache::thrift::protocol::T_STRUCT, 5); + xfer += this->fileInfo.write(oprot); xfer += oprot->writeFieldEnd(); - if (this->__isset.dbName) { - xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->dbName); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.tableName) { - xfer += oprot->writeFieldBegin("tableName", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString(this->tableName); - xfer += oprot->writeFieldEnd(); - } if (this->__isset.partitionVals) { - xfer += oprot->writeFieldBegin("partitionVals", ::apache::thrift::protocol::T_LIST, 5); + xfer += oprot->writeFieldBegin("partitionVals", ::apache::thrift::protocol::T_LIST, 6); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->partitionVals.size())); - std::vector ::const_iterator _iter868; - for (_iter868 = this->partitionVals.begin(); _iter868 != this->partitionVals.end(); ++_iter868) + std::vector ::const_iterator _iter892; + for (_iter892 = this->partitionVals.begin(); _iter892 != this->partitionVals.end(); ++_iter892) { - xfer += oprot->writeString((*_iter868)); + xfer += oprot->writeString((*_iter892)); } xfer += oprot->writeListEnd(); } xfer += oprot->writeFieldEnd(); } - if (this->__isset.catName) { - xfer += oprot->writeFieldBegin("catName", ::apache::thrift::protocol::T_STRING, 6); - xfer += oprot->writeString(this->catName); - xfer += oprot->writeFieldEnd(); - } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -void swap(FireEventRequest &a, FireEventRequest &b) { +void swap(WriteNotificationLogRequest &a, WriteNotificationLogRequest &b) { using ::std::swap; - swap(a.successful, b.successful); - swap(a.data, b.data); - swap(a.dbName, b.dbName); - swap(a.tableName, b.tableName); + swap(a.txnId, b.txnId); + swap(a.writeId, b.writeId); + swap(a.db, b.db); + swap(a.table, b.table); + swap(a.fileInfo, b.fileInfo); swap(a.partitionVals, b.partitionVals); - swap(a.catName, b.catName); swap(a.__isset, b.__isset); } -FireEventRequest::FireEventRequest(const FireEventRequest& other869) { - successful = other869.successful; - data = other869.data; - dbName = other869.dbName; - tableName = other869.tableName; - partitionVals = other869.partitionVals; - catName = other869.catName; - __isset = other869.__isset; -} -FireEventRequest& FireEventRequest::operator=(const FireEventRequest& other870) { - successful = other870.successful; - data = other870.data; - dbName = other870.dbName; - tableName = other870.tableName; - partitionVals = other870.partitionVals; - catName = other870.catName; - __isset = other870.__isset; +WriteNotificationLogRequest::WriteNotificationLogRequest(const WriteNotificationLogRequest& other893) { + txnId = other893.txnId; + writeId = other893.writeId; + db = other893.db; + table = other893.table; + fileInfo = other893.fileInfo; + partitionVals = other893.partitionVals; + __isset = other893.__isset; +} +WriteNotificationLogRequest& WriteNotificationLogRequest::operator=(const WriteNotificationLogRequest& other894) { + txnId = other894.txnId; + writeId = other894.writeId; + db = other894.db; + table = other894.table; + fileInfo = other894.fileInfo; + partitionVals = other894.partitionVals; + __isset = other894.__isset; return *this; } -void FireEventRequest::printTo(std::ostream& out) const { +void WriteNotificationLogRequest::printTo(std::ostream& out) const { using ::apache::thrift::to_string; - out << "FireEventRequest("; - out << "successful=" << to_string(successful); - out << ", " << "data=" << to_string(data); - out << ", " << "dbName="; (__isset.dbName ? (out << to_string(dbName)) : (out << "")); - out << ", " << "tableName="; (__isset.tableName ? (out << to_string(tableName)) : (out << "")); + out << "WriteNotificationLogRequest("; + out << "txnId=" << to_string(txnId); + out << ", " << "writeId=" << to_string(writeId); + out << ", " << "db=" << to_string(db); + out << ", " << "table=" << to_string(table); + out << ", " << "fileInfo=" << to_string(fileInfo); out << ", " << "partitionVals="; (__isset.partitionVals ? (out << to_string(partitionVals)) : (out << "")); - out << ", " << "catName="; (__isset.catName ? (out << to_string(catName)) : (out << "")); out << ")"; } -FireEventResponse::~FireEventResponse() throw() { +WriteNotificationLogResponse::~WriteNotificationLogResponse() throw() { } -uint32_t FireEventResponse::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t WriteNotificationLogResponse::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -22304,32 +22897,32 @@ uint32_t FireEventResponse::read(::apache::thrift::protocol::TProtocol* iprot) { return xfer; } -uint32_t FireEventResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t WriteNotificationLogResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("FireEventResponse"); + xfer += oprot->writeStructBegin("WriteNotificationLogResponse"); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -void swap(FireEventResponse &a, FireEventResponse &b) { +void swap(WriteNotificationLogResponse &a, WriteNotificationLogResponse &b) { using ::std::swap; (void) a; (void) b; } -FireEventResponse::FireEventResponse(const FireEventResponse& other871) { - (void) other871; +WriteNotificationLogResponse::WriteNotificationLogResponse(const WriteNotificationLogResponse& other895) { + (void) other895; } -FireEventResponse& FireEventResponse::operator=(const FireEventResponse& other872) { - (void) other872; +WriteNotificationLogResponse& WriteNotificationLogResponse::operator=(const WriteNotificationLogResponse& other896) { + (void) other896; return *this; } -void FireEventResponse::printTo(std::ostream& out) const { +void WriteNotificationLogResponse::printTo(std::ostream& out) const { using ::apache::thrift::to_string; - out << "FireEventResponse("; + out << "WriteNotificationLogResponse("; out << ")"; } @@ -22424,15 +23017,15 @@ void swap(MetadataPpdResult &a, MetadataPpdResult &b) { swap(a.__isset, b.__isset); } -MetadataPpdResult::MetadataPpdResult(const MetadataPpdResult& other873) { - metadata = other873.metadata; - includeBitset = other873.includeBitset; - __isset = other873.__isset; +MetadataPpdResult::MetadataPpdResult(const MetadataPpdResult& other897) { + metadata = other897.metadata; + includeBitset = other897.includeBitset; + __isset = other897.__isset; } -MetadataPpdResult& MetadataPpdResult::operator=(const MetadataPpdResult& other874) { - metadata = other874.metadata; - includeBitset = other874.includeBitset; - __isset = other874.__isset; +MetadataPpdResult& MetadataPpdResult::operator=(const MetadataPpdResult& other898) { + metadata = other898.metadata; + includeBitset = other898.includeBitset; + __isset = other898.__isset; return *this; } void MetadataPpdResult::printTo(std::ostream& out) const { @@ -22483,17 +23076,17 @@ uint32_t GetFileMetadataByExprResult::read(::apache::thrift::protocol::TProtocol if (ftype == ::apache::thrift::protocol::T_MAP) { { this->metadata.clear(); - uint32_t _size875; - ::apache::thrift::protocol::TType _ktype876; - ::apache::thrift::protocol::TType _vtype877; - xfer += iprot->readMapBegin(_ktype876, _vtype877, _size875); - uint32_t _i879; - for (_i879 = 0; _i879 < _size875; ++_i879) + uint32_t _size899; + ::apache::thrift::protocol::TType _ktype900; + ::apache::thrift::protocol::TType _vtype901; + xfer += iprot->readMapBegin(_ktype900, _vtype901, _size899); + uint32_t _i903; + for (_i903 = 0; _i903 < _size899; ++_i903) { - int64_t _key880; - xfer += iprot->readI64(_key880); - MetadataPpdResult& _val881 = this->metadata[_key880]; - xfer += _val881.read(iprot); + int64_t _key904; + xfer += iprot->readI64(_key904); + MetadataPpdResult& _val905 = this->metadata[_key904]; + xfer += _val905.read(iprot); } xfer += iprot->readMapEnd(); } @@ -22534,11 +23127,11 @@ uint32_t GetFileMetadataByExprResult::write(::apache::thrift::protocol::TProtoco xfer += oprot->writeFieldBegin("metadata", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_I64, ::apache::thrift::protocol::T_STRUCT, static_cast(this->metadata.size())); - std::map ::const_iterator _iter882; - for (_iter882 = this->metadata.begin(); _iter882 != this->metadata.end(); ++_iter882) + std::map ::const_iterator _iter906; + for (_iter906 = this->metadata.begin(); _iter906 != this->metadata.end(); ++_iter906) { - xfer += oprot->writeI64(_iter882->first); - xfer += _iter882->second.write(oprot); + xfer += oprot->writeI64(_iter906->first); + xfer += _iter906->second.write(oprot); } xfer += oprot->writeMapEnd(); } @@ -22559,13 +23152,13 @@ void swap(GetFileMetadataByExprResult &a, GetFileMetadataByExprResult &b) { swap(a.isSupported, b.isSupported); } -GetFileMetadataByExprResult::GetFileMetadataByExprResult(const GetFileMetadataByExprResult& other883) { - metadata = other883.metadata; - isSupported = other883.isSupported; +GetFileMetadataByExprResult::GetFileMetadataByExprResult(const GetFileMetadataByExprResult& other907) { + metadata = other907.metadata; + isSupported = other907.isSupported; } -GetFileMetadataByExprResult& GetFileMetadataByExprResult::operator=(const GetFileMetadataByExprResult& other884) { - metadata = other884.metadata; - isSupported = other884.isSupported; +GetFileMetadataByExprResult& GetFileMetadataByExprResult::operator=(const GetFileMetadataByExprResult& other908) { + metadata = other908.metadata; + isSupported = other908.isSupported; return *this; } void GetFileMetadataByExprResult::printTo(std::ostream& out) const { @@ -22626,14 +23219,14 @@ uint32_t GetFileMetadataByExprRequest::read(::apache::thrift::protocol::TProtoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size885; - ::apache::thrift::protocol::TType _etype888; - xfer += iprot->readListBegin(_etype888, _size885); - this->fileIds.resize(_size885); - uint32_t _i889; - for (_i889 = 0; _i889 < _size885; ++_i889) + uint32_t _size909; + ::apache::thrift::protocol::TType _etype912; + xfer += iprot->readListBegin(_etype912, _size909); + this->fileIds.resize(_size909); + uint32_t _i913; + for (_i913 = 0; _i913 < _size909; ++_i913) { - xfer += iprot->readI64(this->fileIds[_i889]); + xfer += iprot->readI64(this->fileIds[_i913]); } xfer += iprot->readListEnd(); } @@ -22660,9 +23253,9 @@ uint32_t GetFileMetadataByExprRequest::read(::apache::thrift::protocol::TProtoco break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast890; - xfer += iprot->readI32(ecast890); - this->type = (FileMetadataExprType::type)ecast890; + int32_t ecast914; + xfer += iprot->readI32(ecast914); + this->type = (FileMetadataExprType::type)ecast914; this->__isset.type = true; } else { xfer += iprot->skip(ftype); @@ -22692,10 +23285,10 @@ uint32_t GetFileMetadataByExprRequest::write(::apache::thrift::protocol::TProtoc xfer += oprot->writeFieldBegin("fileIds", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->fileIds.size())); - std::vector ::const_iterator _iter891; - for (_iter891 = this->fileIds.begin(); _iter891 != this->fileIds.end(); ++_iter891) + std::vector ::const_iterator _iter915; + for (_iter915 = this->fileIds.begin(); _iter915 != this->fileIds.end(); ++_iter915) { - xfer += oprot->writeI64((*_iter891)); + xfer += oprot->writeI64((*_iter915)); } xfer += oprot->writeListEnd(); } @@ -22729,19 +23322,19 @@ void swap(GetFileMetadataByExprRequest &a, GetFileMetadataByExprRequest &b) { swap(a.__isset, b.__isset); } -GetFileMetadataByExprRequest::GetFileMetadataByExprRequest(const GetFileMetadataByExprRequest& other892) { - fileIds = other892.fileIds; - expr = other892.expr; - doGetFooters = other892.doGetFooters; - type = other892.type; - __isset = other892.__isset; +GetFileMetadataByExprRequest::GetFileMetadataByExprRequest(const GetFileMetadataByExprRequest& other916) { + fileIds = other916.fileIds; + expr = other916.expr; + doGetFooters = other916.doGetFooters; + type = other916.type; + __isset = other916.__isset; } -GetFileMetadataByExprRequest& GetFileMetadataByExprRequest::operator=(const GetFileMetadataByExprRequest& other893) { - fileIds = other893.fileIds; - expr = other893.expr; - doGetFooters = other893.doGetFooters; - type = other893.type; - __isset = other893.__isset; +GetFileMetadataByExprRequest& GetFileMetadataByExprRequest::operator=(const GetFileMetadataByExprRequest& other917) { + fileIds = other917.fileIds; + expr = other917.expr; + doGetFooters = other917.doGetFooters; + type = other917.type; + __isset = other917.__isset; return *this; } void GetFileMetadataByExprRequest::printTo(std::ostream& out) const { @@ -22794,17 +23387,17 @@ uint32_t GetFileMetadataResult::read(::apache::thrift::protocol::TProtocol* ipro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->metadata.clear(); - uint32_t _size894; - ::apache::thrift::protocol::TType _ktype895; - ::apache::thrift::protocol::TType _vtype896; - xfer += iprot->readMapBegin(_ktype895, _vtype896, _size894); - uint32_t _i898; - for (_i898 = 0; _i898 < _size894; ++_i898) + uint32_t _size918; + ::apache::thrift::protocol::TType _ktype919; + ::apache::thrift::protocol::TType _vtype920; + xfer += iprot->readMapBegin(_ktype919, _vtype920, _size918); + uint32_t _i922; + for (_i922 = 0; _i922 < _size918; ++_i922) { - int64_t _key899; - xfer += iprot->readI64(_key899); - std::string& _val900 = this->metadata[_key899]; - xfer += iprot->readBinary(_val900); + int64_t _key923; + xfer += iprot->readI64(_key923); + std::string& _val924 = this->metadata[_key923]; + xfer += iprot->readBinary(_val924); } xfer += iprot->readMapEnd(); } @@ -22845,11 +23438,11 @@ uint32_t GetFileMetadataResult::write(::apache::thrift::protocol::TProtocol* opr xfer += oprot->writeFieldBegin("metadata", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_I64, ::apache::thrift::protocol::T_STRING, static_cast(this->metadata.size())); - std::map ::const_iterator _iter901; - for (_iter901 = this->metadata.begin(); _iter901 != this->metadata.end(); ++_iter901) + std::map ::const_iterator _iter925; + for (_iter925 = this->metadata.begin(); _iter925 != this->metadata.end(); ++_iter925) { - xfer += oprot->writeI64(_iter901->first); - xfer += oprot->writeBinary(_iter901->second); + xfer += oprot->writeI64(_iter925->first); + xfer += oprot->writeBinary(_iter925->second); } xfer += oprot->writeMapEnd(); } @@ -22870,13 +23463,13 @@ void swap(GetFileMetadataResult &a, GetFileMetadataResult &b) { swap(a.isSupported, b.isSupported); } -GetFileMetadataResult::GetFileMetadataResult(const GetFileMetadataResult& other902) { - metadata = other902.metadata; - isSupported = other902.isSupported; +GetFileMetadataResult::GetFileMetadataResult(const GetFileMetadataResult& other926) { + metadata = other926.metadata; + isSupported = other926.isSupported; } -GetFileMetadataResult& GetFileMetadataResult::operator=(const GetFileMetadataResult& other903) { - metadata = other903.metadata; - isSupported = other903.isSupported; +GetFileMetadataResult& GetFileMetadataResult::operator=(const GetFileMetadataResult& other927) { + metadata = other927.metadata; + isSupported = other927.isSupported; return *this; } void GetFileMetadataResult::printTo(std::ostream& out) const { @@ -22922,14 +23515,14 @@ uint32_t GetFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size904; - ::apache::thrift::protocol::TType _etype907; - xfer += iprot->readListBegin(_etype907, _size904); - this->fileIds.resize(_size904); - uint32_t _i908; - for (_i908 = 0; _i908 < _size904; ++_i908) + uint32_t _size928; + ::apache::thrift::protocol::TType _etype931; + xfer += iprot->readListBegin(_etype931, _size928); + this->fileIds.resize(_size928); + uint32_t _i932; + for (_i932 = 0; _i932 < _size928; ++_i932) { - xfer += iprot->readI64(this->fileIds[_i908]); + xfer += iprot->readI64(this->fileIds[_i932]); } xfer += iprot->readListEnd(); } @@ -22960,10 +23553,10 @@ uint32_t GetFileMetadataRequest::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldBegin("fileIds", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->fileIds.size())); - std::vector ::const_iterator _iter909; - for (_iter909 = this->fileIds.begin(); _iter909 != this->fileIds.end(); ++_iter909) + std::vector ::const_iterator _iter933; + for (_iter933 = this->fileIds.begin(); _iter933 != this->fileIds.end(); ++_iter933) { - xfer += oprot->writeI64((*_iter909)); + xfer += oprot->writeI64((*_iter933)); } xfer += oprot->writeListEnd(); } @@ -22979,11 +23572,11 @@ void swap(GetFileMetadataRequest &a, GetFileMetadataRequest &b) { swap(a.fileIds, b.fileIds); } -GetFileMetadataRequest::GetFileMetadataRequest(const GetFileMetadataRequest& other910) { - fileIds = other910.fileIds; +GetFileMetadataRequest::GetFileMetadataRequest(const GetFileMetadataRequest& other934) { + fileIds = other934.fileIds; } -GetFileMetadataRequest& GetFileMetadataRequest::operator=(const GetFileMetadataRequest& other911) { - fileIds = other911.fileIds; +GetFileMetadataRequest& GetFileMetadataRequest::operator=(const GetFileMetadataRequest& other935) { + fileIds = other935.fileIds; return *this; } void GetFileMetadataRequest::printTo(std::ostream& out) const { @@ -23042,11 +23635,11 @@ void swap(PutFileMetadataResult &a, PutFileMetadataResult &b) { (void) b; } -PutFileMetadataResult::PutFileMetadataResult(const PutFileMetadataResult& other912) { - (void) other912; +PutFileMetadataResult::PutFileMetadataResult(const PutFileMetadataResult& other936) { + (void) other936; } -PutFileMetadataResult& PutFileMetadataResult::operator=(const PutFileMetadataResult& other913) { - (void) other913; +PutFileMetadataResult& PutFileMetadataResult::operator=(const PutFileMetadataResult& other937) { + (void) other937; return *this; } void PutFileMetadataResult::printTo(std::ostream& out) const { @@ -23100,14 +23693,14 @@ uint32_t PutFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size914; - ::apache::thrift::protocol::TType _etype917; - xfer += iprot->readListBegin(_etype917, _size914); - this->fileIds.resize(_size914); - uint32_t _i918; - for (_i918 = 0; _i918 < _size914; ++_i918) + uint32_t _size938; + ::apache::thrift::protocol::TType _etype941; + xfer += iprot->readListBegin(_etype941, _size938); + this->fileIds.resize(_size938); + uint32_t _i942; + for (_i942 = 0; _i942 < _size938; ++_i942) { - xfer += iprot->readI64(this->fileIds[_i918]); + xfer += iprot->readI64(this->fileIds[_i942]); } xfer += iprot->readListEnd(); } @@ -23120,14 +23713,14 @@ uint32_t PutFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->metadata.clear(); - uint32_t _size919; - ::apache::thrift::protocol::TType _etype922; - xfer += iprot->readListBegin(_etype922, _size919); - this->metadata.resize(_size919); - uint32_t _i923; - for (_i923 = 0; _i923 < _size919; ++_i923) + uint32_t _size943; + ::apache::thrift::protocol::TType _etype946; + xfer += iprot->readListBegin(_etype946, _size943); + this->metadata.resize(_size943); + uint32_t _i947; + for (_i947 = 0; _i947 < _size943; ++_i947) { - xfer += iprot->readBinary(this->metadata[_i923]); + xfer += iprot->readBinary(this->metadata[_i947]); } xfer += iprot->readListEnd(); } @@ -23138,9 +23731,9 @@ uint32_t PutFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast924; - xfer += iprot->readI32(ecast924); - this->type = (FileMetadataExprType::type)ecast924; + int32_t ecast948; + xfer += iprot->readI32(ecast948); + this->type = (FileMetadataExprType::type)ecast948; this->__isset.type = true; } else { xfer += iprot->skip(ftype); @@ -23170,10 +23763,10 @@ uint32_t PutFileMetadataRequest::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldBegin("fileIds", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->fileIds.size())); - std::vector ::const_iterator _iter925; - for (_iter925 = this->fileIds.begin(); _iter925 != this->fileIds.end(); ++_iter925) + std::vector ::const_iterator _iter949; + for (_iter949 = this->fileIds.begin(); _iter949 != this->fileIds.end(); ++_iter949) { - xfer += oprot->writeI64((*_iter925)); + xfer += oprot->writeI64((*_iter949)); } xfer += oprot->writeListEnd(); } @@ -23182,10 +23775,10 @@ uint32_t PutFileMetadataRequest::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldBegin("metadata", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->metadata.size())); - std::vector ::const_iterator _iter926; - for (_iter926 = this->metadata.begin(); _iter926 != this->metadata.end(); ++_iter926) + std::vector ::const_iterator _iter950; + for (_iter950 = this->metadata.begin(); _iter950 != this->metadata.end(); ++_iter950) { - xfer += oprot->writeBinary((*_iter926)); + xfer += oprot->writeBinary((*_iter950)); } xfer += oprot->writeListEnd(); } @@ -23209,17 +23802,17 @@ void swap(PutFileMetadataRequest &a, PutFileMetadataRequest &b) { swap(a.__isset, b.__isset); } -PutFileMetadataRequest::PutFileMetadataRequest(const PutFileMetadataRequest& other927) { - fileIds = other927.fileIds; - metadata = other927.metadata; - type = other927.type; - __isset = other927.__isset; -} -PutFileMetadataRequest& PutFileMetadataRequest::operator=(const PutFileMetadataRequest& other928) { - fileIds = other928.fileIds; - metadata = other928.metadata; - type = other928.type; - __isset = other928.__isset; +PutFileMetadataRequest::PutFileMetadataRequest(const PutFileMetadataRequest& other951) { + fileIds = other951.fileIds; + metadata = other951.metadata; + type = other951.type; + __isset = other951.__isset; +} +PutFileMetadataRequest& PutFileMetadataRequest::operator=(const PutFileMetadataRequest& other952) { + fileIds = other952.fileIds; + metadata = other952.metadata; + type = other952.type; + __isset = other952.__isset; return *this; } void PutFileMetadataRequest::printTo(std::ostream& out) const { @@ -23280,11 +23873,11 @@ void swap(ClearFileMetadataResult &a, ClearFileMetadataResult &b) { (void) b; } -ClearFileMetadataResult::ClearFileMetadataResult(const ClearFileMetadataResult& other929) { - (void) other929; +ClearFileMetadataResult::ClearFileMetadataResult(const ClearFileMetadataResult& other953) { + (void) other953; } -ClearFileMetadataResult& ClearFileMetadataResult::operator=(const ClearFileMetadataResult& other930) { - (void) other930; +ClearFileMetadataResult& ClearFileMetadataResult::operator=(const ClearFileMetadataResult& other954) { + (void) other954; return *this; } void ClearFileMetadataResult::printTo(std::ostream& out) const { @@ -23328,14 +23921,14 @@ uint32_t ClearFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* i if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size931; - ::apache::thrift::protocol::TType _etype934; - xfer += iprot->readListBegin(_etype934, _size931); - this->fileIds.resize(_size931); - uint32_t _i935; - for (_i935 = 0; _i935 < _size931; ++_i935) + uint32_t _size955; + ::apache::thrift::protocol::TType _etype958; + xfer += iprot->readListBegin(_etype958, _size955); + this->fileIds.resize(_size955); + uint32_t _i959; + for (_i959 = 0; _i959 < _size955; ++_i959) { - xfer += iprot->readI64(this->fileIds[_i935]); + xfer += iprot->readI64(this->fileIds[_i959]); } xfer += iprot->readListEnd(); } @@ -23366,10 +23959,10 @@ uint32_t ClearFileMetadataRequest::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldBegin("fileIds", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->fileIds.size())); - std::vector ::const_iterator _iter936; - for (_iter936 = this->fileIds.begin(); _iter936 != this->fileIds.end(); ++_iter936) + std::vector ::const_iterator _iter960; + for (_iter960 = this->fileIds.begin(); _iter960 != this->fileIds.end(); ++_iter960) { - xfer += oprot->writeI64((*_iter936)); + xfer += oprot->writeI64((*_iter960)); } xfer += oprot->writeListEnd(); } @@ -23385,11 +23978,11 @@ void swap(ClearFileMetadataRequest &a, ClearFileMetadataRequest &b) { swap(a.fileIds, b.fileIds); } -ClearFileMetadataRequest::ClearFileMetadataRequest(const ClearFileMetadataRequest& other937) { - fileIds = other937.fileIds; +ClearFileMetadataRequest::ClearFileMetadataRequest(const ClearFileMetadataRequest& other961) { + fileIds = other961.fileIds; } -ClearFileMetadataRequest& ClearFileMetadataRequest::operator=(const ClearFileMetadataRequest& other938) { - fileIds = other938.fileIds; +ClearFileMetadataRequest& ClearFileMetadataRequest::operator=(const ClearFileMetadataRequest& other962) { + fileIds = other962.fileIds; return *this; } void ClearFileMetadataRequest::printTo(std::ostream& out) const { @@ -23471,11 +24064,11 @@ void swap(CacheFileMetadataResult &a, CacheFileMetadataResult &b) { swap(a.isSupported, b.isSupported); } -CacheFileMetadataResult::CacheFileMetadataResult(const CacheFileMetadataResult& other939) { - isSupported = other939.isSupported; +CacheFileMetadataResult::CacheFileMetadataResult(const CacheFileMetadataResult& other963) { + isSupported = other963.isSupported; } -CacheFileMetadataResult& CacheFileMetadataResult::operator=(const CacheFileMetadataResult& other940) { - isSupported = other940.isSupported; +CacheFileMetadataResult& CacheFileMetadataResult::operator=(const CacheFileMetadataResult& other964) { + isSupported = other964.isSupported; return *this; } void CacheFileMetadataResult::printTo(std::ostream& out) const { @@ -23616,19 +24209,19 @@ void swap(CacheFileMetadataRequest &a, CacheFileMetadataRequest &b) { swap(a.__isset, b.__isset); } -CacheFileMetadataRequest::CacheFileMetadataRequest(const CacheFileMetadataRequest& other941) { - dbName = other941.dbName; - tblName = other941.tblName; - partName = other941.partName; - isAllParts = other941.isAllParts; - __isset = other941.__isset; +CacheFileMetadataRequest::CacheFileMetadataRequest(const CacheFileMetadataRequest& other965) { + dbName = other965.dbName; + tblName = other965.tblName; + partName = other965.partName; + isAllParts = other965.isAllParts; + __isset = other965.__isset; } -CacheFileMetadataRequest& CacheFileMetadataRequest::operator=(const CacheFileMetadataRequest& other942) { - dbName = other942.dbName; - tblName = other942.tblName; - partName = other942.partName; - isAllParts = other942.isAllParts; - __isset = other942.__isset; +CacheFileMetadataRequest& CacheFileMetadataRequest::operator=(const CacheFileMetadataRequest& other966) { + dbName = other966.dbName; + tblName = other966.tblName; + partName = other966.partName; + isAllParts = other966.isAllParts; + __isset = other966.__isset; return *this; } void CacheFileMetadataRequest::printTo(std::ostream& out) const { @@ -23676,14 +24269,14 @@ uint32_t GetAllFunctionsResponse::read(::apache::thrift::protocol::TProtocol* ip if (ftype == ::apache::thrift::protocol::T_LIST) { { this->functions.clear(); - uint32_t _size943; - ::apache::thrift::protocol::TType _etype946; - xfer += iprot->readListBegin(_etype946, _size943); - this->functions.resize(_size943); - uint32_t _i947; - for (_i947 = 0; _i947 < _size943; ++_i947) + uint32_t _size967; + ::apache::thrift::protocol::TType _etype970; + xfer += iprot->readListBegin(_etype970, _size967); + this->functions.resize(_size967); + uint32_t _i971; + for (_i971 = 0; _i971 < _size967; ++_i971) { - xfer += this->functions[_i947].read(iprot); + xfer += this->functions[_i971].read(iprot); } xfer += iprot->readListEnd(); } @@ -23713,10 +24306,10 @@ uint32_t GetAllFunctionsResponse::write(::apache::thrift::protocol::TProtocol* o xfer += oprot->writeFieldBegin("functions", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->functions.size())); - std::vector ::const_iterator _iter948; - for (_iter948 = this->functions.begin(); _iter948 != this->functions.end(); ++_iter948) + std::vector ::const_iterator _iter972; + for (_iter972 = this->functions.begin(); _iter972 != this->functions.end(); ++_iter972) { - xfer += (*_iter948).write(oprot); + xfer += (*_iter972).write(oprot); } xfer += oprot->writeListEnd(); } @@ -23733,13 +24326,13 @@ void swap(GetAllFunctionsResponse &a, GetAllFunctionsResponse &b) { swap(a.__isset, b.__isset); } -GetAllFunctionsResponse::GetAllFunctionsResponse(const GetAllFunctionsResponse& other949) { - functions = other949.functions; - __isset = other949.__isset; +GetAllFunctionsResponse::GetAllFunctionsResponse(const GetAllFunctionsResponse& other973) { + functions = other973.functions; + __isset = other973.__isset; } -GetAllFunctionsResponse& GetAllFunctionsResponse::operator=(const GetAllFunctionsResponse& other950) { - functions = other950.functions; - __isset = other950.__isset; +GetAllFunctionsResponse& GetAllFunctionsResponse::operator=(const GetAllFunctionsResponse& other974) { + functions = other974.functions; + __isset = other974.__isset; return *this; } void GetAllFunctionsResponse::printTo(std::ostream& out) const { @@ -23784,16 +24377,16 @@ uint32_t ClientCapabilities::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->values.clear(); - uint32_t _size951; - ::apache::thrift::protocol::TType _etype954; - xfer += iprot->readListBegin(_etype954, _size951); - this->values.resize(_size951); - uint32_t _i955; - for (_i955 = 0; _i955 < _size951; ++_i955) + uint32_t _size975; + ::apache::thrift::protocol::TType _etype978; + xfer += iprot->readListBegin(_etype978, _size975); + this->values.resize(_size975); + uint32_t _i979; + for (_i979 = 0; _i979 < _size975; ++_i979) { - int32_t ecast956; - xfer += iprot->readI32(ecast956); - this->values[_i955] = (ClientCapability::type)ecast956; + int32_t ecast980; + xfer += iprot->readI32(ecast980); + this->values[_i979] = (ClientCapability::type)ecast980; } xfer += iprot->readListEnd(); } @@ -23824,10 +24417,10 @@ uint32_t ClientCapabilities::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I32, static_cast(this->values.size())); - std::vector ::const_iterator _iter957; - for (_iter957 = this->values.begin(); _iter957 != this->values.end(); ++_iter957) + std::vector ::const_iterator _iter981; + for (_iter981 = this->values.begin(); _iter981 != this->values.end(); ++_iter981) { - xfer += oprot->writeI32((int32_t)(*_iter957)); + xfer += oprot->writeI32((int32_t)(*_iter981)); } xfer += oprot->writeListEnd(); } @@ -23843,11 +24436,11 @@ void swap(ClientCapabilities &a, ClientCapabilities &b) { swap(a.values, b.values); } -ClientCapabilities::ClientCapabilities(const ClientCapabilities& other958) { - values = other958.values; +ClientCapabilities::ClientCapabilities(const ClientCapabilities& other982) { + values = other982.values; } -ClientCapabilities& ClientCapabilities::operator=(const ClientCapabilities& other959) { - values = other959.values; +ClientCapabilities& ClientCapabilities::operator=(const ClientCapabilities& other983) { + values = other983.values; return *this; } void ClientCapabilities::printTo(std::ostream& out) const { @@ -23988,19 +24581,19 @@ void swap(GetTableRequest &a, GetTableRequest &b) { swap(a.__isset, b.__isset); } -GetTableRequest::GetTableRequest(const GetTableRequest& other960) { - dbName = other960.dbName; - tblName = other960.tblName; - capabilities = other960.capabilities; - catName = other960.catName; - __isset = other960.__isset; +GetTableRequest::GetTableRequest(const GetTableRequest& other984) { + dbName = other984.dbName; + tblName = other984.tblName; + capabilities = other984.capabilities; + catName = other984.catName; + __isset = other984.__isset; } -GetTableRequest& GetTableRequest::operator=(const GetTableRequest& other961) { - dbName = other961.dbName; - tblName = other961.tblName; - capabilities = other961.capabilities; - catName = other961.catName; - __isset = other961.__isset; +GetTableRequest& GetTableRequest::operator=(const GetTableRequest& other985) { + dbName = other985.dbName; + tblName = other985.tblName; + capabilities = other985.capabilities; + catName = other985.catName; + __isset = other985.__isset; return *this; } void GetTableRequest::printTo(std::ostream& out) const { @@ -24085,11 +24678,11 @@ void swap(GetTableResult &a, GetTableResult &b) { swap(a.table, b.table); } -GetTableResult::GetTableResult(const GetTableResult& other962) { - table = other962.table; +GetTableResult::GetTableResult(const GetTableResult& other986) { + table = other986.table; } -GetTableResult& GetTableResult::operator=(const GetTableResult& other963) { - table = other963.table; +GetTableResult& GetTableResult::operator=(const GetTableResult& other987) { + table = other987.table; return *this; } void GetTableResult::printTo(std::ostream& out) const { @@ -24157,14 +24750,14 @@ uint32_t GetTablesRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tblNames.clear(); - uint32_t _size964; - ::apache::thrift::protocol::TType _etype967; - xfer += iprot->readListBegin(_etype967, _size964); - this->tblNames.resize(_size964); - uint32_t _i968; - for (_i968 = 0; _i968 < _size964; ++_i968) + uint32_t _size988; + ::apache::thrift::protocol::TType _etype991; + xfer += iprot->readListBegin(_etype991, _size988); + this->tblNames.resize(_size988); + uint32_t _i992; + for (_i992 = 0; _i992 < _size988; ++_i992) { - xfer += iprot->readString(this->tblNames[_i968]); + xfer += iprot->readString(this->tblNames[_i992]); } xfer += iprot->readListEnd(); } @@ -24216,10 +24809,10 @@ uint32_t GetTablesRequest::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldBegin("tblNames", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->tblNames.size())); - std::vector ::const_iterator _iter969; - for (_iter969 = this->tblNames.begin(); _iter969 != this->tblNames.end(); ++_iter969) + std::vector ::const_iterator _iter993; + for (_iter993 = this->tblNames.begin(); _iter993 != this->tblNames.end(); ++_iter993) { - xfer += oprot->writeString((*_iter969)); + xfer += oprot->writeString((*_iter993)); } xfer += oprot->writeListEnd(); } @@ -24249,19 +24842,19 @@ void swap(GetTablesRequest &a, GetTablesRequest &b) { swap(a.__isset, b.__isset); } -GetTablesRequest::GetTablesRequest(const GetTablesRequest& other970) { - dbName = other970.dbName; - tblNames = other970.tblNames; - capabilities = other970.capabilities; - catName = other970.catName; - __isset = other970.__isset; +GetTablesRequest::GetTablesRequest(const GetTablesRequest& other994) { + dbName = other994.dbName; + tblNames = other994.tblNames; + capabilities = other994.capabilities; + catName = other994.catName; + __isset = other994.__isset; } -GetTablesRequest& GetTablesRequest::operator=(const GetTablesRequest& other971) { - dbName = other971.dbName; - tblNames = other971.tblNames; - capabilities = other971.capabilities; - catName = other971.catName; - __isset = other971.__isset; +GetTablesRequest& GetTablesRequest::operator=(const GetTablesRequest& other995) { + dbName = other995.dbName; + tblNames = other995.tblNames; + capabilities = other995.capabilities; + catName = other995.catName; + __isset = other995.__isset; return *this; } void GetTablesRequest::printTo(std::ostream& out) const { @@ -24309,14 +24902,14 @@ uint32_t GetTablesResult::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tables.clear(); - uint32_t _size972; - ::apache::thrift::protocol::TType _etype975; - xfer += iprot->readListBegin(_etype975, _size972); - this->tables.resize(_size972); - uint32_t _i976; - for (_i976 = 0; _i976 < _size972; ++_i976) + uint32_t _size996; + ::apache::thrift::protocol::TType _etype999; + xfer += iprot->readListBegin(_etype999, _size996); + this->tables.resize(_size996); + uint32_t _i1000; + for (_i1000 = 0; _i1000 < _size996; ++_i1000) { - xfer += this->tables[_i976].read(iprot); + xfer += this->tables[_i1000].read(iprot); } xfer += iprot->readListEnd(); } @@ -24347,10 +24940,10 @@ uint32_t GetTablesResult::write(::apache::thrift::protocol::TProtocol* oprot) co xfer += oprot->writeFieldBegin("tables", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->tables.size())); - std::vector
::const_iterator _iter977; - for (_iter977 = this->tables.begin(); _iter977 != this->tables.end(); ++_iter977) + std::vector
::const_iterator _iter1001; + for (_iter1001 = this->tables.begin(); _iter1001 != this->tables.end(); ++_iter1001) { - xfer += (*_iter977).write(oprot); + xfer += (*_iter1001).write(oprot); } xfer += oprot->writeListEnd(); } @@ -24366,11 +24959,11 @@ void swap(GetTablesResult &a, GetTablesResult &b) { swap(a.tables, b.tables); } -GetTablesResult::GetTablesResult(const GetTablesResult& other978) { - tables = other978.tables; +GetTablesResult::GetTablesResult(const GetTablesResult& other1002) { + tables = other1002.tables; } -GetTablesResult& GetTablesResult::operator=(const GetTablesResult& other979) { - tables = other979.tables; +GetTablesResult& GetTablesResult::operator=(const GetTablesResult& other1003) { + tables = other1003.tables; return *this; } void GetTablesResult::printTo(std::ostream& out) const { @@ -24472,13 +25065,13 @@ void swap(CmRecycleRequest &a, CmRecycleRequest &b) { swap(a.purge, b.purge); } -CmRecycleRequest::CmRecycleRequest(const CmRecycleRequest& other980) { - dataPath = other980.dataPath; - purge = other980.purge; +CmRecycleRequest::CmRecycleRequest(const CmRecycleRequest& other1004) { + dataPath = other1004.dataPath; + purge = other1004.purge; } -CmRecycleRequest& CmRecycleRequest::operator=(const CmRecycleRequest& other981) { - dataPath = other981.dataPath; - purge = other981.purge; +CmRecycleRequest& CmRecycleRequest::operator=(const CmRecycleRequest& other1005) { + dataPath = other1005.dataPath; + purge = other1005.purge; return *this; } void CmRecycleRequest::printTo(std::ostream& out) const { @@ -24538,11 +25131,11 @@ void swap(CmRecycleResponse &a, CmRecycleResponse &b) { (void) b; } -CmRecycleResponse::CmRecycleResponse(const CmRecycleResponse& other982) { - (void) other982; +CmRecycleResponse::CmRecycleResponse(const CmRecycleResponse& other1006) { + (void) other1006; } -CmRecycleResponse& CmRecycleResponse::operator=(const CmRecycleResponse& other983) { - (void) other983; +CmRecycleResponse& CmRecycleResponse::operator=(const CmRecycleResponse& other1007) { + (void) other1007; return *this; } void CmRecycleResponse::printTo(std::ostream& out) const { @@ -24702,21 +25295,21 @@ void swap(TableMeta &a, TableMeta &b) { swap(a.__isset, b.__isset); } -TableMeta::TableMeta(const TableMeta& other984) { - dbName = other984.dbName; - tableName = other984.tableName; - tableType = other984.tableType; - comments = other984.comments; - catName = other984.catName; - __isset = other984.__isset; +TableMeta::TableMeta(const TableMeta& other1008) { + dbName = other1008.dbName; + tableName = other1008.tableName; + tableType = other1008.tableType; + comments = other1008.comments; + catName = other1008.catName; + __isset = other1008.__isset; } -TableMeta& TableMeta::operator=(const TableMeta& other985) { - dbName = other985.dbName; - tableName = other985.tableName; - tableType = other985.tableType; - comments = other985.comments; - catName = other985.catName; - __isset = other985.__isset; +TableMeta& TableMeta::operator=(const TableMeta& other1009) { + dbName = other1009.dbName; + tableName = other1009.tableName; + tableType = other1009.tableType; + comments = other1009.comments; + catName = other1009.catName; + __isset = other1009.__isset; return *this; } void TableMeta::printTo(std::ostream& out) const { @@ -24780,15 +25373,15 @@ uint32_t Materialization::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_SET) { { this->tablesUsed.clear(); - uint32_t _size986; - ::apache::thrift::protocol::TType _etype989; - xfer += iprot->readSetBegin(_etype989, _size986); - uint32_t _i990; - for (_i990 = 0; _i990 < _size986; ++_i990) + uint32_t _size1010; + ::apache::thrift::protocol::TType _etype1013; + xfer += iprot->readSetBegin(_etype1013, _size1010); + uint32_t _i1014; + for (_i1014 = 0; _i1014 < _size1010; ++_i1014) { - std::string _elem991; - xfer += iprot->readString(_elem991); - this->tablesUsed.insert(_elem991); + std::string _elem1015; + xfer += iprot->readString(_elem1015); + this->tablesUsed.insert(_elem1015); } xfer += iprot->readSetEnd(); } @@ -24843,10 +25436,10 @@ uint32_t Materialization::write(::apache::thrift::protocol::TProtocol* oprot) co xfer += oprot->writeFieldBegin("tablesUsed", ::apache::thrift::protocol::T_SET, 1); { xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_STRING, static_cast(this->tablesUsed.size())); - std::set ::const_iterator _iter992; - for (_iter992 = this->tablesUsed.begin(); _iter992 != this->tablesUsed.end(); ++_iter992) + std::set ::const_iterator _iter1016; + for (_iter1016 = this->tablesUsed.begin(); _iter1016 != this->tablesUsed.end(); ++_iter1016) { - xfer += oprot->writeString((*_iter992)); + xfer += oprot->writeString((*_iter1016)); } xfer += oprot->writeSetEnd(); } @@ -24881,19 +25474,19 @@ void swap(Materialization &a, Materialization &b) { swap(a.__isset, b.__isset); } -Materialization::Materialization(const Materialization& other993) { - tablesUsed = other993.tablesUsed; - validTxnList = other993.validTxnList; - invalidationTime = other993.invalidationTime; - sourceTablesUpdateDeleteModified = other993.sourceTablesUpdateDeleteModified; - __isset = other993.__isset; +Materialization::Materialization(const Materialization& other1017) { + tablesUsed = other1017.tablesUsed; + validTxnList = other1017.validTxnList; + invalidationTime = other1017.invalidationTime; + sourceTablesUpdateDeleteModified = other1017.sourceTablesUpdateDeleteModified; + __isset = other1017.__isset; } -Materialization& Materialization::operator=(const Materialization& other994) { - tablesUsed = other994.tablesUsed; - validTxnList = other994.validTxnList; - invalidationTime = other994.invalidationTime; - sourceTablesUpdateDeleteModified = other994.sourceTablesUpdateDeleteModified; - __isset = other994.__isset; +Materialization& Materialization::operator=(const Materialization& other1018) { + tablesUsed = other1018.tablesUsed; + validTxnList = other1018.validTxnList; + invalidationTime = other1018.invalidationTime; + sourceTablesUpdateDeleteModified = other1018.sourceTablesUpdateDeleteModified; + __isset = other1018.__isset; return *this; } void Materialization::printTo(std::ostream& out) const { @@ -24962,9 +25555,9 @@ uint32_t WMResourcePlan::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast995; - xfer += iprot->readI32(ecast995); - this->status = (WMResourcePlanStatus::type)ecast995; + int32_t ecast1019; + xfer += iprot->readI32(ecast1019); + this->status = (WMResourcePlanStatus::type)ecast1019; this->__isset.status = true; } else { xfer += iprot->skip(ftype); @@ -25038,19 +25631,19 @@ void swap(WMResourcePlan &a, WMResourcePlan &b) { swap(a.__isset, b.__isset); } -WMResourcePlan::WMResourcePlan(const WMResourcePlan& other996) { - name = other996.name; - status = other996.status; - queryParallelism = other996.queryParallelism; - defaultPoolPath = other996.defaultPoolPath; - __isset = other996.__isset; +WMResourcePlan::WMResourcePlan(const WMResourcePlan& other1020) { + name = other1020.name; + status = other1020.status; + queryParallelism = other1020.queryParallelism; + defaultPoolPath = other1020.defaultPoolPath; + __isset = other1020.__isset; } -WMResourcePlan& WMResourcePlan::operator=(const WMResourcePlan& other997) { - name = other997.name; - status = other997.status; - queryParallelism = other997.queryParallelism; - defaultPoolPath = other997.defaultPoolPath; - __isset = other997.__isset; +WMResourcePlan& WMResourcePlan::operator=(const WMResourcePlan& other1021) { + name = other1021.name; + status = other1021.status; + queryParallelism = other1021.queryParallelism; + defaultPoolPath = other1021.defaultPoolPath; + __isset = other1021.__isset; return *this; } void WMResourcePlan::printTo(std::ostream& out) const { @@ -25129,9 +25722,9 @@ uint32_t WMNullableResourcePlan::read(::apache::thrift::protocol::TProtocol* ipr break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast998; - xfer += iprot->readI32(ecast998); - this->status = (WMResourcePlanStatus::type)ecast998; + int32_t ecast1022; + xfer += iprot->readI32(ecast1022); + this->status = (WMResourcePlanStatus::type)ecast1022; this->__isset.status = true; } else { xfer += iprot->skip(ftype); @@ -25232,23 +25825,23 @@ void swap(WMNullableResourcePlan &a, WMNullableResourcePlan &b) { swap(a.__isset, b.__isset); } -WMNullableResourcePlan::WMNullableResourcePlan(const WMNullableResourcePlan& other999) { - name = other999.name; - status = other999.status; - queryParallelism = other999.queryParallelism; - isSetQueryParallelism = other999.isSetQueryParallelism; - defaultPoolPath = other999.defaultPoolPath; - isSetDefaultPoolPath = other999.isSetDefaultPoolPath; - __isset = other999.__isset; -} -WMNullableResourcePlan& WMNullableResourcePlan::operator=(const WMNullableResourcePlan& other1000) { - name = other1000.name; - status = other1000.status; - queryParallelism = other1000.queryParallelism; - isSetQueryParallelism = other1000.isSetQueryParallelism; - defaultPoolPath = other1000.defaultPoolPath; - isSetDefaultPoolPath = other1000.isSetDefaultPoolPath; - __isset = other1000.__isset; +WMNullableResourcePlan::WMNullableResourcePlan(const WMNullableResourcePlan& other1023) { + name = other1023.name; + status = other1023.status; + queryParallelism = other1023.queryParallelism; + isSetQueryParallelism = other1023.isSetQueryParallelism; + defaultPoolPath = other1023.defaultPoolPath; + isSetDefaultPoolPath = other1023.isSetDefaultPoolPath; + __isset = other1023.__isset; +} +WMNullableResourcePlan& WMNullableResourcePlan::operator=(const WMNullableResourcePlan& other1024) { + name = other1024.name; + status = other1024.status; + queryParallelism = other1024.queryParallelism; + isSetQueryParallelism = other1024.isSetQueryParallelism; + defaultPoolPath = other1024.defaultPoolPath; + isSetDefaultPoolPath = other1024.isSetDefaultPoolPath; + __isset = other1024.__isset; return *this; } void WMNullableResourcePlan::printTo(std::ostream& out) const { @@ -25413,21 +26006,21 @@ void swap(WMPool &a, WMPool &b) { swap(a.__isset, b.__isset); } -WMPool::WMPool(const WMPool& other1001) { - resourcePlanName = other1001.resourcePlanName; - poolPath = other1001.poolPath; - allocFraction = other1001.allocFraction; - queryParallelism = other1001.queryParallelism; - schedulingPolicy = other1001.schedulingPolicy; - __isset = other1001.__isset; -} -WMPool& WMPool::operator=(const WMPool& other1002) { - resourcePlanName = other1002.resourcePlanName; - poolPath = other1002.poolPath; - allocFraction = other1002.allocFraction; - queryParallelism = other1002.queryParallelism; - schedulingPolicy = other1002.schedulingPolicy; - __isset = other1002.__isset; +WMPool::WMPool(const WMPool& other1025) { + resourcePlanName = other1025.resourcePlanName; + poolPath = other1025.poolPath; + allocFraction = other1025.allocFraction; + queryParallelism = other1025.queryParallelism; + schedulingPolicy = other1025.schedulingPolicy; + __isset = other1025.__isset; +} +WMPool& WMPool::operator=(const WMPool& other1026) { + resourcePlanName = other1026.resourcePlanName; + poolPath = other1026.poolPath; + allocFraction = other1026.allocFraction; + queryParallelism = other1026.queryParallelism; + schedulingPolicy = other1026.schedulingPolicy; + __isset = other1026.__isset; return *this; } void WMPool::printTo(std::ostream& out) const { @@ -25610,23 +26203,23 @@ void swap(WMNullablePool &a, WMNullablePool &b) { swap(a.__isset, b.__isset); } -WMNullablePool::WMNullablePool(const WMNullablePool& other1003) { - resourcePlanName = other1003.resourcePlanName; - poolPath = other1003.poolPath; - allocFraction = other1003.allocFraction; - queryParallelism = other1003.queryParallelism; - schedulingPolicy = other1003.schedulingPolicy; - isSetSchedulingPolicy = other1003.isSetSchedulingPolicy; - __isset = other1003.__isset; -} -WMNullablePool& WMNullablePool::operator=(const WMNullablePool& other1004) { - resourcePlanName = other1004.resourcePlanName; - poolPath = other1004.poolPath; - allocFraction = other1004.allocFraction; - queryParallelism = other1004.queryParallelism; - schedulingPolicy = other1004.schedulingPolicy; - isSetSchedulingPolicy = other1004.isSetSchedulingPolicy; - __isset = other1004.__isset; +WMNullablePool::WMNullablePool(const WMNullablePool& other1027) { + resourcePlanName = other1027.resourcePlanName; + poolPath = other1027.poolPath; + allocFraction = other1027.allocFraction; + queryParallelism = other1027.queryParallelism; + schedulingPolicy = other1027.schedulingPolicy; + isSetSchedulingPolicy = other1027.isSetSchedulingPolicy; + __isset = other1027.__isset; +} +WMNullablePool& WMNullablePool::operator=(const WMNullablePool& other1028) { + resourcePlanName = other1028.resourcePlanName; + poolPath = other1028.poolPath; + allocFraction = other1028.allocFraction; + queryParallelism = other1028.queryParallelism; + schedulingPolicy = other1028.schedulingPolicy; + isSetSchedulingPolicy = other1028.isSetSchedulingPolicy; + __isset = other1028.__isset; return *this; } void WMNullablePool::printTo(std::ostream& out) const { @@ -25791,21 +26384,21 @@ void swap(WMTrigger &a, WMTrigger &b) { swap(a.__isset, b.__isset); } -WMTrigger::WMTrigger(const WMTrigger& other1005) { - resourcePlanName = other1005.resourcePlanName; - triggerName = other1005.triggerName; - triggerExpression = other1005.triggerExpression; - actionExpression = other1005.actionExpression; - isInUnmanaged = other1005.isInUnmanaged; - __isset = other1005.__isset; -} -WMTrigger& WMTrigger::operator=(const WMTrigger& other1006) { - resourcePlanName = other1006.resourcePlanName; - triggerName = other1006.triggerName; - triggerExpression = other1006.triggerExpression; - actionExpression = other1006.actionExpression; - isInUnmanaged = other1006.isInUnmanaged; - __isset = other1006.__isset; +WMTrigger::WMTrigger(const WMTrigger& other1029) { + resourcePlanName = other1029.resourcePlanName; + triggerName = other1029.triggerName; + triggerExpression = other1029.triggerExpression; + actionExpression = other1029.actionExpression; + isInUnmanaged = other1029.isInUnmanaged; + __isset = other1029.__isset; +} +WMTrigger& WMTrigger::operator=(const WMTrigger& other1030) { + resourcePlanName = other1030.resourcePlanName; + triggerName = other1030.triggerName; + triggerExpression = other1030.triggerExpression; + actionExpression = other1030.actionExpression; + isInUnmanaged = other1030.isInUnmanaged; + __isset = other1030.__isset; return *this; } void WMTrigger::printTo(std::ostream& out) const { @@ -25970,21 +26563,21 @@ void swap(WMMapping &a, WMMapping &b) { swap(a.__isset, b.__isset); } -WMMapping::WMMapping(const WMMapping& other1007) { - resourcePlanName = other1007.resourcePlanName; - entityType = other1007.entityType; - entityName = other1007.entityName; - poolPath = other1007.poolPath; - ordering = other1007.ordering; - __isset = other1007.__isset; -} -WMMapping& WMMapping::operator=(const WMMapping& other1008) { - resourcePlanName = other1008.resourcePlanName; - entityType = other1008.entityType; - entityName = other1008.entityName; - poolPath = other1008.poolPath; - ordering = other1008.ordering; - __isset = other1008.__isset; +WMMapping::WMMapping(const WMMapping& other1031) { + resourcePlanName = other1031.resourcePlanName; + entityType = other1031.entityType; + entityName = other1031.entityName; + poolPath = other1031.poolPath; + ordering = other1031.ordering; + __isset = other1031.__isset; +} +WMMapping& WMMapping::operator=(const WMMapping& other1032) { + resourcePlanName = other1032.resourcePlanName; + entityType = other1032.entityType; + entityName = other1032.entityName; + poolPath = other1032.poolPath; + ordering = other1032.ordering; + __isset = other1032.__isset; return *this; } void WMMapping::printTo(std::ostream& out) const { @@ -26090,13 +26683,13 @@ void swap(WMPoolTrigger &a, WMPoolTrigger &b) { swap(a.trigger, b.trigger); } -WMPoolTrigger::WMPoolTrigger(const WMPoolTrigger& other1009) { - pool = other1009.pool; - trigger = other1009.trigger; +WMPoolTrigger::WMPoolTrigger(const WMPoolTrigger& other1033) { + pool = other1033.pool; + trigger = other1033.trigger; } -WMPoolTrigger& WMPoolTrigger::operator=(const WMPoolTrigger& other1010) { - pool = other1010.pool; - trigger = other1010.trigger; +WMPoolTrigger& WMPoolTrigger::operator=(const WMPoolTrigger& other1034) { + pool = other1034.pool; + trigger = other1034.trigger; return *this; } void WMPoolTrigger::printTo(std::ostream& out) const { @@ -26170,14 +26763,14 @@ uint32_t WMFullResourcePlan::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->pools.clear(); - uint32_t _size1011; - ::apache::thrift::protocol::TType _etype1014; - xfer += iprot->readListBegin(_etype1014, _size1011); - this->pools.resize(_size1011); - uint32_t _i1015; - for (_i1015 = 0; _i1015 < _size1011; ++_i1015) + uint32_t _size1035; + ::apache::thrift::protocol::TType _etype1038; + xfer += iprot->readListBegin(_etype1038, _size1035); + this->pools.resize(_size1035); + uint32_t _i1039; + for (_i1039 = 0; _i1039 < _size1035; ++_i1039) { - xfer += this->pools[_i1015].read(iprot); + xfer += this->pools[_i1039].read(iprot); } xfer += iprot->readListEnd(); } @@ -26190,14 +26783,14 @@ uint32_t WMFullResourcePlan::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->mappings.clear(); - uint32_t _size1016; - ::apache::thrift::protocol::TType _etype1019; - xfer += iprot->readListBegin(_etype1019, _size1016); - this->mappings.resize(_size1016); - uint32_t _i1020; - for (_i1020 = 0; _i1020 < _size1016; ++_i1020) + uint32_t _size1040; + ::apache::thrift::protocol::TType _etype1043; + xfer += iprot->readListBegin(_etype1043, _size1040); + this->mappings.resize(_size1040); + uint32_t _i1044; + for (_i1044 = 0; _i1044 < _size1040; ++_i1044) { - xfer += this->mappings[_i1020].read(iprot); + xfer += this->mappings[_i1044].read(iprot); } xfer += iprot->readListEnd(); } @@ -26210,14 +26803,14 @@ uint32_t WMFullResourcePlan::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->triggers.clear(); - uint32_t _size1021; - ::apache::thrift::protocol::TType _etype1024; - xfer += iprot->readListBegin(_etype1024, _size1021); - this->triggers.resize(_size1021); - uint32_t _i1025; - for (_i1025 = 0; _i1025 < _size1021; ++_i1025) + uint32_t _size1045; + ::apache::thrift::protocol::TType _etype1048; + xfer += iprot->readListBegin(_etype1048, _size1045); + this->triggers.resize(_size1045); + uint32_t _i1049; + for (_i1049 = 0; _i1049 < _size1045; ++_i1049) { - xfer += this->triggers[_i1025].read(iprot); + xfer += this->triggers[_i1049].read(iprot); } xfer += iprot->readListEnd(); } @@ -26230,14 +26823,14 @@ uint32_t WMFullResourcePlan::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->poolTriggers.clear(); - uint32_t _size1026; - ::apache::thrift::protocol::TType _etype1029; - xfer += iprot->readListBegin(_etype1029, _size1026); - this->poolTriggers.resize(_size1026); - uint32_t _i1030; - for (_i1030 = 0; _i1030 < _size1026; ++_i1030) + uint32_t _size1050; + ::apache::thrift::protocol::TType _etype1053; + xfer += iprot->readListBegin(_etype1053, _size1050); + this->poolTriggers.resize(_size1050); + uint32_t _i1054; + for (_i1054 = 0; _i1054 < _size1050; ++_i1054) { - xfer += this->poolTriggers[_i1030].read(iprot); + xfer += this->poolTriggers[_i1054].read(iprot); } xfer += iprot->readListEnd(); } @@ -26274,10 +26867,10 @@ uint32_t WMFullResourcePlan::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("pools", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->pools.size())); - std::vector ::const_iterator _iter1031; - for (_iter1031 = this->pools.begin(); _iter1031 != this->pools.end(); ++_iter1031) + std::vector ::const_iterator _iter1055; + for (_iter1055 = this->pools.begin(); _iter1055 != this->pools.end(); ++_iter1055) { - xfer += (*_iter1031).write(oprot); + xfer += (*_iter1055).write(oprot); } xfer += oprot->writeListEnd(); } @@ -26287,10 +26880,10 @@ uint32_t WMFullResourcePlan::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("mappings", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->mappings.size())); - std::vector ::const_iterator _iter1032; - for (_iter1032 = this->mappings.begin(); _iter1032 != this->mappings.end(); ++_iter1032) + std::vector ::const_iterator _iter1056; + for (_iter1056 = this->mappings.begin(); _iter1056 != this->mappings.end(); ++_iter1056) { - xfer += (*_iter1032).write(oprot); + xfer += (*_iter1056).write(oprot); } xfer += oprot->writeListEnd(); } @@ -26300,10 +26893,10 @@ uint32_t WMFullResourcePlan::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("triggers", ::apache::thrift::protocol::T_LIST, 4); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->triggers.size())); - std::vector ::const_iterator _iter1033; - for (_iter1033 = this->triggers.begin(); _iter1033 != this->triggers.end(); ++_iter1033) + std::vector ::const_iterator _iter1057; + for (_iter1057 = this->triggers.begin(); _iter1057 != this->triggers.end(); ++_iter1057) { - xfer += (*_iter1033).write(oprot); + xfer += (*_iter1057).write(oprot); } xfer += oprot->writeListEnd(); } @@ -26313,10 +26906,10 @@ uint32_t WMFullResourcePlan::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("poolTriggers", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->poolTriggers.size())); - std::vector ::const_iterator _iter1034; - for (_iter1034 = this->poolTriggers.begin(); _iter1034 != this->poolTriggers.end(); ++_iter1034) + std::vector ::const_iterator _iter1058; + for (_iter1058 = this->poolTriggers.begin(); _iter1058 != this->poolTriggers.end(); ++_iter1058) { - xfer += (*_iter1034).write(oprot); + xfer += (*_iter1058).write(oprot); } xfer += oprot->writeListEnd(); } @@ -26337,21 +26930,21 @@ void swap(WMFullResourcePlan &a, WMFullResourcePlan &b) { swap(a.__isset, b.__isset); } -WMFullResourcePlan::WMFullResourcePlan(const WMFullResourcePlan& other1035) { - plan = other1035.plan; - pools = other1035.pools; - mappings = other1035.mappings; - triggers = other1035.triggers; - poolTriggers = other1035.poolTriggers; - __isset = other1035.__isset; -} -WMFullResourcePlan& WMFullResourcePlan::operator=(const WMFullResourcePlan& other1036) { - plan = other1036.plan; - pools = other1036.pools; - mappings = other1036.mappings; - triggers = other1036.triggers; - poolTriggers = other1036.poolTriggers; - __isset = other1036.__isset; +WMFullResourcePlan::WMFullResourcePlan(const WMFullResourcePlan& other1059) { + plan = other1059.plan; + pools = other1059.pools; + mappings = other1059.mappings; + triggers = other1059.triggers; + poolTriggers = other1059.poolTriggers; + __isset = other1059.__isset; +} +WMFullResourcePlan& WMFullResourcePlan::operator=(const WMFullResourcePlan& other1060) { + plan = other1060.plan; + pools = other1060.pools; + mappings = other1060.mappings; + triggers = other1060.triggers; + poolTriggers = other1060.poolTriggers; + __isset = other1060.__isset; return *this; } void WMFullResourcePlan::printTo(std::ostream& out) const { @@ -26456,15 +27049,15 @@ void swap(WMCreateResourcePlanRequest &a, WMCreateResourcePlanRequest &b) { swap(a.__isset, b.__isset); } -WMCreateResourcePlanRequest::WMCreateResourcePlanRequest(const WMCreateResourcePlanRequest& other1037) { - resourcePlan = other1037.resourcePlan; - copyFrom = other1037.copyFrom; - __isset = other1037.__isset; +WMCreateResourcePlanRequest::WMCreateResourcePlanRequest(const WMCreateResourcePlanRequest& other1061) { + resourcePlan = other1061.resourcePlan; + copyFrom = other1061.copyFrom; + __isset = other1061.__isset; } -WMCreateResourcePlanRequest& WMCreateResourcePlanRequest::operator=(const WMCreateResourcePlanRequest& other1038) { - resourcePlan = other1038.resourcePlan; - copyFrom = other1038.copyFrom; - __isset = other1038.__isset; +WMCreateResourcePlanRequest& WMCreateResourcePlanRequest::operator=(const WMCreateResourcePlanRequest& other1062) { + resourcePlan = other1062.resourcePlan; + copyFrom = other1062.copyFrom; + __isset = other1062.__isset; return *this; } void WMCreateResourcePlanRequest::printTo(std::ostream& out) const { @@ -26524,11 +27117,11 @@ void swap(WMCreateResourcePlanResponse &a, WMCreateResourcePlanResponse &b) { (void) b; } -WMCreateResourcePlanResponse::WMCreateResourcePlanResponse(const WMCreateResourcePlanResponse& other1039) { - (void) other1039; +WMCreateResourcePlanResponse::WMCreateResourcePlanResponse(const WMCreateResourcePlanResponse& other1063) { + (void) other1063; } -WMCreateResourcePlanResponse& WMCreateResourcePlanResponse::operator=(const WMCreateResourcePlanResponse& other1040) { - (void) other1040; +WMCreateResourcePlanResponse& WMCreateResourcePlanResponse::operator=(const WMCreateResourcePlanResponse& other1064) { + (void) other1064; return *this; } void WMCreateResourcePlanResponse::printTo(std::ostream& out) const { @@ -26586,11 +27179,11 @@ void swap(WMGetActiveResourcePlanRequest &a, WMGetActiveResourcePlanRequest &b) (void) b; } -WMGetActiveResourcePlanRequest::WMGetActiveResourcePlanRequest(const WMGetActiveResourcePlanRequest& other1041) { - (void) other1041; +WMGetActiveResourcePlanRequest::WMGetActiveResourcePlanRequest(const WMGetActiveResourcePlanRequest& other1065) { + (void) other1065; } -WMGetActiveResourcePlanRequest& WMGetActiveResourcePlanRequest::operator=(const WMGetActiveResourcePlanRequest& other1042) { - (void) other1042; +WMGetActiveResourcePlanRequest& WMGetActiveResourcePlanRequest::operator=(const WMGetActiveResourcePlanRequest& other1066) { + (void) other1066; return *this; } void WMGetActiveResourcePlanRequest::printTo(std::ostream& out) const { @@ -26671,13 +27264,13 @@ void swap(WMGetActiveResourcePlanResponse &a, WMGetActiveResourcePlanResponse &b swap(a.__isset, b.__isset); } -WMGetActiveResourcePlanResponse::WMGetActiveResourcePlanResponse(const WMGetActiveResourcePlanResponse& other1043) { - resourcePlan = other1043.resourcePlan; - __isset = other1043.__isset; +WMGetActiveResourcePlanResponse::WMGetActiveResourcePlanResponse(const WMGetActiveResourcePlanResponse& other1067) { + resourcePlan = other1067.resourcePlan; + __isset = other1067.__isset; } -WMGetActiveResourcePlanResponse& WMGetActiveResourcePlanResponse::operator=(const WMGetActiveResourcePlanResponse& other1044) { - resourcePlan = other1044.resourcePlan; - __isset = other1044.__isset; +WMGetActiveResourcePlanResponse& WMGetActiveResourcePlanResponse::operator=(const WMGetActiveResourcePlanResponse& other1068) { + resourcePlan = other1068.resourcePlan; + __isset = other1068.__isset; return *this; } void WMGetActiveResourcePlanResponse::printTo(std::ostream& out) const { @@ -26759,13 +27352,13 @@ void swap(WMGetResourcePlanRequest &a, WMGetResourcePlanRequest &b) { swap(a.__isset, b.__isset); } -WMGetResourcePlanRequest::WMGetResourcePlanRequest(const WMGetResourcePlanRequest& other1045) { - resourcePlanName = other1045.resourcePlanName; - __isset = other1045.__isset; +WMGetResourcePlanRequest::WMGetResourcePlanRequest(const WMGetResourcePlanRequest& other1069) { + resourcePlanName = other1069.resourcePlanName; + __isset = other1069.__isset; } -WMGetResourcePlanRequest& WMGetResourcePlanRequest::operator=(const WMGetResourcePlanRequest& other1046) { - resourcePlanName = other1046.resourcePlanName; - __isset = other1046.__isset; +WMGetResourcePlanRequest& WMGetResourcePlanRequest::operator=(const WMGetResourcePlanRequest& other1070) { + resourcePlanName = other1070.resourcePlanName; + __isset = other1070.__isset; return *this; } void WMGetResourcePlanRequest::printTo(std::ostream& out) const { @@ -26847,13 +27440,13 @@ void swap(WMGetResourcePlanResponse &a, WMGetResourcePlanResponse &b) { swap(a.__isset, b.__isset); } -WMGetResourcePlanResponse::WMGetResourcePlanResponse(const WMGetResourcePlanResponse& other1047) { - resourcePlan = other1047.resourcePlan; - __isset = other1047.__isset; +WMGetResourcePlanResponse::WMGetResourcePlanResponse(const WMGetResourcePlanResponse& other1071) { + resourcePlan = other1071.resourcePlan; + __isset = other1071.__isset; } -WMGetResourcePlanResponse& WMGetResourcePlanResponse::operator=(const WMGetResourcePlanResponse& other1048) { - resourcePlan = other1048.resourcePlan; - __isset = other1048.__isset; +WMGetResourcePlanResponse& WMGetResourcePlanResponse::operator=(const WMGetResourcePlanResponse& other1072) { + resourcePlan = other1072.resourcePlan; + __isset = other1072.__isset; return *this; } void WMGetResourcePlanResponse::printTo(std::ostream& out) const { @@ -26912,11 +27505,11 @@ void swap(WMGetAllResourcePlanRequest &a, WMGetAllResourcePlanRequest &b) { (void) b; } -WMGetAllResourcePlanRequest::WMGetAllResourcePlanRequest(const WMGetAllResourcePlanRequest& other1049) { - (void) other1049; +WMGetAllResourcePlanRequest::WMGetAllResourcePlanRequest(const WMGetAllResourcePlanRequest& other1073) { + (void) other1073; } -WMGetAllResourcePlanRequest& WMGetAllResourcePlanRequest::operator=(const WMGetAllResourcePlanRequest& other1050) { - (void) other1050; +WMGetAllResourcePlanRequest& WMGetAllResourcePlanRequest::operator=(const WMGetAllResourcePlanRequest& other1074) { + (void) other1074; return *this; } void WMGetAllResourcePlanRequest::printTo(std::ostream& out) const { @@ -26960,14 +27553,14 @@ uint32_t WMGetAllResourcePlanResponse::read(::apache::thrift::protocol::TProtoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->resourcePlans.clear(); - uint32_t _size1051; - ::apache::thrift::protocol::TType _etype1054; - xfer += iprot->readListBegin(_etype1054, _size1051); - this->resourcePlans.resize(_size1051); - uint32_t _i1055; - for (_i1055 = 0; _i1055 < _size1051; ++_i1055) + uint32_t _size1075; + ::apache::thrift::protocol::TType _etype1078; + xfer += iprot->readListBegin(_etype1078, _size1075); + this->resourcePlans.resize(_size1075); + uint32_t _i1079; + for (_i1079 = 0; _i1079 < _size1075; ++_i1079) { - xfer += this->resourcePlans[_i1055].read(iprot); + xfer += this->resourcePlans[_i1079].read(iprot); } xfer += iprot->readListEnd(); } @@ -26997,10 +27590,10 @@ uint32_t WMGetAllResourcePlanResponse::write(::apache::thrift::protocol::TProtoc xfer += oprot->writeFieldBegin("resourcePlans", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->resourcePlans.size())); - std::vector ::const_iterator _iter1056; - for (_iter1056 = this->resourcePlans.begin(); _iter1056 != this->resourcePlans.end(); ++_iter1056) + std::vector ::const_iterator _iter1080; + for (_iter1080 = this->resourcePlans.begin(); _iter1080 != this->resourcePlans.end(); ++_iter1080) { - xfer += (*_iter1056).write(oprot); + xfer += (*_iter1080).write(oprot); } xfer += oprot->writeListEnd(); } @@ -27017,13 +27610,13 @@ void swap(WMGetAllResourcePlanResponse &a, WMGetAllResourcePlanResponse &b) { swap(a.__isset, b.__isset); } -WMGetAllResourcePlanResponse::WMGetAllResourcePlanResponse(const WMGetAllResourcePlanResponse& other1057) { - resourcePlans = other1057.resourcePlans; - __isset = other1057.__isset; +WMGetAllResourcePlanResponse::WMGetAllResourcePlanResponse(const WMGetAllResourcePlanResponse& other1081) { + resourcePlans = other1081.resourcePlans; + __isset = other1081.__isset; } -WMGetAllResourcePlanResponse& WMGetAllResourcePlanResponse::operator=(const WMGetAllResourcePlanResponse& other1058) { - resourcePlans = other1058.resourcePlans; - __isset = other1058.__isset; +WMGetAllResourcePlanResponse& WMGetAllResourcePlanResponse::operator=(const WMGetAllResourcePlanResponse& other1082) { + resourcePlans = other1082.resourcePlans; + __isset = other1082.__isset; return *this; } void WMGetAllResourcePlanResponse::printTo(std::ostream& out) const { @@ -27181,21 +27774,21 @@ void swap(WMAlterResourcePlanRequest &a, WMAlterResourcePlanRequest &b) { swap(a.__isset, b.__isset); } -WMAlterResourcePlanRequest::WMAlterResourcePlanRequest(const WMAlterResourcePlanRequest& other1059) { - resourcePlanName = other1059.resourcePlanName; - resourcePlan = other1059.resourcePlan; - isEnableAndActivate = other1059.isEnableAndActivate; - isForceDeactivate = other1059.isForceDeactivate; - isReplace = other1059.isReplace; - __isset = other1059.__isset; +WMAlterResourcePlanRequest::WMAlterResourcePlanRequest(const WMAlterResourcePlanRequest& other1083) { + resourcePlanName = other1083.resourcePlanName; + resourcePlan = other1083.resourcePlan; + isEnableAndActivate = other1083.isEnableAndActivate; + isForceDeactivate = other1083.isForceDeactivate; + isReplace = other1083.isReplace; + __isset = other1083.__isset; } -WMAlterResourcePlanRequest& WMAlterResourcePlanRequest::operator=(const WMAlterResourcePlanRequest& other1060) { - resourcePlanName = other1060.resourcePlanName; - resourcePlan = other1060.resourcePlan; - isEnableAndActivate = other1060.isEnableAndActivate; - isForceDeactivate = other1060.isForceDeactivate; - isReplace = other1060.isReplace; - __isset = other1060.__isset; +WMAlterResourcePlanRequest& WMAlterResourcePlanRequest::operator=(const WMAlterResourcePlanRequest& other1084) { + resourcePlanName = other1084.resourcePlanName; + resourcePlan = other1084.resourcePlan; + isEnableAndActivate = other1084.isEnableAndActivate; + isForceDeactivate = other1084.isForceDeactivate; + isReplace = other1084.isReplace; + __isset = other1084.__isset; return *this; } void WMAlterResourcePlanRequest::printTo(std::ostream& out) const { @@ -27281,13 +27874,13 @@ void swap(WMAlterResourcePlanResponse &a, WMAlterResourcePlanResponse &b) { swap(a.__isset, b.__isset); } -WMAlterResourcePlanResponse::WMAlterResourcePlanResponse(const WMAlterResourcePlanResponse& other1061) { - fullResourcePlan = other1061.fullResourcePlan; - __isset = other1061.__isset; +WMAlterResourcePlanResponse::WMAlterResourcePlanResponse(const WMAlterResourcePlanResponse& other1085) { + fullResourcePlan = other1085.fullResourcePlan; + __isset = other1085.__isset; } -WMAlterResourcePlanResponse& WMAlterResourcePlanResponse::operator=(const WMAlterResourcePlanResponse& other1062) { - fullResourcePlan = other1062.fullResourcePlan; - __isset = other1062.__isset; +WMAlterResourcePlanResponse& WMAlterResourcePlanResponse::operator=(const WMAlterResourcePlanResponse& other1086) { + fullResourcePlan = other1086.fullResourcePlan; + __isset = other1086.__isset; return *this; } void WMAlterResourcePlanResponse::printTo(std::ostream& out) const { @@ -27369,13 +27962,13 @@ void swap(WMValidateResourcePlanRequest &a, WMValidateResourcePlanRequest &b) { swap(a.__isset, b.__isset); } -WMValidateResourcePlanRequest::WMValidateResourcePlanRequest(const WMValidateResourcePlanRequest& other1063) { - resourcePlanName = other1063.resourcePlanName; - __isset = other1063.__isset; +WMValidateResourcePlanRequest::WMValidateResourcePlanRequest(const WMValidateResourcePlanRequest& other1087) { + resourcePlanName = other1087.resourcePlanName; + __isset = other1087.__isset; } -WMValidateResourcePlanRequest& WMValidateResourcePlanRequest::operator=(const WMValidateResourcePlanRequest& other1064) { - resourcePlanName = other1064.resourcePlanName; - __isset = other1064.__isset; +WMValidateResourcePlanRequest& WMValidateResourcePlanRequest::operator=(const WMValidateResourcePlanRequest& other1088) { + resourcePlanName = other1088.resourcePlanName; + __isset = other1088.__isset; return *this; } void WMValidateResourcePlanRequest::printTo(std::ostream& out) const { @@ -27425,14 +28018,14 @@ uint32_t WMValidateResourcePlanResponse::read(::apache::thrift::protocol::TProto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->errors.clear(); - uint32_t _size1065; - ::apache::thrift::protocol::TType _etype1068; - xfer += iprot->readListBegin(_etype1068, _size1065); - this->errors.resize(_size1065); - uint32_t _i1069; - for (_i1069 = 0; _i1069 < _size1065; ++_i1069) + uint32_t _size1089; + ::apache::thrift::protocol::TType _etype1092; + xfer += iprot->readListBegin(_etype1092, _size1089); + this->errors.resize(_size1089); + uint32_t _i1093; + for (_i1093 = 0; _i1093 < _size1089; ++_i1093) { - xfer += iprot->readString(this->errors[_i1069]); + xfer += iprot->readString(this->errors[_i1093]); } xfer += iprot->readListEnd(); } @@ -27445,14 +28038,14 @@ uint32_t WMValidateResourcePlanResponse::read(::apache::thrift::protocol::TProto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->warnings.clear(); - uint32_t _size1070; - ::apache::thrift::protocol::TType _etype1073; - xfer += iprot->readListBegin(_etype1073, _size1070); - this->warnings.resize(_size1070); - uint32_t _i1074; - for (_i1074 = 0; _i1074 < _size1070; ++_i1074) + uint32_t _size1094; + ::apache::thrift::protocol::TType _etype1097; + xfer += iprot->readListBegin(_etype1097, _size1094); + this->warnings.resize(_size1094); + uint32_t _i1098; + for (_i1098 = 0; _i1098 < _size1094; ++_i1098) { - xfer += iprot->readString(this->warnings[_i1074]); + xfer += iprot->readString(this->warnings[_i1098]); } xfer += iprot->readListEnd(); } @@ -27482,10 +28075,10 @@ uint32_t WMValidateResourcePlanResponse::write(::apache::thrift::protocol::TProt xfer += oprot->writeFieldBegin("errors", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->errors.size())); - std::vector ::const_iterator _iter1075; - for (_iter1075 = this->errors.begin(); _iter1075 != this->errors.end(); ++_iter1075) + std::vector ::const_iterator _iter1099; + for (_iter1099 = this->errors.begin(); _iter1099 != this->errors.end(); ++_iter1099) { - xfer += oprot->writeString((*_iter1075)); + xfer += oprot->writeString((*_iter1099)); } xfer += oprot->writeListEnd(); } @@ -27495,10 +28088,10 @@ uint32_t WMValidateResourcePlanResponse::write(::apache::thrift::protocol::TProt xfer += oprot->writeFieldBegin("warnings", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->warnings.size())); - std::vector ::const_iterator _iter1076; - for (_iter1076 = this->warnings.begin(); _iter1076 != this->warnings.end(); ++_iter1076) + std::vector ::const_iterator _iter1100; + for (_iter1100 = this->warnings.begin(); _iter1100 != this->warnings.end(); ++_iter1100) { - xfer += oprot->writeString((*_iter1076)); + xfer += oprot->writeString((*_iter1100)); } xfer += oprot->writeListEnd(); } @@ -27516,15 +28109,15 @@ void swap(WMValidateResourcePlanResponse &a, WMValidateResourcePlanResponse &b) swap(a.__isset, b.__isset); } -WMValidateResourcePlanResponse::WMValidateResourcePlanResponse(const WMValidateResourcePlanResponse& other1077) { - errors = other1077.errors; - warnings = other1077.warnings; - __isset = other1077.__isset; +WMValidateResourcePlanResponse::WMValidateResourcePlanResponse(const WMValidateResourcePlanResponse& other1101) { + errors = other1101.errors; + warnings = other1101.warnings; + __isset = other1101.__isset; } -WMValidateResourcePlanResponse& WMValidateResourcePlanResponse::operator=(const WMValidateResourcePlanResponse& other1078) { - errors = other1078.errors; - warnings = other1078.warnings; - __isset = other1078.__isset; +WMValidateResourcePlanResponse& WMValidateResourcePlanResponse::operator=(const WMValidateResourcePlanResponse& other1102) { + errors = other1102.errors; + warnings = other1102.warnings; + __isset = other1102.__isset; return *this; } void WMValidateResourcePlanResponse::printTo(std::ostream& out) const { @@ -27607,13 +28200,13 @@ void swap(WMDropResourcePlanRequest &a, WMDropResourcePlanRequest &b) { swap(a.__isset, b.__isset); } -WMDropResourcePlanRequest::WMDropResourcePlanRequest(const WMDropResourcePlanRequest& other1079) { - resourcePlanName = other1079.resourcePlanName; - __isset = other1079.__isset; +WMDropResourcePlanRequest::WMDropResourcePlanRequest(const WMDropResourcePlanRequest& other1103) { + resourcePlanName = other1103.resourcePlanName; + __isset = other1103.__isset; } -WMDropResourcePlanRequest& WMDropResourcePlanRequest::operator=(const WMDropResourcePlanRequest& other1080) { - resourcePlanName = other1080.resourcePlanName; - __isset = other1080.__isset; +WMDropResourcePlanRequest& WMDropResourcePlanRequest::operator=(const WMDropResourcePlanRequest& other1104) { + resourcePlanName = other1104.resourcePlanName; + __isset = other1104.__isset; return *this; } void WMDropResourcePlanRequest::printTo(std::ostream& out) const { @@ -27672,11 +28265,11 @@ void swap(WMDropResourcePlanResponse &a, WMDropResourcePlanResponse &b) { (void) b; } -WMDropResourcePlanResponse::WMDropResourcePlanResponse(const WMDropResourcePlanResponse& other1081) { - (void) other1081; +WMDropResourcePlanResponse::WMDropResourcePlanResponse(const WMDropResourcePlanResponse& other1105) { + (void) other1105; } -WMDropResourcePlanResponse& WMDropResourcePlanResponse::operator=(const WMDropResourcePlanResponse& other1082) { - (void) other1082; +WMDropResourcePlanResponse& WMDropResourcePlanResponse::operator=(const WMDropResourcePlanResponse& other1106) { + (void) other1106; return *this; } void WMDropResourcePlanResponse::printTo(std::ostream& out) const { @@ -27757,13 +28350,13 @@ void swap(WMCreateTriggerRequest &a, WMCreateTriggerRequest &b) { swap(a.__isset, b.__isset); } -WMCreateTriggerRequest::WMCreateTriggerRequest(const WMCreateTriggerRequest& other1083) { - trigger = other1083.trigger; - __isset = other1083.__isset; +WMCreateTriggerRequest::WMCreateTriggerRequest(const WMCreateTriggerRequest& other1107) { + trigger = other1107.trigger; + __isset = other1107.__isset; } -WMCreateTriggerRequest& WMCreateTriggerRequest::operator=(const WMCreateTriggerRequest& other1084) { - trigger = other1084.trigger; - __isset = other1084.__isset; +WMCreateTriggerRequest& WMCreateTriggerRequest::operator=(const WMCreateTriggerRequest& other1108) { + trigger = other1108.trigger; + __isset = other1108.__isset; return *this; } void WMCreateTriggerRequest::printTo(std::ostream& out) const { @@ -27822,11 +28415,11 @@ void swap(WMCreateTriggerResponse &a, WMCreateTriggerResponse &b) { (void) b; } -WMCreateTriggerResponse::WMCreateTriggerResponse(const WMCreateTriggerResponse& other1085) { - (void) other1085; +WMCreateTriggerResponse::WMCreateTriggerResponse(const WMCreateTriggerResponse& other1109) { + (void) other1109; } -WMCreateTriggerResponse& WMCreateTriggerResponse::operator=(const WMCreateTriggerResponse& other1086) { - (void) other1086; +WMCreateTriggerResponse& WMCreateTriggerResponse::operator=(const WMCreateTriggerResponse& other1110) { + (void) other1110; return *this; } void WMCreateTriggerResponse::printTo(std::ostream& out) const { @@ -27907,13 +28500,13 @@ void swap(WMAlterTriggerRequest &a, WMAlterTriggerRequest &b) { swap(a.__isset, b.__isset); } -WMAlterTriggerRequest::WMAlterTriggerRequest(const WMAlterTriggerRequest& other1087) { - trigger = other1087.trigger; - __isset = other1087.__isset; +WMAlterTriggerRequest::WMAlterTriggerRequest(const WMAlterTriggerRequest& other1111) { + trigger = other1111.trigger; + __isset = other1111.__isset; } -WMAlterTriggerRequest& WMAlterTriggerRequest::operator=(const WMAlterTriggerRequest& other1088) { - trigger = other1088.trigger; - __isset = other1088.__isset; +WMAlterTriggerRequest& WMAlterTriggerRequest::operator=(const WMAlterTriggerRequest& other1112) { + trigger = other1112.trigger; + __isset = other1112.__isset; return *this; } void WMAlterTriggerRequest::printTo(std::ostream& out) const { @@ -27972,11 +28565,11 @@ void swap(WMAlterTriggerResponse &a, WMAlterTriggerResponse &b) { (void) b; } -WMAlterTriggerResponse::WMAlterTriggerResponse(const WMAlterTriggerResponse& other1089) { - (void) other1089; +WMAlterTriggerResponse::WMAlterTriggerResponse(const WMAlterTriggerResponse& other1113) { + (void) other1113; } -WMAlterTriggerResponse& WMAlterTriggerResponse::operator=(const WMAlterTriggerResponse& other1090) { - (void) other1090; +WMAlterTriggerResponse& WMAlterTriggerResponse::operator=(const WMAlterTriggerResponse& other1114) { + (void) other1114; return *this; } void WMAlterTriggerResponse::printTo(std::ostream& out) const { @@ -28076,15 +28669,15 @@ void swap(WMDropTriggerRequest &a, WMDropTriggerRequest &b) { swap(a.__isset, b.__isset); } -WMDropTriggerRequest::WMDropTriggerRequest(const WMDropTriggerRequest& other1091) { - resourcePlanName = other1091.resourcePlanName; - triggerName = other1091.triggerName; - __isset = other1091.__isset; +WMDropTriggerRequest::WMDropTriggerRequest(const WMDropTriggerRequest& other1115) { + resourcePlanName = other1115.resourcePlanName; + triggerName = other1115.triggerName; + __isset = other1115.__isset; } -WMDropTriggerRequest& WMDropTriggerRequest::operator=(const WMDropTriggerRequest& other1092) { - resourcePlanName = other1092.resourcePlanName; - triggerName = other1092.triggerName; - __isset = other1092.__isset; +WMDropTriggerRequest& WMDropTriggerRequest::operator=(const WMDropTriggerRequest& other1116) { + resourcePlanName = other1116.resourcePlanName; + triggerName = other1116.triggerName; + __isset = other1116.__isset; return *this; } void WMDropTriggerRequest::printTo(std::ostream& out) const { @@ -28144,11 +28737,11 @@ void swap(WMDropTriggerResponse &a, WMDropTriggerResponse &b) { (void) b; } -WMDropTriggerResponse::WMDropTriggerResponse(const WMDropTriggerResponse& other1093) { - (void) other1093; +WMDropTriggerResponse::WMDropTriggerResponse(const WMDropTriggerResponse& other1117) { + (void) other1117; } -WMDropTriggerResponse& WMDropTriggerResponse::operator=(const WMDropTriggerResponse& other1094) { - (void) other1094; +WMDropTriggerResponse& WMDropTriggerResponse::operator=(const WMDropTriggerResponse& other1118) { + (void) other1118; return *this; } void WMDropTriggerResponse::printTo(std::ostream& out) const { @@ -28229,13 +28822,13 @@ void swap(WMGetTriggersForResourePlanRequest &a, WMGetTriggersForResourePlanRequ swap(a.__isset, b.__isset); } -WMGetTriggersForResourePlanRequest::WMGetTriggersForResourePlanRequest(const WMGetTriggersForResourePlanRequest& other1095) { - resourcePlanName = other1095.resourcePlanName; - __isset = other1095.__isset; +WMGetTriggersForResourePlanRequest::WMGetTriggersForResourePlanRequest(const WMGetTriggersForResourePlanRequest& other1119) { + resourcePlanName = other1119.resourcePlanName; + __isset = other1119.__isset; } -WMGetTriggersForResourePlanRequest& WMGetTriggersForResourePlanRequest::operator=(const WMGetTriggersForResourePlanRequest& other1096) { - resourcePlanName = other1096.resourcePlanName; - __isset = other1096.__isset; +WMGetTriggersForResourePlanRequest& WMGetTriggersForResourePlanRequest::operator=(const WMGetTriggersForResourePlanRequest& other1120) { + resourcePlanName = other1120.resourcePlanName; + __isset = other1120.__isset; return *this; } void WMGetTriggersForResourePlanRequest::printTo(std::ostream& out) const { @@ -28280,14 +28873,14 @@ uint32_t WMGetTriggersForResourePlanResponse::read(::apache::thrift::protocol::T if (ftype == ::apache::thrift::protocol::T_LIST) { { this->triggers.clear(); - uint32_t _size1097; - ::apache::thrift::protocol::TType _etype1100; - xfer += iprot->readListBegin(_etype1100, _size1097); - this->triggers.resize(_size1097); - uint32_t _i1101; - for (_i1101 = 0; _i1101 < _size1097; ++_i1101) + uint32_t _size1121; + ::apache::thrift::protocol::TType _etype1124; + xfer += iprot->readListBegin(_etype1124, _size1121); + this->triggers.resize(_size1121); + uint32_t _i1125; + for (_i1125 = 0; _i1125 < _size1121; ++_i1125) { - xfer += this->triggers[_i1101].read(iprot); + xfer += this->triggers[_i1125].read(iprot); } xfer += iprot->readListEnd(); } @@ -28317,10 +28910,10 @@ uint32_t WMGetTriggersForResourePlanResponse::write(::apache::thrift::protocol:: xfer += oprot->writeFieldBegin("triggers", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->triggers.size())); - std::vector ::const_iterator _iter1102; - for (_iter1102 = this->triggers.begin(); _iter1102 != this->triggers.end(); ++_iter1102) + std::vector ::const_iterator _iter1126; + for (_iter1126 = this->triggers.begin(); _iter1126 != this->triggers.end(); ++_iter1126) { - xfer += (*_iter1102).write(oprot); + xfer += (*_iter1126).write(oprot); } xfer += oprot->writeListEnd(); } @@ -28337,13 +28930,13 @@ void swap(WMGetTriggersForResourePlanResponse &a, WMGetTriggersForResourePlanRes swap(a.__isset, b.__isset); } -WMGetTriggersForResourePlanResponse::WMGetTriggersForResourePlanResponse(const WMGetTriggersForResourePlanResponse& other1103) { - triggers = other1103.triggers; - __isset = other1103.__isset; +WMGetTriggersForResourePlanResponse::WMGetTriggersForResourePlanResponse(const WMGetTriggersForResourePlanResponse& other1127) { + triggers = other1127.triggers; + __isset = other1127.__isset; } -WMGetTriggersForResourePlanResponse& WMGetTriggersForResourePlanResponse::operator=(const WMGetTriggersForResourePlanResponse& other1104) { - triggers = other1104.triggers; - __isset = other1104.__isset; +WMGetTriggersForResourePlanResponse& WMGetTriggersForResourePlanResponse::operator=(const WMGetTriggersForResourePlanResponse& other1128) { + triggers = other1128.triggers; + __isset = other1128.__isset; return *this; } void WMGetTriggersForResourePlanResponse::printTo(std::ostream& out) const { @@ -28425,13 +29018,13 @@ void swap(WMCreatePoolRequest &a, WMCreatePoolRequest &b) { swap(a.__isset, b.__isset); } -WMCreatePoolRequest::WMCreatePoolRequest(const WMCreatePoolRequest& other1105) { - pool = other1105.pool; - __isset = other1105.__isset; +WMCreatePoolRequest::WMCreatePoolRequest(const WMCreatePoolRequest& other1129) { + pool = other1129.pool; + __isset = other1129.__isset; } -WMCreatePoolRequest& WMCreatePoolRequest::operator=(const WMCreatePoolRequest& other1106) { - pool = other1106.pool; - __isset = other1106.__isset; +WMCreatePoolRequest& WMCreatePoolRequest::operator=(const WMCreatePoolRequest& other1130) { + pool = other1130.pool; + __isset = other1130.__isset; return *this; } void WMCreatePoolRequest::printTo(std::ostream& out) const { @@ -28490,11 +29083,11 @@ void swap(WMCreatePoolResponse &a, WMCreatePoolResponse &b) { (void) b; } -WMCreatePoolResponse::WMCreatePoolResponse(const WMCreatePoolResponse& other1107) { - (void) other1107; +WMCreatePoolResponse::WMCreatePoolResponse(const WMCreatePoolResponse& other1131) { + (void) other1131; } -WMCreatePoolResponse& WMCreatePoolResponse::operator=(const WMCreatePoolResponse& other1108) { - (void) other1108; +WMCreatePoolResponse& WMCreatePoolResponse::operator=(const WMCreatePoolResponse& other1132) { + (void) other1132; return *this; } void WMCreatePoolResponse::printTo(std::ostream& out) const { @@ -28594,15 +29187,15 @@ void swap(WMAlterPoolRequest &a, WMAlterPoolRequest &b) { swap(a.__isset, b.__isset); } -WMAlterPoolRequest::WMAlterPoolRequest(const WMAlterPoolRequest& other1109) { - pool = other1109.pool; - poolPath = other1109.poolPath; - __isset = other1109.__isset; +WMAlterPoolRequest::WMAlterPoolRequest(const WMAlterPoolRequest& other1133) { + pool = other1133.pool; + poolPath = other1133.poolPath; + __isset = other1133.__isset; } -WMAlterPoolRequest& WMAlterPoolRequest::operator=(const WMAlterPoolRequest& other1110) { - pool = other1110.pool; - poolPath = other1110.poolPath; - __isset = other1110.__isset; +WMAlterPoolRequest& WMAlterPoolRequest::operator=(const WMAlterPoolRequest& other1134) { + pool = other1134.pool; + poolPath = other1134.poolPath; + __isset = other1134.__isset; return *this; } void WMAlterPoolRequest::printTo(std::ostream& out) const { @@ -28662,11 +29255,11 @@ void swap(WMAlterPoolResponse &a, WMAlterPoolResponse &b) { (void) b; } -WMAlterPoolResponse::WMAlterPoolResponse(const WMAlterPoolResponse& other1111) { - (void) other1111; +WMAlterPoolResponse::WMAlterPoolResponse(const WMAlterPoolResponse& other1135) { + (void) other1135; } -WMAlterPoolResponse& WMAlterPoolResponse::operator=(const WMAlterPoolResponse& other1112) { - (void) other1112; +WMAlterPoolResponse& WMAlterPoolResponse::operator=(const WMAlterPoolResponse& other1136) { + (void) other1136; return *this; } void WMAlterPoolResponse::printTo(std::ostream& out) const { @@ -28766,15 +29359,15 @@ void swap(WMDropPoolRequest &a, WMDropPoolRequest &b) { swap(a.__isset, b.__isset); } -WMDropPoolRequest::WMDropPoolRequest(const WMDropPoolRequest& other1113) { - resourcePlanName = other1113.resourcePlanName; - poolPath = other1113.poolPath; - __isset = other1113.__isset; +WMDropPoolRequest::WMDropPoolRequest(const WMDropPoolRequest& other1137) { + resourcePlanName = other1137.resourcePlanName; + poolPath = other1137.poolPath; + __isset = other1137.__isset; } -WMDropPoolRequest& WMDropPoolRequest::operator=(const WMDropPoolRequest& other1114) { - resourcePlanName = other1114.resourcePlanName; - poolPath = other1114.poolPath; - __isset = other1114.__isset; +WMDropPoolRequest& WMDropPoolRequest::operator=(const WMDropPoolRequest& other1138) { + resourcePlanName = other1138.resourcePlanName; + poolPath = other1138.poolPath; + __isset = other1138.__isset; return *this; } void WMDropPoolRequest::printTo(std::ostream& out) const { @@ -28834,11 +29427,11 @@ void swap(WMDropPoolResponse &a, WMDropPoolResponse &b) { (void) b; } -WMDropPoolResponse::WMDropPoolResponse(const WMDropPoolResponse& other1115) { - (void) other1115; +WMDropPoolResponse::WMDropPoolResponse(const WMDropPoolResponse& other1139) { + (void) other1139; } -WMDropPoolResponse& WMDropPoolResponse::operator=(const WMDropPoolResponse& other1116) { - (void) other1116; +WMDropPoolResponse& WMDropPoolResponse::operator=(const WMDropPoolResponse& other1140) { + (void) other1140; return *this; } void WMDropPoolResponse::printTo(std::ostream& out) const { @@ -28938,15 +29531,15 @@ void swap(WMCreateOrUpdateMappingRequest &a, WMCreateOrUpdateMappingRequest &b) swap(a.__isset, b.__isset); } -WMCreateOrUpdateMappingRequest::WMCreateOrUpdateMappingRequest(const WMCreateOrUpdateMappingRequest& other1117) { - mapping = other1117.mapping; - update = other1117.update; - __isset = other1117.__isset; +WMCreateOrUpdateMappingRequest::WMCreateOrUpdateMappingRequest(const WMCreateOrUpdateMappingRequest& other1141) { + mapping = other1141.mapping; + update = other1141.update; + __isset = other1141.__isset; } -WMCreateOrUpdateMappingRequest& WMCreateOrUpdateMappingRequest::operator=(const WMCreateOrUpdateMappingRequest& other1118) { - mapping = other1118.mapping; - update = other1118.update; - __isset = other1118.__isset; +WMCreateOrUpdateMappingRequest& WMCreateOrUpdateMappingRequest::operator=(const WMCreateOrUpdateMappingRequest& other1142) { + mapping = other1142.mapping; + update = other1142.update; + __isset = other1142.__isset; return *this; } void WMCreateOrUpdateMappingRequest::printTo(std::ostream& out) const { @@ -29006,11 +29599,11 @@ void swap(WMCreateOrUpdateMappingResponse &a, WMCreateOrUpdateMappingResponse &b (void) b; } -WMCreateOrUpdateMappingResponse::WMCreateOrUpdateMappingResponse(const WMCreateOrUpdateMappingResponse& other1119) { - (void) other1119; +WMCreateOrUpdateMappingResponse::WMCreateOrUpdateMappingResponse(const WMCreateOrUpdateMappingResponse& other1143) { + (void) other1143; } -WMCreateOrUpdateMappingResponse& WMCreateOrUpdateMappingResponse::operator=(const WMCreateOrUpdateMappingResponse& other1120) { - (void) other1120; +WMCreateOrUpdateMappingResponse& WMCreateOrUpdateMappingResponse::operator=(const WMCreateOrUpdateMappingResponse& other1144) { + (void) other1144; return *this; } void WMCreateOrUpdateMappingResponse::printTo(std::ostream& out) const { @@ -29091,13 +29684,13 @@ void swap(WMDropMappingRequest &a, WMDropMappingRequest &b) { swap(a.__isset, b.__isset); } -WMDropMappingRequest::WMDropMappingRequest(const WMDropMappingRequest& other1121) { - mapping = other1121.mapping; - __isset = other1121.__isset; +WMDropMappingRequest::WMDropMappingRequest(const WMDropMappingRequest& other1145) { + mapping = other1145.mapping; + __isset = other1145.__isset; } -WMDropMappingRequest& WMDropMappingRequest::operator=(const WMDropMappingRequest& other1122) { - mapping = other1122.mapping; - __isset = other1122.__isset; +WMDropMappingRequest& WMDropMappingRequest::operator=(const WMDropMappingRequest& other1146) { + mapping = other1146.mapping; + __isset = other1146.__isset; return *this; } void WMDropMappingRequest::printTo(std::ostream& out) const { @@ -29156,11 +29749,11 @@ void swap(WMDropMappingResponse &a, WMDropMappingResponse &b) { (void) b; } -WMDropMappingResponse::WMDropMappingResponse(const WMDropMappingResponse& other1123) { - (void) other1123; +WMDropMappingResponse::WMDropMappingResponse(const WMDropMappingResponse& other1147) { + (void) other1147; } -WMDropMappingResponse& WMDropMappingResponse::operator=(const WMDropMappingResponse& other1124) { - (void) other1124; +WMDropMappingResponse& WMDropMappingResponse::operator=(const WMDropMappingResponse& other1148) { + (void) other1148; return *this; } void WMDropMappingResponse::printTo(std::ostream& out) const { @@ -29298,19 +29891,19 @@ void swap(WMCreateOrDropTriggerToPoolMappingRequest &a, WMCreateOrDropTriggerToP swap(a.__isset, b.__isset); } -WMCreateOrDropTriggerToPoolMappingRequest::WMCreateOrDropTriggerToPoolMappingRequest(const WMCreateOrDropTriggerToPoolMappingRequest& other1125) { - resourcePlanName = other1125.resourcePlanName; - triggerName = other1125.triggerName; - poolPath = other1125.poolPath; - drop = other1125.drop; - __isset = other1125.__isset; +WMCreateOrDropTriggerToPoolMappingRequest::WMCreateOrDropTriggerToPoolMappingRequest(const WMCreateOrDropTriggerToPoolMappingRequest& other1149) { + resourcePlanName = other1149.resourcePlanName; + triggerName = other1149.triggerName; + poolPath = other1149.poolPath; + drop = other1149.drop; + __isset = other1149.__isset; } -WMCreateOrDropTriggerToPoolMappingRequest& WMCreateOrDropTriggerToPoolMappingRequest::operator=(const WMCreateOrDropTriggerToPoolMappingRequest& other1126) { - resourcePlanName = other1126.resourcePlanName; - triggerName = other1126.triggerName; - poolPath = other1126.poolPath; - drop = other1126.drop; - __isset = other1126.__isset; +WMCreateOrDropTriggerToPoolMappingRequest& WMCreateOrDropTriggerToPoolMappingRequest::operator=(const WMCreateOrDropTriggerToPoolMappingRequest& other1150) { + resourcePlanName = other1150.resourcePlanName; + triggerName = other1150.triggerName; + poolPath = other1150.poolPath; + drop = other1150.drop; + __isset = other1150.__isset; return *this; } void WMCreateOrDropTriggerToPoolMappingRequest::printTo(std::ostream& out) const { @@ -29372,11 +29965,11 @@ void swap(WMCreateOrDropTriggerToPoolMappingResponse &a, WMCreateOrDropTriggerTo (void) b; } -WMCreateOrDropTriggerToPoolMappingResponse::WMCreateOrDropTriggerToPoolMappingResponse(const WMCreateOrDropTriggerToPoolMappingResponse& other1127) { - (void) other1127; +WMCreateOrDropTriggerToPoolMappingResponse::WMCreateOrDropTriggerToPoolMappingResponse(const WMCreateOrDropTriggerToPoolMappingResponse& other1151) { + (void) other1151; } -WMCreateOrDropTriggerToPoolMappingResponse& WMCreateOrDropTriggerToPoolMappingResponse::operator=(const WMCreateOrDropTriggerToPoolMappingResponse& other1128) { - (void) other1128; +WMCreateOrDropTriggerToPoolMappingResponse& WMCreateOrDropTriggerToPoolMappingResponse::operator=(const WMCreateOrDropTriggerToPoolMappingResponse& other1152) { + (void) other1152; return *this; } void WMCreateOrDropTriggerToPoolMappingResponse::printTo(std::ostream& out) const { @@ -29451,9 +30044,9 @@ uint32_t ISchema::read(::apache::thrift::protocol::TProtocol* iprot) { { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1129; - xfer += iprot->readI32(ecast1129); - this->schemaType = (SchemaType::type)ecast1129; + int32_t ecast1153; + xfer += iprot->readI32(ecast1153); + this->schemaType = (SchemaType::type)ecast1153; this->__isset.schemaType = true; } else { xfer += iprot->skip(ftype); @@ -29485,9 +30078,9 @@ uint32_t ISchema::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1130; - xfer += iprot->readI32(ecast1130); - this->compatibility = (SchemaCompatibility::type)ecast1130; + int32_t ecast1154; + xfer += iprot->readI32(ecast1154); + this->compatibility = (SchemaCompatibility::type)ecast1154; this->__isset.compatibility = true; } else { xfer += iprot->skip(ftype); @@ -29495,9 +30088,9 @@ uint32_t ISchema::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 6: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1131; - xfer += iprot->readI32(ecast1131); - this->validationLevel = (SchemaValidation::type)ecast1131; + int32_t ecast1155; + xfer += iprot->readI32(ecast1155); + this->validationLevel = (SchemaValidation::type)ecast1155; this->__isset.validationLevel = true; } else { xfer += iprot->skip(ftype); @@ -29601,29 +30194,29 @@ void swap(ISchema &a, ISchema &b) { swap(a.__isset, b.__isset); } -ISchema::ISchema(const ISchema& other1132) { - schemaType = other1132.schemaType; - name = other1132.name; - catName = other1132.catName; - dbName = other1132.dbName; - compatibility = other1132.compatibility; - validationLevel = other1132.validationLevel; - canEvolve = other1132.canEvolve; - schemaGroup = other1132.schemaGroup; - description = other1132.description; - __isset = other1132.__isset; -} -ISchema& ISchema::operator=(const ISchema& other1133) { - schemaType = other1133.schemaType; - name = other1133.name; - catName = other1133.catName; - dbName = other1133.dbName; - compatibility = other1133.compatibility; - validationLevel = other1133.validationLevel; - canEvolve = other1133.canEvolve; - schemaGroup = other1133.schemaGroup; - description = other1133.description; - __isset = other1133.__isset; +ISchema::ISchema(const ISchema& other1156) { + schemaType = other1156.schemaType; + name = other1156.name; + catName = other1156.catName; + dbName = other1156.dbName; + compatibility = other1156.compatibility; + validationLevel = other1156.validationLevel; + canEvolve = other1156.canEvolve; + schemaGroup = other1156.schemaGroup; + description = other1156.description; + __isset = other1156.__isset; +} +ISchema& ISchema::operator=(const ISchema& other1157) { + schemaType = other1157.schemaType; + name = other1157.name; + catName = other1157.catName; + dbName = other1157.dbName; + compatibility = other1157.compatibility; + validationLevel = other1157.validationLevel; + canEvolve = other1157.canEvolve; + schemaGroup = other1157.schemaGroup; + description = other1157.description; + __isset = other1157.__isset; return *this; } void ISchema::printTo(std::ostream& out) const { @@ -29745,17 +30338,17 @@ void swap(ISchemaName &a, ISchemaName &b) { swap(a.__isset, b.__isset); } -ISchemaName::ISchemaName(const ISchemaName& other1134) { - catName = other1134.catName; - dbName = other1134.dbName; - schemaName = other1134.schemaName; - __isset = other1134.__isset; +ISchemaName::ISchemaName(const ISchemaName& other1158) { + catName = other1158.catName; + dbName = other1158.dbName; + schemaName = other1158.schemaName; + __isset = other1158.__isset; } -ISchemaName& ISchemaName::operator=(const ISchemaName& other1135) { - catName = other1135.catName; - dbName = other1135.dbName; - schemaName = other1135.schemaName; - __isset = other1135.__isset; +ISchemaName& ISchemaName::operator=(const ISchemaName& other1159) { + catName = other1159.catName; + dbName = other1159.dbName; + schemaName = other1159.schemaName; + __isset = other1159.__isset; return *this; } void ISchemaName::printTo(std::ostream& out) const { @@ -29854,15 +30447,15 @@ void swap(AlterISchemaRequest &a, AlterISchemaRequest &b) { swap(a.__isset, b.__isset); } -AlterISchemaRequest::AlterISchemaRequest(const AlterISchemaRequest& other1136) { - name = other1136.name; - newSchema = other1136.newSchema; - __isset = other1136.__isset; +AlterISchemaRequest::AlterISchemaRequest(const AlterISchemaRequest& other1160) { + name = other1160.name; + newSchema = other1160.newSchema; + __isset = other1160.__isset; } -AlterISchemaRequest& AlterISchemaRequest::operator=(const AlterISchemaRequest& other1137) { - name = other1137.name; - newSchema = other1137.newSchema; - __isset = other1137.__isset; +AlterISchemaRequest& AlterISchemaRequest::operator=(const AlterISchemaRequest& other1161) { + name = other1161.name; + newSchema = other1161.newSchema; + __isset = other1161.__isset; return *this; } void AlterISchemaRequest::printTo(std::ostream& out) const { @@ -29973,14 +30566,14 @@ uint32_t SchemaVersion::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->cols.clear(); - uint32_t _size1138; - ::apache::thrift::protocol::TType _etype1141; - xfer += iprot->readListBegin(_etype1141, _size1138); - this->cols.resize(_size1138); - uint32_t _i1142; - for (_i1142 = 0; _i1142 < _size1138; ++_i1142) + uint32_t _size1162; + ::apache::thrift::protocol::TType _etype1165; + xfer += iprot->readListBegin(_etype1165, _size1162); + this->cols.resize(_size1162); + uint32_t _i1166; + for (_i1166 = 0; _i1166 < _size1162; ++_i1166) { - xfer += this->cols[_i1142].read(iprot); + xfer += this->cols[_i1166].read(iprot); } xfer += iprot->readListEnd(); } @@ -29991,9 +30584,9 @@ uint32_t SchemaVersion::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1143; - xfer += iprot->readI32(ecast1143); - this->state = (SchemaVersionState::type)ecast1143; + int32_t ecast1167; + xfer += iprot->readI32(ecast1167); + this->state = (SchemaVersionState::type)ecast1167; this->__isset.state = true; } else { xfer += iprot->skip(ftype); @@ -30071,10 +30664,10 @@ uint32_t SchemaVersion::write(::apache::thrift::protocol::TProtocol* oprot) cons xfer += oprot->writeFieldBegin("cols", ::apache::thrift::protocol::T_LIST, 4); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->cols.size())); - std::vector ::const_iterator _iter1144; - for (_iter1144 = this->cols.begin(); _iter1144 != this->cols.end(); ++_iter1144) + std::vector ::const_iterator _iter1168; + for (_iter1168 = this->cols.begin(); _iter1168 != this->cols.end(); ++_iter1168) { - xfer += (*_iter1144).write(oprot); + xfer += (*_iter1168).write(oprot); } xfer += oprot->writeListEnd(); } @@ -30130,31 +30723,31 @@ void swap(SchemaVersion &a, SchemaVersion &b) { swap(a.__isset, b.__isset); } -SchemaVersion::SchemaVersion(const SchemaVersion& other1145) { - schema = other1145.schema; - version = other1145.version; - createdAt = other1145.createdAt; - cols = other1145.cols; - state = other1145.state; - description = other1145.description; - schemaText = other1145.schemaText; - fingerprint = other1145.fingerprint; - name = other1145.name; - serDe = other1145.serDe; - __isset = other1145.__isset; -} -SchemaVersion& SchemaVersion::operator=(const SchemaVersion& other1146) { - schema = other1146.schema; - version = other1146.version; - createdAt = other1146.createdAt; - cols = other1146.cols; - state = other1146.state; - description = other1146.description; - schemaText = other1146.schemaText; - fingerprint = other1146.fingerprint; - name = other1146.name; - serDe = other1146.serDe; - __isset = other1146.__isset; +SchemaVersion::SchemaVersion(const SchemaVersion& other1169) { + schema = other1169.schema; + version = other1169.version; + createdAt = other1169.createdAt; + cols = other1169.cols; + state = other1169.state; + description = other1169.description; + schemaText = other1169.schemaText; + fingerprint = other1169.fingerprint; + name = other1169.name; + serDe = other1169.serDe; + __isset = other1169.__isset; +} +SchemaVersion& SchemaVersion::operator=(const SchemaVersion& other1170) { + schema = other1170.schema; + version = other1170.version; + createdAt = other1170.createdAt; + cols = other1170.cols; + state = other1170.state; + description = other1170.description; + schemaText = other1170.schemaText; + fingerprint = other1170.fingerprint; + name = other1170.name; + serDe = other1170.serDe; + __isset = other1170.__isset; return *this; } void SchemaVersion::printTo(std::ostream& out) const { @@ -30260,15 +30853,15 @@ void swap(SchemaVersionDescriptor &a, SchemaVersionDescriptor &b) { swap(a.__isset, b.__isset); } -SchemaVersionDescriptor::SchemaVersionDescriptor(const SchemaVersionDescriptor& other1147) { - schema = other1147.schema; - version = other1147.version; - __isset = other1147.__isset; +SchemaVersionDescriptor::SchemaVersionDescriptor(const SchemaVersionDescriptor& other1171) { + schema = other1171.schema; + version = other1171.version; + __isset = other1171.__isset; } -SchemaVersionDescriptor& SchemaVersionDescriptor::operator=(const SchemaVersionDescriptor& other1148) { - schema = other1148.schema; - version = other1148.version; - __isset = other1148.__isset; +SchemaVersionDescriptor& SchemaVersionDescriptor::operator=(const SchemaVersionDescriptor& other1172) { + schema = other1172.schema; + version = other1172.version; + __isset = other1172.__isset; return *this; } void SchemaVersionDescriptor::printTo(std::ostream& out) const { @@ -30389,17 +30982,17 @@ void swap(FindSchemasByColsRqst &a, FindSchemasByColsRqst &b) { swap(a.__isset, b.__isset); } -FindSchemasByColsRqst::FindSchemasByColsRqst(const FindSchemasByColsRqst& other1149) { - colName = other1149.colName; - colNamespace = other1149.colNamespace; - type = other1149.type; - __isset = other1149.__isset; +FindSchemasByColsRqst::FindSchemasByColsRqst(const FindSchemasByColsRqst& other1173) { + colName = other1173.colName; + colNamespace = other1173.colNamespace; + type = other1173.type; + __isset = other1173.__isset; } -FindSchemasByColsRqst& FindSchemasByColsRqst::operator=(const FindSchemasByColsRqst& other1150) { - colName = other1150.colName; - colNamespace = other1150.colNamespace; - type = other1150.type; - __isset = other1150.__isset; +FindSchemasByColsRqst& FindSchemasByColsRqst::operator=(const FindSchemasByColsRqst& other1174) { + colName = other1174.colName; + colNamespace = other1174.colNamespace; + type = other1174.type; + __isset = other1174.__isset; return *this; } void FindSchemasByColsRqst::printTo(std::ostream& out) const { @@ -30445,14 +31038,14 @@ uint32_t FindSchemasByColsResp::read(::apache::thrift::protocol::TProtocol* ipro if (ftype == ::apache::thrift::protocol::T_LIST) { { this->schemaVersions.clear(); - uint32_t _size1151; - ::apache::thrift::protocol::TType _etype1154; - xfer += iprot->readListBegin(_etype1154, _size1151); - this->schemaVersions.resize(_size1151); - uint32_t _i1155; - for (_i1155 = 0; _i1155 < _size1151; ++_i1155) + uint32_t _size1175; + ::apache::thrift::protocol::TType _etype1178; + xfer += iprot->readListBegin(_etype1178, _size1175); + this->schemaVersions.resize(_size1175); + uint32_t _i1179; + for (_i1179 = 0; _i1179 < _size1175; ++_i1179) { - xfer += this->schemaVersions[_i1155].read(iprot); + xfer += this->schemaVersions[_i1179].read(iprot); } xfer += iprot->readListEnd(); } @@ -30481,10 +31074,10 @@ uint32_t FindSchemasByColsResp::write(::apache::thrift::protocol::TProtocol* opr xfer += oprot->writeFieldBegin("schemaVersions", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->schemaVersions.size())); - std::vector ::const_iterator _iter1156; - for (_iter1156 = this->schemaVersions.begin(); _iter1156 != this->schemaVersions.end(); ++_iter1156) + std::vector ::const_iterator _iter1180; + for (_iter1180 = this->schemaVersions.begin(); _iter1180 != this->schemaVersions.end(); ++_iter1180) { - xfer += (*_iter1156).write(oprot); + xfer += (*_iter1180).write(oprot); } xfer += oprot->writeListEnd(); } @@ -30501,13 +31094,13 @@ void swap(FindSchemasByColsResp &a, FindSchemasByColsResp &b) { swap(a.__isset, b.__isset); } -FindSchemasByColsResp::FindSchemasByColsResp(const FindSchemasByColsResp& other1157) { - schemaVersions = other1157.schemaVersions; - __isset = other1157.__isset; +FindSchemasByColsResp::FindSchemasByColsResp(const FindSchemasByColsResp& other1181) { + schemaVersions = other1181.schemaVersions; + __isset = other1181.__isset; } -FindSchemasByColsResp& FindSchemasByColsResp::operator=(const FindSchemasByColsResp& other1158) { - schemaVersions = other1158.schemaVersions; - __isset = other1158.__isset; +FindSchemasByColsResp& FindSchemasByColsResp::operator=(const FindSchemasByColsResp& other1182) { + schemaVersions = other1182.schemaVersions; + __isset = other1182.__isset; return *this; } void FindSchemasByColsResp::printTo(std::ostream& out) const { @@ -30604,15 +31197,15 @@ void swap(MapSchemaVersionToSerdeRequest &a, MapSchemaVersionToSerdeRequest &b) swap(a.__isset, b.__isset); } -MapSchemaVersionToSerdeRequest::MapSchemaVersionToSerdeRequest(const MapSchemaVersionToSerdeRequest& other1159) { - schemaVersion = other1159.schemaVersion; - serdeName = other1159.serdeName; - __isset = other1159.__isset; +MapSchemaVersionToSerdeRequest::MapSchemaVersionToSerdeRequest(const MapSchemaVersionToSerdeRequest& other1183) { + schemaVersion = other1183.schemaVersion; + serdeName = other1183.serdeName; + __isset = other1183.__isset; } -MapSchemaVersionToSerdeRequest& MapSchemaVersionToSerdeRequest::operator=(const MapSchemaVersionToSerdeRequest& other1160) { - schemaVersion = other1160.schemaVersion; - serdeName = other1160.serdeName; - __isset = other1160.__isset; +MapSchemaVersionToSerdeRequest& MapSchemaVersionToSerdeRequest::operator=(const MapSchemaVersionToSerdeRequest& other1184) { + schemaVersion = other1184.schemaVersion; + serdeName = other1184.serdeName; + __isset = other1184.__isset; return *this; } void MapSchemaVersionToSerdeRequest::printTo(std::ostream& out) const { @@ -30667,9 +31260,9 @@ uint32_t SetSchemaVersionStateRequest::read(::apache::thrift::protocol::TProtoco break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1161; - xfer += iprot->readI32(ecast1161); - this->state = (SchemaVersionState::type)ecast1161; + int32_t ecast1185; + xfer += iprot->readI32(ecast1185); + this->state = (SchemaVersionState::type)ecast1185; this->__isset.state = true; } else { xfer += iprot->skip(ftype); @@ -30712,15 +31305,15 @@ void swap(SetSchemaVersionStateRequest &a, SetSchemaVersionStateRequest &b) { swap(a.__isset, b.__isset); } -SetSchemaVersionStateRequest::SetSchemaVersionStateRequest(const SetSchemaVersionStateRequest& other1162) { - schemaVersion = other1162.schemaVersion; - state = other1162.state; - __isset = other1162.__isset; +SetSchemaVersionStateRequest::SetSchemaVersionStateRequest(const SetSchemaVersionStateRequest& other1186) { + schemaVersion = other1186.schemaVersion; + state = other1186.state; + __isset = other1186.__isset; } -SetSchemaVersionStateRequest& SetSchemaVersionStateRequest::operator=(const SetSchemaVersionStateRequest& other1163) { - schemaVersion = other1163.schemaVersion; - state = other1163.state; - __isset = other1163.__isset; +SetSchemaVersionStateRequest& SetSchemaVersionStateRequest::operator=(const SetSchemaVersionStateRequest& other1187) { + schemaVersion = other1187.schemaVersion; + state = other1187.state; + __isset = other1187.__isset; return *this; } void SetSchemaVersionStateRequest::printTo(std::ostream& out) const { @@ -30801,13 +31394,13 @@ void swap(GetSerdeRequest &a, GetSerdeRequest &b) { swap(a.__isset, b.__isset); } -GetSerdeRequest::GetSerdeRequest(const GetSerdeRequest& other1164) { - serdeName = other1164.serdeName; - __isset = other1164.__isset; +GetSerdeRequest::GetSerdeRequest(const GetSerdeRequest& other1188) { + serdeName = other1188.serdeName; + __isset = other1188.__isset; } -GetSerdeRequest& GetSerdeRequest::operator=(const GetSerdeRequest& other1165) { - serdeName = other1165.serdeName; - __isset = other1165.__isset; +GetSerdeRequest& GetSerdeRequest::operator=(const GetSerdeRequest& other1189) { + serdeName = other1189.serdeName; + __isset = other1189.__isset; return *this; } void GetSerdeRequest::printTo(std::ostream& out) const { @@ -30929,17 +31522,17 @@ void swap(RuntimeStat &a, RuntimeStat &b) { swap(a.__isset, b.__isset); } -RuntimeStat::RuntimeStat(const RuntimeStat& other1166) { - createTime = other1166.createTime; - weight = other1166.weight; - payload = other1166.payload; - __isset = other1166.__isset; +RuntimeStat::RuntimeStat(const RuntimeStat& other1190) { + createTime = other1190.createTime; + weight = other1190.weight; + payload = other1190.payload; + __isset = other1190.__isset; } -RuntimeStat& RuntimeStat::operator=(const RuntimeStat& other1167) { - createTime = other1167.createTime; - weight = other1167.weight; - payload = other1167.payload; - __isset = other1167.__isset; +RuntimeStat& RuntimeStat::operator=(const RuntimeStat& other1191) { + createTime = other1191.createTime; + weight = other1191.weight; + payload = other1191.payload; + __isset = other1191.__isset; return *this; } void RuntimeStat::printTo(std::ostream& out) const { @@ -31043,13 +31636,13 @@ void swap(GetRuntimeStatsRequest &a, GetRuntimeStatsRequest &b) { swap(a.maxCreateTime, b.maxCreateTime); } -GetRuntimeStatsRequest::GetRuntimeStatsRequest(const GetRuntimeStatsRequest& other1168) { - maxWeight = other1168.maxWeight; - maxCreateTime = other1168.maxCreateTime; +GetRuntimeStatsRequest::GetRuntimeStatsRequest(const GetRuntimeStatsRequest& other1192) { + maxWeight = other1192.maxWeight; + maxCreateTime = other1192.maxCreateTime; } -GetRuntimeStatsRequest& GetRuntimeStatsRequest::operator=(const GetRuntimeStatsRequest& other1169) { - maxWeight = other1169.maxWeight; - maxCreateTime = other1169.maxCreateTime; +GetRuntimeStatsRequest& GetRuntimeStatsRequest::operator=(const GetRuntimeStatsRequest& other1193) { + maxWeight = other1193.maxWeight; + maxCreateTime = other1193.maxCreateTime; return *this; } void GetRuntimeStatsRequest::printTo(std::ostream& out) const { @@ -31130,13 +31723,13 @@ void swap(MetaException &a, MetaException &b) { swap(a.__isset, b.__isset); } -MetaException::MetaException(const MetaException& other1170) : TException() { - message = other1170.message; - __isset = other1170.__isset; +MetaException::MetaException(const MetaException& other1194) : TException() { + message = other1194.message; + __isset = other1194.__isset; } -MetaException& MetaException::operator=(const MetaException& other1171) { - message = other1171.message; - __isset = other1171.__isset; +MetaException& MetaException::operator=(const MetaException& other1195) { + message = other1195.message; + __isset = other1195.__isset; return *this; } void MetaException::printTo(std::ostream& out) const { @@ -31227,13 +31820,13 @@ void swap(UnknownTableException &a, UnknownTableException &b) { swap(a.__isset, b.__isset); } -UnknownTableException::UnknownTableException(const UnknownTableException& other1172) : TException() { - message = other1172.message; - __isset = other1172.__isset; +UnknownTableException::UnknownTableException(const UnknownTableException& other1196) : TException() { + message = other1196.message; + __isset = other1196.__isset; } -UnknownTableException& UnknownTableException::operator=(const UnknownTableException& other1173) { - message = other1173.message; - __isset = other1173.__isset; +UnknownTableException& UnknownTableException::operator=(const UnknownTableException& other1197) { + message = other1197.message; + __isset = other1197.__isset; return *this; } void UnknownTableException::printTo(std::ostream& out) const { @@ -31324,13 +31917,13 @@ void swap(UnknownDBException &a, UnknownDBException &b) { swap(a.__isset, b.__isset); } -UnknownDBException::UnknownDBException(const UnknownDBException& other1174) : TException() { - message = other1174.message; - __isset = other1174.__isset; +UnknownDBException::UnknownDBException(const UnknownDBException& other1198) : TException() { + message = other1198.message; + __isset = other1198.__isset; } -UnknownDBException& UnknownDBException::operator=(const UnknownDBException& other1175) { - message = other1175.message; - __isset = other1175.__isset; +UnknownDBException& UnknownDBException::operator=(const UnknownDBException& other1199) { + message = other1199.message; + __isset = other1199.__isset; return *this; } void UnknownDBException::printTo(std::ostream& out) const { @@ -31421,13 +32014,13 @@ void swap(AlreadyExistsException &a, AlreadyExistsException &b) { swap(a.__isset, b.__isset); } -AlreadyExistsException::AlreadyExistsException(const AlreadyExistsException& other1176) : TException() { - message = other1176.message; - __isset = other1176.__isset; +AlreadyExistsException::AlreadyExistsException(const AlreadyExistsException& other1200) : TException() { + message = other1200.message; + __isset = other1200.__isset; } -AlreadyExistsException& AlreadyExistsException::operator=(const AlreadyExistsException& other1177) { - message = other1177.message; - __isset = other1177.__isset; +AlreadyExistsException& AlreadyExistsException::operator=(const AlreadyExistsException& other1201) { + message = other1201.message; + __isset = other1201.__isset; return *this; } void AlreadyExistsException::printTo(std::ostream& out) const { @@ -31518,13 +32111,13 @@ void swap(InvalidPartitionException &a, InvalidPartitionException &b) { swap(a.__isset, b.__isset); } -InvalidPartitionException::InvalidPartitionException(const InvalidPartitionException& other1178) : TException() { - message = other1178.message; - __isset = other1178.__isset; +InvalidPartitionException::InvalidPartitionException(const InvalidPartitionException& other1202) : TException() { + message = other1202.message; + __isset = other1202.__isset; } -InvalidPartitionException& InvalidPartitionException::operator=(const InvalidPartitionException& other1179) { - message = other1179.message; - __isset = other1179.__isset; +InvalidPartitionException& InvalidPartitionException::operator=(const InvalidPartitionException& other1203) { + message = other1203.message; + __isset = other1203.__isset; return *this; } void InvalidPartitionException::printTo(std::ostream& out) const { @@ -31615,13 +32208,13 @@ void swap(UnknownPartitionException &a, UnknownPartitionException &b) { swap(a.__isset, b.__isset); } -UnknownPartitionException::UnknownPartitionException(const UnknownPartitionException& other1180) : TException() { - message = other1180.message; - __isset = other1180.__isset; +UnknownPartitionException::UnknownPartitionException(const UnknownPartitionException& other1204) : TException() { + message = other1204.message; + __isset = other1204.__isset; } -UnknownPartitionException& UnknownPartitionException::operator=(const UnknownPartitionException& other1181) { - message = other1181.message; - __isset = other1181.__isset; +UnknownPartitionException& UnknownPartitionException::operator=(const UnknownPartitionException& other1205) { + message = other1205.message; + __isset = other1205.__isset; return *this; } void UnknownPartitionException::printTo(std::ostream& out) const { @@ -31712,13 +32305,13 @@ void swap(InvalidObjectException &a, InvalidObjectException &b) { swap(a.__isset, b.__isset); } -InvalidObjectException::InvalidObjectException(const InvalidObjectException& other1182) : TException() { - message = other1182.message; - __isset = other1182.__isset; +InvalidObjectException::InvalidObjectException(const InvalidObjectException& other1206) : TException() { + message = other1206.message; + __isset = other1206.__isset; } -InvalidObjectException& InvalidObjectException::operator=(const InvalidObjectException& other1183) { - message = other1183.message; - __isset = other1183.__isset; +InvalidObjectException& InvalidObjectException::operator=(const InvalidObjectException& other1207) { + message = other1207.message; + __isset = other1207.__isset; return *this; } void InvalidObjectException::printTo(std::ostream& out) const { @@ -31809,13 +32402,13 @@ void swap(NoSuchObjectException &a, NoSuchObjectException &b) { swap(a.__isset, b.__isset); } -NoSuchObjectException::NoSuchObjectException(const NoSuchObjectException& other1184) : TException() { - message = other1184.message; - __isset = other1184.__isset; +NoSuchObjectException::NoSuchObjectException(const NoSuchObjectException& other1208) : TException() { + message = other1208.message; + __isset = other1208.__isset; } -NoSuchObjectException& NoSuchObjectException::operator=(const NoSuchObjectException& other1185) { - message = other1185.message; - __isset = other1185.__isset; +NoSuchObjectException& NoSuchObjectException::operator=(const NoSuchObjectException& other1209) { + message = other1209.message; + __isset = other1209.__isset; return *this; } void NoSuchObjectException::printTo(std::ostream& out) const { @@ -31906,13 +32499,13 @@ void swap(InvalidOperationException &a, InvalidOperationException &b) { swap(a.__isset, b.__isset); } -InvalidOperationException::InvalidOperationException(const InvalidOperationException& other1186) : TException() { - message = other1186.message; - __isset = other1186.__isset; +InvalidOperationException::InvalidOperationException(const InvalidOperationException& other1210) : TException() { + message = other1210.message; + __isset = other1210.__isset; } -InvalidOperationException& InvalidOperationException::operator=(const InvalidOperationException& other1187) { - message = other1187.message; - __isset = other1187.__isset; +InvalidOperationException& InvalidOperationException::operator=(const InvalidOperationException& other1211) { + message = other1211.message; + __isset = other1211.__isset; return *this; } void InvalidOperationException::printTo(std::ostream& out) const { @@ -32003,13 +32596,13 @@ void swap(ConfigValSecurityException &a, ConfigValSecurityException &b) { swap(a.__isset, b.__isset); } -ConfigValSecurityException::ConfigValSecurityException(const ConfigValSecurityException& other1188) : TException() { - message = other1188.message; - __isset = other1188.__isset; +ConfigValSecurityException::ConfigValSecurityException(const ConfigValSecurityException& other1212) : TException() { + message = other1212.message; + __isset = other1212.__isset; } -ConfigValSecurityException& ConfigValSecurityException::operator=(const ConfigValSecurityException& other1189) { - message = other1189.message; - __isset = other1189.__isset; +ConfigValSecurityException& ConfigValSecurityException::operator=(const ConfigValSecurityException& other1213) { + message = other1213.message; + __isset = other1213.__isset; return *this; } void ConfigValSecurityException::printTo(std::ostream& out) const { @@ -32100,13 +32693,13 @@ void swap(InvalidInputException &a, InvalidInputException &b) { swap(a.__isset, b.__isset); } -InvalidInputException::InvalidInputException(const InvalidInputException& other1190) : TException() { - message = other1190.message; - __isset = other1190.__isset; +InvalidInputException::InvalidInputException(const InvalidInputException& other1214) : TException() { + message = other1214.message; + __isset = other1214.__isset; } -InvalidInputException& InvalidInputException::operator=(const InvalidInputException& other1191) { - message = other1191.message; - __isset = other1191.__isset; +InvalidInputException& InvalidInputException::operator=(const InvalidInputException& other1215) { + message = other1215.message; + __isset = other1215.__isset; return *this; } void InvalidInputException::printTo(std::ostream& out) const { @@ -32197,13 +32790,13 @@ void swap(NoSuchTxnException &a, NoSuchTxnException &b) { swap(a.__isset, b.__isset); } -NoSuchTxnException::NoSuchTxnException(const NoSuchTxnException& other1192) : TException() { - message = other1192.message; - __isset = other1192.__isset; +NoSuchTxnException::NoSuchTxnException(const NoSuchTxnException& other1216) : TException() { + message = other1216.message; + __isset = other1216.__isset; } -NoSuchTxnException& NoSuchTxnException::operator=(const NoSuchTxnException& other1193) { - message = other1193.message; - __isset = other1193.__isset; +NoSuchTxnException& NoSuchTxnException::operator=(const NoSuchTxnException& other1217) { + message = other1217.message; + __isset = other1217.__isset; return *this; } void NoSuchTxnException::printTo(std::ostream& out) const { @@ -32294,13 +32887,13 @@ void swap(TxnAbortedException &a, TxnAbortedException &b) { swap(a.__isset, b.__isset); } -TxnAbortedException::TxnAbortedException(const TxnAbortedException& other1194) : TException() { - message = other1194.message; - __isset = other1194.__isset; +TxnAbortedException::TxnAbortedException(const TxnAbortedException& other1218) : TException() { + message = other1218.message; + __isset = other1218.__isset; } -TxnAbortedException& TxnAbortedException::operator=(const TxnAbortedException& other1195) { - message = other1195.message; - __isset = other1195.__isset; +TxnAbortedException& TxnAbortedException::operator=(const TxnAbortedException& other1219) { + message = other1219.message; + __isset = other1219.__isset; return *this; } void TxnAbortedException::printTo(std::ostream& out) const { @@ -32391,13 +32984,13 @@ void swap(TxnOpenException &a, TxnOpenException &b) { swap(a.__isset, b.__isset); } -TxnOpenException::TxnOpenException(const TxnOpenException& other1196) : TException() { - message = other1196.message; - __isset = other1196.__isset; +TxnOpenException::TxnOpenException(const TxnOpenException& other1220) : TException() { + message = other1220.message; + __isset = other1220.__isset; } -TxnOpenException& TxnOpenException::operator=(const TxnOpenException& other1197) { - message = other1197.message; - __isset = other1197.__isset; +TxnOpenException& TxnOpenException::operator=(const TxnOpenException& other1221) { + message = other1221.message; + __isset = other1221.__isset; return *this; } void TxnOpenException::printTo(std::ostream& out) const { @@ -32488,13 +33081,13 @@ void swap(NoSuchLockException &a, NoSuchLockException &b) { swap(a.__isset, b.__isset); } -NoSuchLockException::NoSuchLockException(const NoSuchLockException& other1198) : TException() { - message = other1198.message; - __isset = other1198.__isset; +NoSuchLockException::NoSuchLockException(const NoSuchLockException& other1222) : TException() { + message = other1222.message; + __isset = other1222.__isset; } -NoSuchLockException& NoSuchLockException::operator=(const NoSuchLockException& other1199) { - message = other1199.message; - __isset = other1199.__isset; +NoSuchLockException& NoSuchLockException::operator=(const NoSuchLockException& other1223) { + message = other1223.message; + __isset = other1223.__isset; return *this; } void NoSuchLockException::printTo(std::ostream& out) const { diff --git a/standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h b/standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h index 78656d9328..38a6faba5e 100644 --- a/standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h +++ b/standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h @@ -443,6 +443,8 @@ class AbortTxnsRequest; class CommitTxnRequest; +class WriteEventInfo; + class ReplTblWriteIdStateRequest; class GetValidWriteIdsRequest; @@ -515,6 +517,10 @@ class FireEventRequest; class FireEventResponse; +class WriteNotificationLogRequest; + +class WriteNotificationLogResponse; + class MetadataPpdResult; class GetFileMetadataByExprResult; @@ -6931,8 +6937,9 @@ inline std::ostream& operator<<(std::ostream& out, const AbortTxnsRequest& obj) } typedef struct _CommitTxnRequest__isset { - _CommitTxnRequest__isset() : replPolicy(false) {} + _CommitTxnRequest__isset() : replPolicy(false), writeEventInfos(false) {} bool replPolicy :1; + bool writeEventInfos :1; } _CommitTxnRequest__isset; class CommitTxnRequest { @@ -6946,6 +6953,7 @@ class CommitTxnRequest { virtual ~CommitTxnRequest() throw(); int64_t txnid; std::string replPolicy; + std::vector writeEventInfos; _CommitTxnRequest__isset __isset; @@ -6953,6 +6961,8 @@ class CommitTxnRequest { void __set_replPolicy(const std::string& val); + void __set_writeEventInfos(const std::vector & val); + bool operator == (const CommitTxnRequest & rhs) const { if (!(txnid == rhs.txnid)) @@ -6961,6 +6971,10 @@ class CommitTxnRequest { return false; else if (__isset.replPolicy && !(replPolicy == rhs.replPolicy)) return false; + if (__isset.writeEventInfos != rhs.__isset.writeEventInfos) + return false; + else if (__isset.writeEventInfos && !(writeEventInfos == rhs.writeEventInfos)) + return false; return true; } bool operator != (const CommitTxnRequest &rhs) const { @@ -6983,6 +6997,90 @@ inline std::ostream& operator<<(std::ostream& out, const CommitTxnRequest& obj) return out; } +typedef struct _WriteEventInfo__isset { + _WriteEventInfo__isset() : partition(false), tableObj(false), partitionObj(false) {} + bool partition :1; + bool tableObj :1; + bool partitionObj :1; +} _WriteEventInfo__isset; + +class WriteEventInfo { + public: + + WriteEventInfo(const WriteEventInfo&); + WriteEventInfo& operator=(const WriteEventInfo&); + WriteEventInfo() : writeId(0), database(), table(), files(), partition(), tableObj(), partitionObj() { + } + + virtual ~WriteEventInfo() throw(); + int64_t writeId; + std::string database; + std::string table; + std::string files; + std::string partition; + std::string tableObj; + std::string partitionObj; + + _WriteEventInfo__isset __isset; + + void __set_writeId(const int64_t val); + + void __set_database(const std::string& val); + + void __set_table(const std::string& val); + + void __set_files(const std::string& val); + + void __set_partition(const std::string& val); + + void __set_tableObj(const std::string& val); + + void __set_partitionObj(const std::string& val); + + bool operator == (const WriteEventInfo & rhs) const + { + if (!(writeId == rhs.writeId)) + return false; + if (!(database == rhs.database)) + return false; + if (!(table == rhs.table)) + return false; + if (!(files == rhs.files)) + return false; + if (__isset.partition != rhs.__isset.partition) + return false; + else if (__isset.partition && !(partition == rhs.partition)) + return false; + if (__isset.tableObj != rhs.__isset.tableObj) + return false; + else if (__isset.tableObj && !(tableObj == rhs.tableObj)) + return false; + if (__isset.partitionObj != rhs.__isset.partitionObj) + return false; + else if (__isset.partitionObj && !(partitionObj == rhs.partitionObj)) + return false; + return true; + } + bool operator != (const WriteEventInfo &rhs) const { + return !(*this == rhs); + } + + bool operator < (const WriteEventInfo & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; +}; + +void swap(WriteEventInfo &a, WriteEventInfo &b); + +inline std::ostream& operator<<(std::ostream& out, const WriteEventInfo& obj) +{ + obj.printTo(out); + return out; +} + typedef struct _ReplTblWriteIdStateRequest__isset { _ReplTblWriteIdStateRequest__isset() : partNames(false) {} bool partNames :1; @@ -8981,9 +9079,10 @@ inline std::ostream& operator<<(std::ostream& out, const NotificationEventsCount } typedef struct _InsertEventRequestData__isset { - _InsertEventRequestData__isset() : replace(false), filesAddedChecksum(false) {} + _InsertEventRequestData__isset() : replace(false), filesAddedChecksum(false), subDirectoryList(false) {} bool replace :1; bool filesAddedChecksum :1; + bool subDirectoryList :1; } _InsertEventRequestData__isset; class InsertEventRequestData { @@ -8998,6 +9097,7 @@ class InsertEventRequestData { bool replace; std::vector filesAdded; std::vector filesAddedChecksum; + std::vector subDirectoryList; _InsertEventRequestData__isset __isset; @@ -9007,6 +9107,8 @@ class InsertEventRequestData { void __set_filesAddedChecksum(const std::vector & val); + void __set_subDirectoryList(const std::vector & val); + bool operator == (const InsertEventRequestData & rhs) const { if (__isset.replace != rhs.__isset.replace) @@ -9019,6 +9121,10 @@ class InsertEventRequestData { return false; else if (__isset.filesAddedChecksum && !(filesAddedChecksum == rhs.filesAddedChecksum)) return false; + if (__isset.subDirectoryList != rhs.__isset.subDirectoryList) + return false; + else if (__isset.subDirectoryList && !(subDirectoryList == rhs.subDirectoryList)) + return false; return true; } bool operator != (const InsertEventRequestData &rhs) const { @@ -9204,6 +9310,114 @@ inline std::ostream& operator<<(std::ostream& out, const FireEventResponse& obj) return out; } +typedef struct _WriteNotificationLogRequest__isset { + _WriteNotificationLogRequest__isset() : partitionVals(false) {} + bool partitionVals :1; +} _WriteNotificationLogRequest__isset; + +class WriteNotificationLogRequest { + public: + + WriteNotificationLogRequest(const WriteNotificationLogRequest&); + WriteNotificationLogRequest& operator=(const WriteNotificationLogRequest&); + WriteNotificationLogRequest() : txnId(0), writeId(0), db(), table() { + } + + virtual ~WriteNotificationLogRequest() throw(); + int64_t txnId; + int64_t writeId; + std::string db; + std::string table; + InsertEventRequestData fileInfo; + std::vector partitionVals; + + _WriteNotificationLogRequest__isset __isset; + + void __set_txnId(const int64_t val); + + void __set_writeId(const int64_t val); + + void __set_db(const std::string& val); + + void __set_table(const std::string& val); + + void __set_fileInfo(const InsertEventRequestData& val); + + void __set_partitionVals(const std::vector & val); + + bool operator == (const WriteNotificationLogRequest & rhs) const + { + if (!(txnId == rhs.txnId)) + return false; + if (!(writeId == rhs.writeId)) + return false; + if (!(db == rhs.db)) + return false; + if (!(table == rhs.table)) + return false; + if (!(fileInfo == rhs.fileInfo)) + return false; + if (__isset.partitionVals != rhs.__isset.partitionVals) + return false; + else if (__isset.partitionVals && !(partitionVals == rhs.partitionVals)) + return false; + return true; + } + bool operator != (const WriteNotificationLogRequest &rhs) const { + return !(*this == rhs); + } + + bool operator < (const WriteNotificationLogRequest & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; +}; + +void swap(WriteNotificationLogRequest &a, WriteNotificationLogRequest &b); + +inline std::ostream& operator<<(std::ostream& out, const WriteNotificationLogRequest& obj) +{ + obj.printTo(out); + return out; +} + + +class WriteNotificationLogResponse { + public: + + WriteNotificationLogResponse(const WriteNotificationLogResponse&); + WriteNotificationLogResponse& operator=(const WriteNotificationLogResponse&); + WriteNotificationLogResponse() { + } + + virtual ~WriteNotificationLogResponse() throw(); + + bool operator == (const WriteNotificationLogResponse & /* rhs */) const + { + return true; + } + bool operator != (const WriteNotificationLogResponse &rhs) const { + return !(*this == rhs); + } + + bool operator < (const WriteNotificationLogResponse & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; +}; + +void swap(WriteNotificationLogResponse &a, WriteNotificationLogResponse &b); + +inline std::ostream& operator<<(std::ostream& out, const WriteNotificationLogResponse& obj) +{ + obj.printTo(out); + return out; +} + typedef struct _MetadataPpdResult__isset { _MetadataPpdResult__isset() : metadata(false), includeBitset(false) {} bool metadata :1; diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java index 1dcc8707b5..3ce72e9ce6 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java +++ b/standalone-metastore/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 _list700 = iprot.readListBegin(); - struct.partitionnames = new ArrayList(_list700.size); - String _elem701; - for (int _i702 = 0; _i702 < _list700.size; ++_i702) + org.apache.thrift.protocol.TList _list708 = iprot.readListBegin(); + struct.partitionnames = new ArrayList(_list708.size); + String _elem709; + for (int _i710 = 0; _i710 < _list708.size; ++_i710) { - _elem701 = iprot.readString(); - struct.partitionnames.add(_elem701); + _elem709 = iprot.readString(); + struct.partitionnames.add(_elem709); } 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 _iter703 : struct.partitionnames) + for (String _iter711 : struct.partitionnames) { - oprot.writeString(_iter703); + oprot.writeString(_iter711); } 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 _iter704 : struct.partitionnames) + for (String _iter712 : struct.partitionnames) { - oprot.writeString(_iter704); + oprot.writeString(_iter712); } } 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 _list705 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partitionnames = new ArrayList(_list705.size); - String _elem706; - for (int _i707 = 0; _i707 < _list705.size; ++_i707) + org.apache.thrift.protocol.TList _list713 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionnames = new ArrayList(_list713.size); + String _elem714; + for (int _i715 = 0; _i715 < _list713.size; ++_i715) { - _elem706 = iprot.readString(); - struct.partitionnames.add(_elem706); + _elem714 = iprot.readString(); + struct.partitionnames.add(_elem714); } } struct.setPartitionnamesIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AllocateTableWriteIdsRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AllocateTableWriteIdsRequest.java index fa33963799..a0b47a9c67 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AllocateTableWriteIdsRequest.java +++ b/standalone-metastore/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 _list626 = iprot.readListBegin(); - struct.txnIds = new ArrayList(_list626.size); - long _elem627; - for (int _i628 = 0; _i628 < _list626.size; ++_i628) + org.apache.thrift.protocol.TList _list634 = iprot.readListBegin(); + struct.txnIds = new ArrayList(_list634.size); + long _elem635; + for (int _i636 = 0; _i636 < _list634.size; ++_i636) { - _elem627 = iprot.readI64(); - struct.txnIds.add(_elem627); + _elem635 = iprot.readI64(); + struct.txnIds.add(_elem635); } 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 _list629 = iprot.readListBegin(); - struct.srcTxnToWriteIdList = new ArrayList(_list629.size); - TxnToWriteId _elem630; - for (int _i631 = 0; _i631 < _list629.size; ++_i631) + org.apache.thrift.protocol.TList _list637 = iprot.readListBegin(); + struct.srcTxnToWriteIdList = new ArrayList(_list637.size); + TxnToWriteId _elem638; + for (int _i639 = 0; _i639 < _list637.size; ++_i639) { - _elem630 = new TxnToWriteId(); - _elem630.read(iprot); - struct.srcTxnToWriteIdList.add(_elem630); + _elem638 = new TxnToWriteId(); + _elem638.read(iprot); + struct.srcTxnToWriteIdList.add(_elem638); } 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 _iter632 : struct.txnIds) + for (long _iter640 : struct.txnIds) { - oprot.writeI64(_iter632); + oprot.writeI64(_iter640); } 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 _iter633 : struct.srcTxnToWriteIdList) + for (TxnToWriteId _iter641 : struct.srcTxnToWriteIdList) { - _iter633.write(oprot); + _iter641.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 _iter634 : struct.txnIds) + for (long _iter642 : struct.txnIds) { - oprot.writeI64(_iter634); + oprot.writeI64(_iter642); } } } @@ -861,9 +861,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AllocateTableWriteI if (struct.isSetSrcTxnToWriteIdList()) { { oprot.writeI32(struct.srcTxnToWriteIdList.size()); - for (TxnToWriteId _iter635 : struct.srcTxnToWriteIdList) + for (TxnToWriteId _iter643 : struct.srcTxnToWriteIdList) { - _iter635.write(oprot); + _iter643.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 _list636 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.txnIds = new ArrayList(_list636.size); - long _elem637; - for (int _i638 = 0; _i638 < _list636.size; ++_i638) + org.apache.thrift.protocol.TList _list644 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.txnIds = new ArrayList(_list644.size); + long _elem645; + for (int _i646 = 0; _i646 < _list644.size; ++_i646) { - _elem637 = iprot.readI64(); - struct.txnIds.add(_elem637); + _elem645 = iprot.readI64(); + struct.txnIds.add(_elem645); } } 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 _list639 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.srcTxnToWriteIdList = new ArrayList(_list639.size); - TxnToWriteId _elem640; - for (int _i641 = 0; _i641 < _list639.size; ++_i641) + org.apache.thrift.protocol.TList _list647 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.srcTxnToWriteIdList = new ArrayList(_list647.size); + TxnToWriteId _elem648; + for (int _i649 = 0; _i649 < _list647.size; ++_i649) { - _elem640 = new TxnToWriteId(); - _elem640.read(iprot); - struct.srcTxnToWriteIdList.add(_elem640); + _elem648 = new TxnToWriteId(); + _elem648.read(iprot); + struct.srcTxnToWriteIdList.add(_elem648); } } struct.setSrcTxnToWriteIdListIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AllocateTableWriteIdsResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AllocateTableWriteIdsResponse.java index 20dc757dc7..13df26d5fd 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AllocateTableWriteIdsResponse.java +++ b/standalone-metastore/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 _list642 = iprot.readListBegin(); - struct.txnToWriteIds = new ArrayList(_list642.size); - TxnToWriteId _elem643; - for (int _i644 = 0; _i644 < _list642.size; ++_i644) + org.apache.thrift.protocol.TList _list650 = iprot.readListBegin(); + struct.txnToWriteIds = new ArrayList(_list650.size); + TxnToWriteId _elem651; + for (int _i652 = 0; _i652 < _list650.size; ++_i652) { - _elem643 = new TxnToWriteId(); - _elem643.read(iprot); - struct.txnToWriteIds.add(_elem643); + _elem651 = new TxnToWriteId(); + _elem651.read(iprot); + struct.txnToWriteIds.add(_elem651); } 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 _iter645 : struct.txnToWriteIds) + for (TxnToWriteId _iter653 : struct.txnToWriteIds) { - _iter645.write(oprot); + _iter653.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 _iter646 : struct.txnToWriteIds) + for (TxnToWriteId _iter654 : struct.txnToWriteIds) { - _iter646.write(oprot); + _iter654.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 _list647 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.txnToWriteIds = new ArrayList(_list647.size); - TxnToWriteId _elem648; - for (int _i649 = 0; _i649 < _list647.size; ++_i649) + org.apache.thrift.protocol.TList _list655 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.txnToWriteIds = new ArrayList(_list655.size); + TxnToWriteId _elem656; + for (int _i657 = 0; _i657 < _list655.size; ++_i657) { - _elem648 = new TxnToWriteId(); - _elem648.read(iprot); - struct.txnToWriteIds.add(_elem648); + _elem656 = new TxnToWriteId(); + _elem656.read(iprot); + struct.txnToWriteIds.add(_elem656); } } struct.setTxnToWriteIdsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java index 470a0706a2..1af1628a41 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java +++ b/standalone-metastore/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 _list800 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list800.size); - long _elem801; - for (int _i802 = 0; _i802 < _list800.size; ++_i802) + org.apache.thrift.protocol.TList _list824 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list824.size); + long _elem825; + for (int _i826 = 0; _i826 < _list824.size; ++_i826) { - _elem801 = iprot.readI64(); - struct.fileIds.add(_elem801); + _elem825 = iprot.readI64(); + struct.fileIds.add(_elem825); } 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 _iter803 : struct.fileIds) + for (long _iter827 : struct.fileIds) { - oprot.writeI64(_iter803); + oprot.writeI64(_iter827); } 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 _iter804 : struct.fileIds) + for (long _iter828 : struct.fileIds) { - oprot.writeI64(_iter804); + oprot.writeI64(_iter828); } } } @@ -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 _list805 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list805.size); - long _elem806; - for (int _i807 = 0; _i807 < _list805.size; ++_i807) + org.apache.thrift.protocol.TList _list829 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list829.size); + long _elem830; + for (int _i831 = 0; _i831 < _list829.size; ++_i831) { - _elem806 = iprot.readI64(); - struct.fileIds.add(_elem806); + _elem830 = iprot.readI64(); + struct.fileIds.add(_elem830); } } struct.setFileIdsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClientCapabilities.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClientCapabilities.java index af48583c18..4cd04f1d92 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClientCapabilities.java +++ b/standalone-metastore/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 _list816 = iprot.readListBegin(); - struct.values = new ArrayList(_list816.size); - ClientCapability _elem817; - for (int _i818 = 0; _i818 < _list816.size; ++_i818) + org.apache.thrift.protocol.TList _list840 = iprot.readListBegin(); + struct.values = new ArrayList(_list840.size); + ClientCapability _elem841; + for (int _i842 = 0; _i842 < _list840.size; ++_i842) { - _elem817 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); - struct.values.add(_elem817); + _elem841 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); + struct.values.add(_elem841); } 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 _iter819 : struct.values) + for (ClientCapability _iter843 : struct.values) { - oprot.writeI32(_iter819.getValue()); + oprot.writeI32(_iter843.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 _iter820 : struct.values) + for (ClientCapability _iter844 : struct.values) { - oprot.writeI32(_iter820.getValue()); + oprot.writeI32(_iter844.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 _list821 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); - struct.values = new ArrayList(_list821.size); - ClientCapability _elem822; - for (int _i823 = 0; _i823 < _list821.size; ++_i823) + org.apache.thrift.protocol.TList _list845 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); + struct.values = new ArrayList(_list845.size); + ClientCapability _elem846; + for (int _i847 = 0; _i847 < _list845.size; ++_i847) { - _elem822 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); - struct.values.add(_elem822); + _elem846 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); + struct.values.add(_elem846); } } struct.setValuesIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CommitTxnRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CommitTxnRequest.java index 3c15f84942..f29595886b 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CommitTxnRequest.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CommitTxnRequest.java @@ -40,6 +40,7 @@ private static final org.apache.thrift.protocol.TField TXNID_FIELD_DESC = new org.apache.thrift.protocol.TField("txnid", org.apache.thrift.protocol.TType.I64, (short)1); private static final org.apache.thrift.protocol.TField REPL_POLICY_FIELD_DESC = new org.apache.thrift.protocol.TField("replPolicy", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField WRITE_EVENT_INFOS_FIELD_DESC = new org.apache.thrift.protocol.TField("writeEventInfos", org.apache.thrift.protocol.TType.LIST, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -49,11 +50,13 @@ private long txnid; // required private String replPolicy; // optional + private List writeEventInfos; // 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 { TXNID((short)1, "txnid"), - REPL_POLICY((short)2, "replPolicy"); + REPL_POLICY((short)2, "replPolicy"), + WRITE_EVENT_INFOS((short)3, "writeEventInfos"); private static final Map byName = new HashMap(); @@ -72,6 +75,8 @@ public static _Fields findByThriftId(int fieldId) { return TXNID; case 2: // REPL_POLICY return REPL_POLICY; + case 3: // WRITE_EVENT_INFOS + return WRITE_EVENT_INFOS; default: return null; } @@ -114,7 +119,7 @@ public String getFieldName() { // isset id assignments private static final int __TXNID_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.REPL_POLICY}; + private static final _Fields optionals[] = {_Fields.REPL_POLICY,_Fields.WRITE_EVENT_INFOS}; 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); @@ -122,6 +127,9 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.REPL_POLICY, new org.apache.thrift.meta_data.FieldMetaData("replPolicy", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.WRITE_EVENT_INFOS, new org.apache.thrift.meta_data.FieldMetaData("writeEventInfos", 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.STRUCT , "WriteEventInfo")))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(CommitTxnRequest.class, metaDataMap); } @@ -146,6 +154,13 @@ public CommitTxnRequest(CommitTxnRequest other) { if (other.isSetReplPolicy()) { this.replPolicy = other.replPolicy; } + if (other.isSetWriteEventInfos()) { + List __this__writeEventInfos = new ArrayList(other.writeEventInfos.size()); + for (WriteEventInfo other_element : other.writeEventInfos) { + __this__writeEventInfos.add(other_element); + } + this.writeEventInfos = __this__writeEventInfos; + } } public CommitTxnRequest deepCopy() { @@ -157,6 +172,7 @@ public void clear() { setTxnidIsSet(false); this.txnid = 0; this.replPolicy = null; + this.writeEventInfos = null; } public long getTxnid() { @@ -204,6 +220,44 @@ public void setReplPolicyIsSet(boolean value) { } } + public int getWriteEventInfosSize() { + return (this.writeEventInfos == null) ? 0 : this.writeEventInfos.size(); + } + + public java.util.Iterator getWriteEventInfosIterator() { + return (this.writeEventInfos == null) ? null : this.writeEventInfos.iterator(); + } + + public void addToWriteEventInfos(WriteEventInfo elem) { + if (this.writeEventInfos == null) { + this.writeEventInfos = new ArrayList(); + } + this.writeEventInfos.add(elem); + } + + public List getWriteEventInfos() { + return this.writeEventInfos; + } + + public void setWriteEventInfos(List writeEventInfos) { + this.writeEventInfos = writeEventInfos; + } + + public void unsetWriteEventInfos() { + this.writeEventInfos = null; + } + + /** Returns true if field writeEventInfos is set (has been assigned a value) and false otherwise */ + public boolean isSetWriteEventInfos() { + return this.writeEventInfos != null; + } + + public void setWriteEventInfosIsSet(boolean value) { + if (!value) { + this.writeEventInfos = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case TXNID: @@ -222,6 +276,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case WRITE_EVENT_INFOS: + if (value == null) { + unsetWriteEventInfos(); + } else { + setWriteEventInfos((List)value); + } + break; + } } @@ -233,6 +295,9 @@ public Object getFieldValue(_Fields field) { case REPL_POLICY: return getReplPolicy(); + case WRITE_EVENT_INFOS: + return getWriteEventInfos(); + } throw new IllegalStateException(); } @@ -248,6 +313,8 @@ public boolean isSet(_Fields field) { return isSetTxnid(); case REPL_POLICY: return isSetReplPolicy(); + case WRITE_EVENT_INFOS: + return isSetWriteEventInfos(); } throw new IllegalStateException(); } @@ -283,6 +350,15 @@ public boolean equals(CommitTxnRequest that) { return false; } + boolean this_present_writeEventInfos = true && this.isSetWriteEventInfos(); + boolean that_present_writeEventInfos = true && that.isSetWriteEventInfos(); + if (this_present_writeEventInfos || that_present_writeEventInfos) { + if (!(this_present_writeEventInfos && that_present_writeEventInfos)) + return false; + if (!this.writeEventInfos.equals(that.writeEventInfos)) + return false; + } + return true; } @@ -300,6 +376,11 @@ public int hashCode() { if (present_replPolicy) list.add(replPolicy); + boolean present_writeEventInfos = true && (isSetWriteEventInfos()); + list.add(present_writeEventInfos); + if (present_writeEventInfos) + list.add(writeEventInfos); + return list.hashCode(); } @@ -331,6 +412,16 @@ public int compareTo(CommitTxnRequest other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetWriteEventInfos()).compareTo(other.isSetWriteEventInfos()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetWriteEventInfos()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.writeEventInfos, other.writeEventInfos); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -364,6 +455,16 @@ public String toString() { } first = false; } + if (isSetWriteEventInfos()) { + if (!first) sb.append(", "); + sb.append("writeEventInfos:"); + if (this.writeEventInfos == null) { + sb.append("null"); + } else { + sb.append(this.writeEventInfos); + } + first = false; + } sb.append(")"); return sb.toString(); } @@ -429,6 +530,25 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, CommitTxnRequest st org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // WRITE_EVENT_INFOS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list594 = iprot.readListBegin(); + struct.writeEventInfos = new ArrayList(_list594.size); + WriteEventInfo _elem595; + for (int _i596 = 0; _i596 < _list594.size; ++_i596) + { + _elem595 = new WriteEventInfo(); + _elem595.read(iprot); + struct.writeEventInfos.add(_elem595); + } + iprot.readListEnd(); + } + struct.setWriteEventInfosIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -452,6 +572,20 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, CommitTxnRequest s oprot.writeFieldEnd(); } } + if (struct.writeEventInfos != null) { + if (struct.isSetWriteEventInfos()) { + 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 _iter597 : struct.writeEventInfos) + { + _iter597.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -474,10 +608,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, CommitTxnRequest st if (struct.isSetReplPolicy()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); + if (struct.isSetWriteEventInfos()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); if (struct.isSetReplPolicy()) { oprot.writeString(struct.replPolicy); } + if (struct.isSetWriteEventInfos()) { + { + oprot.writeI32(struct.writeEventInfos.size()); + for (WriteEventInfo _iter598 : struct.writeEventInfos) + { + _iter598.write(oprot); + } + } + } } @Override @@ -485,11 +631,25 @@ public void read(org.apache.thrift.protocol.TProtocol prot, CommitTxnRequest str TTupleProtocol iprot = (TTupleProtocol) prot; struct.txnid = iprot.readI64(); struct.setTxnidIsSet(true); - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.replPolicy = iprot.readString(); struct.setReplPolicyIsSet(true); } + if (incoming.get(1)) { + { + org.apache.thrift.protocol.TList _list599 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.writeEventInfos = new ArrayList(_list599.size); + WriteEventInfo _elem600; + for (int _i601 = 0; _i601 < _list599.size; ++_i601) + { + _elem600 = new WriteEventInfo(); + _elem600.read(iprot); + struct.writeEventInfos.add(_elem600); + } + } + struct.setWriteEventInfosIsSet(true); + } } } diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionRequest.java index 31f2e144a9..57eb5efffb 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionRequest.java +++ b/standalone-metastore/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 _map682 = iprot.readMapBegin(); - struct.properties = new HashMap(2*_map682.size); - String _key683; - String _val684; - for (int _i685 = 0; _i685 < _map682.size; ++_i685) + org.apache.thrift.protocol.TMap _map690 = iprot.readMapBegin(); + struct.properties = new HashMap(2*_map690.size); + String _key691; + String _val692; + for (int _i693 = 0; _i693 < _map690.size; ++_i693) { - _key683 = iprot.readString(); - _val684 = iprot.readString(); - struct.properties.put(_key683, _val684); + _key691 = iprot.readString(); + _val692 = iprot.readString(); + struct.properties.put(_key691, _val692); } 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 _iter686 : struct.properties.entrySet()) + for (Map.Entry _iter694 : struct.properties.entrySet()) { - oprot.writeString(_iter686.getKey()); - oprot.writeString(_iter686.getValue()); + oprot.writeString(_iter694.getKey()); + oprot.writeString(_iter694.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 _iter687 : struct.properties.entrySet()) + for (Map.Entry _iter695 : struct.properties.entrySet()) { - oprot.writeString(_iter687.getKey()); - oprot.writeString(_iter687.getValue()); + oprot.writeString(_iter695.getKey()); + oprot.writeString(_iter695.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 _map688 = 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*_map688.size); - String _key689; - String _val690; - for (int _i691 = 0; _i691 < _map688.size; ++_i691) + org.apache.thrift.protocol.TMap _map696 = 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*_map696.size); + String _key697; + String _val698; + for (int _i699 = 0; _i699 < _map696.size; ++_i699) { - _key689 = iprot.readString(); - _val690 = iprot.readString(); - struct.properties.put(_key689, _val690); + _key697 = iprot.readString(); + _val698 = iprot.readString(); + struct.properties.put(_key697, _val698); } } struct.setPropertiesIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CreationMetadata.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CreationMetadata.java index ab7b0594f0..611bf6fa82 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CreationMetadata.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CreationMetadata.java @@ -712,13 +712,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, CreationMetadata st case 4: // TABLES_USED if (schemeField.type == org.apache.thrift.protocol.TType.SET) { { - org.apache.thrift.protocol.TSet _set708 = iprot.readSetBegin(); - struct.tablesUsed = new HashSet(2*_set708.size); - String _elem709; - for (int _i710 = 0; _i710 < _set708.size; ++_i710) + org.apache.thrift.protocol.TSet _set716 = iprot.readSetBegin(); + struct.tablesUsed = new HashSet(2*_set716.size); + String _elem717; + for (int _i718 = 0; _i718 < _set716.size; ++_i718) { - _elem709 = iprot.readString(); - struct.tablesUsed.add(_elem709); + _elem717 = iprot.readString(); + struct.tablesUsed.add(_elem717); } iprot.readSetEnd(); } @@ -767,9 +767,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, CreationMetadata s oprot.writeFieldBegin(TABLES_USED_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, struct.tablesUsed.size())); - for (String _iter711 : struct.tablesUsed) + for (String _iter719 : struct.tablesUsed) { - oprot.writeString(_iter711); + oprot.writeString(_iter719); } oprot.writeSetEnd(); } @@ -804,9 +804,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, CreationMetadata st oprot.writeString(struct.tblName); { oprot.writeI32(struct.tablesUsed.size()); - for (String _iter712 : struct.tablesUsed) + for (String _iter720 : struct.tablesUsed) { - oprot.writeString(_iter712); + oprot.writeString(_iter720); } } BitSet optionals = new BitSet(); @@ -829,13 +829,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, CreationMetadata str struct.tblName = iprot.readString(); struct.setTblNameIsSet(true); { - org.apache.thrift.protocol.TSet _set713 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tablesUsed = new HashSet(2*_set713.size); - String _elem714; - for (int _i715 = 0; _i715 < _set713.size; ++_i715) + org.apache.thrift.protocol.TSet _set721 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tablesUsed = new HashSet(2*_set721.size); + String _elem722; + for (int _i723 = 0; _i723 < _set721.size; ++_i723) { - _elem714 = iprot.readString(); - struct.tablesUsed.add(_elem714); + _elem722 = iprot.readString(); + struct.tablesUsed.add(_elem722); } } struct.setTablesUsedIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FindSchemasByColsResp.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FindSchemasByColsResp.java index e43493e925..8f5b4e5bb4 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FindSchemasByColsResp.java +++ b/standalone-metastore/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 _list920 = iprot.readListBegin(); - struct.schemaVersions = new ArrayList(_list920.size); - SchemaVersionDescriptor _elem921; - for (int _i922 = 0; _i922 < _list920.size; ++_i922) + org.apache.thrift.protocol.TList _list944 = iprot.readListBegin(); + struct.schemaVersions = new ArrayList(_list944.size); + SchemaVersionDescriptor _elem945; + for (int _i946 = 0; _i946 < _list944.size; ++_i946) { - _elem921 = new SchemaVersionDescriptor(); - _elem921.read(iprot); - struct.schemaVersions.add(_elem921); + _elem945 = new SchemaVersionDescriptor(); + _elem945.read(iprot); + struct.schemaVersions.add(_elem945); } 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 _iter923 : struct.schemaVersions) + for (SchemaVersionDescriptor _iter947 : struct.schemaVersions) { - _iter923.write(oprot); + _iter947.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 _iter924 : struct.schemaVersions) + for (SchemaVersionDescriptor _iter948 : struct.schemaVersions) { - _iter924.write(oprot); + _iter948.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 _list925 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.schemaVersions = new ArrayList(_list925.size); - SchemaVersionDescriptor _elem926; - for (int _i927 = 0; _i927 < _list925.size; ++_i927) + org.apache.thrift.protocol.TList _list949 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.schemaVersions = new ArrayList(_list949.size); + SchemaVersionDescriptor _elem950; + for (int _i951 = 0; _i951 < _list949.size; ++_i951) { - _elem926 = new SchemaVersionDescriptor(); - _elem926.read(iprot); - struct.schemaVersions.add(_elem926); + _elem950 = new SchemaVersionDescriptor(); + _elem950.read(iprot); + struct.schemaVersions.add(_elem950); } } struct.setSchemaVersionsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java index 7b0ec6c20a..2560922cfb 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java +++ b/standalone-metastore/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 _list740 = iprot.readListBegin(); - struct.partitionVals = new ArrayList(_list740.size); - String _elem741; - for (int _i742 = 0; _i742 < _list740.size; ++_i742) + org.apache.thrift.protocol.TList _list756 = iprot.readListBegin(); + struct.partitionVals = new ArrayList(_list756.size); + String _elem757; + for (int _i758 = 0; _i758 < _list756.size; ++_i758) { - _elem741 = iprot.readString(); - struct.partitionVals.add(_elem741); + _elem757 = iprot.readString(); + struct.partitionVals.add(_elem757); } 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 _iter743 : struct.partitionVals) + for (String _iter759 : struct.partitionVals) { - oprot.writeString(_iter743); + oprot.writeString(_iter759); } 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 _iter744 : struct.partitionVals) + for (String _iter760 : struct.partitionVals) { - oprot.writeString(_iter744); + oprot.writeString(_iter760); } } } @@ -945,13 +945,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, FireEventRequest str } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list745 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partitionVals = new ArrayList(_list745.size); - String _elem746; - for (int _i747 = 0; _i747 < _list745.size; ++_i747) + org.apache.thrift.protocol.TList _list761 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionVals = new ArrayList(_list761.size); + String _elem762; + for (int _i763 = 0; _i763 < _list761.size; ++_i763) { - _elem746 = iprot.readString(); - struct.partitionVals.add(_elem746); + _elem762 = iprot.readString(); + struct.partitionVals.add(_elem762); } } struct.setPartitionValsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java index 544ba19c24..f68afe8494 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java +++ b/standalone-metastore/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 _list808 = iprot.readListBegin(); - struct.functions = new ArrayList(_list808.size); - Function _elem809; - for (int _i810 = 0; _i810 < _list808.size; ++_i810) + org.apache.thrift.protocol.TList _list832 = iprot.readListBegin(); + struct.functions = new ArrayList(_list832.size); + Function _elem833; + for (int _i834 = 0; _i834 < _list832.size; ++_i834) { - _elem809 = new Function(); - _elem809.read(iprot); - struct.functions.add(_elem809); + _elem833 = new Function(); + _elem833.read(iprot); + struct.functions.add(_elem833); } 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 _iter811 : struct.functions) + for (Function _iter835 : struct.functions) { - _iter811.write(oprot); + _iter835.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 _iter812 : struct.functions) + for (Function _iter836 : struct.functions) { - _iter812.write(oprot); + _iter836.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 _list813 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.functions = new ArrayList(_list813.size); - Function _elem814; - for (int _i815 = 0; _i815 < _list813.size; ++_i815) + org.apache.thrift.protocol.TList _list837 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.functions = new ArrayList(_list837.size); + Function _elem838; + for (int _i839 = 0; _i839 < _list837.size; ++_i839) { - _elem814 = new Function(); - _elem814.read(iprot); - struct.functions.add(_elem814); + _elem838 = new Function(); + _elem838.read(iprot); + struct.functions.add(_elem838); } } struct.setFunctionsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprRequest.java index 0a94f2f899..836f35fe95 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprRequest.java +++ b/standalone-metastore/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 _list758 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list758.size); - long _elem759; - for (int _i760 = 0; _i760 < _list758.size; ++_i760) + org.apache.thrift.protocol.TList _list782 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list782.size); + long _elem783; + for (int _i784 = 0; _i784 < _list782.size; ++_i784) { - _elem759 = iprot.readI64(); - struct.fileIds.add(_elem759); + _elem783 = iprot.readI64(); + struct.fileIds.add(_elem783); } 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 _iter761 : struct.fileIds) + for (long _iter785 : struct.fileIds) { - oprot.writeI64(_iter761); + oprot.writeI64(_iter785); } 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 _iter762 : struct.fileIds) + for (long _iter786 : struct.fileIds) { - oprot.writeI64(_iter762); + oprot.writeI64(_iter786); } } 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 _list763 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list763.size); - long _elem764; - for (int _i765 = 0; _i765 < _list763.size; ++_i765) + org.apache.thrift.protocol.TList _list787 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list787.size); + long _elem788; + for (int _i789 = 0; _i789 < _list787.size; ++_i789) { - _elem764 = iprot.readI64(); - struct.fileIds.add(_elem764); + _elem788 = iprot.readI64(); + struct.fileIds.add(_elem788); } } struct.setFileIdsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprResult.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprResult.java index e07d2e5698..17f0ee523d 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprResult.java +++ b/standalone-metastore/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 _map748 = iprot.readMapBegin(); - struct.metadata = new HashMap(2*_map748.size); - long _key749; - MetadataPpdResult _val750; - for (int _i751 = 0; _i751 < _map748.size; ++_i751) + org.apache.thrift.protocol.TMap _map772 = iprot.readMapBegin(); + struct.metadata = new HashMap(2*_map772.size); + long _key773; + MetadataPpdResult _val774; + for (int _i775 = 0; _i775 < _map772.size; ++_i775) { - _key749 = iprot.readI64(); - _val750 = new MetadataPpdResult(); - _val750.read(iprot); - struct.metadata.put(_key749, _val750); + _key773 = iprot.readI64(); + _val774 = new MetadataPpdResult(); + _val774.read(iprot); + struct.metadata.put(_key773, _val774); } 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 _iter752 : struct.metadata.entrySet()) + for (Map.Entry _iter776 : struct.metadata.entrySet()) { - oprot.writeI64(_iter752.getKey()); - _iter752.getValue().write(oprot); + oprot.writeI64(_iter776.getKey()); + _iter776.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 _iter753 : struct.metadata.entrySet()) + for (Map.Entry _iter777 : struct.metadata.entrySet()) { - oprot.writeI64(_iter753.getKey()); - _iter753.getValue().write(oprot); + oprot.writeI64(_iter777.getKey()); + _iter777.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 _map754 = 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*_map754.size); - long _key755; - MetadataPpdResult _val756; - for (int _i757 = 0; _i757 < _map754.size; ++_i757) + org.apache.thrift.protocol.TMap _map778 = 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*_map778.size); + long _key779; + MetadataPpdResult _val780; + for (int _i781 = 0; _i781 < _map778.size; ++_i781) { - _key755 = iprot.readI64(); - _val756 = new MetadataPpdResult(); - _val756.read(iprot); - struct.metadata.put(_key755, _val756); + _key779 = iprot.readI64(); + _val780 = new MetadataPpdResult(); + _val780.read(iprot); + struct.metadata.put(_key779, _val780); } } struct.setMetadataIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataRequest.java index ebb663938d..12b439283a 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataRequest.java +++ b/standalone-metastore/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 _list776 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list776.size); - long _elem777; - for (int _i778 = 0; _i778 < _list776.size; ++_i778) + org.apache.thrift.protocol.TList _list800 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list800.size); + long _elem801; + for (int _i802 = 0; _i802 < _list800.size; ++_i802) { - _elem777 = iprot.readI64(); - struct.fileIds.add(_elem777); + _elem801 = iprot.readI64(); + struct.fileIds.add(_elem801); } 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 _iter779 : struct.fileIds) + for (long _iter803 : struct.fileIds) { - oprot.writeI64(_iter779); + oprot.writeI64(_iter803); } 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 _iter780 : struct.fileIds) + for (long _iter804 : struct.fileIds) { - oprot.writeI64(_iter780); + oprot.writeI64(_iter804); } } } @@ -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 _list781 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list781.size); - long _elem782; - for (int _i783 = 0; _i783 < _list781.size; ++_i783) + org.apache.thrift.protocol.TList _list805 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list805.size); + long _elem806; + for (int _i807 = 0; _i807 < _list805.size; ++_i807) { - _elem782 = iprot.readI64(); - struct.fileIds.add(_elem782); + _elem806 = iprot.readI64(); + struct.fileIds.add(_elem806); } } struct.setFileIdsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataResult.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataResult.java index 67981cd70a..65708d759d 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataResult.java +++ b/standalone-metastore/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 _map766 = iprot.readMapBegin(); - struct.metadata = new HashMap(2*_map766.size); - long _key767; - ByteBuffer _val768; - for (int _i769 = 0; _i769 < _map766.size; ++_i769) + org.apache.thrift.protocol.TMap _map790 = iprot.readMapBegin(); + struct.metadata = new HashMap(2*_map790.size); + long _key791; + ByteBuffer _val792; + for (int _i793 = 0; _i793 < _map790.size; ++_i793) { - _key767 = iprot.readI64(); - _val768 = iprot.readBinary(); - struct.metadata.put(_key767, _val768); + _key791 = iprot.readI64(); + _val792 = iprot.readBinary(); + struct.metadata.put(_key791, _val792); } 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 _iter770 : struct.metadata.entrySet()) + for (Map.Entry _iter794 : struct.metadata.entrySet()) { - oprot.writeI64(_iter770.getKey()); - oprot.writeBinary(_iter770.getValue()); + oprot.writeI64(_iter794.getKey()); + oprot.writeBinary(_iter794.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 _iter771 : struct.metadata.entrySet()) + for (Map.Entry _iter795 : struct.metadata.entrySet()) { - oprot.writeI64(_iter771.getKey()); - oprot.writeBinary(_iter771.getValue()); + oprot.writeI64(_iter795.getKey()); + oprot.writeBinary(_iter795.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 _map772 = 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*_map772.size); - long _key773; - ByteBuffer _val774; - for (int _i775 = 0; _i775 < _map772.size; ++_i775) + org.apache.thrift.protocol.TMap _map796 = 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*_map796.size); + long _key797; + ByteBuffer _val798; + for (int _i799 = 0; _i799 < _map796.size; ++_i799) { - _key773 = iprot.readI64(); - _val774 = iprot.readBinary(); - struct.metadata.put(_key773, _val774); + _key797 = iprot.readI64(); + _val798 = iprot.readBinary(); + struct.metadata.put(_key797, _val798); } } struct.setMetadataIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesRequest.java index 6a78b77761..09ca865ba8 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesRequest.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesRequest.java @@ -606,13 +606,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 _list824 = iprot.readListBegin(); - struct.tblNames = new ArrayList(_list824.size); - String _elem825; - for (int _i826 = 0; _i826 < _list824.size; ++_i826) + org.apache.thrift.protocol.TList _list848 = iprot.readListBegin(); + struct.tblNames = new ArrayList(_list848.size); + String _elem849; + for (int _i850 = 0; _i850 < _list848.size; ++_i850) { - _elem825 = iprot.readString(); - struct.tblNames.add(_elem825); + _elem849 = iprot.readString(); + struct.tblNames.add(_elem849); } iprot.readListEnd(); } @@ -661,9 +661,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 _iter827 : struct.tblNames) + for (String _iter851 : struct.tblNames) { - oprot.writeString(_iter827); + oprot.writeString(_iter851); } oprot.writeListEnd(); } @@ -716,9 +716,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetTablesRequest st if (struct.isSetTblNames()) { { oprot.writeI32(struct.tblNames.size()); - for (String _iter828 : struct.tblNames) + for (String _iter852 : struct.tblNames) { - oprot.writeString(_iter828); + oprot.writeString(_iter852); } } } @@ -738,13 +738,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetTablesRequest str BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list829 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tblNames = new ArrayList(_list829.size); - String _elem830; - for (int _i831 = 0; _i831 < _list829.size; ++_i831) + org.apache.thrift.protocol.TList _list853 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tblNames = new ArrayList(_list853.size); + String _elem854; + for (int _i855 = 0; _i855 < _list853.size; ++_i855) { - _elem830 = iprot.readString(); - struct.tblNames.add(_elem830); + _elem854 = iprot.readString(); + struct.tblNames.add(_elem854); } } struct.setTblNamesIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesResult.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesResult.java index 13be2edb2d..72256e64f5 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesResult.java +++ b/standalone-metastore/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 _list832 = iprot.readListBegin(); - struct.tables = new ArrayList
(_list832.size); - Table _elem833; - for (int _i834 = 0; _i834 < _list832.size; ++_i834) + org.apache.thrift.protocol.TList _list856 = iprot.readListBegin(); + struct.tables = new ArrayList
(_list856.size); + Table _elem857; + for (int _i858 = 0; _i858 < _list856.size; ++_i858) { - _elem833 = new Table(); - _elem833.read(iprot); - struct.tables.add(_elem833); + _elem857 = new Table(); + _elem857.read(iprot); + struct.tables.add(_elem857); } 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 _iter835 : struct.tables) + for (Table _iter859 : struct.tables) { - _iter835.write(oprot); + _iter859.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 _iter836 : struct.tables) + for (Table _iter860 : struct.tables) { - _iter836.write(oprot); + _iter860.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 _list837 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.tables = new ArrayList
(_list837.size); - Table _elem838; - for (int _i839 = 0; _i839 < _list837.size; ++_i839) + org.apache.thrift.protocol.TList _list861 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.tables = new ArrayList
(_list861.size); + Table _elem862; + for (int _i863 = 0; _i863 < _list861.size; ++_i863) { - _elem838 = new Table(); - _elem838.read(iprot); - struct.tables.add(_elem838); + _elem862 = new Table(); + _elem862.read(iprot); + struct.tables.add(_elem862); } } struct.setTablesIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetValidWriteIdsRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetValidWriteIdsRequest.java index 27b6cf8669..af62ca14ed 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetValidWriteIdsRequest.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetValidWriteIdsRequest.java @@ -436,13 +436,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 _list602 = iprot.readListBegin(); - struct.fullTableNames = new ArrayList(_list602.size); - String _elem603; - for (int _i604 = 0; _i604 < _list602.size; ++_i604) + org.apache.thrift.protocol.TList _list610 = iprot.readListBegin(); + struct.fullTableNames = new ArrayList(_list610.size); + String _elem611; + for (int _i612 = 0; _i612 < _list610.size; ++_i612) { - _elem603 = iprot.readString(); - struct.fullTableNames.add(_elem603); + _elem611 = iprot.readString(); + struct.fullTableNames.add(_elem611); } iprot.readListEnd(); } @@ -476,9 +476,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 _iter605 : struct.fullTableNames) + for (String _iter613 : struct.fullTableNames) { - oprot.writeString(_iter605); + oprot.writeString(_iter613); } oprot.writeListEnd(); } @@ -508,9 +508,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetValidWriteIdsReq TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.fullTableNames.size()); - for (String _iter606 : struct.fullTableNames) + for (String _iter614 : struct.fullTableNames) { - oprot.writeString(_iter606); + oprot.writeString(_iter614); } } oprot.writeString(struct.validTxnList); @@ -520,13 +520,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 _list607 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.fullTableNames = new ArrayList(_list607.size); - String _elem608; - for (int _i609 = 0; _i609 < _list607.size; ++_i609) + org.apache.thrift.protocol.TList _list615 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.fullTableNames = new ArrayList(_list615.size); + String _elem616; + for (int _i617 = 0; _i617 < _list615.size; ++_i617) { - _elem608 = iprot.readString(); - struct.fullTableNames.add(_elem608); + _elem616 = iprot.readString(); + struct.fullTableNames.add(_elem616); } } struct.setFullTableNamesIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetValidWriteIdsResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetValidWriteIdsResponse.java index 7a1bbc7cc1..615a422256 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetValidWriteIdsResponse.java +++ b/standalone-metastore/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 _list618 = iprot.readListBegin(); - struct.tblValidWriteIds = new ArrayList(_list618.size); - TableValidWriteIds _elem619; - for (int _i620 = 0; _i620 < _list618.size; ++_i620) + org.apache.thrift.protocol.TList _list626 = iprot.readListBegin(); + struct.tblValidWriteIds = new ArrayList(_list626.size); + TableValidWriteIds _elem627; + for (int _i628 = 0; _i628 < _list626.size; ++_i628) { - _elem619 = new TableValidWriteIds(); - _elem619.read(iprot); - struct.tblValidWriteIds.add(_elem619); + _elem627 = new TableValidWriteIds(); + _elem627.read(iprot); + struct.tblValidWriteIds.add(_elem627); } 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 _iter621 : struct.tblValidWriteIds) + for (TableValidWriteIds _iter629 : struct.tblValidWriteIds) { - _iter621.write(oprot); + _iter629.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 _iter622 : struct.tblValidWriteIds) + for (TableValidWriteIds _iter630 : struct.tblValidWriteIds) { - _iter622.write(oprot); + _iter630.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 _list623 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.tblValidWriteIds = new ArrayList(_list623.size); - TableValidWriteIds _elem624; - for (int _i625 = 0; _i625 < _list623.size; ++_i625) + org.apache.thrift.protocol.TList _list631 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.tblValidWriteIds = new ArrayList(_list631.size); + TableValidWriteIds _elem632; + for (int _i633 = 0; _i633 < _list631.size; ++_i633) { - _elem624 = new TableValidWriteIds(); - _elem624.read(iprot); - struct.tblValidWriteIds.add(_elem624); + _elem632 = new TableValidWriteIds(); + _elem632.read(iprot); + struct.tblValidWriteIds.add(_elem632); } } struct.setTblValidWriteIdsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java index 4999215989..a3dceab951 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java +++ b/standalone-metastore/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 _set666 = iprot.readSetBegin(); - struct.aborted = new HashSet(2*_set666.size); - long _elem667; - for (int _i668 = 0; _i668 < _set666.size; ++_i668) + org.apache.thrift.protocol.TSet _set674 = iprot.readSetBegin(); + struct.aborted = new HashSet(2*_set674.size); + long _elem675; + for (int _i676 = 0; _i676 < _set674.size; ++_i676) { - _elem667 = iprot.readI64(); - struct.aborted.add(_elem667); + _elem675 = iprot.readI64(); + struct.aborted.add(_elem675); } 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 _set669 = iprot.readSetBegin(); - struct.nosuch = new HashSet(2*_set669.size); - long _elem670; - for (int _i671 = 0; _i671 < _set669.size; ++_i671) + org.apache.thrift.protocol.TSet _set677 = iprot.readSetBegin(); + struct.nosuch = new HashSet(2*_set677.size); + long _elem678; + for (int _i679 = 0; _i679 < _set677.size; ++_i679) { - _elem670 = iprot.readI64(); - struct.nosuch.add(_elem670); + _elem678 = iprot.readI64(); + struct.nosuch.add(_elem678); } 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 _iter672 : struct.aborted) + for (long _iter680 : struct.aborted) { - oprot.writeI64(_iter672); + oprot.writeI64(_iter680); } 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 _iter673 : struct.nosuch) + for (long _iter681 : struct.nosuch) { - oprot.writeI64(_iter673); + oprot.writeI64(_iter681); } 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 _iter674 : struct.aborted) + for (long _iter682 : struct.aborted) { - oprot.writeI64(_iter674); + oprot.writeI64(_iter682); } } { oprot.writeI32(struct.nosuch.size()); - for (long _iter675 : struct.nosuch) + for (long _iter683 : struct.nosuch) { - oprot.writeI64(_iter675); + oprot.writeI64(_iter683); } } } @@ -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 _set676 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.aborted = new HashSet(2*_set676.size); - long _elem677; - for (int _i678 = 0; _i678 < _set676.size; ++_i678) + org.apache.thrift.protocol.TSet _set684 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.aborted = new HashSet(2*_set684.size); + long _elem685; + for (int _i686 = 0; _i686 < _set684.size; ++_i686) { - _elem677 = iprot.readI64(); - struct.aborted.add(_elem677); + _elem685 = iprot.readI64(); + struct.aborted.add(_elem685); } } struct.setAbortedIsSet(true); { - org.apache.thrift.protocol.TSet _set679 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.nosuch = new HashSet(2*_set679.size); - long _elem680; - for (int _i681 = 0; _i681 < _set679.size; ++_i681) + org.apache.thrift.protocol.TSet _set687 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.nosuch = new HashSet(2*_set687.size); + long _elem688; + for (int _i689 = 0; _i689 < _set687.size; ++_i689) { - _elem680 = iprot.readI64(); - struct.nosuch.add(_elem680); + _elem688 = iprot.readI64(); + struct.nosuch.add(_elem688); } } struct.setNosuchIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java index 0a240e0286..4a9824b908 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java @@ -41,6 +41,7 @@ private static final org.apache.thrift.protocol.TField REPLACE_FIELD_DESC = new org.apache.thrift.protocol.TField("replace", org.apache.thrift.protocol.TType.BOOL, (short)1); private static final org.apache.thrift.protocol.TField FILES_ADDED_FIELD_DESC = new org.apache.thrift.protocol.TField("filesAdded", org.apache.thrift.protocol.TType.LIST, (short)2); private static final org.apache.thrift.protocol.TField FILES_ADDED_CHECKSUM_FIELD_DESC = new org.apache.thrift.protocol.TField("filesAddedChecksum", org.apache.thrift.protocol.TType.LIST, (short)3); + private static final org.apache.thrift.protocol.TField SUB_DIRECTORY_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("subDirectoryList", org.apache.thrift.protocol.TType.LIST, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -51,12 +52,14 @@ private boolean replace; // optional private List filesAdded; // required private List filesAddedChecksum; // optional + private List subDirectoryList; // 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 { REPLACE((short)1, "replace"), FILES_ADDED((short)2, "filesAdded"), - FILES_ADDED_CHECKSUM((short)3, "filesAddedChecksum"); + FILES_ADDED_CHECKSUM((short)3, "filesAddedChecksum"), + SUB_DIRECTORY_LIST((short)4, "subDirectoryList"); private static final Map byName = new HashMap(); @@ -77,6 +80,8 @@ public static _Fields findByThriftId(int fieldId) { return FILES_ADDED; case 3: // FILES_ADDED_CHECKSUM return FILES_ADDED_CHECKSUM; + case 4: // SUB_DIRECTORY_LIST + return SUB_DIRECTORY_LIST; default: return null; } @@ -119,7 +124,7 @@ public String getFieldName() { // isset id assignments private static final int __REPLACE_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.REPLACE,_Fields.FILES_ADDED_CHECKSUM}; + private static final _Fields optionals[] = {_Fields.REPLACE,_Fields.FILES_ADDED_CHECKSUM,_Fields.SUB_DIRECTORY_LIST}; 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); @@ -131,6 +136,9 @@ public String getFieldName() { tmpMap.put(_Fields.FILES_ADDED_CHECKSUM, new org.apache.thrift.meta_data.FieldMetaData("filesAddedChecksum", 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.SUB_DIRECTORY_LIST, new org.apache.thrift.meta_data.FieldMetaData("subDirectoryList", 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(InsertEventRequestData.class, metaDataMap); } @@ -159,6 +167,10 @@ public InsertEventRequestData(InsertEventRequestData other) { List __this__filesAddedChecksum = new ArrayList(other.filesAddedChecksum); this.filesAddedChecksum = __this__filesAddedChecksum; } + if (other.isSetSubDirectoryList()) { + List __this__subDirectoryList = new ArrayList(other.subDirectoryList); + this.subDirectoryList = __this__subDirectoryList; + } } public InsertEventRequestData deepCopy() { @@ -171,6 +183,7 @@ public void clear() { this.replace = false; this.filesAdded = null; this.filesAddedChecksum = null; + this.subDirectoryList = null; } public boolean isReplace() { @@ -271,6 +284,44 @@ public void setFilesAddedChecksumIsSet(boolean value) { } } + public int getSubDirectoryListSize() { + return (this.subDirectoryList == null) ? 0 : this.subDirectoryList.size(); + } + + public java.util.Iterator getSubDirectoryListIterator() { + return (this.subDirectoryList == null) ? null : this.subDirectoryList.iterator(); + } + + public void addToSubDirectoryList(String elem) { + if (this.subDirectoryList == null) { + this.subDirectoryList = new ArrayList(); + } + this.subDirectoryList.add(elem); + } + + public List getSubDirectoryList() { + return this.subDirectoryList; + } + + public void setSubDirectoryList(List subDirectoryList) { + this.subDirectoryList = subDirectoryList; + } + + public void unsetSubDirectoryList() { + this.subDirectoryList = null; + } + + /** Returns true if field subDirectoryList is set (has been assigned a value) and false otherwise */ + public boolean isSetSubDirectoryList() { + return this.subDirectoryList != null; + } + + public void setSubDirectoryListIsSet(boolean value) { + if (!value) { + this.subDirectoryList = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case REPLACE: @@ -297,6 +348,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case SUB_DIRECTORY_LIST: + if (value == null) { + unsetSubDirectoryList(); + } else { + setSubDirectoryList((List)value); + } + break; + } } @@ -311,6 +370,9 @@ public Object getFieldValue(_Fields field) { case FILES_ADDED_CHECKSUM: return getFilesAddedChecksum(); + case SUB_DIRECTORY_LIST: + return getSubDirectoryList(); + } throw new IllegalStateException(); } @@ -328,6 +390,8 @@ public boolean isSet(_Fields field) { return isSetFilesAdded(); case FILES_ADDED_CHECKSUM: return isSetFilesAddedChecksum(); + case SUB_DIRECTORY_LIST: + return isSetSubDirectoryList(); } throw new IllegalStateException(); } @@ -372,6 +436,15 @@ public boolean equals(InsertEventRequestData that) { return false; } + boolean this_present_subDirectoryList = true && this.isSetSubDirectoryList(); + boolean that_present_subDirectoryList = true && that.isSetSubDirectoryList(); + if (this_present_subDirectoryList || that_present_subDirectoryList) { + if (!(this_present_subDirectoryList && that_present_subDirectoryList)) + return false; + if (!this.subDirectoryList.equals(that.subDirectoryList)) + return false; + } + return true; } @@ -394,6 +467,11 @@ public int hashCode() { if (present_filesAddedChecksum) list.add(filesAddedChecksum); + boolean present_subDirectoryList = true && (isSetSubDirectoryList()); + list.add(present_subDirectoryList); + if (present_subDirectoryList) + list.add(subDirectoryList); + return list.hashCode(); } @@ -435,6 +513,16 @@ public int compareTo(InsertEventRequestData other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetSubDirectoryList()).compareTo(other.isSetSubDirectoryList()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSubDirectoryList()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.subDirectoryList, other.subDirectoryList); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -478,6 +566,16 @@ public String toString() { } first = false; } + if (isSetSubDirectoryList()) { + if (!first) sb.append(", "); + sb.append("subDirectoryList:"); + if (this.subDirectoryList == null) { + sb.append("null"); + } else { + sb.append(this.subDirectoryList); + } + first = false; + } sb.append(")"); return sb.toString(); } @@ -538,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 _list724 = iprot.readListBegin(); - struct.filesAdded = new ArrayList(_list724.size); - String _elem725; - for (int _i726 = 0; _i726 < _list724.size; ++_i726) + org.apache.thrift.protocol.TList _list732 = iprot.readListBegin(); + struct.filesAdded = new ArrayList(_list732.size); + String _elem733; + for (int _i734 = 0; _i734 < _list732.size; ++_i734) { - _elem725 = iprot.readString(); - struct.filesAdded.add(_elem725); + _elem733 = iprot.readString(); + struct.filesAdded.add(_elem733); } iprot.readListEnd(); } @@ -556,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 _list727 = iprot.readListBegin(); - struct.filesAddedChecksum = new ArrayList(_list727.size); - String _elem728; - for (int _i729 = 0; _i729 < _list727.size; ++_i729) + org.apache.thrift.protocol.TList _list735 = iprot.readListBegin(); + struct.filesAddedChecksum = new ArrayList(_list735.size); + String _elem736; + for (int _i737 = 0; _i737 < _list735.size; ++_i737) { - _elem728 = iprot.readString(); - struct.filesAddedChecksum.add(_elem728); + _elem736 = iprot.readString(); + struct.filesAddedChecksum.add(_elem736); } iprot.readListEnd(); } @@ -571,6 +669,24 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, InsertEventRequestD org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 4: // SUB_DIRECTORY_LIST + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list738 = iprot.readListBegin(); + struct.subDirectoryList = new ArrayList(_list738.size); + String _elem739; + for (int _i740 = 0; _i740 < _list738.size; ++_i740) + { + _elem739 = iprot.readString(); + struct.subDirectoryList.add(_elem739); + } + iprot.readListEnd(); + } + struct.setSubDirectoryListIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -593,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 _iter730 : struct.filesAdded) + for (String _iter741 : struct.filesAdded) { - oprot.writeString(_iter730); + oprot.writeString(_iter741); } oprot.writeListEnd(); } @@ -606,9 +722,23 @@ 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 _iter731 : struct.filesAddedChecksum) + for (String _iter742 : struct.filesAddedChecksum) { - oprot.writeString(_iter731); + oprot.writeString(_iter742); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + } + if (struct.subDirectoryList != null) { + if (struct.isSetSubDirectoryList()) { + 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 _iter743 : struct.subDirectoryList) + { + oprot.writeString(_iter743); } oprot.writeListEnd(); } @@ -634,9 +764,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, InsertEventRequestD TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.filesAdded.size()); - for (String _iter732 : struct.filesAdded) + for (String _iter744 : struct.filesAdded) { - oprot.writeString(_iter732); + oprot.writeString(_iter744); } } BitSet optionals = new BitSet(); @@ -646,16 +776,28 @@ public void write(org.apache.thrift.protocol.TProtocol prot, InsertEventRequestD if (struct.isSetFilesAddedChecksum()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetSubDirectoryList()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetReplace()) { oprot.writeBool(struct.replace); } if (struct.isSetFilesAddedChecksum()) { { oprot.writeI32(struct.filesAddedChecksum.size()); - for (String _iter733 : struct.filesAddedChecksum) + for (String _iter745 : struct.filesAddedChecksum) + { + oprot.writeString(_iter745); + } + } + } + if (struct.isSetSubDirectoryList()) { + { + oprot.writeI32(struct.subDirectoryList.size()); + for (String _iter746 : struct.subDirectoryList) { - oprot.writeString(_iter733); + oprot.writeString(_iter746); } } } @@ -665,34 +807,47 @@ 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 _list734 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.filesAdded = new ArrayList(_list734.size); - String _elem735; - for (int _i736 = 0; _i736 < _list734.size; ++_i736) + org.apache.thrift.protocol.TList _list747 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.filesAdded = new ArrayList(_list747.size); + String _elem748; + for (int _i749 = 0; _i749 < _list747.size; ++_i749) { - _elem735 = iprot.readString(); - struct.filesAdded.add(_elem735); + _elem748 = iprot.readString(); + struct.filesAdded.add(_elem748); } } struct.setFilesAddedIsSet(true); - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.replace = iprot.readBool(); struct.setReplaceIsSet(true); } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list737 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.filesAddedChecksum = new ArrayList(_list737.size); - String _elem738; - for (int _i739 = 0; _i739 < _list737.size; ++_i739) + org.apache.thrift.protocol.TList _list750 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.filesAddedChecksum = new ArrayList(_list750.size); + String _elem751; + for (int _i752 = 0; _i752 < _list750.size; ++_i752) { - _elem738 = iprot.readString(); - struct.filesAddedChecksum.add(_elem738); + _elem751 = iprot.readString(); + struct.filesAddedChecksum.add(_elem751); } } struct.setFilesAddedChecksumIsSet(true); } + if (incoming.get(2)) { + { + org.apache.thrift.protocol.TList _list753 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.subDirectoryList = new ArrayList(_list753.size); + String _elem754; + for (int _i755 = 0; _i755 < _list753.size; ++_i755) + { + _elem754 = iprot.readString(); + struct.subDirectoryList.add(_elem754); + } + } + struct.setSubDirectoryListIsSet(true); + } } } diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java index d0dc21c319..d4eed3254c 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java +++ b/standalone-metastore/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 _list650 = iprot.readListBegin(); - struct.component = new ArrayList(_list650.size); - LockComponent _elem651; - for (int _i652 = 0; _i652 < _list650.size; ++_i652) + org.apache.thrift.protocol.TList _list658 = iprot.readListBegin(); + struct.component = new ArrayList(_list658.size); + LockComponent _elem659; + for (int _i660 = 0; _i660 < _list658.size; ++_i660) { - _elem651 = new LockComponent(); - _elem651.read(iprot); - struct.component.add(_elem651); + _elem659 = new LockComponent(); + _elem659.read(iprot); + struct.component.add(_elem659); } 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 _iter653 : struct.component) + for (LockComponent _iter661 : struct.component) { - _iter653.write(oprot); + _iter661.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 _iter654 : struct.component) + for (LockComponent _iter662 : struct.component) { - _iter654.write(oprot); + _iter662.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 _list655 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.component = new ArrayList(_list655.size); - LockComponent _elem656; - for (int _i657 = 0; _i657 < _list655.size; ++_i657) + org.apache.thrift.protocol.TList _list663 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.component = new ArrayList(_list663.size); + LockComponent _elem664; + for (int _i665 = 0; _i665 < _list663.size; ++_i665) { - _elem656 = new LockComponent(); - _elem656.read(iprot); - struct.component.add(_elem656); + _elem664 = new LockComponent(); + _elem664.read(iprot); + struct.component.add(_elem664); } } struct.setComponentIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Materialization.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Materialization.java index 4e792bc9a4..351099520f 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Materialization.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Materialization.java @@ -589,13 +589,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Materialization str case 1: // TABLES_USED if (schemeField.type == org.apache.thrift.protocol.TType.SET) { { - org.apache.thrift.protocol.TSet _set840 = iprot.readSetBegin(); - struct.tablesUsed = new HashSet(2*_set840.size); - String _elem841; - for (int _i842 = 0; _i842 < _set840.size; ++_i842) + org.apache.thrift.protocol.TSet _set864 = iprot.readSetBegin(); + struct.tablesUsed = new HashSet(2*_set864.size); + String _elem865; + for (int _i866 = 0; _i866 < _set864.size; ++_i866) { - _elem841 = iprot.readString(); - struct.tablesUsed.add(_elem841); + _elem865 = iprot.readString(); + struct.tablesUsed.add(_elem865); } iprot.readSetEnd(); } @@ -645,9 +645,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, Materialization st oprot.writeFieldBegin(TABLES_USED_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, struct.tablesUsed.size())); - for (String _iter843 : struct.tablesUsed) + for (String _iter867 : struct.tablesUsed) { - oprot.writeString(_iter843); + oprot.writeString(_iter867); } oprot.writeSetEnd(); } @@ -689,9 +689,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Materialization str TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.tablesUsed.size()); - for (String _iter844 : struct.tablesUsed) + for (String _iter868 : struct.tablesUsed) { - oprot.writeString(_iter844); + oprot.writeString(_iter868); } } BitSet optionals = new BitSet(); @@ -720,13 +720,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Materialization str public void read(org.apache.thrift.protocol.TProtocol prot, Materialization struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TSet _set845 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tablesUsed = new HashSet(2*_set845.size); - String _elem846; - for (int _i847 = 0; _i847 < _set845.size; ++_i847) + org.apache.thrift.protocol.TSet _set869 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tablesUsed = new HashSet(2*_set869.size); + String _elem870; + for (int _i871 = 0; _i871 < _set869.size; ++_i871) { - _elem846 = iprot.readString(); - struct.tablesUsed.add(_elem846); + _elem870 = iprot.readString(); + struct.tablesUsed.add(_elem870); } } struct.setTablesUsedIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java index 0c850faea7..9228c39d74 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java +++ b/standalone-metastore/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 _list716 = iprot.readListBegin(); - struct.events = new ArrayList(_list716.size); - NotificationEvent _elem717; - for (int _i718 = 0; _i718 < _list716.size; ++_i718) + org.apache.thrift.protocol.TList _list724 = iprot.readListBegin(); + struct.events = new ArrayList(_list724.size); + NotificationEvent _elem725; + for (int _i726 = 0; _i726 < _list724.size; ++_i726) { - _elem717 = new NotificationEvent(); - _elem717.read(iprot); - struct.events.add(_elem717); + _elem725 = new NotificationEvent(); + _elem725.read(iprot); + struct.events.add(_elem725); } 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 _iter719 : struct.events) + for (NotificationEvent _iter727 : struct.events) { - _iter719.write(oprot); + _iter727.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 _iter720 : struct.events) + for (NotificationEvent _iter728 : struct.events) { - _iter720.write(oprot); + _iter728.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 _list721 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.events = new ArrayList(_list721.size); - NotificationEvent _elem722; - for (int _i723 = 0; _i723 < _list721.size; ++_i723) + org.apache.thrift.protocol.TList _list729 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.events = new ArrayList(_list729.size); + NotificationEvent _elem730; + for (int _i731 = 0; _i731 < _list729.size; ++_i731) { - _elem722 = new NotificationEvent(); - _elem722.read(iprot); - struct.events.add(_elem722); + _elem730 = new NotificationEvent(); + _elem730.read(iprot); + struct.events.add(_elem730); } } struct.setEventsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PutFileMetadataRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PutFileMetadataRequest.java index 77c260d919..7d9ebbae76 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PutFileMetadataRequest.java +++ b/standalone-metastore/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 _list784 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list784.size); - long _elem785; - for (int _i786 = 0; _i786 < _list784.size; ++_i786) + org.apache.thrift.protocol.TList _list808 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list808.size); + long _elem809; + for (int _i810 = 0; _i810 < _list808.size; ++_i810) { - _elem785 = iprot.readI64(); - struct.fileIds.add(_elem785); + _elem809 = iprot.readI64(); + struct.fileIds.add(_elem809); } 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 _list787 = iprot.readListBegin(); - struct.metadata = new ArrayList(_list787.size); - ByteBuffer _elem788; - for (int _i789 = 0; _i789 < _list787.size; ++_i789) + org.apache.thrift.protocol.TList _list811 = iprot.readListBegin(); + struct.metadata = new ArrayList(_list811.size); + ByteBuffer _elem812; + for (int _i813 = 0; _i813 < _list811.size; ++_i813) { - _elem788 = iprot.readBinary(); - struct.metadata.add(_elem788); + _elem812 = iprot.readBinary(); + struct.metadata.add(_elem812); } 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 _iter790 : struct.fileIds) + for (long _iter814 : struct.fileIds) { - oprot.writeI64(_iter790); + oprot.writeI64(_iter814); } 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 _iter791 : struct.metadata) + for (ByteBuffer _iter815 : struct.metadata) { - oprot.writeBinary(_iter791); + oprot.writeBinary(_iter815); } 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 _iter792 : struct.fileIds) + for (long _iter816 : struct.fileIds) { - oprot.writeI64(_iter792); + oprot.writeI64(_iter816); } } { oprot.writeI32(struct.metadata.size()); - for (ByteBuffer _iter793 : struct.metadata) + for (ByteBuffer _iter817 : struct.metadata) { - oprot.writeBinary(_iter793); + oprot.writeBinary(_iter817); } } 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 _list794 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list794.size); - long _elem795; - for (int _i796 = 0; _i796 < _list794.size; ++_i796) + org.apache.thrift.protocol.TList _list818 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list818.size); + long _elem819; + for (int _i820 = 0; _i820 < _list818.size; ++_i820) { - _elem795 = iprot.readI64(); - struct.fileIds.add(_elem795); + _elem819 = iprot.readI64(); + struct.fileIds.add(_elem819); } } struct.setFileIdsIsSet(true); { - org.apache.thrift.protocol.TList _list797 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.metadata = new ArrayList(_list797.size); - ByteBuffer _elem798; - for (int _i799 = 0; _i799 < _list797.size; ++_i799) + org.apache.thrift.protocol.TList _list821 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.metadata = new ArrayList(_list821.size); + ByteBuffer _elem822; + for (int _i823 = 0; _i823 < _list821.size; ++_i823) { - _elem798 = iprot.readBinary(); - struct.metadata.add(_elem798); + _elem822 = iprot.readBinary(); + struct.metadata.add(_elem822); } } struct.setMetadataIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ReplTblWriteIdStateRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ReplTblWriteIdStateRequest.java index 97bb8a47ac..0aeca145db 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ReplTblWriteIdStateRequest.java +++ b/standalone-metastore/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 _list594 = iprot.readListBegin(); - struct.partNames = new ArrayList(_list594.size); - String _elem595; - for (int _i596 = 0; _i596 < _list594.size; ++_i596) + org.apache.thrift.protocol.TList _list602 = iprot.readListBegin(); + struct.partNames = new ArrayList(_list602.size); + String _elem603; + for (int _i604 = 0; _i604 < _list602.size; ++_i604) { - _elem595 = iprot.readString(); - struct.partNames.add(_elem595); + _elem603 = iprot.readString(); + struct.partNames.add(_elem603); } 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 _iter597 : struct.partNames) + for (String _iter605 : struct.partNames) { - oprot.writeString(_iter597); + oprot.writeString(_iter605); } 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 _iter598 : struct.partNames) + for (String _iter606 : struct.partNames) { - oprot.writeString(_iter598); + oprot.writeString(_iter606); } } } @@ -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 _list599 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partNames = new ArrayList(_list599.size); - String _elem600; - for (int _i601 = 0; _i601 < _list599.size; ++_i601) + org.apache.thrift.protocol.TList _list607 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partNames = new ArrayList(_list607.size); + String _elem608; + for (int _i609 = 0; _i609 < _list607.size; ++_i609) { - _elem600 = iprot.readString(); - struct.partNames.add(_elem600); + _elem608 = iprot.readString(); + struct.partNames.add(_elem608); } } struct.setPartNamesIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SchemaVersion.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SchemaVersion.java index 76dfe174fb..88d7e3fedf 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SchemaVersion.java +++ b/standalone-metastore/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 _list912 = iprot.readListBegin(); - struct.cols = new ArrayList(_list912.size); - FieldSchema _elem913; - for (int _i914 = 0; _i914 < _list912.size; ++_i914) + org.apache.thrift.protocol.TList _list936 = iprot.readListBegin(); + struct.cols = new ArrayList(_list936.size); + FieldSchema _elem937; + for (int _i938 = 0; _i938 < _list936.size; ++_i938) { - _elem913 = new FieldSchema(); - _elem913.read(iprot); - struct.cols.add(_elem913); + _elem937 = new FieldSchema(); + _elem937.read(iprot); + struct.cols.add(_elem937); } 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 _iter915 : struct.cols) + for (FieldSchema _iter939 : struct.cols) { - _iter915.write(oprot); + _iter939.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 _iter916 : struct.cols) + for (FieldSchema _iter940 : struct.cols) { - _iter916.write(oprot); + _iter940.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 _list917 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.cols = new ArrayList(_list917.size); - FieldSchema _elem918; - for (int _i919 = 0; _i919 < _list917.size; ++_i919) + org.apache.thrift.protocol.TList _list941 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.cols = new ArrayList(_list941.size); + FieldSchema _elem942; + for (int _i943 = 0; _i943 < _list941.size; ++_i943) { - _elem918 = new FieldSchema(); - _elem918.read(iprot); - struct.cols.add(_elem918); + _elem942 = new FieldSchema(); + _elem942.read(iprot); + struct.cols.add(_elem942); } } struct.setColsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java index d7e5132ea9..9fb037f6b8 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java +++ b/standalone-metastore/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 _list692 = iprot.readListBegin(); - struct.compacts = new ArrayList(_list692.size); - ShowCompactResponseElement _elem693; - for (int _i694 = 0; _i694 < _list692.size; ++_i694) + org.apache.thrift.protocol.TList _list700 = iprot.readListBegin(); + struct.compacts = new ArrayList(_list700.size); + ShowCompactResponseElement _elem701; + for (int _i702 = 0; _i702 < _list700.size; ++_i702) { - _elem693 = new ShowCompactResponseElement(); - _elem693.read(iprot); - struct.compacts.add(_elem693); + _elem701 = new ShowCompactResponseElement(); + _elem701.read(iprot); + struct.compacts.add(_elem701); } 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 _iter695 : struct.compacts) + for (ShowCompactResponseElement _iter703 : struct.compacts) { - _iter695.write(oprot); + _iter703.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 _iter696 : struct.compacts) + for (ShowCompactResponseElement _iter704 : struct.compacts) { - _iter696.write(oprot); + _iter704.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 _list697 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.compacts = new ArrayList(_list697.size); - ShowCompactResponseElement _elem698; - for (int _i699 = 0; _i699 < _list697.size; ++_i699) + org.apache.thrift.protocol.TList _list705 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.compacts = new ArrayList(_list705.size); + ShowCompactResponseElement _elem706; + for (int _i707 = 0; _i707 < _list705.size; ++_i707) { - _elem698 = new ShowCompactResponseElement(); - _elem698.read(iprot); - struct.compacts.add(_elem698); + _elem706 = new ShowCompactResponseElement(); + _elem706.read(iprot); + struct.compacts.add(_elem706); } } struct.setCompactsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java index 0e1009ce1a..e0db2f789c 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java +++ b/standalone-metastore/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 _list658 = iprot.readListBegin(); - struct.locks = new ArrayList(_list658.size); - ShowLocksResponseElement _elem659; - for (int _i660 = 0; _i660 < _list658.size; ++_i660) + org.apache.thrift.protocol.TList _list666 = iprot.readListBegin(); + struct.locks = new ArrayList(_list666.size); + ShowLocksResponseElement _elem667; + for (int _i668 = 0; _i668 < _list666.size; ++_i668) { - _elem659 = new ShowLocksResponseElement(); - _elem659.read(iprot); - struct.locks.add(_elem659); + _elem667 = new ShowLocksResponseElement(); + _elem667.read(iprot); + struct.locks.add(_elem667); } 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 _iter661 : struct.locks) + for (ShowLocksResponseElement _iter669 : struct.locks) { - _iter661.write(oprot); + _iter669.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 _iter662 : struct.locks) + for (ShowLocksResponseElement _iter670 : struct.locks) { - _iter662.write(oprot); + _iter670.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 _list663 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.locks = new ArrayList(_list663.size); - ShowLocksResponseElement _elem664; - for (int _i665 = 0; _i665 < _list663.size; ++_i665) + org.apache.thrift.protocol.TList _list671 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.locks = new ArrayList(_list671.size); + ShowLocksResponseElement _elem672; + for (int _i673 = 0; _i673 < _list671.size; ++_i673) { - _elem664 = new ShowLocksResponseElement(); - _elem664.read(iprot); - struct.locks.add(_elem664); + _elem672 = new ShowLocksResponseElement(); + _elem672.read(iprot); + struct.locks.add(_elem672); } } struct.setLocksIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableValidWriteIds.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableValidWriteIds.java index 20f225d007..de15fc6be2 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableValidWriteIds.java +++ b/standalone-metastore/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 _list610 = iprot.readListBegin(); - struct.invalidWriteIds = new ArrayList(_list610.size); - long _elem611; - for (int _i612 = 0; _i612 < _list610.size; ++_i612) + org.apache.thrift.protocol.TList _list618 = iprot.readListBegin(); + struct.invalidWriteIds = new ArrayList(_list618.size); + long _elem619; + for (int _i620 = 0; _i620 < _list618.size; ++_i620) { - _elem611 = iprot.readI64(); - struct.invalidWriteIds.add(_elem611); + _elem619 = iprot.readI64(); + struct.invalidWriteIds.add(_elem619); } 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 _iter613 : struct.invalidWriteIds) + for (long _iter621 : struct.invalidWriteIds) { - oprot.writeI64(_iter613); + oprot.writeI64(_iter621); } 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 _iter614 : struct.invalidWriteIds) + for (long _iter622 : struct.invalidWriteIds) { - oprot.writeI64(_iter614); + oprot.writeI64(_iter622); } } 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 _list615 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.invalidWriteIds = new ArrayList(_list615.size); - long _elem616; - for (int _i617 = 0; _i617 < _list615.size; ++_i617) + org.apache.thrift.protocol.TList _list623 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.invalidWriteIds = new ArrayList(_list623.size); + long _elem624; + for (int _i625 = 0; _i625 < _list623.size; ++_i625) { - _elem616 = iprot.readI64(); - struct.invalidWriteIds.add(_elem616); + _elem624 = iprot.readI64(); + struct.invalidWriteIds.add(_elem624); } } struct.setInvalidWriteIdsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java index 929f328e0e..5ada49d3ec 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java @@ -370,6 +370,8 @@ public void flushCache() throws org.apache.thrift.TException; + public WriteNotificationLogResponse add_write_notification_log(WriteNotificationLogRequest rqst) throws org.apache.thrift.TException; + public CmRecycleResponse cm_recycle(CmRecycleRequest request) throws MetaException, org.apache.thrift.TException; public GetFileMetadataByExprResult get_file_metadata_by_expr(GetFileMetadataByExprRequest req) throws org.apache.thrift.TException; @@ -786,6 +788,8 @@ public void flushCache(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void add_write_notification_log(WriteNotificationLogRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void cm_recycle(CmRecycleRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void get_file_metadata_by_expr(GetFileMetadataByExprRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -5611,6 +5615,29 @@ public void recv_flushCache() throws org.apache.thrift.TException return; } + public WriteNotificationLogResponse add_write_notification_log(WriteNotificationLogRequest rqst) throws org.apache.thrift.TException + { + send_add_write_notification_log(rqst); + return recv_add_write_notification_log(); + } + + public void send_add_write_notification_log(WriteNotificationLogRequest rqst) throws org.apache.thrift.TException + { + add_write_notification_log_args args = new add_write_notification_log_args(); + args.setRqst(rqst); + sendBase("add_write_notification_log", args); + } + + public WriteNotificationLogResponse recv_add_write_notification_log() throws org.apache.thrift.TException + { + add_write_notification_log_result result = new add_write_notification_log_result(); + receiveBase(result, "add_write_notification_log"); + if (result.isSetSuccess()) { + return result.success; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "add_write_notification_log failed: unknown result"); + } + public CmRecycleResponse cm_recycle(CmRecycleRequest request) throws MetaException, org.apache.thrift.TException { send_cm_recycle(request); @@ -12554,6 +12581,38 @@ public void getResult() throws org.apache.thrift.TException { } } + public void add_write_notification_log(WriteNotificationLogRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + add_write_notification_log_call method_call = new add_write_notification_log_call(rqst, 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 add_write_notification_log_call extends org.apache.thrift.async.TAsyncMethodCall { + private WriteNotificationLogRequest rqst; + public add_write_notification_log_call(WriteNotificationLogRequest rqst, 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.rqst = rqst; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("add_write_notification_log", org.apache.thrift.protocol.TMessageType.CALL, 0)); + add_write_notification_log_args args = new add_write_notification_log_args(); + args.setRqst(rqst); + args.write(prot); + prot.writeMessageEnd(); + } + + public WriteNotificationLogResponse getResult() throws org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_add_write_notification_log(); + } + } + public void cm_recycle(CmRecycleRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); cm_recycle_call method_call = new cm_recycle_call(request, resultHandler, this, ___protocolFactory, ___transport); @@ -14084,6 +14143,7 @@ protected Processor(I iface, Map extends org.apache.thrift.ProcessFunction { + public add_write_notification_log() { + super("add_write_notification_log"); + } + + public add_write_notification_log_args getEmptyArgsInstance() { + return new add_write_notification_log_args(); + } + + protected boolean isOneway() { + return false; + } + + public add_write_notification_log_result getResult(I iface, add_write_notification_log_args args) throws org.apache.thrift.TException { + add_write_notification_log_result result = new add_write_notification_log_result(); + result.success = iface.add_write_notification_log(args.rqst); + return result; + } + } + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class cm_recycle extends org.apache.thrift.ProcessFunction { public cm_recycle() { super("cm_recycle"); @@ -19588,6 +19668,7 @@ protected AsyncProcessor(I iface, Map extends org.apache.thrift.AsyncProcessFunction { + public add_write_notification_log() { + super("add_write_notification_log"); + } + + public add_write_notification_log_args getEmptyArgsInstance() { + return new add_write_notification_log_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(WriteNotificationLogResponse o) { + add_write_notification_log_result result = new add_write_notification_log_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + add_write_notification_log_result result = new add_write_notification_log_result(); + { + 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_write_notification_log_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.add_write_notification_log(args.rqst,resultHandler); + } + } + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class cm_recycle extends org.apache.thrift.AsyncProcessFunction { public cm_recycle() { super("cm_recycle"); @@ -41156,13 +41288,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 _list928 = iprot.readListBegin(); - struct.success = new ArrayList(_list928.size); - String _elem929; - for (int _i930 = 0; _i930 < _list928.size; ++_i930) + org.apache.thrift.protocol.TList _list952 = iprot.readListBegin(); + struct.success = new ArrayList(_list952.size); + String _elem953; + for (int _i954 = 0; _i954 < _list952.size; ++_i954) { - _elem929 = iprot.readString(); - struct.success.add(_elem929); + _elem953 = iprot.readString(); + struct.success.add(_elem953); } iprot.readListEnd(); } @@ -41197,9 +41329,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 _iter931 : struct.success) + for (String _iter955 : struct.success) { - oprot.writeString(_iter931); + oprot.writeString(_iter955); } oprot.writeListEnd(); } @@ -41238,9 +41370,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_databases_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter932 : struct.success) + for (String _iter956 : struct.success) { - oprot.writeString(_iter932); + oprot.writeString(_iter956); } } } @@ -41255,13 +41387,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 _list933 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list933.size); - String _elem934; - for (int _i935 = 0; _i935 < _list933.size; ++_i935) + org.apache.thrift.protocol.TList _list957 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list957.size); + String _elem958; + for (int _i959 = 0; _i959 < _list957.size; ++_i959) { - _elem934 = iprot.readString(); - struct.success.add(_elem934); + _elem958 = iprot.readString(); + struct.success.add(_elem958); } } struct.setSuccessIsSet(true); @@ -41915,13 +42047,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 _list936 = iprot.readListBegin(); - struct.success = new ArrayList(_list936.size); - String _elem937; - for (int _i938 = 0; _i938 < _list936.size; ++_i938) + org.apache.thrift.protocol.TList _list960 = iprot.readListBegin(); + struct.success = new ArrayList(_list960.size); + String _elem961; + for (int _i962 = 0; _i962 < _list960.size; ++_i962) { - _elem937 = iprot.readString(); - struct.success.add(_elem937); + _elem961 = iprot.readString(); + struct.success.add(_elem961); } iprot.readListEnd(); } @@ -41956,9 +42088,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 _iter939 : struct.success) + for (String _iter963 : struct.success) { - oprot.writeString(_iter939); + oprot.writeString(_iter963); } oprot.writeListEnd(); } @@ -41997,9 +42129,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_databases_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter940 : struct.success) + for (String _iter964 : struct.success) { - oprot.writeString(_iter940); + oprot.writeString(_iter964); } } } @@ -42014,13 +42146,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 _list941 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list941.size); - String _elem942; - for (int _i943 = 0; _i943 < _list941.size; ++_i943) + org.apache.thrift.protocol.TList _list965 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list965.size); + String _elem966; + for (int _i967 = 0; _i967 < _list965.size; ++_i967) { - _elem942 = iprot.readString(); - struct.success.add(_elem942); + _elem966 = iprot.readString(); + struct.success.add(_elem966); } } struct.setSuccessIsSet(true); @@ -46627,16 +46759,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 _map944 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map944.size); - String _key945; - Type _val946; - for (int _i947 = 0; _i947 < _map944.size; ++_i947) + org.apache.thrift.protocol.TMap _map968 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map968.size); + String _key969; + Type _val970; + for (int _i971 = 0; _i971 < _map968.size; ++_i971) { - _key945 = iprot.readString(); - _val946 = new Type(); - _val946.read(iprot); - struct.success.put(_key945, _val946); + _key969 = iprot.readString(); + _val970 = new Type(); + _val970.read(iprot); + struct.success.put(_key969, _val970); } iprot.readMapEnd(); } @@ -46671,10 +46803,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 _iter948 : struct.success.entrySet()) + for (Map.Entry _iter972 : struct.success.entrySet()) { - oprot.writeString(_iter948.getKey()); - _iter948.getValue().write(oprot); + oprot.writeString(_iter972.getKey()); + _iter972.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -46713,10 +46845,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 _iter949 : struct.success.entrySet()) + for (Map.Entry _iter973 : struct.success.entrySet()) { - oprot.writeString(_iter949.getKey()); - _iter949.getValue().write(oprot); + oprot.writeString(_iter973.getKey()); + _iter973.getValue().write(oprot); } } } @@ -46731,16 +46863,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 _map950 = 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*_map950.size); - String _key951; - Type _val952; - for (int _i953 = 0; _i953 < _map950.size; ++_i953) + org.apache.thrift.protocol.TMap _map974 = 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*_map974.size); + String _key975; + Type _val976; + for (int _i977 = 0; _i977 < _map974.size; ++_i977) { - _key951 = iprot.readString(); - _val952 = new Type(); - _val952.read(iprot); - struct.success.put(_key951, _val952); + _key975 = iprot.readString(); + _val976 = new Type(); + _val976.read(iprot); + struct.success.put(_key975, _val976); } } struct.setSuccessIsSet(true); @@ -47775,14 +47907,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 _list954 = iprot.readListBegin(); - struct.success = new ArrayList(_list954.size); - FieldSchema _elem955; - for (int _i956 = 0; _i956 < _list954.size; ++_i956) + org.apache.thrift.protocol.TList _list978 = iprot.readListBegin(); + struct.success = new ArrayList(_list978.size); + FieldSchema _elem979; + for (int _i980 = 0; _i980 < _list978.size; ++_i980) { - _elem955 = new FieldSchema(); - _elem955.read(iprot); - struct.success.add(_elem955); + _elem979 = new FieldSchema(); + _elem979.read(iprot); + struct.success.add(_elem979); } iprot.readListEnd(); } @@ -47835,9 +47967,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 _iter957 : struct.success) + for (FieldSchema _iter981 : struct.success) { - _iter957.write(oprot); + _iter981.write(oprot); } oprot.writeListEnd(); } @@ -47892,9 +48024,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter958 : struct.success) + for (FieldSchema _iter982 : struct.success) { - _iter958.write(oprot); + _iter982.write(oprot); } } } @@ -47915,14 +48047,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 _list959 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list959.size); - FieldSchema _elem960; - for (int _i961 = 0; _i961 < _list959.size; ++_i961) + org.apache.thrift.protocol.TList _list983 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list983.size); + FieldSchema _elem984; + for (int _i985 = 0; _i985 < _list983.size; ++_i985) { - _elem960 = new FieldSchema(); - _elem960.read(iprot); - struct.success.add(_elem960); + _elem984 = new FieldSchema(); + _elem984.read(iprot); + struct.success.add(_elem984); } } struct.setSuccessIsSet(true); @@ -49076,14 +49208,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 _list962 = iprot.readListBegin(); - struct.success = new ArrayList(_list962.size); - FieldSchema _elem963; - for (int _i964 = 0; _i964 < _list962.size; ++_i964) + org.apache.thrift.protocol.TList _list986 = iprot.readListBegin(); + struct.success = new ArrayList(_list986.size); + FieldSchema _elem987; + for (int _i988 = 0; _i988 < _list986.size; ++_i988) { - _elem963 = new FieldSchema(); - _elem963.read(iprot); - struct.success.add(_elem963); + _elem987 = new FieldSchema(); + _elem987.read(iprot); + struct.success.add(_elem987); } iprot.readListEnd(); } @@ -49136,9 +49268,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 _iter965 : struct.success) + for (FieldSchema _iter989 : struct.success) { - _iter965.write(oprot); + _iter989.write(oprot); } oprot.writeListEnd(); } @@ -49193,9 +49325,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_with_env if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter966 : struct.success) + for (FieldSchema _iter990 : struct.success) { - _iter966.write(oprot); + _iter990.write(oprot); } } } @@ -49216,14 +49348,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 _list967 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list967.size); - FieldSchema _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.success = new ArrayList(_list991.size); + FieldSchema _elem992; + for (int _i993 = 0; _i993 < _list991.size; ++_i993) { - _elem968 = new FieldSchema(); - _elem968.read(iprot); - struct.success.add(_elem968); + _elem992 = new FieldSchema(); + _elem992.read(iprot); + struct.success.add(_elem992); } } struct.setSuccessIsSet(true); @@ -50268,14 +50400,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 _list970 = iprot.readListBegin(); - struct.success = new ArrayList(_list970.size); - FieldSchema _elem971; - for (int _i972 = 0; _i972 < _list970.size; ++_i972) + org.apache.thrift.protocol.TList _list994 = iprot.readListBegin(); + struct.success = new ArrayList(_list994.size); + FieldSchema _elem995; + for (int _i996 = 0; _i996 < _list994.size; ++_i996) { - _elem971 = new FieldSchema(); - _elem971.read(iprot); - struct.success.add(_elem971); + _elem995 = new FieldSchema(); + _elem995.read(iprot); + struct.success.add(_elem995); } iprot.readListEnd(); } @@ -50328,9 +50460,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 _iter973 : struct.success) + for (FieldSchema _iter997 : struct.success) { - _iter973.write(oprot); + _iter997.write(oprot); } oprot.writeListEnd(); } @@ -50385,9 +50517,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter974 : struct.success) + for (FieldSchema _iter998 : struct.success) { - _iter974.write(oprot); + _iter998.write(oprot); } } } @@ -50408,14 +50540,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 _list975 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list975.size); - FieldSchema _elem976; - for (int _i977 = 0; _i977 < _list975.size; ++_i977) + org.apache.thrift.protocol.TList _list999 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list999.size); + FieldSchema _elem1000; + for (int _i1001 = 0; _i1001 < _list999.size; ++_i1001) { - _elem976 = new FieldSchema(); - _elem976.read(iprot); - struct.success.add(_elem976); + _elem1000 = new FieldSchema(); + _elem1000.read(iprot); + struct.success.add(_elem1000); } } struct.setSuccessIsSet(true); @@ -51569,14 +51701,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 _list978 = iprot.readListBegin(); - struct.success = new ArrayList(_list978.size); - FieldSchema _elem979; - for (int _i980 = 0; _i980 < _list978.size; ++_i980) + org.apache.thrift.protocol.TList _list1002 = iprot.readListBegin(); + struct.success = new ArrayList(_list1002.size); + FieldSchema _elem1003; + for (int _i1004 = 0; _i1004 < _list1002.size; ++_i1004) { - _elem979 = new FieldSchema(); - _elem979.read(iprot); - struct.success.add(_elem979); + _elem1003 = new FieldSchema(); + _elem1003.read(iprot); + struct.success.add(_elem1003); } iprot.readListEnd(); } @@ -51629,9 +51761,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 _iter981 : struct.success) + for (FieldSchema _iter1005 : struct.success) { - _iter981.write(oprot); + _iter1005.write(oprot); } oprot.writeListEnd(); } @@ -51686,9 +51818,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_with_env if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter982 : struct.success) + for (FieldSchema _iter1006 : struct.success) { - _iter982.write(oprot); + _iter1006.write(oprot); } } } @@ -51709,14 +51841,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 _list983 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list983.size); - FieldSchema _elem984; - for (int _i985 = 0; _i985 < _list983.size; ++_i985) + org.apache.thrift.protocol.TList _list1007 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1007.size); + FieldSchema _elem1008; + for (int _i1009 = 0; _i1009 < _list1007.size; ++_i1009) { - _elem984 = new FieldSchema(); - _elem984.read(iprot); - struct.success.add(_elem984); + _elem1008 = new FieldSchema(); + _elem1008.read(iprot); + struct.success.add(_elem1008); } } struct.setSuccessIsSet(true); @@ -54845,14 +54977,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 _list986 = iprot.readListBegin(); - struct.primaryKeys = new ArrayList(_list986.size); - SQLPrimaryKey _elem987; - for (int _i988 = 0; _i988 < _list986.size; ++_i988) + org.apache.thrift.protocol.TList _list1010 = iprot.readListBegin(); + struct.primaryKeys = new ArrayList(_list1010.size); + SQLPrimaryKey _elem1011; + for (int _i1012 = 0; _i1012 < _list1010.size; ++_i1012) { - _elem987 = new SQLPrimaryKey(); - _elem987.read(iprot); - struct.primaryKeys.add(_elem987); + _elem1011 = new SQLPrimaryKey(); + _elem1011.read(iprot); + struct.primaryKeys.add(_elem1011); } iprot.readListEnd(); } @@ -54864,14 +54996,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 _list989 = iprot.readListBegin(); - struct.foreignKeys = new ArrayList(_list989.size); - SQLForeignKey _elem990; - for (int _i991 = 0; _i991 < _list989.size; ++_i991) + org.apache.thrift.protocol.TList _list1013 = iprot.readListBegin(); + struct.foreignKeys = new ArrayList(_list1013.size); + SQLForeignKey _elem1014; + for (int _i1015 = 0; _i1015 < _list1013.size; ++_i1015) { - _elem990 = new SQLForeignKey(); - _elem990.read(iprot); - struct.foreignKeys.add(_elem990); + _elem1014 = new SQLForeignKey(); + _elem1014.read(iprot); + struct.foreignKeys.add(_elem1014); } iprot.readListEnd(); } @@ -54883,14 +55015,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 _list992 = iprot.readListBegin(); - struct.uniqueConstraints = new ArrayList(_list992.size); - SQLUniqueConstraint _elem993; - for (int _i994 = 0; _i994 < _list992.size; ++_i994) + org.apache.thrift.protocol.TList _list1016 = iprot.readListBegin(); + struct.uniqueConstraints = new ArrayList(_list1016.size); + SQLUniqueConstraint _elem1017; + for (int _i1018 = 0; _i1018 < _list1016.size; ++_i1018) { - _elem993 = new SQLUniqueConstraint(); - _elem993.read(iprot); - struct.uniqueConstraints.add(_elem993); + _elem1017 = new SQLUniqueConstraint(); + _elem1017.read(iprot); + struct.uniqueConstraints.add(_elem1017); } iprot.readListEnd(); } @@ -54902,14 +55034,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 _list995 = iprot.readListBegin(); - struct.notNullConstraints = new ArrayList(_list995.size); - SQLNotNullConstraint _elem996; - for (int _i997 = 0; _i997 < _list995.size; ++_i997) + org.apache.thrift.protocol.TList _list1019 = iprot.readListBegin(); + struct.notNullConstraints = new ArrayList(_list1019.size); + SQLNotNullConstraint _elem1020; + for (int _i1021 = 0; _i1021 < _list1019.size; ++_i1021) { - _elem996 = new SQLNotNullConstraint(); - _elem996.read(iprot); - struct.notNullConstraints.add(_elem996); + _elem1020 = new SQLNotNullConstraint(); + _elem1020.read(iprot); + struct.notNullConstraints.add(_elem1020); } iprot.readListEnd(); } @@ -54921,14 +55053,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 _list998 = iprot.readListBegin(); - struct.defaultConstraints = new ArrayList(_list998.size); - SQLDefaultConstraint _elem999; - for (int _i1000 = 0; _i1000 < _list998.size; ++_i1000) + org.apache.thrift.protocol.TList _list1022 = iprot.readListBegin(); + struct.defaultConstraints = new ArrayList(_list1022.size); + SQLDefaultConstraint _elem1023; + for (int _i1024 = 0; _i1024 < _list1022.size; ++_i1024) { - _elem999 = new SQLDefaultConstraint(); - _elem999.read(iprot); - struct.defaultConstraints.add(_elem999); + _elem1023 = new SQLDefaultConstraint(); + _elem1023.read(iprot); + struct.defaultConstraints.add(_elem1023); } iprot.readListEnd(); } @@ -54940,14 +55072,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 _list1001 = iprot.readListBegin(); - struct.checkConstraints = new ArrayList(_list1001.size); - SQLCheckConstraint _elem1002; - for (int _i1003 = 0; _i1003 < _list1001.size; ++_i1003) + org.apache.thrift.protocol.TList _list1025 = iprot.readListBegin(); + struct.checkConstraints = new ArrayList(_list1025.size); + SQLCheckConstraint _elem1026; + for (int _i1027 = 0; _i1027 < _list1025.size; ++_i1027) { - _elem1002 = new SQLCheckConstraint(); - _elem1002.read(iprot); - struct.checkConstraints.add(_elem1002); + _elem1026 = new SQLCheckConstraint(); + _elem1026.read(iprot); + struct.checkConstraints.add(_elem1026); } iprot.readListEnd(); } @@ -54978,9 +55110,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 _iter1004 : struct.primaryKeys) + for (SQLPrimaryKey _iter1028 : struct.primaryKeys) { - _iter1004.write(oprot); + _iter1028.write(oprot); } oprot.writeListEnd(); } @@ -54990,9 +55122,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 _iter1005 : struct.foreignKeys) + for (SQLForeignKey _iter1029 : struct.foreignKeys) { - _iter1005.write(oprot); + _iter1029.write(oprot); } oprot.writeListEnd(); } @@ -55002,9 +55134,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 _iter1006 : struct.uniqueConstraints) + for (SQLUniqueConstraint _iter1030 : struct.uniqueConstraints) { - _iter1006.write(oprot); + _iter1030.write(oprot); } oprot.writeListEnd(); } @@ -55014,9 +55146,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 _iter1007 : struct.notNullConstraints) + for (SQLNotNullConstraint _iter1031 : struct.notNullConstraints) { - _iter1007.write(oprot); + _iter1031.write(oprot); } oprot.writeListEnd(); } @@ -55026,9 +55158,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 _iter1008 : struct.defaultConstraints) + for (SQLDefaultConstraint _iter1032 : struct.defaultConstraints) { - _iter1008.write(oprot); + _iter1032.write(oprot); } oprot.writeListEnd(); } @@ -55038,9 +55170,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 _iter1009 : struct.checkConstraints) + for (SQLCheckConstraint _iter1033 : struct.checkConstraints) { - _iter1009.write(oprot); + _iter1033.write(oprot); } oprot.writeListEnd(); } @@ -55092,54 +55224,54 @@ public void write(org.apache.thrift.protocol.TProtocol prot, create_table_with_c if (struct.isSetPrimaryKeys()) { { oprot.writeI32(struct.primaryKeys.size()); - for (SQLPrimaryKey _iter1010 : struct.primaryKeys) + for (SQLPrimaryKey _iter1034 : struct.primaryKeys) { - _iter1010.write(oprot); + _iter1034.write(oprot); } } } if (struct.isSetForeignKeys()) { { oprot.writeI32(struct.foreignKeys.size()); - for (SQLForeignKey _iter1011 : struct.foreignKeys) + for (SQLForeignKey _iter1035 : struct.foreignKeys) { - _iter1011.write(oprot); + _iter1035.write(oprot); } } } if (struct.isSetUniqueConstraints()) { { oprot.writeI32(struct.uniqueConstraints.size()); - for (SQLUniqueConstraint _iter1012 : struct.uniqueConstraints) + for (SQLUniqueConstraint _iter1036 : struct.uniqueConstraints) { - _iter1012.write(oprot); + _iter1036.write(oprot); } } } if (struct.isSetNotNullConstraints()) { { oprot.writeI32(struct.notNullConstraints.size()); - for (SQLNotNullConstraint _iter1013 : struct.notNullConstraints) + for (SQLNotNullConstraint _iter1037 : struct.notNullConstraints) { - _iter1013.write(oprot); + _iter1037.write(oprot); } } } if (struct.isSetDefaultConstraints()) { { oprot.writeI32(struct.defaultConstraints.size()); - for (SQLDefaultConstraint _iter1014 : struct.defaultConstraints) + for (SQLDefaultConstraint _iter1038 : struct.defaultConstraints) { - _iter1014.write(oprot); + _iter1038.write(oprot); } } } if (struct.isSetCheckConstraints()) { { oprot.writeI32(struct.checkConstraints.size()); - for (SQLCheckConstraint _iter1015 : struct.checkConstraints) + for (SQLCheckConstraint _iter1039 : struct.checkConstraints) { - _iter1015.write(oprot); + _iter1039.write(oprot); } } } @@ -55156,84 +55288,84 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_table_with_co } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list1016 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.primaryKeys = new ArrayList(_list1016.size); - SQLPrimaryKey _elem1017; - for (int _i1018 = 0; _i1018 < _list1016.size; ++_i1018) + org.apache.thrift.protocol.TList _list1040 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.primaryKeys = new ArrayList(_list1040.size); + SQLPrimaryKey _elem1041; + for (int _i1042 = 0; _i1042 < _list1040.size; ++_i1042) { - _elem1017 = new SQLPrimaryKey(); - _elem1017.read(iprot); - struct.primaryKeys.add(_elem1017); + _elem1041 = new SQLPrimaryKey(); + _elem1041.read(iprot); + struct.primaryKeys.add(_elem1041); } } struct.setPrimaryKeysIsSet(true); } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1019 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.foreignKeys = new ArrayList(_list1019.size); - SQLForeignKey _elem1020; - for (int _i1021 = 0; _i1021 < _list1019.size; ++_i1021) + org.apache.thrift.protocol.TList _list1043 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.foreignKeys = new ArrayList(_list1043.size); + SQLForeignKey _elem1044; + for (int _i1045 = 0; _i1045 < _list1043.size; ++_i1045) { - _elem1020 = new SQLForeignKey(); - _elem1020.read(iprot); - struct.foreignKeys.add(_elem1020); + _elem1044 = new SQLForeignKey(); + _elem1044.read(iprot); + struct.foreignKeys.add(_elem1044); } } struct.setForeignKeysIsSet(true); } if (incoming.get(3)) { { - org.apache.thrift.protocol.TList _list1022 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.uniqueConstraints = new ArrayList(_list1022.size); - SQLUniqueConstraint _elem1023; - for (int _i1024 = 0; _i1024 < _list1022.size; ++_i1024) + org.apache.thrift.protocol.TList _list1046 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.uniqueConstraints = new ArrayList(_list1046.size); + SQLUniqueConstraint _elem1047; + for (int _i1048 = 0; _i1048 < _list1046.size; ++_i1048) { - _elem1023 = new SQLUniqueConstraint(); - _elem1023.read(iprot); - struct.uniqueConstraints.add(_elem1023); + _elem1047 = new SQLUniqueConstraint(); + _elem1047.read(iprot); + struct.uniqueConstraints.add(_elem1047); } } struct.setUniqueConstraintsIsSet(true); } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list1025 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.notNullConstraints = new ArrayList(_list1025.size); - SQLNotNullConstraint _elem1026; - for (int _i1027 = 0; _i1027 < _list1025.size; ++_i1027) + org.apache.thrift.protocol.TList _list1049 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.notNullConstraints = new ArrayList(_list1049.size); + SQLNotNullConstraint _elem1050; + for (int _i1051 = 0; _i1051 < _list1049.size; ++_i1051) { - _elem1026 = new SQLNotNullConstraint(); - _elem1026.read(iprot); - struct.notNullConstraints.add(_elem1026); + _elem1050 = new SQLNotNullConstraint(); + _elem1050.read(iprot); + struct.notNullConstraints.add(_elem1050); } } struct.setNotNullConstraintsIsSet(true); } if (incoming.get(5)) { { - org.apache.thrift.protocol.TList _list1028 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.defaultConstraints = new ArrayList(_list1028.size); - SQLDefaultConstraint _elem1029; - for (int _i1030 = 0; _i1030 < _list1028.size; ++_i1030) + org.apache.thrift.protocol.TList _list1052 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.defaultConstraints = new ArrayList(_list1052.size); + SQLDefaultConstraint _elem1053; + for (int _i1054 = 0; _i1054 < _list1052.size; ++_i1054) { - _elem1029 = new SQLDefaultConstraint(); - _elem1029.read(iprot); - struct.defaultConstraints.add(_elem1029); + _elem1053 = new SQLDefaultConstraint(); + _elem1053.read(iprot); + struct.defaultConstraints.add(_elem1053); } } struct.setDefaultConstraintsIsSet(true); } if (incoming.get(6)) { { - org.apache.thrift.protocol.TList _list1031 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.checkConstraints = new ArrayList(_list1031.size); - SQLCheckConstraint _elem1032; - for (int _i1033 = 0; _i1033 < _list1031.size; ++_i1033) + org.apache.thrift.protocol.TList _list1055 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.checkConstraints = new ArrayList(_list1055.size); + SQLCheckConstraint _elem1056; + for (int _i1057 = 0; _i1057 < _list1055.size; ++_i1057) { - _elem1032 = new SQLCheckConstraint(); - _elem1032.read(iprot); - struct.checkConstraints.add(_elem1032); + _elem1056 = new SQLCheckConstraint(); + _elem1056.read(iprot); + struct.checkConstraints.add(_elem1056); } } struct.setCheckConstraintsIsSet(true); @@ -64383,13 +64515,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 _list1034 = iprot.readListBegin(); - struct.partNames = new ArrayList(_list1034.size); - String _elem1035; - for (int _i1036 = 0; _i1036 < _list1034.size; ++_i1036) + org.apache.thrift.protocol.TList _list1058 = iprot.readListBegin(); + struct.partNames = new ArrayList(_list1058.size); + String _elem1059; + for (int _i1060 = 0; _i1060 < _list1058.size; ++_i1060) { - _elem1035 = iprot.readString(); - struct.partNames.add(_elem1035); + _elem1059 = iprot.readString(); + struct.partNames.add(_elem1059); } iprot.readListEnd(); } @@ -64425,9 +64557,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 _iter1037 : struct.partNames) + for (String _iter1061 : struct.partNames) { - oprot.writeString(_iter1037); + oprot.writeString(_iter1061); } oprot.writeListEnd(); } @@ -64470,9 +64602,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, truncate_table_args if (struct.isSetPartNames()) { { oprot.writeI32(struct.partNames.size()); - for (String _iter1038 : struct.partNames) + for (String _iter1062 : struct.partNames) { - oprot.writeString(_iter1038); + oprot.writeString(_iter1062); } } } @@ -64492,13 +64624,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, truncate_table_args } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1039 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partNames = new ArrayList(_list1039.size); - String _elem1040; - for (int _i1041 = 0; _i1041 < _list1039.size; ++_i1041) + org.apache.thrift.protocol.TList _list1063 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partNames = new ArrayList(_list1063.size); + String _elem1064; + for (int _i1065 = 0; _i1065 < _list1063.size; ++_i1065) { - _elem1040 = iprot.readString(); - struct.partNames.add(_elem1040); + _elem1064 = iprot.readString(); + struct.partNames.add(_elem1064); } } struct.setPartNamesIsSet(true); @@ -65723,13 +65855,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 _list1042 = iprot.readListBegin(); - struct.success = new ArrayList(_list1042.size); - String _elem1043; - for (int _i1044 = 0; _i1044 < _list1042.size; ++_i1044) + org.apache.thrift.protocol.TList _list1066 = iprot.readListBegin(); + struct.success = new ArrayList(_list1066.size); + String _elem1067; + for (int _i1068 = 0; _i1068 < _list1066.size; ++_i1068) { - _elem1043 = iprot.readString(); - struct.success.add(_elem1043); + _elem1067 = iprot.readString(); + struct.success.add(_elem1067); } iprot.readListEnd(); } @@ -65764,9 +65896,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 _iter1045 : struct.success) + for (String _iter1069 : struct.success) { - oprot.writeString(_iter1045); + oprot.writeString(_iter1069); } oprot.writeListEnd(); } @@ -65805,9 +65937,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1046 : struct.success) + for (String _iter1070 : struct.success) { - oprot.writeString(_iter1046); + oprot.writeString(_iter1070); } } } @@ -65822,13 +65954,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 _list1047 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1047.size); - String _elem1048; - for (int _i1049 = 0; _i1049 < _list1047.size; ++_i1049) + org.apache.thrift.protocol.TList _list1071 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1071.size); + String _elem1072; + for (int _i1073 = 0; _i1073 < _list1071.size; ++_i1073) { - _elem1048 = iprot.readString(); - struct.success.add(_elem1048); + _elem1072 = iprot.readString(); + struct.success.add(_elem1072); } } struct.setSuccessIsSet(true); @@ -66802,13 +66934,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 _list1050 = iprot.readListBegin(); - struct.success = new ArrayList(_list1050.size); - String _elem1051; - for (int _i1052 = 0; _i1052 < _list1050.size; ++_i1052) + org.apache.thrift.protocol.TList _list1074 = iprot.readListBegin(); + struct.success = new ArrayList(_list1074.size); + String _elem1075; + for (int _i1076 = 0; _i1076 < _list1074.size; ++_i1076) { - _elem1051 = iprot.readString(); - struct.success.add(_elem1051); + _elem1075 = iprot.readString(); + struct.success.add(_elem1075); } iprot.readListEnd(); } @@ -66843,9 +66975,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 _iter1053 : struct.success) + for (String _iter1077 : struct.success) { - oprot.writeString(_iter1053); + oprot.writeString(_iter1077); } oprot.writeListEnd(); } @@ -66884,9 +67016,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_ if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1054 : struct.success) + for (String _iter1078 : struct.success) { - oprot.writeString(_iter1054); + oprot.writeString(_iter1078); } } } @@ -66901,13 +67033,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 _list1055 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1055.size); - String _elem1056; - for (int _i1057 = 0; _i1057 < _list1055.size; ++_i1057) + org.apache.thrift.protocol.TList _list1079 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1079.size); + String _elem1080; + for (int _i1081 = 0; _i1081 < _list1079.size; ++_i1081) { - _elem1056 = iprot.readString(); - struct.success.add(_elem1056); + _elem1080 = iprot.readString(); + struct.success.add(_elem1080); } } struct.setSuccessIsSet(true); @@ -67673,13 +67805,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 _list1058 = iprot.readListBegin(); - struct.success = new ArrayList(_list1058.size); - String _elem1059; - for (int _i1060 = 0; _i1060 < _list1058.size; ++_i1060) + org.apache.thrift.protocol.TList _list1082 = iprot.readListBegin(); + struct.success = new ArrayList(_list1082.size); + String _elem1083; + for (int _i1084 = 0; _i1084 < _list1082.size; ++_i1084) { - _elem1059 = iprot.readString(); - struct.success.add(_elem1059); + _elem1083 = iprot.readString(); + struct.success.add(_elem1083); } iprot.readListEnd(); } @@ -67714,9 +67846,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 _iter1061 : struct.success) + for (String _iter1085 : struct.success) { - oprot.writeString(_iter1061); + oprot.writeString(_iter1085); } oprot.writeListEnd(); } @@ -67755,9 +67887,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_materialized_vi if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1062 : struct.success) + for (String _iter1086 : struct.success) { - oprot.writeString(_iter1062); + oprot.writeString(_iter1086); } } } @@ -67772,13 +67904,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 _list1063 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1063.size); - String _elem1064; - for (int _i1065 = 0; _i1065 < _list1063.size; ++_i1065) + org.apache.thrift.protocol.TList _list1087 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1087.size); + String _elem1088; + for (int _i1089 = 0; _i1089 < _list1087.size; ++_i1089) { - _elem1064 = iprot.readString(); - struct.success.add(_elem1064); + _elem1088 = iprot.readString(); + struct.success.add(_elem1088); } } struct.setSuccessIsSet(true); @@ -68283,13 +68415,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 _list1066 = iprot.readListBegin(); - struct.tbl_types = new ArrayList(_list1066.size); - String _elem1067; - for (int _i1068 = 0; _i1068 < _list1066.size; ++_i1068) + org.apache.thrift.protocol.TList _list1090 = iprot.readListBegin(); + struct.tbl_types = new ArrayList(_list1090.size); + String _elem1091; + for (int _i1092 = 0; _i1092 < _list1090.size; ++_i1092) { - _elem1067 = iprot.readString(); - struct.tbl_types.add(_elem1067); + _elem1091 = iprot.readString(); + struct.tbl_types.add(_elem1091); } iprot.readListEnd(); } @@ -68325,9 +68457,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 _iter1069 : struct.tbl_types) + for (String _iter1093 : struct.tbl_types) { - oprot.writeString(_iter1069); + oprot.writeString(_iter1093); } oprot.writeListEnd(); } @@ -68370,9 +68502,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 _iter1070 : struct.tbl_types) + for (String _iter1094 : struct.tbl_types) { - oprot.writeString(_iter1070); + oprot.writeString(_iter1094); } } } @@ -68392,13 +68524,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_meta_args } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1071 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tbl_types = new ArrayList(_list1071.size); - String _elem1072; - for (int _i1073 = 0; _i1073 < _list1071.size; ++_i1073) + org.apache.thrift.protocol.TList _list1095 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tbl_types = new ArrayList(_list1095.size); + String _elem1096; + for (int _i1097 = 0; _i1097 < _list1095.size; ++_i1097) { - _elem1072 = iprot.readString(); - struct.tbl_types.add(_elem1072); + _elem1096 = iprot.readString(); + struct.tbl_types.add(_elem1096); } } struct.setTbl_typesIsSet(true); @@ -68804,14 +68936,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 _list1074 = iprot.readListBegin(); - struct.success = new ArrayList(_list1074.size); - TableMeta _elem1075; - for (int _i1076 = 0; _i1076 < _list1074.size; ++_i1076) + org.apache.thrift.protocol.TList _list1098 = iprot.readListBegin(); + struct.success = new ArrayList(_list1098.size); + TableMeta _elem1099; + for (int _i1100 = 0; _i1100 < _list1098.size; ++_i1100) { - _elem1075 = new TableMeta(); - _elem1075.read(iprot); - struct.success.add(_elem1075); + _elem1099 = new TableMeta(); + _elem1099.read(iprot); + struct.success.add(_elem1099); } iprot.readListEnd(); } @@ -68846,9 +68978,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 _iter1077 : struct.success) + for (TableMeta _iter1101 : struct.success) { - _iter1077.write(oprot); + _iter1101.write(oprot); } oprot.writeListEnd(); } @@ -68887,9 +69019,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_meta_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (TableMeta _iter1078 : struct.success) + for (TableMeta _iter1102 : struct.success) { - _iter1078.write(oprot); + _iter1102.write(oprot); } } } @@ -68904,14 +69036,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 _list1079 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1079.size); - TableMeta _elem1080; - for (int _i1081 = 0; _i1081 < _list1079.size; ++_i1081) + org.apache.thrift.protocol.TList _list1103 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1103.size); + TableMeta _elem1104; + for (int _i1105 = 0; _i1105 < _list1103.size; ++_i1105) { - _elem1080 = new TableMeta(); - _elem1080.read(iprot); - struct.success.add(_elem1080); + _elem1104 = new TableMeta(); + _elem1104.read(iprot); + struct.success.add(_elem1104); } } struct.setSuccessIsSet(true); @@ -69677,13 +69809,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 _list1082 = iprot.readListBegin(); - struct.success = new ArrayList(_list1082.size); - String _elem1083; - for (int _i1084 = 0; _i1084 < _list1082.size; ++_i1084) + org.apache.thrift.protocol.TList _list1106 = iprot.readListBegin(); + struct.success = new ArrayList(_list1106.size); + String _elem1107; + for (int _i1108 = 0; _i1108 < _list1106.size; ++_i1108) { - _elem1083 = iprot.readString(); - struct.success.add(_elem1083); + _elem1107 = iprot.readString(); + struct.success.add(_elem1107); } iprot.readListEnd(); } @@ -69718,9 +69850,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 _iter1085 : struct.success) + for (String _iter1109 : struct.success) { - oprot.writeString(_iter1085); + oprot.writeString(_iter1109); } oprot.writeListEnd(); } @@ -69759,9 +69891,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_tables_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1086 : struct.success) + for (String _iter1110 : struct.success) { - oprot.writeString(_iter1086); + oprot.writeString(_iter1110); } } } @@ -69776,13 +69908,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 _list1087 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1087.size); - String _elem1088; - for (int _i1089 = 0; _i1089 < _list1087.size; ++_i1089) + org.apache.thrift.protocol.TList _list1111 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1111.size); + String _elem1112; + for (int _i1113 = 0; _i1113 < _list1111.size; ++_i1113) { - _elem1088 = iprot.readString(); - struct.success.add(_elem1088); + _elem1112 = iprot.readString(); + struct.success.add(_elem1112); } } struct.setSuccessIsSet(true); @@ -71235,13 +71367,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 _list1090 = iprot.readListBegin(); - struct.tbl_names = new ArrayList(_list1090.size); - String _elem1091; - for (int _i1092 = 0; _i1092 < _list1090.size; ++_i1092) + org.apache.thrift.protocol.TList _list1114 = iprot.readListBegin(); + struct.tbl_names = new ArrayList(_list1114.size); + String _elem1115; + for (int _i1116 = 0; _i1116 < _list1114.size; ++_i1116) { - _elem1091 = iprot.readString(); - struct.tbl_names.add(_elem1091); + _elem1115 = iprot.readString(); + struct.tbl_names.add(_elem1115); } iprot.readListEnd(); } @@ -71272,9 +71404,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 _iter1093 : struct.tbl_names) + for (String _iter1117 : struct.tbl_names) { - oprot.writeString(_iter1093); + oprot.writeString(_iter1117); } oprot.writeListEnd(); } @@ -71311,9 +71443,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 _iter1094 : struct.tbl_names) + for (String _iter1118 : struct.tbl_names) { - oprot.writeString(_iter1094); + oprot.writeString(_iter1118); } } } @@ -71329,13 +71461,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list1095 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tbl_names = new ArrayList(_list1095.size); - String _elem1096; - for (int _i1097 = 0; _i1097 < _list1095.size; ++_i1097) + org.apache.thrift.protocol.TList _list1119 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tbl_names = new ArrayList(_list1119.size); + String _elem1120; + for (int _i1121 = 0; _i1121 < _list1119.size; ++_i1121) { - _elem1096 = iprot.readString(); - struct.tbl_names.add(_elem1096); + _elem1120 = iprot.readString(); + struct.tbl_names.add(_elem1120); } } struct.setTbl_namesIsSet(true); @@ -71660,14 +71792,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 _list1098 = iprot.readListBegin(); - struct.success = new ArrayList
(_list1098.size); - Table _elem1099; - for (int _i1100 = 0; _i1100 < _list1098.size; ++_i1100) + org.apache.thrift.protocol.TList _list1122 = iprot.readListBegin(); + struct.success = new ArrayList
(_list1122.size); + Table _elem1123; + for (int _i1124 = 0; _i1124 < _list1122.size; ++_i1124) { - _elem1099 = new Table(); - _elem1099.read(iprot); - struct.success.add(_elem1099); + _elem1123 = new Table(); + _elem1123.read(iprot); + struct.success.add(_elem1123); } iprot.readListEnd(); } @@ -71693,9 +71825,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 _iter1101 : struct.success) + for (Table _iter1125 : struct.success) { - _iter1101.write(oprot); + _iter1125.write(oprot); } oprot.writeListEnd(); } @@ -71726,9 +71858,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_b if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Table _iter1102 : struct.success) + for (Table _iter1126 : struct.success) { - _iter1102.write(oprot); + _iter1126.write(oprot); } } } @@ -71740,14 +71872,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 _list1103 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList
(_list1103.size); - Table _elem1104; - for (int _i1105 = 0; _i1105 < _list1103.size; ++_i1105) + 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); + Table _elem1128; + for (int _i1129 = 0; _i1129 < _list1127.size; ++_i1129) { - _elem1104 = new Table(); - _elem1104.read(iprot); - struct.success.add(_elem1104); + _elem1128 = new Table(); + _elem1128.read(iprot); + struct.success.add(_elem1128); } } struct.setSuccessIsSet(true); @@ -74140,13 +74272,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialization case 2: // TBL_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1106 = iprot.readListBegin(); - struct.tbl_names = new ArrayList(_list1106.size); - String _elem1107; - for (int _i1108 = 0; _i1108 < _list1106.size; ++_i1108) + org.apache.thrift.protocol.TList _list1130 = iprot.readListBegin(); + struct.tbl_names = new ArrayList(_list1130.size); + String _elem1131; + for (int _i1132 = 0; _i1132 < _list1130.size; ++_i1132) { - _elem1107 = iprot.readString(); - struct.tbl_names.add(_elem1107); + _elem1131 = iprot.readString(); + struct.tbl_names.add(_elem1131); } iprot.readListEnd(); } @@ -74177,9 +74309,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_materializatio 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 _iter1109 : struct.tbl_names) + for (String _iter1133 : struct.tbl_names) { - oprot.writeString(_iter1109); + oprot.writeString(_iter1133); } oprot.writeListEnd(); } @@ -74216,9 +74348,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_materialization if (struct.isSetTbl_names()) { { oprot.writeI32(struct.tbl_names.size()); - for (String _iter1110 : struct.tbl_names) + for (String _iter1134 : struct.tbl_names) { - oprot.writeString(_iter1110); + oprot.writeString(_iter1134); } } } @@ -74234,13 +74366,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_materialization_ } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list1111 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tbl_names = new ArrayList(_list1111.size); - String _elem1112; - for (int _i1113 = 0; _i1113 < _list1111.size; ++_i1113) + org.apache.thrift.protocol.TList _list1135 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tbl_names = new ArrayList(_list1135.size); + String _elem1136; + for (int _i1137 = 0; _i1137 < _list1135.size; ++_i1137) { - _elem1112 = iprot.readString(); - struct.tbl_names.add(_elem1112); + _elem1136 = iprot.readString(); + struct.tbl_names.add(_elem1136); } } struct.setTbl_namesIsSet(true); @@ -74813,16 +74945,16 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialization case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map1114 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map1114.size); - String _key1115; - Materialization _val1116; - for (int _i1117 = 0; _i1117 < _map1114.size; ++_i1117) + org.apache.thrift.protocol.TMap _map1138 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map1138.size); + String _key1139; + Materialization _val1140; + for (int _i1141 = 0; _i1141 < _map1138.size; ++_i1141) { - _key1115 = iprot.readString(); - _val1116 = new Materialization(); - _val1116.read(iprot); - struct.success.put(_key1115, _val1116); + _key1139 = iprot.readString(); + _val1140 = new Materialization(); + _val1140.read(iprot); + struct.success.put(_key1139, _val1140); } iprot.readMapEnd(); } @@ -74875,10 +75007,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_materializatio 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 _iter1118 : struct.success.entrySet()) + for (Map.Entry _iter1142 : struct.success.entrySet()) { - oprot.writeString(_iter1118.getKey()); - _iter1118.getValue().write(oprot); + oprot.writeString(_iter1142.getKey()); + _iter1142.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -74933,10 +75065,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_materialization if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry _iter1119 : struct.success.entrySet()) + for (Map.Entry _iter1143 : struct.success.entrySet()) { - oprot.writeString(_iter1119.getKey()); - _iter1119.getValue().write(oprot); + oprot.writeString(_iter1143.getKey()); + _iter1143.getValue().write(oprot); } } } @@ -74957,16 +75089,16 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_materialization_ BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map1120 = 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*_map1120.size); - String _key1121; - Materialization _val1122; - for (int _i1123 = 0; _i1123 < _map1120.size; ++_i1123) + org.apache.thrift.protocol.TMap _map1144 = 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*_map1144.size); + String _key1145; + Materialization _val1146; + for (int _i1147 = 0; _i1147 < _map1144.size; ++_i1147) { - _key1121 = iprot.readString(); - _val1122 = new Materialization(); - _val1122.read(iprot); - struct.success.put(_key1121, _val1122); + _key1145 = iprot.readString(); + _val1146 = new Materialization(); + _val1146.read(iprot); + struct.success.put(_key1145, _val1146); } } struct.setSuccessIsSet(true); @@ -77359,13 +77491,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 _list1124 = iprot.readListBegin(); - struct.success = new ArrayList(_list1124.size); - String _elem1125; - for (int _i1126 = 0; _i1126 < _list1124.size; ++_i1126) + org.apache.thrift.protocol.TList _list1148 = iprot.readListBegin(); + struct.success = new ArrayList(_list1148.size); + String _elem1149; + for (int _i1150 = 0; _i1150 < _list1148.size; ++_i1150) { - _elem1125 = iprot.readString(); - struct.success.add(_elem1125); + _elem1149 = iprot.readString(); + struct.success.add(_elem1149); } iprot.readListEnd(); } @@ -77418,9 +77550,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 _iter1127 : struct.success) + for (String _iter1151 : struct.success) { - oprot.writeString(_iter1127); + oprot.writeString(_iter1151); } oprot.writeListEnd(); } @@ -77475,9 +77607,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_ if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1128 : struct.success) + for (String _iter1152 : struct.success) { - oprot.writeString(_iter1128); + oprot.writeString(_iter1152); } } } @@ -77498,13 +77630,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 _list1129 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1129.size); - String _elem1130; - for (int _i1131 = 0; _i1131 < _list1129.size; ++_i1131) + org.apache.thrift.protocol.TList _list1153 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1153.size); + String _elem1154; + for (int _i1155 = 0; _i1155 < _list1153.size; ++_i1155) { - _elem1130 = iprot.readString(); - struct.success.add(_elem1130); + _elem1154 = iprot.readString(); + struct.success.add(_elem1154); } } struct.setSuccessIsSet(true); @@ -83363,14 +83495,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 _list1132 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1132.size); - Partition _elem1133; - for (int _i1134 = 0; _i1134 < _list1132.size; ++_i1134) + org.apache.thrift.protocol.TList _list1156 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1156.size); + Partition _elem1157; + for (int _i1158 = 0; _i1158 < _list1156.size; ++_i1158) { - _elem1133 = new Partition(); - _elem1133.read(iprot); - struct.new_parts.add(_elem1133); + _elem1157 = new Partition(); + _elem1157.read(iprot); + struct.new_parts.add(_elem1157); } iprot.readListEnd(); } @@ -83396,9 +83528,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 _iter1135 : struct.new_parts) + for (Partition _iter1159 : struct.new_parts) { - _iter1135.write(oprot); + _iter1159.write(oprot); } oprot.writeListEnd(); } @@ -83429,9 +83561,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 _iter1136 : struct.new_parts) + for (Partition _iter1160 : struct.new_parts) { - _iter1136.write(oprot); + _iter1160.write(oprot); } } } @@ -83443,14 +83575,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 _list1137 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1137.size); - Partition _elem1138; - for (int _i1139 = 0; _i1139 < _list1137.size; ++_i1139) + org.apache.thrift.protocol.TList _list1161 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1161.size); + Partition _elem1162; + for (int _i1163 = 0; _i1163 < _list1161.size; ++_i1163) { - _elem1138 = new Partition(); - _elem1138.read(iprot); - struct.new_parts.add(_elem1138); + _elem1162 = new Partition(); + _elem1162.read(iprot); + struct.new_parts.add(_elem1162); } } struct.setNew_partsIsSet(true); @@ -84451,14 +84583,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 _list1140 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1140.size); - PartitionSpec _elem1141; - for (int _i1142 = 0; _i1142 < _list1140.size; ++_i1142) + org.apache.thrift.protocol.TList _list1164 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1164.size); + PartitionSpec _elem1165; + for (int _i1166 = 0; _i1166 < _list1164.size; ++_i1166) { - _elem1141 = new PartitionSpec(); - _elem1141.read(iprot); - struct.new_parts.add(_elem1141); + _elem1165 = new PartitionSpec(); + _elem1165.read(iprot); + struct.new_parts.add(_elem1165); } iprot.readListEnd(); } @@ -84484,9 +84616,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 _iter1143 : struct.new_parts) + for (PartitionSpec _iter1167 : struct.new_parts) { - _iter1143.write(oprot); + _iter1167.write(oprot); } oprot.writeListEnd(); } @@ -84517,9 +84649,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 _iter1144 : struct.new_parts) + for (PartitionSpec _iter1168 : struct.new_parts) { - _iter1144.write(oprot); + _iter1168.write(oprot); } } } @@ -84531,14 +84663,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 _list1145 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1145.size); - PartitionSpec _elem1146; - for (int _i1147 = 0; _i1147 < _list1145.size; ++_i1147) + org.apache.thrift.protocol.TList _list1169 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1169.size); + PartitionSpec _elem1170; + for (int _i1171 = 0; _i1171 < _list1169.size; ++_i1171) { - _elem1146 = new PartitionSpec(); - _elem1146.read(iprot); - struct.new_parts.add(_elem1146); + _elem1170 = new PartitionSpec(); + _elem1170.read(iprot); + struct.new_parts.add(_elem1170); } } struct.setNew_partsIsSet(true); @@ -85714,13 +85846,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 _list1148 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1148.size); - String _elem1149; - for (int _i1150 = 0; _i1150 < _list1148.size; ++_i1150) + org.apache.thrift.protocol.TList _list1172 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1172.size); + String _elem1173; + for (int _i1174 = 0; _i1174 < _list1172.size; ++_i1174) { - _elem1149 = iprot.readString(); - struct.part_vals.add(_elem1149); + _elem1173 = iprot.readString(); + struct.part_vals.add(_elem1173); } iprot.readListEnd(); } @@ -85756,9 +85888,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 _iter1151 : struct.part_vals) + for (String _iter1175 : struct.part_vals) { - oprot.writeString(_iter1151); + oprot.writeString(_iter1175); } oprot.writeListEnd(); } @@ -85801,9 +85933,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 _iter1152 : struct.part_vals) + for (String _iter1176 : struct.part_vals) { - oprot.writeString(_iter1152); + oprot.writeString(_iter1176); } } } @@ -85823,13 +85955,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1153 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1153.size); - String _elem1154; - for (int _i1155 = 0; _i1155 < _list1153.size; ++_i1155) + org.apache.thrift.protocol.TList _list1177 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1177.size); + String _elem1178; + for (int _i1179 = 0; _i1179 < _list1177.size; ++_i1179) { - _elem1154 = iprot.readString(); - struct.part_vals.add(_elem1154); + _elem1178 = iprot.readString(); + struct.part_vals.add(_elem1178); } } struct.setPart_valsIsSet(true); @@ -88138,13 +88270,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 _list1156 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1156.size); - String _elem1157; - for (int _i1158 = 0; _i1158 < _list1156.size; ++_i1158) + org.apache.thrift.protocol.TList _list1180 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1180.size); + String _elem1181; + for (int _i1182 = 0; _i1182 < _list1180.size; ++_i1182) { - _elem1157 = iprot.readString(); - struct.part_vals.add(_elem1157); + _elem1181 = iprot.readString(); + struct.part_vals.add(_elem1181); } iprot.readListEnd(); } @@ -88189,9 +88321,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 _iter1159 : struct.part_vals) + for (String _iter1183 : struct.part_vals) { - oprot.writeString(_iter1159); + oprot.writeString(_iter1183); } oprot.writeListEnd(); } @@ -88242,9 +88374,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 _iter1160 : struct.part_vals) + for (String _iter1184 : struct.part_vals) { - oprot.writeString(_iter1160); + oprot.writeString(_iter1184); } } } @@ -88267,13 +88399,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_wit } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1161 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1161.size); - String _elem1162; - for (int _i1163 = 0; _i1163 < _list1161.size; ++_i1163) + org.apache.thrift.protocol.TList _list1185 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1185.size); + String _elem1186; + for (int _i1187 = 0; _i1187 < _list1185.size; ++_i1187) { - _elem1162 = iprot.readString(); - struct.part_vals.add(_elem1162); + _elem1186 = iprot.readString(); + struct.part_vals.add(_elem1186); } } struct.setPart_valsIsSet(true); @@ -92143,13 +92275,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 _list1164 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1164.size); - String _elem1165; - for (int _i1166 = 0; _i1166 < _list1164.size; ++_i1166) + org.apache.thrift.protocol.TList _list1188 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1188.size); + String _elem1189; + for (int _i1190 = 0; _i1190 < _list1188.size; ++_i1190) { - _elem1165 = iprot.readString(); - struct.part_vals.add(_elem1165); + _elem1189 = iprot.readString(); + struct.part_vals.add(_elem1189); } iprot.readListEnd(); } @@ -92193,9 +92325,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 _iter1167 : struct.part_vals) + for (String _iter1191 : struct.part_vals) { - oprot.writeString(_iter1167); + oprot.writeString(_iter1191); } oprot.writeListEnd(); } @@ -92244,9 +92376,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 _iter1168 : struct.part_vals) + for (String _iter1192 : struct.part_vals) { - oprot.writeString(_iter1168); + oprot.writeString(_iter1192); } } } @@ -92269,13 +92401,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_args } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1169 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1169.size); - String _elem1170; - for (int _i1171 = 0; _i1171 < _list1169.size; ++_i1171) + org.apache.thrift.protocol.TList _list1193 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1193.size); + String _elem1194; + for (int _i1195 = 0; _i1195 < _list1193.size; ++_i1195) { - _elem1170 = iprot.readString(); - struct.part_vals.add(_elem1170); + _elem1194 = iprot.readString(); + struct.part_vals.add(_elem1194); } } struct.setPart_valsIsSet(true); @@ -93514,13 +93646,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 _list1172 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1172.size); - String _elem1173; - for (int _i1174 = 0; _i1174 < _list1172.size; ++_i1174) + org.apache.thrift.protocol.TList _list1196 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1196.size); + String _elem1197; + for (int _i1198 = 0; _i1198 < _list1196.size; ++_i1198) { - _elem1173 = iprot.readString(); - struct.part_vals.add(_elem1173); + _elem1197 = iprot.readString(); + struct.part_vals.add(_elem1197); } iprot.readListEnd(); } @@ -93573,9 +93705,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 _iter1175 : struct.part_vals) + for (String _iter1199 : struct.part_vals) { - oprot.writeString(_iter1175); + oprot.writeString(_iter1199); } oprot.writeListEnd(); } @@ -93632,9 +93764,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 _iter1176 : struct.part_vals) + for (String _iter1200 : struct.part_vals) { - oprot.writeString(_iter1176); + oprot.writeString(_iter1200); } } } @@ -93660,13 +93792,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_ } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1177 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1177.size); - String _elem1178; - for (int _i1179 = 0; _i1179 < _list1177.size; ++_i1179) + org.apache.thrift.protocol.TList _list1201 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1201.size); + String _elem1202; + for (int _i1203 = 0; _i1203 < _list1201.size; ++_i1203) { - _elem1178 = iprot.readString(); - struct.part_vals.add(_elem1178); + _elem1202 = iprot.readString(); + struct.part_vals.add(_elem1202); } } struct.setPart_valsIsSet(true); @@ -98268,13 +98400,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 _list1180 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1180.size); - String _elem1181; - for (int _i1182 = 0; _i1182 < _list1180.size; ++_i1182) + org.apache.thrift.protocol.TList _list1204 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1204.size); + String _elem1205; + for (int _i1206 = 0; _i1206 < _list1204.size; ++_i1206) { - _elem1181 = iprot.readString(); - struct.part_vals.add(_elem1181); + _elem1205 = iprot.readString(); + struct.part_vals.add(_elem1205); } iprot.readListEnd(); } @@ -98310,9 +98442,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 _iter1183 : struct.part_vals) + for (String _iter1207 : struct.part_vals) { - oprot.writeString(_iter1183); + oprot.writeString(_iter1207); } oprot.writeListEnd(); } @@ -98355,9 +98487,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 _iter1184 : struct.part_vals) + for (String _iter1208 : struct.part_vals) { - oprot.writeString(_iter1184); + oprot.writeString(_iter1208); } } } @@ -98377,13 +98509,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_args s } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1185 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1185.size); - String _elem1186; - for (int _i1187 = 0; _i1187 < _list1185.size; ++_i1187) + org.apache.thrift.protocol.TList _list1209 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1209.size); + String _elem1210; + for (int _i1211 = 0; _i1211 < _list1209.size; ++_i1211) { - _elem1186 = iprot.readString(); - struct.part_vals.add(_elem1186); + _elem1210 = iprot.readString(); + struct.part_vals.add(_elem1210); } } struct.setPart_valsIsSet(true); @@ -99601,15 +99733,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 _map1188 = iprot.readMapBegin(); - struct.partitionSpecs = new HashMap(2*_map1188.size); - String _key1189; - String _val1190; - for (int _i1191 = 0; _i1191 < _map1188.size; ++_i1191) + org.apache.thrift.protocol.TMap _map1212 = iprot.readMapBegin(); + struct.partitionSpecs = new HashMap(2*_map1212.size); + String _key1213; + String _val1214; + for (int _i1215 = 0; _i1215 < _map1212.size; ++_i1215) { - _key1189 = iprot.readString(); - _val1190 = iprot.readString(); - struct.partitionSpecs.put(_key1189, _val1190); + _key1213 = iprot.readString(); + _val1214 = iprot.readString(); + struct.partitionSpecs.put(_key1213, _val1214); } iprot.readMapEnd(); } @@ -99667,10 +99799,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 _iter1192 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter1216 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1192.getKey()); - oprot.writeString(_iter1192.getValue()); + oprot.writeString(_iter1216.getKey()); + oprot.writeString(_iter1216.getValue()); } oprot.writeMapEnd(); } @@ -99733,10 +99865,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_ if (struct.isSetPartitionSpecs()) { { oprot.writeI32(struct.partitionSpecs.size()); - for (Map.Entry _iter1193 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter1217 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1193.getKey()); - oprot.writeString(_iter1193.getValue()); + oprot.writeString(_iter1217.getKey()); + oprot.writeString(_iter1217.getValue()); } } } @@ -99760,15 +99892,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 _map1194 = 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*_map1194.size); - String _key1195; - String _val1196; - for (int _i1197 = 0; _i1197 < _map1194.size; ++_i1197) + org.apache.thrift.protocol.TMap _map1218 = 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*_map1218.size); + String _key1219; + String _val1220; + for (int _i1221 = 0; _i1221 < _map1218.size; ++_i1221) { - _key1195 = iprot.readString(); - _val1196 = iprot.readString(); - struct.partitionSpecs.put(_key1195, _val1196); + _key1219 = iprot.readString(); + _val1220 = iprot.readString(); + struct.partitionSpecs.put(_key1219, _val1220); } } struct.setPartitionSpecsIsSet(true); @@ -101214,15 +101346,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 _map1198 = iprot.readMapBegin(); - struct.partitionSpecs = new HashMap(2*_map1198.size); - String _key1199; - String _val1200; - for (int _i1201 = 0; _i1201 < _map1198.size; ++_i1201) + org.apache.thrift.protocol.TMap _map1222 = iprot.readMapBegin(); + struct.partitionSpecs = new HashMap(2*_map1222.size); + String _key1223; + String _val1224; + for (int _i1225 = 0; _i1225 < _map1222.size; ++_i1225) { - _key1199 = iprot.readString(); - _val1200 = iprot.readString(); - struct.partitionSpecs.put(_key1199, _val1200); + _key1223 = iprot.readString(); + _val1224 = iprot.readString(); + struct.partitionSpecs.put(_key1223, _val1224); } iprot.readMapEnd(); } @@ -101280,10 +101412,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 _iter1202 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter1226 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1202.getKey()); - oprot.writeString(_iter1202.getValue()); + oprot.writeString(_iter1226.getKey()); + oprot.writeString(_iter1226.getValue()); } oprot.writeMapEnd(); } @@ -101346,10 +101478,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions if (struct.isSetPartitionSpecs()) { { oprot.writeI32(struct.partitionSpecs.size()); - for (Map.Entry _iter1203 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter1227 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1203.getKey()); - oprot.writeString(_iter1203.getValue()); + oprot.writeString(_iter1227.getKey()); + oprot.writeString(_iter1227.getValue()); } } } @@ -101373,15 +101505,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 _map1204 = 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*_map1204.size); - String _key1205; - String _val1206; - for (int _i1207 = 0; _i1207 < _map1204.size; ++_i1207) + org.apache.thrift.protocol.TMap _map1228 = 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*_map1228.size); + String _key1229; + String _val1230; + for (int _i1231 = 0; _i1231 < _map1228.size; ++_i1231) { - _key1205 = iprot.readString(); - _val1206 = iprot.readString(); - struct.partitionSpecs.put(_key1205, _val1206); + _key1229 = iprot.readString(); + _val1230 = iprot.readString(); + struct.partitionSpecs.put(_key1229, _val1230); } } struct.setPartitionSpecsIsSet(true); @@ -102046,14 +102178,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 _list1208 = iprot.readListBegin(); - struct.success = new ArrayList(_list1208.size); - Partition _elem1209; - for (int _i1210 = 0; _i1210 < _list1208.size; ++_i1210) + org.apache.thrift.protocol.TList _list1232 = iprot.readListBegin(); + struct.success = new ArrayList(_list1232.size); + Partition _elem1233; + for (int _i1234 = 0; _i1234 < _list1232.size; ++_i1234) { - _elem1209 = new Partition(); - _elem1209.read(iprot); - struct.success.add(_elem1209); + _elem1233 = new Partition(); + _elem1233.read(iprot); + struct.success.add(_elem1233); } iprot.readListEnd(); } @@ -102115,9 +102247,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 _iter1211 : struct.success) + for (Partition _iter1235 : struct.success) { - _iter1211.write(oprot); + _iter1235.write(oprot); } oprot.writeListEnd(); } @@ -102180,9 +102312,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1212 : struct.success) + for (Partition _iter1236 : struct.success) { - _iter1212.write(oprot); + _iter1236.write(oprot); } } } @@ -102206,14 +102338,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 _list1213 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1213.size); - Partition _elem1214; - for (int _i1215 = 0; _i1215 < _list1213.size; ++_i1215) + org.apache.thrift.protocol.TList _list1237 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1237.size); + Partition _elem1238; + for (int _i1239 = 0; _i1239 < _list1237.size; ++_i1239) { - _elem1214 = new Partition(); - _elem1214.read(iprot); - struct.success.add(_elem1214); + _elem1238 = new Partition(); + _elem1238.read(iprot); + struct.success.add(_elem1238); } } struct.setSuccessIsSet(true); @@ -102912,13 +103044,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 _list1216 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1216.size); - String _elem1217; - for (int _i1218 = 0; _i1218 < _list1216.size; ++_i1218) + org.apache.thrift.protocol.TList _list1240 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1240.size); + String _elem1241; + for (int _i1242 = 0; _i1242 < _list1240.size; ++_i1242) { - _elem1217 = iprot.readString(); - struct.part_vals.add(_elem1217); + _elem1241 = iprot.readString(); + struct.part_vals.add(_elem1241); } iprot.readListEnd(); } @@ -102938,13 +103070,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 _list1219 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1219.size); - String _elem1220; - for (int _i1221 = 0; _i1221 < _list1219.size; ++_i1221) + org.apache.thrift.protocol.TList _list1243 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1243.size); + String _elem1244; + for (int _i1245 = 0; _i1245 < _list1243.size; ++_i1245) { - _elem1220 = iprot.readString(); - struct.group_names.add(_elem1220); + _elem1244 = iprot.readString(); + struct.group_names.add(_elem1244); } iprot.readListEnd(); } @@ -102980,9 +103112,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 _iter1222 : struct.part_vals) + for (String _iter1246 : struct.part_vals) { - oprot.writeString(_iter1222); + oprot.writeString(_iter1246); } oprot.writeListEnd(); } @@ -102997,9 +103129,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 _iter1223 : struct.group_names) + for (String _iter1247 : struct.group_names) { - oprot.writeString(_iter1223); + oprot.writeString(_iter1247); } oprot.writeListEnd(); } @@ -103048,9 +103180,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 _iter1224 : struct.part_vals) + for (String _iter1248 : struct.part_vals) { - oprot.writeString(_iter1224); + oprot.writeString(_iter1248); } } } @@ -103060,9 +103192,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 _iter1225 : struct.group_names) + for (String _iter1249 : struct.group_names) { - oprot.writeString(_iter1225); + oprot.writeString(_iter1249); } } } @@ -103082,13 +103214,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1226 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1226.size); - String _elem1227; - for (int _i1228 = 0; _i1228 < _list1226.size; ++_i1228) + org.apache.thrift.protocol.TList _list1250 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1250.size); + String _elem1251; + for (int _i1252 = 0; _i1252 < _list1250.size; ++_i1252) { - _elem1227 = iprot.readString(); - struct.part_vals.add(_elem1227); + _elem1251 = iprot.readString(); + struct.part_vals.add(_elem1251); } } struct.setPart_valsIsSet(true); @@ -103099,13 +103231,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list1229 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1229.size); - String _elem1230; - for (int _i1231 = 0; _i1231 < _list1229.size; ++_i1231) + org.apache.thrift.protocol.TList _list1253 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1253.size); + String _elem1254; + for (int _i1255 = 0; _i1255 < _list1253.size; ++_i1255) { - _elem1230 = iprot.readString(); - struct.group_names.add(_elem1230); + _elem1254 = iprot.readString(); + struct.group_names.add(_elem1254); } } struct.setGroup_namesIsSet(true); @@ -105874,14 +106006,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 _list1232 = iprot.readListBegin(); - struct.success = new ArrayList(_list1232.size); - Partition _elem1233; - for (int _i1234 = 0; _i1234 < _list1232.size; ++_i1234) + org.apache.thrift.protocol.TList _list1256 = iprot.readListBegin(); + struct.success = new ArrayList(_list1256.size); + Partition _elem1257; + for (int _i1258 = 0; _i1258 < _list1256.size; ++_i1258) { - _elem1233 = new Partition(); - _elem1233.read(iprot); - struct.success.add(_elem1233); + _elem1257 = new Partition(); + _elem1257.read(iprot); + struct.success.add(_elem1257); } iprot.readListEnd(); } @@ -105925,9 +106057,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 _iter1235 : struct.success) + for (Partition _iter1259 : struct.success) { - _iter1235.write(oprot); + _iter1259.write(oprot); } oprot.writeListEnd(); } @@ -105974,9 +106106,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1236 : struct.success) + for (Partition _iter1260 : struct.success) { - _iter1236.write(oprot); + _iter1260.write(oprot); } } } @@ -105994,14 +106126,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 _list1237 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1237.size); - Partition _elem1238; - for (int _i1239 = 0; _i1239 < _list1237.size; ++_i1239) + org.apache.thrift.protocol.TList _list1261 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1261.size); + Partition _elem1262; + for (int _i1263 = 0; _i1263 < _list1261.size; ++_i1263) { - _elem1238 = new Partition(); - _elem1238.read(iprot); - struct.success.add(_elem1238); + _elem1262 = new Partition(); + _elem1262.read(iprot); + struct.success.add(_elem1262); } } struct.setSuccessIsSet(true); @@ -106691,13 +106823,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 _list1240 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1240.size); - String _elem1241; - for (int _i1242 = 0; _i1242 < _list1240.size; ++_i1242) + org.apache.thrift.protocol.TList _list1264 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1264.size); + String _elem1265; + for (int _i1266 = 0; _i1266 < _list1264.size; ++_i1266) { - _elem1241 = iprot.readString(); - struct.group_names.add(_elem1241); + _elem1265 = iprot.readString(); + struct.group_names.add(_elem1265); } iprot.readListEnd(); } @@ -106741,9 +106873,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 _iter1243 : struct.group_names) + for (String _iter1267 : struct.group_names) { - oprot.writeString(_iter1243); + oprot.writeString(_iter1267); } oprot.writeListEnd(); } @@ -106798,9 +106930,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 _iter1244 : struct.group_names) + for (String _iter1268 : struct.group_names) { - oprot.writeString(_iter1244); + oprot.writeString(_iter1268); } } } @@ -106828,13 +106960,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list1245 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1245.size); - String _elem1246; - for (int _i1247 = 0; _i1247 < _list1245.size; ++_i1247) + org.apache.thrift.protocol.TList _list1269 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1269.size); + String _elem1270; + for (int _i1271 = 0; _i1271 < _list1269.size; ++_i1271) { - _elem1246 = iprot.readString(); - struct.group_names.add(_elem1246); + _elem1270 = iprot.readString(); + struct.group_names.add(_elem1270); } } struct.setGroup_namesIsSet(true); @@ -107321,14 +107453,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 _list1248 = iprot.readListBegin(); - struct.success = new ArrayList(_list1248.size); - Partition _elem1249; - for (int _i1250 = 0; _i1250 < _list1248.size; ++_i1250) + org.apache.thrift.protocol.TList _list1272 = iprot.readListBegin(); + struct.success = new ArrayList(_list1272.size); + Partition _elem1273; + for (int _i1274 = 0; _i1274 < _list1272.size; ++_i1274) { - _elem1249 = new Partition(); - _elem1249.read(iprot); - struct.success.add(_elem1249); + _elem1273 = new Partition(); + _elem1273.read(iprot); + struct.success.add(_elem1273); } iprot.readListEnd(); } @@ -107372,9 +107504,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 _iter1251 : struct.success) + for (Partition _iter1275 : struct.success) { - _iter1251.write(oprot); + _iter1275.write(oprot); } oprot.writeListEnd(); } @@ -107421,9 +107553,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1252 : struct.success) + for (Partition _iter1276 : struct.success) { - _iter1252.write(oprot); + _iter1276.write(oprot); } } } @@ -107441,14 +107573,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 _list1253 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1253.size); - Partition _elem1254; - for (int _i1255 = 0; _i1255 < _list1253.size; ++_i1255) + org.apache.thrift.protocol.TList _list1277 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1277.size); + Partition _elem1278; + for (int _i1279 = 0; _i1279 < _list1277.size; ++_i1279) { - _elem1254 = new Partition(); - _elem1254.read(iprot); - struct.success.add(_elem1254); + _elem1278 = new Partition(); + _elem1278.read(iprot); + struct.success.add(_elem1278); } } struct.setSuccessIsSet(true); @@ -108511,14 +108643,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 _list1256 = iprot.readListBegin(); - struct.success = new ArrayList(_list1256.size); - PartitionSpec _elem1257; - for (int _i1258 = 0; _i1258 < _list1256.size; ++_i1258) + org.apache.thrift.protocol.TList _list1280 = iprot.readListBegin(); + struct.success = new ArrayList(_list1280.size); + PartitionSpec _elem1281; + for (int _i1282 = 0; _i1282 < _list1280.size; ++_i1282) { - _elem1257 = new PartitionSpec(); - _elem1257.read(iprot); - struct.success.add(_elem1257); + _elem1281 = new PartitionSpec(); + _elem1281.read(iprot); + struct.success.add(_elem1281); } iprot.readListEnd(); } @@ -108562,9 +108694,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 _iter1259 : struct.success) + for (PartitionSpec _iter1283 : struct.success) { - _iter1259.write(oprot); + _iter1283.write(oprot); } oprot.writeListEnd(); } @@ -108611,9 +108743,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspe if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (PartitionSpec _iter1260 : struct.success) + for (PartitionSpec _iter1284 : struct.success) { - _iter1260.write(oprot); + _iter1284.write(oprot); } } } @@ -108631,14 +108763,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 _list1261 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1261.size); - PartitionSpec _elem1262; - for (int _i1263 = 0; _i1263 < _list1261.size; ++_i1263) + org.apache.thrift.protocol.TList _list1285 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1285.size); + PartitionSpec _elem1286; + for (int _i1287 = 0; _i1287 < _list1285.size; ++_i1287) { - _elem1262 = new PartitionSpec(); - _elem1262.read(iprot); - struct.success.add(_elem1262); + _elem1286 = new PartitionSpec(); + _elem1286.read(iprot); + struct.success.add(_elem1286); } } struct.setSuccessIsSet(true); @@ -109698,13 +109830,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 _list1264 = iprot.readListBegin(); - struct.success = new ArrayList(_list1264.size); - String _elem1265; - for (int _i1266 = 0; _i1266 < _list1264.size; ++_i1266) + org.apache.thrift.protocol.TList _list1288 = iprot.readListBegin(); + struct.success = new ArrayList(_list1288.size); + String _elem1289; + for (int _i1290 = 0; _i1290 < _list1288.size; ++_i1290) { - _elem1265 = iprot.readString(); - struct.success.add(_elem1265); + _elem1289 = iprot.readString(); + struct.success.add(_elem1289); } iprot.readListEnd(); } @@ -109748,9 +109880,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 _iter1267 : struct.success) + for (String _iter1291 : struct.success) { - oprot.writeString(_iter1267); + oprot.writeString(_iter1291); } oprot.writeListEnd(); } @@ -109797,9 +109929,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1268 : struct.success) + for (String _iter1292 : struct.success) { - oprot.writeString(_iter1268); + oprot.writeString(_iter1292); } } } @@ -109817,13 +109949,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 _list1269 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1269.size); - String _elem1270; - for (int _i1271 = 0; _i1271 < _list1269.size; ++_i1271) + org.apache.thrift.protocol.TList _list1293 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1293.size); + String _elem1294; + for (int _i1295 = 0; _i1295 < _list1293.size; ++_i1295) { - _elem1270 = iprot.readString(); - struct.success.add(_elem1270); + _elem1294 = iprot.readString(); + struct.success.add(_elem1294); } } struct.setSuccessIsSet(true); @@ -111354,13 +111486,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 _list1272 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1272.size); - String _elem1273; - for (int _i1274 = 0; _i1274 < _list1272.size; ++_i1274) + org.apache.thrift.protocol.TList _list1296 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1296.size); + String _elem1297; + for (int _i1298 = 0; _i1298 < _list1296.size; ++_i1298) { - _elem1273 = iprot.readString(); - struct.part_vals.add(_elem1273); + _elem1297 = iprot.readString(); + struct.part_vals.add(_elem1297); } iprot.readListEnd(); } @@ -111404,9 +111536,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 _iter1275 : struct.part_vals) + for (String _iter1299 : struct.part_vals) { - oprot.writeString(_iter1275); + oprot.writeString(_iter1299); } oprot.writeListEnd(); } @@ -111455,9 +111587,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 _iter1276 : struct.part_vals) + for (String _iter1300 : struct.part_vals) { - oprot.writeString(_iter1276); + oprot.writeString(_iter1300); } } } @@ -111480,13 +111612,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1277 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1277.size); - String _elem1278; - for (int _i1279 = 0; _i1279 < _list1277.size; ++_i1279) + org.apache.thrift.protocol.TList _list1301 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1301.size); + String _elem1302; + for (int _i1303 = 0; _i1303 < _list1301.size; ++_i1303) { - _elem1278 = iprot.readString(); - struct.part_vals.add(_elem1278); + _elem1302 = iprot.readString(); + struct.part_vals.add(_elem1302); } } struct.setPart_valsIsSet(true); @@ -111977,14 +112109,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 _list1280 = iprot.readListBegin(); - struct.success = new ArrayList(_list1280.size); - Partition _elem1281; - for (int _i1282 = 0; _i1282 < _list1280.size; ++_i1282) + org.apache.thrift.protocol.TList _list1304 = iprot.readListBegin(); + struct.success = new ArrayList(_list1304.size); + Partition _elem1305; + for (int _i1306 = 0; _i1306 < _list1304.size; ++_i1306) { - _elem1281 = new Partition(); - _elem1281.read(iprot); - struct.success.add(_elem1281); + _elem1305 = new Partition(); + _elem1305.read(iprot); + struct.success.add(_elem1305); } iprot.readListEnd(); } @@ -112028,9 +112160,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 _iter1283 : struct.success) + for (Partition _iter1307 : struct.success) { - _iter1283.write(oprot); + _iter1307.write(oprot); } oprot.writeListEnd(); } @@ -112077,9 +112209,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1284 : struct.success) + for (Partition _iter1308 : struct.success) { - _iter1284.write(oprot); + _iter1308.write(oprot); } } } @@ -112097,14 +112229,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 _list1285 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1285.size); - Partition _elem1286; - for (int _i1287 = 0; _i1287 < _list1285.size; ++_i1287) + org.apache.thrift.protocol.TList _list1309 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1309.size); + Partition _elem1310; + for (int _i1311 = 0; _i1311 < _list1309.size; ++_i1311) { - _elem1286 = new Partition(); - _elem1286.read(iprot); - struct.success.add(_elem1286); + _elem1310 = new Partition(); + _elem1310.read(iprot); + struct.success.add(_elem1310); } } struct.setSuccessIsSet(true); @@ -112876,13 +113008,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 _list1288 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1288.size); - String _elem1289; - for (int _i1290 = 0; _i1290 < _list1288.size; ++_i1290) + org.apache.thrift.protocol.TList _list1312 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1312.size); + String _elem1313; + for (int _i1314 = 0; _i1314 < _list1312.size; ++_i1314) { - _elem1289 = iprot.readString(); - struct.part_vals.add(_elem1289); + _elem1313 = iprot.readString(); + struct.part_vals.add(_elem1313); } iprot.readListEnd(); } @@ -112910,13 +113042,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 _list1291 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1291.size); - String _elem1292; - for (int _i1293 = 0; _i1293 < _list1291.size; ++_i1293) + org.apache.thrift.protocol.TList _list1315 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1315.size); + String _elem1316; + for (int _i1317 = 0; _i1317 < _list1315.size; ++_i1317) { - _elem1292 = iprot.readString(); - struct.group_names.add(_elem1292); + _elem1316 = iprot.readString(); + struct.group_names.add(_elem1316); } iprot.readListEnd(); } @@ -112952,9 +113084,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 _iter1294 : struct.part_vals) + for (String _iter1318 : struct.part_vals) { - oprot.writeString(_iter1294); + oprot.writeString(_iter1318); } oprot.writeListEnd(); } @@ -112972,9 +113104,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 _iter1295 : struct.group_names) + for (String _iter1319 : struct.group_names) { - oprot.writeString(_iter1295); + oprot.writeString(_iter1319); } oprot.writeListEnd(); } @@ -113026,9 +113158,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 _iter1296 : struct.part_vals) + for (String _iter1320 : struct.part_vals) { - oprot.writeString(_iter1296); + oprot.writeString(_iter1320); } } } @@ -113041,9 +113173,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 _iter1297 : struct.group_names) + for (String _iter1321 : struct.group_names) { - oprot.writeString(_iter1297); + oprot.writeString(_iter1321); } } } @@ -113063,13 +113195,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1298 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1298.size); - String _elem1299; - for (int _i1300 = 0; _i1300 < _list1298.size; ++_i1300) + org.apache.thrift.protocol.TList _list1322 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1322.size); + String _elem1323; + for (int _i1324 = 0; _i1324 < _list1322.size; ++_i1324) { - _elem1299 = iprot.readString(); - struct.part_vals.add(_elem1299); + _elem1323 = iprot.readString(); + struct.part_vals.add(_elem1323); } } struct.setPart_valsIsSet(true); @@ -113084,13 +113216,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(5)) { { - org.apache.thrift.protocol.TList _list1301 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1301.size); - String _elem1302; - for (int _i1303 = 0; _i1303 < _list1301.size; ++_i1303) + org.apache.thrift.protocol.TList _list1325 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1325.size); + String _elem1326; + for (int _i1327 = 0; _i1327 < _list1325.size; ++_i1327) { - _elem1302 = iprot.readString(); - struct.group_names.add(_elem1302); + _elem1326 = iprot.readString(); + struct.group_names.add(_elem1326); } } struct.setGroup_namesIsSet(true); @@ -113577,14 +113709,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 _list1304 = iprot.readListBegin(); - struct.success = new ArrayList(_list1304.size); - Partition _elem1305; - for (int _i1306 = 0; _i1306 < _list1304.size; ++_i1306) + org.apache.thrift.protocol.TList _list1328 = iprot.readListBegin(); + struct.success = new ArrayList(_list1328.size); + Partition _elem1329; + for (int _i1330 = 0; _i1330 < _list1328.size; ++_i1330) { - _elem1305 = new Partition(); - _elem1305.read(iprot); - struct.success.add(_elem1305); + _elem1329 = new Partition(); + _elem1329.read(iprot); + struct.success.add(_elem1329); } iprot.readListEnd(); } @@ -113628,9 +113760,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 _iter1307 : struct.success) + for (Partition _iter1331 : struct.success) { - _iter1307.write(oprot); + _iter1331.write(oprot); } oprot.writeListEnd(); } @@ -113677,9 +113809,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1308 : struct.success) + for (Partition _iter1332 : struct.success) { - _iter1308.write(oprot); + _iter1332.write(oprot); } } } @@ -113697,14 +113829,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 _list1309 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1309.size); - Partition _elem1310; - for (int _i1311 = 0; _i1311 < _list1309.size; ++_i1311) + org.apache.thrift.protocol.TList _list1333 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1333.size); + Partition _elem1334; + for (int _i1335 = 0; _i1335 < _list1333.size; ++_i1335) { - _elem1310 = new Partition(); - _elem1310.read(iprot); - struct.success.add(_elem1310); + _elem1334 = new Partition(); + _elem1334.read(iprot); + struct.success.add(_elem1334); } } struct.setSuccessIsSet(true); @@ -114297,13 +114429,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 _list1312 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1312.size); - String _elem1313; - for (int _i1314 = 0; _i1314 < _list1312.size; ++_i1314) + org.apache.thrift.protocol.TList _list1336 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1336.size); + String _elem1337; + for (int _i1338 = 0; _i1338 < _list1336.size; ++_i1338) { - _elem1313 = iprot.readString(); - struct.part_vals.add(_elem1313); + _elem1337 = iprot.readString(); + struct.part_vals.add(_elem1337); } iprot.readListEnd(); } @@ -114347,9 +114479,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 _iter1315 : struct.part_vals) + for (String _iter1339 : struct.part_vals) { - oprot.writeString(_iter1315); + oprot.writeString(_iter1339); } oprot.writeListEnd(); } @@ -114398,9 +114530,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 _iter1316 : struct.part_vals) + for (String _iter1340 : struct.part_vals) { - oprot.writeString(_iter1316); + oprot.writeString(_iter1340); } } } @@ -114423,13 +114555,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1317 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1317.size); - String _elem1318; - for (int _i1319 = 0; _i1319 < _list1317.size; ++_i1319) + org.apache.thrift.protocol.TList _list1341 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1341.size); + String _elem1342; + for (int _i1343 = 0; _i1343 < _list1341.size; ++_i1343) { - _elem1318 = iprot.readString(); - struct.part_vals.add(_elem1318); + _elem1342 = iprot.readString(); + struct.part_vals.add(_elem1342); } } struct.setPart_valsIsSet(true); @@ -114917,13 +115049,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 _list1320 = iprot.readListBegin(); - struct.success = new ArrayList(_list1320.size); - String _elem1321; - for (int _i1322 = 0; _i1322 < _list1320.size; ++_i1322) + org.apache.thrift.protocol.TList _list1344 = iprot.readListBegin(); + struct.success = new ArrayList(_list1344.size); + String _elem1345; + for (int _i1346 = 0; _i1346 < _list1344.size; ++_i1346) { - _elem1321 = iprot.readString(); - struct.success.add(_elem1321); + _elem1345 = iprot.readString(); + struct.success.add(_elem1345); } iprot.readListEnd(); } @@ -114967,9 +115099,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 _iter1323 : struct.success) + for (String _iter1347 : struct.success) { - oprot.writeString(_iter1323); + oprot.writeString(_iter1347); } oprot.writeListEnd(); } @@ -115016,9 +115148,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1324 : struct.success) + for (String _iter1348 : struct.success) { - oprot.writeString(_iter1324); + oprot.writeString(_iter1348); } } } @@ -115036,13 +115168,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 _list1325 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1325.size); - String _elem1326; - for (int _i1327 = 0; _i1327 < _list1325.size; ++_i1327) + org.apache.thrift.protocol.TList _list1349 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1349.size); + String _elem1350; + for (int _i1351 = 0; _i1351 < _list1349.size; ++_i1351) { - _elem1326 = iprot.readString(); - struct.success.add(_elem1326); + _elem1350 = iprot.readString(); + struct.success.add(_elem1350); } } struct.setSuccessIsSet(true); @@ -116209,14 +116341,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 _list1328 = iprot.readListBegin(); - struct.success = new ArrayList(_list1328.size); - Partition _elem1329; - for (int _i1330 = 0; _i1330 < _list1328.size; ++_i1330) + org.apache.thrift.protocol.TList _list1352 = iprot.readListBegin(); + struct.success = new ArrayList(_list1352.size); + Partition _elem1353; + for (int _i1354 = 0; _i1354 < _list1352.size; ++_i1354) { - _elem1329 = new Partition(); - _elem1329.read(iprot); - struct.success.add(_elem1329); + _elem1353 = new Partition(); + _elem1353.read(iprot); + struct.success.add(_elem1353); } iprot.readListEnd(); } @@ -116260,9 +116392,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 _iter1331 : struct.success) + for (Partition _iter1355 : struct.success) { - _iter1331.write(oprot); + _iter1355.write(oprot); } oprot.writeListEnd(); } @@ -116309,9 +116441,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_f if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1332 : struct.success) + for (Partition _iter1356 : struct.success) { - _iter1332.write(oprot); + _iter1356.write(oprot); } } } @@ -116329,14 +116461,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 _list1333 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1333.size); - Partition _elem1334; - for (int _i1335 = 0; _i1335 < _list1333.size; ++_i1335) + org.apache.thrift.protocol.TList _list1357 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1357.size); + Partition _elem1358; + for (int _i1359 = 0; _i1359 < _list1357.size; ++_i1359) { - _elem1334 = new Partition(); - _elem1334.read(iprot); - struct.success.add(_elem1334); + _elem1358 = new Partition(); + _elem1358.read(iprot); + struct.success.add(_elem1358); } } struct.setSuccessIsSet(true); @@ -117503,14 +117635,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 _list1336 = iprot.readListBegin(); - struct.success = new ArrayList(_list1336.size); - PartitionSpec _elem1337; - for (int _i1338 = 0; _i1338 < _list1336.size; ++_i1338) + org.apache.thrift.protocol.TList _list1360 = iprot.readListBegin(); + struct.success = new ArrayList(_list1360.size); + PartitionSpec _elem1361; + for (int _i1362 = 0; _i1362 < _list1360.size; ++_i1362) { - _elem1337 = new PartitionSpec(); - _elem1337.read(iprot); - struct.success.add(_elem1337); + _elem1361 = new PartitionSpec(); + _elem1361.read(iprot); + struct.success.add(_elem1361); } iprot.readListEnd(); } @@ -117554,9 +117686,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 _iter1339 : struct.success) + for (PartitionSpec _iter1363 : struct.success) { - _iter1339.write(oprot); + _iter1363.write(oprot); } oprot.writeListEnd(); } @@ -117603,9 +117735,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 _iter1340 : struct.success) + for (PartitionSpec _iter1364 : struct.success) { - _iter1340.write(oprot); + _iter1364.write(oprot); } } } @@ -117623,14 +117755,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 _list1341 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1341.size); - PartitionSpec _elem1342; - for (int _i1343 = 0; _i1343 < _list1341.size; ++_i1343) + org.apache.thrift.protocol.TList _list1365 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1365.size); + PartitionSpec _elem1366; + for (int _i1367 = 0; _i1367 < _list1365.size; ++_i1367) { - _elem1342 = new PartitionSpec(); - _elem1342.read(iprot); - struct.success.add(_elem1342); + _elem1366 = new PartitionSpec(); + _elem1366.read(iprot); + struct.success.add(_elem1366); } } struct.setSuccessIsSet(true); @@ -120214,13 +120346,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 _list1344 = iprot.readListBegin(); - struct.names = new ArrayList(_list1344.size); - String _elem1345; - for (int _i1346 = 0; _i1346 < _list1344.size; ++_i1346) + org.apache.thrift.protocol.TList _list1368 = iprot.readListBegin(); + struct.names = new ArrayList(_list1368.size); + String _elem1369; + for (int _i1370 = 0; _i1370 < _list1368.size; ++_i1370) { - _elem1345 = iprot.readString(); - struct.names.add(_elem1345); + _elem1369 = iprot.readString(); + struct.names.add(_elem1369); } iprot.readListEnd(); } @@ -120256,9 +120388,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 _iter1347 : struct.names) + for (String _iter1371 : struct.names) { - oprot.writeString(_iter1347); + oprot.writeString(_iter1371); } oprot.writeListEnd(); } @@ -120301,9 +120433,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetNames()) { { oprot.writeI32(struct.names.size()); - for (String _iter1348 : struct.names) + for (String _iter1372 : struct.names) { - oprot.writeString(_iter1348); + oprot.writeString(_iter1372); } } } @@ -120323,13 +120455,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_na } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1349 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.names = new ArrayList(_list1349.size); - String _elem1350; - for (int _i1351 = 0; _i1351 < _list1349.size; ++_i1351) + org.apache.thrift.protocol.TList _list1373 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.names = new ArrayList(_list1373.size); + String _elem1374; + for (int _i1375 = 0; _i1375 < _list1373.size; ++_i1375) { - _elem1350 = iprot.readString(); - struct.names.add(_elem1350); + _elem1374 = iprot.readString(); + struct.names.add(_elem1374); } } struct.setNamesIsSet(true); @@ -120816,14 +120948,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 _list1352 = iprot.readListBegin(); - struct.success = new ArrayList(_list1352.size); - Partition _elem1353; - for (int _i1354 = 0; _i1354 < _list1352.size; ++_i1354) + org.apache.thrift.protocol.TList _list1376 = iprot.readListBegin(); + struct.success = new ArrayList(_list1376.size); + Partition _elem1377; + for (int _i1378 = 0; _i1378 < _list1376.size; ++_i1378) { - _elem1353 = new Partition(); - _elem1353.read(iprot); - struct.success.add(_elem1353); + _elem1377 = new Partition(); + _elem1377.read(iprot); + struct.success.add(_elem1377); } iprot.readListEnd(); } @@ -120867,9 +120999,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 _iter1355 : struct.success) + for (Partition _iter1379 : struct.success) { - _iter1355.write(oprot); + _iter1379.write(oprot); } oprot.writeListEnd(); } @@ -120916,9 +121048,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1356 : struct.success) + for (Partition _iter1380 : struct.success) { - _iter1356.write(oprot); + _iter1380.write(oprot); } } } @@ -120936,14 +121068,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 _list1357 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1357.size); - Partition _elem1358; - for (int _i1359 = 0; _i1359 < _list1357.size; ++_i1359) + org.apache.thrift.protocol.TList _list1381 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1381.size); + Partition _elem1382; + for (int _i1383 = 0; _i1383 < _list1381.size; ++_i1383) { - _elem1358 = new Partition(); - _elem1358.read(iprot); - struct.success.add(_elem1358); + _elem1382 = new Partition(); + _elem1382.read(iprot); + struct.success.add(_elem1382); } } struct.setSuccessIsSet(true); @@ -122493,14 +122625,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 _list1360 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1360.size); - Partition _elem1361; - for (int _i1362 = 0; _i1362 < _list1360.size; ++_i1362) + org.apache.thrift.protocol.TList _list1384 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1384.size); + Partition _elem1385; + for (int _i1386 = 0; _i1386 < _list1384.size; ++_i1386) { - _elem1361 = new Partition(); - _elem1361.read(iprot); - struct.new_parts.add(_elem1361); + _elem1385 = new Partition(); + _elem1385.read(iprot); + struct.new_parts.add(_elem1385); } iprot.readListEnd(); } @@ -122536,9 +122668,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 _iter1363 : struct.new_parts) + for (Partition _iter1387 : struct.new_parts) { - _iter1363.write(oprot); + _iter1387.write(oprot); } oprot.writeListEnd(); } @@ -122581,9 +122713,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 _iter1364 : struct.new_parts) + for (Partition _iter1388 : struct.new_parts) { - _iter1364.write(oprot); + _iter1388.write(oprot); } } } @@ -122603,14 +122735,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1365 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1365.size); - Partition _elem1366; - for (int _i1367 = 0; _i1367 < _list1365.size; ++_i1367) + org.apache.thrift.protocol.TList _list1389 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1389.size); + Partition _elem1390; + for (int _i1391 = 0; _i1391 < _list1389.size; ++_i1391) { - _elem1366 = new Partition(); - _elem1366.read(iprot); - struct.new_parts.add(_elem1366); + _elem1390 = new Partition(); + _elem1390.read(iprot); + struct.new_parts.add(_elem1390); } } struct.setNew_partsIsSet(true); @@ -123663,14 +123795,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 _list1368 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1368.size); - Partition _elem1369; - for (int _i1370 = 0; _i1370 < _list1368.size; ++_i1370) + org.apache.thrift.protocol.TList _list1392 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1392.size); + Partition _elem1393; + for (int _i1394 = 0; _i1394 < _list1392.size; ++_i1394) { - _elem1369 = new Partition(); - _elem1369.read(iprot); - struct.new_parts.add(_elem1369); + _elem1393 = new Partition(); + _elem1393.read(iprot); + struct.new_parts.add(_elem1393); } iprot.readListEnd(); } @@ -123715,9 +123847,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 _iter1371 : struct.new_parts) + for (Partition _iter1395 : struct.new_parts) { - _iter1371.write(oprot); + _iter1395.write(oprot); } oprot.writeListEnd(); } @@ -123768,9 +123900,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 _iter1372 : struct.new_parts) + for (Partition _iter1396 : struct.new_parts) { - _iter1372.write(oprot); + _iter1396.write(oprot); } } } @@ -123793,14 +123925,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_wit } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1373 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1373.size); - Partition _elem1374; - for (int _i1375 = 0; _i1375 < _list1373.size; ++_i1375) + org.apache.thrift.protocol.TList _list1397 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1397.size); + Partition _elem1398; + for (int _i1399 = 0; _i1399 < _list1397.size; ++_i1399) { - _elem1374 = new Partition(); - _elem1374.read(iprot); - struct.new_parts.add(_elem1374); + _elem1398 = new Partition(); + _elem1398.read(iprot); + struct.new_parts.add(_elem1398); } } struct.setNew_partsIsSet(true); @@ -126001,13 +126133,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 _list1376 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1376.size); - String _elem1377; - for (int _i1378 = 0; _i1378 < _list1376.size; ++_i1378) + org.apache.thrift.protocol.TList _list1400 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1400.size); + String _elem1401; + for (int _i1402 = 0; _i1402 < _list1400.size; ++_i1402) { - _elem1377 = iprot.readString(); - struct.part_vals.add(_elem1377); + _elem1401 = iprot.readString(); + struct.part_vals.add(_elem1401); } iprot.readListEnd(); } @@ -126052,9 +126184,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 _iter1379 : struct.part_vals) + for (String _iter1403 : struct.part_vals) { - oprot.writeString(_iter1379); + oprot.writeString(_iter1403); } oprot.writeListEnd(); } @@ -126105,9 +126237,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 _iter1380 : struct.part_vals) + for (String _iter1404 : struct.part_vals) { - oprot.writeString(_iter1380); + oprot.writeString(_iter1404); } } } @@ -126130,13 +126262,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, rename_partition_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1381 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1381.size); - String _elem1382; - for (int _i1383 = 0; _i1383 < _list1381.size; ++_i1383) + org.apache.thrift.protocol.TList _list1405 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1405.size); + String _elem1406; + for (int _i1407 = 0; _i1407 < _list1405.size; ++_i1407) { - _elem1382 = iprot.readString(); - struct.part_vals.add(_elem1382); + _elem1406 = iprot.readString(); + struct.part_vals.add(_elem1406); } } struct.setPart_valsIsSet(true); @@ -127010,13 +127142,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 _list1384 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1384.size); - String _elem1385; - for (int _i1386 = 0; _i1386 < _list1384.size; ++_i1386) + org.apache.thrift.protocol.TList _list1408 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1408.size); + String _elem1409; + for (int _i1410 = 0; _i1410 < _list1408.size; ++_i1410) { - _elem1385 = iprot.readString(); - struct.part_vals.add(_elem1385); + _elem1409 = iprot.readString(); + struct.part_vals.add(_elem1409); } iprot.readListEnd(); } @@ -127050,9 +127182,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 _iter1387 : struct.part_vals) + for (String _iter1411 : struct.part_vals) { - oprot.writeString(_iter1387); + oprot.writeString(_iter1411); } oprot.writeListEnd(); } @@ -127089,9 +127221,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 _iter1388 : struct.part_vals) + for (String _iter1412 : struct.part_vals) { - oprot.writeString(_iter1388); + oprot.writeString(_iter1412); } } } @@ -127106,13 +127238,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 _list1389 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1389.size); - String _elem1390; - for (int _i1391 = 0; _i1391 < _list1389.size; ++_i1391) + org.apache.thrift.protocol.TList _list1413 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1413.size); + String _elem1414; + for (int _i1415 = 0; _i1415 < _list1413.size; ++_i1415) { - _elem1390 = iprot.readString(); - struct.part_vals.add(_elem1390); + _elem1414 = iprot.readString(); + struct.part_vals.add(_elem1414); } } struct.setPart_valsIsSet(true); @@ -129267,13 +129399,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 _list1392 = iprot.readListBegin(); - struct.success = new ArrayList(_list1392.size); - String _elem1393; - for (int _i1394 = 0; _i1394 < _list1392.size; ++_i1394) + org.apache.thrift.protocol.TList _list1416 = iprot.readListBegin(); + struct.success = new ArrayList(_list1416.size); + String _elem1417; + for (int _i1418 = 0; _i1418 < _list1416.size; ++_i1418) { - _elem1393 = iprot.readString(); - struct.success.add(_elem1393); + _elem1417 = iprot.readString(); + struct.success.add(_elem1417); } iprot.readListEnd(); } @@ -129308,9 +129440,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 _iter1395 : struct.success) + for (String _iter1419 : struct.success) { - oprot.writeString(_iter1395); + oprot.writeString(_iter1419); } oprot.writeListEnd(); } @@ -129349,9 +129481,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_to_v if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1396 : struct.success) + for (String _iter1420 : struct.success) { - oprot.writeString(_iter1396); + oprot.writeString(_iter1420); } } } @@ -129366,13 +129498,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 _list1397 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1397.size); - String _elem1398; - for (int _i1399 = 0; _i1399 < _list1397.size; ++_i1399) + org.apache.thrift.protocol.TList _list1421 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1421.size); + String _elem1422; + for (int _i1423 = 0; _i1423 < _list1421.size; ++_i1423) { - _elem1398 = iprot.readString(); - struct.success.add(_elem1398); + _elem1422 = iprot.readString(); + struct.success.add(_elem1422); } } struct.setSuccessIsSet(true); @@ -130135,15 +130267,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 _map1400 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map1400.size); - String _key1401; - String _val1402; - for (int _i1403 = 0; _i1403 < _map1400.size; ++_i1403) + org.apache.thrift.protocol.TMap _map1424 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map1424.size); + String _key1425; + String _val1426; + for (int _i1427 = 0; _i1427 < _map1424.size; ++_i1427) { - _key1401 = iprot.readString(); - _val1402 = iprot.readString(); - struct.success.put(_key1401, _val1402); + _key1425 = iprot.readString(); + _val1426 = iprot.readString(); + struct.success.put(_key1425, _val1426); } iprot.readMapEnd(); } @@ -130178,10 +130310,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 _iter1404 : struct.success.entrySet()) + for (Map.Entry _iter1428 : struct.success.entrySet()) { - oprot.writeString(_iter1404.getKey()); - oprot.writeString(_iter1404.getValue()); + oprot.writeString(_iter1428.getKey()); + oprot.writeString(_iter1428.getValue()); } oprot.writeMapEnd(); } @@ -130220,10 +130352,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 _iter1405 : struct.success.entrySet()) + for (Map.Entry _iter1429 : struct.success.entrySet()) { - oprot.writeString(_iter1405.getKey()); - oprot.writeString(_iter1405.getValue()); + oprot.writeString(_iter1429.getKey()); + oprot.writeString(_iter1429.getValue()); } } } @@ -130238,15 +130370,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 _map1406 = 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*_map1406.size); - String _key1407; - String _val1408; - for (int _i1409 = 0; _i1409 < _map1406.size; ++_i1409) + org.apache.thrift.protocol.TMap _map1430 = 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*_map1430.size); + String _key1431; + String _val1432; + for (int _i1433 = 0; _i1433 < _map1430.size; ++_i1433) { - _key1407 = iprot.readString(); - _val1408 = iprot.readString(); - struct.success.put(_key1407, _val1408); + _key1431 = iprot.readString(); + _val1432 = iprot.readString(); + struct.success.put(_key1431, _val1432); } } struct.setSuccessIsSet(true); @@ -130841,15 +130973,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 _map1410 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map1410.size); - String _key1411; - String _val1412; - for (int _i1413 = 0; _i1413 < _map1410.size; ++_i1413) + org.apache.thrift.protocol.TMap _map1434 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map1434.size); + String _key1435; + String _val1436; + for (int _i1437 = 0; _i1437 < _map1434.size; ++_i1437) { - _key1411 = iprot.readString(); - _val1412 = iprot.readString(); - struct.part_vals.put(_key1411, _val1412); + _key1435 = iprot.readString(); + _val1436 = iprot.readString(); + struct.part_vals.put(_key1435, _val1436); } iprot.readMapEnd(); } @@ -130893,10 +131025,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 _iter1414 : struct.part_vals.entrySet()) + for (Map.Entry _iter1438 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1414.getKey()); - oprot.writeString(_iter1414.getValue()); + oprot.writeString(_iter1438.getKey()); + oprot.writeString(_iter1438.getValue()); } oprot.writeMapEnd(); } @@ -130947,10 +131079,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, markPartitionForEve if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter1415 : struct.part_vals.entrySet()) + for (Map.Entry _iter1439 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1415.getKey()); - oprot.writeString(_iter1415.getValue()); + oprot.writeString(_iter1439.getKey()); + oprot.writeString(_iter1439.getValue()); } } } @@ -130973,15 +131105,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, markPartitionForEven } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map1416 = 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*_map1416.size); - String _key1417; - String _val1418; - for (int _i1419 = 0; _i1419 < _map1416.size; ++_i1419) + org.apache.thrift.protocol.TMap _map1440 = 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*_map1440.size); + String _key1441; + String _val1442; + for (int _i1443 = 0; _i1443 < _map1440.size; ++_i1443) { - _key1417 = iprot.readString(); - _val1418 = iprot.readString(); - struct.part_vals.put(_key1417, _val1418); + _key1441 = iprot.readString(); + _val1442 = iprot.readString(); + struct.part_vals.put(_key1441, _val1442); } } struct.setPart_valsIsSet(true); @@ -132465,15 +132597,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 _map1420 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map1420.size); - String _key1421; - String _val1422; - for (int _i1423 = 0; _i1423 < _map1420.size; ++_i1423) + org.apache.thrift.protocol.TMap _map1444 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map1444.size); + String _key1445; + String _val1446; + for (int _i1447 = 0; _i1447 < _map1444.size; ++_i1447) { - _key1421 = iprot.readString(); - _val1422 = iprot.readString(); - struct.part_vals.put(_key1421, _val1422); + _key1445 = iprot.readString(); + _val1446 = iprot.readString(); + struct.part_vals.put(_key1445, _val1446); } iprot.readMapEnd(); } @@ -132517,10 +132649,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 _iter1424 : struct.part_vals.entrySet()) + for (Map.Entry _iter1448 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1424.getKey()); - oprot.writeString(_iter1424.getValue()); + oprot.writeString(_iter1448.getKey()); + oprot.writeString(_iter1448.getValue()); } oprot.writeMapEnd(); } @@ -132571,10 +132703,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFo if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter1425 : struct.part_vals.entrySet()) + for (Map.Entry _iter1449 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1425.getKey()); - oprot.writeString(_iter1425.getValue()); + oprot.writeString(_iter1449.getKey()); + oprot.writeString(_iter1449.getValue()); } } } @@ -132597,15 +132729,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFor } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map1426 = 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*_map1426.size); - String _key1427; - String _val1428; - for (int _i1429 = 0; _i1429 < _map1426.size; ++_i1429) + org.apache.thrift.protocol.TMap _map1450 = 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*_map1450.size); + String _key1451; + String _val1452; + for (int _i1453 = 0; _i1453 < _map1450.size; ++_i1453) { - _key1427 = iprot.readString(); - _val1428 = iprot.readString(); - struct.part_vals.put(_key1427, _val1428); + _key1451 = iprot.readString(); + _val1452 = iprot.readString(); + struct.part_vals.put(_key1451, _val1452); } } struct.setPart_valsIsSet(true); @@ -154961,13 +155093,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 _list1430 = iprot.readListBegin(); - struct.success = new ArrayList(_list1430.size); - String _elem1431; - for (int _i1432 = 0; _i1432 < _list1430.size; ++_i1432) + org.apache.thrift.protocol.TList _list1454 = iprot.readListBegin(); + struct.success = new ArrayList(_list1454.size); + String _elem1455; + for (int _i1456 = 0; _i1456 < _list1454.size; ++_i1456) { - _elem1431 = iprot.readString(); - struct.success.add(_elem1431); + _elem1455 = iprot.readString(); + struct.success.add(_elem1455); } iprot.readListEnd(); } @@ -155002,9 +155134,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 _iter1433 : struct.success) + for (String _iter1457 : struct.success) { - oprot.writeString(_iter1433); + oprot.writeString(_iter1457); } oprot.writeListEnd(); } @@ -155043,9 +155175,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_functions_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1434 : struct.success) + for (String _iter1458 : struct.success) { - oprot.writeString(_iter1434); + oprot.writeString(_iter1458); } } } @@ -155060,13 +155192,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 _list1435 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1435.size); - String _elem1436; - for (int _i1437 = 0; _i1437 < _list1435.size; ++_i1437) + org.apache.thrift.protocol.TList _list1459 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1459.size); + String _elem1460; + for (int _i1461 = 0; _i1461 < _list1459.size; ++_i1461) { - _elem1436 = iprot.readString(); - struct.success.add(_elem1436); + _elem1460 = iprot.readString(); + struct.success.add(_elem1460); } } struct.setSuccessIsSet(true); @@ -159121,13 +159253,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 _list1438 = iprot.readListBegin(); - struct.success = new ArrayList(_list1438.size); - String _elem1439; - for (int _i1440 = 0; _i1440 < _list1438.size; ++_i1440) + org.apache.thrift.protocol.TList _list1462 = iprot.readListBegin(); + struct.success = new ArrayList(_list1462.size); + String _elem1463; + for (int _i1464 = 0; _i1464 < _list1462.size; ++_i1464) { - _elem1439 = iprot.readString(); - struct.success.add(_elem1439); + _elem1463 = iprot.readString(); + struct.success.add(_elem1463); } iprot.readListEnd(); } @@ -159162,9 +159294,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 _iter1441 : struct.success) + for (String _iter1465 : struct.success) { - oprot.writeString(_iter1441); + oprot.writeString(_iter1465); } oprot.writeListEnd(); } @@ -159203,9 +159335,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_role_names_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1442 : struct.success) + for (String _iter1466 : struct.success) { - oprot.writeString(_iter1442); + oprot.writeString(_iter1466); } } } @@ -159220,13 +159352,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 _list1443 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1443.size); - String _elem1444; - for (int _i1445 = 0; _i1445 < _list1443.size; ++_i1445) + org.apache.thrift.protocol.TList _list1467 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1467.size); + String _elem1468; + for (int _i1469 = 0; _i1469 < _list1467.size; ++_i1469) { - _elem1444 = iprot.readString(); - struct.success.add(_elem1444); + _elem1468 = iprot.readString(); + struct.success.add(_elem1468); } } struct.setSuccessIsSet(true); @@ -162517,14 +162649,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 _list1446 = iprot.readListBegin(); - struct.success = new ArrayList(_list1446.size); - Role _elem1447; - for (int _i1448 = 0; _i1448 < _list1446.size; ++_i1448) + org.apache.thrift.protocol.TList _list1470 = iprot.readListBegin(); + struct.success = new ArrayList(_list1470.size); + Role _elem1471; + for (int _i1472 = 0; _i1472 < _list1470.size; ++_i1472) { - _elem1447 = new Role(); - _elem1447.read(iprot); - struct.success.add(_elem1447); + _elem1471 = new Role(); + _elem1471.read(iprot); + struct.success.add(_elem1471); } iprot.readListEnd(); } @@ -162559,9 +162691,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 _iter1449 : struct.success) + for (Role _iter1473 : struct.success) { - _iter1449.write(oprot); + _iter1473.write(oprot); } oprot.writeListEnd(); } @@ -162600,9 +162732,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_roles_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Role _iter1450 : struct.success) + for (Role _iter1474 : struct.success) { - _iter1450.write(oprot); + _iter1474.write(oprot); } } } @@ -162617,14 +162749,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 _list1451 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1451.size); - Role _elem1452; - for (int _i1453 = 0; _i1453 < _list1451.size; ++_i1453) + org.apache.thrift.protocol.TList _list1475 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1475.size); + Role _elem1476; + for (int _i1477 = 0; _i1477 < _list1475.size; ++_i1477) { - _elem1452 = new Role(); - _elem1452.read(iprot); - struct.success.add(_elem1452); + _elem1476 = new Role(); + _elem1476.read(iprot); + struct.success.add(_elem1476); } } struct.setSuccessIsSet(true); @@ -165629,13 +165761,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 _list1454 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1454.size); - String _elem1455; - for (int _i1456 = 0; _i1456 < _list1454.size; ++_i1456) + org.apache.thrift.protocol.TList _list1478 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1478.size); + String _elem1479; + for (int _i1480 = 0; _i1480 < _list1478.size; ++_i1480) { - _elem1455 = iprot.readString(); - struct.group_names.add(_elem1455); + _elem1479 = iprot.readString(); + struct.group_names.add(_elem1479); } iprot.readListEnd(); } @@ -165671,9 +165803,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 _iter1457 : struct.group_names) + for (String _iter1481 : struct.group_names) { - oprot.writeString(_iter1457); + oprot.writeString(_iter1481); } oprot.writeListEnd(); } @@ -165716,9 +165848,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 _iter1458 : struct.group_names) + for (String _iter1482 : struct.group_names) { - oprot.writeString(_iter1458); + oprot.writeString(_iter1482); } } } @@ -165739,13 +165871,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_privilege_set_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1459 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1459.size); - String _elem1460; - for (int _i1461 = 0; _i1461 < _list1459.size; ++_i1461) + org.apache.thrift.protocol.TList _list1483 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1483.size); + String _elem1484; + for (int _i1485 = 0; _i1485 < _list1483.size; ++_i1485) { - _elem1460 = iprot.readString(); - struct.group_names.add(_elem1460); + _elem1484 = iprot.readString(); + struct.group_names.add(_elem1484); } } struct.setGroup_namesIsSet(true); @@ -167203,14 +167335,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 _list1462 = iprot.readListBegin(); - struct.success = new ArrayList(_list1462.size); - HiveObjectPrivilege _elem1463; - for (int _i1464 = 0; _i1464 < _list1462.size; ++_i1464) + org.apache.thrift.protocol.TList _list1486 = iprot.readListBegin(); + struct.success = new ArrayList(_list1486.size); + HiveObjectPrivilege _elem1487; + for (int _i1488 = 0; _i1488 < _list1486.size; ++_i1488) { - _elem1463 = new HiveObjectPrivilege(); - _elem1463.read(iprot); - struct.success.add(_elem1463); + _elem1487 = new HiveObjectPrivilege(); + _elem1487.read(iprot); + struct.success.add(_elem1487); } iprot.readListEnd(); } @@ -167245,9 +167377,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 _iter1465 : struct.success) + for (HiveObjectPrivilege _iter1489 : struct.success) { - _iter1465.write(oprot); + _iter1489.write(oprot); } oprot.writeListEnd(); } @@ -167286,9 +167418,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_privileges_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (HiveObjectPrivilege _iter1466 : struct.success) + for (HiveObjectPrivilege _iter1490 : struct.success) { - _iter1466.write(oprot); + _iter1490.write(oprot); } } } @@ -167303,14 +167435,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 _list1467 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1467.size); - HiveObjectPrivilege _elem1468; - for (int _i1469 = 0; _i1469 < _list1467.size; ++_i1469) + 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); + HiveObjectPrivilege _elem1492; + for (int _i1493 = 0; _i1493 < _list1491.size; ++_i1493) { - _elem1468 = new HiveObjectPrivilege(); - _elem1468.read(iprot); - struct.success.add(_elem1468); + _elem1492 = new HiveObjectPrivilege(); + _elem1492.read(iprot); + struct.success.add(_elem1492); } } struct.setSuccessIsSet(true); @@ -171257,13 +171389,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 _list1470 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1470.size); - String _elem1471; - for (int _i1472 = 0; _i1472 < _list1470.size; ++_i1472) + org.apache.thrift.protocol.TList _list1494 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1494.size); + String _elem1495; + for (int _i1496 = 0; _i1496 < _list1494.size; ++_i1496) { - _elem1471 = iprot.readString(); - struct.group_names.add(_elem1471); + _elem1495 = iprot.readString(); + struct.group_names.add(_elem1495); } iprot.readListEnd(); } @@ -171294,9 +171426,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 _iter1473 : struct.group_names) + for (String _iter1497 : struct.group_names) { - oprot.writeString(_iter1473); + oprot.writeString(_iter1497); } oprot.writeListEnd(); } @@ -171333,9 +171465,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 _iter1474 : struct.group_names) + for (String _iter1498 : struct.group_names) { - oprot.writeString(_iter1474); + oprot.writeString(_iter1498); } } } @@ -171351,13 +171483,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_ugi_args struct) } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list1475 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1475.size); - String _elem1476; - for (int _i1477 = 0; _i1477 < _list1475.size; ++_i1477) + org.apache.thrift.protocol.TList _list1499 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1499.size); + String _elem1500; + for (int _i1501 = 0; _i1501 < _list1499.size; ++_i1501) { - _elem1476 = iprot.readString(); - struct.group_names.add(_elem1476); + _elem1500 = iprot.readString(); + struct.group_names.add(_elem1500); } } struct.setGroup_namesIsSet(true); @@ -171760,13 +171892,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 _list1478 = iprot.readListBegin(); - struct.success = new ArrayList(_list1478.size); - String _elem1479; - for (int _i1480 = 0; _i1480 < _list1478.size; ++_i1480) + org.apache.thrift.protocol.TList _list1502 = iprot.readListBegin(); + struct.success = new ArrayList(_list1502.size); + String _elem1503; + for (int _i1504 = 0; _i1504 < _list1502.size; ++_i1504) { - _elem1479 = iprot.readString(); - struct.success.add(_elem1479); + _elem1503 = iprot.readString(); + struct.success.add(_elem1503); } iprot.readListEnd(); } @@ -171801,9 +171933,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 _iter1481 : struct.success) + for (String _iter1505 : struct.success) { - oprot.writeString(_iter1481); + oprot.writeString(_iter1505); } oprot.writeListEnd(); } @@ -171842,9 +171974,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, set_ugi_result stru if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1482 : struct.success) + for (String _iter1506 : struct.success) { - oprot.writeString(_iter1482); + oprot.writeString(_iter1506); } } } @@ -171859,13 +171991,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 _list1483 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1483.size); - String _elem1484; - for (int _i1485 = 0; _i1485 < _list1483.size; ++_i1485) + org.apache.thrift.protocol.TList _list1507 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1507.size); + String _elem1508; + for (int _i1509 = 0; _i1509 < _list1507.size; ++_i1509) { - _elem1484 = iprot.readString(); - struct.success.add(_elem1484); + _elem1508 = iprot.readString(); + struct.success.add(_elem1508); } } struct.setSuccessIsSet(true); @@ -177156,13 +177288,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 _list1486 = iprot.readListBegin(); - struct.success = new ArrayList(_list1486.size); - String _elem1487; - for (int _i1488 = 0; _i1488 < _list1486.size; ++_i1488) + org.apache.thrift.protocol.TList _list1510 = iprot.readListBegin(); + struct.success = new ArrayList(_list1510.size); + String _elem1511; + for (int _i1512 = 0; _i1512 < _list1510.size; ++_i1512) { - _elem1487 = iprot.readString(); - struct.success.add(_elem1487); + _elem1511 = iprot.readString(); + struct.success.add(_elem1511); } iprot.readListEnd(); } @@ -177188,9 +177320,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 _iter1489 : struct.success) + for (String _iter1513 : struct.success) { - oprot.writeString(_iter1489); + oprot.writeString(_iter1513); } oprot.writeListEnd(); } @@ -177221,9 +177353,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_token_ident if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1490 : struct.success) + for (String _iter1514 : struct.success) { - oprot.writeString(_iter1490); + oprot.writeString(_iter1514); } } } @@ -177235,13 +177367,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 _list1491 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1491.size); - String _elem1492; - for (int _i1493 = 0; _i1493 < _list1491.size; ++_i1493) + org.apache.thrift.protocol.TList _list1515 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1515.size); + String _elem1516; + for (int _i1517 = 0; _i1517 < _list1515.size; ++_i1517) { - _elem1492 = iprot.readString(); - struct.success.add(_elem1492); + _elem1516 = iprot.readString(); + struct.success.add(_elem1516); } } struct.setSuccessIsSet(true); @@ -180271,13 +180403,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 _list1494 = iprot.readListBegin(); - struct.success = new ArrayList(_list1494.size); - String _elem1495; - for (int _i1496 = 0; _i1496 < _list1494.size; ++_i1496) + org.apache.thrift.protocol.TList _list1518 = iprot.readListBegin(); + struct.success = new ArrayList(_list1518.size); + String _elem1519; + for (int _i1520 = 0; _i1520 < _list1518.size; ++_i1520) { - _elem1495 = iprot.readString(); - struct.success.add(_elem1495); + _elem1519 = iprot.readString(); + struct.success.add(_elem1519); } iprot.readListEnd(); } @@ -180303,9 +180435,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 _iter1497 : struct.success) + for (String _iter1521 : struct.success) { - oprot.writeString(_iter1497); + oprot.writeString(_iter1521); } oprot.writeListEnd(); } @@ -180336,9 +180468,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_master_keys_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1498 : struct.success) + for (String _iter1522 : struct.success) { - oprot.writeString(_iter1498); + oprot.writeString(_iter1522); } } } @@ -180350,13 +180482,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 _list1499 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1499.size); - String _elem1500; - for (int _i1501 = 0; _i1501 < _list1499.size; ++_i1501) + org.apache.thrift.protocol.TList _list1523 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1523.size); + String _elem1524; + for (int _i1525 = 0; _i1525 < _list1523.size; ++_i1525) { - _elem1500 = iprot.readString(); - struct.success.add(_elem1500); + _elem1524 = iprot.readString(); + struct.success.add(_elem1524); } } struct.setSuccessIsSet(true); @@ -198121,33 +198253,578 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(flushCache_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(flushCache_args.class, metaDataMap); + } + + public flushCache_args() { + } + + /** + * Performs a deep copy on other. + */ + public flushCache_args(flushCache_args other) { + } + + public flushCache_args deepCopy() { + return new flushCache_args(this); + } + + @Override + public void clear() { + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + } + 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) { + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof flushCache_args) + return this.equals((flushCache_args)that); + return false; + } + + public boolean equals(flushCache_args that) { + if (that == null) + return false; + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + return list.hashCode(); + } + + @Override + public int compareTo(flushCache_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + 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("flushCache_args("); + boolean first = true; + + 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 flushCache_argsStandardSchemeFactory implements SchemeFactory { + public flushCache_argsStandardScheme getScheme() { + return new flushCache_argsStandardScheme(); + } + } + + private static class flushCache_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, flushCache_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) { + 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, flushCache_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class flushCache_argsTupleSchemeFactory implements SchemeFactory { + public flushCache_argsTupleScheme getScheme() { + return new flushCache_argsTupleScheme(); + } + } + + private static class flushCache_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, flushCache_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, flushCache_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class flushCache_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("flushCache_result"); + + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new flushCache_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new flushCache_resultTupleSchemeFactory()); + } + + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { +; + + 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) { + 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; + } + } + 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); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(flushCache_result.class, metaDataMap); + } + + public flushCache_result() { + } + + /** + * Performs a deep copy on other. + */ + public flushCache_result(flushCache_result other) { + } + + public flushCache_result deepCopy() { + return new flushCache_result(this); + } + + @Override + public void clear() { + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + } + 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) { + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof flushCache_result) + return this.equals((flushCache_result)that); + return false; + } + + public boolean equals(flushCache_result that) { + if (that == null) + return false; + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + return list.hashCode(); + } + + @Override + public int compareTo(flushCache_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + 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("flushCache_result("); + boolean first = true; + + 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 flushCache_resultStandardSchemeFactory implements SchemeFactory { + public flushCache_resultStandardScheme getScheme() { + return new flushCache_resultStandardScheme(); + } + } + + private static class flushCache_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, flushCache_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) { + 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, flushCache_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class flushCache_resultTupleSchemeFactory implements SchemeFactory { + public flushCache_resultTupleScheme getScheme() { + return new flushCache_resultTupleScheme(); + } + } + + private static class flushCache_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, flushCache_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, flushCache_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_write_notification_log_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_write_notification_log_args"); + + private static final org.apache.thrift.protocol.TField RQST_FIELD_DESC = new org.apache.thrift.protocol.TField("rqst", org.apache.thrift.protocol.TType.STRUCT, (short)-1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new add_write_notification_log_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_write_notification_log_argsTupleSchemeFactory()); + } + + private WriteNotificationLogRequest rqst; // 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 { + RQST((short)-1, "rqst"); + + 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: // RQST + return RQST; + 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.RQST, new org.apache.thrift.meta_data.FieldMetaData("rqst", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, WriteNotificationLogRequest.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_write_notification_log_args.class, metaDataMap); } - public flushCache_args() { + public add_write_notification_log_args() { + } + + public add_write_notification_log_args( + WriteNotificationLogRequest rqst) + { + this(); + this.rqst = rqst; } /** * Performs a deep copy on other. */ - public flushCache_args(flushCache_args other) { + public add_write_notification_log_args(add_write_notification_log_args other) { + if (other.isSetRqst()) { + this.rqst = new WriteNotificationLogRequest(other.rqst); + } } - public flushCache_args deepCopy() { - return new flushCache_args(this); + public add_write_notification_log_args deepCopy() { + return new add_write_notification_log_args(this); } @Override public void clear() { + this.rqst = null; + } + + public WriteNotificationLogRequest getRqst() { + return this.rqst; + } + + public void setRqst(WriteNotificationLogRequest rqst) { + this.rqst = rqst; + } + + public void unsetRqst() { + this.rqst = null; + } + + /** Returns true if field rqst is set (has been assigned a value) and false otherwise */ + public boolean isSetRqst() { + return this.rqst != null; + } + + public void setRqstIsSet(boolean value) { + if (!value) { + this.rqst = null; + } } public void setFieldValue(_Fields field, Object value) { switch (field) { + case RQST: + if (value == null) { + unsetRqst(); + } else { + setRqst((WriteNotificationLogRequest)value); + } + break; + } } public Object getFieldValue(_Fields field) { switch (field) { + case RQST: + return getRqst(); + } throw new IllegalStateException(); } @@ -198159,6 +198836,8 @@ public boolean isSet(_Fields field) { } switch (field) { + case RQST: + return isSetRqst(); } throw new IllegalStateException(); } @@ -198167,15 +198846,24 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof flushCache_args) - return this.equals((flushCache_args)that); + if (that instanceof add_write_notification_log_args) + return this.equals((add_write_notification_log_args)that); return false; } - public boolean equals(flushCache_args that) { + public boolean equals(add_write_notification_log_args that) { if (that == null) return false; + boolean this_present_rqst = true && this.isSetRqst(); + boolean that_present_rqst = true && that.isSetRqst(); + if (this_present_rqst || that_present_rqst) { + if (!(this_present_rqst && that_present_rqst)) + return false; + if (!this.rqst.equals(that.rqst)) + return false; + } + return true; } @@ -198183,17 +198871,32 @@ public boolean equals(flushCache_args that) { public int hashCode() { List list = new ArrayList(); + boolean present_rqst = true && (isSetRqst()); + list.add(present_rqst); + if (present_rqst) + list.add(rqst); + return list.hashCode(); } @Override - public int compareTo(flushCache_args other) { + public int compareTo(add_write_notification_log_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + lastComparison = Boolean.valueOf(isSetRqst()).compareTo(other.isSetRqst()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetRqst()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, other.rqst); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -198211,9 +198914,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("flushCache_args("); + StringBuilder sb = new StringBuilder("add_write_notification_log_args("); boolean first = true; + sb.append("rqst:"); + if (this.rqst == null) { + sb.append("null"); + } else { + sb.append(this.rqst); + } + first = false; sb.append(")"); return sb.toString(); } @@ -198221,6 +198931,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (rqst != null) { + rqst.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -198239,15 +198952,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class flushCache_argsStandardSchemeFactory implements SchemeFactory { - public flushCache_argsStandardScheme getScheme() { - return new flushCache_argsStandardScheme(); + private static class add_write_notification_log_argsStandardSchemeFactory implements SchemeFactory { + public add_write_notification_log_argsStandardScheme getScheme() { + return new add_write_notification_log_argsStandardScheme(); } } - private static class flushCache_argsStandardScheme extends StandardScheme { + private static class add_write_notification_log_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, flushCache_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_write_notification_log_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -198257,6 +198970,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, flushCache_args str break; } switch (schemeField.id) { + case -1: // RQST + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.rqst = new WriteNotificationLogRequest(); + struct.rqst.read(iprot); + struct.setRqstIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -198266,51 +198988,72 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, flushCache_args str struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, flushCache_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_write_notification_log_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.rqst != null) { + oprot.writeFieldBegin(RQST_FIELD_DESC); + struct.rqst.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class flushCache_argsTupleSchemeFactory implements SchemeFactory { - public flushCache_argsTupleScheme getScheme() { - return new flushCache_argsTupleScheme(); + private static class add_write_notification_log_argsTupleSchemeFactory implements SchemeFactory { + public add_write_notification_log_argsTupleScheme getScheme() { + return new add_write_notification_log_argsTupleScheme(); } } - private static class flushCache_argsTupleScheme extends TupleScheme { + private static class add_write_notification_log_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, flushCache_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_write_notification_log_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetRqst()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetRqst()) { + struct.rqst.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, flushCache_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_write_notification_log_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.rqst = new WriteNotificationLogRequest(); + struct.rqst.read(iprot); + struct.setRqstIsSet(true); + } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class flushCache_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("flushCache_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_write_notification_log_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_write_notification_log_result"); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new flushCache_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new flushCache_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_write_notification_log_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_write_notification_log_resultTupleSchemeFactory()); } + private WriteNotificationLogResponse success; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { -; + SUCCESS((short)0, "success"); private static final Map byName = new HashMap(); @@ -198325,6 +199068,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, flushCache_args stru */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; default: return null; } @@ -198363,37 +199108,86 @@ public String getFieldName() { return _fieldName; } } + + // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, WriteNotificationLogResponse.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(flushCache_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_write_notification_log_result.class, metaDataMap); } - public flushCache_result() { + public add_write_notification_log_result() { + } + + public add_write_notification_log_result( + WriteNotificationLogResponse success) + { + this(); + this.success = success; } /** * Performs a deep copy on other. */ - public flushCache_result(flushCache_result other) { + public add_write_notification_log_result(add_write_notification_log_result other) { + if (other.isSetSuccess()) { + this.success = new WriteNotificationLogResponse(other.success); + } } - public flushCache_result deepCopy() { - return new flushCache_result(this); + public add_write_notification_log_result deepCopy() { + return new add_write_notification_log_result(this); } @Override public void clear() { + this.success = null; + } + + public WriteNotificationLogResponse getSuccess() { + return this.success; + } + + public void setSuccess(WriteNotificationLogResponse success) { + this.success = success; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } } public void setFieldValue(_Fields field, Object value) { switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((WriteNotificationLogResponse)value); + } + break; + } } public Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return getSuccess(); + } throw new IllegalStateException(); } @@ -198405,6 +199199,8 @@ public boolean isSet(_Fields field) { } switch (field) { + case SUCCESS: + return isSetSuccess(); } throw new IllegalStateException(); } @@ -198413,15 +199209,24 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof flushCache_result) - return this.equals((flushCache_result)that); + if (that instanceof add_write_notification_log_result) + return this.equals((add_write_notification_log_result)that); return false; } - public boolean equals(flushCache_result that) { + public boolean equals(add_write_notification_log_result that) { if (that == null) return false; + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + return true; } @@ -198429,17 +199234,32 @@ public boolean equals(flushCache_result that) { public int hashCode() { List list = new ArrayList(); + boolean present_success = true && (isSetSuccess()); + list.add(present_success); + if (present_success) + list.add(success); + return list.hashCode(); } @Override - public int compareTo(flushCache_result other) { + public int compareTo(add_write_notification_log_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -198457,9 +199277,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("flushCache_result("); + StringBuilder sb = new StringBuilder("add_write_notification_log_result("); boolean first = true; + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + first = false; sb.append(")"); return sb.toString(); } @@ -198467,6 +199294,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (success != null) { + success.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -198485,15 +199315,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class flushCache_resultStandardSchemeFactory implements SchemeFactory { - public flushCache_resultStandardScheme getScheme() { - return new flushCache_resultStandardScheme(); + private static class add_write_notification_log_resultStandardSchemeFactory implements SchemeFactory { + public add_write_notification_log_resultStandardScheme getScheme() { + return new add_write_notification_log_resultStandardScheme(); } } - private static class flushCache_resultStandardScheme extends StandardScheme { + private static class add_write_notification_log_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, flushCache_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_write_notification_log_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -198503,6 +199333,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, flushCache_result s break; } switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new WriteNotificationLogResponse(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -198512,32 +199351,51 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, flushCache_result s struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, flushCache_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_write_notification_log_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + struct.success.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class flushCache_resultTupleSchemeFactory implements SchemeFactory { - public flushCache_resultTupleScheme getScheme() { - return new flushCache_resultTupleScheme(); + private static class add_write_notification_log_resultTupleSchemeFactory implements SchemeFactory { + public add_write_notification_log_resultTupleScheme getScheme() { + return new add_write_notification_log_resultTupleScheme(); } } - private static class flushCache_resultTupleScheme extends TupleScheme { + private static class add_write_notification_log_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, flushCache_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_write_notification_log_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetSuccess()) { + struct.success.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, flushCache_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_write_notification_log_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.success = new WriteNotificationLogResponse(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } } } @@ -228539,14 +229397,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 _list1502 = iprot.readListBegin(); - struct.success = new ArrayList(_list1502.size); - SchemaVersion _elem1503; - for (int _i1504 = 0; _i1504 < _list1502.size; ++_i1504) + org.apache.thrift.protocol.TList _list1526 = iprot.readListBegin(); + struct.success = new ArrayList(_list1526.size); + SchemaVersion _elem1527; + for (int _i1528 = 0; _i1528 < _list1526.size; ++_i1528) { - _elem1503 = new SchemaVersion(); - _elem1503.read(iprot); - struct.success.add(_elem1503); + _elem1527 = new SchemaVersion(); + _elem1527.read(iprot); + struct.success.add(_elem1527); } iprot.readListEnd(); } @@ -228590,9 +229448,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 _iter1505 : struct.success) + for (SchemaVersion _iter1529 : struct.success) { - _iter1505.write(oprot); + _iter1529.write(oprot); } oprot.writeListEnd(); } @@ -228639,9 +229497,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_all_vers if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (SchemaVersion _iter1506 : struct.success) + for (SchemaVersion _iter1530 : struct.success) { - _iter1506.write(oprot); + _iter1530.write(oprot); } } } @@ -228659,14 +229517,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 _list1507 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1507.size); - SchemaVersion _elem1508; - for (int _i1509 = 0; _i1509 < _list1507.size; ++_i1509) + org.apache.thrift.protocol.TList _list1531 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1531.size); + SchemaVersion _elem1532; + for (int _i1533 = 0; _i1533 < _list1531.size; ++_i1533) { - _elem1508 = new SchemaVersion(); - _elem1508.read(iprot); - struct.success.add(_elem1508); + _elem1532 = new SchemaVersion(); + _elem1532.read(iprot); + struct.success.add(_elem1532); } } struct.setSuccessIsSet(true); @@ -237209,14 +238067,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 _list1510 = iprot.readListBegin(); - struct.success = new ArrayList(_list1510.size); - RuntimeStat _elem1511; - for (int _i1512 = 0; _i1512 < _list1510.size; ++_i1512) + org.apache.thrift.protocol.TList _list1534 = iprot.readListBegin(); + struct.success = new ArrayList(_list1534.size); + RuntimeStat _elem1535; + for (int _i1536 = 0; _i1536 < _list1534.size; ++_i1536) { - _elem1511 = new RuntimeStat(); - _elem1511.read(iprot); - struct.success.add(_elem1511); + _elem1535 = new RuntimeStat(); + _elem1535.read(iprot); + struct.success.add(_elem1535); } iprot.readListEnd(); } @@ -237251,9 +238109,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 _iter1513 : struct.success) + for (RuntimeStat _iter1537 : struct.success) { - _iter1513.write(oprot); + _iter1537.write(oprot); } oprot.writeListEnd(); } @@ -237292,9 +238150,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_runtime_stats_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (RuntimeStat _iter1514 : struct.success) + for (RuntimeStat _iter1538 : struct.success) { - _iter1514.write(oprot); + _iter1538.write(oprot); } } } @@ -237309,14 +238167,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 _list1515 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1515.size); - RuntimeStat _elem1516; - for (int _i1517 = 0; _i1517 < _list1515.size; ++_i1517) + 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); + RuntimeStat _elem1540; + for (int _i1541 = 0; _i1541 < _list1539.size; ++_i1541) { - _elem1516 = new RuntimeStat(); - _elem1516.read(iprot); - struct.success.add(_elem1516); + _elem1540 = new RuntimeStat(); + _elem1540.read(iprot); + struct.success.add(_elem1540); } } struct.setSuccessIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMFullResourcePlan.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMFullResourcePlan.java index eda462ecfb..44674798f7 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMFullResourcePlan.java +++ b/standalone-metastore/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 _list848 = iprot.readListBegin(); - struct.pools = new ArrayList(_list848.size); - WMPool _elem849; - for (int _i850 = 0; _i850 < _list848.size; ++_i850) + org.apache.thrift.protocol.TList _list872 = iprot.readListBegin(); + struct.pools = new ArrayList(_list872.size); + WMPool _elem873; + for (int _i874 = 0; _i874 < _list872.size; ++_i874) { - _elem849 = new WMPool(); - _elem849.read(iprot); - struct.pools.add(_elem849); + _elem873 = new WMPool(); + _elem873.read(iprot); + struct.pools.add(_elem873); } 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 _list851 = iprot.readListBegin(); - struct.mappings = new ArrayList(_list851.size); - WMMapping _elem852; - for (int _i853 = 0; _i853 < _list851.size; ++_i853) + org.apache.thrift.protocol.TList _list875 = iprot.readListBegin(); + struct.mappings = new ArrayList(_list875.size); + WMMapping _elem876; + for (int _i877 = 0; _i877 < _list875.size; ++_i877) { - _elem852 = new WMMapping(); - _elem852.read(iprot); - struct.mappings.add(_elem852); + _elem876 = new WMMapping(); + _elem876.read(iprot); + struct.mappings.add(_elem876); } 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 _list854 = iprot.readListBegin(); - struct.triggers = new ArrayList(_list854.size); - WMTrigger _elem855; - for (int _i856 = 0; _i856 < _list854.size; ++_i856) + org.apache.thrift.protocol.TList _list878 = iprot.readListBegin(); + struct.triggers = new ArrayList(_list878.size); + WMTrigger _elem879; + for (int _i880 = 0; _i880 < _list878.size; ++_i880) { - _elem855 = new WMTrigger(); - _elem855.read(iprot); - struct.triggers.add(_elem855); + _elem879 = new WMTrigger(); + _elem879.read(iprot); + struct.triggers.add(_elem879); } 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 _list857 = iprot.readListBegin(); - struct.poolTriggers = new ArrayList(_list857.size); - WMPoolTrigger _elem858; - for (int _i859 = 0; _i859 < _list857.size; ++_i859) + org.apache.thrift.protocol.TList _list881 = iprot.readListBegin(); + struct.poolTriggers = new ArrayList(_list881.size); + WMPoolTrigger _elem882; + for (int _i883 = 0; _i883 < _list881.size; ++_i883) { - _elem858 = new WMPoolTrigger(); - _elem858.read(iprot); - struct.poolTriggers.add(_elem858); + _elem882 = new WMPoolTrigger(); + _elem882.read(iprot); + struct.poolTriggers.add(_elem882); } 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 _iter860 : struct.pools) + for (WMPool _iter884 : struct.pools) { - _iter860.write(oprot); + _iter884.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 _iter861 : struct.mappings) + for (WMMapping _iter885 : struct.mappings) { - _iter861.write(oprot); + _iter885.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 _iter862 : struct.triggers) + for (WMTrigger _iter886 : struct.triggers) { - _iter862.write(oprot); + _iter886.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 _iter863 : struct.poolTriggers) + for (WMPoolTrigger _iter887 : struct.poolTriggers) { - _iter863.write(oprot); + _iter887.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 _iter864 : struct.pools) + for (WMPool _iter888 : struct.pools) { - _iter864.write(oprot); + _iter888.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 _iter865 : struct.mappings) + for (WMMapping _iter889 : struct.mappings) { - _iter865.write(oprot); + _iter889.write(oprot); } } } if (struct.isSetTriggers()) { { oprot.writeI32(struct.triggers.size()); - for (WMTrigger _iter866 : struct.triggers) + for (WMTrigger _iter890 : struct.triggers) { - _iter866.write(oprot); + _iter890.write(oprot); } } } if (struct.isSetPoolTriggers()) { { oprot.writeI32(struct.poolTriggers.size()); - for (WMPoolTrigger _iter867 : struct.poolTriggers) + for (WMPoolTrigger _iter891 : struct.poolTriggers) { - _iter867.write(oprot); + _iter891.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 _list868 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.pools = new ArrayList(_list868.size); - WMPool _elem869; - for (int _i870 = 0; _i870 < _list868.size; ++_i870) + org.apache.thrift.protocol.TList _list892 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.pools = new ArrayList(_list892.size); + WMPool _elem893; + for (int _i894 = 0; _i894 < _list892.size; ++_i894) { - _elem869 = new WMPool(); - _elem869.read(iprot); - struct.pools.add(_elem869); + _elem893 = new WMPool(); + _elem893.read(iprot); + struct.pools.add(_elem893); } } struct.setPoolsIsSet(true); BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list871 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.mappings = new ArrayList(_list871.size); - WMMapping _elem872; - for (int _i873 = 0; _i873 < _list871.size; ++_i873) + org.apache.thrift.protocol.TList _list895 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.mappings = new ArrayList(_list895.size); + WMMapping _elem896; + for (int _i897 = 0; _i897 < _list895.size; ++_i897) { - _elem872 = new WMMapping(); - _elem872.read(iprot); - struct.mappings.add(_elem872); + _elem896 = new WMMapping(); + _elem896.read(iprot); + struct.mappings.add(_elem896); } } struct.setMappingsIsSet(true); } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list874 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.triggers = new ArrayList(_list874.size); - WMTrigger _elem875; - for (int _i876 = 0; _i876 < _list874.size; ++_i876) + org.apache.thrift.protocol.TList _list898 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.triggers = new ArrayList(_list898.size); + WMTrigger _elem899; + for (int _i900 = 0; _i900 < _list898.size; ++_i900) { - _elem875 = new WMTrigger(); - _elem875.read(iprot); - struct.triggers.add(_elem875); + _elem899 = new WMTrigger(); + _elem899.read(iprot); + struct.triggers.add(_elem899); } } struct.setTriggersIsSet(true); } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list877 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.poolTriggers = new ArrayList(_list877.size); - WMPoolTrigger _elem878; - for (int _i879 = 0; _i879 < _list877.size; ++_i879) + org.apache.thrift.protocol.TList _list901 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.poolTriggers = new ArrayList(_list901.size); + WMPoolTrigger _elem902; + for (int _i903 = 0; _i903 < _list901.size; ++_i903) { - _elem878 = new WMPoolTrigger(); - _elem878.read(iprot); - struct.poolTriggers.add(_elem878); + _elem902 = new WMPoolTrigger(); + _elem902.read(iprot); + struct.poolTriggers.add(_elem902); } } struct.setPoolTriggersIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetAllResourcePlanResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetAllResourcePlanResponse.java index 9bbc97b42e..c6cb845585 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetAllResourcePlanResponse.java +++ b/standalone-metastore/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 _list880 = iprot.readListBegin(); - struct.resourcePlans = new ArrayList(_list880.size); - WMResourcePlan _elem881; - for (int _i882 = 0; _i882 < _list880.size; ++_i882) + org.apache.thrift.protocol.TList _list904 = iprot.readListBegin(); + struct.resourcePlans = new ArrayList(_list904.size); + WMResourcePlan _elem905; + for (int _i906 = 0; _i906 < _list904.size; ++_i906) { - _elem881 = new WMResourcePlan(); - _elem881.read(iprot); - struct.resourcePlans.add(_elem881); + _elem905 = new WMResourcePlan(); + _elem905.read(iprot); + struct.resourcePlans.add(_elem905); } 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 _iter883 : struct.resourcePlans) + for (WMResourcePlan _iter907 : struct.resourcePlans) { - _iter883.write(oprot); + _iter907.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 _iter884 : struct.resourcePlans) + for (WMResourcePlan _iter908 : struct.resourcePlans) { - _iter884.write(oprot); + _iter908.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 _list885 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.resourcePlans = new ArrayList(_list885.size); - WMResourcePlan _elem886; - for (int _i887 = 0; _i887 < _list885.size; ++_i887) + org.apache.thrift.protocol.TList _list909 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.resourcePlans = new ArrayList(_list909.size); + WMResourcePlan _elem910; + for (int _i911 = 0; _i911 < _list909.size; ++_i911) { - _elem886 = new WMResourcePlan(); - _elem886.read(iprot); - struct.resourcePlans.add(_elem886); + _elem910 = new WMResourcePlan(); + _elem910.read(iprot); + struct.resourcePlans.add(_elem910); } } struct.setResourcePlansIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetTriggersForResourePlanResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetTriggersForResourePlanResponse.java index 6918953813..9eed335cda 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetTriggersForResourePlanResponse.java +++ b/standalone-metastore/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 _list904 = iprot.readListBegin(); - struct.triggers = new ArrayList(_list904.size); - WMTrigger _elem905; - for (int _i906 = 0; _i906 < _list904.size; ++_i906) + org.apache.thrift.protocol.TList _list928 = iprot.readListBegin(); + struct.triggers = new ArrayList(_list928.size); + WMTrigger _elem929; + for (int _i930 = 0; _i930 < _list928.size; ++_i930) { - _elem905 = new WMTrigger(); - _elem905.read(iprot); - struct.triggers.add(_elem905); + _elem929 = new WMTrigger(); + _elem929.read(iprot); + struct.triggers.add(_elem929); } 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 _iter907 : struct.triggers) + for (WMTrigger _iter931 : struct.triggers) { - _iter907.write(oprot); + _iter931.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 _iter908 : struct.triggers) + for (WMTrigger _iter932 : struct.triggers) { - _iter908.write(oprot); + _iter932.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 _list909 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.triggers = new ArrayList(_list909.size); - WMTrigger _elem910; - for (int _i911 = 0; _i911 < _list909.size; ++_i911) + org.apache.thrift.protocol.TList _list933 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.triggers = new ArrayList(_list933.size); + WMTrigger _elem934; + for (int _i935 = 0; _i935 < _list933.size; ++_i935) { - _elem910 = new WMTrigger(); - _elem910.read(iprot); - struct.triggers.add(_elem910); + _elem934 = new WMTrigger(); + _elem934.read(iprot); + struct.triggers.add(_elem934); } } struct.setTriggersIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMValidateResourcePlanResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMValidateResourcePlanResponse.java index 66a478d964..ee9251c866 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMValidateResourcePlanResponse.java +++ b/standalone-metastore/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 _list888 = iprot.readListBegin(); - struct.errors = new ArrayList(_list888.size); - String _elem889; - for (int _i890 = 0; _i890 < _list888.size; ++_i890) + org.apache.thrift.protocol.TList _list912 = iprot.readListBegin(); + struct.errors = new ArrayList(_list912.size); + String _elem913; + for (int _i914 = 0; _i914 < _list912.size; ++_i914) { - _elem889 = iprot.readString(); - struct.errors.add(_elem889); + _elem913 = iprot.readString(); + struct.errors.add(_elem913); } 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 _list891 = iprot.readListBegin(); - struct.warnings = new ArrayList(_list891.size); - String _elem892; - for (int _i893 = 0; _i893 < _list891.size; ++_i893) + org.apache.thrift.protocol.TList _list915 = iprot.readListBegin(); + struct.warnings = new ArrayList(_list915.size); + String _elem916; + for (int _i917 = 0; _i917 < _list915.size; ++_i917) { - _elem892 = iprot.readString(); - struct.warnings.add(_elem892); + _elem916 = iprot.readString(); + struct.warnings.add(_elem916); } 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 _iter894 : struct.errors) + for (String _iter918 : struct.errors) { - oprot.writeString(_iter894); + oprot.writeString(_iter918); } 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 _iter895 : struct.warnings) + for (String _iter919 : struct.warnings) { - oprot.writeString(_iter895); + oprot.writeString(_iter919); } 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 _iter896 : struct.errors) + for (String _iter920 : struct.errors) { - oprot.writeString(_iter896); + oprot.writeString(_iter920); } } } if (struct.isSetWarnings()) { { oprot.writeI32(struct.warnings.size()); - for (String _iter897 : struct.warnings) + for (String _iter921 : struct.warnings) { - oprot.writeString(_iter897); + oprot.writeString(_iter921); } } } @@ -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 _list898 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.errors = new ArrayList(_list898.size); - String _elem899; - for (int _i900 = 0; _i900 < _list898.size; ++_i900) + org.apache.thrift.protocol.TList _list922 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.errors = new ArrayList(_list922.size); + String _elem923; + for (int _i924 = 0; _i924 < _list922.size; ++_i924) { - _elem899 = iprot.readString(); - struct.errors.add(_elem899); + _elem923 = iprot.readString(); + struct.errors.add(_elem923); } } struct.setErrorsIsSet(true); } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list901 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.warnings = new ArrayList(_list901.size); - String _elem902; - for (int _i903 = 0; _i903 < _list901.size; ++_i903) + org.apache.thrift.protocol.TList _list925 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.warnings = new ArrayList(_list925.size); + String _elem926; + for (int _i927 = 0; _i927 < _list925.size; ++_i927) { - _elem902 = iprot.readString(); - struct.warnings.add(_elem902); + _elem926 = iprot.readString(); + struct.warnings.add(_elem926); } } struct.setWarningsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WriteEventInfo.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WriteEventInfo.java new file mode 100644 index 0000000000..22f26095be --- /dev/null +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WriteEventInfo.java @@ -0,0 +1,1012 @@ +/** + * 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 WriteEventInfo 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("WriteEventInfo"); + + private static final org.apache.thrift.protocol.TField WRITE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("writeId", org.apache.thrift.protocol.TType.I64, (short)1); + private static final org.apache.thrift.protocol.TField DATABASE_FIELD_DESC = new org.apache.thrift.protocol.TField("database", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("table", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField FILES_FIELD_DESC = new org.apache.thrift.protocol.TField("files", org.apache.thrift.protocol.TType.STRING, (short)4); + private static final org.apache.thrift.protocol.TField PARTITION_FIELD_DESC = new org.apache.thrift.protocol.TField("partition", org.apache.thrift.protocol.TType.STRING, (short)5); + private static final org.apache.thrift.protocol.TField TABLE_OBJ_FIELD_DESC = new org.apache.thrift.protocol.TField("tableObj", org.apache.thrift.protocol.TType.STRING, (short)6); + private static final org.apache.thrift.protocol.TField PARTITION_OBJ_FIELD_DESC = new org.apache.thrift.protocol.TField("partitionObj", org.apache.thrift.protocol.TType.STRING, (short)7); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new WriteEventInfoStandardSchemeFactory()); + schemes.put(TupleScheme.class, new WriteEventInfoTupleSchemeFactory()); + } + + private long writeId; // required + private String database; // required + private String table; // required + private String files; // required + private String partition; // optional + private String tableObj; // optional + private String partitionObj; // 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 { + WRITE_ID((short)1, "writeId"), + DATABASE((short)2, "database"), + TABLE((short)3, "table"), + FILES((short)4, "files"), + PARTITION((short)5, "partition"), + TABLE_OBJ((short)6, "tableObj"), + PARTITION_OBJ((short)7, "partitionObj"); + + 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: // WRITE_ID + return WRITE_ID; + case 2: // DATABASE + return DATABASE; + case 3: // TABLE + return TABLE; + case 4: // FILES + return FILES; + case 5: // PARTITION + return PARTITION; + case 6: // TABLE_OBJ + return TABLE_OBJ; + case 7: // PARTITION_OBJ + return PARTITION_OBJ; + 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 int __WRITEID_ISSET_ID = 0; + private byte __isset_bitfield = 0; + private static final _Fields optionals[] = {_Fields.PARTITION,_Fields.TABLE_OBJ,_Fields.PARTITION_OBJ}; + 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.WRITE_ID, new org.apache.thrift.meta_data.FieldMetaData("writeId", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + tmpMap.put(_Fields.DATABASE, new org.apache.thrift.meta_data.FieldMetaData("database", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.FILES, new org.apache.thrift.meta_data.FieldMetaData("files", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PARTITION, new org.apache.thrift.meta_data.FieldMetaData("partition", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TABLE_OBJ, new org.apache.thrift.meta_data.FieldMetaData("tableObj", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PARTITION_OBJ, new org.apache.thrift.meta_data.FieldMetaData("partitionObj", 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(WriteEventInfo.class, metaDataMap); + } + + public WriteEventInfo() { + } + + public WriteEventInfo( + long writeId, + String database, + String table, + String files) + { + this(); + this.writeId = writeId; + setWriteIdIsSet(true); + this.database = database; + this.table = table; + this.files = files; + } + + /** + * Performs a deep copy on other. + */ + public WriteEventInfo(WriteEventInfo other) { + __isset_bitfield = other.__isset_bitfield; + this.writeId = other.writeId; + if (other.isSetDatabase()) { + this.database = other.database; + } + if (other.isSetTable()) { + this.table = other.table; + } + if (other.isSetFiles()) { + this.files = other.files; + } + if (other.isSetPartition()) { + this.partition = other.partition; + } + if (other.isSetTableObj()) { + this.tableObj = other.tableObj; + } + if (other.isSetPartitionObj()) { + this.partitionObj = other.partitionObj; + } + } + + public WriteEventInfo deepCopy() { + return new WriteEventInfo(this); + } + + @Override + public void clear() { + setWriteIdIsSet(false); + this.writeId = 0; + this.database = null; + this.table = null; + this.files = null; + this.partition = null; + this.tableObj = null; + this.partitionObj = null; + } + + public long getWriteId() { + return this.writeId; + } + + public void setWriteId(long writeId) { + this.writeId = writeId; + setWriteIdIsSet(true); + } + + public void unsetWriteId() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __WRITEID_ISSET_ID); + } + + /** Returns true if field writeId is set (has been assigned a value) and false otherwise */ + public boolean isSetWriteId() { + return EncodingUtils.testBit(__isset_bitfield, __WRITEID_ISSET_ID); + } + + public void setWriteIdIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __WRITEID_ISSET_ID, value); + } + + public String getDatabase() { + return this.database; + } + + public void setDatabase(String database) { + this.database = database; + } + + public void unsetDatabase() { + this.database = null; + } + + /** Returns true if field database is set (has been assigned a value) and false otherwise */ + public boolean isSetDatabase() { + return this.database != null; + } + + public void setDatabaseIsSet(boolean value) { + if (!value) { + this.database = null; + } + } + + public String getTable() { + return this.table; + } + + public void setTable(String 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 String getFiles() { + return this.files; + } + + public void setFiles(String files) { + this.files = files; + } + + public void unsetFiles() { + this.files = null; + } + + /** Returns true if field files is set (has been assigned a value) and false otherwise */ + public boolean isSetFiles() { + return this.files != null; + } + + public void setFilesIsSet(boolean value) { + if (!value) { + this.files = null; + } + } + + public String getPartition() { + return this.partition; + } + + public void setPartition(String partition) { + this.partition = partition; + } + + public void unsetPartition() { + this.partition = null; + } + + /** Returns true if field partition is set (has been assigned a value) and false otherwise */ + public boolean isSetPartition() { + return this.partition != null; + } + + public void setPartitionIsSet(boolean value) { + if (!value) { + this.partition = null; + } + } + + public String getTableObj() { + return this.tableObj; + } + + public void setTableObj(String tableObj) { + this.tableObj = tableObj; + } + + public void unsetTableObj() { + this.tableObj = null; + } + + /** Returns true if field tableObj is set (has been assigned a value) and false otherwise */ + public boolean isSetTableObj() { + return this.tableObj != null; + } + + public void setTableObjIsSet(boolean value) { + if (!value) { + this.tableObj = null; + } + } + + public String getPartitionObj() { + return this.partitionObj; + } + + public void setPartitionObj(String partitionObj) { + this.partitionObj = partitionObj; + } + + public void unsetPartitionObj() { + this.partitionObj = null; + } + + /** Returns true if field partitionObj is set (has been assigned a value) and false otherwise */ + public boolean isSetPartitionObj() { + return this.partitionObj != null; + } + + public void setPartitionObjIsSet(boolean value) { + if (!value) { + this.partitionObj = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case WRITE_ID: + if (value == null) { + unsetWriteId(); + } else { + setWriteId((Long)value); + } + break; + + case DATABASE: + if (value == null) { + unsetDatabase(); + } else { + setDatabase((String)value); + } + break; + + case TABLE: + if (value == null) { + unsetTable(); + } else { + setTable((String)value); + } + break; + + case FILES: + if (value == null) { + unsetFiles(); + } else { + setFiles((String)value); + } + break; + + case PARTITION: + if (value == null) { + unsetPartition(); + } else { + setPartition((String)value); + } + break; + + case TABLE_OBJ: + if (value == null) { + unsetTableObj(); + } else { + setTableObj((String)value); + } + break; + + case PARTITION_OBJ: + if (value == null) { + unsetPartitionObj(); + } else { + setPartitionObj((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case WRITE_ID: + return getWriteId(); + + case DATABASE: + return getDatabase(); + + case TABLE: + return getTable(); + + case FILES: + return getFiles(); + + case PARTITION: + return getPartition(); + + case TABLE_OBJ: + return getTableObj(); + + case PARTITION_OBJ: + return getPartitionObj(); + + } + 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 WRITE_ID: + return isSetWriteId(); + case DATABASE: + return isSetDatabase(); + case TABLE: + return isSetTable(); + case FILES: + return isSetFiles(); + case PARTITION: + return isSetPartition(); + case TABLE_OBJ: + return isSetTableObj(); + case PARTITION_OBJ: + return isSetPartitionObj(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof WriteEventInfo) + return this.equals((WriteEventInfo)that); + return false; + } + + public boolean equals(WriteEventInfo that) { + if (that == null) + return false; + + boolean this_present_writeId = true; + boolean that_present_writeId = true; + if (this_present_writeId || that_present_writeId) { + if (!(this_present_writeId && that_present_writeId)) + return false; + if (this.writeId != that.writeId) + return false; + } + + boolean this_present_database = true && this.isSetDatabase(); + boolean that_present_database = true && that.isSetDatabase(); + if (this_present_database || that_present_database) { + if (!(this_present_database && that_present_database)) + return false; + if (!this.database.equals(that.database)) + 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_files = true && this.isSetFiles(); + boolean that_present_files = true && that.isSetFiles(); + if (this_present_files || that_present_files) { + if (!(this_present_files && that_present_files)) + return false; + if (!this.files.equals(that.files)) + return false; + } + + boolean this_present_partition = true && this.isSetPartition(); + boolean that_present_partition = true && that.isSetPartition(); + if (this_present_partition || that_present_partition) { + if (!(this_present_partition && that_present_partition)) + return false; + if (!this.partition.equals(that.partition)) + return false; + } + + boolean this_present_tableObj = true && this.isSetTableObj(); + boolean that_present_tableObj = true && that.isSetTableObj(); + if (this_present_tableObj || that_present_tableObj) { + if (!(this_present_tableObj && that_present_tableObj)) + return false; + if (!this.tableObj.equals(that.tableObj)) + return false; + } + + boolean this_present_partitionObj = true && this.isSetPartitionObj(); + boolean that_present_partitionObj = true && that.isSetPartitionObj(); + if (this_present_partitionObj || that_present_partitionObj) { + if (!(this_present_partitionObj && that_present_partitionObj)) + return false; + if (!this.partitionObj.equals(that.partitionObj)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_writeId = true; + list.add(present_writeId); + if (present_writeId) + list.add(writeId); + + boolean present_database = true && (isSetDatabase()); + list.add(present_database); + if (present_database) + list.add(database); + + boolean present_table = true && (isSetTable()); + list.add(present_table); + if (present_table) + list.add(table); + + boolean present_files = true && (isSetFiles()); + list.add(present_files); + if (present_files) + list.add(files); + + boolean present_partition = true && (isSetPartition()); + list.add(present_partition); + if (present_partition) + list.add(partition); + + boolean present_tableObj = true && (isSetTableObj()); + list.add(present_tableObj); + if (present_tableObj) + list.add(tableObj); + + boolean present_partitionObj = true && (isSetPartitionObj()); + list.add(present_partitionObj); + if (present_partitionObj) + list.add(partitionObj); + + return list.hashCode(); + } + + @Override + public int compareTo(WriteEventInfo other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetWriteId()).compareTo(other.isSetWriteId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetWriteId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.writeId, other.writeId); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetDatabase()).compareTo(other.isSetDatabase()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDatabase()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.database, other.database); + if (lastComparison != 0) { + return lastComparison; + } + } + 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(isSetFiles()).compareTo(other.isSetFiles()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetFiles()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.files, other.files); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPartition()).compareTo(other.isSetPartition()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPartition()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partition, other.partition); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTableObj()).compareTo(other.isSetTableObj()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTableObj()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableObj, other.tableObj); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPartitionObj()).compareTo(other.isSetPartitionObj()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPartitionObj()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionObj, other.partitionObj); + 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("WriteEventInfo("); + boolean first = true; + + sb.append("writeId:"); + sb.append(this.writeId); + first = false; + if (!first) sb.append(", "); + sb.append("database:"); + if (this.database == null) { + sb.append("null"); + } else { + sb.append(this.database); + } + first = false; + if (!first) sb.append(", "); + sb.append("table:"); + if (this.table == null) { + sb.append("null"); + } else { + sb.append(this.table); + } + first = false; + if (!first) sb.append(", "); + sb.append("files:"); + if (this.files == null) { + sb.append("null"); + } else { + sb.append(this.files); + } + first = false; + if (isSetPartition()) { + if (!first) sb.append(", "); + sb.append("partition:"); + if (this.partition == null) { + sb.append("null"); + } else { + sb.append(this.partition); + } + first = false; + } + if (isSetTableObj()) { + if (!first) sb.append(", "); + sb.append("tableObj:"); + if (this.tableObj == null) { + sb.append("null"); + } else { + sb.append(this.tableObj); + } + first = false; + } + if (isSetPartitionObj()) { + if (!first) sb.append(", "); + sb.append("partitionObj:"); + if (this.partitionObj == null) { + sb.append("null"); + } else { + sb.append(this.partitionObj); + } + first = false; + } + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (!isSetWriteId()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'writeId' is unset! Struct:" + toString()); + } + + if (!isSetDatabase()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'database' is unset! Struct:" + toString()); + } + + if (!isSetTable()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'table' is unset! Struct:" + toString()); + } + + if (!isSetFiles()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'files' is unset! Struct:" + toString()); + } + + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; + 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 WriteEventInfoStandardSchemeFactory implements SchemeFactory { + public WriteEventInfoStandardScheme getScheme() { + return new WriteEventInfoStandardScheme(); + } + } + + private static class WriteEventInfoStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, WriteEventInfo 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: // WRITE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.writeId = iprot.readI64(); + struct.setWriteIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // DATABASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.database = iprot.readString(); + struct.setDatabaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TABLE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.table = iprot.readString(); + struct.setTableIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // FILES + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.files = iprot.readString(); + struct.setFilesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // PARTITION + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.partition = iprot.readString(); + struct.setPartitionIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // TABLE_OBJ + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tableObj = iprot.readString(); + struct.setTableObjIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 7: // PARTITION_OBJ + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.partitionObj = iprot.readString(); + struct.setPartitionObjIsSet(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, WriteEventInfo struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + oprot.writeFieldBegin(WRITE_ID_FIELD_DESC); + oprot.writeI64(struct.writeId); + oprot.writeFieldEnd(); + if (struct.database != null) { + oprot.writeFieldBegin(DATABASE_FIELD_DESC); + oprot.writeString(struct.database); + oprot.writeFieldEnd(); + } + if (struct.table != null) { + oprot.writeFieldBegin(TABLE_FIELD_DESC); + oprot.writeString(struct.table); + oprot.writeFieldEnd(); + } + if (struct.files != null) { + oprot.writeFieldBegin(FILES_FIELD_DESC); + oprot.writeString(struct.files); + oprot.writeFieldEnd(); + } + if (struct.partition != null) { + if (struct.isSetPartition()) { + oprot.writeFieldBegin(PARTITION_FIELD_DESC); + oprot.writeString(struct.partition); + oprot.writeFieldEnd(); + } + } + if (struct.tableObj != null) { + if (struct.isSetTableObj()) { + oprot.writeFieldBegin(TABLE_OBJ_FIELD_DESC); + oprot.writeString(struct.tableObj); + oprot.writeFieldEnd(); + } + } + if (struct.partitionObj != null) { + if (struct.isSetPartitionObj()) { + oprot.writeFieldBegin(PARTITION_OBJ_FIELD_DESC); + oprot.writeString(struct.partitionObj); + oprot.writeFieldEnd(); + } + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class WriteEventInfoTupleSchemeFactory implements SchemeFactory { + public WriteEventInfoTupleScheme getScheme() { + return new WriteEventInfoTupleScheme(); + } + } + + private static class WriteEventInfoTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, WriteEventInfo struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + oprot.writeI64(struct.writeId); + oprot.writeString(struct.database); + oprot.writeString(struct.table); + oprot.writeString(struct.files); + BitSet optionals = new BitSet(); + if (struct.isSetPartition()) { + optionals.set(0); + } + if (struct.isSetTableObj()) { + optionals.set(1); + } + if (struct.isSetPartitionObj()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetPartition()) { + oprot.writeString(struct.partition); + } + if (struct.isSetTableObj()) { + oprot.writeString(struct.tableObj); + } + if (struct.isSetPartitionObj()) { + oprot.writeString(struct.partitionObj); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, WriteEventInfo struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + struct.writeId = iprot.readI64(); + struct.setWriteIdIsSet(true); + struct.database = iprot.readString(); + struct.setDatabaseIsSet(true); + struct.table = iprot.readString(); + struct.setTableIsSet(true); + struct.files = iprot.readString(); + struct.setFilesIsSet(true); + BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.partition = iprot.readString(); + struct.setPartitionIsSet(true); + } + if (incoming.get(1)) { + struct.tableObj = iprot.readString(); + struct.setTableObjIsSet(true); + } + if (incoming.get(2)) { + struct.partitionObj = iprot.readString(); + struct.setPartitionObjIsSet(true); + } + } + } + +} + diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WriteNotificationLogRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WriteNotificationLogRequest.java new file mode 100644 index 0000000000..5758820ada --- /dev/null +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WriteNotificationLogRequest.java @@ -0,0 +1,949 @@ +/** + * 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 WriteNotificationLogRequest 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("WriteNotificationLogRequest"); + + private static final org.apache.thrift.protocol.TField TXN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("txnId", org.apache.thrift.protocol.TType.I64, (short)1); + private static final org.apache.thrift.protocol.TField WRITE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("writeId", org.apache.thrift.protocol.TType.I64, (short)2); + private static final org.apache.thrift.protocol.TField DB_FIELD_DESC = new org.apache.thrift.protocol.TField("db", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("table", org.apache.thrift.protocol.TType.STRING, (short)4); + private static final org.apache.thrift.protocol.TField FILE_INFO_FIELD_DESC = new org.apache.thrift.protocol.TField("fileInfo", org.apache.thrift.protocol.TType.STRUCT, (short)5); + private static final org.apache.thrift.protocol.TField PARTITION_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("partitionVals", org.apache.thrift.protocol.TType.LIST, (short)6); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new WriteNotificationLogRequestStandardSchemeFactory()); + schemes.put(TupleScheme.class, new WriteNotificationLogRequestTupleSchemeFactory()); + } + + private long txnId; // required + private long writeId; // required + private String db; // required + private String table; // required + private InsertEventRequestData fileInfo; // required + private List partitionVals; // 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 { + TXN_ID((short)1, "txnId"), + WRITE_ID((short)2, "writeId"), + DB((short)3, "db"), + TABLE((short)4, "table"), + FILE_INFO((short)5, "fileInfo"), + PARTITION_VALS((short)6, "partitionVals"); + + 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: // TXN_ID + return TXN_ID; + case 2: // WRITE_ID + return WRITE_ID; + case 3: // DB + return DB; + case 4: // TABLE + return TABLE; + case 5: // FILE_INFO + return FILE_INFO; + case 6: // PARTITION_VALS + return PARTITION_VALS; + 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 int __TXNID_ISSET_ID = 0; + private static final int __WRITEID_ISSET_ID = 1; + private byte __isset_bitfield = 0; + private static final _Fields optionals[] = {_Fields.PARTITION_VALS}; + 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.TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("txnId", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + tmpMap.put(_Fields.WRITE_ID, new org.apache.thrift.meta_data.FieldMetaData("writeId", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + tmpMap.put(_Fields.DB, new org.apache.thrift.meta_data.FieldMetaData("db", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.FILE_INFO, new org.apache.thrift.meta_data.FieldMetaData("fileInfo", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InsertEventRequestData.class))); + tmpMap.put(_Fields.PARTITION_VALS, new org.apache.thrift.meta_data.FieldMetaData("partitionVals", 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(WriteNotificationLogRequest.class, metaDataMap); + } + + public WriteNotificationLogRequest() { + } + + public WriteNotificationLogRequest( + long txnId, + long writeId, + String db, + String table, + InsertEventRequestData fileInfo) + { + this(); + this.txnId = txnId; + setTxnIdIsSet(true); + this.writeId = writeId; + setWriteIdIsSet(true); + this.db = db; + this.table = table; + this.fileInfo = fileInfo; + } + + /** + * Performs a deep copy on other. + */ + public WriteNotificationLogRequest(WriteNotificationLogRequest other) { + __isset_bitfield = other.__isset_bitfield; + this.txnId = other.txnId; + this.writeId = other.writeId; + if (other.isSetDb()) { + this.db = other.db; + } + if (other.isSetTable()) { + this.table = other.table; + } + if (other.isSetFileInfo()) { + this.fileInfo = new InsertEventRequestData(other.fileInfo); + } + if (other.isSetPartitionVals()) { + List __this__partitionVals = new ArrayList(other.partitionVals); + this.partitionVals = __this__partitionVals; + } + } + + public WriteNotificationLogRequest deepCopy() { + return new WriteNotificationLogRequest(this); + } + + @Override + public void clear() { + setTxnIdIsSet(false); + this.txnId = 0; + setWriteIdIsSet(false); + this.writeId = 0; + this.db = null; + this.table = null; + this.fileInfo = null; + this.partitionVals = null; + } + + public long getTxnId() { + return this.txnId; + } + + public void setTxnId(long txnId) { + this.txnId = txnId; + setTxnIdIsSet(true); + } + + public void unsetTxnId() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TXNID_ISSET_ID); + } + + /** Returns true if field txnId is set (has been assigned a value) and false otherwise */ + public boolean isSetTxnId() { + return EncodingUtils.testBit(__isset_bitfield, __TXNID_ISSET_ID); + } + + public void setTxnIdIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TXNID_ISSET_ID, value); + } + + public long getWriteId() { + return this.writeId; + } + + public void setWriteId(long writeId) { + this.writeId = writeId; + setWriteIdIsSet(true); + } + + public void unsetWriteId() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __WRITEID_ISSET_ID); + } + + /** Returns true if field writeId is set (has been assigned a value) and false otherwise */ + public boolean isSetWriteId() { + return EncodingUtils.testBit(__isset_bitfield, __WRITEID_ISSET_ID); + } + + public void setWriteIdIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __WRITEID_ISSET_ID, value); + } + + public String getDb() { + return this.db; + } + + public void setDb(String db) { + this.db = db; + } + + public void unsetDb() { + this.db = null; + } + + /** Returns true if field db is set (has been assigned a value) and false otherwise */ + public boolean isSetDb() { + return this.db != null; + } + + public void setDbIsSet(boolean value) { + if (!value) { + this.db = null; + } + } + + public String getTable() { + return this.table; + } + + public void setTable(String 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 InsertEventRequestData getFileInfo() { + return this.fileInfo; + } + + public void setFileInfo(InsertEventRequestData fileInfo) { + this.fileInfo = fileInfo; + } + + public void unsetFileInfo() { + this.fileInfo = null; + } + + /** Returns true if field fileInfo is set (has been assigned a value) and false otherwise */ + public boolean isSetFileInfo() { + return this.fileInfo != null; + } + + public void setFileInfoIsSet(boolean value) { + if (!value) { + this.fileInfo = null; + } + } + + public int getPartitionValsSize() { + return (this.partitionVals == null) ? 0 : this.partitionVals.size(); + } + + public java.util.Iterator getPartitionValsIterator() { + return (this.partitionVals == null) ? null : this.partitionVals.iterator(); + } + + public void addToPartitionVals(String elem) { + if (this.partitionVals == null) { + this.partitionVals = new ArrayList(); + } + this.partitionVals.add(elem); + } + + public List getPartitionVals() { + return this.partitionVals; + } + + public void setPartitionVals(List partitionVals) { + this.partitionVals = partitionVals; + } + + public void unsetPartitionVals() { + this.partitionVals = null; + } + + /** Returns true if field partitionVals is set (has been assigned a value) and false otherwise */ + public boolean isSetPartitionVals() { + return this.partitionVals != null; + } + + public void setPartitionValsIsSet(boolean value) { + if (!value) { + this.partitionVals = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case TXN_ID: + if (value == null) { + unsetTxnId(); + } else { + setTxnId((Long)value); + } + break; + + case WRITE_ID: + if (value == null) { + unsetWriteId(); + } else { + setWriteId((Long)value); + } + break; + + case DB: + if (value == null) { + unsetDb(); + } else { + setDb((String)value); + } + break; + + case TABLE: + if (value == null) { + unsetTable(); + } else { + setTable((String)value); + } + break; + + case FILE_INFO: + if (value == null) { + unsetFileInfo(); + } else { + setFileInfo((InsertEventRequestData)value); + } + break; + + case PARTITION_VALS: + if (value == null) { + unsetPartitionVals(); + } else { + setPartitionVals((List)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case TXN_ID: + return getTxnId(); + + case WRITE_ID: + return getWriteId(); + + case DB: + return getDb(); + + case TABLE: + return getTable(); + + case FILE_INFO: + return getFileInfo(); + + case PARTITION_VALS: + return getPartitionVals(); + + } + 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 TXN_ID: + return isSetTxnId(); + case WRITE_ID: + return isSetWriteId(); + case DB: + return isSetDb(); + case TABLE: + return isSetTable(); + case FILE_INFO: + return isSetFileInfo(); + case PARTITION_VALS: + return isSetPartitionVals(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof WriteNotificationLogRequest) + return this.equals((WriteNotificationLogRequest)that); + return false; + } + + public boolean equals(WriteNotificationLogRequest that) { + if (that == null) + return false; + + boolean this_present_txnId = true; + boolean that_present_txnId = true; + if (this_present_txnId || that_present_txnId) { + if (!(this_present_txnId && that_present_txnId)) + return false; + if (this.txnId != that.txnId) + return false; + } + + boolean this_present_writeId = true; + boolean that_present_writeId = true; + if (this_present_writeId || that_present_writeId) { + if (!(this_present_writeId && that_present_writeId)) + return false; + if (this.writeId != that.writeId) + return false; + } + + boolean this_present_db = true && this.isSetDb(); + boolean that_present_db = true && that.isSetDb(); + if (this_present_db || that_present_db) { + if (!(this_present_db && that_present_db)) + return false; + if (!this.db.equals(that.db)) + 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_fileInfo = true && this.isSetFileInfo(); + boolean that_present_fileInfo = true && that.isSetFileInfo(); + if (this_present_fileInfo || that_present_fileInfo) { + if (!(this_present_fileInfo && that_present_fileInfo)) + return false; + if (!this.fileInfo.equals(that.fileInfo)) + return false; + } + + boolean this_present_partitionVals = true && this.isSetPartitionVals(); + boolean that_present_partitionVals = true && that.isSetPartitionVals(); + if (this_present_partitionVals || that_present_partitionVals) { + if (!(this_present_partitionVals && that_present_partitionVals)) + return false; + if (!this.partitionVals.equals(that.partitionVals)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_txnId = true; + list.add(present_txnId); + if (present_txnId) + list.add(txnId); + + boolean present_writeId = true; + list.add(present_writeId); + if (present_writeId) + list.add(writeId); + + boolean present_db = true && (isSetDb()); + list.add(present_db); + if (present_db) + list.add(db); + + boolean present_table = true && (isSetTable()); + list.add(present_table); + if (present_table) + list.add(table); + + boolean present_fileInfo = true && (isSetFileInfo()); + list.add(present_fileInfo); + if (present_fileInfo) + list.add(fileInfo); + + boolean present_partitionVals = true && (isSetPartitionVals()); + list.add(present_partitionVals); + if (present_partitionVals) + list.add(partitionVals); + + return list.hashCode(); + } + + @Override + public int compareTo(WriteNotificationLogRequest other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetTxnId()).compareTo(other.isSetTxnId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTxnId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnId, other.txnId); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetWriteId()).compareTo(other.isSetWriteId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetWriteId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.writeId, other.writeId); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetDb()).compareTo(other.isSetDb()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDb()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db, other.db); + if (lastComparison != 0) { + return lastComparison; + } + } + 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(isSetFileInfo()).compareTo(other.isSetFileInfo()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetFileInfo()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fileInfo, other.fileInfo); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPartitionVals()).compareTo(other.isSetPartitionVals()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPartitionVals()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionVals, other.partitionVals); + 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("WriteNotificationLogRequest("); + boolean first = true; + + sb.append("txnId:"); + sb.append(this.txnId); + first = false; + if (!first) sb.append(", "); + sb.append("writeId:"); + sb.append(this.writeId); + first = false; + if (!first) sb.append(", "); + sb.append("db:"); + if (this.db == null) { + sb.append("null"); + } else { + sb.append(this.db); + } + first = false; + if (!first) sb.append(", "); + sb.append("table:"); + if (this.table == null) { + sb.append("null"); + } else { + sb.append(this.table); + } + first = false; + if (!first) sb.append(", "); + sb.append("fileInfo:"); + if (this.fileInfo == null) { + sb.append("null"); + } else { + sb.append(this.fileInfo); + } + first = false; + if (isSetPartitionVals()) { + if (!first) sb.append(", "); + sb.append("partitionVals:"); + if (this.partitionVals == null) { + sb.append("null"); + } else { + sb.append(this.partitionVals); + } + first = false; + } + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (!isSetTxnId()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'txnId' is unset! Struct:" + toString()); + } + + if (!isSetWriteId()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'writeId' is unset! Struct:" + toString()); + } + + if (!isSetDb()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'db' is unset! Struct:" + toString()); + } + + if (!isSetTable()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'table' is unset! Struct:" + toString()); + } + + if (!isSetFileInfo()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'fileInfo' is unset! Struct:" + toString()); + } + + // check for sub-struct validity + if (fileInfo != null) { + fileInfo.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 { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; + 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 WriteNotificationLogRequestStandardSchemeFactory implements SchemeFactory { + public WriteNotificationLogRequestStandardScheme getScheme() { + return new WriteNotificationLogRequestStandardScheme(); + } + } + + private static class WriteNotificationLogRequestStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, WriteNotificationLogRequest 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: // TXN_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.txnId = iprot.readI64(); + struct.setTxnIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // WRITE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.writeId = iprot.readI64(); + struct.setWriteIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // DB + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.db = iprot.readString(); + struct.setDbIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // TABLE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.table = iprot.readString(); + struct.setTableIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // FILE_INFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.fileInfo = new InsertEventRequestData(); + struct.fileInfo.read(iprot); + struct.setFileInfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // PARTITION_VALS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list764 = iprot.readListBegin(); + struct.partitionVals = new ArrayList(_list764.size); + String _elem765; + for (int _i766 = 0; _i766 < _list764.size; ++_i766) + { + _elem765 = iprot.readString(); + struct.partitionVals.add(_elem765); + } + iprot.readListEnd(); + } + struct.setPartitionValsIsSet(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, WriteNotificationLogRequest struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + oprot.writeFieldBegin(TXN_ID_FIELD_DESC); + oprot.writeI64(struct.txnId); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(WRITE_ID_FIELD_DESC); + oprot.writeI64(struct.writeId); + oprot.writeFieldEnd(); + if (struct.db != null) { + oprot.writeFieldBegin(DB_FIELD_DESC); + oprot.writeString(struct.db); + oprot.writeFieldEnd(); + } + if (struct.table != null) { + oprot.writeFieldBegin(TABLE_FIELD_DESC); + oprot.writeString(struct.table); + oprot.writeFieldEnd(); + } + if (struct.fileInfo != null) { + oprot.writeFieldBegin(FILE_INFO_FIELD_DESC); + struct.fileInfo.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.partitionVals != null) { + if (struct.isSetPartitionVals()) { + 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 _iter767 : struct.partitionVals) + { + oprot.writeString(_iter767); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class WriteNotificationLogRequestTupleSchemeFactory implements SchemeFactory { + public WriteNotificationLogRequestTupleScheme getScheme() { + return new WriteNotificationLogRequestTupleScheme(); + } + } + + private static class WriteNotificationLogRequestTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, WriteNotificationLogRequest struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + oprot.writeI64(struct.txnId); + oprot.writeI64(struct.writeId); + oprot.writeString(struct.db); + oprot.writeString(struct.table); + struct.fileInfo.write(oprot); + BitSet optionals = new BitSet(); + if (struct.isSetPartitionVals()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetPartitionVals()) { + { + oprot.writeI32(struct.partitionVals.size()); + for (String _iter768 : struct.partitionVals) + { + oprot.writeString(_iter768); + } + } + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, WriteNotificationLogRequest struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + struct.txnId = iprot.readI64(); + struct.setTxnIdIsSet(true); + struct.writeId = iprot.readI64(); + struct.setWriteIdIsSet(true); + struct.db = iprot.readString(); + struct.setDbIsSet(true); + struct.table = iprot.readString(); + struct.setTableIsSet(true); + struct.fileInfo = new InsertEventRequestData(); + struct.fileInfo.read(iprot); + struct.setFileInfoIsSet(true); + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + { + org.apache.thrift.protocol.TList _list769 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionVals = new ArrayList(_list769.size); + String _elem770; + for (int _i771 = 0; _i771 < _list769.size; ++_i771) + { + _elem770 = iprot.readString(); + struct.partitionVals.add(_elem770); + } + } + struct.setPartitionValsIsSet(true); + } + } + } + +} + diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WriteNotificationLogResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WriteNotificationLogResponse.java new file mode 100644 index 0000000000..fab4da2af2 --- /dev/null +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WriteNotificationLogResponse.java @@ -0,0 +1,283 @@ +/** + * 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 WriteNotificationLogResponse 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("WriteNotificationLogResponse"); + + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new WriteNotificationLogResponseStandardSchemeFactory()); + schemes.put(TupleScheme.class, new WriteNotificationLogResponseTupleSchemeFactory()); + } + + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { +; + + 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) { + 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; + } + } + 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); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(WriteNotificationLogResponse.class, metaDataMap); + } + + public WriteNotificationLogResponse() { + } + + /** + * Performs a deep copy on other. + */ + public WriteNotificationLogResponse(WriteNotificationLogResponse other) { + } + + public WriteNotificationLogResponse deepCopy() { + return new WriteNotificationLogResponse(this); + } + + @Override + public void clear() { + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + } + 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) { + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof WriteNotificationLogResponse) + return this.equals((WriteNotificationLogResponse)that); + return false; + } + + public boolean equals(WriteNotificationLogResponse that) { + if (that == null) + return false; + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + return list.hashCode(); + } + + @Override + public int compareTo(WriteNotificationLogResponse other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + 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("WriteNotificationLogResponse("); + boolean first = true; + + 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 WriteNotificationLogResponseStandardSchemeFactory implements SchemeFactory { + public WriteNotificationLogResponseStandardScheme getScheme() { + return new WriteNotificationLogResponseStandardScheme(); + } + } + + private static class WriteNotificationLogResponseStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, WriteNotificationLogResponse 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) { + 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, WriteNotificationLogResponse struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class WriteNotificationLogResponseTupleSchemeFactory implements SchemeFactory { + public WriteNotificationLogResponseTupleScheme getScheme() { + return new WriteNotificationLogResponseTupleScheme(); + } + } + + private static class WriteNotificationLogResponseTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, WriteNotificationLogResponse struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, WriteNotificationLogResponse struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + } + } + +} + diff --git a/standalone-metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php b/standalone-metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php index 4a37568aee..81825328c4 100644 --- a/standalone-metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php +++ b/standalone-metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php @@ -1263,6 +1263,11 @@ interface ThriftHiveMetastoreIf extends \FacebookServiceIf { /** */ public function flushCache(); + /** + * @param \metastore\WriteNotificationLogRequest $rqst + * @return \metastore\WriteNotificationLogResponse + */ + public function add_write_notification_log(\metastore\WriteNotificationLogRequest $rqst); /** * @param \metastore\CmRecycleRequest $request * @return \metastore\CmRecycleResponse @@ -10869,6 +10874,57 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas return; } + public function add_write_notification_log(\metastore\WriteNotificationLogRequest $rqst) + { + $this->send_add_write_notification_log($rqst); + return $this->recv_add_write_notification_log(); + } + + public function send_add_write_notification_log(\metastore\WriteNotificationLogRequest $rqst) + { + $args = new \metastore\ThriftHiveMetastore_add_write_notification_log_args(); + $args->rqst = $rqst; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'add_write_notification_log', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('add_write_notification_log', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_add_write_notification_log() + { + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_add_write_notification_log_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_add_write_notification_log_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + if ($result->success !== null) { + return $result->success; + } + throw new \Exception("add_write_notification_log failed: unknown result"); + } + public function cm_recycle(\metastore\CmRecycleRequest $request) { $this->send_cm_recycle($request); @@ -15169,14 +15225,14 @@ class ThriftHiveMetastore_get_databases_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size820 = 0; - $_etype823 = 0; - $xfer += $input->readListBegin($_etype823, $_size820); - for ($_i824 = 0; $_i824 < $_size820; ++$_i824) + $_size841 = 0; + $_etype844 = 0; + $xfer += $input->readListBegin($_etype844, $_size841); + for ($_i845 = 0; $_i845 < $_size841; ++$_i845) { - $elem825 = null; - $xfer += $input->readString($elem825); - $this->success []= $elem825; + $elem846 = null; + $xfer += $input->readString($elem846); + $this->success []= $elem846; } $xfer += $input->readListEnd(); } else { @@ -15212,9 +15268,9 @@ class ThriftHiveMetastore_get_databases_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter826) + foreach ($this->success as $iter847) { - $xfer += $output->writeString($iter826); + $xfer += $output->writeString($iter847); } } $output->writeListEnd(); @@ -15345,14 +15401,14 @@ class ThriftHiveMetastore_get_all_databases_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size827 = 0; - $_etype830 = 0; - $xfer += $input->readListBegin($_etype830, $_size827); - for ($_i831 = 0; $_i831 < $_size827; ++$_i831) + $_size848 = 0; + $_etype851 = 0; + $xfer += $input->readListBegin($_etype851, $_size848); + for ($_i852 = 0; $_i852 < $_size848; ++$_i852) { - $elem832 = null; - $xfer += $input->readString($elem832); - $this->success []= $elem832; + $elem853 = null; + $xfer += $input->readString($elem853); + $this->success []= $elem853; } $xfer += $input->readListEnd(); } else { @@ -15388,9 +15444,9 @@ class ThriftHiveMetastore_get_all_databases_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter833) + foreach ($this->success as $iter854) { - $xfer += $output->writeString($iter833); + $xfer += $output->writeString($iter854); } } $output->writeListEnd(); @@ -16391,18 +16447,18 @@ class ThriftHiveMetastore_get_type_all_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size834 = 0; - $_ktype835 = 0; - $_vtype836 = 0; - $xfer += $input->readMapBegin($_ktype835, $_vtype836, $_size834); - for ($_i838 = 0; $_i838 < $_size834; ++$_i838) + $_size855 = 0; + $_ktype856 = 0; + $_vtype857 = 0; + $xfer += $input->readMapBegin($_ktype856, $_vtype857, $_size855); + for ($_i859 = 0; $_i859 < $_size855; ++$_i859) { - $key839 = ''; - $val840 = new \metastore\Type(); - $xfer += $input->readString($key839); - $val840 = new \metastore\Type(); - $xfer += $val840->read($input); - $this->success[$key839] = $val840; + $key860 = ''; + $val861 = new \metastore\Type(); + $xfer += $input->readString($key860); + $val861 = new \metastore\Type(); + $xfer += $val861->read($input); + $this->success[$key860] = $val861; } $xfer += $input->readMapEnd(); } else { @@ -16438,10 +16494,10 @@ class ThriftHiveMetastore_get_type_all_result { { $output->writeMapBegin(TType::STRING, TType::STRUCT, count($this->success)); { - foreach ($this->success as $kiter841 => $viter842) + foreach ($this->success as $kiter862 => $viter863) { - $xfer += $output->writeString($kiter841); - $xfer += $viter842->write($output); + $xfer += $output->writeString($kiter862); + $xfer += $viter863->write($output); } } $output->writeMapEnd(); @@ -16645,15 +16701,15 @@ class ThriftHiveMetastore_get_fields_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size843 = 0; - $_etype846 = 0; - $xfer += $input->readListBegin($_etype846, $_size843); - for ($_i847 = 0; $_i847 < $_size843; ++$_i847) + $_size864 = 0; + $_etype867 = 0; + $xfer += $input->readListBegin($_etype867, $_size864); + for ($_i868 = 0; $_i868 < $_size864; ++$_i868) { - $elem848 = null; - $elem848 = new \metastore\FieldSchema(); - $xfer += $elem848->read($input); - $this->success []= $elem848; + $elem869 = null; + $elem869 = new \metastore\FieldSchema(); + $xfer += $elem869->read($input); + $this->success []= $elem869; } $xfer += $input->readListEnd(); } else { @@ -16705,9 +16761,9 @@ class ThriftHiveMetastore_get_fields_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter849) + foreach ($this->success as $iter870) { - $xfer += $iter849->write($output); + $xfer += $iter870->write($output); } } $output->writeListEnd(); @@ -16949,15 +17005,15 @@ class ThriftHiveMetastore_get_fields_with_environment_context_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size850 = 0; - $_etype853 = 0; - $xfer += $input->readListBegin($_etype853, $_size850); - for ($_i854 = 0; $_i854 < $_size850; ++$_i854) + $_size871 = 0; + $_etype874 = 0; + $xfer += $input->readListBegin($_etype874, $_size871); + for ($_i875 = 0; $_i875 < $_size871; ++$_i875) { - $elem855 = null; - $elem855 = new \metastore\FieldSchema(); - $xfer += $elem855->read($input); - $this->success []= $elem855; + $elem876 = null; + $elem876 = new \metastore\FieldSchema(); + $xfer += $elem876->read($input); + $this->success []= $elem876; } $xfer += $input->readListEnd(); } else { @@ -17009,9 +17065,9 @@ class ThriftHiveMetastore_get_fields_with_environment_context_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter856) + foreach ($this->success as $iter877) { - $xfer += $iter856->write($output); + $xfer += $iter877->write($output); } } $output->writeListEnd(); @@ -17225,15 +17281,15 @@ class ThriftHiveMetastore_get_schema_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size857 = 0; - $_etype860 = 0; - $xfer += $input->readListBegin($_etype860, $_size857); - for ($_i861 = 0; $_i861 < $_size857; ++$_i861) + $_size878 = 0; + $_etype881 = 0; + $xfer += $input->readListBegin($_etype881, $_size878); + for ($_i882 = 0; $_i882 < $_size878; ++$_i882) { - $elem862 = null; - $elem862 = new \metastore\FieldSchema(); - $xfer += $elem862->read($input); - $this->success []= $elem862; + $elem883 = null; + $elem883 = new \metastore\FieldSchema(); + $xfer += $elem883->read($input); + $this->success []= $elem883; } $xfer += $input->readListEnd(); } else { @@ -17285,9 +17341,9 @@ class ThriftHiveMetastore_get_schema_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter863) + foreach ($this->success as $iter884) { - $xfer += $iter863->write($output); + $xfer += $iter884->write($output); } } $output->writeListEnd(); @@ -17529,15 +17585,15 @@ class ThriftHiveMetastore_get_schema_with_environment_context_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size864 = 0; - $_etype867 = 0; - $xfer += $input->readListBegin($_etype867, $_size864); - for ($_i868 = 0; $_i868 < $_size864; ++$_i868) + $_size885 = 0; + $_etype888 = 0; + $xfer += $input->readListBegin($_etype888, $_size885); + for ($_i889 = 0; $_i889 < $_size885; ++$_i889) { - $elem869 = null; - $elem869 = new \metastore\FieldSchema(); - $xfer += $elem869->read($input); - $this->success []= $elem869; + $elem890 = null; + $elem890 = new \metastore\FieldSchema(); + $xfer += $elem890->read($input); + $this->success []= $elem890; } $xfer += $input->readListEnd(); } else { @@ -17589,9 +17645,9 @@ class ThriftHiveMetastore_get_schema_with_environment_context_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter870) + foreach ($this->success as $iter891) { - $xfer += $iter870->write($output); + $xfer += $iter891->write($output); } } $output->writeListEnd(); @@ -18263,15 +18319,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 2: if ($ftype == TType::LST) { $this->primaryKeys = array(); - $_size871 = 0; - $_etype874 = 0; - $xfer += $input->readListBegin($_etype874, $_size871); - for ($_i875 = 0; $_i875 < $_size871; ++$_i875) + $_size892 = 0; + $_etype895 = 0; + $xfer += $input->readListBegin($_etype895, $_size892); + for ($_i896 = 0; $_i896 < $_size892; ++$_i896) { - $elem876 = null; - $elem876 = new \metastore\SQLPrimaryKey(); - $xfer += $elem876->read($input); - $this->primaryKeys []= $elem876; + $elem897 = null; + $elem897 = new \metastore\SQLPrimaryKey(); + $xfer += $elem897->read($input); + $this->primaryKeys []= $elem897; } $xfer += $input->readListEnd(); } else { @@ -18281,15 +18337,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 3: if ($ftype == TType::LST) { $this->foreignKeys = array(); - $_size877 = 0; - $_etype880 = 0; - $xfer += $input->readListBegin($_etype880, $_size877); - for ($_i881 = 0; $_i881 < $_size877; ++$_i881) + $_size898 = 0; + $_etype901 = 0; + $xfer += $input->readListBegin($_etype901, $_size898); + for ($_i902 = 0; $_i902 < $_size898; ++$_i902) { - $elem882 = null; - $elem882 = new \metastore\SQLForeignKey(); - $xfer += $elem882->read($input); - $this->foreignKeys []= $elem882; + $elem903 = null; + $elem903 = new \metastore\SQLForeignKey(); + $xfer += $elem903->read($input); + $this->foreignKeys []= $elem903; } $xfer += $input->readListEnd(); } else { @@ -18299,15 +18355,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 4: if ($ftype == TType::LST) { $this->uniqueConstraints = array(); - $_size883 = 0; - $_etype886 = 0; - $xfer += $input->readListBegin($_etype886, $_size883); - for ($_i887 = 0; $_i887 < $_size883; ++$_i887) + $_size904 = 0; + $_etype907 = 0; + $xfer += $input->readListBegin($_etype907, $_size904); + for ($_i908 = 0; $_i908 < $_size904; ++$_i908) { - $elem888 = null; - $elem888 = new \metastore\SQLUniqueConstraint(); - $xfer += $elem888->read($input); - $this->uniqueConstraints []= $elem888; + $elem909 = null; + $elem909 = new \metastore\SQLUniqueConstraint(); + $xfer += $elem909->read($input); + $this->uniqueConstraints []= $elem909; } $xfer += $input->readListEnd(); } else { @@ -18317,15 +18373,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 5: if ($ftype == TType::LST) { $this->notNullConstraints = 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\SQLNotNullConstraint(); - $xfer += $elem894->read($input); - $this->notNullConstraints []= $elem894; + $elem915 = null; + $elem915 = new \metastore\SQLNotNullConstraint(); + $xfer += $elem915->read($input); + $this->notNullConstraints []= $elem915; } $xfer += $input->readListEnd(); } else { @@ -18335,15 +18391,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 6: if ($ftype == TType::LST) { $this->defaultConstraints = array(); - $_size895 = 0; - $_etype898 = 0; - $xfer += $input->readListBegin($_etype898, $_size895); - for ($_i899 = 0; $_i899 < $_size895; ++$_i899) + $_size916 = 0; + $_etype919 = 0; + $xfer += $input->readListBegin($_etype919, $_size916); + for ($_i920 = 0; $_i920 < $_size916; ++$_i920) { - $elem900 = null; - $elem900 = new \metastore\SQLDefaultConstraint(); - $xfer += $elem900->read($input); - $this->defaultConstraints []= $elem900; + $elem921 = null; + $elem921 = new \metastore\SQLDefaultConstraint(); + $xfer += $elem921->read($input); + $this->defaultConstraints []= $elem921; } $xfer += $input->readListEnd(); } else { @@ -18353,15 +18409,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 7: if ($ftype == TType::LST) { $this->checkConstraints = array(); - $_size901 = 0; - $_etype904 = 0; - $xfer += $input->readListBegin($_etype904, $_size901); - for ($_i905 = 0; $_i905 < $_size901; ++$_i905) + $_size922 = 0; + $_etype925 = 0; + $xfer += $input->readListBegin($_etype925, $_size922); + for ($_i926 = 0; $_i926 < $_size922; ++$_i926) { - $elem906 = null; - $elem906 = new \metastore\SQLCheckConstraint(); - $xfer += $elem906->read($input); - $this->checkConstraints []= $elem906; + $elem927 = null; + $elem927 = new \metastore\SQLCheckConstraint(); + $xfer += $elem927->read($input); + $this->checkConstraints []= $elem927; } $xfer += $input->readListEnd(); } else { @@ -18397,9 +18453,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->primaryKeys)); { - foreach ($this->primaryKeys as $iter907) + foreach ($this->primaryKeys as $iter928) { - $xfer += $iter907->write($output); + $xfer += $iter928->write($output); } } $output->writeListEnd(); @@ -18414,9 +18470,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->foreignKeys)); { - foreach ($this->foreignKeys as $iter908) + foreach ($this->foreignKeys as $iter929) { - $xfer += $iter908->write($output); + $xfer += $iter929->write($output); } } $output->writeListEnd(); @@ -18431,9 +18487,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->uniqueConstraints)); { - foreach ($this->uniqueConstraints as $iter909) + foreach ($this->uniqueConstraints as $iter930) { - $xfer += $iter909->write($output); + $xfer += $iter930->write($output); } } $output->writeListEnd(); @@ -18448,9 +18504,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->notNullConstraints)); { - foreach ($this->notNullConstraints as $iter910) + foreach ($this->notNullConstraints as $iter931) { - $xfer += $iter910->write($output); + $xfer += $iter931->write($output); } } $output->writeListEnd(); @@ -18465,9 +18521,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->defaultConstraints)); { - foreach ($this->defaultConstraints as $iter911) + foreach ($this->defaultConstraints as $iter932) { - $xfer += $iter911->write($output); + $xfer += $iter932->write($output); } } $output->writeListEnd(); @@ -18482,9 +18538,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->checkConstraints)); { - foreach ($this->checkConstraints as $iter912) + foreach ($this->checkConstraints as $iter933) { - $xfer += $iter912->write($output); + $xfer += $iter933->write($output); } } $output->writeListEnd(); @@ -20484,14 +20540,14 @@ class ThriftHiveMetastore_truncate_table_args { case 3: if ($ftype == TType::LST) { $this->partNames = array(); - $_size913 = 0; - $_etype916 = 0; - $xfer += $input->readListBegin($_etype916, $_size913); - for ($_i917 = 0; $_i917 < $_size913; ++$_i917) + $_size934 = 0; + $_etype937 = 0; + $xfer += $input->readListBegin($_etype937, $_size934); + for ($_i938 = 0; $_i938 < $_size934; ++$_i938) { - $elem918 = null; - $xfer += $input->readString($elem918); - $this->partNames []= $elem918; + $elem939 = null; + $xfer += $input->readString($elem939); + $this->partNames []= $elem939; } $xfer += $input->readListEnd(); } else { @@ -20529,9 +20585,9 @@ class ThriftHiveMetastore_truncate_table_args { { $output->writeListBegin(TType::STRING, count($this->partNames)); { - foreach ($this->partNames as $iter919) + foreach ($this->partNames as $iter940) { - $xfer += $output->writeString($iter919); + $xfer += $output->writeString($iter940); } } $output->writeListEnd(); @@ -20782,14 +20838,14 @@ class ThriftHiveMetastore_get_tables_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size920 = 0; - $_etype923 = 0; - $xfer += $input->readListBegin($_etype923, $_size920); - for ($_i924 = 0; $_i924 < $_size920; ++$_i924) + $_size941 = 0; + $_etype944 = 0; + $xfer += $input->readListBegin($_etype944, $_size941); + for ($_i945 = 0; $_i945 < $_size941; ++$_i945) { - $elem925 = null; - $xfer += $input->readString($elem925); - $this->success []= $elem925; + $elem946 = null; + $xfer += $input->readString($elem946); + $this->success []= $elem946; } $xfer += $input->readListEnd(); } else { @@ -20825,9 +20881,9 @@ class ThriftHiveMetastore_get_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter926) + foreach ($this->success as $iter947) { - $xfer += $output->writeString($iter926); + $xfer += $output->writeString($iter947); } } $output->writeListEnd(); @@ -21029,14 +21085,14 @@ class ThriftHiveMetastore_get_tables_by_type_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size927 = 0; - $_etype930 = 0; - $xfer += $input->readListBegin($_etype930, $_size927); - for ($_i931 = 0; $_i931 < $_size927; ++$_i931) + $_size948 = 0; + $_etype951 = 0; + $xfer += $input->readListBegin($_etype951, $_size948); + for ($_i952 = 0; $_i952 < $_size948; ++$_i952) { - $elem932 = null; - $xfer += $input->readString($elem932); - $this->success []= $elem932; + $elem953 = null; + $xfer += $input->readString($elem953); + $this->success []= $elem953; } $xfer += $input->readListEnd(); } else { @@ -21072,9 +21128,9 @@ class ThriftHiveMetastore_get_tables_by_type_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter933) + foreach ($this->success as $iter954) { - $xfer += $output->writeString($iter933); + $xfer += $output->writeString($iter954); } } $output->writeListEnd(); @@ -21230,14 +21286,14 @@ class ThriftHiveMetastore_get_materialized_views_for_rewriting_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size934 = 0; - $_etype937 = 0; - $xfer += $input->readListBegin($_etype937, $_size934); - for ($_i938 = 0; $_i938 < $_size934; ++$_i938) + $_size955 = 0; + $_etype958 = 0; + $xfer += $input->readListBegin($_etype958, $_size955); + for ($_i959 = 0; $_i959 < $_size955; ++$_i959) { - $elem939 = null; - $xfer += $input->readString($elem939); - $this->success []= $elem939; + $elem960 = null; + $xfer += $input->readString($elem960); + $this->success []= $elem960; } $xfer += $input->readListEnd(); } else { @@ -21273,9 +21329,9 @@ class ThriftHiveMetastore_get_materialized_views_for_rewriting_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter940) + foreach ($this->success as $iter961) { - $xfer += $output->writeString($iter940); + $xfer += $output->writeString($iter961); } } $output->writeListEnd(); @@ -21380,14 +21436,14 @@ class ThriftHiveMetastore_get_table_meta_args { case 3: if ($ftype == TType::LST) { $this->tbl_types = array(); - $_size941 = 0; - $_etype944 = 0; - $xfer += $input->readListBegin($_etype944, $_size941); - for ($_i945 = 0; $_i945 < $_size941; ++$_i945) + $_size962 = 0; + $_etype965 = 0; + $xfer += $input->readListBegin($_etype965, $_size962); + for ($_i966 = 0; $_i966 < $_size962; ++$_i966) { - $elem946 = null; - $xfer += $input->readString($elem946); - $this->tbl_types []= $elem946; + $elem967 = null; + $xfer += $input->readString($elem967); + $this->tbl_types []= $elem967; } $xfer += $input->readListEnd(); } else { @@ -21425,9 +21481,9 @@ class ThriftHiveMetastore_get_table_meta_args { { $output->writeListBegin(TType::STRING, count($this->tbl_types)); { - foreach ($this->tbl_types as $iter947) + foreach ($this->tbl_types as $iter968) { - $xfer += $output->writeString($iter947); + $xfer += $output->writeString($iter968); } } $output->writeListEnd(); @@ -21504,15 +21560,15 @@ class ThriftHiveMetastore_get_table_meta_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size948 = 0; - $_etype951 = 0; - $xfer += $input->readListBegin($_etype951, $_size948); - for ($_i952 = 0; $_i952 < $_size948; ++$_i952) + $_size969 = 0; + $_etype972 = 0; + $xfer += $input->readListBegin($_etype972, $_size969); + for ($_i973 = 0; $_i973 < $_size969; ++$_i973) { - $elem953 = null; - $elem953 = new \metastore\TableMeta(); - $xfer += $elem953->read($input); - $this->success []= $elem953; + $elem974 = null; + $elem974 = new \metastore\TableMeta(); + $xfer += $elem974->read($input); + $this->success []= $elem974; } $xfer += $input->readListEnd(); } else { @@ -21548,9 +21604,9 @@ class ThriftHiveMetastore_get_table_meta_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter954) + foreach ($this->success as $iter975) { - $xfer += $iter954->write($output); + $xfer += $iter975->write($output); } } $output->writeListEnd(); @@ -21706,14 +21762,14 @@ class ThriftHiveMetastore_get_all_tables_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size955 = 0; - $_etype958 = 0; - $xfer += $input->readListBegin($_etype958, $_size955); - for ($_i959 = 0; $_i959 < $_size955; ++$_i959) + $_size976 = 0; + $_etype979 = 0; + $xfer += $input->readListBegin($_etype979, $_size976); + for ($_i980 = 0; $_i980 < $_size976; ++$_i980) { - $elem960 = null; - $xfer += $input->readString($elem960); - $this->success []= $elem960; + $elem981 = null; + $xfer += $input->readString($elem981); + $this->success []= $elem981; } $xfer += $input->readListEnd(); } else { @@ -21749,9 +21805,9 @@ class ThriftHiveMetastore_get_all_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter961) + foreach ($this->success as $iter982) { - $xfer += $output->writeString($iter961); + $xfer += $output->writeString($iter982); } } $output->writeListEnd(); @@ -22066,14 +22122,14 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { case 2: if ($ftype == TType::LST) { $this->tbl_names = array(); - $_size962 = 0; - $_etype965 = 0; - $xfer += $input->readListBegin($_etype965, $_size962); - for ($_i966 = 0; $_i966 < $_size962; ++$_i966) + $_size983 = 0; + $_etype986 = 0; + $xfer += $input->readListBegin($_etype986, $_size983); + for ($_i987 = 0; $_i987 < $_size983; ++$_i987) { - $elem967 = null; - $xfer += $input->readString($elem967); - $this->tbl_names []= $elem967; + $elem988 = null; + $xfer += $input->readString($elem988); + $this->tbl_names []= $elem988; } $xfer += $input->readListEnd(); } else { @@ -22106,9 +22162,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { { $output->writeListBegin(TType::STRING, count($this->tbl_names)); { - foreach ($this->tbl_names as $iter968) + foreach ($this->tbl_names as $iter989) { - $xfer += $output->writeString($iter968); + $xfer += $output->writeString($iter989); } } $output->writeListEnd(); @@ -22173,15 +22229,15 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size969 = 0; - $_etype972 = 0; - $xfer += $input->readListBegin($_etype972, $_size969); - for ($_i973 = 0; $_i973 < $_size969; ++$_i973) + $_size990 = 0; + $_etype993 = 0; + $xfer += $input->readListBegin($_etype993, $_size990); + for ($_i994 = 0; $_i994 < $_size990; ++$_i994) { - $elem974 = null; - $elem974 = new \metastore\Table(); - $xfer += $elem974->read($input); - $this->success []= $elem974; + $elem995 = null; + $elem995 = new \metastore\Table(); + $xfer += $elem995->read($input); + $this->success []= $elem995; } $xfer += $input->readListEnd(); } else { @@ -22209,9 +22265,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter975) + foreach ($this->success as $iter996) { - $xfer += $iter975->write($output); + $xfer += $iter996->write($output); } } $output->writeListEnd(); @@ -22738,14 +22794,14 @@ class ThriftHiveMetastore_get_materialization_invalidation_info_args { case 2: if ($ftype == TType::LST) { $this->tbl_names = array(); - $_size976 = 0; - $_etype979 = 0; - $xfer += $input->readListBegin($_etype979, $_size976); - for ($_i980 = 0; $_i980 < $_size976; ++$_i980) + $_size997 = 0; + $_etype1000 = 0; + $xfer += $input->readListBegin($_etype1000, $_size997); + for ($_i1001 = 0; $_i1001 < $_size997; ++$_i1001) { - $elem981 = null; - $xfer += $input->readString($elem981); - $this->tbl_names []= $elem981; + $elem1002 = null; + $xfer += $input->readString($elem1002); + $this->tbl_names []= $elem1002; } $xfer += $input->readListEnd(); } else { @@ -22778,9 +22834,9 @@ class ThriftHiveMetastore_get_materialization_invalidation_info_args { { $output->writeListBegin(TType::STRING, count($this->tbl_names)); { - foreach ($this->tbl_names as $iter982) + foreach ($this->tbl_names as $iter1003) { - $xfer += $output->writeString($iter982); + $xfer += $output->writeString($iter1003); } } $output->writeListEnd(); @@ -22885,18 +22941,18 @@ class ThriftHiveMetastore_get_materialization_invalidation_info_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size983 = 0; - $_ktype984 = 0; - $_vtype985 = 0; - $xfer += $input->readMapBegin($_ktype984, $_vtype985, $_size983); - for ($_i987 = 0; $_i987 < $_size983; ++$_i987) + $_size1004 = 0; + $_ktype1005 = 0; + $_vtype1006 = 0; + $xfer += $input->readMapBegin($_ktype1005, $_vtype1006, $_size1004); + for ($_i1008 = 0; $_i1008 < $_size1004; ++$_i1008) { - $key988 = ''; - $val989 = new \metastore\Materialization(); - $xfer += $input->readString($key988); - $val989 = new \metastore\Materialization(); - $xfer += $val989->read($input); - $this->success[$key988] = $val989; + $key1009 = ''; + $val1010 = new \metastore\Materialization(); + $xfer += $input->readString($key1009); + $val1010 = new \metastore\Materialization(); + $xfer += $val1010->read($input); + $this->success[$key1009] = $val1010; } $xfer += $input->readMapEnd(); } else { @@ -22948,10 +23004,10 @@ class ThriftHiveMetastore_get_materialization_invalidation_info_result { { $output->writeMapBegin(TType::STRING, TType::STRUCT, count($this->success)); { - foreach ($this->success as $kiter990 => $viter991) + foreach ($this->success as $kiter1011 => $viter1012) { - $xfer += $output->writeString($kiter990); - $xfer += $viter991->write($output); + $xfer += $output->writeString($kiter1011); + $xfer += $viter1012->write($output); } } $output->writeMapEnd(); @@ -23463,14 +23519,14 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size992 = 0; - $_etype995 = 0; - $xfer += $input->readListBegin($_etype995, $_size992); - for ($_i996 = 0; $_i996 < $_size992; ++$_i996) + $_size1013 = 0; + $_etype1016 = 0; + $xfer += $input->readListBegin($_etype1016, $_size1013); + for ($_i1017 = 0; $_i1017 < $_size1013; ++$_i1017) { - $elem997 = null; - $xfer += $input->readString($elem997); - $this->success []= $elem997; + $elem1018 = null; + $xfer += $input->readString($elem1018); + $this->success []= $elem1018; } $xfer += $input->readListEnd(); } else { @@ -23522,9 +23578,9 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter998) + foreach ($this->success as $iter1019) { - $xfer += $output->writeString($iter998); + $xfer += $output->writeString($iter1019); } } $output->writeListEnd(); @@ -24837,15 +24893,15 @@ class ThriftHiveMetastore_add_partitions_args { case 1: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size999 = 0; - $_etype1002 = 0; - $xfer += $input->readListBegin($_etype1002, $_size999); - for ($_i1003 = 0; $_i1003 < $_size999; ++$_i1003) + $_size1020 = 0; + $_etype1023 = 0; + $xfer += $input->readListBegin($_etype1023, $_size1020); + for ($_i1024 = 0; $_i1024 < $_size1020; ++$_i1024) { - $elem1004 = null; - $elem1004 = new \metastore\Partition(); - $xfer += $elem1004->read($input); - $this->new_parts []= $elem1004; + $elem1025 = null; + $elem1025 = new \metastore\Partition(); + $xfer += $elem1025->read($input); + $this->new_parts []= $elem1025; } $xfer += $input->readListEnd(); } else { @@ -24873,9 +24929,9 @@ class ThriftHiveMetastore_add_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter1005) + foreach ($this->new_parts as $iter1026) { - $xfer += $iter1005->write($output); + $xfer += $iter1026->write($output); } } $output->writeListEnd(); @@ -25090,15 +25146,15 @@ class ThriftHiveMetastore_add_partitions_pspec_args { case 1: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size1006 = 0; - $_etype1009 = 0; - $xfer += $input->readListBegin($_etype1009, $_size1006); - for ($_i1010 = 0; $_i1010 < $_size1006; ++$_i1010) + $_size1027 = 0; + $_etype1030 = 0; + $xfer += $input->readListBegin($_etype1030, $_size1027); + for ($_i1031 = 0; $_i1031 < $_size1027; ++$_i1031) { - $elem1011 = null; - $elem1011 = new \metastore\PartitionSpec(); - $xfer += $elem1011->read($input); - $this->new_parts []= $elem1011; + $elem1032 = null; + $elem1032 = new \metastore\PartitionSpec(); + $xfer += $elem1032->read($input); + $this->new_parts []= $elem1032; } $xfer += $input->readListEnd(); } else { @@ -25126,9 +25182,9 @@ class ThriftHiveMetastore_add_partitions_pspec_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter1012) + foreach ($this->new_parts as $iter1033) { - $xfer += $iter1012->write($output); + $xfer += $iter1033->write($output); } } $output->writeListEnd(); @@ -25378,14 +25434,14 @@ class ThriftHiveMetastore_append_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1013 = 0; - $_etype1016 = 0; - $xfer += $input->readListBegin($_etype1016, $_size1013); - for ($_i1017 = 0; $_i1017 < $_size1013; ++$_i1017) + $_size1034 = 0; + $_etype1037 = 0; + $xfer += $input->readListBegin($_etype1037, $_size1034); + for ($_i1038 = 0; $_i1038 < $_size1034; ++$_i1038) { - $elem1018 = null; - $xfer += $input->readString($elem1018); - $this->part_vals []= $elem1018; + $elem1039 = null; + $xfer += $input->readString($elem1039); + $this->part_vals []= $elem1039; } $xfer += $input->readListEnd(); } else { @@ -25423,9 +25479,9 @@ class ThriftHiveMetastore_append_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1019) + foreach ($this->part_vals as $iter1040) { - $xfer += $output->writeString($iter1019); + $xfer += $output->writeString($iter1040); } } $output->writeListEnd(); @@ -25927,14 +25983,14 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1020 = 0; - $_etype1023 = 0; - $xfer += $input->readListBegin($_etype1023, $_size1020); - for ($_i1024 = 0; $_i1024 < $_size1020; ++$_i1024) + $_size1041 = 0; + $_etype1044 = 0; + $xfer += $input->readListBegin($_etype1044, $_size1041); + for ($_i1045 = 0; $_i1045 < $_size1041; ++$_i1045) { - $elem1025 = null; - $xfer += $input->readString($elem1025); - $this->part_vals []= $elem1025; + $elem1046 = null; + $xfer += $input->readString($elem1046); + $this->part_vals []= $elem1046; } $xfer += $input->readListEnd(); } else { @@ -25980,9 +26036,9 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1026) + foreach ($this->part_vals as $iter1047) { - $xfer += $output->writeString($iter1026); + $xfer += $output->writeString($iter1047); } } $output->writeListEnd(); @@ -26836,14 +26892,14 @@ class ThriftHiveMetastore_drop_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1027 = 0; - $_etype1030 = 0; - $xfer += $input->readListBegin($_etype1030, $_size1027); - for ($_i1031 = 0; $_i1031 < $_size1027; ++$_i1031) + $_size1048 = 0; + $_etype1051 = 0; + $xfer += $input->readListBegin($_etype1051, $_size1048); + for ($_i1052 = 0; $_i1052 < $_size1048; ++$_i1052) { - $elem1032 = null; - $xfer += $input->readString($elem1032); - $this->part_vals []= $elem1032; + $elem1053 = null; + $xfer += $input->readString($elem1053); + $this->part_vals []= $elem1053; } $xfer += $input->readListEnd(); } else { @@ -26888,9 +26944,9 @@ class ThriftHiveMetastore_drop_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1033) + foreach ($this->part_vals as $iter1054) { - $xfer += $output->writeString($iter1033); + $xfer += $output->writeString($iter1054); } } $output->writeListEnd(); @@ -27143,14 +27199,14 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1034 = 0; - $_etype1037 = 0; - $xfer += $input->readListBegin($_etype1037, $_size1034); - for ($_i1038 = 0; $_i1038 < $_size1034; ++$_i1038) + $_size1055 = 0; + $_etype1058 = 0; + $xfer += $input->readListBegin($_etype1058, $_size1055); + for ($_i1059 = 0; $_i1059 < $_size1055; ++$_i1059) { - $elem1039 = null; - $xfer += $input->readString($elem1039); - $this->part_vals []= $elem1039; + $elem1060 = null; + $xfer += $input->readString($elem1060); + $this->part_vals []= $elem1060; } $xfer += $input->readListEnd(); } else { @@ -27203,9 +27259,9 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1040) + foreach ($this->part_vals as $iter1061) { - $xfer += $output->writeString($iter1040); + $xfer += $output->writeString($iter1061); } } $output->writeListEnd(); @@ -28219,14 +28275,14 @@ class ThriftHiveMetastore_get_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1041 = 0; - $_etype1044 = 0; - $xfer += $input->readListBegin($_etype1044, $_size1041); - for ($_i1045 = 0; $_i1045 < $_size1041; ++$_i1045) + $_size1062 = 0; + $_etype1065 = 0; + $xfer += $input->readListBegin($_etype1065, $_size1062); + for ($_i1066 = 0; $_i1066 < $_size1062; ++$_i1066) { - $elem1046 = null; - $xfer += $input->readString($elem1046); - $this->part_vals []= $elem1046; + $elem1067 = null; + $xfer += $input->readString($elem1067); + $this->part_vals []= $elem1067; } $xfer += $input->readListEnd(); } else { @@ -28264,9 +28320,9 @@ class ThriftHiveMetastore_get_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1047) + foreach ($this->part_vals as $iter1068) { - $xfer += $output->writeString($iter1047); + $xfer += $output->writeString($iter1068); } } $output->writeListEnd(); @@ -28508,17 +28564,17 @@ class ThriftHiveMetastore_exchange_partition_args { case 1: if ($ftype == TType::MAP) { $this->partitionSpecs = array(); - $_size1048 = 0; - $_ktype1049 = 0; - $_vtype1050 = 0; - $xfer += $input->readMapBegin($_ktype1049, $_vtype1050, $_size1048); - for ($_i1052 = 0; $_i1052 < $_size1048; ++$_i1052) + $_size1069 = 0; + $_ktype1070 = 0; + $_vtype1071 = 0; + $xfer += $input->readMapBegin($_ktype1070, $_vtype1071, $_size1069); + for ($_i1073 = 0; $_i1073 < $_size1069; ++$_i1073) { - $key1053 = ''; - $val1054 = ''; - $xfer += $input->readString($key1053); - $xfer += $input->readString($val1054); - $this->partitionSpecs[$key1053] = $val1054; + $key1074 = ''; + $val1075 = ''; + $xfer += $input->readString($key1074); + $xfer += $input->readString($val1075); + $this->partitionSpecs[$key1074] = $val1075; } $xfer += $input->readMapEnd(); } else { @@ -28574,10 +28630,10 @@ class ThriftHiveMetastore_exchange_partition_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); { - foreach ($this->partitionSpecs as $kiter1055 => $viter1056) + foreach ($this->partitionSpecs as $kiter1076 => $viter1077) { - $xfer += $output->writeString($kiter1055); - $xfer += $output->writeString($viter1056); + $xfer += $output->writeString($kiter1076); + $xfer += $output->writeString($viter1077); } } $output->writeMapEnd(); @@ -28889,17 +28945,17 @@ class ThriftHiveMetastore_exchange_partitions_args { case 1: if ($ftype == TType::MAP) { $this->partitionSpecs = array(); - $_size1057 = 0; - $_ktype1058 = 0; - $_vtype1059 = 0; - $xfer += $input->readMapBegin($_ktype1058, $_vtype1059, $_size1057); - for ($_i1061 = 0; $_i1061 < $_size1057; ++$_i1061) + $_size1078 = 0; + $_ktype1079 = 0; + $_vtype1080 = 0; + $xfer += $input->readMapBegin($_ktype1079, $_vtype1080, $_size1078); + for ($_i1082 = 0; $_i1082 < $_size1078; ++$_i1082) { - $key1062 = ''; - $val1063 = ''; - $xfer += $input->readString($key1062); - $xfer += $input->readString($val1063); - $this->partitionSpecs[$key1062] = $val1063; + $key1083 = ''; + $val1084 = ''; + $xfer += $input->readString($key1083); + $xfer += $input->readString($val1084); + $this->partitionSpecs[$key1083] = $val1084; } $xfer += $input->readMapEnd(); } else { @@ -28955,10 +29011,10 @@ class ThriftHiveMetastore_exchange_partitions_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); { - foreach ($this->partitionSpecs as $kiter1064 => $viter1065) + foreach ($this->partitionSpecs as $kiter1085 => $viter1086) { - $xfer += $output->writeString($kiter1064); - $xfer += $output->writeString($viter1065); + $xfer += $output->writeString($kiter1085); + $xfer += $output->writeString($viter1086); } } $output->writeMapEnd(); @@ -29091,15 +29147,15 @@ class ThriftHiveMetastore_exchange_partitions_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) + $_size1087 = 0; + $_etype1090 = 0; + $xfer += $input->readListBegin($_etype1090, $_size1087); + for ($_i1091 = 0; $_i1091 < $_size1087; ++$_i1091) { - $elem1071 = null; - $elem1071 = new \metastore\Partition(); - $xfer += $elem1071->read($input); - $this->success []= $elem1071; + $elem1092 = null; + $elem1092 = new \metastore\Partition(); + $xfer += $elem1092->read($input); + $this->success []= $elem1092; } $xfer += $input->readListEnd(); } else { @@ -29159,9 +29215,9 @@ class ThriftHiveMetastore_exchange_partitions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1072) + foreach ($this->success as $iter1093) { - $xfer += $iter1072->write($output); + $xfer += $iter1093->write($output); } } $output->writeListEnd(); @@ -29307,14 +29363,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1073 = 0; - $_etype1076 = 0; - $xfer += $input->readListBegin($_etype1076, $_size1073); - for ($_i1077 = 0; $_i1077 < $_size1073; ++$_i1077) + $_size1094 = 0; + $_etype1097 = 0; + $xfer += $input->readListBegin($_etype1097, $_size1094); + for ($_i1098 = 0; $_i1098 < $_size1094; ++$_i1098) { - $elem1078 = null; - $xfer += $input->readString($elem1078); - $this->part_vals []= $elem1078; + $elem1099 = null; + $xfer += $input->readString($elem1099); + $this->part_vals []= $elem1099; } $xfer += $input->readListEnd(); } else { @@ -29331,14 +29387,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1079 = 0; - $_etype1082 = 0; - $xfer += $input->readListBegin($_etype1082, $_size1079); - for ($_i1083 = 0; $_i1083 < $_size1079; ++$_i1083) + $_size1100 = 0; + $_etype1103 = 0; + $xfer += $input->readListBegin($_etype1103, $_size1100); + for ($_i1104 = 0; $_i1104 < $_size1100; ++$_i1104) { - $elem1084 = null; - $xfer += $input->readString($elem1084); - $this->group_names []= $elem1084; + $elem1105 = null; + $xfer += $input->readString($elem1105); + $this->group_names []= $elem1105; } $xfer += $input->readListEnd(); } else { @@ -29376,9 +29432,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1085) + foreach ($this->part_vals as $iter1106) { - $xfer += $output->writeString($iter1085); + $xfer += $output->writeString($iter1106); } } $output->writeListEnd(); @@ -29398,9 +29454,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1086) + foreach ($this->group_names as $iter1107) { - $xfer += $output->writeString($iter1086); + $xfer += $output->writeString($iter1107); } } $output->writeListEnd(); @@ -29991,15 +30047,15 @@ class ThriftHiveMetastore_get_partitions_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) + $_size1108 = 0; + $_etype1111 = 0; + $xfer += $input->readListBegin($_etype1111, $_size1108); + for ($_i1112 = 0; $_i1112 < $_size1108; ++$_i1112) { - $elem1092 = null; - $elem1092 = new \metastore\Partition(); - $xfer += $elem1092->read($input); - $this->success []= $elem1092; + $elem1113 = null; + $elem1113 = new \metastore\Partition(); + $xfer += $elem1113->read($input); + $this->success []= $elem1113; } $xfer += $input->readListEnd(); } else { @@ -30043,9 +30099,9 @@ class ThriftHiveMetastore_get_partitions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1093) + foreach ($this->success as $iter1114) { - $xfer += $iter1093->write($output); + $xfer += $iter1114->write($output); } } $output->writeListEnd(); @@ -30191,14 +30247,14 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1094 = 0; - $_etype1097 = 0; - $xfer += $input->readListBegin($_etype1097, $_size1094); - for ($_i1098 = 0; $_i1098 < $_size1094; ++$_i1098) + $_size1115 = 0; + $_etype1118 = 0; + $xfer += $input->readListBegin($_etype1118, $_size1115); + for ($_i1119 = 0; $_i1119 < $_size1115; ++$_i1119) { - $elem1099 = null; - $xfer += $input->readString($elem1099); - $this->group_names []= $elem1099; + $elem1120 = null; + $xfer += $input->readString($elem1120); + $this->group_names []= $elem1120; } $xfer += $input->readListEnd(); } else { @@ -30246,9 +30302,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1100) + foreach ($this->group_names as $iter1121) { - $xfer += $output->writeString($iter1100); + $xfer += $output->writeString($iter1121); } } $output->writeListEnd(); @@ -30337,15 +30393,15 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1101 = 0; - $_etype1104 = 0; - $xfer += $input->readListBegin($_etype1104, $_size1101); - for ($_i1105 = 0; $_i1105 < $_size1101; ++$_i1105) + $_size1122 = 0; + $_etype1125 = 0; + $xfer += $input->readListBegin($_etype1125, $_size1122); + for ($_i1126 = 0; $_i1126 < $_size1122; ++$_i1126) { - $elem1106 = null; - $elem1106 = new \metastore\Partition(); - $xfer += $elem1106->read($input); - $this->success []= $elem1106; + $elem1127 = null; + $elem1127 = new \metastore\Partition(); + $xfer += $elem1127->read($input); + $this->success []= $elem1127; } $xfer += $input->readListEnd(); } else { @@ -30389,9 +30445,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1107) + foreach ($this->success as $iter1128) { - $xfer += $iter1107->write($output); + $xfer += $iter1128->write($output); } } $output->writeListEnd(); @@ -30611,15 +30667,15 @@ class ThriftHiveMetastore_get_partitions_pspec_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) + $_size1129 = 0; + $_etype1132 = 0; + $xfer += $input->readListBegin($_etype1132, $_size1129); + for ($_i1133 = 0; $_i1133 < $_size1129; ++$_i1133) { - $elem1113 = null; - $elem1113 = new \metastore\PartitionSpec(); - $xfer += $elem1113->read($input); - $this->success []= $elem1113; + $elem1134 = null; + $elem1134 = new \metastore\PartitionSpec(); + $xfer += $elem1134->read($input); + $this->success []= $elem1134; } $xfer += $input->readListEnd(); } else { @@ -30663,9 +30719,9 @@ class ThriftHiveMetastore_get_partitions_pspec_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1114) + foreach ($this->success as $iter1135) { - $xfer += $iter1114->write($output); + $xfer += $iter1135->write($output); } } $output->writeListEnd(); @@ -30884,14 +30940,14 @@ class ThriftHiveMetastore_get_partition_names_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) + $_size1136 = 0; + $_etype1139 = 0; + $xfer += $input->readListBegin($_etype1139, $_size1136); + for ($_i1140 = 0; $_i1140 < $_size1136; ++$_i1140) { - $elem1120 = null; - $xfer += $input->readString($elem1120); - $this->success []= $elem1120; + $elem1141 = null; + $xfer += $input->readString($elem1141); + $this->success []= $elem1141; } $xfer += $input->readListEnd(); } else { @@ -30935,9 +30991,9 @@ class ThriftHiveMetastore_get_partition_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1121) + foreach ($this->success as $iter1142) { - $xfer += $output->writeString($iter1121); + $xfer += $output->writeString($iter1142); } } $output->writeListEnd(); @@ -31268,14 +31324,14 @@ class ThriftHiveMetastore_get_partitions_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1122 = 0; - $_etype1125 = 0; - $xfer += $input->readListBegin($_etype1125, $_size1122); - for ($_i1126 = 0; $_i1126 < $_size1122; ++$_i1126) + $_size1143 = 0; + $_etype1146 = 0; + $xfer += $input->readListBegin($_etype1146, $_size1143); + for ($_i1147 = 0; $_i1147 < $_size1143; ++$_i1147) { - $elem1127 = null; - $xfer += $input->readString($elem1127); - $this->part_vals []= $elem1127; + $elem1148 = null; + $xfer += $input->readString($elem1148); + $this->part_vals []= $elem1148; } $xfer += $input->readListEnd(); } else { @@ -31320,9 +31376,9 @@ class ThriftHiveMetastore_get_partitions_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1128) + foreach ($this->part_vals as $iter1149) { - $xfer += $output->writeString($iter1128); + $xfer += $output->writeString($iter1149); } } $output->writeListEnd(); @@ -31416,15 +31472,15 @@ class ThriftHiveMetastore_get_partitions_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1129 = 0; - $_etype1132 = 0; - $xfer += $input->readListBegin($_etype1132, $_size1129); - for ($_i1133 = 0; $_i1133 < $_size1129; ++$_i1133) + $_size1150 = 0; + $_etype1153 = 0; + $xfer += $input->readListBegin($_etype1153, $_size1150); + for ($_i1154 = 0; $_i1154 < $_size1150; ++$_i1154) { - $elem1134 = null; - $elem1134 = new \metastore\Partition(); - $xfer += $elem1134->read($input); - $this->success []= $elem1134; + $elem1155 = null; + $elem1155 = new \metastore\Partition(); + $xfer += $elem1155->read($input); + $this->success []= $elem1155; } $xfer += $input->readListEnd(); } else { @@ -31468,9 +31524,9 @@ class ThriftHiveMetastore_get_partitions_ps_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1135) + foreach ($this->success as $iter1156) { - $xfer += $iter1135->write($output); + $xfer += $iter1156->write($output); } } $output->writeListEnd(); @@ -31617,14 +31673,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1136 = 0; - $_etype1139 = 0; - $xfer += $input->readListBegin($_etype1139, $_size1136); - for ($_i1140 = 0; $_i1140 < $_size1136; ++$_i1140) + $_size1157 = 0; + $_etype1160 = 0; + $xfer += $input->readListBegin($_etype1160, $_size1157); + for ($_i1161 = 0; $_i1161 < $_size1157; ++$_i1161) { - $elem1141 = null; - $xfer += $input->readString($elem1141); - $this->part_vals []= $elem1141; + $elem1162 = null; + $xfer += $input->readString($elem1162); + $this->part_vals []= $elem1162; } $xfer += $input->readListEnd(); } else { @@ -31648,14 +31704,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 6: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1142 = 0; - $_etype1145 = 0; - $xfer += $input->readListBegin($_etype1145, $_size1142); - for ($_i1146 = 0; $_i1146 < $_size1142; ++$_i1146) + $_size1163 = 0; + $_etype1166 = 0; + $xfer += $input->readListBegin($_etype1166, $_size1163); + for ($_i1167 = 0; $_i1167 < $_size1163; ++$_i1167) { - $elem1147 = null; - $xfer += $input->readString($elem1147); - $this->group_names []= $elem1147; + $elem1168 = null; + $xfer += $input->readString($elem1168); + $this->group_names []= $elem1168; } $xfer += $input->readListEnd(); } else { @@ -31693,9 +31749,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1148) + foreach ($this->part_vals as $iter1169) { - $xfer += $output->writeString($iter1148); + $xfer += $output->writeString($iter1169); } } $output->writeListEnd(); @@ -31720,9 +31776,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1149) + foreach ($this->group_names as $iter1170) { - $xfer += $output->writeString($iter1149); + $xfer += $output->writeString($iter1170); } } $output->writeListEnd(); @@ -31811,15 +31867,15 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1150 = 0; - $_etype1153 = 0; - $xfer += $input->readListBegin($_etype1153, $_size1150); - for ($_i1154 = 0; $_i1154 < $_size1150; ++$_i1154) + $_size1171 = 0; + $_etype1174 = 0; + $xfer += $input->readListBegin($_etype1174, $_size1171); + for ($_i1175 = 0; $_i1175 < $_size1171; ++$_i1175) { - $elem1155 = null; - $elem1155 = new \metastore\Partition(); - $xfer += $elem1155->read($input); - $this->success []= $elem1155; + $elem1176 = null; + $elem1176 = new \metastore\Partition(); + $xfer += $elem1176->read($input); + $this->success []= $elem1176; } $xfer += $input->readListEnd(); } else { @@ -31863,9 +31919,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1156) + foreach ($this->success as $iter1177) { - $xfer += $iter1156->write($output); + $xfer += $iter1177->write($output); } } $output->writeListEnd(); @@ -31986,14 +32042,14 @@ class ThriftHiveMetastore_get_partition_names_ps_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) + $_size1178 = 0; + $_etype1181 = 0; + $xfer += $input->readListBegin($_etype1181, $_size1178); + for ($_i1182 = 0; $_i1182 < $_size1178; ++$_i1182) { - $elem1162 = null; - $xfer += $input->readString($elem1162); - $this->part_vals []= $elem1162; + $elem1183 = null; + $xfer += $input->readString($elem1183); + $this->part_vals []= $elem1183; } $xfer += $input->readListEnd(); } else { @@ -32038,9 +32094,9 @@ class ThriftHiveMetastore_get_partition_names_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1163) + foreach ($this->part_vals as $iter1184) { - $xfer += $output->writeString($iter1163); + $xfer += $output->writeString($iter1184); } } $output->writeListEnd(); @@ -32133,14 +32189,14 @@ class ThriftHiveMetastore_get_partition_names_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1164 = 0; - $_etype1167 = 0; - $xfer += $input->readListBegin($_etype1167, $_size1164); - for ($_i1168 = 0; $_i1168 < $_size1164; ++$_i1168) + $_size1185 = 0; + $_etype1188 = 0; + $xfer += $input->readListBegin($_etype1188, $_size1185); + for ($_i1189 = 0; $_i1189 < $_size1185; ++$_i1189) { - $elem1169 = null; - $xfer += $input->readString($elem1169); - $this->success []= $elem1169; + $elem1190 = null; + $xfer += $input->readString($elem1190); + $this->success []= $elem1190; } $xfer += $input->readListEnd(); } else { @@ -32184,9 +32240,9 @@ class ThriftHiveMetastore_get_partition_names_ps_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1170) + foreach ($this->success as $iter1191) { - $xfer += $output->writeString($iter1170); + $xfer += $output->writeString($iter1191); } } $output->writeListEnd(); @@ -32429,15 +32485,15 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1171 = 0; - $_etype1174 = 0; - $xfer += $input->readListBegin($_etype1174, $_size1171); - for ($_i1175 = 0; $_i1175 < $_size1171; ++$_i1175) + $_size1192 = 0; + $_etype1195 = 0; + $xfer += $input->readListBegin($_etype1195, $_size1192); + for ($_i1196 = 0; $_i1196 < $_size1192; ++$_i1196) { - $elem1176 = null; - $elem1176 = new \metastore\Partition(); - $xfer += $elem1176->read($input); - $this->success []= $elem1176; + $elem1197 = null; + $elem1197 = new \metastore\Partition(); + $xfer += $elem1197->read($input); + $this->success []= $elem1197; } $xfer += $input->readListEnd(); } else { @@ -32481,9 +32537,9 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1177) + foreach ($this->success as $iter1198) { - $xfer += $iter1177->write($output); + $xfer += $iter1198->write($output); } } $output->writeListEnd(); @@ -32726,15 +32782,15 @@ class ThriftHiveMetastore_get_part_specs_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1178 = 0; - $_etype1181 = 0; - $xfer += $input->readListBegin($_etype1181, $_size1178); - for ($_i1182 = 0; $_i1182 < $_size1178; ++$_i1182) + $_size1199 = 0; + $_etype1202 = 0; + $xfer += $input->readListBegin($_etype1202, $_size1199); + for ($_i1203 = 0; $_i1203 < $_size1199; ++$_i1203) { - $elem1183 = null; - $elem1183 = new \metastore\PartitionSpec(); - $xfer += $elem1183->read($input); - $this->success []= $elem1183; + $elem1204 = null; + $elem1204 = new \metastore\PartitionSpec(); + $xfer += $elem1204->read($input); + $this->success []= $elem1204; } $xfer += $input->readListEnd(); } else { @@ -32778,9 +32834,9 @@ class ThriftHiveMetastore_get_part_specs_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1184) + foreach ($this->success as $iter1205) { - $xfer += $iter1184->write($output); + $xfer += $iter1205->write($output); } } $output->writeListEnd(); @@ -33346,14 +33402,14 @@ class ThriftHiveMetastore_get_partitions_by_names_args { case 3: if ($ftype == TType::LST) { $this->names = array(); - $_size1185 = 0; - $_etype1188 = 0; - $xfer += $input->readListBegin($_etype1188, $_size1185); - for ($_i1189 = 0; $_i1189 < $_size1185; ++$_i1189) + $_size1206 = 0; + $_etype1209 = 0; + $xfer += $input->readListBegin($_etype1209, $_size1206); + for ($_i1210 = 0; $_i1210 < $_size1206; ++$_i1210) { - $elem1190 = null; - $xfer += $input->readString($elem1190); - $this->names []= $elem1190; + $elem1211 = null; + $xfer += $input->readString($elem1211); + $this->names []= $elem1211; } $xfer += $input->readListEnd(); } else { @@ -33391,9 +33447,9 @@ class ThriftHiveMetastore_get_partitions_by_names_args { { $output->writeListBegin(TType::STRING, count($this->names)); { - foreach ($this->names as $iter1191) + foreach ($this->names as $iter1212) { - $xfer += $output->writeString($iter1191); + $xfer += $output->writeString($iter1212); } } $output->writeListEnd(); @@ -33482,15 +33538,15 @@ class ThriftHiveMetastore_get_partitions_by_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1192 = 0; - $_etype1195 = 0; - $xfer += $input->readListBegin($_etype1195, $_size1192); - for ($_i1196 = 0; $_i1196 < $_size1192; ++$_i1196) + $_size1213 = 0; + $_etype1216 = 0; + $xfer += $input->readListBegin($_etype1216, $_size1213); + for ($_i1217 = 0; $_i1217 < $_size1213; ++$_i1217) { - $elem1197 = null; - $elem1197 = new \metastore\Partition(); - $xfer += $elem1197->read($input); - $this->success []= $elem1197; + $elem1218 = null; + $elem1218 = new \metastore\Partition(); + $xfer += $elem1218->read($input); + $this->success []= $elem1218; } $xfer += $input->readListEnd(); } else { @@ -33534,9 +33590,9 @@ class ThriftHiveMetastore_get_partitions_by_names_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1198) + foreach ($this->success as $iter1219) { - $xfer += $iter1198->write($output); + $xfer += $iter1219->write($output); } } $output->writeListEnd(); @@ -33875,15 +33931,15 @@ class ThriftHiveMetastore_alter_partitions_args { case 3: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size1199 = 0; - $_etype1202 = 0; - $xfer += $input->readListBegin($_etype1202, $_size1199); - for ($_i1203 = 0; $_i1203 < $_size1199; ++$_i1203) + $_size1220 = 0; + $_etype1223 = 0; + $xfer += $input->readListBegin($_etype1223, $_size1220); + for ($_i1224 = 0; $_i1224 < $_size1220; ++$_i1224) { - $elem1204 = null; - $elem1204 = new \metastore\Partition(); - $xfer += $elem1204->read($input); - $this->new_parts []= $elem1204; + $elem1225 = null; + $elem1225 = new \metastore\Partition(); + $xfer += $elem1225->read($input); + $this->new_parts []= $elem1225; } $xfer += $input->readListEnd(); } else { @@ -33921,9 +33977,9 @@ class ThriftHiveMetastore_alter_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter1205) + foreach ($this->new_parts as $iter1226) { - $xfer += $iter1205->write($output); + $xfer += $iter1226->write($output); } } $output->writeListEnd(); @@ -34138,15 +34194,15 @@ class ThriftHiveMetastore_alter_partitions_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size1206 = 0; - $_etype1209 = 0; - $xfer += $input->readListBegin($_etype1209, $_size1206); - for ($_i1210 = 0; $_i1210 < $_size1206; ++$_i1210) + $_size1227 = 0; + $_etype1230 = 0; + $xfer += $input->readListBegin($_etype1230, $_size1227); + for ($_i1231 = 0; $_i1231 < $_size1227; ++$_i1231) { - $elem1211 = null; - $elem1211 = new \metastore\Partition(); - $xfer += $elem1211->read($input); - $this->new_parts []= $elem1211; + $elem1232 = null; + $elem1232 = new \metastore\Partition(); + $xfer += $elem1232->read($input); + $this->new_parts []= $elem1232; } $xfer += $input->readListEnd(); } else { @@ -34192,9 +34248,9 @@ class ThriftHiveMetastore_alter_partitions_with_environment_context_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter1212) + foreach ($this->new_parts as $iter1233) { - $xfer += $iter1212->write($output); + $xfer += $iter1233->write($output); } } $output->writeListEnd(); @@ -34672,14 +34728,14 @@ class ThriftHiveMetastore_rename_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1213 = 0; - $_etype1216 = 0; - $xfer += $input->readListBegin($_etype1216, $_size1213); - for ($_i1217 = 0; $_i1217 < $_size1213; ++$_i1217) + $_size1234 = 0; + $_etype1237 = 0; + $xfer += $input->readListBegin($_etype1237, $_size1234); + for ($_i1238 = 0; $_i1238 < $_size1234; ++$_i1238) { - $elem1218 = null; - $xfer += $input->readString($elem1218); - $this->part_vals []= $elem1218; + $elem1239 = null; + $xfer += $input->readString($elem1239); + $this->part_vals []= $elem1239; } $xfer += $input->readListEnd(); } else { @@ -34725,9 +34781,9 @@ class ThriftHiveMetastore_rename_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1219) + foreach ($this->part_vals as $iter1240) { - $xfer += $output->writeString($iter1219); + $xfer += $output->writeString($iter1240); } } $output->writeListEnd(); @@ -34912,14 +34968,14 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { case 1: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1220 = 0; - $_etype1223 = 0; - $xfer += $input->readListBegin($_etype1223, $_size1220); - for ($_i1224 = 0; $_i1224 < $_size1220; ++$_i1224) + $_size1241 = 0; + $_etype1244 = 0; + $xfer += $input->readListBegin($_etype1244, $_size1241); + for ($_i1245 = 0; $_i1245 < $_size1241; ++$_i1245) { - $elem1225 = null; - $xfer += $input->readString($elem1225); - $this->part_vals []= $elem1225; + $elem1246 = null; + $xfer += $input->readString($elem1246); + $this->part_vals []= $elem1246; } $xfer += $input->readListEnd(); } else { @@ -34954,9 +35010,9 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1226) + foreach ($this->part_vals as $iter1247) { - $xfer += $output->writeString($iter1226); + $xfer += $output->writeString($iter1247); } } $output->writeListEnd(); @@ -35410,14 +35466,14 @@ class ThriftHiveMetastore_partition_name_to_vals_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1227 = 0; - $_etype1230 = 0; - $xfer += $input->readListBegin($_etype1230, $_size1227); - for ($_i1231 = 0; $_i1231 < $_size1227; ++$_i1231) + $_size1248 = 0; + $_etype1251 = 0; + $xfer += $input->readListBegin($_etype1251, $_size1248); + for ($_i1252 = 0; $_i1252 < $_size1248; ++$_i1252) { - $elem1232 = null; - $xfer += $input->readString($elem1232); - $this->success []= $elem1232; + $elem1253 = null; + $xfer += $input->readString($elem1253); + $this->success []= $elem1253; } $xfer += $input->readListEnd(); } else { @@ -35453,9 +35509,9 @@ class ThriftHiveMetastore_partition_name_to_vals_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1233) + foreach ($this->success as $iter1254) { - $xfer += $output->writeString($iter1233); + $xfer += $output->writeString($iter1254); } } $output->writeListEnd(); @@ -35615,17 +35671,17 @@ class ThriftHiveMetastore_partition_name_to_spec_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size1234 = 0; - $_ktype1235 = 0; - $_vtype1236 = 0; - $xfer += $input->readMapBegin($_ktype1235, $_vtype1236, $_size1234); - for ($_i1238 = 0; $_i1238 < $_size1234; ++$_i1238) + $_size1255 = 0; + $_ktype1256 = 0; + $_vtype1257 = 0; + $xfer += $input->readMapBegin($_ktype1256, $_vtype1257, $_size1255); + for ($_i1259 = 0; $_i1259 < $_size1255; ++$_i1259) { - $key1239 = ''; - $val1240 = ''; - $xfer += $input->readString($key1239); - $xfer += $input->readString($val1240); - $this->success[$key1239] = $val1240; + $key1260 = ''; + $val1261 = ''; + $xfer += $input->readString($key1260); + $xfer += $input->readString($val1261); + $this->success[$key1260] = $val1261; } $xfer += $input->readMapEnd(); } else { @@ -35661,10 +35717,10 @@ class ThriftHiveMetastore_partition_name_to_spec_result { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->success)); { - foreach ($this->success as $kiter1241 => $viter1242) + foreach ($this->success as $kiter1262 => $viter1263) { - $xfer += $output->writeString($kiter1241); - $xfer += $output->writeString($viter1242); + $xfer += $output->writeString($kiter1262); + $xfer += $output->writeString($viter1263); } } $output->writeMapEnd(); @@ -35784,17 +35840,17 @@ class ThriftHiveMetastore_markPartitionForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size1243 = 0; - $_ktype1244 = 0; - $_vtype1245 = 0; - $xfer += $input->readMapBegin($_ktype1244, $_vtype1245, $_size1243); - for ($_i1247 = 0; $_i1247 < $_size1243; ++$_i1247) + $_size1264 = 0; + $_ktype1265 = 0; + $_vtype1266 = 0; + $xfer += $input->readMapBegin($_ktype1265, $_vtype1266, $_size1264); + for ($_i1268 = 0; $_i1268 < $_size1264; ++$_i1268) { - $key1248 = ''; - $val1249 = ''; - $xfer += $input->readString($key1248); - $xfer += $input->readString($val1249); - $this->part_vals[$key1248] = $val1249; + $key1269 = ''; + $val1270 = ''; + $xfer += $input->readString($key1269); + $xfer += $input->readString($val1270); + $this->part_vals[$key1269] = $val1270; } $xfer += $input->readMapEnd(); } else { @@ -35839,10 +35895,10 @@ class ThriftHiveMetastore_markPartitionForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter1250 => $viter1251) + foreach ($this->part_vals as $kiter1271 => $viter1272) { - $xfer += $output->writeString($kiter1250); - $xfer += $output->writeString($viter1251); + $xfer += $output->writeString($kiter1271); + $xfer += $output->writeString($viter1272); } } $output->writeMapEnd(); @@ -36164,17 +36220,17 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size1252 = 0; - $_ktype1253 = 0; - $_vtype1254 = 0; - $xfer += $input->readMapBegin($_ktype1253, $_vtype1254, $_size1252); - for ($_i1256 = 0; $_i1256 < $_size1252; ++$_i1256) + $_size1273 = 0; + $_ktype1274 = 0; + $_vtype1275 = 0; + $xfer += $input->readMapBegin($_ktype1274, $_vtype1275, $_size1273); + for ($_i1277 = 0; $_i1277 < $_size1273; ++$_i1277) { - $key1257 = ''; - $val1258 = ''; - $xfer += $input->readString($key1257); - $xfer += $input->readString($val1258); - $this->part_vals[$key1257] = $val1258; + $key1278 = ''; + $val1279 = ''; + $xfer += $input->readString($key1278); + $xfer += $input->readString($val1279); + $this->part_vals[$key1278] = $val1279; } $xfer += $input->readMapEnd(); } else { @@ -36219,10 +36275,10 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter1259 => $viter1260) + foreach ($this->part_vals as $kiter1280 => $viter1281) { - $xfer += $output->writeString($kiter1259); - $xfer += $output->writeString($viter1260); + $xfer += $output->writeString($kiter1280); + $xfer += $output->writeString($viter1281); } } $output->writeMapEnd(); @@ -41181,14 +41237,14 @@ class ThriftHiveMetastore_get_functions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1261 = 0; - $_etype1264 = 0; - $xfer += $input->readListBegin($_etype1264, $_size1261); - for ($_i1265 = 0; $_i1265 < $_size1261; ++$_i1265) + $_size1282 = 0; + $_etype1285 = 0; + $xfer += $input->readListBegin($_etype1285, $_size1282); + for ($_i1286 = 0; $_i1286 < $_size1282; ++$_i1286) { - $elem1266 = null; - $xfer += $input->readString($elem1266); - $this->success []= $elem1266; + $elem1287 = null; + $xfer += $input->readString($elem1287); + $this->success []= $elem1287; } $xfer += $input->readListEnd(); } else { @@ -41224,9 +41280,9 @@ class ThriftHiveMetastore_get_functions_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1267) + foreach ($this->success as $iter1288) { - $xfer += $output->writeString($iter1267); + $xfer += $output->writeString($iter1288); } } $output->writeListEnd(); @@ -42095,14 +42151,14 @@ class ThriftHiveMetastore_get_role_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1268 = 0; - $_etype1271 = 0; - $xfer += $input->readListBegin($_etype1271, $_size1268); - for ($_i1272 = 0; $_i1272 < $_size1268; ++$_i1272) + $_size1289 = 0; + $_etype1292 = 0; + $xfer += $input->readListBegin($_etype1292, $_size1289); + for ($_i1293 = 0; $_i1293 < $_size1289; ++$_i1293) { - $elem1273 = null; - $xfer += $input->readString($elem1273); - $this->success []= $elem1273; + $elem1294 = null; + $xfer += $input->readString($elem1294); + $this->success []= $elem1294; } $xfer += $input->readListEnd(); } else { @@ -42138,9 +42194,9 @@ class ThriftHiveMetastore_get_role_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1274) + foreach ($this->success as $iter1295) { - $xfer += $output->writeString($iter1274); + $xfer += $output->writeString($iter1295); } } $output->writeListEnd(); @@ -42831,15 +42887,15 @@ class ThriftHiveMetastore_list_roles_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1275 = 0; - $_etype1278 = 0; - $xfer += $input->readListBegin($_etype1278, $_size1275); - for ($_i1279 = 0; $_i1279 < $_size1275; ++$_i1279) + $_size1296 = 0; + $_etype1299 = 0; + $xfer += $input->readListBegin($_etype1299, $_size1296); + for ($_i1300 = 0; $_i1300 < $_size1296; ++$_i1300) { - $elem1280 = null; - $elem1280 = new \metastore\Role(); - $xfer += $elem1280->read($input); - $this->success []= $elem1280; + $elem1301 = null; + $elem1301 = new \metastore\Role(); + $xfer += $elem1301->read($input); + $this->success []= $elem1301; } $xfer += $input->readListEnd(); } else { @@ -42875,9 +42931,9 @@ class ThriftHiveMetastore_list_roles_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1281) + foreach ($this->success as $iter1302) { - $xfer += $iter1281->write($output); + $xfer += $iter1302->write($output); } } $output->writeListEnd(); @@ -43539,14 +43595,14 @@ class ThriftHiveMetastore_get_privilege_set_args { case 3: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1282 = 0; - $_etype1285 = 0; - $xfer += $input->readListBegin($_etype1285, $_size1282); - for ($_i1286 = 0; $_i1286 < $_size1282; ++$_i1286) + $_size1303 = 0; + $_etype1306 = 0; + $xfer += $input->readListBegin($_etype1306, $_size1303); + for ($_i1307 = 0; $_i1307 < $_size1303; ++$_i1307) { - $elem1287 = null; - $xfer += $input->readString($elem1287); - $this->group_names []= $elem1287; + $elem1308 = null; + $xfer += $input->readString($elem1308); + $this->group_names []= $elem1308; } $xfer += $input->readListEnd(); } else { @@ -43587,9 +43643,9 @@ class ThriftHiveMetastore_get_privilege_set_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1288) + foreach ($this->group_names as $iter1309) { - $xfer += $output->writeString($iter1288); + $xfer += $output->writeString($iter1309); } } $output->writeListEnd(); @@ -43897,15 +43953,15 @@ class ThriftHiveMetastore_list_privileges_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1289 = 0; - $_etype1292 = 0; - $xfer += $input->readListBegin($_etype1292, $_size1289); - for ($_i1293 = 0; $_i1293 < $_size1289; ++$_i1293) + $_size1310 = 0; + $_etype1313 = 0; + $xfer += $input->readListBegin($_etype1313, $_size1310); + for ($_i1314 = 0; $_i1314 < $_size1310; ++$_i1314) { - $elem1294 = null; - $elem1294 = new \metastore\HiveObjectPrivilege(); - $xfer += $elem1294->read($input); - $this->success []= $elem1294; + $elem1315 = null; + $elem1315 = new \metastore\HiveObjectPrivilege(); + $xfer += $elem1315->read($input); + $this->success []= $elem1315; } $xfer += $input->readListEnd(); } else { @@ -43941,9 +43997,9 @@ class ThriftHiveMetastore_list_privileges_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1295) + foreach ($this->success as $iter1316) { - $xfer += $iter1295->write($output); + $xfer += $iter1316->write($output); } } $output->writeListEnd(); @@ -44811,14 +44867,14 @@ class ThriftHiveMetastore_set_ugi_args { case 2: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1296 = 0; - $_etype1299 = 0; - $xfer += $input->readListBegin($_etype1299, $_size1296); - for ($_i1300 = 0; $_i1300 < $_size1296; ++$_i1300) + $_size1317 = 0; + $_etype1320 = 0; + $xfer += $input->readListBegin($_etype1320, $_size1317); + for ($_i1321 = 0; $_i1321 < $_size1317; ++$_i1321) { - $elem1301 = null; - $xfer += $input->readString($elem1301); - $this->group_names []= $elem1301; + $elem1322 = null; + $xfer += $input->readString($elem1322); + $this->group_names []= $elem1322; } $xfer += $input->readListEnd(); } else { @@ -44851,9 +44907,9 @@ class ThriftHiveMetastore_set_ugi_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1302) + foreach ($this->group_names as $iter1323) { - $xfer += $output->writeString($iter1302); + $xfer += $output->writeString($iter1323); } } $output->writeListEnd(); @@ -44929,14 +44985,14 @@ class ThriftHiveMetastore_set_ugi_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1303 = 0; - $_etype1306 = 0; - $xfer += $input->readListBegin($_etype1306, $_size1303); - for ($_i1307 = 0; $_i1307 < $_size1303; ++$_i1307) + $_size1324 = 0; + $_etype1327 = 0; + $xfer += $input->readListBegin($_etype1327, $_size1324); + for ($_i1328 = 0; $_i1328 < $_size1324; ++$_i1328) { - $elem1308 = null; - $xfer += $input->readString($elem1308); - $this->success []= $elem1308; + $elem1329 = null; + $xfer += $input->readString($elem1329); + $this->success []= $elem1329; } $xfer += $input->readListEnd(); } else { @@ -44972,9 +45028,9 @@ class ThriftHiveMetastore_set_ugi_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1309) + foreach ($this->success as $iter1330) { - $xfer += $output->writeString($iter1309); + $xfer += $output->writeString($iter1330); } } $output->writeListEnd(); @@ -46091,14 +46147,14 @@ class ThriftHiveMetastore_get_all_token_identifiers_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1310 = 0; - $_etype1313 = 0; - $xfer += $input->readListBegin($_etype1313, $_size1310); - for ($_i1314 = 0; $_i1314 < $_size1310; ++$_i1314) + $_size1331 = 0; + $_etype1334 = 0; + $xfer += $input->readListBegin($_etype1334, $_size1331); + for ($_i1335 = 0; $_i1335 < $_size1331; ++$_i1335) { - $elem1315 = null; - $xfer += $input->readString($elem1315); - $this->success []= $elem1315; + $elem1336 = null; + $xfer += $input->readString($elem1336); + $this->success []= $elem1336; } $xfer += $input->readListEnd(); } else { @@ -46126,9 +46182,9 @@ class ThriftHiveMetastore_get_all_token_identifiers_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1316) + foreach ($this->success as $iter1337) { - $xfer += $output->writeString($iter1316); + $xfer += $output->writeString($iter1337); } } $output->writeListEnd(); @@ -46767,14 +46823,14 @@ class ThriftHiveMetastore_get_master_keys_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1317 = 0; - $_etype1320 = 0; - $xfer += $input->readListBegin($_etype1320, $_size1317); - for ($_i1321 = 0; $_i1321 < $_size1317; ++$_i1321) + $_size1338 = 0; + $_etype1341 = 0; + $xfer += $input->readListBegin($_etype1341, $_size1338); + for ($_i1342 = 0; $_i1342 < $_size1338; ++$_i1342) { - $elem1322 = null; - $xfer += $input->readString($elem1322); - $this->success []= $elem1322; + $elem1343 = null; + $xfer += $input->readString($elem1343); + $this->success []= $elem1343; } $xfer += $input->readListEnd(); } else { @@ -46802,9 +46858,9 @@ class ThriftHiveMetastore_get_master_keys_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1323) + foreach ($this->success as $iter1344) { - $xfer += $output->writeString($iter1323); + $xfer += $output->writeString($iter1344); } } $output->writeListEnd(); @@ -50805,6 +50861,166 @@ class ThriftHiveMetastore_flushCache_result { } +class ThriftHiveMetastore_add_write_notification_log_args { + static $_TSPEC; + + /** + * @var \metastore\WriteNotificationLogRequest + */ + public $rqst = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + -1 => array( + 'var' => 'rqst', + 'type' => TType::STRUCT, + 'class' => '\metastore\WriteNotificationLogRequest', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['rqst'])) { + $this->rqst = $vals['rqst']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_add_write_notification_log_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->rqst = new \metastore\WriteNotificationLogRequest(); + $xfer += $this->rqst->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_add_write_notification_log_args'); + if ($this->rqst !== null) { + if (!is_object($this->rqst)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('rqst', TType::STRUCT, -1); + $xfer += $this->rqst->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_add_write_notification_log_result { + static $_TSPEC; + + /** + * @var \metastore\WriteNotificationLogResponse + */ + public $success = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 0 => array( + 'var' => 'success', + 'type' => TType::STRUCT, + 'class' => '\metastore\WriteNotificationLogResponse', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['success'])) { + $this->success = $vals['success']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_add_write_notification_log_result'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 0: + if ($ftype == TType::STRUCT) { + $this->success = new \metastore\WriteNotificationLogResponse(); + $xfer += $this->success->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_add_write_notification_log_result'); + if ($this->success !== null) { + if (!is_object($this->success)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0); + $xfer += $this->success->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + class ThriftHiveMetastore_cm_recycle_args { static $_TSPEC; @@ -57473,15 +57689,15 @@ class ThriftHiveMetastore_get_schema_all_versions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1324 = 0; - $_etype1327 = 0; - $xfer += $input->readListBegin($_etype1327, $_size1324); - for ($_i1328 = 0; $_i1328 < $_size1324; ++$_i1328) + $_size1345 = 0; + $_etype1348 = 0; + $xfer += $input->readListBegin($_etype1348, $_size1345); + for ($_i1349 = 0; $_i1349 < $_size1345; ++$_i1349) { - $elem1329 = null; - $elem1329 = new \metastore\SchemaVersion(); - $xfer += $elem1329->read($input); - $this->success []= $elem1329; + $elem1350 = null; + $elem1350 = new \metastore\SchemaVersion(); + $xfer += $elem1350->read($input); + $this->success []= $elem1350; } $xfer += $input->readListEnd(); } else { @@ -57525,9 +57741,9 @@ class ThriftHiveMetastore_get_schema_all_versions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1330) + foreach ($this->success as $iter1351) { - $xfer += $iter1330->write($output); + $xfer += $iter1351->write($output); } } $output->writeListEnd(); @@ -59396,15 +59612,15 @@ class ThriftHiveMetastore_get_runtime_stats_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1331 = 0; - $_etype1334 = 0; - $xfer += $input->readListBegin($_etype1334, $_size1331); - for ($_i1335 = 0; $_i1335 < $_size1331; ++$_i1335) + $_size1352 = 0; + $_etype1355 = 0; + $xfer += $input->readListBegin($_etype1355, $_size1352); + for ($_i1356 = 0; $_i1356 < $_size1352; ++$_i1356) { - $elem1336 = null; - $elem1336 = new \metastore\RuntimeStat(); - $xfer += $elem1336->read($input); - $this->success []= $elem1336; + $elem1357 = null; + $elem1357 = new \metastore\RuntimeStat(); + $xfer += $elem1357->read($input); + $this->success []= $elem1357; } $xfer += $input->readListEnd(); } else { @@ -59440,9 +59656,9 @@ class ThriftHiveMetastore_get_runtime_stats_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1337) + foreach ($this->success as $iter1358) { - $xfer += $iter1337->write($output); + $xfer += $iter1358->write($output); } } $output->writeListEnd(); diff --git a/standalone-metastore/src/gen/thrift/gen-php/metastore/Types.php b/standalone-metastore/src/gen/thrift/gen-php/metastore/Types.php index fe545150d5..37bf32ee56 100644 --- a/standalone-metastore/src/gen/thrift/gen-php/metastore/Types.php +++ b/standalone-metastore/src/gen/thrift/gen-php/metastore/Types.php @@ -16455,6 +16455,10 @@ class CommitTxnRequest { * @var string */ public $replPolicy = null; + /** + * @var \metastore\WriteEventInfo[] + */ + public $writeEventInfos = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -16467,6 +16471,15 @@ class CommitTxnRequest { 'var' => 'replPolicy', 'type' => TType::STRING, ), + 3 => array( + 'var' => 'writeEventInfos', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\WriteEventInfo', + ), + ), ); } if (is_array($vals)) { @@ -16476,6 +16489,9 @@ class CommitTxnRequest { if (isset($vals['replPolicy'])) { $this->replPolicy = $vals['replPolicy']; } + if (isset($vals['writeEventInfos'])) { + $this->writeEventInfos = $vals['writeEventInfos']; + } } } @@ -16512,6 +16528,24 @@ class CommitTxnRequest { $xfer += $input->skip($ftype); } break; + case 3: + if ($ftype == TType::LST) { + $this->writeEventInfos = array(); + $_size523 = 0; + $_etype526 = 0; + $xfer += $input->readListBegin($_etype526, $_size523); + for ($_i527 = 0; $_i527 < $_size523; ++$_i527) + { + $elem528 = null; + $elem528 = new \metastore\WriteEventInfo(); + $xfer += $elem528->read($input); + $this->writeEventInfos []= $elem528; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -16535,6 +16569,236 @@ class CommitTxnRequest { $xfer += $output->writeString($this->replPolicy); $xfer += $output->writeFieldEnd(); } + if ($this->writeEventInfos !== null) { + if (!is_array($this->writeEventInfos)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('writeEventInfos', TType::LST, 3); + { + $output->writeListBegin(TType::STRUCT, count($this->writeEventInfos)); + { + foreach ($this->writeEventInfos as $iter529) + { + $xfer += $iter529->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class WriteEventInfo { + static $_TSPEC; + + /** + * @var int + */ + public $writeId = null; + /** + * @var string + */ + public $database = null; + /** + * @var string + */ + public $table = null; + /** + * @var string + */ + public $files = null; + /** + * @var string + */ + public $partition = null; + /** + * @var string + */ + public $tableObj = null; + /** + * @var string + */ + public $partitionObj = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'writeId', + 'type' => TType::I64, + ), + 2 => array( + 'var' => 'database', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'table', + 'type' => TType::STRING, + ), + 4 => array( + 'var' => 'files', + 'type' => TType::STRING, + ), + 5 => array( + 'var' => 'partition', + 'type' => TType::STRING, + ), + 6 => array( + 'var' => 'tableObj', + 'type' => TType::STRING, + ), + 7 => array( + 'var' => 'partitionObj', + 'type' => TType::STRING, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['writeId'])) { + $this->writeId = $vals['writeId']; + } + if (isset($vals['database'])) { + $this->database = $vals['database']; + } + if (isset($vals['table'])) { + $this->table = $vals['table']; + } + if (isset($vals['files'])) { + $this->files = $vals['files']; + } + if (isset($vals['partition'])) { + $this->partition = $vals['partition']; + } + if (isset($vals['tableObj'])) { + $this->tableObj = $vals['tableObj']; + } + if (isset($vals['partitionObj'])) { + $this->partitionObj = $vals['partitionObj']; + } + } + } + + public function getName() { + return 'WriteEventInfo'; + } + + 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::I64) { + $xfer += $input->readI64($this->writeId); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->database); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->table); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->files); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->partition); + } else { + $xfer += $input->skip($ftype); + } + break; + case 6: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->tableObj); + } else { + $xfer += $input->skip($ftype); + } + break; + case 7: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->partitionObj); + } 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('WriteEventInfo'); + if ($this->writeId !== null) { + $xfer += $output->writeFieldBegin('writeId', TType::I64, 1); + $xfer += $output->writeI64($this->writeId); + $xfer += $output->writeFieldEnd(); + } + if ($this->database !== null) { + $xfer += $output->writeFieldBegin('database', TType::STRING, 2); + $xfer += $output->writeString($this->database); + $xfer += $output->writeFieldEnd(); + } + if ($this->table !== null) { + $xfer += $output->writeFieldBegin('table', TType::STRING, 3); + $xfer += $output->writeString($this->table); + $xfer += $output->writeFieldEnd(); + } + if ($this->files !== null) { + $xfer += $output->writeFieldBegin('files', TType::STRING, 4); + $xfer += $output->writeString($this->files); + $xfer += $output->writeFieldEnd(); + } + if ($this->partition !== null) { + $xfer += $output->writeFieldBegin('partition', TType::STRING, 5); + $xfer += $output->writeString($this->partition); + $xfer += $output->writeFieldEnd(); + } + if ($this->tableObj !== null) { + $xfer += $output->writeFieldBegin('tableObj', TType::STRING, 6); + $xfer += $output->writeString($this->tableObj); + $xfer += $output->writeFieldEnd(); + } + if ($this->partitionObj !== null) { + $xfer += $output->writeFieldBegin('partitionObj', TType::STRING, 7); + $xfer += $output->writeString($this->partitionObj); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -16682,14 +16946,14 @@ class ReplTblWriteIdStateRequest { case 6: if ($ftype == TType::LST) { $this->partNames = array(); - $_size523 = 0; - $_etype526 = 0; - $xfer += $input->readListBegin($_etype526, $_size523); - for ($_i527 = 0; $_i527 < $_size523; ++$_i527) + $_size530 = 0; + $_etype533 = 0; + $xfer += $input->readListBegin($_etype533, $_size530); + for ($_i534 = 0; $_i534 < $_size530; ++$_i534) { - $elem528 = null; - $xfer += $input->readString($elem528); - $this->partNames []= $elem528; + $elem535 = null; + $xfer += $input->readString($elem535); + $this->partNames []= $elem535; } $xfer += $input->readListEnd(); } else { @@ -16742,9 +17006,9 @@ class ReplTblWriteIdStateRequest { { $output->writeListBegin(TType::STRING, count($this->partNames)); { - foreach ($this->partNames as $iter529) + foreach ($this->partNames as $iter536) { - $xfer += $output->writeString($iter529); + $xfer += $output->writeString($iter536); } } $output->writeListEnd(); @@ -16819,14 +17083,14 @@ class GetValidWriteIdsRequest { case 1: if ($ftype == TType::LST) { $this->fullTableNames = array(); - $_size530 = 0; - $_etype533 = 0; - $xfer += $input->readListBegin($_etype533, $_size530); - for ($_i534 = 0; $_i534 < $_size530; ++$_i534) + $_size537 = 0; + $_etype540 = 0; + $xfer += $input->readListBegin($_etype540, $_size537); + for ($_i541 = 0; $_i541 < $_size537; ++$_i541) { - $elem535 = null; - $xfer += $input->readString($elem535); - $this->fullTableNames []= $elem535; + $elem542 = null; + $xfer += $input->readString($elem542); + $this->fullTableNames []= $elem542; } $xfer += $input->readListEnd(); } else { @@ -16861,9 +17125,9 @@ class GetValidWriteIdsRequest { { $output->writeListBegin(TType::STRING, count($this->fullTableNames)); { - foreach ($this->fullTableNames as $iter536) + foreach ($this->fullTableNames as $iter543) { - $xfer += $output->writeString($iter536); + $xfer += $output->writeString($iter543); } } $output->writeListEnd(); @@ -16990,14 +17254,14 @@ class TableValidWriteIds { case 3: if ($ftype == TType::LST) { $this->invalidWriteIds = array(); - $_size537 = 0; - $_etype540 = 0; - $xfer += $input->readListBegin($_etype540, $_size537); - for ($_i541 = 0; $_i541 < $_size537; ++$_i541) + $_size544 = 0; + $_etype547 = 0; + $xfer += $input->readListBegin($_etype547, $_size544); + for ($_i548 = 0; $_i548 < $_size544; ++$_i548) { - $elem542 = null; - $xfer += $input->readI64($elem542); - $this->invalidWriteIds []= $elem542; + $elem549 = null; + $xfer += $input->readI64($elem549); + $this->invalidWriteIds []= $elem549; } $xfer += $input->readListEnd(); } else { @@ -17049,9 +17313,9 @@ class TableValidWriteIds { { $output->writeListBegin(TType::I64, count($this->invalidWriteIds)); { - foreach ($this->invalidWriteIds as $iter543) + foreach ($this->invalidWriteIds as $iter550) { - $xfer += $output->writeI64($iter543); + $xfer += $output->writeI64($iter550); } } $output->writeListEnd(); @@ -17126,15 +17390,15 @@ class GetValidWriteIdsResponse { case 1: if ($ftype == TType::LST) { $this->tblValidWriteIds = array(); - $_size544 = 0; - $_etype547 = 0; - $xfer += $input->readListBegin($_etype547, $_size544); - for ($_i548 = 0; $_i548 < $_size544; ++$_i548) + $_size551 = 0; + $_etype554 = 0; + $xfer += $input->readListBegin($_etype554, $_size551); + for ($_i555 = 0; $_i555 < $_size551; ++$_i555) { - $elem549 = null; - $elem549 = new \metastore\TableValidWriteIds(); - $xfer += $elem549->read($input); - $this->tblValidWriteIds []= $elem549; + $elem556 = null; + $elem556 = new \metastore\TableValidWriteIds(); + $xfer += $elem556->read($input); + $this->tblValidWriteIds []= $elem556; } $xfer += $input->readListEnd(); } else { @@ -17162,9 +17426,9 @@ class GetValidWriteIdsResponse { { $output->writeListBegin(TType::STRUCT, count($this->tblValidWriteIds)); { - foreach ($this->tblValidWriteIds as $iter550) + foreach ($this->tblValidWriteIds as $iter557) { - $xfer += $iter550->write($output); + $xfer += $iter557->write($output); } } $output->writeListEnd(); @@ -17291,14 +17555,14 @@ class AllocateTableWriteIdsRequest { case 3: if ($ftype == TType::LST) { $this->txnIds = array(); - $_size551 = 0; - $_etype554 = 0; - $xfer += $input->readListBegin($_etype554, $_size551); - for ($_i555 = 0; $_i555 < $_size551; ++$_i555) + $_size558 = 0; + $_etype561 = 0; + $xfer += $input->readListBegin($_etype561, $_size558); + for ($_i562 = 0; $_i562 < $_size558; ++$_i562) { - $elem556 = null; - $xfer += $input->readI64($elem556); - $this->txnIds []= $elem556; + $elem563 = null; + $xfer += $input->readI64($elem563); + $this->txnIds []= $elem563; } $xfer += $input->readListEnd(); } else { @@ -17315,15 +17579,15 @@ class AllocateTableWriteIdsRequest { case 5: if ($ftype == TType::LST) { $this->srcTxnToWriteIdList = array(); - $_size557 = 0; - $_etype560 = 0; - $xfer += $input->readListBegin($_etype560, $_size557); - for ($_i561 = 0; $_i561 < $_size557; ++$_i561) + $_size564 = 0; + $_etype567 = 0; + $xfer += $input->readListBegin($_etype567, $_size564); + for ($_i568 = 0; $_i568 < $_size564; ++$_i568) { - $elem562 = null; - $elem562 = new \metastore\TxnToWriteId(); - $xfer += $elem562->read($input); - $this->srcTxnToWriteIdList []= $elem562; + $elem569 = null; + $elem569 = new \metastore\TxnToWriteId(); + $xfer += $elem569->read($input); + $this->srcTxnToWriteIdList []= $elem569; } $xfer += $input->readListEnd(); } else { @@ -17361,9 +17625,9 @@ class AllocateTableWriteIdsRequest { { $output->writeListBegin(TType::I64, count($this->txnIds)); { - foreach ($this->txnIds as $iter563) + foreach ($this->txnIds as $iter570) { - $xfer += $output->writeI64($iter563); + $xfer += $output->writeI64($iter570); } } $output->writeListEnd(); @@ -17383,9 +17647,9 @@ class AllocateTableWriteIdsRequest { { $output->writeListBegin(TType::STRUCT, count($this->srcTxnToWriteIdList)); { - foreach ($this->srcTxnToWriteIdList as $iter564) + foreach ($this->srcTxnToWriteIdList as $iter571) { - $xfer += $iter564->write($output); + $xfer += $iter571->write($output); } } $output->writeListEnd(); @@ -17548,16 +17812,16 @@ class AllocateTableWriteIdsResponse { case 1: if ($ftype == TType::LST) { $this->txnToWriteIds = array(); - $_size565 = 0; - $_etype568 = 0; - $xfer += $input->readListBegin($_etype568, $_size565); - for ($_i569 = 0; $_i569 < $_size565; ++$_i569) + $_size572 = 0; + $_etype575 = 0; + $xfer += $input->readListBegin($_etype575, $_size572); + for ($_i576 = 0; $_i576 < $_size572; ++$_i576) { - $elem570 = null; - $elem570 = new \metastore\TxnToWriteId(); - $xfer += $elem570->read($input); - $this->txnToWriteIds []= $elem570; - } + $elem577 = null; + $elem577 = new \metastore\TxnToWriteId(); + $xfer += $elem577->read($input); + $this->txnToWriteIds []= $elem577; + } $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); @@ -17584,9 +17848,9 @@ class AllocateTableWriteIdsResponse { { $output->writeListBegin(TType::STRUCT, count($this->txnToWriteIds)); { - foreach ($this->txnToWriteIds as $iter571) + foreach ($this->txnToWriteIds as $iter578) { - $xfer += $iter571->write($output); + $xfer += $iter578->write($output); } } $output->writeListEnd(); @@ -17931,15 +18195,15 @@ class LockRequest { case 1: if ($ftype == TType::LST) { $this->component = array(); - $_size572 = 0; - $_etype575 = 0; - $xfer += $input->readListBegin($_etype575, $_size572); - for ($_i576 = 0; $_i576 < $_size572; ++$_i576) + $_size579 = 0; + $_etype582 = 0; + $xfer += $input->readListBegin($_etype582, $_size579); + for ($_i583 = 0; $_i583 < $_size579; ++$_i583) { - $elem577 = null; - $elem577 = new \metastore\LockComponent(); - $xfer += $elem577->read($input); - $this->component []= $elem577; + $elem584 = null; + $elem584 = new \metastore\LockComponent(); + $xfer += $elem584->read($input); + $this->component []= $elem584; } $xfer += $input->readListEnd(); } else { @@ -17995,9 +18259,9 @@ class LockRequest { { $output->writeListBegin(TType::STRUCT, count($this->component)); { - foreach ($this->component as $iter578) + foreach ($this->component as $iter585) { - $xfer += $iter578->write($output); + $xfer += $iter585->write($output); } } $output->writeListEnd(); @@ -18940,15 +19204,15 @@ class ShowLocksResponse { case 1: if ($ftype == TType::LST) { $this->locks = array(); - $_size579 = 0; - $_etype582 = 0; - $xfer += $input->readListBegin($_etype582, $_size579); - for ($_i583 = 0; $_i583 < $_size579; ++$_i583) + $_size586 = 0; + $_etype589 = 0; + $xfer += $input->readListBegin($_etype589, $_size586); + for ($_i590 = 0; $_i590 < $_size586; ++$_i590) { - $elem584 = null; - $elem584 = new \metastore\ShowLocksResponseElement(); - $xfer += $elem584->read($input); - $this->locks []= $elem584; + $elem591 = null; + $elem591 = new \metastore\ShowLocksResponseElement(); + $xfer += $elem591->read($input); + $this->locks []= $elem591; } $xfer += $input->readListEnd(); } else { @@ -18976,9 +19240,9 @@ class ShowLocksResponse { { $output->writeListBegin(TType::STRUCT, count($this->locks)); { - foreach ($this->locks as $iter585) + foreach ($this->locks as $iter592) { - $xfer += $iter585->write($output); + $xfer += $iter592->write($output); } } $output->writeListEnd(); @@ -19253,17 +19517,17 @@ class HeartbeatTxnRangeResponse { case 1: if ($ftype == TType::SET) { $this->aborted = array(); - $_size586 = 0; - $_etype589 = 0; - $xfer += $input->readSetBegin($_etype589, $_size586); - for ($_i590 = 0; $_i590 < $_size586; ++$_i590) + $_size593 = 0; + $_etype596 = 0; + $xfer += $input->readSetBegin($_etype596, $_size593); + for ($_i597 = 0; $_i597 < $_size593; ++$_i597) { - $elem591 = null; - $xfer += $input->readI64($elem591); - if (is_scalar($elem591)) { - $this->aborted[$elem591] = true; + $elem598 = null; + $xfer += $input->readI64($elem598); + if (is_scalar($elem598)) { + $this->aborted[$elem598] = true; } else { - $this->aborted []= $elem591; + $this->aborted []= $elem598; } } $xfer += $input->readSetEnd(); @@ -19274,17 +19538,17 @@ class HeartbeatTxnRangeResponse { case 2: if ($ftype == TType::SET) { $this->nosuch = array(); - $_size592 = 0; - $_etype595 = 0; - $xfer += $input->readSetBegin($_etype595, $_size592); - for ($_i596 = 0; $_i596 < $_size592; ++$_i596) + $_size599 = 0; + $_etype602 = 0; + $xfer += $input->readSetBegin($_etype602, $_size599); + for ($_i603 = 0; $_i603 < $_size599; ++$_i603) { - $elem597 = null; - $xfer += $input->readI64($elem597); - if (is_scalar($elem597)) { - $this->nosuch[$elem597] = true; + $elem604 = null; + $xfer += $input->readI64($elem604); + if (is_scalar($elem604)) { + $this->nosuch[$elem604] = true; } else { - $this->nosuch []= $elem597; + $this->nosuch []= $elem604; } } $xfer += $input->readSetEnd(); @@ -19313,12 +19577,12 @@ class HeartbeatTxnRangeResponse { { $output->writeSetBegin(TType::I64, count($this->aborted)); { - foreach ($this->aborted as $iter598 => $iter599) + foreach ($this->aborted as $iter605 => $iter606) { - if (is_scalar($iter599)) { - $xfer += $output->writeI64($iter598); + if (is_scalar($iter606)) { + $xfer += $output->writeI64($iter605); } else { - $xfer += $output->writeI64($iter599); + $xfer += $output->writeI64($iter606); } } } @@ -19334,12 +19598,12 @@ class HeartbeatTxnRangeResponse { { $output->writeSetBegin(TType::I64, count($this->nosuch)); { - foreach ($this->nosuch as $iter600 => $iter601) + foreach ($this->nosuch as $iter607 => $iter608) { - if (is_scalar($iter601)) { - $xfer += $output->writeI64($iter600); + if (is_scalar($iter608)) { + $xfer += $output->writeI64($iter607); } else { - $xfer += $output->writeI64($iter601); + $xfer += $output->writeI64($iter608); } } } @@ -19498,17 +19762,17 @@ class CompactionRequest { case 6: if ($ftype == TType::MAP) { $this->properties = array(); - $_size602 = 0; - $_ktype603 = 0; - $_vtype604 = 0; - $xfer += $input->readMapBegin($_ktype603, $_vtype604, $_size602); - for ($_i606 = 0; $_i606 < $_size602; ++$_i606) + $_size609 = 0; + $_ktype610 = 0; + $_vtype611 = 0; + $xfer += $input->readMapBegin($_ktype610, $_vtype611, $_size609); + for ($_i613 = 0; $_i613 < $_size609; ++$_i613) { - $key607 = ''; - $val608 = ''; - $xfer += $input->readString($key607); - $xfer += $input->readString($val608); - $this->properties[$key607] = $val608; + $key614 = ''; + $val615 = ''; + $xfer += $input->readString($key614); + $xfer += $input->readString($val615); + $this->properties[$key614] = $val615; } $xfer += $input->readMapEnd(); } else { @@ -19561,10 +19825,10 @@ class CompactionRequest { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->properties)); { - foreach ($this->properties as $kiter609 => $viter610) + foreach ($this->properties as $kiter616 => $viter617) { - $xfer += $output->writeString($kiter609); - $xfer += $output->writeString($viter610); + $xfer += $output->writeString($kiter616); + $xfer += $output->writeString($viter617); } } $output->writeMapEnd(); @@ -20151,15 +20415,15 @@ class ShowCompactResponse { case 1: if ($ftype == TType::LST) { $this->compacts = array(); - $_size611 = 0; - $_etype614 = 0; - $xfer += $input->readListBegin($_etype614, $_size611); - for ($_i615 = 0; $_i615 < $_size611; ++$_i615) + $_size618 = 0; + $_etype621 = 0; + $xfer += $input->readListBegin($_etype621, $_size618); + for ($_i622 = 0; $_i622 < $_size618; ++$_i622) { - $elem616 = null; - $elem616 = new \metastore\ShowCompactResponseElement(); - $xfer += $elem616->read($input); - $this->compacts []= $elem616; + $elem623 = null; + $elem623 = new \metastore\ShowCompactResponseElement(); + $xfer += $elem623->read($input); + $this->compacts []= $elem623; } $xfer += $input->readListEnd(); } else { @@ -20187,9 +20451,9 @@ class ShowCompactResponse { { $output->writeListBegin(TType::STRUCT, count($this->compacts)); { - foreach ($this->compacts as $iter617) + foreach ($this->compacts as $iter624) { - $xfer += $iter617->write($output); + $xfer += $iter624->write($output); } } $output->writeListEnd(); @@ -20336,14 +20600,14 @@ class AddDynamicPartitions { case 5: if ($ftype == TType::LST) { $this->partitionnames = array(); - $_size618 = 0; - $_etype621 = 0; - $xfer += $input->readListBegin($_etype621, $_size618); - for ($_i622 = 0; $_i622 < $_size618; ++$_i622) + $_size625 = 0; + $_etype628 = 0; + $xfer += $input->readListBegin($_etype628, $_size625); + for ($_i629 = 0; $_i629 < $_size625; ++$_i629) { - $elem623 = null; - $xfer += $input->readString($elem623); - $this->partitionnames []= $elem623; + $elem630 = null; + $xfer += $input->readString($elem630); + $this->partitionnames []= $elem630; } $xfer += $input->readListEnd(); } else { @@ -20398,9 +20662,9 @@ class AddDynamicPartitions { { $output->writeListBegin(TType::STRING, count($this->partitionnames)); { - foreach ($this->partitionnames as $iter624) + foreach ($this->partitionnames as $iter631) { - $xfer += $output->writeString($iter624); + $xfer += $output->writeString($iter631); } } $output->writeListEnd(); @@ -20724,17 +20988,17 @@ class CreationMetadata { case 4: if ($ftype == TType::SET) { $this->tablesUsed = array(); - $_size625 = 0; - $_etype628 = 0; - $xfer += $input->readSetBegin($_etype628, $_size625); - for ($_i629 = 0; $_i629 < $_size625; ++$_i629) + $_size632 = 0; + $_etype635 = 0; + $xfer += $input->readSetBegin($_etype635, $_size632); + for ($_i636 = 0; $_i636 < $_size632; ++$_i636) { - $elem630 = null; - $xfer += $input->readString($elem630); - if (is_scalar($elem630)) { - $this->tablesUsed[$elem630] = true; + $elem637 = null; + $xfer += $input->readString($elem637); + if (is_scalar($elem637)) { + $this->tablesUsed[$elem637] = true; } else { - $this->tablesUsed []= $elem630; + $this->tablesUsed []= $elem637; } } $xfer += $input->readSetEnd(); @@ -20785,12 +21049,12 @@ class CreationMetadata { { $output->writeSetBegin(TType::STRING, count($this->tablesUsed)); { - foreach ($this->tablesUsed as $iter631 => $iter632) + foreach ($this->tablesUsed as $iter638 => $iter639) { - if (is_scalar($iter632)) { - $xfer += $output->writeString($iter631); + if (is_scalar($iter639)) { + $xfer += $output->writeString($iter638); } else { - $xfer += $output->writeString($iter632); + $xfer += $output->writeString($iter639); } } } @@ -21195,15 +21459,15 @@ class NotificationEventResponse { case 1: if ($ftype == TType::LST) { $this->events = array(); - $_size633 = 0; - $_etype636 = 0; - $xfer += $input->readListBegin($_etype636, $_size633); - for ($_i637 = 0; $_i637 < $_size633; ++$_i637) + $_size640 = 0; + $_etype643 = 0; + $xfer += $input->readListBegin($_etype643, $_size640); + for ($_i644 = 0; $_i644 < $_size640; ++$_i644) { - $elem638 = null; - $elem638 = new \metastore\NotificationEvent(); - $xfer += $elem638->read($input); - $this->events []= $elem638; + $elem645 = null; + $elem645 = new \metastore\NotificationEvent(); + $xfer += $elem645->read($input); + $this->events []= $elem645; } $xfer += $input->readListEnd(); } else { @@ -21231,9 +21495,9 @@ class NotificationEventResponse { { $output->writeListBegin(TType::STRUCT, count($this->events)); { - foreach ($this->events as $iter639) + foreach ($this->events as $iter646) { - $xfer += $iter639->write($output); + $xfer += $iter646->write($output); } } $output->writeListEnd(); @@ -21533,6 +21797,10 @@ class InsertEventRequestData { * @var string[] */ public $filesAddedChecksum = null; + /** + * @var string[] + */ + public $subDirectoryList = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -21557,6 +21825,14 @@ class InsertEventRequestData { 'type' => TType::STRING, ), ), + 4 => array( + 'var' => 'subDirectoryList', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), ); } if (is_array($vals)) { @@ -21569,6 +21845,9 @@ class InsertEventRequestData { if (isset($vals['filesAddedChecksum'])) { $this->filesAddedChecksum = $vals['filesAddedChecksum']; } + if (isset($vals['subDirectoryList'])) { + $this->subDirectoryList = $vals['subDirectoryList']; + } } } @@ -21601,14 +21880,14 @@ class InsertEventRequestData { case 2: if ($ftype == TType::LST) { $this->filesAdded = array(); - $_size640 = 0; - $_etype643 = 0; - $xfer += $input->readListBegin($_etype643, $_size640); - for ($_i644 = 0; $_i644 < $_size640; ++$_i644) + $_size647 = 0; + $_etype650 = 0; + $xfer += $input->readListBegin($_etype650, $_size647); + for ($_i651 = 0; $_i651 < $_size647; ++$_i651) { - $elem645 = null; - $xfer += $input->readString($elem645); - $this->filesAdded []= $elem645; + $elem652 = null; + $xfer += $input->readString($elem652); + $this->filesAdded []= $elem652; } $xfer += $input->readListEnd(); } else { @@ -21618,14 +21897,31 @@ class InsertEventRequestData { case 3: if ($ftype == TType::LST) { $this->filesAddedChecksum = array(); - $_size646 = 0; - $_etype649 = 0; - $xfer += $input->readListBegin($_etype649, $_size646); - for ($_i650 = 0; $_i650 < $_size646; ++$_i650) + $_size653 = 0; + $_etype656 = 0; + $xfer += $input->readListBegin($_etype656, $_size653); + for ($_i657 = 0; $_i657 < $_size653; ++$_i657) + { + $elem658 = null; + $xfer += $input->readString($elem658); + $this->filesAddedChecksum []= $elem658; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::LST) { + $this->subDirectoryList = array(); + $_size659 = 0; + $_etype662 = 0; + $xfer += $input->readListBegin($_etype662, $_size659); + for ($_i663 = 0; $_i663 < $_size659; ++$_i663) { - $elem651 = null; - $xfer += $input->readString($elem651); - $this->filesAddedChecksum []= $elem651; + $elem664 = null; + $xfer += $input->readString($elem664); + $this->subDirectoryList []= $elem664; } $xfer += $input->readListEnd(); } else { @@ -21658,9 +21954,9 @@ class InsertEventRequestData { { $output->writeListBegin(TType::STRING, count($this->filesAdded)); { - foreach ($this->filesAdded as $iter652) + foreach ($this->filesAdded as $iter665) { - $xfer += $output->writeString($iter652); + $xfer += $output->writeString($iter665); } } $output->writeListEnd(); @@ -21675,9 +21971,26 @@ class InsertEventRequestData { { $output->writeListBegin(TType::STRING, count($this->filesAddedChecksum)); { - foreach ($this->filesAddedChecksum as $iter653) + foreach ($this->filesAddedChecksum as $iter666) + { + $xfer += $output->writeString($iter666); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->subDirectoryList !== null) { + if (!is_array($this->subDirectoryList)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('subDirectoryList', TType::LST, 4); + { + $output->writeListBegin(TType::STRING, count($this->subDirectoryList)); + { + foreach ($this->subDirectoryList as $iter667) { - $xfer += $output->writeString($iter653); + $xfer += $output->writeString($iter667); } } $output->writeListEnd(); @@ -21691,33 +22004,320 @@ class InsertEventRequestData { } -class FireEventRequestData { +class FireEventRequestData { + static $_TSPEC; + + /** + * @var \metastore\InsertEventRequestData + */ + public $insertData = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'insertData', + 'type' => TType::STRUCT, + 'class' => '\metastore\InsertEventRequestData', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['insertData'])) { + $this->insertData = $vals['insertData']; + } + } + } + + public function getName() { + return 'FireEventRequestData'; + } + + 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->insertData = new \metastore\InsertEventRequestData(); + $xfer += $this->insertData->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('FireEventRequestData'); + if ($this->insertData !== null) { + if (!is_object($this->insertData)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('insertData', TType::STRUCT, 1); + $xfer += $this->insertData->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class FireEventRequest { + static $_TSPEC; + + /** + * @var bool + */ + public $successful = null; + /** + * @var \metastore\FireEventRequestData + */ + public $data = null; + /** + * @var string + */ + public $dbName = null; + /** + * @var string + */ + public $tableName = null; + /** + * @var string[] + */ + public $partitionVals = null; + /** + * @var string + */ + public $catName = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'successful', + 'type' => TType::BOOL, + ), + 2 => array( + 'var' => 'data', + 'type' => TType::STRUCT, + 'class' => '\metastore\FireEventRequestData', + ), + 3 => array( + 'var' => 'dbName', + 'type' => TType::STRING, + ), + 4 => array( + 'var' => 'tableName', + 'type' => TType::STRING, + ), + 5 => array( + 'var' => 'partitionVals', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + 6 => array( + 'var' => 'catName', + 'type' => TType::STRING, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['successful'])) { + $this->successful = $vals['successful']; + } + if (isset($vals['data'])) { + $this->data = $vals['data']; + } + if (isset($vals['dbName'])) { + $this->dbName = $vals['dbName']; + } + if (isset($vals['tableName'])) { + $this->tableName = $vals['tableName']; + } + if (isset($vals['partitionVals'])) { + $this->partitionVals = $vals['partitionVals']; + } + if (isset($vals['catName'])) { + $this->catName = $vals['catName']; + } + } + } + + public function getName() { + return 'FireEventRequest'; + } + + 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::BOOL) { + $xfer += $input->readBool($this->successful); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRUCT) { + $this->data = new \metastore\FireEventRequestData(); + $xfer += $this->data->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->dbName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->tableName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::LST) { + $this->partitionVals = array(); + $_size668 = 0; + $_etype671 = 0; + $xfer += $input->readListBegin($_etype671, $_size668); + for ($_i672 = 0; $_i672 < $_size668; ++$_i672) + { + $elem673 = null; + $xfer += $input->readString($elem673); + $this->partitionVals []= $elem673; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 6: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->catName); + } 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('FireEventRequest'); + if ($this->successful !== null) { + $xfer += $output->writeFieldBegin('successful', TType::BOOL, 1); + $xfer += $output->writeBool($this->successful); + $xfer += $output->writeFieldEnd(); + } + if ($this->data !== null) { + if (!is_object($this->data)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('data', TType::STRUCT, 2); + $xfer += $this->data->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->dbName !== null) { + $xfer += $output->writeFieldBegin('dbName', TType::STRING, 3); + $xfer += $output->writeString($this->dbName); + $xfer += $output->writeFieldEnd(); + } + if ($this->tableName !== null) { + $xfer += $output->writeFieldBegin('tableName', TType::STRING, 4); + $xfer += $output->writeString($this->tableName); + $xfer += $output->writeFieldEnd(); + } + if ($this->partitionVals !== null) { + if (!is_array($this->partitionVals)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('partitionVals', TType::LST, 5); + { + $output->writeListBegin(TType::STRING, count($this->partitionVals)); + { + foreach ($this->partitionVals as $iter674) + { + $xfer += $output->writeString($iter674); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->catName !== null) { + $xfer += $output->writeFieldBegin('catName', TType::STRING, 6); + $xfer += $output->writeString($this->catName); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class FireEventResponse { static $_TSPEC; - /** - * @var \metastore\InsertEventRequestData - */ - public $insertData = null; - public function __construct($vals=null) { + public function __construct() { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( - 1 => array( - 'var' => 'insertData', - 'type' => TType::STRUCT, - 'class' => '\metastore\InsertEventRequestData', - ), ); } - if (is_array($vals)) { - if (isset($vals['insertData'])) { - $this->insertData = $vals['insertData']; - } - } } public function getName() { - return 'FireEventRequestData'; + return 'FireEventResponse'; } public function read($input) @@ -21735,14 +22335,6 @@ class FireEventRequestData { } switch ($fid) { - case 1: - if ($ftype == TType::STRUCT) { - $this->insertData = new \metastore\InsertEventRequestData(); - $xfer += $this->insertData->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; default: $xfer += $input->skip($ftype); break; @@ -21755,15 +22347,7 @@ class FireEventRequestData { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('FireEventRequestData'); - if ($this->insertData !== null) { - if (!is_object($this->insertData)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('insertData', TType::STRUCT, 1); - $xfer += $this->insertData->write($output); - $xfer += $output->writeFieldEnd(); - } + $xfer += $output->writeStructBegin('FireEventResponse'); $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -21771,55 +22355,59 @@ class FireEventRequestData { } -class FireEventRequest { +class WriteNotificationLogRequest { static $_TSPEC; /** - * @var bool + * @var int */ - public $successful = null; + public $txnId = null; /** - * @var \metastore\FireEventRequestData + * @var int */ - public $data = null; + public $writeId = null; /** * @var string */ - public $dbName = null; + public $db = null; /** * @var string */ - public $tableName = null; + public $table = null; /** - * @var string[] + * @var \metastore\InsertEventRequestData */ - public $partitionVals = null; + public $fileInfo = null; /** - * @var string + * @var string[] */ - public $catName = null; + public $partitionVals = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'successful', - 'type' => TType::BOOL, + 'var' => 'txnId', + 'type' => TType::I64, ), 2 => array( - 'var' => 'data', - 'type' => TType::STRUCT, - 'class' => '\metastore\FireEventRequestData', + 'var' => 'writeId', + 'type' => TType::I64, ), 3 => array( - 'var' => 'dbName', + 'var' => 'db', 'type' => TType::STRING, ), 4 => array( - 'var' => 'tableName', + 'var' => 'table', 'type' => TType::STRING, ), 5 => array( + 'var' => 'fileInfo', + 'type' => TType::STRUCT, + 'class' => '\metastore\InsertEventRequestData', + ), + 6 => array( 'var' => 'partitionVals', 'type' => TType::LST, 'etype' => TType::STRING, @@ -21827,36 +22415,32 @@ class FireEventRequest { 'type' => TType::STRING, ), ), - 6 => array( - 'var' => 'catName', - 'type' => TType::STRING, - ), ); } if (is_array($vals)) { - if (isset($vals['successful'])) { - $this->successful = $vals['successful']; + if (isset($vals['txnId'])) { + $this->txnId = $vals['txnId']; } - if (isset($vals['data'])) { - $this->data = $vals['data']; + if (isset($vals['writeId'])) { + $this->writeId = $vals['writeId']; } - if (isset($vals['dbName'])) { - $this->dbName = $vals['dbName']; + if (isset($vals['db'])) { + $this->db = $vals['db']; } - if (isset($vals['tableName'])) { - $this->tableName = $vals['tableName']; + if (isset($vals['table'])) { + $this->table = $vals['table']; + } + if (isset($vals['fileInfo'])) { + $this->fileInfo = $vals['fileInfo']; } if (isset($vals['partitionVals'])) { $this->partitionVals = $vals['partitionVals']; } - if (isset($vals['catName'])) { - $this->catName = $vals['catName']; - } } } public function getName() { - return 'FireEventRequest'; + return 'WriteNotificationLogRequest'; } public function read($input) @@ -21875,54 +22459,54 @@ class FireEventRequest { switch ($fid) { case 1: - if ($ftype == TType::BOOL) { - $xfer += $input->readBool($this->successful); + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->txnId); } else { $xfer += $input->skip($ftype); } break; case 2: - if ($ftype == TType::STRUCT) { - $this->data = new \metastore\FireEventRequestData(); - $xfer += $this->data->read($input); + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->writeId); } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->dbName); + $xfer += $input->readString($this->db); } else { $xfer += $input->skip($ftype); } break; case 4: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->tableName); + $xfer += $input->readString($this->table); } else { $xfer += $input->skip($ftype); } break; case 5: - if ($ftype == TType::LST) { - $this->partitionVals = array(); - $_size654 = 0; - $_etype657 = 0; - $xfer += $input->readListBegin($_etype657, $_size654); - for ($_i658 = 0; $_i658 < $_size654; ++$_i658) - { - $elem659 = null; - $xfer += $input->readString($elem659); - $this->partitionVals []= $elem659; - } - $xfer += $input->readListEnd(); + if ($ftype == TType::STRUCT) { + $this->fileInfo = new \metastore\InsertEventRequestData(); + $xfer += $this->fileInfo->read($input); } else { $xfer += $input->skip($ftype); } break; case 6: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->catName); + if ($ftype == TType::LST) { + $this->partitionVals = array(); + $_size675 = 0; + $_etype678 = 0; + $xfer += $input->readListBegin($_etype678, $_size675); + for ($_i679 = 0; $_i679 < $_size675; ++$_i679) + { + $elem680 = null; + $xfer += $input->readString($elem680); + $this->partitionVals []= $elem680; + } + $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } @@ -21939,52 +22523,52 @@ class FireEventRequest { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('FireEventRequest'); - if ($this->successful !== null) { - $xfer += $output->writeFieldBegin('successful', TType::BOOL, 1); - $xfer += $output->writeBool($this->successful); + $xfer += $output->writeStructBegin('WriteNotificationLogRequest'); + if ($this->txnId !== null) { + $xfer += $output->writeFieldBegin('txnId', TType::I64, 1); + $xfer += $output->writeI64($this->txnId); $xfer += $output->writeFieldEnd(); } - if ($this->data !== null) { - if (!is_object($this->data)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('data', TType::STRUCT, 2); - $xfer += $this->data->write($output); + if ($this->writeId !== null) { + $xfer += $output->writeFieldBegin('writeId', TType::I64, 2); + $xfer += $output->writeI64($this->writeId); $xfer += $output->writeFieldEnd(); } - if ($this->dbName !== null) { - $xfer += $output->writeFieldBegin('dbName', TType::STRING, 3); - $xfer += $output->writeString($this->dbName); + if ($this->db !== null) { + $xfer += $output->writeFieldBegin('db', TType::STRING, 3); + $xfer += $output->writeString($this->db); $xfer += $output->writeFieldEnd(); } - if ($this->tableName !== null) { - $xfer += $output->writeFieldBegin('tableName', TType::STRING, 4); - $xfer += $output->writeString($this->tableName); + if ($this->table !== null) { + $xfer += $output->writeFieldBegin('table', TType::STRING, 4); + $xfer += $output->writeString($this->table); + $xfer += $output->writeFieldEnd(); + } + if ($this->fileInfo !== null) { + if (!is_object($this->fileInfo)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('fileInfo', TType::STRUCT, 5); + $xfer += $this->fileInfo->write($output); $xfer += $output->writeFieldEnd(); } if ($this->partitionVals !== null) { if (!is_array($this->partitionVals)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('partitionVals', TType::LST, 5); + $xfer += $output->writeFieldBegin('partitionVals', TType::LST, 6); { $output->writeListBegin(TType::STRING, count($this->partitionVals)); { - foreach ($this->partitionVals as $iter660) + foreach ($this->partitionVals as $iter681) { - $xfer += $output->writeString($iter660); + $xfer += $output->writeString($iter681); } } $output->writeListEnd(); } $xfer += $output->writeFieldEnd(); } - if ($this->catName !== null) { - $xfer += $output->writeFieldBegin('catName', TType::STRING, 6); - $xfer += $output->writeString($this->catName); - $xfer += $output->writeFieldEnd(); - } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -21992,7 +22576,7 @@ class FireEventRequest { } -class FireEventResponse { +class WriteNotificationLogResponse { static $_TSPEC; @@ -22004,7 +22588,7 @@ class FireEventResponse { } public function getName() { - return 'FireEventResponse'; + return 'WriteNotificationLogResponse'; } public function read($input) @@ -22034,7 +22618,7 @@ class FireEventResponse { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('FireEventResponse'); + $xfer += $output->writeStructBegin('WriteNotificationLogResponse'); $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -22206,18 +22790,18 @@ class GetFileMetadataByExprResult { case 1: if ($ftype == TType::MAP) { $this->metadata = array(); - $_size661 = 0; - $_ktype662 = 0; - $_vtype663 = 0; - $xfer += $input->readMapBegin($_ktype662, $_vtype663, $_size661); - for ($_i665 = 0; $_i665 < $_size661; ++$_i665) + $_size682 = 0; + $_ktype683 = 0; + $_vtype684 = 0; + $xfer += $input->readMapBegin($_ktype683, $_vtype684, $_size682); + for ($_i686 = 0; $_i686 < $_size682; ++$_i686) { - $key666 = 0; - $val667 = new \metastore\MetadataPpdResult(); - $xfer += $input->readI64($key666); - $val667 = new \metastore\MetadataPpdResult(); - $xfer += $val667->read($input); - $this->metadata[$key666] = $val667; + $key687 = 0; + $val688 = new \metastore\MetadataPpdResult(); + $xfer += $input->readI64($key687); + $val688 = new \metastore\MetadataPpdResult(); + $xfer += $val688->read($input); + $this->metadata[$key687] = $val688; } $xfer += $input->readMapEnd(); } else { @@ -22252,10 +22836,10 @@ class GetFileMetadataByExprResult { { $output->writeMapBegin(TType::I64, TType::STRUCT, count($this->metadata)); { - foreach ($this->metadata as $kiter668 => $viter669) + foreach ($this->metadata as $kiter689 => $viter690) { - $xfer += $output->writeI64($kiter668); - $xfer += $viter669->write($output); + $xfer += $output->writeI64($kiter689); + $xfer += $viter690->write($output); } } $output->writeMapEnd(); @@ -22357,14 +22941,14 @@ class GetFileMetadataByExprRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size670 = 0; - $_etype673 = 0; - $xfer += $input->readListBegin($_etype673, $_size670); - for ($_i674 = 0; $_i674 < $_size670; ++$_i674) + $_size691 = 0; + $_etype694 = 0; + $xfer += $input->readListBegin($_etype694, $_size691); + for ($_i695 = 0; $_i695 < $_size691; ++$_i695) { - $elem675 = null; - $xfer += $input->readI64($elem675); - $this->fileIds []= $elem675; + $elem696 = null; + $xfer += $input->readI64($elem696); + $this->fileIds []= $elem696; } $xfer += $input->readListEnd(); } else { @@ -22413,9 +22997,9 @@ class GetFileMetadataByExprRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter676) + foreach ($this->fileIds as $iter697) { - $xfer += $output->writeI64($iter676); + $xfer += $output->writeI64($iter697); } } $output->writeListEnd(); @@ -22509,17 +23093,17 @@ class GetFileMetadataResult { case 1: if ($ftype == TType::MAP) { $this->metadata = array(); - $_size677 = 0; - $_ktype678 = 0; - $_vtype679 = 0; - $xfer += $input->readMapBegin($_ktype678, $_vtype679, $_size677); - for ($_i681 = 0; $_i681 < $_size677; ++$_i681) + $_size698 = 0; + $_ktype699 = 0; + $_vtype700 = 0; + $xfer += $input->readMapBegin($_ktype699, $_vtype700, $_size698); + for ($_i702 = 0; $_i702 < $_size698; ++$_i702) { - $key682 = 0; - $val683 = ''; - $xfer += $input->readI64($key682); - $xfer += $input->readString($val683); - $this->metadata[$key682] = $val683; + $key703 = 0; + $val704 = ''; + $xfer += $input->readI64($key703); + $xfer += $input->readString($val704); + $this->metadata[$key703] = $val704; } $xfer += $input->readMapEnd(); } else { @@ -22554,10 +23138,10 @@ class GetFileMetadataResult { { $output->writeMapBegin(TType::I64, TType::STRING, count($this->metadata)); { - foreach ($this->metadata as $kiter684 => $viter685) + foreach ($this->metadata as $kiter705 => $viter706) { - $xfer += $output->writeI64($kiter684); - $xfer += $output->writeString($viter685); + $xfer += $output->writeI64($kiter705); + $xfer += $output->writeString($viter706); } } $output->writeMapEnd(); @@ -22626,14 +23210,14 @@ class GetFileMetadataRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size686 = 0; - $_etype689 = 0; - $xfer += $input->readListBegin($_etype689, $_size686); - for ($_i690 = 0; $_i690 < $_size686; ++$_i690) + $_size707 = 0; + $_etype710 = 0; + $xfer += $input->readListBegin($_etype710, $_size707); + for ($_i711 = 0; $_i711 < $_size707; ++$_i711) { - $elem691 = null; - $xfer += $input->readI64($elem691); - $this->fileIds []= $elem691; + $elem712 = null; + $xfer += $input->readI64($elem712); + $this->fileIds []= $elem712; } $xfer += $input->readListEnd(); } else { @@ -22661,9 +23245,9 @@ class GetFileMetadataRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter692) + foreach ($this->fileIds as $iter713) { - $xfer += $output->writeI64($iter692); + $xfer += $output->writeI64($iter713); } } $output->writeListEnd(); @@ -22803,14 +23387,14 @@ class PutFileMetadataRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size693 = 0; - $_etype696 = 0; - $xfer += $input->readListBegin($_etype696, $_size693); - for ($_i697 = 0; $_i697 < $_size693; ++$_i697) + $_size714 = 0; + $_etype717 = 0; + $xfer += $input->readListBegin($_etype717, $_size714); + for ($_i718 = 0; $_i718 < $_size714; ++$_i718) { - $elem698 = null; - $xfer += $input->readI64($elem698); - $this->fileIds []= $elem698; + $elem719 = null; + $xfer += $input->readI64($elem719); + $this->fileIds []= $elem719; } $xfer += $input->readListEnd(); } else { @@ -22820,14 +23404,14 @@ class PutFileMetadataRequest { case 2: if ($ftype == TType::LST) { $this->metadata = array(); - $_size699 = 0; - $_etype702 = 0; - $xfer += $input->readListBegin($_etype702, $_size699); - for ($_i703 = 0; $_i703 < $_size699; ++$_i703) + $_size720 = 0; + $_etype723 = 0; + $xfer += $input->readListBegin($_etype723, $_size720); + for ($_i724 = 0; $_i724 < $_size720; ++$_i724) { - $elem704 = null; - $xfer += $input->readString($elem704); - $this->metadata []= $elem704; + $elem725 = null; + $xfer += $input->readString($elem725); + $this->metadata []= $elem725; } $xfer += $input->readListEnd(); } else { @@ -22862,9 +23446,9 @@ class PutFileMetadataRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter705) + foreach ($this->fileIds as $iter726) { - $xfer += $output->writeI64($iter705); + $xfer += $output->writeI64($iter726); } } $output->writeListEnd(); @@ -22879,9 +23463,9 @@ class PutFileMetadataRequest { { $output->writeListBegin(TType::STRING, count($this->metadata)); { - foreach ($this->metadata as $iter706) + foreach ($this->metadata as $iter727) { - $xfer += $output->writeString($iter706); + $xfer += $output->writeString($iter727); } } $output->writeListEnd(); @@ -23000,14 +23584,14 @@ class ClearFileMetadataRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size707 = 0; - $_etype710 = 0; - $xfer += $input->readListBegin($_etype710, $_size707); - for ($_i711 = 0; $_i711 < $_size707; ++$_i711) + $_size728 = 0; + $_etype731 = 0; + $xfer += $input->readListBegin($_etype731, $_size728); + for ($_i732 = 0; $_i732 < $_size728; ++$_i732) { - $elem712 = null; - $xfer += $input->readI64($elem712); - $this->fileIds []= $elem712; + $elem733 = null; + $xfer += $input->readI64($elem733); + $this->fileIds []= $elem733; } $xfer += $input->readListEnd(); } else { @@ -23035,9 +23619,9 @@ class ClearFileMetadataRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter713) + foreach ($this->fileIds as $iter734) { - $xfer += $output->writeI64($iter713); + $xfer += $output->writeI64($iter734); } } $output->writeListEnd(); @@ -23321,15 +23905,15 @@ class GetAllFunctionsResponse { case 1: if ($ftype == TType::LST) { $this->functions = array(); - $_size714 = 0; - $_etype717 = 0; - $xfer += $input->readListBegin($_etype717, $_size714); - for ($_i718 = 0; $_i718 < $_size714; ++$_i718) + $_size735 = 0; + $_etype738 = 0; + $xfer += $input->readListBegin($_etype738, $_size735); + for ($_i739 = 0; $_i739 < $_size735; ++$_i739) { - $elem719 = null; - $elem719 = new \metastore\Function(); - $xfer += $elem719->read($input); - $this->functions []= $elem719; + $elem740 = null; + $elem740 = new \metastore\Function(); + $xfer += $elem740->read($input); + $this->functions []= $elem740; } $xfer += $input->readListEnd(); } else { @@ -23357,9 +23941,9 @@ class GetAllFunctionsResponse { { $output->writeListBegin(TType::STRUCT, count($this->functions)); { - foreach ($this->functions as $iter720) + foreach ($this->functions as $iter741) { - $xfer += $iter720->write($output); + $xfer += $iter741->write($output); } } $output->writeListEnd(); @@ -23423,14 +24007,14 @@ class ClientCapabilities { case 1: if ($ftype == TType::LST) { $this->values = array(); - $_size721 = 0; - $_etype724 = 0; - $xfer += $input->readListBegin($_etype724, $_size721); - for ($_i725 = 0; $_i725 < $_size721; ++$_i725) + $_size742 = 0; + $_etype745 = 0; + $xfer += $input->readListBegin($_etype745, $_size742); + for ($_i746 = 0; $_i746 < $_size742; ++$_i746) { - $elem726 = null; - $xfer += $input->readI32($elem726); - $this->values []= $elem726; + $elem747 = null; + $xfer += $input->readI32($elem747); + $this->values []= $elem747; } $xfer += $input->readListEnd(); } else { @@ -23458,9 +24042,9 @@ class ClientCapabilities { { $output->writeListBegin(TType::I32, count($this->values)); { - foreach ($this->values as $iter727) + foreach ($this->values as $iter748) { - $xfer += $output->writeI32($iter727); + $xfer += $output->writeI32($iter748); } } $output->writeListEnd(); @@ -23794,14 +24378,14 @@ class GetTablesRequest { case 2: if ($ftype == TType::LST) { $this->tblNames = array(); - $_size728 = 0; - $_etype731 = 0; - $xfer += $input->readListBegin($_etype731, $_size728); - for ($_i732 = 0; $_i732 < $_size728; ++$_i732) + $_size749 = 0; + $_etype752 = 0; + $xfer += $input->readListBegin($_etype752, $_size749); + for ($_i753 = 0; $_i753 < $_size749; ++$_i753) { - $elem733 = null; - $xfer += $input->readString($elem733); - $this->tblNames []= $elem733; + $elem754 = null; + $xfer += $input->readString($elem754); + $this->tblNames []= $elem754; } $xfer += $input->readListEnd(); } else { @@ -23849,9 +24433,9 @@ class GetTablesRequest { { $output->writeListBegin(TType::STRING, count($this->tblNames)); { - foreach ($this->tblNames as $iter734) + foreach ($this->tblNames as $iter755) { - $xfer += $output->writeString($iter734); + $xfer += $output->writeString($iter755); } } $output->writeListEnd(); @@ -23929,15 +24513,15 @@ class GetTablesResult { case 1: if ($ftype == TType::LST) { $this->tables = array(); - $_size735 = 0; - $_etype738 = 0; - $xfer += $input->readListBegin($_etype738, $_size735); - for ($_i739 = 0; $_i739 < $_size735; ++$_i739) + $_size756 = 0; + $_etype759 = 0; + $xfer += $input->readListBegin($_etype759, $_size756); + for ($_i760 = 0; $_i760 < $_size756; ++$_i760) { - $elem740 = null; - $elem740 = new \metastore\Table(); - $xfer += $elem740->read($input); - $this->tables []= $elem740; + $elem761 = null; + $elem761 = new \metastore\Table(); + $xfer += $elem761->read($input); + $this->tables []= $elem761; } $xfer += $input->readListEnd(); } else { @@ -23965,9 +24549,9 @@ class GetTablesResult { { $output->writeListBegin(TType::STRUCT, count($this->tables)); { - foreach ($this->tables as $iter741) + foreach ($this->tables as $iter762) { - $xfer += $iter741->write($output); + $xfer += $iter762->write($output); } } $output->writeListEnd(); @@ -24379,17 +24963,17 @@ class Materialization { case 1: if ($ftype == TType::SET) { $this->tablesUsed = array(); - $_size742 = 0; - $_etype745 = 0; - $xfer += $input->readSetBegin($_etype745, $_size742); - for ($_i746 = 0; $_i746 < $_size742; ++$_i746) + $_size763 = 0; + $_etype766 = 0; + $xfer += $input->readSetBegin($_etype766, $_size763); + for ($_i767 = 0; $_i767 < $_size763; ++$_i767) { - $elem747 = null; - $xfer += $input->readString($elem747); - if (is_scalar($elem747)) { - $this->tablesUsed[$elem747] = true; + $elem768 = null; + $xfer += $input->readString($elem768); + if (is_scalar($elem768)) { + $this->tablesUsed[$elem768] = true; } else { - $this->tablesUsed []= $elem747; + $this->tablesUsed []= $elem768; } } $xfer += $input->readSetEnd(); @@ -24439,12 +25023,12 @@ class Materialization { { $output->writeSetBegin(TType::STRING, count($this->tablesUsed)); { - foreach ($this->tablesUsed as $iter748 => $iter749) + foreach ($this->tablesUsed as $iter769 => $iter770) { - if (is_scalar($iter749)) { - $xfer += $output->writeString($iter748); + if (is_scalar($iter770)) { + $xfer += $output->writeString($iter769); } else { - $xfer += $output->writeString($iter749); + $xfer += $output->writeString($iter770); } } } @@ -25716,15 +26300,15 @@ class WMFullResourcePlan { case 2: if ($ftype == TType::LST) { $this->pools = array(); - $_size750 = 0; - $_etype753 = 0; - $xfer += $input->readListBegin($_etype753, $_size750); - for ($_i754 = 0; $_i754 < $_size750; ++$_i754) + $_size771 = 0; + $_etype774 = 0; + $xfer += $input->readListBegin($_etype774, $_size771); + for ($_i775 = 0; $_i775 < $_size771; ++$_i775) { - $elem755 = null; - $elem755 = new \metastore\WMPool(); - $xfer += $elem755->read($input); - $this->pools []= $elem755; + $elem776 = null; + $elem776 = new \metastore\WMPool(); + $xfer += $elem776->read($input); + $this->pools []= $elem776; } $xfer += $input->readListEnd(); } else { @@ -25734,15 +26318,15 @@ class WMFullResourcePlan { case 3: if ($ftype == TType::LST) { $this->mappings = array(); - $_size756 = 0; - $_etype759 = 0; - $xfer += $input->readListBegin($_etype759, $_size756); - for ($_i760 = 0; $_i760 < $_size756; ++$_i760) + $_size777 = 0; + $_etype780 = 0; + $xfer += $input->readListBegin($_etype780, $_size777); + for ($_i781 = 0; $_i781 < $_size777; ++$_i781) { - $elem761 = null; - $elem761 = new \metastore\WMMapping(); - $xfer += $elem761->read($input); - $this->mappings []= $elem761; + $elem782 = null; + $elem782 = new \metastore\WMMapping(); + $xfer += $elem782->read($input); + $this->mappings []= $elem782; } $xfer += $input->readListEnd(); } else { @@ -25752,15 +26336,15 @@ class WMFullResourcePlan { case 4: if ($ftype == TType::LST) { $this->triggers = array(); - $_size762 = 0; - $_etype765 = 0; - $xfer += $input->readListBegin($_etype765, $_size762); - for ($_i766 = 0; $_i766 < $_size762; ++$_i766) + $_size783 = 0; + $_etype786 = 0; + $xfer += $input->readListBegin($_etype786, $_size783); + for ($_i787 = 0; $_i787 < $_size783; ++$_i787) { - $elem767 = null; - $elem767 = new \metastore\WMTrigger(); - $xfer += $elem767->read($input); - $this->triggers []= $elem767; + $elem788 = null; + $elem788 = new \metastore\WMTrigger(); + $xfer += $elem788->read($input); + $this->triggers []= $elem788; } $xfer += $input->readListEnd(); } else { @@ -25770,15 +26354,15 @@ class WMFullResourcePlan { case 5: if ($ftype == TType::LST) { $this->poolTriggers = array(); - $_size768 = 0; - $_etype771 = 0; - $xfer += $input->readListBegin($_etype771, $_size768); - for ($_i772 = 0; $_i772 < $_size768; ++$_i772) + $_size789 = 0; + $_etype792 = 0; + $xfer += $input->readListBegin($_etype792, $_size789); + for ($_i793 = 0; $_i793 < $_size789; ++$_i793) { - $elem773 = null; - $elem773 = new \metastore\WMPoolTrigger(); - $xfer += $elem773->read($input); - $this->poolTriggers []= $elem773; + $elem794 = null; + $elem794 = new \metastore\WMPoolTrigger(); + $xfer += $elem794->read($input); + $this->poolTriggers []= $elem794; } $xfer += $input->readListEnd(); } else { @@ -25814,9 +26398,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->pools)); { - foreach ($this->pools as $iter774) + foreach ($this->pools as $iter795) { - $xfer += $iter774->write($output); + $xfer += $iter795->write($output); } } $output->writeListEnd(); @@ -25831,9 +26415,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->mappings)); { - foreach ($this->mappings as $iter775) + foreach ($this->mappings as $iter796) { - $xfer += $iter775->write($output); + $xfer += $iter796->write($output); } } $output->writeListEnd(); @@ -25848,9 +26432,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->triggers)); { - foreach ($this->triggers as $iter776) + foreach ($this->triggers as $iter797) { - $xfer += $iter776->write($output); + $xfer += $iter797->write($output); } } $output->writeListEnd(); @@ -25865,9 +26449,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->poolTriggers)); { - foreach ($this->poolTriggers as $iter777) + foreach ($this->poolTriggers as $iter798) { - $xfer += $iter777->write($output); + $xfer += $iter798->write($output); } } $output->writeListEnd(); @@ -26420,15 +27004,15 @@ class WMGetAllResourcePlanResponse { case 1: if ($ftype == TType::LST) { $this->resourcePlans = array(); - $_size778 = 0; - $_etype781 = 0; - $xfer += $input->readListBegin($_etype781, $_size778); - for ($_i782 = 0; $_i782 < $_size778; ++$_i782) + $_size799 = 0; + $_etype802 = 0; + $xfer += $input->readListBegin($_etype802, $_size799); + for ($_i803 = 0; $_i803 < $_size799; ++$_i803) { - $elem783 = null; - $elem783 = new \metastore\WMResourcePlan(); - $xfer += $elem783->read($input); - $this->resourcePlans []= $elem783; + $elem804 = null; + $elem804 = new \metastore\WMResourcePlan(); + $xfer += $elem804->read($input); + $this->resourcePlans []= $elem804; } $xfer += $input->readListEnd(); } else { @@ -26456,9 +27040,9 @@ class WMGetAllResourcePlanResponse { { $output->writeListBegin(TType::STRUCT, count($this->resourcePlans)); { - foreach ($this->resourcePlans as $iter784) + foreach ($this->resourcePlans as $iter805) { - $xfer += $iter784->write($output); + $xfer += $iter805->write($output); } } $output->writeListEnd(); @@ -26864,14 +27448,14 @@ class WMValidateResourcePlanResponse { case 1: if ($ftype == TType::LST) { $this->errors = array(); - $_size785 = 0; - $_etype788 = 0; - $xfer += $input->readListBegin($_etype788, $_size785); - for ($_i789 = 0; $_i789 < $_size785; ++$_i789) + $_size806 = 0; + $_etype809 = 0; + $xfer += $input->readListBegin($_etype809, $_size806); + for ($_i810 = 0; $_i810 < $_size806; ++$_i810) { - $elem790 = null; - $xfer += $input->readString($elem790); - $this->errors []= $elem790; + $elem811 = null; + $xfer += $input->readString($elem811); + $this->errors []= $elem811; } $xfer += $input->readListEnd(); } else { @@ -26881,14 +27465,14 @@ class WMValidateResourcePlanResponse { case 2: if ($ftype == TType::LST) { $this->warnings = array(); - $_size791 = 0; - $_etype794 = 0; - $xfer += $input->readListBegin($_etype794, $_size791); - for ($_i795 = 0; $_i795 < $_size791; ++$_i795) + $_size812 = 0; + $_etype815 = 0; + $xfer += $input->readListBegin($_etype815, $_size812); + for ($_i816 = 0; $_i816 < $_size812; ++$_i816) { - $elem796 = null; - $xfer += $input->readString($elem796); - $this->warnings []= $elem796; + $elem817 = null; + $xfer += $input->readString($elem817); + $this->warnings []= $elem817; } $xfer += $input->readListEnd(); } else { @@ -26916,9 +27500,9 @@ class WMValidateResourcePlanResponse { { $output->writeListBegin(TType::STRING, count($this->errors)); { - foreach ($this->errors as $iter797) + foreach ($this->errors as $iter818) { - $xfer += $output->writeString($iter797); + $xfer += $output->writeString($iter818); } } $output->writeListEnd(); @@ -26933,9 +27517,9 @@ class WMValidateResourcePlanResponse { { $output->writeListBegin(TType::STRING, count($this->warnings)); { - foreach ($this->warnings as $iter798) + foreach ($this->warnings as $iter819) { - $xfer += $output->writeString($iter798); + $xfer += $output->writeString($iter819); } } $output->writeListEnd(); @@ -27608,15 +28192,15 @@ class WMGetTriggersForResourePlanResponse { case 1: if ($ftype == TType::LST) { $this->triggers = array(); - $_size799 = 0; - $_etype802 = 0; - $xfer += $input->readListBegin($_etype802, $_size799); - for ($_i803 = 0; $_i803 < $_size799; ++$_i803) + $_size820 = 0; + $_etype823 = 0; + $xfer += $input->readListBegin($_etype823, $_size820); + for ($_i824 = 0; $_i824 < $_size820; ++$_i824) { - $elem804 = null; - $elem804 = new \metastore\WMTrigger(); - $xfer += $elem804->read($input); - $this->triggers []= $elem804; + $elem825 = null; + $elem825 = new \metastore\WMTrigger(); + $xfer += $elem825->read($input); + $this->triggers []= $elem825; } $xfer += $input->readListEnd(); } else { @@ -27644,9 +28228,9 @@ class WMGetTriggersForResourePlanResponse { { $output->writeListBegin(TType::STRUCT, count($this->triggers)); { - foreach ($this->triggers as $iter805) + foreach ($this->triggers as $iter826) { - $xfer += $iter805->write($output); + $xfer += $iter826->write($output); } } $output->writeListEnd(); @@ -29230,15 +29814,15 @@ class SchemaVersion { case 4: if ($ftype == TType::LST) { $this->cols = array(); - $_size806 = 0; - $_etype809 = 0; - $xfer += $input->readListBegin($_etype809, $_size806); - for ($_i810 = 0; $_i810 < $_size806; ++$_i810) + $_size827 = 0; + $_etype830 = 0; + $xfer += $input->readListBegin($_etype830, $_size827); + for ($_i831 = 0; $_i831 < $_size827; ++$_i831) { - $elem811 = null; - $elem811 = new \metastore\FieldSchema(); - $xfer += $elem811->read($input); - $this->cols []= $elem811; + $elem832 = null; + $elem832 = new \metastore\FieldSchema(); + $xfer += $elem832->read($input); + $this->cols []= $elem832; } $xfer += $input->readListEnd(); } else { @@ -29327,9 +29911,9 @@ class SchemaVersion { { $output->writeListBegin(TType::STRUCT, count($this->cols)); { - foreach ($this->cols as $iter812) + foreach ($this->cols as $iter833) { - $xfer += $iter812->write($output); + $xfer += $iter833->write($output); } } $output->writeListEnd(); @@ -29651,15 +30235,15 @@ class FindSchemasByColsResp { case 1: if ($ftype == TType::LST) { $this->schemaVersions = array(); - $_size813 = 0; - $_etype816 = 0; - $xfer += $input->readListBegin($_etype816, $_size813); - for ($_i817 = 0; $_i817 < $_size813; ++$_i817) + $_size834 = 0; + $_etype837 = 0; + $xfer += $input->readListBegin($_etype837, $_size834); + for ($_i838 = 0; $_i838 < $_size834; ++$_i838) { - $elem818 = null; - $elem818 = new \metastore\SchemaVersionDescriptor(); - $xfer += $elem818->read($input); - $this->schemaVersions []= $elem818; + $elem839 = null; + $elem839 = new \metastore\SchemaVersionDescriptor(); + $xfer += $elem839->read($input); + $this->schemaVersions []= $elem839; } $xfer += $input->readListEnd(); } else { @@ -29687,9 +30271,9 @@ class FindSchemasByColsResp { { $output->writeListBegin(TType::STRUCT, count($this->schemaVersions)); { - foreach ($this->schemaVersions as $iter819) + foreach ($this->schemaVersions as $iter840) { - $xfer += $iter819->write($output); + $xfer += $iter840->write($output); } } $output->writeListEnd(); diff --git a/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote b/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote index 8fa5fe4509..d4b06e8ec7 100755 --- a/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote +++ b/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote @@ -188,6 +188,7 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help': print(' NotificationEventsCountResponse get_notification_events_count(NotificationEventsCountRequest rqst)') print(' FireEventResponse fire_listener_event(FireEventRequest rqst)') print(' void flushCache()') + print(' WriteNotificationLogResponse add_write_notification_log(WriteNotificationLogRequest rqst)') print(' CmRecycleResponse cm_recycle(CmRecycleRequest request)') print(' GetFileMetadataByExprResult get_file_metadata_by_expr(GetFileMetadataByExprRequest req)') print(' GetFileMetadataResult get_file_metadata(GetFileMetadataRequest req)') @@ -1283,6 +1284,12 @@ elif cmd == 'flushCache': sys.exit(1) pp.pprint(client.flushCache()) +elif cmd == 'add_write_notification_log': + if len(args) != 1: + print('add_write_notification_log requires 1 args') + sys.exit(1) + pp.pprint(client.add_write_notification_log(eval(args[0]),)) + elif cmd == 'cm_recycle': if len(args) != 1: print('cm_recycle requires 1 args') diff --git a/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py b/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py index 11881d3336..a2ba16f0fe 100644 --- a/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py +++ b/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py @@ -1302,6 +1302,13 @@ def fire_listener_event(self, rqst): def flushCache(self): pass + def add_write_notification_log(self, rqst): + """ + Parameters: + - rqst + """ + pass + def cm_recycle(self, request): """ Parameters: @@ -7504,6 +7511,37 @@ def recv_flushCache(self): iprot.readMessageEnd() return + def add_write_notification_log(self, rqst): + """ + Parameters: + - rqst + """ + self.send_add_write_notification_log(rqst) + return self.recv_add_write_notification_log() + + def send_add_write_notification_log(self, rqst): + self._oprot.writeMessageBegin('add_write_notification_log', TMessageType.CALL, self._seqid) + args = add_write_notification_log_args() + args.rqst = rqst + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_add_write_notification_log(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = add_write_notification_log_result() + result.read(iprot) + iprot.readMessageEnd() + if result.success is not None: + return result.success + raise TApplicationException(TApplicationException.MISSING_RESULT, "add_write_notification_log failed: unknown result") + def cm_recycle(self, request): """ Parameters: @@ -9127,6 +9165,7 @@ def __init__(self, handler): self._processMap["get_notification_events_count"] = Processor.process_get_notification_events_count self._processMap["fire_listener_event"] = Processor.process_fire_listener_event self._processMap["flushCache"] = Processor.process_flushCache + self._processMap["add_write_notification_log"] = Processor.process_add_write_notification_log self._processMap["cm_recycle"] = Processor.process_cm_recycle self._processMap["get_file_metadata_by_expr"] = Processor.process_get_file_metadata_by_expr self._processMap["get_file_metadata"] = Processor.process_get_file_metadata @@ -13216,6 +13255,25 @@ def process_flushCache(self, seqid, iprot, oprot): oprot.writeMessageEnd() oprot.trans.flush() + def process_add_write_notification_log(self, seqid, iprot, oprot): + args = add_write_notification_log_args() + args.read(iprot) + iprot.readMessageEnd() + result = add_write_notification_log_result() + try: + result.success = self._handler.add_write_notification_log(args.rqst) + msg_type = TMessageType.REPLY + except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + raise + except Exception as ex: + msg_type = TMessageType.EXCEPTION + logging.exception(ex) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("add_write_notification_log", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + def process_cm_recycle(self, seqid, iprot, oprot): args = cm_recycle_args() args.read(iprot) @@ -15756,10 +15814,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype819, _size816) = iprot.readListBegin() - for _i820 in xrange(_size816): - _elem821 = iprot.readString() - self.success.append(_elem821) + (_etype840, _size837) = iprot.readListBegin() + for _i841 in xrange(_size837): + _elem842 = iprot.readString() + self.success.append(_elem842) iprot.readListEnd() else: iprot.skip(ftype) @@ -15782,8 +15840,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 iter822 in self.success: - oprot.writeString(iter822) + for iter843 in self.success: + oprot.writeString(iter843) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -15888,10 +15946,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype826, _size823) = iprot.readListBegin() - for _i827 in xrange(_size823): - _elem828 = iprot.readString() - self.success.append(_elem828) + (_etype847, _size844) = iprot.readListBegin() + for _i848 in xrange(_size844): + _elem849 = iprot.readString() + self.success.append(_elem849) iprot.readListEnd() else: iprot.skip(ftype) @@ -15914,8 +15972,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 iter829 in self.success: - oprot.writeString(iter829) + for iter850 in self.success: + oprot.writeString(iter850) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -16685,12 +16743,12 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype831, _vtype832, _size830 ) = iprot.readMapBegin() - for _i834 in xrange(_size830): - _key835 = iprot.readString() - _val836 = Type() - _val836.read(iprot) - self.success[_key835] = _val836 + (_ktype852, _vtype853, _size851 ) = iprot.readMapBegin() + for _i855 in xrange(_size851): + _key856 = iprot.readString() + _val857 = Type() + _val857.read(iprot) + self.success[_key856] = _val857 iprot.readMapEnd() else: iprot.skip(ftype) @@ -16713,9 +16771,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 kiter837,viter838 in self.success.items(): - oprot.writeString(kiter837) - viter838.write(oprot) + for kiter858,viter859 in self.success.items(): + oprot.writeString(kiter858) + viter859.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -16858,11 +16916,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype842, _size839) = iprot.readListBegin() - for _i843 in xrange(_size839): - _elem844 = FieldSchema() - _elem844.read(iprot) - self.success.append(_elem844) + (_etype863, _size860) = iprot.readListBegin() + for _i864 in xrange(_size860): + _elem865 = FieldSchema() + _elem865.read(iprot) + self.success.append(_elem865) iprot.readListEnd() else: iprot.skip(ftype) @@ -16897,8 +16955,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 iter845 in self.success: - iter845.write(oprot) + for iter866 in self.success: + iter866.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -17065,11 +17123,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype849, _size846) = iprot.readListBegin() - for _i850 in xrange(_size846): - _elem851 = FieldSchema() - _elem851.read(iprot) - self.success.append(_elem851) + (_etype870, _size867) = iprot.readListBegin() + for _i871 in xrange(_size867): + _elem872 = FieldSchema() + _elem872.read(iprot) + self.success.append(_elem872) iprot.readListEnd() else: iprot.skip(ftype) @@ -17104,8 +17162,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 iter852 in self.success: - iter852.write(oprot) + for iter873 in self.success: + iter873.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -17258,11 +17316,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype856, _size853) = iprot.readListBegin() - for _i857 in xrange(_size853): - _elem858 = FieldSchema() - _elem858.read(iprot) - self.success.append(_elem858) + (_etype877, _size874) = iprot.readListBegin() + for _i878 in xrange(_size874): + _elem879 = FieldSchema() + _elem879.read(iprot) + self.success.append(_elem879) iprot.readListEnd() else: iprot.skip(ftype) @@ -17297,8 +17355,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 iter859 in self.success: - iter859.write(oprot) + for iter880 in self.success: + iter880.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -17465,11 +17523,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype863, _size860) = iprot.readListBegin() - for _i864 in xrange(_size860): - _elem865 = FieldSchema() - _elem865.read(iprot) - self.success.append(_elem865) + (_etype884, _size881) = iprot.readListBegin() + for _i885 in xrange(_size881): + _elem886 = FieldSchema() + _elem886.read(iprot) + self.success.append(_elem886) iprot.readListEnd() else: iprot.skip(ftype) @@ -17504,8 +17562,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 iter866 in self.success: - iter866.write(oprot) + for iter887 in self.success: + iter887.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -17958,66 +18016,66 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.primaryKeys = [] - (_etype870, _size867) = iprot.readListBegin() - for _i871 in xrange(_size867): - _elem872 = SQLPrimaryKey() - _elem872.read(iprot) - self.primaryKeys.append(_elem872) + (_etype891, _size888) = iprot.readListBegin() + for _i892 in xrange(_size888): + _elem893 = SQLPrimaryKey() + _elem893.read(iprot) + self.primaryKeys.append(_elem893) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.foreignKeys = [] - (_etype876, _size873) = iprot.readListBegin() - for _i877 in xrange(_size873): - _elem878 = SQLForeignKey() - _elem878.read(iprot) - self.foreignKeys.append(_elem878) + (_etype897, _size894) = iprot.readListBegin() + for _i898 in xrange(_size894): + _elem899 = SQLForeignKey() + _elem899.read(iprot) + self.foreignKeys.append(_elem899) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.uniqueConstraints = [] - (_etype882, _size879) = iprot.readListBegin() - for _i883 in xrange(_size879): - _elem884 = SQLUniqueConstraint() - _elem884.read(iprot) - self.uniqueConstraints.append(_elem884) + (_etype903, _size900) = iprot.readListBegin() + for _i904 in xrange(_size900): + _elem905 = SQLUniqueConstraint() + _elem905.read(iprot) + self.uniqueConstraints.append(_elem905) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.LIST: self.notNullConstraints = [] - (_etype888, _size885) = iprot.readListBegin() - for _i889 in xrange(_size885): - _elem890 = SQLNotNullConstraint() - _elem890.read(iprot) - self.notNullConstraints.append(_elem890) + (_etype909, _size906) = iprot.readListBegin() + for _i910 in xrange(_size906): + _elem911 = SQLNotNullConstraint() + _elem911.read(iprot) + self.notNullConstraints.append(_elem911) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.LIST: self.defaultConstraints = [] - (_etype894, _size891) = iprot.readListBegin() - for _i895 in xrange(_size891): - _elem896 = SQLDefaultConstraint() - _elem896.read(iprot) - self.defaultConstraints.append(_elem896) + (_etype915, _size912) = iprot.readListBegin() + for _i916 in xrange(_size912): + _elem917 = SQLDefaultConstraint() + _elem917.read(iprot) + self.defaultConstraints.append(_elem917) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.LIST: self.checkConstraints = [] - (_etype900, _size897) = iprot.readListBegin() - for _i901 in xrange(_size897): - _elem902 = SQLCheckConstraint() - _elem902.read(iprot) - self.checkConstraints.append(_elem902) + (_etype921, _size918) = iprot.readListBegin() + for _i922 in xrange(_size918): + _elem923 = SQLCheckConstraint() + _elem923.read(iprot) + self.checkConstraints.append(_elem923) iprot.readListEnd() else: iprot.skip(ftype) @@ -18038,43 +18096,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 iter903 in self.primaryKeys: - iter903.write(oprot) + for iter924 in self.primaryKeys: + iter924.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 iter904 in self.foreignKeys: - iter904.write(oprot) + for iter925 in self.foreignKeys: + iter925.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 iter905 in self.uniqueConstraints: - iter905.write(oprot) + for iter926 in self.uniqueConstraints: + iter926.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 iter906 in self.notNullConstraints: - iter906.write(oprot) + for iter927 in self.notNullConstraints: + iter927.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 iter907 in self.defaultConstraints: - iter907.write(oprot) + for iter928 in self.defaultConstraints: + iter928.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 iter908 in self.checkConstraints: - iter908.write(oprot) + for iter929 in self.checkConstraints: + iter929.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -19634,10 +19692,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.partNames = [] - (_etype912, _size909) = iprot.readListBegin() - for _i913 in xrange(_size909): - _elem914 = iprot.readString() - self.partNames.append(_elem914) + (_etype933, _size930) = iprot.readListBegin() + for _i934 in xrange(_size930): + _elem935 = iprot.readString() + self.partNames.append(_elem935) iprot.readListEnd() else: iprot.skip(ftype) @@ -19662,8 +19720,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 iter915 in self.partNames: - oprot.writeString(iter915) + for iter936 in self.partNames: + oprot.writeString(iter936) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -19863,10 +19921,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype919, _size916) = iprot.readListBegin() - for _i920 in xrange(_size916): - _elem921 = iprot.readString() - self.success.append(_elem921) + (_etype940, _size937) = iprot.readListBegin() + for _i941 in xrange(_size937): + _elem942 = iprot.readString() + self.success.append(_elem942) iprot.readListEnd() else: iprot.skip(ftype) @@ -19889,8 +19947,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 iter922 in self.success: - oprot.writeString(iter922) + for iter943 in self.success: + oprot.writeString(iter943) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -20040,10 +20098,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype926, _size923) = iprot.readListBegin() - for _i927 in xrange(_size923): - _elem928 = iprot.readString() - self.success.append(_elem928) + (_etype947, _size944) = iprot.readListBegin() + for _i948 in xrange(_size944): + _elem949 = iprot.readString() + self.success.append(_elem949) iprot.readListEnd() else: iprot.skip(ftype) @@ -20066,8 +20124,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 iter929 in self.success: - oprot.writeString(iter929) + for iter950 in self.success: + oprot.writeString(iter950) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -20191,10 +20249,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype933, _size930) = iprot.readListBegin() - for _i934 in xrange(_size930): - _elem935 = iprot.readString() - self.success.append(_elem935) + (_etype954, _size951) = iprot.readListBegin() + for _i955 in xrange(_size951): + _elem956 = iprot.readString() + self.success.append(_elem956) iprot.readListEnd() else: iprot.skip(ftype) @@ -20217,8 +20275,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 iter936 in self.success: - oprot.writeString(iter936) + for iter957 in self.success: + oprot.writeString(iter957) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -20291,10 +20349,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.tbl_types = [] - (_etype940, _size937) = iprot.readListBegin() - for _i941 in xrange(_size937): - _elem942 = iprot.readString() - self.tbl_types.append(_elem942) + (_etype961, _size958) = iprot.readListBegin() + for _i962 in xrange(_size958): + _elem963 = iprot.readString() + self.tbl_types.append(_elem963) iprot.readListEnd() else: iprot.skip(ftype) @@ -20319,8 +20377,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 iter943 in self.tbl_types: - oprot.writeString(iter943) + for iter964 in self.tbl_types: + oprot.writeString(iter964) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20376,11 +20434,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype947, _size944) = iprot.readListBegin() - for _i948 in xrange(_size944): - _elem949 = TableMeta() - _elem949.read(iprot) - self.success.append(_elem949) + (_etype968, _size965) = iprot.readListBegin() + for _i969 in xrange(_size965): + _elem970 = TableMeta() + _elem970.read(iprot) + self.success.append(_elem970) iprot.readListEnd() else: iprot.skip(ftype) @@ -20403,8 +20461,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 iter950 in self.success: - iter950.write(oprot) + for iter971 in self.success: + iter971.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -20528,10 +20586,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype954, _size951) = iprot.readListBegin() - for _i955 in xrange(_size951): - _elem956 = iprot.readString() - self.success.append(_elem956) + (_etype975, _size972) = iprot.readListBegin() + for _i976 in xrange(_size972): + _elem977 = iprot.readString() + self.success.append(_elem977) iprot.readListEnd() else: iprot.skip(ftype) @@ -20554,8 +20612,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 iter957 in self.success: - oprot.writeString(iter957) + for iter978 in self.success: + oprot.writeString(iter978) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -20791,10 +20849,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.tbl_names = [] - (_etype961, _size958) = iprot.readListBegin() - for _i962 in xrange(_size958): - _elem963 = iprot.readString() - self.tbl_names.append(_elem963) + (_etype982, _size979) = iprot.readListBegin() + for _i983 in xrange(_size979): + _elem984 = iprot.readString() + self.tbl_names.append(_elem984) iprot.readListEnd() else: iprot.skip(ftype) @@ -20815,8 +20873,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 iter964 in self.tbl_names: - oprot.writeString(iter964) + for iter985 in self.tbl_names: + oprot.writeString(iter985) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20868,11 +20926,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype968, _size965) = iprot.readListBegin() - for _i969 in xrange(_size965): - _elem970 = Table() - _elem970.read(iprot) - self.success.append(_elem970) + (_etype989, _size986) = iprot.readListBegin() + for _i990 in xrange(_size986): + _elem991 = Table() + _elem991.read(iprot) + self.success.append(_elem991) iprot.readListEnd() else: iprot.skip(ftype) @@ -20889,8 +20947,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 iter971 in self.success: - iter971.write(oprot) + for iter992 in self.success: + iter992.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21282,10 +21340,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.tbl_names = [] - (_etype975, _size972) = iprot.readListBegin() - for _i976 in xrange(_size972): - _elem977 = iprot.readString() - self.tbl_names.append(_elem977) + (_etype996, _size993) = iprot.readListBegin() + for _i997 in xrange(_size993): + _elem998 = iprot.readString() + self.tbl_names.append(_elem998) iprot.readListEnd() else: iprot.skip(ftype) @@ -21306,8 +21364,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 iter978 in self.tbl_names: - oprot.writeString(iter978) + for iter999 in self.tbl_names: + oprot.writeString(iter999) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21368,12 +21426,12 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype980, _vtype981, _size979 ) = iprot.readMapBegin() - for _i983 in xrange(_size979): - _key984 = iprot.readString() - _val985 = Materialization() - _val985.read(iprot) - self.success[_key984] = _val985 + (_ktype1001, _vtype1002, _size1000 ) = iprot.readMapBegin() + for _i1004 in xrange(_size1000): + _key1005 = iprot.readString() + _val1006 = Materialization() + _val1006.read(iprot) + self.success[_key1005] = _val1006 iprot.readMapEnd() else: iprot.skip(ftype) @@ -21408,9 +21466,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 kiter986,viter987 in self.success.items(): - oprot.writeString(kiter986) - viter987.write(oprot) + for kiter1007,viter1008 in self.success.items(): + oprot.writeString(kiter1007) + viter1008.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21775,10 +21833,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype991, _size988) = iprot.readListBegin() - for _i992 in xrange(_size988): - _elem993 = iprot.readString() - self.success.append(_elem993) + (_etype1012, _size1009) = iprot.readListBegin() + for _i1013 in xrange(_size1009): + _elem1014 = iprot.readString() + self.success.append(_elem1014) iprot.readListEnd() else: iprot.skip(ftype) @@ -21813,8 +21871,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 iter994 in self.success: - oprot.writeString(iter994) + for iter1015 in self.success: + oprot.writeString(iter1015) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -22784,11 +22842,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.new_parts = [] - (_etype998, _size995) = iprot.readListBegin() - for _i999 in xrange(_size995): - _elem1000 = Partition() - _elem1000.read(iprot) - self.new_parts.append(_elem1000) + (_etype1019, _size1016) = iprot.readListBegin() + for _i1020 in xrange(_size1016): + _elem1021 = Partition() + _elem1021.read(iprot) + self.new_parts.append(_elem1021) iprot.readListEnd() else: iprot.skip(ftype) @@ -22805,8 +22863,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 iter1001 in self.new_parts: - iter1001.write(oprot) + for iter1022 in self.new_parts: + iter1022.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -22964,11 +23022,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.new_parts = [] - (_etype1005, _size1002) = iprot.readListBegin() - for _i1006 in xrange(_size1002): - _elem1007 = PartitionSpec() - _elem1007.read(iprot) - self.new_parts.append(_elem1007) + (_etype1026, _size1023) = iprot.readListBegin() + for _i1027 in xrange(_size1023): + _elem1028 = PartitionSpec() + _elem1028.read(iprot) + self.new_parts.append(_elem1028) iprot.readListEnd() else: iprot.skip(ftype) @@ -22985,8 +23043,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 iter1008 in self.new_parts: - iter1008.write(oprot) + for iter1029 in self.new_parts: + iter1029.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -23160,10 +23218,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1012, _size1009) = iprot.readListBegin() - for _i1013 in xrange(_size1009): - _elem1014 = iprot.readString() - self.part_vals.append(_elem1014) + (_etype1033, _size1030) = iprot.readListBegin() + for _i1034 in xrange(_size1030): + _elem1035 = iprot.readString() + self.part_vals.append(_elem1035) iprot.readListEnd() else: iprot.skip(ftype) @@ -23188,8 +23246,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 iter1015 in self.part_vals: - oprot.writeString(iter1015) + for iter1036 in self.part_vals: + oprot.writeString(iter1036) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -23542,10 +23600,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1019, _size1016) = iprot.readListBegin() - for _i1020 in xrange(_size1016): - _elem1021 = iprot.readString() - self.part_vals.append(_elem1021) + (_etype1040, _size1037) = iprot.readListBegin() + for _i1041 in xrange(_size1037): + _elem1042 = iprot.readString() + self.part_vals.append(_elem1042) iprot.readListEnd() else: iprot.skip(ftype) @@ -23576,8 +23634,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 iter1022 in self.part_vals: - oprot.writeString(iter1022) + for iter1043 in self.part_vals: + oprot.writeString(iter1043) oprot.writeListEnd() oprot.writeFieldEnd() if self.environment_context is not None: @@ -24172,10 +24230,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1026, _size1023) = iprot.readListBegin() - for _i1027 in xrange(_size1023): - _elem1028 = iprot.readString() - self.part_vals.append(_elem1028) + (_etype1047, _size1044) = iprot.readListBegin() + for _i1048 in xrange(_size1044): + _elem1049 = iprot.readString() + self.part_vals.append(_elem1049) iprot.readListEnd() else: iprot.skip(ftype) @@ -24205,8 +24263,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 iter1029 in self.part_vals: - oprot.writeString(iter1029) + for iter1050 in self.part_vals: + oprot.writeString(iter1050) oprot.writeListEnd() oprot.writeFieldEnd() if self.deleteData is not None: @@ -24379,10 +24437,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1033, _size1030) = iprot.readListBegin() - for _i1034 in xrange(_size1030): - _elem1035 = iprot.readString() - self.part_vals.append(_elem1035) + (_etype1054, _size1051) = iprot.readListBegin() + for _i1055 in xrange(_size1051): + _elem1056 = iprot.readString() + self.part_vals.append(_elem1056) iprot.readListEnd() else: iprot.skip(ftype) @@ -24418,8 +24476,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 iter1036 in self.part_vals: - oprot.writeString(iter1036) + for iter1057 in self.part_vals: + oprot.writeString(iter1057) oprot.writeListEnd() oprot.writeFieldEnd() if self.deleteData is not None: @@ -25156,10 +25214,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1040, _size1037) = iprot.readListBegin() - for _i1041 in xrange(_size1037): - _elem1042 = iprot.readString() - self.part_vals.append(_elem1042) + (_etype1061, _size1058) = iprot.readListBegin() + for _i1062 in xrange(_size1058): + _elem1063 = iprot.readString() + self.part_vals.append(_elem1063) iprot.readListEnd() else: iprot.skip(ftype) @@ -25184,8 +25242,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 iter1043 in self.part_vals: - oprot.writeString(iter1043) + for iter1064 in self.part_vals: + oprot.writeString(iter1064) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -25344,11 +25402,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partitionSpecs = {} - (_ktype1045, _vtype1046, _size1044 ) = iprot.readMapBegin() - for _i1048 in xrange(_size1044): - _key1049 = iprot.readString() - _val1050 = iprot.readString() - self.partitionSpecs[_key1049] = _val1050 + (_ktype1066, _vtype1067, _size1065 ) = iprot.readMapBegin() + for _i1069 in xrange(_size1065): + _key1070 = iprot.readString() + _val1071 = iprot.readString() + self.partitionSpecs[_key1070] = _val1071 iprot.readMapEnd() else: iprot.skip(ftype) @@ -25385,9 +25443,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 kiter1051,viter1052 in self.partitionSpecs.items(): - oprot.writeString(kiter1051) - oprot.writeString(viter1052) + for kiter1072,viter1073 in self.partitionSpecs.items(): + oprot.writeString(kiter1072) + oprot.writeString(viter1073) oprot.writeMapEnd() oprot.writeFieldEnd() if self.source_db is not None: @@ -25592,11 +25650,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partitionSpecs = {} - (_ktype1054, _vtype1055, _size1053 ) = iprot.readMapBegin() - for _i1057 in xrange(_size1053): - _key1058 = iprot.readString() - _val1059 = iprot.readString() - self.partitionSpecs[_key1058] = _val1059 + (_ktype1075, _vtype1076, _size1074 ) = iprot.readMapBegin() + for _i1078 in xrange(_size1074): + _key1079 = iprot.readString() + _val1080 = iprot.readString() + self.partitionSpecs[_key1079] = _val1080 iprot.readMapEnd() else: iprot.skip(ftype) @@ -25633,9 +25691,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 kiter1060,viter1061 in self.partitionSpecs.items(): - oprot.writeString(kiter1060) - oprot.writeString(viter1061) + for kiter1081,viter1082 in self.partitionSpecs.items(): + oprot.writeString(kiter1081) + oprot.writeString(viter1082) oprot.writeMapEnd() oprot.writeFieldEnd() if self.source_db is not None: @@ -25718,11 +25776,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1065, _size1062) = iprot.readListBegin() - for _i1066 in xrange(_size1062): - _elem1067 = Partition() - _elem1067.read(iprot) - self.success.append(_elem1067) + (_etype1086, _size1083) = iprot.readListBegin() + for _i1087 in xrange(_size1083): + _elem1088 = Partition() + _elem1088.read(iprot) + self.success.append(_elem1088) iprot.readListEnd() else: iprot.skip(ftype) @@ -25763,8 +25821,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 iter1068 in self.success: - iter1068.write(oprot) + for iter1089 in self.success: + iter1089.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -25858,10 +25916,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1072, _size1069) = iprot.readListBegin() - for _i1073 in xrange(_size1069): - _elem1074 = iprot.readString() - self.part_vals.append(_elem1074) + (_etype1093, _size1090) = iprot.readListBegin() + for _i1094 in xrange(_size1090): + _elem1095 = iprot.readString() + self.part_vals.append(_elem1095) iprot.readListEnd() else: iprot.skip(ftype) @@ -25873,10 +25931,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype1078, _size1075) = iprot.readListBegin() - for _i1079 in xrange(_size1075): - _elem1080 = iprot.readString() - self.group_names.append(_elem1080) + (_etype1099, _size1096) = iprot.readListBegin() + for _i1100 in xrange(_size1096): + _elem1101 = iprot.readString() + self.group_names.append(_elem1101) iprot.readListEnd() else: iprot.skip(ftype) @@ -25901,8 +25959,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 iter1081 in self.part_vals: - oprot.writeString(iter1081) + for iter1102 in self.part_vals: + oprot.writeString(iter1102) oprot.writeListEnd() oprot.writeFieldEnd() if self.user_name is not None: @@ -25912,8 +25970,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 iter1082 in self.group_names: - oprot.writeString(iter1082) + for iter1103 in self.group_names: + oprot.writeString(iter1103) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -26342,11 +26400,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1086, _size1083) = iprot.readListBegin() - for _i1087 in xrange(_size1083): - _elem1088 = Partition() - _elem1088.read(iprot) - self.success.append(_elem1088) + (_etype1107, _size1104) = iprot.readListBegin() + for _i1108 in xrange(_size1104): + _elem1109 = Partition() + _elem1109.read(iprot) + self.success.append(_elem1109) iprot.readListEnd() else: iprot.skip(ftype) @@ -26375,8 +26433,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 iter1089 in self.success: - iter1089.write(oprot) + for iter1110 in self.success: + iter1110.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -26470,10 +26528,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype1093, _size1090) = iprot.readListBegin() - for _i1094 in xrange(_size1090): - _elem1095 = iprot.readString() - self.group_names.append(_elem1095) + (_etype1114, _size1111) = iprot.readListBegin() + for _i1115 in xrange(_size1111): + _elem1116 = iprot.readString() + self.group_names.append(_elem1116) iprot.readListEnd() else: iprot.skip(ftype) @@ -26506,8 +26564,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 iter1096 in self.group_names: - oprot.writeString(iter1096) + for iter1117 in self.group_names: + oprot.writeString(iter1117) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -26568,11 +26626,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1100, _size1097) = iprot.readListBegin() - for _i1101 in xrange(_size1097): - _elem1102 = Partition() - _elem1102.read(iprot) - self.success.append(_elem1102) + (_etype1121, _size1118) = iprot.readListBegin() + for _i1122 in xrange(_size1118): + _elem1123 = Partition() + _elem1123.read(iprot) + self.success.append(_elem1123) iprot.readListEnd() else: iprot.skip(ftype) @@ -26601,8 +26659,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 iter1103 in self.success: - iter1103.write(oprot) + for iter1124 in self.success: + iter1124.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -26760,11 +26818,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1107, _size1104) = iprot.readListBegin() - for _i1108 in xrange(_size1104): - _elem1109 = PartitionSpec() - _elem1109.read(iprot) - self.success.append(_elem1109) + (_etype1128, _size1125) = iprot.readListBegin() + for _i1129 in xrange(_size1125): + _elem1130 = PartitionSpec() + _elem1130.read(iprot) + self.success.append(_elem1130) iprot.readListEnd() else: iprot.skip(ftype) @@ -26793,8 +26851,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 iter1110 in self.success: - iter1110.write(oprot) + for iter1131 in self.success: + iter1131.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -26952,10 +27010,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1114, _size1111) = iprot.readListBegin() - for _i1115 in xrange(_size1111): - _elem1116 = iprot.readString() - self.success.append(_elem1116) + (_etype1135, _size1132) = iprot.readListBegin() + for _i1136 in xrange(_size1132): + _elem1137 = iprot.readString() + self.success.append(_elem1137) iprot.readListEnd() else: iprot.skip(ftype) @@ -26984,8 +27042,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 iter1117 in self.success: - oprot.writeString(iter1117) + for iter1138 in self.success: + oprot.writeString(iter1138) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -27225,10 +27283,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1121, _size1118) = iprot.readListBegin() - for _i1122 in xrange(_size1118): - _elem1123 = iprot.readString() - self.part_vals.append(_elem1123) + (_etype1142, _size1139) = iprot.readListBegin() + for _i1143 in xrange(_size1139): + _elem1144 = iprot.readString() + self.part_vals.append(_elem1144) iprot.readListEnd() else: iprot.skip(ftype) @@ -27258,8 +27316,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 iter1124 in self.part_vals: - oprot.writeString(iter1124) + for iter1145 in self.part_vals: + oprot.writeString(iter1145) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -27323,11 +27381,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1128, _size1125) = iprot.readListBegin() - for _i1129 in xrange(_size1125): - _elem1130 = Partition() - _elem1130.read(iprot) - self.success.append(_elem1130) + (_etype1149, _size1146) = iprot.readListBegin() + for _i1150 in xrange(_size1146): + _elem1151 = Partition() + _elem1151.read(iprot) + self.success.append(_elem1151) iprot.readListEnd() else: iprot.skip(ftype) @@ -27356,8 +27414,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 iter1131 in self.success: - iter1131.write(oprot) + for iter1152 in self.success: + iter1152.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -27444,10 +27502,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1135, _size1132) = iprot.readListBegin() - for _i1136 in xrange(_size1132): - _elem1137 = iprot.readString() - self.part_vals.append(_elem1137) + (_etype1156, _size1153) = iprot.readListBegin() + for _i1157 in xrange(_size1153): + _elem1158 = iprot.readString() + self.part_vals.append(_elem1158) iprot.readListEnd() else: iprot.skip(ftype) @@ -27464,10 +27522,10 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.group_names = [] - (_etype1141, _size1138) = iprot.readListBegin() - for _i1142 in xrange(_size1138): - _elem1143 = iprot.readString() - self.group_names.append(_elem1143) + (_etype1162, _size1159) = iprot.readListBegin() + for _i1163 in xrange(_size1159): + _elem1164 = iprot.readString() + self.group_names.append(_elem1164) iprot.readListEnd() else: iprot.skip(ftype) @@ -27492,8 +27550,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 iter1144 in self.part_vals: - oprot.writeString(iter1144) + for iter1165 in self.part_vals: + oprot.writeString(iter1165) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -27507,8 +27565,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 iter1145 in self.group_names: - oprot.writeString(iter1145) + for iter1166 in self.group_names: + oprot.writeString(iter1166) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -27570,11 +27628,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1149, _size1146) = iprot.readListBegin() - for _i1150 in xrange(_size1146): - _elem1151 = Partition() - _elem1151.read(iprot) - self.success.append(_elem1151) + (_etype1170, _size1167) = iprot.readListBegin() + for _i1171 in xrange(_size1167): + _elem1172 = Partition() + _elem1172.read(iprot) + self.success.append(_elem1172) iprot.readListEnd() else: iprot.skip(ftype) @@ -27603,8 +27661,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 iter1152 in self.success: - iter1152.write(oprot) + for iter1173 in self.success: + iter1173.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -27685,10 +27743,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1156, _size1153) = iprot.readListBegin() - for _i1157 in xrange(_size1153): - _elem1158 = iprot.readString() - self.part_vals.append(_elem1158) + (_etype1177, _size1174) = iprot.readListBegin() + for _i1178 in xrange(_size1174): + _elem1179 = iprot.readString() + self.part_vals.append(_elem1179) iprot.readListEnd() else: iprot.skip(ftype) @@ -27718,8 +27776,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 iter1159 in self.part_vals: - oprot.writeString(iter1159) + for iter1180 in self.part_vals: + oprot.writeString(iter1180) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -27783,10 +27841,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1163, _size1160) = iprot.readListBegin() - for _i1164 in xrange(_size1160): - _elem1165 = iprot.readString() - self.success.append(_elem1165) + (_etype1184, _size1181) = iprot.readListBegin() + for _i1185 in xrange(_size1181): + _elem1186 = iprot.readString() + self.success.append(_elem1186) iprot.readListEnd() else: iprot.skip(ftype) @@ -27815,8 +27873,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 iter1166 in self.success: - oprot.writeString(iter1166) + for iter1187 in self.success: + oprot.writeString(iter1187) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -27987,11 +28045,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1170, _size1167) = iprot.readListBegin() - for _i1171 in xrange(_size1167): - _elem1172 = Partition() - _elem1172.read(iprot) - self.success.append(_elem1172) + (_etype1191, _size1188) = iprot.readListBegin() + for _i1192 in xrange(_size1188): + _elem1193 = Partition() + _elem1193.read(iprot) + self.success.append(_elem1193) iprot.readListEnd() else: iprot.skip(ftype) @@ -28020,8 +28078,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 iter1173 in self.success: - iter1173.write(oprot) + for iter1194 in self.success: + iter1194.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -28192,11 +28250,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1177, _size1174) = iprot.readListBegin() - for _i1178 in xrange(_size1174): - _elem1179 = PartitionSpec() - _elem1179.read(iprot) - self.success.append(_elem1179) + (_etype1198, _size1195) = iprot.readListBegin() + for _i1199 in xrange(_size1195): + _elem1200 = PartitionSpec() + _elem1200.read(iprot) + self.success.append(_elem1200) iprot.readListEnd() else: iprot.skip(ftype) @@ -28225,8 +28283,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 iter1180 in self.success: - iter1180.write(oprot) + for iter1201 in self.success: + iter1201.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -28646,10 +28704,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.names = [] - (_etype1184, _size1181) = iprot.readListBegin() - for _i1185 in xrange(_size1181): - _elem1186 = iprot.readString() - self.names.append(_elem1186) + (_etype1205, _size1202) = iprot.readListBegin() + for _i1206 in xrange(_size1202): + _elem1207 = iprot.readString() + self.names.append(_elem1207) iprot.readListEnd() else: iprot.skip(ftype) @@ -28674,8 +28732,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 iter1187 in self.names: - oprot.writeString(iter1187) + for iter1208 in self.names: + oprot.writeString(iter1208) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -28734,11 +28792,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1191, _size1188) = iprot.readListBegin() - for _i1192 in xrange(_size1188): - _elem1193 = Partition() - _elem1193.read(iprot) - self.success.append(_elem1193) + (_etype1212, _size1209) = iprot.readListBegin() + for _i1213 in xrange(_size1209): + _elem1214 = Partition() + _elem1214.read(iprot) + self.success.append(_elem1214) iprot.readListEnd() else: iprot.skip(ftype) @@ -28767,8 +28825,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 iter1194 in self.success: - iter1194.write(oprot) + for iter1215 in self.success: + iter1215.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -29018,11 +29076,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.new_parts = [] - (_etype1198, _size1195) = iprot.readListBegin() - for _i1199 in xrange(_size1195): - _elem1200 = Partition() - _elem1200.read(iprot) - self.new_parts.append(_elem1200) + (_etype1219, _size1216) = iprot.readListBegin() + for _i1220 in xrange(_size1216): + _elem1221 = Partition() + _elem1221.read(iprot) + self.new_parts.append(_elem1221) iprot.readListEnd() else: iprot.skip(ftype) @@ -29047,8 +29105,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 iter1201 in self.new_parts: - iter1201.write(oprot) + for iter1222 in self.new_parts: + iter1222.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -29201,11 +29259,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.new_parts = [] - (_etype1205, _size1202) = iprot.readListBegin() - for _i1206 in xrange(_size1202): - _elem1207 = Partition() - _elem1207.read(iprot) - self.new_parts.append(_elem1207) + (_etype1226, _size1223) = iprot.readListBegin() + for _i1227 in xrange(_size1223): + _elem1228 = Partition() + _elem1228.read(iprot) + self.new_parts.append(_elem1228) iprot.readListEnd() else: iprot.skip(ftype) @@ -29236,8 +29294,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 iter1208 in self.new_parts: - iter1208.write(oprot) + for iter1229 in self.new_parts: + iter1229.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.environment_context is not None: @@ -29581,10 +29639,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1212, _size1209) = iprot.readListBegin() - for _i1213 in xrange(_size1209): - _elem1214 = iprot.readString() - self.part_vals.append(_elem1214) + (_etype1233, _size1230) = iprot.readListBegin() + for _i1234 in xrange(_size1230): + _elem1235 = iprot.readString() + self.part_vals.append(_elem1235) iprot.readListEnd() else: iprot.skip(ftype) @@ -29615,8 +29673,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 iter1215 in self.part_vals: - oprot.writeString(iter1215) + for iter1236 in self.part_vals: + oprot.writeString(iter1236) oprot.writeListEnd() oprot.writeFieldEnd() if self.new_part is not None: @@ -29758,10 +29816,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.part_vals = [] - (_etype1219, _size1216) = iprot.readListBegin() - for _i1220 in xrange(_size1216): - _elem1221 = iprot.readString() - self.part_vals.append(_elem1221) + (_etype1240, _size1237) = iprot.readListBegin() + for _i1241 in xrange(_size1237): + _elem1242 = iprot.readString() + self.part_vals.append(_elem1242) iprot.readListEnd() else: iprot.skip(ftype) @@ -29783,8 +29841,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 iter1222 in self.part_vals: - oprot.writeString(iter1222) + for iter1243 in self.part_vals: + oprot.writeString(iter1243) oprot.writeListEnd() oprot.writeFieldEnd() if self.throw_exception is not None: @@ -30142,10 +30200,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1226, _size1223) = iprot.readListBegin() - for _i1227 in xrange(_size1223): - _elem1228 = iprot.readString() - self.success.append(_elem1228) + (_etype1247, _size1244) = iprot.readListBegin() + for _i1248 in xrange(_size1244): + _elem1249 = iprot.readString() + self.success.append(_elem1249) iprot.readListEnd() else: iprot.skip(ftype) @@ -30168,8 +30226,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 iter1229 in self.success: - oprot.writeString(iter1229) + for iter1250 in self.success: + oprot.writeString(iter1250) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -30293,11 +30351,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype1231, _vtype1232, _size1230 ) = iprot.readMapBegin() - for _i1234 in xrange(_size1230): - _key1235 = iprot.readString() - _val1236 = iprot.readString() - self.success[_key1235] = _val1236 + (_ktype1252, _vtype1253, _size1251 ) = iprot.readMapBegin() + for _i1255 in xrange(_size1251): + _key1256 = iprot.readString() + _val1257 = iprot.readString() + self.success[_key1256] = _val1257 iprot.readMapEnd() else: iprot.skip(ftype) @@ -30320,9 +30378,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 kiter1237,viter1238 in self.success.items(): - oprot.writeString(kiter1237) - oprot.writeString(viter1238) + for kiter1258,viter1259 in self.success.items(): + oprot.writeString(kiter1258) + oprot.writeString(viter1259) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -30398,11 +30456,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype1240, _vtype1241, _size1239 ) = iprot.readMapBegin() - for _i1243 in xrange(_size1239): - _key1244 = iprot.readString() - _val1245 = iprot.readString() - self.part_vals[_key1244] = _val1245 + (_ktype1261, _vtype1262, _size1260 ) = iprot.readMapBegin() + for _i1264 in xrange(_size1260): + _key1265 = iprot.readString() + _val1266 = iprot.readString() + self.part_vals[_key1265] = _val1266 iprot.readMapEnd() else: iprot.skip(ftype) @@ -30432,9 +30490,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 kiter1246,viter1247 in self.part_vals.items(): - oprot.writeString(kiter1246) - oprot.writeString(viter1247) + for kiter1267,viter1268 in self.part_vals.items(): + oprot.writeString(kiter1267) + oprot.writeString(viter1268) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -30648,11 +30706,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype1249, _vtype1250, _size1248 ) = iprot.readMapBegin() - for _i1252 in xrange(_size1248): - _key1253 = iprot.readString() - _val1254 = iprot.readString() - self.part_vals[_key1253] = _val1254 + (_ktype1270, _vtype1271, _size1269 ) = iprot.readMapBegin() + for _i1273 in xrange(_size1269): + _key1274 = iprot.readString() + _val1275 = iprot.readString() + self.part_vals[_key1274] = _val1275 iprot.readMapEnd() else: iprot.skip(ftype) @@ -30682,9 +30740,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 kiter1255,viter1256 in self.part_vals.items(): - oprot.writeString(kiter1255) - oprot.writeString(viter1256) + for kiter1276,viter1277 in self.part_vals.items(): + oprot.writeString(kiter1276) + oprot.writeString(viter1277) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -34336,10 +34394,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1260, _size1257) = iprot.readListBegin() - for _i1261 in xrange(_size1257): - _elem1262 = iprot.readString() - self.success.append(_elem1262) + (_etype1281, _size1278) = iprot.readListBegin() + for _i1282 in xrange(_size1278): + _elem1283 = iprot.readString() + self.success.append(_elem1283) iprot.readListEnd() else: iprot.skip(ftype) @@ -34362,8 +34420,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 iter1263 in self.success: - oprot.writeString(iter1263) + for iter1284 in self.success: + oprot.writeString(iter1284) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -35051,10 +35109,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1267, _size1264) = iprot.readListBegin() - for _i1268 in xrange(_size1264): - _elem1269 = iprot.readString() - self.success.append(_elem1269) + (_etype1288, _size1285) = iprot.readListBegin() + for _i1289 in xrange(_size1285): + _elem1290 = iprot.readString() + self.success.append(_elem1290) iprot.readListEnd() else: iprot.skip(ftype) @@ -35077,8 +35135,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 iter1270 in self.success: - oprot.writeString(iter1270) + for iter1291 in self.success: + oprot.writeString(iter1291) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -35592,11 +35650,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1274, _size1271) = iprot.readListBegin() - for _i1275 in xrange(_size1271): - _elem1276 = Role() - _elem1276.read(iprot) - self.success.append(_elem1276) + (_etype1295, _size1292) = iprot.readListBegin() + for _i1296 in xrange(_size1292): + _elem1297 = Role() + _elem1297.read(iprot) + self.success.append(_elem1297) iprot.readListEnd() else: iprot.skip(ftype) @@ -35619,8 +35677,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 iter1277 in self.success: - iter1277.write(oprot) + for iter1298 in self.success: + iter1298.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -36129,10 +36187,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.group_names = [] - (_etype1281, _size1278) = iprot.readListBegin() - for _i1282 in xrange(_size1278): - _elem1283 = iprot.readString() - self.group_names.append(_elem1283) + (_etype1302, _size1299) = iprot.readListBegin() + for _i1303 in xrange(_size1299): + _elem1304 = iprot.readString() + self.group_names.append(_elem1304) iprot.readListEnd() else: iprot.skip(ftype) @@ -36157,8 +36215,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 iter1284 in self.group_names: - oprot.writeString(iter1284) + for iter1305 in self.group_names: + oprot.writeString(iter1305) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -36385,11 +36443,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1288, _size1285) = iprot.readListBegin() - for _i1289 in xrange(_size1285): - _elem1290 = HiveObjectPrivilege() - _elem1290.read(iprot) - self.success.append(_elem1290) + (_etype1309, _size1306) = iprot.readListBegin() + for _i1310 in xrange(_size1306): + _elem1311 = HiveObjectPrivilege() + _elem1311.read(iprot) + self.success.append(_elem1311) iprot.readListEnd() else: iprot.skip(ftype) @@ -36412,8 +36470,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 iter1291 in self.success: - iter1291.write(oprot) + for iter1312 in self.success: + iter1312.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -37083,10 +37141,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.group_names = [] - (_etype1295, _size1292) = iprot.readListBegin() - for _i1296 in xrange(_size1292): - _elem1297 = iprot.readString() - self.group_names.append(_elem1297) + (_etype1316, _size1313) = iprot.readListBegin() + for _i1317 in xrange(_size1313): + _elem1318 = iprot.readString() + self.group_names.append(_elem1318) iprot.readListEnd() else: iprot.skip(ftype) @@ -37107,8 +37165,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 iter1298 in self.group_names: - oprot.writeString(iter1298) + for iter1319 in self.group_names: + oprot.writeString(iter1319) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -37163,10 +37221,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1302, _size1299) = iprot.readListBegin() - for _i1303 in xrange(_size1299): - _elem1304 = iprot.readString() - self.success.append(_elem1304) + (_etype1323, _size1320) = iprot.readListBegin() + for _i1324 in xrange(_size1320): + _elem1325 = iprot.readString() + self.success.append(_elem1325) iprot.readListEnd() else: iprot.skip(ftype) @@ -37189,8 +37247,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 iter1305 in self.success: - oprot.writeString(iter1305) + for iter1326 in self.success: + oprot.writeString(iter1326) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -38122,10 +38180,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1309, _size1306) = iprot.readListBegin() - for _i1310 in xrange(_size1306): - _elem1311 = iprot.readString() - self.success.append(_elem1311) + (_etype1330, _size1327) = iprot.readListBegin() + for _i1331 in xrange(_size1327): + _elem1332 = iprot.readString() + self.success.append(_elem1332) iprot.readListEnd() else: iprot.skip(ftype) @@ -38142,8 +38200,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 iter1312 in self.success: - oprot.writeString(iter1312) + for iter1333 in self.success: + oprot.writeString(iter1333) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -38670,10 +38728,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1316, _size1313) = iprot.readListBegin() - for _i1317 in xrange(_size1313): - _elem1318 = iprot.readString() - self.success.append(_elem1318) + (_etype1337, _size1334) = iprot.readListBegin() + for _i1338 in xrange(_size1334): + _elem1339 = iprot.readString() + self.success.append(_elem1339) iprot.readListEnd() else: iprot.skip(ftype) @@ -38690,8 +38748,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 iter1319 in self.success: - oprot.writeString(iter1319) + for iter1340 in self.success: + oprot.writeString(iter1340) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -41940,6 +41998,133 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +class add_write_notification_log_args: + """ + Attributes: + - rqst + """ + + thrift_spec = None + def __init__(self, rqst=None,): + self.rqst = rqst + + 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.rqst = WriteNotificationLogRequest() + self.rqst.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('add_write_notification_log_args') + if self.rqst is not None: + oprot.writeFieldBegin('rqst', TType.STRUCT, -1) + self.rqst.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.rqst) + 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 add_write_notification_log_result: + """ + Attributes: + - success + """ + + thrift_spec = ( + (0, TType.STRUCT, 'success', (WriteNotificationLogResponse, WriteNotificationLogResponse.thrift_spec), None, ), # 0 + ) + + def __init__(self, success=None,): + self.success = success + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 0: + if ftype == TType.STRUCT: + self.success = WriteNotificationLogResponse() + self.success.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('add_write_notification_log_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.success) + 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 cm_recycle_args: """ Attributes: @@ -46971,11 +47156,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1323, _size1320) = iprot.readListBegin() - for _i1324 in xrange(_size1320): - _elem1325 = SchemaVersion() - _elem1325.read(iprot) - self.success.append(_elem1325) + (_etype1344, _size1341) = iprot.readListBegin() + for _i1345 in xrange(_size1341): + _elem1346 = SchemaVersion() + _elem1346.read(iprot) + self.success.append(_elem1346) iprot.readListEnd() else: iprot.skip(ftype) @@ -47004,8 +47189,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 iter1326 in self.success: - iter1326.write(oprot) + for iter1347 in self.success: + iter1347.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -48480,11 +48665,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1330, _size1327) = iprot.readListBegin() - for _i1331 in xrange(_size1327): - _elem1332 = RuntimeStat() - _elem1332.read(iprot) - self.success.append(_elem1332) + (_etype1351, _size1348) = iprot.readListBegin() + for _i1352 in xrange(_size1348): + _elem1353 = RuntimeStat() + _elem1353.read(iprot) + self.success.append(_elem1353) iprot.readListEnd() else: iprot.skip(ftype) @@ -48507,8 +48692,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 iter1333 in self.success: - iter1333.write(oprot) + for iter1354 in self.success: + iter1354.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: diff --git a/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py b/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py index 786c8c531d..26436bcd8c 100644 --- a/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py +++ b/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py @@ -11483,17 +11483,20 @@ class CommitTxnRequest: Attributes: - txnid - replPolicy + - writeEventInfos """ thrift_spec = ( None, # 0 (1, TType.I64, 'txnid', None, None, ), # 1 (2, TType.STRING, 'replPolicy', None, None, ), # 2 + (3, TType.LIST, 'writeEventInfos', (TType.STRUCT,(WriteEventInfo, WriteEventInfo.thrift_spec)), None, ), # 3 ) - def __init__(self, txnid=None, replPolicy=None,): + def __init__(self, txnid=None, replPolicy=None, writeEventInfos=None,): self.txnid = txnid self.replPolicy = replPolicy + self.writeEventInfos = writeEventInfos 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: @@ -11514,6 +11517,17 @@ def read(self, iprot): self.replPolicy = iprot.readString() else: iprot.skip(ftype) + elif fid == 3: + if ftype == TType.LIST: + self.writeEventInfos = [] + (_etype526, _size523) = iprot.readListBegin() + for _i527 in xrange(_size523): + _elem528 = WriteEventInfo() + _elem528.read(iprot) + self.writeEventInfos.append(_elem528) + iprot.readListEnd() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -11532,6 +11546,13 @@ def write(self, oprot): oprot.writeFieldBegin('replPolicy', TType.STRING, 2) oprot.writeString(self.replPolicy) oprot.writeFieldEnd() + if self.writeEventInfos is not None: + oprot.writeFieldBegin('writeEventInfos', TType.LIST, 3) + oprot.writeListBegin(TType.STRUCT, len(self.writeEventInfos)) + for iter529 in self.writeEventInfos: + iter529.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -11545,6 +11566,158 @@ def __hash__(self): value = 17 value = (value * 31) ^ hash(self.txnid) value = (value * 31) ^ hash(self.replPolicy) + value = (value * 31) ^ hash(self.writeEventInfos) + 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 WriteEventInfo: + """ + Attributes: + - writeId + - database + - table + - files + - partition + - tableObj + - partitionObj + """ + + thrift_spec = ( + None, # 0 + (1, TType.I64, 'writeId', None, None, ), # 1 + (2, TType.STRING, 'database', None, None, ), # 2 + (3, TType.STRING, 'table', None, None, ), # 3 + (4, TType.STRING, 'files', None, None, ), # 4 + (5, TType.STRING, 'partition', None, None, ), # 5 + (6, TType.STRING, 'tableObj', None, None, ), # 6 + (7, TType.STRING, 'partitionObj', None, None, ), # 7 + ) + + def __init__(self, writeId=None, database=None, table=None, files=None, partition=None, tableObj=None, partitionObj=None,): + self.writeId = writeId + self.database = database + self.table = table + self.files = files + self.partition = partition + self.tableObj = tableObj + self.partitionObj = partitionObj + + 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.I64: + self.writeId = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.database = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.table = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.files = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRING: + self.partition = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.STRING: + self.tableObj = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.STRING: + self.partitionObj = 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('WriteEventInfo') + if self.writeId is not None: + oprot.writeFieldBegin('writeId', TType.I64, 1) + oprot.writeI64(self.writeId) + oprot.writeFieldEnd() + if self.database is not None: + oprot.writeFieldBegin('database', TType.STRING, 2) + oprot.writeString(self.database) + oprot.writeFieldEnd() + if self.table is not None: + oprot.writeFieldBegin('table', TType.STRING, 3) + oprot.writeString(self.table) + oprot.writeFieldEnd() + if self.files is not None: + oprot.writeFieldBegin('files', TType.STRING, 4) + oprot.writeString(self.files) + oprot.writeFieldEnd() + if self.partition is not None: + oprot.writeFieldBegin('partition', TType.STRING, 5) + oprot.writeString(self.partition) + oprot.writeFieldEnd() + if self.tableObj is not None: + oprot.writeFieldBegin('tableObj', TType.STRING, 6) + oprot.writeString(self.tableObj) + oprot.writeFieldEnd() + if self.partitionObj is not None: + oprot.writeFieldBegin('partitionObj', TType.STRING, 7) + oprot.writeString(self.partitionObj) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.writeId is None: + raise TProtocol.TProtocolException(message='Required field writeId is unset!') + if self.database is None: + raise TProtocol.TProtocolException(message='Required field database is unset!') + if self.table is None: + raise TProtocol.TProtocolException(message='Required field table is unset!') + if self.files is None: + raise TProtocol.TProtocolException(message='Required field files is unset!') + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.writeId) + value = (value * 31) ^ hash(self.database) + value = (value * 31) ^ hash(self.table) + value = (value * 31) ^ hash(self.files) + value = (value * 31) ^ hash(self.partition) + value = (value * 31) ^ hash(self.tableObj) + value = (value * 31) ^ hash(self.partitionObj) return value def __repr__(self): @@ -11624,10 +11797,10 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.partNames = [] - (_etype526, _size523) = iprot.readListBegin() - for _i527 in xrange(_size523): - _elem528 = iprot.readString() - self.partNames.append(_elem528) + (_etype533, _size530) = iprot.readListBegin() + for _i534 in xrange(_size530): + _elem535 = iprot.readString() + self.partNames.append(_elem535) iprot.readListEnd() else: iprot.skip(ftype) @@ -11664,8 +11837,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 iter529 in self.partNames: - oprot.writeString(iter529) + for iter536 in self.partNames: + oprot.writeString(iter536) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11735,10 +11908,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fullTableNames = [] - (_etype533, _size530) = iprot.readListBegin() - for _i534 in xrange(_size530): - _elem535 = iprot.readString() - self.fullTableNames.append(_elem535) + (_etype540, _size537) = iprot.readListBegin() + for _i541 in xrange(_size537): + _elem542 = iprot.readString() + self.fullTableNames.append(_elem542) iprot.readListEnd() else: iprot.skip(ftype) @@ -11760,8 +11933,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 iter536 in self.fullTableNames: - oprot.writeString(iter536) + for iter543 in self.fullTableNames: + oprot.writeString(iter543) oprot.writeListEnd() oprot.writeFieldEnd() if self.validTxnList is not None: @@ -11844,10 +12017,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.invalidWriteIds = [] - (_etype540, _size537) = iprot.readListBegin() - for _i541 in xrange(_size537): - _elem542 = iprot.readI64() - self.invalidWriteIds.append(_elem542) + (_etype547, _size544) = iprot.readListBegin() + for _i548 in xrange(_size544): + _elem549 = iprot.readI64() + self.invalidWriteIds.append(_elem549) iprot.readListEnd() else: iprot.skip(ftype) @@ -11882,8 +12055,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 iter543 in self.invalidWriteIds: - oprot.writeI64(iter543) + for iter550 in self.invalidWriteIds: + oprot.writeI64(iter550) oprot.writeListEnd() oprot.writeFieldEnd() if self.minOpenWriteId is not None: @@ -11955,11 +12128,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.tblValidWriteIds = [] - (_etype547, _size544) = iprot.readListBegin() - for _i548 in xrange(_size544): - _elem549 = TableValidWriteIds() - _elem549.read(iprot) - self.tblValidWriteIds.append(_elem549) + (_etype554, _size551) = iprot.readListBegin() + for _i555 in xrange(_size551): + _elem556 = TableValidWriteIds() + _elem556.read(iprot) + self.tblValidWriteIds.append(_elem556) iprot.readListEnd() else: iprot.skip(ftype) @@ -11976,8 +12149,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 iter550 in self.tblValidWriteIds: - iter550.write(oprot) + for iter557 in self.tblValidWriteIds: + iter557.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12053,10 +12226,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.txnIds = [] - (_etype554, _size551) = iprot.readListBegin() - for _i555 in xrange(_size551): - _elem556 = iprot.readI64() - self.txnIds.append(_elem556) + (_etype561, _size558) = iprot.readListBegin() + for _i562 in xrange(_size558): + _elem563 = iprot.readI64() + self.txnIds.append(_elem563) iprot.readListEnd() else: iprot.skip(ftype) @@ -12068,11 +12241,11 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.srcTxnToWriteIdList = [] - (_etype560, _size557) = iprot.readListBegin() - for _i561 in xrange(_size557): - _elem562 = TxnToWriteId() - _elem562.read(iprot) - self.srcTxnToWriteIdList.append(_elem562) + (_etype567, _size564) = iprot.readListBegin() + for _i568 in xrange(_size564): + _elem569 = TxnToWriteId() + _elem569.read(iprot) + self.srcTxnToWriteIdList.append(_elem569) iprot.readListEnd() else: iprot.skip(ftype) @@ -12097,8 +12270,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 iter563 in self.txnIds: - oprot.writeI64(iter563) + for iter570 in self.txnIds: + oprot.writeI64(iter570) oprot.writeListEnd() oprot.writeFieldEnd() if self.replPolicy is not None: @@ -12108,8 +12281,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 iter564 in self.srcTxnToWriteIdList: - iter564.write(oprot) + for iter571 in self.srcTxnToWriteIdList: + iter571.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12251,11 +12424,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.txnToWriteIds = [] - (_etype568, _size565) = iprot.readListBegin() - for _i569 in xrange(_size565): - _elem570 = TxnToWriteId() - _elem570.read(iprot) - self.txnToWriteIds.append(_elem570) + (_etype575, _size572) = iprot.readListBegin() + for _i576 in xrange(_size572): + _elem577 = TxnToWriteId() + _elem577.read(iprot) + self.txnToWriteIds.append(_elem577) iprot.readListEnd() else: iprot.skip(ftype) @@ -12272,8 +12445,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 iter571 in self.txnToWriteIds: - iter571.write(oprot) + for iter578 in self.txnToWriteIds: + iter578.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12501,11 +12674,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.component = [] - (_etype575, _size572) = iprot.readListBegin() - for _i576 in xrange(_size572): - _elem577 = LockComponent() - _elem577.read(iprot) - self.component.append(_elem577) + (_etype582, _size579) = iprot.readListBegin() + for _i583 in xrange(_size579): + _elem584 = LockComponent() + _elem584.read(iprot) + self.component.append(_elem584) iprot.readListEnd() else: iprot.skip(ftype) @@ -12542,8 +12715,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 iter578 in self.component: - iter578.write(oprot) + for iter585 in self.component: + iter585.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.txnid is not None: @@ -13241,11 +13414,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.locks = [] - (_etype582, _size579) = iprot.readListBegin() - for _i583 in xrange(_size579): - _elem584 = ShowLocksResponseElement() - _elem584.read(iprot) - self.locks.append(_elem584) + (_etype589, _size586) = iprot.readListBegin() + for _i590 in xrange(_size586): + _elem591 = ShowLocksResponseElement() + _elem591.read(iprot) + self.locks.append(_elem591) iprot.readListEnd() else: iprot.skip(ftype) @@ -13262,8 +13435,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 iter585 in self.locks: - iter585.write(oprot) + for iter592 in self.locks: + iter592.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13478,20 +13651,20 @@ def read(self, iprot): if fid == 1: if ftype == TType.SET: self.aborted = set() - (_etype589, _size586) = iprot.readSetBegin() - for _i590 in xrange(_size586): - _elem591 = iprot.readI64() - self.aborted.add(_elem591) + (_etype596, _size593) = iprot.readSetBegin() + for _i597 in xrange(_size593): + _elem598 = iprot.readI64() + self.aborted.add(_elem598) iprot.readSetEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.SET: self.nosuch = set() - (_etype595, _size592) = iprot.readSetBegin() - for _i596 in xrange(_size592): - _elem597 = iprot.readI64() - self.nosuch.add(_elem597) + (_etype602, _size599) = iprot.readSetBegin() + for _i603 in xrange(_size599): + _elem604 = iprot.readI64() + self.nosuch.add(_elem604) iprot.readSetEnd() else: iprot.skip(ftype) @@ -13508,15 +13681,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 iter598 in self.aborted: - oprot.writeI64(iter598) + for iter605 in self.aborted: + oprot.writeI64(iter605) oprot.writeSetEnd() oprot.writeFieldEnd() if self.nosuch is not None: oprot.writeFieldBegin('nosuch', TType.SET, 2) oprot.writeSetBegin(TType.I64, len(self.nosuch)) - for iter599 in self.nosuch: - oprot.writeI64(iter599) + for iter606 in self.nosuch: + oprot.writeI64(iter606) oprot.writeSetEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13613,11 +13786,11 @@ def read(self, iprot): elif fid == 6: if ftype == TType.MAP: self.properties = {} - (_ktype601, _vtype602, _size600 ) = iprot.readMapBegin() - for _i604 in xrange(_size600): - _key605 = iprot.readString() - _val606 = iprot.readString() - self.properties[_key605] = _val606 + (_ktype608, _vtype609, _size607 ) = iprot.readMapBegin() + for _i611 in xrange(_size607): + _key612 = iprot.readString() + _val613 = iprot.readString() + self.properties[_key612] = _val613 iprot.readMapEnd() else: iprot.skip(ftype) @@ -13654,9 +13827,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 kiter607,viter608 in self.properties.items(): - oprot.writeString(kiter607) - oprot.writeString(viter608) + for kiter614,viter615 in self.properties.items(): + oprot.writeString(kiter614) + oprot.writeString(viter615) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14091,11 +14264,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.compacts = [] - (_etype612, _size609) = iprot.readListBegin() - for _i613 in xrange(_size609): - _elem614 = ShowCompactResponseElement() - _elem614.read(iprot) - self.compacts.append(_elem614) + (_etype619, _size616) = iprot.readListBegin() + for _i620 in xrange(_size616): + _elem621 = ShowCompactResponseElement() + _elem621.read(iprot) + self.compacts.append(_elem621) iprot.readListEnd() else: iprot.skip(ftype) @@ -14112,8 +14285,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 iter615 in self.compacts: - iter615.write(oprot) + for iter622 in self.compacts: + iter622.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14202,10 +14375,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.partitionnames = [] - (_etype619, _size616) = iprot.readListBegin() - for _i620 in xrange(_size616): - _elem621 = iprot.readString() - self.partitionnames.append(_elem621) + (_etype626, _size623) = iprot.readListBegin() + for _i627 in xrange(_size623): + _elem628 = iprot.readString() + self.partitionnames.append(_elem628) iprot.readListEnd() else: iprot.skip(ftype) @@ -14243,8 +14416,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 iter622 in self.partitionnames: - oprot.writeString(iter622) + for iter629 in self.partitionnames: + oprot.writeString(iter629) oprot.writeListEnd() oprot.writeFieldEnd() if self.operationType is not None: @@ -14474,10 +14647,10 @@ def read(self, iprot): elif fid == 4: if ftype == TType.SET: self.tablesUsed = set() - (_etype626, _size623) = iprot.readSetBegin() - for _i627 in xrange(_size623): - _elem628 = iprot.readString() - self.tablesUsed.add(_elem628) + (_etype633, _size630) = iprot.readSetBegin() + for _i634 in xrange(_size630): + _elem635 = iprot.readString() + self.tablesUsed.add(_elem635) iprot.readSetEnd() else: iprot.skip(ftype) @@ -14511,8 +14684,8 @@ def write(self, oprot): if self.tablesUsed is not None: oprot.writeFieldBegin('tablesUsed', TType.SET, 4) oprot.writeSetBegin(TType.STRING, len(self.tablesUsed)) - for iter629 in self.tablesUsed: - oprot.writeString(iter629) + for iter636 in self.tablesUsed: + oprot.writeString(iter636) oprot.writeSetEnd() oprot.writeFieldEnd() if self.validTxnList is not None: @@ -14824,11 +14997,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.events = [] - (_etype633, _size630) = iprot.readListBegin() - for _i634 in xrange(_size630): - _elem635 = NotificationEvent() - _elem635.read(iprot) - self.events.append(_elem635) + (_etype640, _size637) = iprot.readListBegin() + for _i641 in xrange(_size637): + _elem642 = NotificationEvent() + _elem642.read(iprot) + self.events.append(_elem642) iprot.readListEnd() else: iprot.skip(ftype) @@ -14845,8 +15018,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 iter636 in self.events: - iter636.write(oprot) + for iter643 in self.events: + iter643.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15109,6 +15282,7 @@ class InsertEventRequestData: - replace - filesAdded - filesAddedChecksum + - subDirectoryList """ thrift_spec = ( @@ -15116,12 +15290,14 @@ class InsertEventRequestData: (1, TType.BOOL, 'replace', None, None, ), # 1 (2, TType.LIST, 'filesAdded', (TType.STRING,None), None, ), # 2 (3, TType.LIST, 'filesAddedChecksum', (TType.STRING,None), None, ), # 3 + (4, TType.LIST, 'subDirectoryList', (TType.STRING,None), None, ), # 4 ) - def __init__(self, replace=None, filesAdded=None, filesAddedChecksum=None,): + def __init__(self, replace=None, filesAdded=None, filesAddedChecksum=None, subDirectoryList=None,): self.replace = replace self.filesAdded = filesAdded self.filesAddedChecksum = filesAddedChecksum + self.subDirectoryList = subDirectoryList 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: @@ -15140,20 +15316,30 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.filesAdded = [] - (_etype640, _size637) = iprot.readListBegin() - for _i641 in xrange(_size637): - _elem642 = iprot.readString() - self.filesAdded.append(_elem642) + (_etype647, _size644) = iprot.readListBegin() + for _i648 in xrange(_size644): + _elem649 = iprot.readString() + self.filesAdded.append(_elem649) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.filesAddedChecksum = [] - (_etype646, _size643) = iprot.readListBegin() - for _i647 in xrange(_size643): - _elem648 = iprot.readString() - self.filesAddedChecksum.append(_elem648) + (_etype653, _size650) = iprot.readListBegin() + for _i654 in xrange(_size650): + _elem655 = iprot.readString() + self.filesAddedChecksum.append(_elem655) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.LIST: + self.subDirectoryList = [] + (_etype659, _size656) = iprot.readListBegin() + for _i660 in xrange(_size656): + _elem661 = iprot.readString() + self.subDirectoryList.append(_elem661) iprot.readListEnd() else: iprot.skip(ftype) @@ -15174,15 +15360,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 iter649 in self.filesAdded: - oprot.writeString(iter649) + for iter662 in self.filesAdded: + oprot.writeString(iter662) oprot.writeListEnd() oprot.writeFieldEnd() if self.filesAddedChecksum is not None: oprot.writeFieldBegin('filesAddedChecksum', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.filesAddedChecksum)) - for iter650 in self.filesAddedChecksum: - oprot.writeString(iter650) + for iter663 in self.filesAddedChecksum: + oprot.writeString(iter663) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.subDirectoryList is not None: + oprot.writeFieldBegin('subDirectoryList', TType.LIST, 4) + oprot.writeListBegin(TType.STRING, len(self.subDirectoryList)) + for iter664 in self.subDirectoryList: + oprot.writeString(iter664) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15199,6 +15392,7 @@ def __hash__(self): value = (value * 31) ^ hash(self.replace) value = (value * 31) ^ hash(self.filesAdded) value = (value * 31) ^ hash(self.filesAddedChecksum) + value = (value * 31) ^ hash(self.subDirectoryList) return value def __repr__(self): @@ -15340,10 +15534,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.partitionVals = [] - (_etype654, _size651) = iprot.readListBegin() - for _i655 in xrange(_size651): - _elem656 = iprot.readString() - self.partitionVals.append(_elem656) + (_etype668, _size665) = iprot.readListBegin() + for _i669 in xrange(_size665): + _elem670 = iprot.readString() + self.partitionVals.append(_elem670) iprot.readListEnd() else: iprot.skip(ftype) @@ -15381,8 +15575,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 iter657 in self.partitionVals: - oprot.writeString(iter657) + for iter671 in self.partitionVals: + oprot.writeString(iter671) oprot.writeListEnd() oprot.writeFieldEnd() if self.catName is not None: @@ -15467,6 +15661,201 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +class WriteNotificationLogRequest: + """ + Attributes: + - txnId + - writeId + - db + - table + - fileInfo + - partitionVals + """ + + thrift_spec = ( + None, # 0 + (1, TType.I64, 'txnId', None, None, ), # 1 + (2, TType.I64, 'writeId', None, None, ), # 2 + (3, TType.STRING, 'db', None, None, ), # 3 + (4, TType.STRING, 'table', None, None, ), # 4 + (5, TType.STRUCT, 'fileInfo', (InsertEventRequestData, InsertEventRequestData.thrift_spec), None, ), # 5 + (6, TType.LIST, 'partitionVals', (TType.STRING,None), None, ), # 6 + ) + + def __init__(self, txnId=None, writeId=None, db=None, table=None, fileInfo=None, partitionVals=None,): + self.txnId = txnId + self.writeId = writeId + self.db = db + self.table = table + self.fileInfo = fileInfo + self.partitionVals = partitionVals + + 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.I64: + self.txnId = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I64: + self.writeId = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.db = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.table = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRUCT: + self.fileInfo = InsertEventRequestData() + self.fileInfo.read(iprot) + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.LIST: + self.partitionVals = [] + (_etype675, _size672) = iprot.readListBegin() + for _i676 in xrange(_size672): + _elem677 = iprot.readString() + self.partitionVals.append(_elem677) + iprot.readListEnd() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('WriteNotificationLogRequest') + if self.txnId is not None: + oprot.writeFieldBegin('txnId', TType.I64, 1) + oprot.writeI64(self.txnId) + oprot.writeFieldEnd() + if self.writeId is not None: + oprot.writeFieldBegin('writeId', TType.I64, 2) + oprot.writeI64(self.writeId) + oprot.writeFieldEnd() + if self.db is not None: + oprot.writeFieldBegin('db', TType.STRING, 3) + oprot.writeString(self.db) + oprot.writeFieldEnd() + if self.table is not None: + oprot.writeFieldBegin('table', TType.STRING, 4) + oprot.writeString(self.table) + oprot.writeFieldEnd() + if self.fileInfo is not None: + oprot.writeFieldBegin('fileInfo', TType.STRUCT, 5) + self.fileInfo.write(oprot) + oprot.writeFieldEnd() + if self.partitionVals is not None: + oprot.writeFieldBegin('partitionVals', TType.LIST, 6) + oprot.writeListBegin(TType.STRING, len(self.partitionVals)) + for iter678 in self.partitionVals: + oprot.writeString(iter678) + oprot.writeListEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.txnId is None: + raise TProtocol.TProtocolException(message='Required field txnId is unset!') + if self.writeId is None: + raise TProtocol.TProtocolException(message='Required field writeId is unset!') + if self.db is None: + raise TProtocol.TProtocolException(message='Required field db is unset!') + if self.table is None: + raise TProtocol.TProtocolException(message='Required field table is unset!') + if self.fileInfo is None: + raise TProtocol.TProtocolException(message='Required field fileInfo is unset!') + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.txnId) + value = (value * 31) ^ hash(self.writeId) + value = (value * 31) ^ hash(self.db) + value = (value * 31) ^ hash(self.table) + value = (value * 31) ^ hash(self.fileInfo) + value = (value * 31) ^ hash(self.partitionVals) + 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 WriteNotificationLogResponse: + + thrift_spec = ( + ) + + 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 + 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('WriteNotificationLogResponse') + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + 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 MetadataPpdResult: """ Attributes: @@ -15574,12 +15963,12 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.metadata = {} - (_ktype659, _vtype660, _size658 ) = iprot.readMapBegin() - for _i662 in xrange(_size658): - _key663 = iprot.readI64() - _val664 = MetadataPpdResult() - _val664.read(iprot) - self.metadata[_key663] = _val664 + (_ktype680, _vtype681, _size679 ) = iprot.readMapBegin() + for _i683 in xrange(_size679): + _key684 = iprot.readI64() + _val685 = MetadataPpdResult() + _val685.read(iprot) + self.metadata[_key684] = _val685 iprot.readMapEnd() else: iprot.skip(ftype) @@ -15601,9 +15990,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 kiter665,viter666 in self.metadata.items(): - oprot.writeI64(kiter665) - viter666.write(oprot) + for kiter686,viter687 in self.metadata.items(): + oprot.writeI64(kiter686) + viter687.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.isSupported is not None: @@ -15673,10 +16062,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype670, _size667) = iprot.readListBegin() - for _i671 in xrange(_size667): - _elem672 = iprot.readI64() - self.fileIds.append(_elem672) + (_etype691, _size688) = iprot.readListBegin() + for _i692 in xrange(_size688): + _elem693 = iprot.readI64() + self.fileIds.append(_elem693) iprot.readListEnd() else: iprot.skip(ftype) @@ -15708,8 +16097,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 iter673 in self.fileIds: - oprot.writeI64(iter673) + for iter694 in self.fileIds: + oprot.writeI64(iter694) oprot.writeListEnd() oprot.writeFieldEnd() if self.expr is not None: @@ -15783,11 +16172,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.metadata = {} - (_ktype675, _vtype676, _size674 ) = iprot.readMapBegin() - for _i678 in xrange(_size674): - _key679 = iprot.readI64() - _val680 = iprot.readString() - self.metadata[_key679] = _val680 + (_ktype696, _vtype697, _size695 ) = iprot.readMapBegin() + for _i699 in xrange(_size695): + _key700 = iprot.readI64() + _val701 = iprot.readString() + self.metadata[_key700] = _val701 iprot.readMapEnd() else: iprot.skip(ftype) @@ -15809,9 +16198,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 kiter681,viter682 in self.metadata.items(): - oprot.writeI64(kiter681) - oprot.writeString(viter682) + for kiter702,viter703 in self.metadata.items(): + oprot.writeI64(kiter702) + oprot.writeString(viter703) oprot.writeMapEnd() oprot.writeFieldEnd() if self.isSupported is not None: @@ -15872,10 +16261,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype686, _size683) = iprot.readListBegin() - for _i687 in xrange(_size683): - _elem688 = iprot.readI64() - self.fileIds.append(_elem688) + (_etype707, _size704) = iprot.readListBegin() + for _i708 in xrange(_size704): + _elem709 = iprot.readI64() + self.fileIds.append(_elem709) iprot.readListEnd() else: iprot.skip(ftype) @@ -15892,8 +16281,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 iter689 in self.fileIds: - oprot.writeI64(iter689) + for iter710 in self.fileIds: + oprot.writeI64(iter710) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15999,20 +16388,20 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype693, _size690) = iprot.readListBegin() - for _i694 in xrange(_size690): - _elem695 = iprot.readI64() - self.fileIds.append(_elem695) + (_etype714, _size711) = iprot.readListBegin() + for _i715 in xrange(_size711): + _elem716 = iprot.readI64() + self.fileIds.append(_elem716) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.metadata = [] - (_etype699, _size696) = iprot.readListBegin() - for _i700 in xrange(_size696): - _elem701 = iprot.readString() - self.metadata.append(_elem701) + (_etype720, _size717) = iprot.readListBegin() + for _i721 in xrange(_size717): + _elem722 = iprot.readString() + self.metadata.append(_elem722) iprot.readListEnd() else: iprot.skip(ftype) @@ -16034,15 +16423,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 iter702 in self.fileIds: - oprot.writeI64(iter702) + for iter723 in self.fileIds: + oprot.writeI64(iter723) oprot.writeListEnd() oprot.writeFieldEnd() if self.metadata is not None: oprot.writeFieldBegin('metadata', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.metadata)) - for iter703 in self.metadata: - oprot.writeString(iter703) + for iter724 in self.metadata: + oprot.writeString(iter724) oprot.writeListEnd() oprot.writeFieldEnd() if self.type is not None: @@ -16150,10 +16539,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype707, _size704) = iprot.readListBegin() - for _i708 in xrange(_size704): - _elem709 = iprot.readI64() - self.fileIds.append(_elem709) + (_etype728, _size725) = iprot.readListBegin() + for _i729 in xrange(_size725): + _elem730 = iprot.readI64() + self.fileIds.append(_elem730) iprot.readListEnd() else: iprot.skip(ftype) @@ -16170,8 +16559,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 iter710 in self.fileIds: - oprot.writeI64(iter710) + for iter731 in self.fileIds: + oprot.writeI64(iter731) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16400,11 +16789,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.functions = [] - (_etype714, _size711) = iprot.readListBegin() - for _i715 in xrange(_size711): - _elem716 = Function() - _elem716.read(iprot) - self.functions.append(_elem716) + (_etype735, _size732) = iprot.readListBegin() + for _i736 in xrange(_size732): + _elem737 = Function() + _elem737.read(iprot) + self.functions.append(_elem737) iprot.readListEnd() else: iprot.skip(ftype) @@ -16421,8 +16810,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 iter717 in self.functions: - iter717.write(oprot) + for iter738 in self.functions: + iter738.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16474,10 +16863,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.values = [] - (_etype721, _size718) = iprot.readListBegin() - for _i722 in xrange(_size718): - _elem723 = iprot.readI32() - self.values.append(_elem723) + (_etype742, _size739) = iprot.readListBegin() + for _i743 in xrange(_size739): + _elem744 = iprot.readI32() + self.values.append(_elem744) iprot.readListEnd() else: iprot.skip(ftype) @@ -16494,8 +16883,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 iter724 in self.values: - oprot.writeI32(iter724) + for iter745 in self.values: + oprot.writeI32(iter745) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16740,10 +17129,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.tblNames = [] - (_etype728, _size725) = iprot.readListBegin() - for _i729 in xrange(_size725): - _elem730 = iprot.readString() - self.tblNames.append(_elem730) + (_etype749, _size746) = iprot.readListBegin() + for _i750 in xrange(_size746): + _elem751 = iprot.readString() + self.tblNames.append(_elem751) iprot.readListEnd() else: iprot.skip(ftype) @@ -16775,8 +17164,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 iter731 in self.tblNames: - oprot.writeString(iter731) + for iter752 in self.tblNames: + oprot.writeString(iter752) oprot.writeListEnd() oprot.writeFieldEnd() if self.capabilities is not None: @@ -16841,11 +17230,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.tables = [] - (_etype735, _size732) = iprot.readListBegin() - for _i736 in xrange(_size732): - _elem737 = Table() - _elem737.read(iprot) - self.tables.append(_elem737) + (_etype756, _size753) = iprot.readListBegin() + for _i757 in xrange(_size753): + _elem758 = Table() + _elem758.read(iprot) + self.tables.append(_elem758) iprot.readListEnd() else: iprot.skip(ftype) @@ -16862,8 +17251,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 iter738 in self.tables: - iter738.write(oprot) + for iter759 in self.tables: + iter759.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -17177,10 +17566,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.SET: self.tablesUsed = set() - (_etype742, _size739) = iprot.readSetBegin() - for _i743 in xrange(_size739): - _elem744 = iprot.readString() - self.tablesUsed.add(_elem744) + (_etype763, _size760) = iprot.readSetBegin() + for _i764 in xrange(_size760): + _elem765 = iprot.readString() + self.tablesUsed.add(_elem765) iprot.readSetEnd() else: iprot.skip(ftype) @@ -17212,8 +17601,8 @@ def write(self, oprot): if self.tablesUsed is not None: oprot.writeFieldBegin('tablesUsed', TType.SET, 1) oprot.writeSetBegin(TType.STRING, len(self.tablesUsed)) - for iter745 in self.tablesUsed: - oprot.writeString(iter745) + for iter766 in self.tablesUsed: + oprot.writeString(iter766) oprot.writeSetEnd() oprot.writeFieldEnd() if self.validTxnList is not None: @@ -18118,44 +18507,44 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.pools = [] - (_etype749, _size746) = iprot.readListBegin() - for _i750 in xrange(_size746): - _elem751 = WMPool() - _elem751.read(iprot) - self.pools.append(_elem751) + (_etype770, _size767) = iprot.readListBegin() + for _i771 in xrange(_size767): + _elem772 = WMPool() + _elem772.read(iprot) + self.pools.append(_elem772) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.mappings = [] - (_etype755, _size752) = iprot.readListBegin() - for _i756 in xrange(_size752): - _elem757 = WMMapping() - _elem757.read(iprot) - self.mappings.append(_elem757) + (_etype776, _size773) = iprot.readListBegin() + for _i777 in xrange(_size773): + _elem778 = WMMapping() + _elem778.read(iprot) + self.mappings.append(_elem778) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.triggers = [] - (_etype761, _size758) = iprot.readListBegin() - for _i762 in xrange(_size758): - _elem763 = WMTrigger() - _elem763.read(iprot) - self.triggers.append(_elem763) + (_etype782, _size779) = iprot.readListBegin() + for _i783 in xrange(_size779): + _elem784 = WMTrigger() + _elem784.read(iprot) + self.triggers.append(_elem784) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.LIST: self.poolTriggers = [] - (_etype767, _size764) = iprot.readListBegin() - for _i768 in xrange(_size764): - _elem769 = WMPoolTrigger() - _elem769.read(iprot) - self.poolTriggers.append(_elem769) + (_etype788, _size785) = iprot.readListBegin() + for _i789 in xrange(_size785): + _elem790 = WMPoolTrigger() + _elem790.read(iprot) + self.poolTriggers.append(_elem790) iprot.readListEnd() else: iprot.skip(ftype) @@ -18176,29 +18565,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 iter770 in self.pools: - iter770.write(oprot) + for iter791 in self.pools: + iter791.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 iter771 in self.mappings: - iter771.write(oprot) + for iter792 in self.mappings: + iter792.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 iter772 in self.triggers: - iter772.write(oprot) + for iter793 in self.triggers: + iter793.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 iter773 in self.poolTriggers: - iter773.write(oprot) + for iter794 in self.poolTriggers: + iter794.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -18672,11 +19061,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.resourcePlans = [] - (_etype777, _size774) = iprot.readListBegin() - for _i778 in xrange(_size774): - _elem779 = WMResourcePlan() - _elem779.read(iprot) - self.resourcePlans.append(_elem779) + (_etype798, _size795) = iprot.readListBegin() + for _i799 in xrange(_size795): + _elem800 = WMResourcePlan() + _elem800.read(iprot) + self.resourcePlans.append(_elem800) iprot.readListEnd() else: iprot.skip(ftype) @@ -18693,8 +19082,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 iter780 in self.resourcePlans: - iter780.write(oprot) + for iter801 in self.resourcePlans: + iter801.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -18998,20 +19387,20 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.errors = [] - (_etype784, _size781) = iprot.readListBegin() - for _i785 in xrange(_size781): - _elem786 = iprot.readString() - self.errors.append(_elem786) + (_etype805, _size802) = iprot.readListBegin() + for _i806 in xrange(_size802): + _elem807 = iprot.readString() + self.errors.append(_elem807) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.warnings = [] - (_etype790, _size787) = iprot.readListBegin() - for _i791 in xrange(_size787): - _elem792 = iprot.readString() - self.warnings.append(_elem792) + (_etype811, _size808) = iprot.readListBegin() + for _i812 in xrange(_size808): + _elem813 = iprot.readString() + self.warnings.append(_elem813) iprot.readListEnd() else: iprot.skip(ftype) @@ -19028,15 +19417,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 iter793 in self.errors: - oprot.writeString(iter793) + for iter814 in self.errors: + oprot.writeString(iter814) oprot.writeListEnd() oprot.writeFieldEnd() if self.warnings is not None: oprot.writeFieldBegin('warnings', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.warnings)) - for iter794 in self.warnings: - oprot.writeString(iter794) + for iter815 in self.warnings: + oprot.writeString(iter815) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -19613,11 +20002,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.triggers = [] - (_etype798, _size795) = iprot.readListBegin() - for _i799 in xrange(_size795): - _elem800 = WMTrigger() - _elem800.read(iprot) - self.triggers.append(_elem800) + (_etype819, _size816) = iprot.readListBegin() + for _i820 in xrange(_size816): + _elem821 = WMTrigger() + _elem821.read(iprot) + self.triggers.append(_elem821) iprot.readListEnd() else: iprot.skip(ftype) @@ -19634,8 +20023,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 iter801 in self.triggers: - iter801.write(oprot) + for iter822 in self.triggers: + iter822.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20819,11 +21208,11 @@ def read(self, iprot): elif fid == 4: if ftype == TType.LIST: self.cols = [] - (_etype805, _size802) = iprot.readListBegin() - for _i806 in xrange(_size802): - _elem807 = FieldSchema() - _elem807.read(iprot) - self.cols.append(_elem807) + (_etype826, _size823) = iprot.readListBegin() + for _i827 in xrange(_size823): + _elem828 = FieldSchema() + _elem828.read(iprot) + self.cols.append(_elem828) iprot.readListEnd() else: iprot.skip(ftype) @@ -20883,8 +21272,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 iter808 in self.cols: - iter808.write(oprot) + for iter829 in self.cols: + iter829.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.state is not None: @@ -21139,11 +21528,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.schemaVersions = [] - (_etype812, _size809) = iprot.readListBegin() - for _i813 in xrange(_size809): - _elem814 = SchemaVersionDescriptor() - _elem814.read(iprot) - self.schemaVersions.append(_elem814) + (_etype833, _size830) = iprot.readListBegin() + for _i834 in xrange(_size830): + _elem835 = SchemaVersionDescriptor() + _elem835.read(iprot) + self.schemaVersions.append(_elem835) iprot.readListEnd() else: iprot.skip(ftype) @@ -21160,8 +21549,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 iter815 in self.schemaVersions: - iter815.write(oprot) + for iter836 in self.schemaVersions: + iter836.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() diff --git a/standalone-metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb b/standalone-metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb index 91745967bc..cec8547bb4 100644 --- a/standalone-metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb +++ b/standalone-metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb @@ -2564,10 +2564,12 @@ class CommitTxnRequest include ::Thrift::Struct, ::Thrift::Struct_Union TXNID = 1 REPLPOLICY = 2 + WRITEEVENTINFOS = 3 FIELDS = { TXNID => {:type => ::Thrift::Types::I64, :name => 'txnid'}, - REPLPOLICY => {:type => ::Thrift::Types::STRING, :name => 'replPolicy', :optional => true} + REPLPOLICY => {:type => ::Thrift::Types::STRING, :name => 'replPolicy', :optional => true}, + WRITEEVENTINFOS => {:type => ::Thrift::Types::LIST, :name => 'writeEventInfos', :element => {:type => ::Thrift::Types::STRUCT, :class => ::WriteEventInfo}, :optional => true} } def struct_fields; FIELDS; end @@ -2579,6 +2581,38 @@ class CommitTxnRequest ::Thrift::Struct.generate_accessors self end +class WriteEventInfo + include ::Thrift::Struct, ::Thrift::Struct_Union + WRITEID = 1 + DATABASE = 2 + TABLE = 3 + FILES = 4 + PARTITION = 5 + TABLEOBJ = 6 + PARTITIONOBJ = 7 + + FIELDS = { + WRITEID => {:type => ::Thrift::Types::I64, :name => 'writeId'}, + DATABASE => {:type => ::Thrift::Types::STRING, :name => 'database'}, + TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'}, + FILES => {:type => ::Thrift::Types::STRING, :name => 'files'}, + PARTITION => {:type => ::Thrift::Types::STRING, :name => 'partition', :optional => true}, + TABLEOBJ => {:type => ::Thrift::Types::STRING, :name => 'tableObj', :optional => true}, + PARTITIONOBJ => {:type => ::Thrift::Types::STRING, :name => 'partitionObj', :optional => true} + } + + def struct_fields; FIELDS; end + + def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field writeId is unset!') unless @writeId + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field database is unset!') unless @database + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field table is unset!') unless @table + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field files is unset!') unless @files + end + + ::Thrift::Struct.generate_accessors self +end + class ReplTblWriteIdStateRequest include ::Thrift::Struct, ::Thrift::Struct_Union VALIDWRITEIDLIST = 1 @@ -3377,11 +3411,13 @@ class InsertEventRequestData REPLACE = 1 FILESADDED = 2 FILESADDEDCHECKSUM = 3 + SUBDIRECTORYLIST = 4 FIELDS = { REPLACE => {:type => ::Thrift::Types::BOOL, :name => 'replace', :optional => true}, FILESADDED => {:type => ::Thrift::Types::LIST, :name => 'filesAdded', :element => {:type => ::Thrift::Types::STRING}}, - FILESADDEDCHECKSUM => {:type => ::Thrift::Types::LIST, :name => 'filesAddedChecksum', :element => {:type => ::Thrift::Types::STRING}, :optional => true} + FILESADDEDCHECKSUM => {:type => ::Thrift::Types::LIST, :name => 'filesAddedChecksum', :element => {:type => ::Thrift::Types::STRING}, :optional => true}, + SUBDIRECTORYLIST => {:type => ::Thrift::Types::LIST, :name => 'subDirectoryList', :element => {:type => ::Thrift::Types::STRING}, :optional => true} } def struct_fields; FIELDS; end @@ -3459,6 +3495,52 @@ class FireEventResponse ::Thrift::Struct.generate_accessors self end +class WriteNotificationLogRequest + include ::Thrift::Struct, ::Thrift::Struct_Union + TXNID = 1 + WRITEID = 2 + DB = 3 + TABLE = 4 + FILEINFO = 5 + PARTITIONVALS = 6 + + FIELDS = { + TXNID => {:type => ::Thrift::Types::I64, :name => 'txnId'}, + WRITEID => {:type => ::Thrift::Types::I64, :name => 'writeId'}, + DB => {:type => ::Thrift::Types::STRING, :name => 'db'}, + TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'}, + FILEINFO => {:type => ::Thrift::Types::STRUCT, :name => 'fileInfo', :class => ::InsertEventRequestData}, + PARTITIONVALS => {:type => ::Thrift::Types::LIST, :name => 'partitionVals', :element => {:type => ::Thrift::Types::STRING}, :optional => true} + } + + def struct_fields; FIELDS; end + + def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field txnId is unset!') unless @txnId + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field writeId is unset!') unless @writeId + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field db is unset!') unless @db + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field table is unset!') unless @table + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field fileInfo is unset!') unless @fileInfo + end + + ::Thrift::Struct.generate_accessors self +end + +class WriteNotificationLogResponse + include ::Thrift::Struct, ::Thrift::Struct_Union + + FIELDS = { + + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self +end + class MetadataPpdResult include ::Thrift::Struct, ::Thrift::Struct_Union METADATA = 1 diff --git a/standalone-metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb b/standalone-metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb index 4ef99bdaee..952336735b 100644 --- a/standalone-metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb +++ b/standalone-metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb @@ -2734,6 +2734,21 @@ module ThriftHiveMetastore return end + def add_write_notification_log(rqst) + send_add_write_notification_log(rqst) + return recv_add_write_notification_log() + end + + def send_add_write_notification_log(rqst) + send_message('add_write_notification_log', Add_write_notification_log_args, :rqst => rqst) + end + + def recv_add_write_notification_log() + result = receive_message(Add_write_notification_log_result) + return result.success unless result.success.nil? + raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'add_write_notification_log failed: unknown result') + end + def cm_recycle(request) send_cm_recycle(request) return recv_cm_recycle() @@ -5488,6 +5503,13 @@ module ThriftHiveMetastore write_result(result, oprot, 'flushCache', seqid) end + def process_add_write_notification_log(seqid, iprot, oprot) + args = read_args(iprot, Add_write_notification_log_args) + result = Add_write_notification_log_result.new() + result.success = @handler.add_write_notification_log(args.rqst) + write_result(result, oprot, 'add_write_notification_log', seqid) + end + def process_cm_recycle(seqid, iprot, oprot) args = read_args(iprot, Cm_recycle_args) result = Cm_recycle_result.new() @@ -12152,6 +12174,38 @@ module ThriftHiveMetastore ::Thrift::Struct.generate_accessors self end + class Add_write_notification_log_args + include ::Thrift::Struct, ::Thrift::Struct_Union + RQST = -1 + + FIELDS = { + RQST => {:type => ::Thrift::Types::STRUCT, :name => 'rqst', :class => ::WriteNotificationLogRequest} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Add_write_notification_log_result + include ::Thrift::Struct, ::Thrift::Struct_Union + SUCCESS = 0 + + FIELDS = { + SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::WriteNotificationLogResponse} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + class Cm_recycle_args include ::Thrift::Struct, ::Thrift::Struct_Union REQUEST = 1 diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java index d8b8414999..bd14984496 100644 --- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java @@ -80,6 +80,7 @@ import org.apache.hadoop.hive.common.StatsSetupConst; import org.apache.hadoop.hive.metastore.api.*; import org.apache.hadoop.hive.metastore.events.AddForeignKeyEvent; +import org.apache.hadoop.hive.metastore.events.AcidWriteEvent; import org.apache.hadoop.hive.metastore.conf.MetastoreConf; import org.apache.hadoop.hive.metastore.conf.MetastoreConf.ConfVars; import org.apache.hadoop.hive.metastore.events.AbortTxnEvent; @@ -7075,6 +7076,55 @@ public void abort_txns(AbortTxnsRequest rqst) throws TException { @Override public void commit_txn(CommitTxnRequest rqst) throws TException { + // in replication flow, the write notification log table will be updated here. + if (rqst.isSetWriteEventInfos()) { + long targetTxnId = getTxnHandler().getTargetTxnId(rqst.getReplPolicy(), rqst.getTxnid()); + if (targetTxnId < 0) { + //looks like a retry + return; + } + for (WriteEventInfo writeEventInfo : rqst.getWriteEventInfos()) { + String[] filesAdded = ReplChangeManager.getListFromSeparatedString(writeEventInfo.getFiles()); + List partitionValue = null; + Partition ptnObj = null; + String root; + Table tbl = getTblObject(writeEventInfo.getDatabase(), writeEventInfo.getTable()); + + if (writeEventInfo.getPartition() != null && !writeEventInfo.getPartition().isEmpty()) { + partitionValue = Warehouse.getPartValuesFromPartName(writeEventInfo.getPartition()); + ptnObj = getPartitionObj(writeEventInfo.getDatabase(), writeEventInfo.getTable(), partitionValue, tbl); + root = ptnObj.getSd().getLocation(); + } else { + root = tbl.getSd().getLocation(); + } + + InsertEventRequestData insertData = new InsertEventRequestData(); + insertData.setReplace(true); + + // The files in the commit txn message during load will have files with path corresponding to source + // warehouse. Need to transform them to target warehouse using table or partition object location. + for (String file : filesAdded) { + String[] decodedPath = ReplChangeManager.decodeFileUri(file); + String name = (new Path(decodedPath[0])).getName(); + Path newPath = FileUtils.getTransformedPath(name, decodedPath[3], root); + insertData.addToFilesAdded(newPath.toUri().toString()); + insertData.addToSubDirectoryList(decodedPath[3]); + try { + insertData.addToFilesAddedChecksum(ReplChangeManager.checksumFor(newPath, newPath.getFileSystem(conf))); + } catch (IOException e) { + LOG.error("failed to get checksum for the file " + newPath + " with error: " + e.getMessage()); + throw new TException(e.getMessage()); + } + } + + WriteNotificationLogRequest wnRqst = new WriteNotificationLogRequest(targetTxnId, + writeEventInfo.getWriteId(), writeEventInfo.getDatabase(), writeEventInfo.getTable(), insertData); + if (partitionValue != null) { + wnRqst.setPartitionVals(partitionValue); + } + addTxnWriteNotificationLog(tbl, ptnObj, wnRqst); + } + } getTxnHandler().commitTxn(rqst); if (listeners != null && !listeners.isEmpty()) { MetaStoreListenerNotifier.notifyEvent(listeners, EventType.COMMIT_TXN, @@ -7104,6 +7154,42 @@ public AllocateTableWriteIdsResponse allocate_table_write_ids( return response; } + private void addTxnWriteNotificationLog(Table tableObj, Partition ptnObj, WriteNotificationLogRequest rqst) + throws MetaException { + String partition = ""; //Empty string is an invalid partition name. Can be used for non partitioned table. + if (ptnObj != null) { + partition = Warehouse.makePartName(tableObj.getPartitionKeys(), rqst.getPartitionVals()); + } + AcidWriteEvent event = new AcidWriteEvent(partition, tableObj, ptnObj, rqst); + getTxnHandler().addWriteNotificationLog(event); + if (listeners != null && !listeners.isEmpty()) { + MetaStoreListenerNotifier.notifyEvent(listeners, EventType.ACID_WRITE, event); + } + } + + private Table getTblObject(String db, String table) throws MetaException, NoSuchObjectException { + GetTableRequest req = new GetTableRequest(db, table); + req.setCapabilities(new ClientCapabilities(Lists.newArrayList(ClientCapability.TEST_CAPABILITY))); + return get_table_req(req).getTable(); + } + + private Partition getPartitionObj(String db, String table, List partitionVals, Table tableObj) + throws MetaException, NoSuchObjectException { + if (tableObj.isSetPartitionKeys() && !tableObj.getPartitionKeys().isEmpty()) { + return get_partition(db, table, partitionVals); + } + return null; + } + + @Override + public WriteNotificationLogResponse add_write_notification_log(WriteNotificationLogRequest rqst) + throws MetaException, NoSuchObjectException { + Table tableObj = getTblObject(rqst.getDb(), rqst.getTable()); + Partition ptnObj = getPartitionObj(rqst.getDb(), rqst.getTable(), rqst.getPartitionVals(), tableObj); + addTxnWriteNotificationLog(tableObj, ptnObj, rqst); + return new WriteNotificationLogResponse(); + } + @Override public LockResponse lock(LockRequest rqst) throws TException { return getTxnHandler().lock(rqst); diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java index fd7546e82a..a6cabcbd3d 100644 --- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java @@ -2493,10 +2493,8 @@ public void commitTxn(long txnid) } @Override - public void replCommitTxn(long srcTxnId, String replPolicy) + public void replCommitTxn(CommitTxnRequest rqst) throws NoSuchTxnException, TxnAbortedException, TException { - CommitTxnRequest rqst = new CommitTxnRequest(srcTxnId); - rqst.setReplPolicy(replPolicy); client.commit_txn(rqst); } @@ -2743,6 +2741,12 @@ public FireEventResponse fireListenerEvent(FireEventRequest rqst) throws TExcept return client.fire_listener_event(rqst); } + @InterfaceAudience.LimitedPrivate({"Apache Hive, HCatalog"}) + @Override + public void addWriteNotificationLog(WriteNotificationLogRequest rqst) throws TException { + client.add_write_notification_log(rqst); + } + /** * Creates a synchronized wrapper for any {@link IMetaStoreClient}. * This may be used by multi-threaded applications until we have diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java index 7ba286a5a6..3c62df1e19 100644 --- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java @@ -40,6 +40,7 @@ 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; @@ -125,6 +126,7 @@ 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.partition.spec.PartitionSpecProxy; import org.apache.hadoop.hive.metastore.utils.ObjectPair; import org.apache.thrift.TException; @@ -2856,8 +2858,8 @@ void commitTxn(long txnid) /** * Commit a transaction. This will also unlock any locks associated with * this transaction. - * @param srcTxnid id of transaction at source which is committed and to be replicated. - * @param replPolicy the replication policy to identify the source cluster + * @param rqst Information containing the txn info and write event information + * of transaction at source which is committed and to be replicated * @throws NoSuchTxnException if the requested transaction does not exist. * This can result fro the transaction having timed out and been deleted by * the compactor. @@ -2865,7 +2867,7 @@ void commitTxn(long txnid) * aborted. This can result from the transaction timing out. * @throws TException */ - void replCommitTxn(long srcTxnid, String replPolicy) + void replCommitTxn(CommitTxnRequest rqst) throws NoSuchTxnException, TxnAbortedException, TException; /** @@ -3178,6 +3180,14 @@ NotificationEventsCountResponse getNotificationEventsCount(NotificationEventsCou @InterfaceAudience.LimitedPrivate({"Apache Hive, HCatalog"}) FireEventResponse fireListenerEvent(FireEventRequest request) throws TException; + /** + * Add a event related to write operations in an ACID table. + * @param rqst message containing information for acid write operation. + * @throws TException + */ + @InterfaceAudience.LimitedPrivate({"Apache Hive, HCatalog"}) + void addWriteNotificationLog(WriteNotificationLogRequest rqst) throws TException; + class IncompatibleMetastoreException extends MetaException { IncompatibleMetastoreException(String message) { super(message); diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreEventListener.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreEventListener.java index 92505af4f8..abcb097ebd 100644 --- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreEventListener.java +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreEventListener.java @@ -54,6 +54,7 @@ import org.apache.hadoop.hive.metastore.events.CommitTxnEvent; import org.apache.hadoop.hive.metastore.events.AbortTxnEvent; import org.apache.hadoop.hive.metastore.events.AllocWriteIdEvent; +import org.apache.hadoop.hive.metastore.events.AcidWriteEvent; import org.apache.hadoop.hive.metastore.tools.SQLGenerator; import java.sql.Connection; @@ -278,6 +279,17 @@ public void onAllocWriteId(AllocWriteIdEvent allocWriteIdEvent, Connection dbCon throws MetaException { } + /** + * This will be called to perform acid write operation. + * @param acidWriteEvent event to be processed + * @param dbConn jdbc connection to remote meta store db. + * @param sqlGenerator helper class to generate db specific sql string. + * @throws MetaException + */ + public void onAcidWrite(AcidWriteEvent acidWriteEvent, Connection dbConn, SQLGenerator sqlGenerator) + throws MetaException { + } + @Override public Configuration getConf() { return this.conf; diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreListenerNotifier.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreListenerNotifier.java index b2856e2520..fe98a1b1dd 100644 --- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreListenerNotifier.java +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreListenerNotifier.java @@ -53,6 +53,7 @@ import org.apache.hadoop.hive.metastore.events.CommitTxnEvent; import org.apache.hadoop.hive.metastore.events.AbortTxnEvent; import org.apache.hadoop.hive.metastore.events.AllocWriteIdEvent; +import org.apache.hadoop.hive.metastore.events.AcidWriteEvent; import org.apache.hadoop.hive.metastore.tools.SQLGenerator; import java.sql.Connection; import java.util.List; @@ -218,6 +219,8 @@ public void notify(MetaStoreEventListener listener, ListenerEvent event) throws (listener, event) -> listener.onAbortTxn((AbortTxnEvent) event, null, null)) .put(EventType.ALLOC_WRITE_ID, (listener, event) -> listener.onAllocWriteId((AllocWriteIdEvent) event, null, null)) + .put(EventType.ACID_WRITE, + (listener, event) -> listener.onAcidWrite((AcidWriteEvent) event, null, null)) .build() ); @@ -238,6 +241,9 @@ void notify(MetaStoreEventListener listener, ListenerEvent event, Connection dbC .put(EventType.ALLOC_WRITE_ID, (listener, event, dbConn, sqlGenerator) -> listener.onAllocWriteId((AllocWriteIdEvent) event, dbConn, sqlGenerator)) + .put(EventType.ACID_WRITE, + (listener, event, dbConn, sqlGenerator) -> + listener.onAcidWrite((AcidWriteEvent) event, dbConn, sqlGenerator)) .build() ); diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java index b15d89d5c6..8dfe025145 100644 --- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java @@ -157,6 +157,7 @@ import org.apache.hadoop.hive.metastore.api.WMResourcePlanStatus; import org.apache.hadoop.hive.metastore.api.WMTrigger; import org.apache.hadoop.hive.metastore.api.WMValidateResourcePlanResponse; +import org.apache.hadoop.hive.metastore.api.WriteEventInfo; import org.apache.hadoop.hive.metastore.conf.MetastoreConf; import org.apache.hadoop.hive.metastore.conf.MetastoreConf.ConfVars; import org.apache.hadoop.hive.metastore.datasource.DataSourceProvider; @@ -204,6 +205,7 @@ import org.apache.hadoop.hive.metastore.model.MWMResourcePlan; import org.apache.hadoop.hive.metastore.model.MWMResourcePlan.Status; import org.apache.hadoop.hive.metastore.model.MWMTrigger; +import org.apache.hadoop.hive.metastore.model.MTxnWriteNotificationLog; import org.apache.hadoop.hive.metastore.parser.ExpressionTree; import org.apache.hadoop.hive.metastore.parser.ExpressionTree.FilterBuilder; import org.apache.hadoop.hive.metastore.partition.spec.PartitionSpecProxy; @@ -9413,6 +9415,64 @@ public NotificationEventResponse getNextNotification(NotificationEventRequest rq } } + @Override + public void cleanWriteNotificationEvents(int olderThan) { + boolean commited = false; + Query query = null; + try { + openTransaction(); + long tmp = System.currentTimeMillis() / 1000 - olderThan; + int tooOld = (tmp > Integer.MAX_VALUE) ? 0 : (int) tmp; + query = pm.newQuery(MTxnWriteNotificationLog.class, "eventTime < tooOld"); + query.declareParameters("java.lang.Integer tooOld"); + Collection toBeRemoved = (Collection) query.execute(tooOld); + if (CollectionUtils.isNotEmpty(toBeRemoved)) { + pm.deletePersistentAll(toBeRemoved); + } + commited = commitTransaction(); + } finally { + rollbackAndCleanup(commited, query); + } + } + + @Override + public List getAllWriteEventInfo(long txnId, String dbName, String tableName) throws MetaException { + List writeEventInfoList = null; + boolean commited = false; + Query query = null; + try { + openTransaction(); + List parameterVals = new ArrayList<>(); + StringBuilder filterBuilder = new StringBuilder(" txnId == " + Long.toString(txnId)); + if (dbName != null && !dbName.equals("*")) { // * means get all database, so no need to add filter + appendSimpleCondition(filterBuilder, "database", new String[]{dbName}, parameterVals); + } + if (tableName != null && !tableName.equals("*")) { + appendSimpleCondition(filterBuilder, "table", new String[]{tableName}, parameterVals); + } + query = pm.newQuery(MTxnWriteNotificationLog.class, filterBuilder.toString()); + query.setOrdering("database,table ascending"); + List mplans = (List)query.executeWithArray( + parameterVals.toArray(new String[parameterVals.size()])); + pm.retrieveAll(mplans); + commited = commitTransaction(); + if (mplans != null && mplans.size() > 0) { + writeEventInfoList = Lists.newArrayList(); + for (MTxnWriteNotificationLog mplan : mplans) { + WriteEventInfo writeEventInfo = new WriteEventInfo(mplan.getWriteId(), mplan.getDatabase(), + mplan.getTable(), mplan.getFiles()); + writeEventInfo.setPartition(mplan.getPartition()); + writeEventInfo.setPartitionObj(mplan.getPartObject()); + writeEventInfo.setTableObj(mplan.getTableObject()); + writeEventInfoList.add(writeEventInfo); + } + } + } finally { + rollbackAndCleanup(commited, query); + } + return writeEventInfoList; + } + private void prepareQuotes() throws SQLException { if (dbType == DatabaseProduct.MYSQL) { assert pm.currentTransaction().isActive(); diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/RawStore.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/RawStore.java index 283798cd77..47db9a18ed 100644 --- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/RawStore.java +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/RawStore.java @@ -22,6 +22,7 @@ import org.apache.hadoop.hive.metastore.api.ISchemaName; import org.apache.hadoop.hive.metastore.api.SchemaVersionDescriptor; import org.apache.hadoop.hive.metastore.api.WMFullResourcePlan; +import org.apache.hadoop.hive.metastore.api.WriteEventInfo; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; @@ -1639,4 +1640,17 @@ void alterSchemaVersion(SchemaVersionDescriptor version, SchemaVersion newVersio /** Removes outdated statistics. */ int deleteRuntimeStats(int maxRetainSecs) throws MetaException; + /** + * Remove older notification events. + * @param olderThan Remove any events older than a given number of seconds + */ + void cleanWriteNotificationEvents(int olderThan); + + /** + * Get all write events for a specific transaction . + * @param txnId get all the events done by this transaction + * @param dbName the name of db for which dump is being taken + * @param tableName the name of the table for which the dump is being taken + */ + List getAllWriteEventInfo(long txnId, String dbName, String tableName) throws MetaException; } diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/ReplChangeManager.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/ReplChangeManager.java index f7018c2d0b..ac1d3c87bc 100644 --- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/ReplChangeManager.java +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/ReplChangeManager.java @@ -59,6 +59,7 @@ static final String REMAIN_IN_TRASH_TAG = "user.remain-in-trash"; private static final String URI_FRAGMENT_SEPARATOR = "#"; public static final String SOURCE_OF_REPLICATION = "repl.source.for"; + private static final String TXN_WRITE_EVENT_FILE_SEPARATOR = "]"; public enum RecycleType { MOVE, @@ -472,7 +473,6 @@ static void scheduleCMClearer(Configuration conf) { } public static boolean isSourceOfReplication(Database db) { - // Can not judge, so assuming replication is not enabled. assert (db != null); String replPolicyIds = getReplPolicyIdString(db); return !StringUtils.isEmpty(replPolicyIds); @@ -490,4 +490,12 @@ public static String getReplPolicyIdString(Database db) { } return null; } + + public static String joinWithSeparator(Iterable strings) { + return org.apache.hadoop.util.StringUtils.join(TXN_WRITE_EVENT_FILE_SEPARATOR, strings); + } + + public static String[] getListFromSeparatedString(String commaSeparatedString) { + return commaSeparatedString.split("\\s*" + TXN_WRITE_EVENT_FILE_SEPARATOR + "\\s*"); + } } diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java index 9da8d728f9..2cb8431b93 100644 --- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java @@ -109,6 +109,7 @@ import org.apache.hadoop.hive.metastore.api.WMFullResourcePlan; import org.apache.hadoop.hive.metastore.api.WMMapping; import org.apache.hadoop.hive.metastore.api.WMPool; +import org.apache.hadoop.hive.metastore.api.WriteEventInfo; 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; @@ -2405,6 +2406,17 @@ public long getCacheUpdateCount() { return sharedCache.getUpdateCount(); } + @Override + public void cleanWriteNotificationEvents(int olderThan) { + rawStore.cleanWriteNotificationEvents(olderThan); + } + + + @Override + public List getAllWriteEventInfo(long txnId, String dbName, String tableName) throws MetaException { + return rawStore.getAllWriteEventInfo(txnId, dbName, tableName); + } + static boolean isNotInBlackList(String catName, String dbName, String tblName) { String str = Warehouse.getCatalogQualifiedTableName(catName, dbName, tblName); for (Pattern pattern : blacklistPatterns) { diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/events/AcidWriteEvent.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/events/AcidWriteEvent.java new file mode 100644 index 0000000000..001179a3f8 --- /dev/null +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/events/AcidWriteEvent.java @@ -0,0 +1,91 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.hadoop.hive.metastore.events; + +import org.apache.hadoop.classification.InterfaceAudience; +import org.apache.hadoop.classification.InterfaceStability; +import org.apache.hadoop.hive.metastore.api.Partition; +import org.apache.hadoop.hive.metastore.api.Table; +import org.apache.hadoop.hive.metastore.api.WriteNotificationLogRequest; +import org.apache.hadoop.hive.metastore.utils.StringUtils; + +import java.util.List; + +/** + * AcidWriteEvent + * Event generated for acid write operations + */ +@InterfaceAudience.Public +@InterfaceStability.Stable +public class AcidWriteEvent extends ListenerEvent { + private final WriteNotificationLogRequest writeNotificationLogRequest; + private final String partition; + private final Table tableObj; + private final Partition partitionObj; + + public AcidWriteEvent(String partition, Table tableObj, Partition partitionObj, + WriteNotificationLogRequest writeNotificationLogRequest) { + super(true, null); + this.writeNotificationLogRequest = writeNotificationLogRequest; + this.partition = partition; + this.tableObj = tableObj; + this.partitionObj = partitionObj; + } + + public Long getTxnId() { + return writeNotificationLogRequest.getTxnId(); + } + + public List getFiles() { + return writeNotificationLogRequest.getFileInfo().getFilesAdded(); + } + + public List getChecksums() { + return writeNotificationLogRequest.getFileInfo().getFilesAddedChecksum(); + } + + public String getDatabase() { + return StringUtils.normalizeIdentifier(writeNotificationLogRequest.getDb()); + } + + public String getTable() { + return StringUtils.normalizeIdentifier(writeNotificationLogRequest.getTable()); + } + + public String getPartition() { + return partition; //Don't normalize partition value, as its case sensitive. + } + + public Long getWriteId() { + return writeNotificationLogRequest.getWriteId(); + } + + public Table getTableObj() { + return tableObj; + } + + public Partition getPartitionObj() { + return partitionObj; + } + + public List getSubDirs() { + return writeNotificationLogRequest.getFileInfo().getSubDirectoryList(); + } +} + diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/AcidWriteMessage.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/AcidWriteMessage.java new file mode 100644 index 0000000000..e2c9ccf53d --- /dev/null +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/AcidWriteMessage.java @@ -0,0 +1,50 @@ +/* * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.hadoop.hive.metastore.messaging; + +import org.apache.hadoop.hive.metastore.api.Partition; +import org.apache.hadoop.hive.metastore.api.Table; +import java.util.List; + +/** + * HCat message sent when an ACID write is done. + */ +public abstract class AcidWriteMessage extends EventMessage { + + protected AcidWriteMessage() { + super(EventType.ACID_WRITE); + } + + public abstract Long getTxnId(); + + public abstract String getTable(); + + public abstract Long getWriteId(); + + public abstract String getPartition(); + + public abstract List getFiles(); + + public abstract Table getTableObj() throws Exception; + + public abstract Partition getPartitionObj() throws Exception; + + public abstract String getTableObjStr(); + + public abstract String getPartitionObjStr(); +} diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/CommitTxnMessage.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/CommitTxnMessage.java index 49004f2260..9733039f06 100644 --- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/CommitTxnMessage.java +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/CommitTxnMessage.java @@ -17,6 +17,12 @@ package org.apache.hadoop.hive.metastore.messaging; +import org.apache.hadoop.hive.metastore.api.Partition; +import org.apache.hadoop.hive.metastore.api.Table; +import org.apache.hadoop.hive.metastore.api.WriteEventInfo; + +import java.util.List; + /** * HCat message sent when an commit transaction is done. */ @@ -33,4 +39,21 @@ protected CommitTxnMessage() { */ public abstract Long getTxnId(); + public abstract List getWriteIds(); + + public abstract List getDatabases(); + + public abstract List getTables(); + + public abstract List getPartitions(); + + public abstract Table getTableObj(int idx) throws Exception; + + public abstract Partition getPartitionObj(int idx) throws Exception; + + public abstract String getFiles(int idx); + + public abstract List getFilesList(); + + public abstract void addWriteEventInfo(List writeEventInfoList); } diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/EventMessage.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/EventMessage.java index ffbce1d13b..a3c315d581 100644 --- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/EventMessage.java +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/EventMessage.java @@ -59,7 +59,8 @@ OPEN_TXN(MessageFactory.OPEN_TXN_EVENT), COMMIT_TXN(MessageFactory.COMMIT_TXN_EVENT), ABORT_TXN(MessageFactory.ABORT_TXN_EVENT), - ALLOC_WRITE_ID(MessageFactory.ALLOC_WRITE_ID_EVENT); + ALLOC_WRITE_ID(MessageFactory.ALLOC_WRITE_ID_EVENT), + ACID_WRITE(MessageFactory.ACID_WRITE_EVENT); private String typeString; diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/MessageDeserializer.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/MessageDeserializer.java index ca335790ce..b701d84ac4 100644 --- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/MessageDeserializer.java +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/MessageDeserializer.java @@ -70,6 +70,10 @@ public EventMessage getEventMessage(String eventTypeString, String messageBody) return getCommitTxnMessage(messageBody); case ABORT_TXN: return getAbortTxnMessage(messageBody); + case ALLOC_WRITE_ID: + return getAllocWriteIdMessage(messageBody); + case ACID_WRITE: + return getAcidWriteMessage(messageBody); default: throw new IllegalArgumentException("Unsupported event-type: " + eventTypeString); } @@ -186,6 +190,11 @@ public EventMessage getEventMessage(String eventTypeString, String messageBody) */ public abstract AllocWriteIdMessage getAllocWriteIdMessage(String messageBody); + /* + * Method to de-serialize AcidWriteMessage instance. + */ + public abstract AcidWriteMessage getAcidWriteMessage(String messageBody); + // Protection against construction. protected MessageDeserializer() {} } diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/MessageFactory.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/MessageFactory.java index 75ca6eceb5..a3827b3334 100644 --- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/MessageFactory.java +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/MessageFactory.java @@ -33,6 +33,7 @@ import org.apache.hadoop.hive.metastore.api.TxnToWriteId; import org.apache.hadoop.hive.metastore.conf.MetastoreConf; import org.apache.hadoop.hive.metastore.conf.MetastoreConf.ConfVars; +import org.apache.hadoop.hive.metastore.events.AcidWriteEvent; import org.apache.hadoop.hive.metastore.utils.JavaUtils; import java.util.Iterator; @@ -73,6 +74,7 @@ public static final String COMMIT_TXN_EVENT = "COMMIT_TXN"; public static final String ABORT_TXN_EVENT = "ABORT_TXN"; public static final String ALLOC_WRITE_ID_EVENT = "ALLOC_WRITE_ID_EVENT"; + public static final String ACID_WRITE_EVENT = "ACID_WRITE_EVENT"; private static MessageFactory instance = null; @@ -323,4 +325,14 @@ public abstract DropConstraintMessage buildDropConstraintMessage(String dbName, public abstract CreateCatalogMessage buildCreateCatalogMessage(Catalog catalog); public abstract DropCatalogMessage buildDropCatalogMessage(Catalog catalog); + + /** + * Factory method for building acid write message + * + * + * @param acidWriteEvent information related to the acid write operation + * @param files files added by this write operation + * @return instance of AcidWriteMessage + */ + public abstract AcidWriteMessage buildAcidWriteMessage(AcidWriteEvent acidWriteEvent, Iterator files); } diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/json/JSONAcidWriteMessage.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/json/JSONAcidWriteMessage.java new file mode 100644 index 0000000000..515a2cb6d6 --- /dev/null +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/json/JSONAcidWriteMessage.java @@ -0,0 +1,150 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.hadoop.hive.metastore.messaging.json; + +import com.google.common.collect.Lists; +import org.apache.hadoop.hive.metastore.api.Partition; +import org.apache.hadoop.hive.metastore.api.Table; +import org.apache.hadoop.hive.metastore.events.AcidWriteEvent; +import org.apache.hadoop.hive.metastore.messaging.AcidWriteMessage; +import org.apache.thrift.TException; +import org.codehaus.jackson.annotate.JsonProperty; +import java.util.Iterator; +import java.util.List; + +/** + * JSON implementation of AcidWriteMessage + */ +public class JSONAcidWriteMessage extends AcidWriteMessage { + + @JsonProperty + private Long txnid, writeId, timestamp; + + @JsonProperty + private String server, servicePrincipal, database, table, partition, tableObjJson, partitionObjJson; + + @JsonProperty + private List files; + + /** + * Default constructor, needed for Jackson. + */ + public JSONAcidWriteMessage() { + } + + public JSONAcidWriteMessage(String server, String servicePrincipal, Long timestamp, AcidWriteEvent acidWriteEvent, + Iterator files) { + this.timestamp = timestamp; + this.txnid = acidWriteEvent.getTxnId(); + this.server = server; + this.servicePrincipal = servicePrincipal; + this.database = acidWriteEvent.getDatabase(); + this.table = acidWriteEvent.getTable(); + this.writeId = acidWriteEvent.getWriteId(); + this.partition = acidWriteEvent.getPartition(); + try { + this.tableObjJson = JSONMessageFactory.createTableObjJson(acidWriteEvent.getTableObj()); + if (acidWriteEvent.getPartitionObj() != null) { + this.partitionObjJson = JSONMessageFactory.createPartitionObjJson(acidWriteEvent.getPartitionObj()); + } else { + this.partitionObjJson = null; + } + } catch (TException e) { + throw new IllegalArgumentException("Could not serialize JSONAcidWriteMessage : ", e); + } + this.files = Lists.newArrayList(files); + } + + @Override + public Long getTxnId() { + return txnid; + } + + @Override + public Long getTimestamp() { + return timestamp; + } + + @Override + public String getDB() { + return database; + } + + @Override + public String getServicePrincipal() { + return servicePrincipal; + } + + @Override + public String getServer() { + return server; + } + + @Override + public String getTable() { + return table; + } + + @Override + public Long getWriteId() { + return writeId; + } + + @Override + public String getPartition() { + return partition; + } + + @Override + public List getFiles() { + return files; + } + + @Override + public Table getTableObj() throws Exception { + return (tableObjJson == null) ? null : (Table) JSONMessageFactory.getTObj(tableObjJson, Table.class); + } + + @Override + public Partition getPartitionObj() throws Exception { + return ((partitionObjJson == null) ? null : + (Partition) JSONMessageFactory.getTObj(partitionObjJson, Partition.class)); + } + + @Override + public String getTableObjStr() { + return tableObjJson; + } + + @Override + public String getPartitionObjStr() { + return partitionObjJson; + } + + @Override + public String toString() { + try { + return JSONMessageDeserializer.mapper.writeValueAsString(this); + } catch (Exception exception) { + throw new IllegalArgumentException("Could not serialize: ", exception); + } + } +} + diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/json/JSONCommitTxnMessage.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/json/JSONCommitTxnMessage.java index 595a3d1b57..6082b8eb42 100644 --- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/json/JSONCommitTxnMessage.java +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/json/JSONCommitTxnMessage.java @@ -18,9 +18,15 @@ */ package org.apache.hadoop.hive.metastore.messaging.json; +import com.google.common.collect.Lists; +import org.apache.hadoop.hive.metastore.api.Partition; +import org.apache.hadoop.hive.metastore.api.Table; +import org.apache.hadoop.hive.metastore.api.WriteEventInfo; import org.apache.hadoop.hive.metastore.messaging.CommitTxnMessage; import org.codehaus.jackson.annotate.JsonProperty; +import java.util.List; + /** * JSON implementation of CommitTxnMessage */ @@ -38,6 +44,12 @@ @JsonProperty private String servicePrincipal; + @JsonProperty + private List writeIds; + + @JsonProperty + private List databases, tables, partitions, tableObjs, partitionObjs, files; + /** * Default constructor, needed for Jackson. */ @@ -49,6 +61,13 @@ public JSONCommitTxnMessage(String server, String servicePrincipal, Long txnid, this.txnid = txnid; this.server = server; this.servicePrincipal = servicePrincipal; + this.databases = null; + this.tables = null; + this.writeIds = null; + this.partitions = null; + this.tableObjs = null; + this.partitionObjs = null; + this.files = null; } @Override @@ -76,6 +95,82 @@ public String getServer() { return server; } + @Override + public List getWriteIds() { + return writeIds; + } + + @Override + public List getDatabases() { + return databases; + } + + @Override + public List getTables() { + return tables; + } + + @Override + public List getPartitions() { + return partitions; + } + + @Override + public Table getTableObj(int idx) throws Exception { + return tableObjs == null ? null : (Table) JSONMessageFactory.getTObj(tableObjs.get(idx), Table.class); + } + + @Override + public Partition getPartitionObj(int idx) throws Exception { + return (partitionObjs == null ? null : (partitionObjs.get(idx) == null ? null : + (Partition)JSONMessageFactory.getTObj(partitionObjs.get(idx), Partition.class))); + } + + @Override + public String getFiles(int idx) { + return files == null ? null : files.get(idx); + } + + @Override + public List getFilesList() { + return files; + } + + @Override + public void addWriteEventInfo(List writeEventInfoList) { + if (this.databases == null) { + this.databases = Lists.newArrayList(); + } + if (this.tables == null) { + this.tables = Lists.newArrayList(); + } + if (this.writeIds == null) { + this.writeIds = Lists.newArrayList(); + } + if (this.tableObjs == null) { + this.tableObjs = Lists.newArrayList(); + } + if (this.partitions == null) { + this.partitions = Lists.newArrayList(); + } + if (this.partitionObjs == null) { + this.partitionObjs = Lists.newArrayList(); + } + if (this.files == null) { + this.files = Lists.newArrayList(); + } + + for (WriteEventInfo writeEventInfo : writeEventInfoList) { + this.databases.add(writeEventInfo.getDatabase()); + this.tables.add(writeEventInfo.getTable()); + this.writeIds.add(writeEventInfo.getWriteId()); + this.partitions.add(writeEventInfo.getPartition()); + this.tableObjs.add(writeEventInfo.getTableObj()); + this.partitionObjs.add(writeEventInfo.getPartitionObj()); + this.files.add(writeEventInfo.getFiles()); + } + } + @Override public String toString() { try { diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/json/JSONMessageDeserializer.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/json/JSONMessageDeserializer.java index f54e24d41f..be6b7513cd 100644 --- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/json/JSONMessageDeserializer.java +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/json/JSONMessageDeserializer.java @@ -41,6 +41,7 @@ import org.apache.hadoop.hive.metastore.messaging.CommitTxnMessage; import org.apache.hadoop.hive.metastore.messaging.AbortTxnMessage; import org.apache.hadoop.hive.metastore.messaging.AllocWriteIdMessage; +import org.apache.hadoop.hive.metastore.messaging.AcidWriteMessage; import org.codehaus.jackson.map.DeserializationConfig; import org.codehaus.jackson.map.ObjectMapper; import org.codehaus.jackson.map.SerializationConfig; @@ -259,4 +260,12 @@ public AllocWriteIdMessage getAllocWriteIdMessage(String messageBody) { throw new IllegalArgumentException("Could not construct AllocWriteIdMessage", e); } } + + public AcidWriteMessage getAcidWriteMessage(String messageBody) { + try { + return mapper.readValue(messageBody, JSONAcidWriteMessage.class); + } catch (Exception e) { + throw new IllegalArgumentException("Could not construct AcidWriteMessage", e); + } + } } diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/json/JSONMessageFactory.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/json/JSONMessageFactory.java index f0c5f4f287..74869344aa 100644 --- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/json/JSONMessageFactory.java +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/json/JSONMessageFactory.java @@ -39,6 +39,7 @@ import org.apache.hadoop.hive.metastore.api.SQLUniqueConstraint; import org.apache.hadoop.hive.metastore.api.Table; import org.apache.hadoop.hive.metastore.api.TxnToWriteId; +import org.apache.hadoop.hive.metastore.events.AcidWriteEvent; import org.apache.hadoop.hive.metastore.messaging.AddForeignKeyMessage; import org.apache.hadoop.hive.metastore.messaging.AddNotNullConstraintMessage; import org.apache.hadoop.hive.metastore.messaging.AddPartitionMessage; @@ -65,6 +66,7 @@ import org.apache.hadoop.hive.metastore.messaging.CommitTxnMessage; import org.apache.hadoop.hive.metastore.messaging.AbortTxnMessage; import org.apache.hadoop.hive.metastore.messaging.AllocWriteIdMessage; +import org.apache.hadoop.hive.metastore.messaging.AcidWriteMessage; import org.apache.thrift.TBase; import org.apache.thrift.TDeserializer; import org.apache.thrift.TException; @@ -223,11 +225,17 @@ public AbortTxnMessage buildAbortTxnMessage(Long txnId) { return new JSONAbortTxnMessage(MS_SERVER_URL, MS_SERVICE_PRINCIPAL, txnId, now()); } + @Override public AllocWriteIdMessage buildAllocWriteIdMessage(List txnToWriteIdList, String dbName, String tableName) { return new JSONAllocWriteIdMessage(MS_SERVER_URL, MS_SERVICE_PRINCIPAL, txnToWriteIdList, dbName, tableName, now()); } + @Override + public AcidWriteMessage buildAcidWriteMessage(AcidWriteEvent acidWriteEvent, Iterator files) { + return new JSONAcidWriteMessage(MS_SERVER_URL, MS_SERVICE_PRINCIPAL, now(), acidWriteEvent, files); + } + private long now() { return System.currentTimeMillis() / 1000; } diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/model/MTxnWriteNotificationLog.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/model/MTxnWriteNotificationLog.java new file mode 100644 index 0000000000..f5ca3862f6 --- /dev/null +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/model/MTxnWriteNotificationLog.java @@ -0,0 +1,123 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.hadoop.hive.metastore.model; + +/** + * MTxnWriteNotificationLog + * DN table for ACID write events. + */ +public class MTxnWriteNotificationLog { + private long txnId; + private long writeId; + private int eventTime; + private String database; + private String table; + private String partition; + private String tableObject; + private String partObject; + private String files; + + public MTxnWriteNotificationLog() { + } + + public MTxnWriteNotificationLog(long txnId, long writeId, int eventTime, String database, String table, + String partition, String tableObject, String partObject, String files) { + this.txnId = txnId; + this.writeId = writeId; + this.eventTime = eventTime; + this.database = database; + this.table = table; + this.partition = partition; + this.tableObject = tableObject; + this.partObject = partObject; + this.files = files; + } + + public long getTxnId() { + return txnId; + } + + public void setTxnId(long txnId) { + this.txnId = txnId; + } + + public long getWriteId() { + return writeId; + } + + public void setWriteId(long writeId) { + this.writeId = writeId; + } + + public int getEventTime() { + return eventTime; + } + + public void setEventTime(int eventTime) { + this.eventTime = eventTime; + } + + public String getDatabase() { + return database; + } + + public void setDatabase(String database) { + this.database = database; + } + + public String getTable() { + return table; + } + + public void setTable(String table) { + this.table = table; + } + + public String getPartition() { + return partition; + } + + public void setPartition(String partition) { + this.partition = partition; + } + + public String getTableObject() { + return tableObject; + } + + public void setTableObject(String tableObject) { + this.tableObject = tableObject; + } + + public String getPartObject() { + return partObject; + } + + public void setPartObject(String partObject) { + this.partObject = partObject; + } + + public String getFiles() { + return files; + } + + public void setFiles(String files) { + this.files = files; + } +} + diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/tools/SQLGenerator.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/tools/SQLGenerator.java index b23a6d7709..d0ac7dbe67 100644 --- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/tools/SQLGenerator.java +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/tools/SQLGenerator.java @@ -175,4 +175,13 @@ public DatabaseProduct getDbProduct() { return dbProduct; } + // This is required for SQL executed directly. If the SQL has double quotes then some dbs tend to + // remove the escape characters and store the variable without double quote. + public String addEscapeCharacters(String s) { + if (dbProduct == DatabaseProduct.MYSQL) { + return s.replaceAll("\\\\", "\\\\\\\\"); + } + return s; + } + } diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnDbUtil.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnDbUtil.java index 4597166359..b33e79b1dc 100644 --- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnDbUtil.java +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnDbUtil.java @@ -244,6 +244,34 @@ public static void prepDb(Configuration conf) throws Exception { stmt.execute("INSERT INTO \"APP\".\"NOTIFICATION_SEQUENCE\" (\"NNI_ID\", \"NEXT_EVENT_ID\")" + " SELECT * FROM (VALUES (1,1)) tmp_table WHERE NOT EXISTS ( SELECT " + "\"NEXT_EVENT_ID\" FROM \"APP\".\"NOTIFICATION_SEQUENCE\")"); + + try { + stmt.execute("CREATE TABLE TXN_WRITE_NOTIFICATION_LOG (" + + "WNL_ID bigint NOT NULL," + + "WNL_TXNID bigint NOT NULL," + + "WNL_WRITEID bigint NOT NULL," + + "WNL_DATABASE varchar(128) NOT NULL," + + "WNL_TABLE varchar(128) NOT NULL," + + "WNL_PARTITION varchar(1024) NOT NULL," + + "WNL_TABLE_OBJ clob NOT NULL," + + "WNL_PARTITION_OBJ clob," + + "WNL_FILES clob," + + "WNL_EVENT_TIME integer NOT NULL," + + "PRIMARY KEY (WNL_TXNID, WNL_DATABASE, WNL_TABLE, WNL_PARTITION))" + ); + } catch (SQLException e) { + if (e.getMessage() != null && e.getMessage().contains("already exists")) { + LOG.info("TXN_WRITE_NOTIFICATION_LOG table already exist, ignoring"); + } else { + throw e; + } + } + + stmt.execute("INSERT INTO \"APP\".\"SEQUENCE_TABLE\" (\"SEQUENCE_NAME\", \"NEXT_VAL\") " + + "SELECT * FROM (VALUES ('org.apache.hadoop.hive.metastore.model.MTxnWriteNotificationLog', " + + "1)) tmp_table WHERE NOT EXISTS ( SELECT \"NEXT_VAL\" FROM \"APP\"" + + ".\"SEQUENCE_TABLE\" WHERE \"SEQUENCE_NAME\" = 'org.apache.hadoop.hive.metastore" + + ".model.MTxnWriteNotificationLog')"); } catch (SQLException e) { try { conn.rollback(); diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnHandler.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnHandler.java index d1b0d32614..952e40d08e 100644 --- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnHandler.java +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnHandler.java @@ -115,6 +115,7 @@ import org.apache.hadoop.hive.metastore.api.TxnState; import org.apache.hadoop.hive.metastore.api.TxnToWriteId; import org.apache.hadoop.hive.metastore.api.UnlockRequest; +import org.apache.hadoop.hive.metastore.api.WriteEventInfo; import org.apache.hadoop.hive.metastore.conf.MetastoreConf; import org.apache.hadoop.hive.metastore.conf.MetastoreConf.ConfVars; import org.apache.hadoop.hive.metastore.datasource.DataSourceProvider; @@ -123,6 +124,7 @@ import org.apache.hadoop.hive.metastore.events.AllocWriteIdEvent; import org.apache.hadoop.hive.metastore.events.CommitTxnEvent; import org.apache.hadoop.hive.metastore.events.OpenTxnEvent; +import org.apache.hadoop.hive.metastore.events.AcidWriteEvent; import org.apache.hadoop.hive.metastore.messaging.EventMessage; import org.apache.hadoop.hive.metastore.metrics.Metrics; import org.apache.hadoop.hive.metastore.metrics.MetricsConstants; @@ -728,6 +730,38 @@ public OpenTxnsResponse openTxns(OpenTxnRequest rqst) throws MetaException { } } + @Override + @RetrySemantics.Idempotent + public long getTargetTxnId(String replPolicy, long sourceTxnId) throws MetaException { + try { + Connection dbConn = null; + Statement stmt = null; + try { + lockInternal(); + dbConn = getDbConn(Connection.TRANSACTION_READ_COMMITTED); + stmt = dbConn.createStatement(); + List targetTxnIds = getTargetTxnIdList(replPolicy, Collections.singletonList(sourceTxnId), stmt); + if (targetTxnIds.isEmpty()) { + LOG.info("Txn {} not present for repl policy {}", sourceTxnId, replPolicy); + return -1; + } + assert (targetTxnIds.size() == 1); + return targetTxnIds.get(0); + } catch (SQLException e) { + LOG.debug("Going to rollback"); + rollbackDBConn(dbConn); + checkRetryable(dbConn, e, "getTargetTxnId(" + replPolicy + sourceTxnId + ")"); + throw new MetaException("Unable to get target transaction id " + + StringUtils.stringifyException(e)); + } finally { + close(null, stmt, dbConn); + unlockInternal(); + } + } catch (RetryException e) { + return getTargetTxnId(replPolicy, sourceTxnId); + } + } + @Override @RetrySemantics.Idempotent public void abortTxn(AbortTxnRequest rqst) throws NoSuchTxnException, MetaException, TxnAbortedException { @@ -928,10 +962,17 @@ public void commitTxn(CommitTxnRequest rqst) shouldNeverHappen(txnid); //dbConn is rolled back in finally{} } - String conflictSQLSuffix = "from TXN_COMPONENTS where tc_txnid=" + txnid + " and tc_operation_type IN(" + - quoteChar(OpertaionType.UPDATE.sqlConst) + "," + quoteChar(OpertaionType.DELETE.sqlConst) + ")"; - rs = stmt.executeQuery(sqlGenerator.addLimitClause(1, "tc_operation_type " + conflictSQLSuffix)); - if (rs.next()) { + + String conflictSQLSuffix = null; + if (rqst.isSetReplPolicy()) { + rs = null; + } else { + conflictSQLSuffix = "from TXN_COMPONENTS where tc_txnid=" + txnid + " and tc_operation_type IN(" + + quoteChar(OpertaionType.UPDATE.sqlConst) + "," + quoteChar(OpertaionType.DELETE.sqlConst) + ")"; + rs = stmt.executeQuery(sqlGenerator.addLimitClause(1, + "tc_operation_type " + conflictSQLSuffix)); + } + if (rs != null && rs.next()) { isUpdateDelete = true; close(rs); //if here it means currently committing txn performed update/delete and we should check WW conflict @@ -1020,23 +1061,52 @@ public void commitTxn(CommitTxnRequest rqst) * Consider: if RO txn is after a W txn, then RO's openTxns() will be mutexed with W's * commitTxn() because both do S4U on NEXT_TXN_ID and thus RO will see result of W txn. * If RO < W, then there is no reads-from relationship. + * In replication flow we don't expect any write write conflict as it should have been handled at source. */ } - // Move the record from txn_components into completed_txn_components so that the compactor - // knows where to look to compact. - String s = "insert into COMPLETED_TXN_COMPONENTS (ctc_txnid, ctc_database, " + - "ctc_table, ctc_partition, ctc_writeid) select tc_txnid, tc_database, tc_table, " + - "tc_partition, tc_writeid from TXN_COMPONENTS where tc_txnid = " + txnid; - LOG.debug("Going to execute insert <" + s + ">"); - int modCount = 0; - if ((modCount = stmt.executeUpdate(s)) < 1) { - //this can be reasonable for an empty txn START/COMMIT or read-only txn - //also an IUD with DP that didn't match any rows. - LOG.info("Expected to move at least one record from txn_components to " + - "completed_txn_components when committing txn! " + JavaUtils.txnIdToString(txnid)); + + String s; + if (!rqst.isSetReplPolicy()) { + // Move the record from txn_components into completed_txn_components so that the compactor + // knows where to look to compact. + s = "insert into COMPLETED_TXN_COMPONENTS (ctc_txnid, ctc_database, " + + "ctc_table, ctc_partition, ctc_writeid) select tc_txnid, tc_database, tc_table, " + + "tc_partition, tc_writeid from TXN_COMPONENTS where tc_txnid = " + txnid; + LOG.debug("Going to execute insert <" + s + ">"); + + if ((stmt.executeUpdate(s)) < 1) { + //this can be reasonable for an empty txn START/COMMIT or read-only txn + //also an IUD with DP that didn't match any rows. + LOG.info("Expected to move at least one record from txn_components to " + + "completed_txn_components when committing txn! " + JavaUtils.txnIdToString(txnid)); + } + } else { + if (rqst.isSetWriteEventInfos()) { + List rows = new ArrayList<>(); + for (WriteEventInfo writeEventInfo : rqst.getWriteEventInfos()) { + rows.add(txnid + "," + quoteString(writeEventInfo.getDatabase()) + "," + + quoteString(writeEventInfo.getTable()) + "," + + quoteString(writeEventInfo.getPartition()) + "," + + writeEventInfo.getWriteId()); + } + List queries = sqlGenerator.createInsertValuesStmt("COMPLETED_TXN_COMPONENTS " + + "(ctc_txnid," + " ctc_database, ctc_table, ctc_partition, ctc_writeid)", rows); + for (String q : queries) { + LOG.debug("Going to execute insert <" + q + "> "); + stmt.execute(q); + } + } + + s = "delete from REPL_TXN_MAP where RTM_SRC_TXN_ID = " + sourceTxnId + + " and RTM_REPL_POLICY = " + quoteString(rqst.getReplPolicy()); + LOG.info("Repl going to execute <" + s + ">"); + stmt.executeUpdate(s); } + // Obtain information that we need to update registry - s = "select ctc_database, ctc_table, ctc_writeid, ctc_timestamp from COMPLETED_TXN_COMPONENTS where ctc_txnid = " + txnid; + s = "select ctc_database, ctc_table, ctc_writeid, ctc_timestamp from COMPLETED_TXN_COMPONENTS" + + " where ctc_txnid = " + txnid; + LOG.debug("Going to extract table modification information for invalidation cache <" + s + ">"); rs = stmt.executeQuery(s); if (rs.next()) { @@ -1046,27 +1116,21 @@ public void commitTxn(CommitTxnRequest rqst) writeId = rs.getLong(3); timestamp = rs.getTimestamp(4, Calendar.getInstance(TimeZone.getTimeZone("UTC"))).getTime(); } + + // cleanup all txn related metadata s = "delete from TXN_COMPONENTS where tc_txnid = " + txnid; LOG.debug("Going to execute update <" + s + ">"); - modCount = stmt.executeUpdate(s); + stmt.executeUpdate(s); s = "delete from HIVE_LOCKS where hl_txnid = " + txnid; LOG.debug("Going to execute update <" + s + ">"); - modCount = stmt.executeUpdate(s); + stmt.executeUpdate(s); s = "delete from TXNS where txn_id = " + txnid; LOG.debug("Going to execute update <" + s + ">"); - modCount = stmt.executeUpdate(s); + stmt.executeUpdate(s); s = "delete from MIN_HISTORY_LEVEL where mhl_txnid = " + txnid; LOG.debug("Going to execute update <" + s + ">"); - modCount = stmt.executeUpdate(s); + stmt.executeUpdate(s); LOG.info("Removed committed transaction: (" + txnid + ") from MIN_HISTORY_LEVEL"); - - if (rqst.isSetReplPolicy()) { - s = "delete from REPL_TXN_MAP where RTM_SRC_TXN_ID = " + sourceTxnId + - " and RTM_REPL_POLICY = " + quoteString(rqst.getReplPolicy()); - LOG.info("Repl going to execute <" + s + ">"); - stmt.executeUpdate(s); - } - if (transactionalListeners != null) { MetaStoreListenerNotifier.notifyEventWithDirectSql(transactionalListeners, EventMessage.EventType.COMMIT_TXN, new CommitTxnEvent(txnid, null), dbConn, sqlGenerator); @@ -1538,6 +1602,43 @@ public AllocateTableWriteIdsResponse allocateTableWriteIds(AllocateTableWriteIds } } + @Override + @RetrySemantics.Idempotent + public void addWriteNotificationLog(AcidWriteEvent acidWriteEvent) + throws MetaException { + Connection dbConn = null; + try { + try { + //Idempotent case is handled by notify Event + lockInternal(); + dbConn = getDbConn(Connection.TRANSACTION_READ_COMMITTED); + MetaStoreListenerNotifier.notifyEventWithDirectSql(transactionalListeners, + EventMessage.EventType.ACID_WRITE, acidWriteEvent, dbConn, sqlGenerator); + LOG.debug("Going to commit"); + dbConn.commit(); + return; + } catch (SQLException e) { + LOG.debug("Going to rollback"); + rollbackDBConn(dbConn); + if (isDuplicateKeyError(e)) { + // in case of key duplicate error, retry as it might be because of race condition + if (waitForRetry("addWriteNotificationLog(" + acidWriteEvent + ")", e.getMessage())) { + throw new RetryException(); + } + retryNum = 0; + throw new MetaException(e.getMessage()); + } + checkRetryable(dbConn, e, "addWriteNotificationLog(" + acidWriteEvent + ")"); + throw new MetaException("Unable to add write notification event " + StringUtils.stringifyException(e)); + } finally{ + closeDbConn(dbConn); + unlockInternal(); + } + } catch (RetryException e) { + addWriteNotificationLog(acidWriteEvent); + } + } + @Override @RetrySemantics.SafeToRetry public void performWriteSetGC() { @@ -3037,6 +3138,22 @@ static void close(ResultSet rs, Statement stmt, Connection dbConn) { closeStmt(stmt); closeDbConn(dbConn); } + + private boolean waitForRetry(String caller, String errMsg) { + if (retryNum++ < retryLimit) { + LOG.warn("Retryable error detected in " + caller + ". Will wait " + retryInterval + + "ms and retry up to " + (retryLimit - retryNum + 1) + " times. Error: " + errMsg); + try { + Thread.sleep(retryInterval); + } catch (InterruptedException ex) { + // + } + return true; + } else { + LOG.error("Fatal error in " + caller + ". Retry limit (" + retryLimit + ") reached. Last error: " + errMsg); + } + return false; + } /** * Determine if an exception was such that it makes sense to retry. Unfortunately there is no standard way to do * this, so we have to inspect the error messages and catch the telltale signs for each @@ -3080,18 +3197,7 @@ protected void checkRetryable(Connection conn, } } else if (isRetryable(conf, e)) { //in MSSQL this means Communication Link Failure - if (retryNum++ < retryLimit) { - LOG.warn("Retryable error detected in " + caller + ". Will wait " + retryInterval + - "ms and retry up to " + (retryLimit - retryNum + 1) + " times. Error: " + getMessage(e)); - try { - Thread.sleep(retryInterval); - } catch (InterruptedException ex) { - // - } - sendRetrySignal = true; - } else { - LOG.error("Fatal error in " + caller + ". Retry limit (" + retryLimit + ") reached. Last error: " + getMessage(e)); - } + sendRetrySignal = waitForRetry(caller, e.getMessage()); } else { //make sure we know we saw an error that we don't recognize diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnStore.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnStore.java index 4695f0deef..f46c26471d 100644 --- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnStore.java +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnStore.java @@ -24,6 +24,7 @@ import org.apache.hadoop.hive.common.ValidWriteIdList; import org.apache.hadoop.hive.common.classification.RetrySemantics; import org.apache.hadoop.hive.metastore.api.*; +import org.apache.hadoop.hive.metastore.events.AcidWriteEvent; import java.sql.SQLException; import java.util.Iterator; @@ -86,6 +87,9 @@ @RetrySemantics.Idempotent OpenTxnsResponse openTxns(OpenTxnRequest rqst) throws MetaException; + @RetrySemantics.Idempotent + long getTargetTxnId(String replPolicy, long sourceTxnId) throws MetaException; + /** * Abort (rollback) a transaction. * @param rqst info on transaction to abort @@ -470,4 +474,11 @@ void onRename(String oldCatName, String oldDbName, String oldTabName, String old */ @RetrySemantics.Idempotent void setHadoopJobId(String hadoopJobId, long id); + + /** + * Add the ACID write event information to writeNotificationLog table. + * @param acidWriteEvent + */ + @RetrySemantics.Idempotent + void addWriteNotificationLog(AcidWriteEvent acidWriteEvent) throws MetaException; } diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/utils/FileUtils.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/utils/FileUtils.java index ec9e9e2b95..f818d731c8 100644 --- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/utils/FileUtils.java +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/utils/FileUtils.java @@ -510,4 +510,15 @@ public static Path makeQualified(Path path, Configuration conf) throws IOExcepti return new Path(scheme, authority, pathUri.getPath()); } + + public static Path getTransformedPath(String name, String subDir, String root) { + if (root != null) { + Path newPath = new Path(root); + if (subDir != null) { + newPath = new Path(newPath, subDir); + } + return new Path(newPath, name); + } + return null; + } } diff --git a/standalone-metastore/src/main/resources/package.jdo b/standalone-metastore/src/main/resources/package.jdo index 1be3e986a5..5fb548cf88 100644 --- a/standalone-metastore/src/main/resources/package.jdo +++ b/standalone-metastore/src/main/resources/package.jdo @@ -1182,6 +1182,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/standalone-metastore/src/main/sql/derby/hive-schema-3.1.0.derby.sql b/standalone-metastore/src/main/sql/derby/hive-schema-3.1.0.derby.sql index d679658272..cd43525316 100644 --- a/standalone-metastore/src/main/sql/derby/hive-schema-3.1.0.derby.sql +++ b/standalone-metastore/src/main/sql/derby/hive-schema-3.1.0.derby.sql @@ -686,6 +686,21 @@ CREATE TABLE "APP"."RUNTIME_STATS" ( CREATE INDEX IDX_RUNTIME_STATS_CREATE_TIME ON RUNTIME_STATS(CREATE_TIME); +CREATE TABLE TXN_WRITE_NOTIFICATION_LOG ( + WNL_ID bigint NOT NULL, + WNL_TXNID bigint NOT NULL, + WNL_WRITEID bigint NOT NULL, + WNL_DATABASE varchar(128) NOT NULL, + WNL_TABLE varchar(128) NOT NULL, + WNL_PARTITION varchar(1024) NOT NULL, + WNL_TABLE_OBJ clob NOT NULL, + WNL_PARTITION_OBJ clob, + WNL_FILES clob, + WNL_EVENT_TIME integer NOT NULL, + PRIMARY KEY (WNL_TXNID, WNL_DATABASE, WNL_TABLE, WNL_PARTITION) +); +INSERT INTO SEQUENCE_TABLE (SEQUENCE_NAME, NEXT_VAL) VALUES ('org.apache.hadoop.hive.metastore.model.MTxnWriteNotificationLog', 1); + -- ----------------------------------------------------------------- -- Record schema version. Should be the last step in the init script -- ----------------------------------------------------------------- diff --git a/standalone-metastore/src/main/sql/derby/hive-schema-4.0.0.derby.sql b/standalone-metastore/src/main/sql/derby/hive-schema-4.0.0.derby.sql index 24740f9e4a..7d31132589 100644 --- a/standalone-metastore/src/main/sql/derby/hive-schema-4.0.0.derby.sql +++ b/standalone-metastore/src/main/sql/derby/hive-schema-4.0.0.derby.sql @@ -686,6 +686,21 @@ CREATE TABLE "APP"."RUNTIME_STATS" ( CREATE INDEX IDX_RUNTIME_STATS_CREATE_TIME ON RUNTIME_STATS(CREATE_TIME); +CREATE TABLE TXN_WRITE_NOTIFICATION_LOG ( + WNL_ID bigint NOT NULL, + WNL_TXNID bigint NOT NULL, + WNL_WRITEID bigint NOT NULL, + WNL_DATABASE varchar(128) NOT NULL, + WNL_TABLE varchar(128) NOT NULL, + WNL_PARTITION varchar(1024) NOT NULL, + WNL_TABLE_OBJ clob NOT NULL, + WNL_PARTITION_OBJ clob, + WNL_FILES clob, + WNL_EVENT_TIME integer NOT NULL, + PRIMARY KEY (WNL_TXNID, WNL_DATABASE, WNL_TABLE, WNL_PARTITION) +); +INSERT INTO SEQUENCE_TABLE (SEQUENCE_NAME, NEXT_VAL) VALUES ('org.apache.hadoop.hive.metastore.model.MTxnWriteNotificationLog', 1); + -- ----------------------------------------------------------------- -- Record schema version. Should be the last step in the init script -- ----------------------------------------------------------------- diff --git a/standalone-metastore/src/main/sql/derby/upgrade-2.3.0-to-3.0.0.derby.sql b/standalone-metastore/src/main/sql/derby/upgrade-2.3.0-to-3.0.0.derby.sql index 7b7a8a24d9..10f1373c13 100644 --- a/standalone-metastore/src/main/sql/derby/upgrade-2.3.0-to-3.0.0.derby.sql +++ b/standalone-metastore/src/main/sql/derby/upgrade-2.3.0-to-3.0.0.derby.sql @@ -244,7 +244,6 @@ CREATE TABLE MIN_HISTORY_LEVEL ( CREATE INDEX MIN_HISTORY_LEVEL_IDX ON MIN_HISTORY_LEVEL (MHL_MIN_OPEN_TXNID); - CREATE TABLE "APP"."RUNTIME_STATS" ( "RS_ID" bigint primary key, "CREATE_TIME" integer not null, diff --git a/standalone-metastore/src/main/sql/derby/upgrade-3.0.0-to-3.1.0.derby.sql b/standalone-metastore/src/main/sql/derby/upgrade-3.0.0-to-3.1.0.derby.sql index 047abdbf4b..293cbb1e8b 100644 --- a/standalone-metastore/src/main/sql/derby/upgrade-3.0.0-to-3.1.0.derby.sql +++ b/standalone-metastore/src/main/sql/derby/upgrade-3.0.0-to-3.1.0.derby.sql @@ -24,5 +24,21 @@ ALTER TABLE "APP"."PART_COL_PRIVS" ADD "AUTHORIZER" VARCHAR(128); DROP INDEX "APP"."PARTITIONCOLUMNPRIVILEGEINDEX"; CREATE INDEX "APP"."PARTITIONCOLUMNPRIVILEGEINDEX" ON "APP"."PART_COL_PRIVS" ("AUTHORIZER", "PART_ID", "COLUMN_NAME", "PRINCIPAL_NAME", "PRINCIPAL_TYPE", "PART_COL_PRIV", "GRANTOR", "GRANTOR_TYPE"); +-- HIVE-19267 +CREATE TABLE TXN_WRITE_NOTIFICATION_LOG ( + WNL_ID bigint NOT NULL, + WNL_TXNID bigint NOT NULL, + WNL_WRITEID bigint NOT NULL, + WNL_DATABASE varchar(128) NOT NULL, + WNL_TABLE varchar(128) NOT NULL, + WNL_PARTITION varchar(1024) NOT NULL, + WNL_TABLE_OBJ clob NOT NULL, + WNL_PARTITION_OBJ clob, + WNL_FILES clob, + WNL_EVENT_TIME integer NOT NULL, + PRIMARY KEY (WNL_TXNID, WNL_DATABASE, WNL_TABLE, WNL_PARTITION) +); +INSERT INTO SEQUENCE_TABLE (SEQUENCE_NAME, NEXT_VAL) VALUES ('org.apache.hadoop.hive.metastore.model.MTxnWriteNotificationLog', 1); + -- This needs to be the last thing done. Insert any changes above this line. UPDATE "APP".VERSION SET SCHEMA_VERSION='3.1.0', VERSION_COMMENT='Hive release version 3.1.0' where VER_ID=1; diff --git a/standalone-metastore/src/main/sql/mssql/hive-schema-3.1.0.mssql.sql b/standalone-metastore/src/main/sql/mssql/hive-schema-3.1.0.mssql.sql index 1bb3c1acb3..ee5361a666 100644 --- a/standalone-metastore/src/main/sql/mssql/hive-schema-3.1.0.mssql.sql +++ b/standalone-metastore/src/main/sql/mssql/hive-schema-3.1.0.mssql.sql @@ -1246,6 +1246,23 @@ CREATE TABLE RUNTIME_STATS ( CREATE INDEX IDX_RUNTIME_STATS_CREATE_TIME ON RUNTIME_STATS(CREATE_TIME); +CREATE TABLE TXN_WRITE_NOTIFICATION_LOG ( + WNL_ID bigint NOT NULL, + WNL_TXNID bigint NOT NULL, + WNL_WRITEID bigint NOT NULL, + WNL_DATABASE nvarchar(128) NOT NULL, + WNL_TABLE nvarchar(128) NOT NULL, + WNL_PARTITION nvarchar(1024) NOT NULL, + WNL_TABLE_OBJ text NOT NULL, + WNL_PARTITION_OBJ text, + WNL_FILES text, + WNL_EVENT_TIME int NOT NULL +); + +ALTER TABLE TXN_WRITE_NOTIFICATION_LOG ADD CONSTRAINT TXN_WRITE_NOTIFICATION_LOG_PK PRIMARY KEY (WNL_TXNID, WNL_DATABASE, WNL_TABLE, WNL_PARTITION); + +INSERT INTO SEQUENCE_TABLE (SEQUENCE_NAME, NEXT_VAL) VALUES ('org.apache.hadoop.hive.metastore.model.MTxnWriteNotificationLog', 1); + -- ----------------------------------------------------------------- -- Record schema version. Should be the last step in the init script -- ----------------------------------------------------------------- diff --git a/standalone-metastore/src/main/sql/mssql/hive-schema-4.0.0.mssql.sql b/standalone-metastore/src/main/sql/mssql/hive-schema-4.0.0.mssql.sql index 7a5cec8aff..48241e0f55 100644 --- a/standalone-metastore/src/main/sql/mssql/hive-schema-4.0.0.mssql.sql +++ b/standalone-metastore/src/main/sql/mssql/hive-schema-4.0.0.mssql.sql @@ -1246,6 +1246,23 @@ CREATE TABLE RUNTIME_STATS ( CREATE INDEX IDX_RUNTIME_STATS_CREATE_TIME ON RUNTIME_STATS(CREATE_TIME); +CREATE TABLE TXN_WRITE_NOTIFICATION_LOG ( + WNL_ID bigint NOT NULL, + WNL_TXNID bigint NOT NULL, + WNL_WRITEID bigint NOT NULL, + WNL_DATABASE nvarchar(128) NOT NULL, + WNL_TABLE nvarchar(128) NOT NULL, + WNL_PARTITION nvarchar(1024) NOT NULL, + WNL_TABLE_OBJ text NOT NULL, + WNL_PARTITION_OBJ text, + WNL_FILES text, + WNL_EVENT_TIME int NOT NULL +); + +ALTER TABLE TXN_WRITE_NOTIFICATION_LOG ADD CONSTRAINT TXN_WRITE_NOTIFICATION_LOG_PK PRIMARY KEY (WNL_TXNID, WNL_DATABASE, WNL_TABLE, WNL_PARTITION); + +INSERT INTO SEQUENCE_TABLE (SEQUENCE_NAME, NEXT_VAL) VALUES ('org.apache.hadoop.hive.metastore.model.MTxnWriteNotificationLog', 1); + -- ----------------------------------------------------------------- -- Record schema version. Should be the last step in the init script -- ----------------------------------------------------------------- diff --git a/standalone-metastore/src/main/sql/mssql/upgrade-3.0.0-to-3.1.0.mssql.sql b/standalone-metastore/src/main/sql/mssql/upgrade-3.0.0-to-3.1.0.mssql.sql index d3f2794d72..ed002c2c58 100644 --- a/standalone-metastore/src/main/sql/mssql/upgrade-3.0.0-to-3.1.0.mssql.sql +++ b/standalone-metastore/src/main/sql/mssql/upgrade-3.0.0-to-3.1.0.mssql.sql @@ -25,6 +25,22 @@ ALTER TABLE PART_COL_PRIVS ADD AUTHORIZER nvarchar(128) NULL; DROP INDEX PART_COL_PRIVS.PARTITIONCOLUMNPRIVILEGEINDEX; CREATE INDEX PARTITIONCOLUMNPRIVILEGEINDEX ON PART_COL_PRIVS (AUTHORIZER,PART_ID,"COLUMN_NAME",PRINCIPAL_NAME,PRINCIPAL_TYPE,PART_COL_PRIV,GRANTOR,GRANTOR_TYPE); +-- HIVE-19267 +CREATE TABLE TXN_WRITE_NOTIFICATION_LOG ( + WNL_ID bigint NOT NULL, + WNL_TXNID bigint NOT NULL, + WNL_WRITEID bigint NOT NULL, + WNL_DATABASE nvarchar(128) NOT NULL, + WNL_TABLE nvarchar(128) NOT NULL, + WNL_PARTITION nvarchar(1024) NOT NULL, + WNL_TABLE_OBJ text NOT NULL, + WNL_PARTITION_OBJ text, + WNL_FILES text, + WNL_EVENT_TIME int NOT NULL +); +ALTER TABLE TXN_WRITE_NOTIFICATION_LOG ADD CONSTRAINT TXN_WRITE_NOTIFICATION_LOG_PK PRIMARY KEY (WNL_TXNID, WNL_DATABASE, WNL_TABLE, WNL_PARTITION); +INSERT INTO SEQUENCE_TABLE (SEQUENCE_NAME, NEXT_VAL) VALUES ('org.apache.hadoop.hive.metastore.model.MTxnWriteNotificationLog', 1); + -- These lines need to be last. Insert any changes above. UPDATE VERSION SET SCHEMA_VERSION='3.1.0', VERSION_COMMENT='Hive release version 3.1.0' where VER_ID=1; SELECT 'Finished upgrading MetaStore schema from 3.0.0 to 3.1.0' AS MESSAGE; diff --git a/standalone-metastore/src/main/sql/mysql/hive-schema-3.0.0.mysql.sql b/standalone-metastore/src/main/sql/mysql/hive-schema-3.0.0.mysql.sql index c54df55ed9..c65af1e80c 100644 --- a/standalone-metastore/src/main/sql/mysql/hive-schema-3.0.0.mysql.sql +++ b/standalone-metastore/src/main/sql/mysql/hive-schema-3.0.0.mysql.sql @@ -1155,7 +1155,6 @@ CREATE TABLE REPL_TXN_MAP ( PRIMARY KEY (RTM_REPL_POLICY, RTM_SRC_TXN_ID) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; - CREATE TABLE RUNTIME_STATS ( RS_ID bigint primary key, CREATE_TIME bigint NOT NULL, diff --git a/standalone-metastore/src/main/sql/mysql/hive-schema-3.1.0.mysql.sql b/standalone-metastore/src/main/sql/mysql/hive-schema-3.1.0.mysql.sql index 1f0450330b..504293c866 100644 --- a/standalone-metastore/src/main/sql/mysql/hive-schema-3.1.0.mysql.sql +++ b/standalone-metastore/src/main/sql/mysql/hive-schema-3.1.0.mysql.sql @@ -1171,6 +1171,22 @@ CREATE TABLE RUNTIME_STATS ( CREATE INDEX IDX_RUNTIME_STATS_CREATE_TIME ON RUNTIME_STATS(CREATE_TIME); +CREATE TABLE TXN_WRITE_NOTIFICATION_LOG ( + WNL_ID bigint NOT NULL, + WNL_TXNID bigint NOT NULL, + WNL_WRITEID bigint NOT NULL, + WNL_DATABASE varchar(128) NOT NULL, + WNL_TABLE varchar(128) NOT NULL, + WNL_PARTITION varchar(1024) NOT NULL, + WNL_TABLE_OBJ longtext NOT NULL, + WNL_PARTITION_OBJ longtext, + WNL_FILES longtext, + WNL_EVENT_TIME INT(11) NOT NULL, + PRIMARY KEY (WNL_TXNID, WNL_DATABASE, WNL_TABLE, WNL_PARTITION) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + +INSERT INTO `SEQUENCE_TABLE` (`SEQUENCE_NAME`, `NEXT_VAL`) VALUES ('org.apache.hadoop.hive.metastore.model.MTxnWriteNotificationLog', 1); + -- ----------------------------------------------------------------- -- Record schema version. Should be the last step in the init script -- ----------------------------------------------------------------- diff --git a/standalone-metastore/src/main/sql/mysql/hive-schema-4.0.0.mysql.sql b/standalone-metastore/src/main/sql/mysql/hive-schema-4.0.0.mysql.sql index f0d2fa1db9..3137860482 100644 --- a/standalone-metastore/src/main/sql/mysql/hive-schema-4.0.0.mysql.sql +++ b/standalone-metastore/src/main/sql/mysql/hive-schema-4.0.0.mysql.sql @@ -1171,6 +1171,22 @@ CREATE TABLE RUNTIME_STATS ( CREATE INDEX IDX_RUNTIME_STATS_CREATE_TIME ON RUNTIME_STATS(CREATE_TIME); +CREATE TABLE TXN_WRITE_NOTIFICATION_LOG ( + WNL_ID bigint NOT NULL, + WNL_TXNID bigint NOT NULL, + WNL_WRITEID bigint NOT NULL, + WNL_DATABASE varchar(128) NOT NULL, + WNL_TABLE varchar(128) NOT NULL, + WNL_PARTITION varchar(1024) NOT NULL, + WNL_TABLE_OBJ longtext NOT NULL, + WNL_PARTITION_OBJ longtext, + WNL_FILES longtext, + WNL_EVENT_TIME INT(11) NOT NULL, + PRIMARY KEY (WNL_TXNID, WNL_DATABASE, WNL_TABLE, WNL_PARTITION) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + +INSERT INTO `SEQUENCE_TABLE` (`SEQUENCE_NAME`, `NEXT_VAL`) VALUES ('org.apache.hadoop.hive.metastore.model.MTxnWriteNotificationLog', 1); + -- ----------------------------------------------------------------- -- Record schema version. Should be the last step in the init script -- ----------------------------------------------------------------- diff --git a/standalone-metastore/src/main/sql/mysql/upgrade-2.3.0-to-3.0.0.mysql.sql b/standalone-metastore/src/main/sql/mysql/upgrade-2.3.0-to-3.0.0.mysql.sql index 9b87563b8a..786e38ac6e 100644 --- a/standalone-metastore/src/main/sql/mysql/upgrade-2.3.0-to-3.0.0.mysql.sql +++ b/standalone-metastore/src/main/sql/mysql/upgrade-2.3.0-to-3.0.0.mysql.sql @@ -319,8 +319,8 @@ UPDATE COMPLETED_TXN_COMPONENTS SET CTC_WRITEID = CTC_TXNID; ALTER TABLE TXN_COMPONENTS MODIFY COLUMN TC_TABLE varchar(128) NULL; +ALTER TABLE `TBLS` ADD COLUMN `OWNER_TYPE` VARCHAR(10) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL; + -- These lines need to be last. Insert any changes above. UPDATE VERSION SET SCHEMA_VERSION='3.0.0', VERSION_COMMENT='Hive release version 3.0.0' where VER_ID=1; SELECT 'Finished upgrading MetaStore schema from 2.3.0 to 3.0.0' AS ' '; - -ALTER TABLE `TBLS` ADD COLUMN `OWNER_TYPE` VARCHAR(10) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL; \ No newline at end of file diff --git a/standalone-metastore/src/main/sql/mysql/upgrade-3.0.0-to-3.1.0.mysql.sql b/standalone-metastore/src/main/sql/mysql/upgrade-3.0.0-to-3.1.0.mysql.sql index df5485edcf..a9dd251629 100644 --- a/standalone-metastore/src/main/sql/mysql/upgrade-3.0.0-to-3.1.0.mysql.sql +++ b/standalone-metastore/src/main/sql/mysql/upgrade-3.0.0-to-3.1.0.mysql.sql @@ -25,6 +25,22 @@ ALTER TABLE `PART_COL_PRIVS` ADD `AUTHORIZER` varchar(128) CHARACTER SET latin1 ALTER TABLE `PART_COL_PRIVS` DROP INDEX `PARTITIONCOLUMNPRIVILEGEINDEX`; ALTER TABLE `PART_COL_PRIVS` ADD INDEX `PARTITIONCOLUMNPRIVILEGEINDEX` (`AUTHORIZER`,`PART_ID`,`COLUMN_NAME`,`PRINCIPAL_NAME`,`PRINCIPAL_TYPE`,`PART_COL_PRIV`,`GRANTOR`,`GRANTOR_TYPE`); +-- HIVE-19267 +CREATE TABLE TXN_WRITE_NOTIFICATION_LOG ( + WNL_ID bigint NOT NULL, + WNL_TXNID bigint NOT NULL, + WNL_WRITEID bigint NOT NULL, + WNL_DATABASE varchar(128) NOT NULL, + WNL_TABLE varchar(128) NOT NULL, + WNL_PARTITION varchar(1024) NOT NULL, + WNL_TABLE_OBJ longtext NOT NULL, + WNL_PARTITION_OBJ longtext, + WNL_FILES longtext, + WNL_EVENT_TIME INT(11) NOT NULL, + PRIMARY KEY (WNL_TXNID, WNL_DATABASE, WNL_TABLE, WNL_PARTITION) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +INSERT INTO `SEQUENCE_TABLE` (`SEQUENCE_NAME`, `NEXT_VAL`) VALUES ('org.apache.hadoop.hive.metastore.model.MTxnWriteNotificationLog', 1); + -- These lines need to be last. Insert any changes above. UPDATE VERSION SET SCHEMA_VERSION='3.1.0', VERSION_COMMENT='Hive release version 3.1.0' where VER_ID=1; SELECT 'Finished upgrading MetaStore schema from 3.0.0 to 3.1.0' AS ' '; diff --git a/standalone-metastore/src/main/sql/oracle/hive-schema-3.0.0.oracle.sql b/standalone-metastore/src/main/sql/oracle/hive-schema-3.0.0.oracle.sql index 63cc1f75e2..3e2e282f61 100644 --- a/standalone-metastore/src/main/sql/oracle/hive-schema-3.0.0.oracle.sql +++ b/standalone-metastore/src/main/sql/oracle/hive-schema-3.0.0.oracle.sql @@ -1134,7 +1134,6 @@ CREATE TABLE RUNTIME_STATS ( CREATE INDEX IDX_RUNTIME_STATS_CREATE_TIME ON RUNTIME_STATS(CREATE_TIME); - -- ----------------------------------------------------------------- -- Record schema version. Should be the last step in the init script -- ----------------------------------------------------------------- diff --git a/standalone-metastore/src/main/sql/oracle/hive-schema-3.1.0.oracle.sql b/standalone-metastore/src/main/sql/oracle/hive-schema-3.1.0.oracle.sql index 2d9b2b7844..4cf5ebbb2f 100644 --- a/standalone-metastore/src/main/sql/oracle/hive-schema-3.1.0.oracle.sql +++ b/standalone-metastore/src/main/sql/oracle/hive-schema-3.1.0.oracle.sql @@ -1140,6 +1140,21 @@ CREATE TABLE RUNTIME_STATS ( CREATE INDEX IDX_RUNTIME_STATS_CREATE_TIME ON RUNTIME_STATS(CREATE_TIME); +CREATE TABLE TXN_WRITE_NOTIFICATION_LOG ( + WNL_ID number(19) NOT NULL, + WNL_TXNID number(19) NOT NULL, + WNL_WRITEID number(19) NOT NULL, + WNL_DATABASE varchar(128) NOT NULL, + WNL_TABLE varchar(128) NOT NULL, + WNL_PARTITION varchar(1024) NOT NULL, + WNL_TABLE_OBJ clob NOT NULL, + WNL_PARTITION_OBJ clob, + WNL_FILES clob, + WNL_EVENT_TIME number(10) NOT NULL, + PRIMARY KEY (WNL_TXNID, WNL_DATABASE, WNL_TABLE, WNL_PARTITION) +); + +INSERT INTO SEQUENCE_TABLE (SEQUENCE_NAME, NEXT_VAL) VALUES ('org.apache.hadoop.hive.metastore.model.MTxnWriteNotificationLog', 1); -- ----------------------------------------------------------------- -- Record schema version. Should be the last step in the init script diff --git a/standalone-metastore/src/main/sql/oracle/hive-schema-4.0.0.oracle.sql b/standalone-metastore/src/main/sql/oracle/hive-schema-4.0.0.oracle.sql index 2877c79842..f2690923a0 100644 --- a/standalone-metastore/src/main/sql/oracle/hive-schema-4.0.0.oracle.sql +++ b/standalone-metastore/src/main/sql/oracle/hive-schema-4.0.0.oracle.sql @@ -1140,6 +1140,21 @@ CREATE TABLE RUNTIME_STATS ( CREATE INDEX IDX_RUNTIME_STATS_CREATE_TIME ON RUNTIME_STATS(CREATE_TIME); +CREATE TABLE TXN_WRITE_NOTIFICATION_LOG ( + WNL_ID number(19) NOT NULL, + WNL_TXNID number(19) NOT NULL, + WNL_WRITEID number(19) NOT NULL, + WNL_DATABASE varchar(128) NOT NULL, + WNL_TABLE varchar(128) NOT NULL, + WNL_PARTITION varchar(1024) NOT NULL, + WNL_TABLE_OBJ clob NOT NULL, + WNL_PARTITION_OBJ clob, + WNL_FILES clob, + WNL_EVENT_TIME number(10) NOT NULL, + PRIMARY KEY (WNL_TXNID, WNL_DATABASE, WNL_TABLE, WNL_PARTITION) +); + +INSERT INTO SEQUENCE_TABLE (SEQUENCE_NAME, NEXT_VAL) VALUES ('org.apache.hadoop.hive.metastore.model.MTxnWriteNotificationLog', 1); -- ----------------------------------------------------------------- -- Record schema version. Should be the last step in the init script diff --git a/standalone-metastore/src/main/sql/oracle/upgrade-2.3.0-to-3.0.0.oracle.sql b/standalone-metastore/src/main/sql/oracle/upgrade-2.3.0-to-3.0.0.oracle.sql index ce3437f723..71f5034446 100644 --- a/standalone-metastore/src/main/sql/oracle/upgrade-2.3.0-to-3.0.0.oracle.sql +++ b/standalone-metastore/src/main/sql/oracle/upgrade-2.3.0-to-3.0.0.oracle.sql @@ -335,8 +335,8 @@ INSERT INTO TXN_TO_WRITE_ID (T2W_DATABASE, T2W_TABLE, T2W_TXNID, T2W_WRITEID) UPDATE TXN_COMPONENTS SET TC_WRITEID = TC_TXNID; UPDATE COMPLETED_TXN_COMPONENTS SET CTC_WRITEID = CTC_TXNID; +ALTER TABLE TBLS ADD OWNER_TYPE VARCHAR2(10) NULL; + -- These lines need to be last. Insert any changes above. UPDATE VERSION SET SCHEMA_VERSION='3.0.0', VERSION_COMMENT='Hive release version 3.0.0' where VER_ID=1; SELECT 'Finished upgrading MetaStore schema from 2.3.0 to 3.0.0' AS Status from dual; - -ALTER TABLE TBLS ADD OWNER_TYPE VARCHAR2(10) NULL; \ No newline at end of file diff --git a/standalone-metastore/src/main/sql/oracle/upgrade-3.0.0-to-3.1.0.oracle.sql b/standalone-metastore/src/main/sql/oracle/upgrade-3.0.0-to-3.1.0.oracle.sql index 6c4c5be180..294249b42c 100644 --- a/standalone-metastore/src/main/sql/oracle/upgrade-3.0.0-to-3.1.0.oracle.sql +++ b/standalone-metastore/src/main/sql/oracle/upgrade-3.0.0-to-3.1.0.oracle.sql @@ -25,6 +25,22 @@ ALTER TABLE PART_COL_PRIVS ADD AUTHORIZER VARCHAR2(128) NULL; DROP INDEX PARTITIONCOLUMNPRIVILEGEINDEX; CREATE INDEX PARTITIONCOLUMNPRIVILEGEINDEX ON PART_COL_PRIVS (AUTHORIZER,PART_ID,"COLUMN_NAME",PRINCIPAL_NAME,PRINCIPAL_TYPE,PART_COL_PRIV,GRANTOR,GRANTOR_TYPE); +-- HIVE-19267 +CREATE TABLE TXN_WRITE_NOTIFICATION_LOG ( + WNL_ID number(19) NOT NULL, + WNL_TXNID number(19) NOT NULL, + WNL_WRITEID number(19) NOT NULL, + WNL_DATABASE varchar(128) NOT NULL, + WNL_TABLE varchar(128) NOT NULL, + WNL_PARTITION varchar(1024) NOT NULL, + WNL_TABLE_OBJ clob NOT NULL, + WNL_PARTITION_OBJ clob, + WNL_FILES clob, + WNL_EVENT_TIME number(10) NOT NULL, + PRIMARY KEY (WNL_TXNID, WNL_DATABASE, WNL_TABLE, WNL_PARTITION) +); +INSERT INTO SEQUENCE_TABLE (SEQUENCE_NAME, NEXT_VAL) VALUES ('org.apache.hadoop.hive.metastore.model.MTxnWriteNotificationLog', 1); + -- These lines need to be last. Insert any changes above. UPDATE VERSION SET SCHEMA_VERSION='3.1.0', VERSION_COMMENT='Hive release version 3.1.0' where VER_ID=1; SELECT 'Finished upgrading MetaStore schema from 3.0.0 to 3.1.0' AS Status from dual; diff --git a/standalone-metastore/src/main/sql/postgres/hive-schema-3.0.0.postgres.sql b/standalone-metastore/src/main/sql/postgres/hive-schema-3.0.0.postgres.sql index d210a55fcf..dce1cdc4c7 100644 --- a/standalone-metastore/src/main/sql/postgres/hive-schema-3.0.0.postgres.sql +++ b/standalone-metastore/src/main/sql/postgres/hive-schema-3.0.0.postgres.sql @@ -1812,7 +1812,6 @@ CREATE TABLE REPL_TXN_MAP ( PRIMARY KEY (RTM_REPL_POLICY, RTM_SRC_TXN_ID) ); - CREATE TABLE RUNTIME_STATS ( RS_ID bigint primary key, CREATE_TIME bigint NOT NULL, @@ -1822,7 +1821,6 @@ CREATE TABLE RUNTIME_STATS ( CREATE INDEX IDX_RUNTIME_STATS_CREATE_TIME ON RUNTIME_STATS(CREATE_TIME); - -- ----------------------------------------------------------------- -- Record schema version. Should be the last step in the init script -- ----------------------------------------------------------------- diff --git a/standalone-metastore/src/main/sql/postgres/hive-schema-3.1.0.postgres.sql b/standalone-metastore/src/main/sql/postgres/hive-schema-3.1.0.postgres.sql index f8a073a57d..42e7cd701c 100644 --- a/standalone-metastore/src/main/sql/postgres/hive-schema-3.1.0.postgres.sql +++ b/standalone-metastore/src/main/sql/postgres/hive-schema-3.1.0.postgres.sql @@ -1828,6 +1828,21 @@ CREATE TABLE RUNTIME_STATS ( CREATE INDEX IDX_RUNTIME_STATS_CREATE_TIME ON RUNTIME_STATS(CREATE_TIME); +CREATE TABLE "TXN_WRITE_NOTIFICATION_LOG" ( + "WNL_ID" bigint NOT NULL, + "WNL_TXNID" bigint NOT NULL, + "WNL_WRITEID" bigint NOT NULL, + "WNL_DATABASE" varchar(128) NOT NULL, + "WNL_TABLE" varchar(128) NOT NULL, + "WNL_PARTITION" varchar(1024) NOT NULL, + "WNL_TABLE_OBJ" text NOT NULL, + "WNL_PARTITION_OBJ" text, + "WNL_FILES" text, + "WNL_EVENT_TIME" integer NOT NULL, + PRIMARY KEY ("WNL_TXNID", "WNL_DATABASE", "WNL_TABLE", "WNL_PARTITION") +); + +INSERT INTO "SEQUENCE_TABLE" ("SEQUENCE_NAME", "NEXT_VAL") VALUES ('org.apache.hadoop.hive.metastore.model.MTxnWriteNotificationLog', 1); -- ----------------------------------------------------------------- -- Record schema version. Should be the last step in the init script diff --git a/standalone-metastore/src/main/sql/postgres/hive-schema-4.0.0.postgres.sql b/standalone-metastore/src/main/sql/postgres/hive-schema-4.0.0.postgres.sql index 5f93ae07ce..134a98e341 100644 --- a/standalone-metastore/src/main/sql/postgres/hive-schema-4.0.0.postgres.sql +++ b/standalone-metastore/src/main/sql/postgres/hive-schema-4.0.0.postgres.sql @@ -1828,6 +1828,21 @@ CREATE TABLE RUNTIME_STATS ( CREATE INDEX IDX_RUNTIME_STATS_CREATE_TIME ON RUNTIME_STATS(CREATE_TIME); +CREATE TABLE "TXN_WRITE_NOTIFICATION_LOG" ( + "WNL_ID" bigint NOT NULL, + "WNL_TXNID" bigint NOT NULL, + "WNL_WRITEID" bigint NOT NULL, + "WNL_DATABASE" varchar(128) NOT NULL, + "WNL_TABLE" varchar(128) NOT NULL, + "WNL_PARTITION" varchar(1024) NOT NULL, + "WNL_TABLE_OBJ" text NOT NULL, + "WNL_PARTITION_OBJ" text, + "WNL_FILES" text, + "WNL_EVENT_TIME" integer NOT NULL, + PRIMARY KEY ("WNL_TXNID", "WNL_DATABASE", "WNL_TABLE", "WNL_PARTITION") +); + +INSERT INTO "SEQUENCE_TABLE" ("SEQUENCE_NAME", "NEXT_VAL") VALUES ('org.apache.hadoop.hive.metastore.model.MTxnWriteNotificationLog', 1); -- ----------------------------------------------------------------- -- Record schema version. Should be the last step in the init script diff --git a/standalone-metastore/src/main/sql/postgres/upgrade-3.0.0-to-3.1.0.postgres.sql b/standalone-metastore/src/main/sql/postgres/upgrade-3.0.0-to-3.1.0.postgres.sql index 81f695c8d4..72cb1f07fd 100644 --- a/standalone-metastore/src/main/sql/postgres/upgrade-3.0.0-to-3.1.0.postgres.sql +++ b/standalone-metastore/src/main/sql/postgres/upgrade-3.0.0-to-3.1.0.postgres.sql @@ -27,6 +27,22 @@ ALTER TABLE "PART_COL_PRIVS" ADD COLUMN "AUTHORIZER" character varying(128) DEFA DROP INDEX "PARTITIONCOLUMNPRIVILEGEINDEX"; CREATE INDEX "PARTITIONCOLUMNPRIVILEGEINDEX" ON "PART_COL_PRIVS" USING btree ("AUTHORIZER", "PART_ID", "COLUMN_NAME", "PRINCIPAL_NAME", "PRINCIPAL_TYPE", "PART_COL_PRIV", "GRANTOR", "GRANTOR_TYPE"); +-- HIVE-19267 +CREATE TABLE "TXN_WRITE_NOTIFICATION_LOG" ( + "WNL_ID" bigint NOT NULL, + "WNL_TXNID" bigint NOT NULL, + "WNL_WRITEID" bigint NOT NULL, + "WNL_DATABASE" varchar(128) NOT NULL, + "WNL_TABLE" varchar(128) NOT NULL, + "WNL_PARTITION" varchar(1024) NOT NULL, + "WNL_TABLE_OBJ" text NOT NULL, + "WNL_PARTITION_OBJ" text, + "WNL_FILES" text, + "WNL_EVENT_TIME" integer NOT NULL, + PRIMARY KEY ("WNL_TXNID", "WNL_DATABASE", "WNL_TABLE", "WNL_PARTITION") +); +INSERT INTO "SEQUENCE_TABLE" ("SEQUENCE_NAME", "NEXT_VAL") VALUES ('org.apache.hadoop.hive.metastore.model.MTxnWriteNotificationLog', 1); + -- These lines need to be last. Insert any changes above. UPDATE "VERSION" SET "SCHEMA_VERSION"='3.1.0', "VERSION_COMMENT"='Hive release version 3.1.0' where "VER_ID"=1; SELECT 'Finished upgrading MetaStore schema from 3.0.0 to 3.1.0'; diff --git a/standalone-metastore/src/main/thrift/hive_metastore.thrift b/standalone-metastore/src/main/thrift/hive_metastore.thrift index 3d85acfab3..4b383d0d9b 100644 --- a/standalone-metastore/src/main/thrift/hive_metastore.thrift +++ b/standalone-metastore/src/main/thrift/hive_metastore.thrift @@ -862,6 +862,18 @@ struct AbortTxnsRequest { struct CommitTxnRequest { 1: required i64 txnid, 2: optional string replPolicy, + // Information related to write operations done in this transaction. + 3: optional list writeEventInfos, +} + +struct WriteEventInfo { + 1: required i64 writeId, + 2: required string database, + 3: required string table, + 4: required string files, + 5: optional string partition, + 6: optional string tableObj, // repl txn task does not need table object for commit + 7: optional string partitionObj, } struct ReplTblWriteIdStateRequest { @@ -1097,6 +1109,8 @@ struct InsertEventRequestData { 2: required list filesAdded, // Checksum of files (hex string of checksum byte payload) 3: optional list filesAddedChecksum, + // Used by acid operation to create the sub directory + 4: optional list subDirectoryList, } union FireEventRequestData { @@ -1117,7 +1131,20 @@ struct FireEventRequest { struct FireEventResponse { // NOP for now, this is just a place holder for future responses } - + +struct WriteNotificationLogRequest { + 1: required i64 txnId, + 2: required i64 writeId, + 3: required string db, + 4: required string table, + 5: required InsertEventRequestData fileInfo, + 6: optional list partitionVals, +} + +struct WriteNotificationLogResponse { + // NOP for now, this is just a place holder for future responses +} + struct MetadataPpdResult { 1: optional binary metadata, 2: optional binary includeBitset @@ -2098,6 +2125,7 @@ service ThriftHiveMetastore extends fb303.FacebookService NotificationEventsCountResponse get_notification_events_count(1:NotificationEventsCountRequest rqst) FireEventResponse fire_listener_event(1:FireEventRequest rqst) void flushCache() + WriteNotificationLogResponse add_write_notification_log(WriteNotificationLogRequest rqst) // Repl Change Management api CmRecycleResponse cm_recycle(1:CmRecycleRequest request) throws(1:MetaException o1) diff --git a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java index 0461c4ee9a..4b5bc2ad17 100644 --- a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java +++ b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java @@ -84,6 +84,7 @@ import org.apache.hadoop.hive.metastore.api.UnknownTableException; import org.apache.hadoop.hive.metastore.api.WMMapping; import org.apache.hadoop.hive.metastore.api.WMPool; +import org.apache.hadoop.hive.metastore.api.WriteEventInfo; import org.apache.hadoop.hive.metastore.partition.spec.PartitionSpecProxy; import org.apache.hadoop.hive.metastore.utils.MetaStoreUtils.ColStatsObjWithSourceInfo; import org.apache.thrift.TException; @@ -1185,4 +1186,14 @@ public void addRuntimeStat(RuntimeStat stat) throws MetaException { public int deleteRuntimeStats(int maxRetainSecs) throws MetaException { return objectStore.deleteRuntimeStats(maxRetainSecs); } + + @Override + public void cleanWriteNotificationEvents(int olderThan) { + objectStore.cleanWriteNotificationEvents(olderThan); + } + + @Override + public List getAllWriteEventInfo(long txnId, String dbName, String tableName) throws MetaException { + return objectStore.getAllWriteEventInfo(txnId, dbName, tableName); + } } diff --git a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java index b71eda4212..6d241b2aa1 100644 --- a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java +++ b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java @@ -82,6 +82,7 @@ import org.apache.hadoop.hive.metastore.api.UnknownTableException; import org.apache.hadoop.hive.metastore.api.WMMapping; import org.apache.hadoop.hive.metastore.api.WMPool; +import org.apache.hadoop.hive.metastore.api.WriteEventInfo; import org.apache.hadoop.hive.metastore.conf.MetastoreConf; import org.apache.hadoop.hive.metastore.partition.spec.PartitionSpecProxy; import org.apache.hadoop.hive.metastore.utils.MetaStoreUtils; @@ -1172,4 +1173,13 @@ public void addRuntimeStat(RuntimeStat stat) throws MetaException { public int deleteRuntimeStats(int maxRetainSecs) throws MetaException { return 0; } + + @Override + public void cleanWriteNotificationEvents(int olderThan) { + } + + @Override + public List getAllWriteEventInfo(long txnId, String dbName, String tableName) throws MetaException { + return null; + } } diff --git a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClientPreCatalog.java b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClientPreCatalog.java index bdb4b8be23..bbaf044672 100644 --- a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClientPreCatalog.java +++ b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClientPreCatalog.java @@ -2231,10 +2231,8 @@ public void commitTxn(long txnid) } @Override - public void replCommitTxn(long srcTxnId, String replPolicy) + public void replCommitTxn(CommitTxnRequest rqst) throws NoSuchTxnException, TxnAbortedException, TException { - CommitTxnRequest rqst = new CommitTxnRequest(srcTxnId); - rqst.setReplPolicy(replPolicy); client.commit_txn(rqst); } @@ -2475,6 +2473,12 @@ public FireEventResponse fireListenerEvent(FireEventRequest rqst) throws TExcept return client.fire_listener_event(rqst); } + @InterfaceAudience.LimitedPrivate({"Apache Hive, HCatalog"}) + @Override + public void addWriteNotificationLog(WriteNotificationLogRequest rqst) throws TException { + client.add_write_notification_log(rqst); + } + /** * Creates a synchronized wrapper for any {@link IMetaStoreClient}. * This may be used by multi-threaded applications until we have