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 59d1e3ad8c..145fd01e47 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 @@ -75,6 +75,8 @@ 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; @@ -240,7 +242,7 @@ public String next() { FileStatus file = files[i]; i++; return ReplChangeManager.encodeFileUri(file.getPath().toString(), - ReplChangeManager.checksumFor(file.getPath(), fs)); + ReplChangeManager.checksumFor(file.getPath(), fs), null); } catch (IOException e) { throw new RuntimeException(e); } @@ -414,10 +416,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() { @@ -426,7 +433,8 @@ public boolean hasNext() { @Override public String next() { - String result = encodeFileUri(files.get(i), chksums != null? chksums.get(i) : null); + String result = encodeFileUri(files.get(i), chksums != null ? chksums.get(i) : null, + subDirs != null ? subDirs.get(i) : null); i++; return result; } @@ -616,6 +624,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.getTxnId(), acidWriteEvent.getDatabase(), + acidWriteEvent.getTable(), acidWriteEvent.getWriteId(), acidWriteEvent.getPartition(), + acidWriteEvent.getTableObj(), acidWriteEvent.getPartitionObj(), + new FileChksumIterator(acidWriteEvent.getFiles(), acidWriteEvent.getChecksums(), + acidWriteEvent.getSubDirs())); + NotificationEvent event = new NotificationEvent(0, now(), EventType.ACID_WRITE.toString(), msg.toString()); + event.setMessageFormat(msgFactory.getMessageFormat()); + 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; @@ -627,6 +652,132 @@ private int now() { return (int)millis; } + /** + * Close statement instance. + * @param stmt statement instance. + */ + protected 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} + */ + static void close(ResultSet rs) { + try { + if (rs != null && !rs.isClosed()) { + rs.close(); + } + } catch(SQLException ex) { + LOG.warn("Failed to close statement " + ex.getMessage()); + } + } + + private long getNextNLId(ResultSet rs, 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 + ">"); + 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; + } + + private void addWriteNotificationLog(NotificationEvent event, AcidWriteEvent acidWriteEvent, Connection dbConn, + SQLGenerator sqlGenerator, AcidWriteMessage msg) throws MetaException, SQLException { + if ((dbConn == null) || (sqlGenerator == null)) { + LOG.info("connection or sql generator is not set"); + throw new MetaException("connection/sql generator is not set. Conn : " + dbConn + + " , sqlGenerator : " + sqlGenerator); + } + + Statement stmt =null; + ResultSet rs = null; + StringBuilder sb = new StringBuilder(); + String dbName = acidWriteEvent.getDatabase(); + String tblName = acidWriteEvent.getTable(); + String partition = acidWriteEvent.getPartition(); + String tableObj = msg.getTableObjStr(); + String partitionObj = msg.getPartitionObjStr(); + + for (String file : msg.getFiles()) { + sb.append(file).append(","); + } + sb.deleteCharAt(sb.length() -1); + + 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 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(rs, stmt, sqlGenerator, + "org.apache.hadoop.hive.metastore.model.MWriteNotificationLog"); + s = "insert into 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(sb.toString())+ + "," + now() + ")"; + LOG.info("Going to execute insert <" + s + ">"); + stmt.execute(sqlGenerator.addEscapeCharacters(s)); + } else { + String existingFiles = rs.getString(1); + if (existingFiles.contains(sqlGenerator.addEscapeCharacters(sb.toString()))) { + //if list of files are already present then no need to update it again. + LOG.info("file list " + sb.toString() + " already present"); + return; + } + long nlId = rs.getLong(2); + sb.append(",").append(existingFiles); + s = "update WRITE_NOTIFICATION_LOG set WNL_TABLE_OBJ = " + quoteString(tableObj) + "," + + " WNL_PARTITION_OBJ = " + quoteString(partitionObj) + "," + + " WNL_FILES = " + quoteString(sb.toString()) + "," + + " WNL_EVENT_TIME = " + now() + + " where WNL_ID = " + nlId; + LOG.info("Going to execute update <" + s + ">"); + stmt.executeUpdate(sqlGenerator.addEscapeCharacters(s)); + } + + // Set the DB_NOTIFICATION_EVENT_ID for future reference by other listeners. + if (event.isSetEventId()) { + acidWriteEvent.putParameter( + MetaStoreEventListenerConstants.DB_NOTIFICATION_EVENT_ID_KEY_NAME, + Long.toString(event.getEventId())); + } + } 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 + "'"; } @@ -643,7 +794,6 @@ private void addNotificationLog(NotificationEvent event, ListenerEvent listenerE try { stmt = dbConn.createStatement(); event.setMessageFormat(msgFactory.getMessageFormat()); - if (sqlGenerator.getDbProduct() == MYSQL) { stmt.execute("SET @@session.sql_mode=ANSI_QUOTES"); } @@ -662,22 +812,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(rs, stmt, sqlGenerator, + "org.apache.hadoop.hive.metastore.model.MNotificationLog"); List insert = new ArrayList<>(); @@ -705,20 +841,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); } } @@ -735,12 +859,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 { @@ -761,6 +885,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 @@ -791,11 +916,15 @@ public void setTimeToLive(long configTtl) { // TODO: this needs to be enhanced once change management based filesystem is implemented // Currently using fileuri#checksum as the format - private String encodeFileUri(String fileUriStr, String fileChecksum) { + private String encodeFileUri(String fileUriStr, String fileChecksum, String subDir) { + String result = fileUriStr; if (fileChecksum != null) { - return fileUriStr + "#" + fileChecksum; - } else { - return fileUriStr; + result = result + "#" + fileChecksum; + } + + if (subDir != null) { + result = result + "#" + subDir; } + return result; } } 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 8ecbaad81e..4de04d9b02 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 @@ -85,6 +85,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; @@ -862,6 +863,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) throws MetaException { + return objectStore.getAllWriteEventInfo(txnId); + } + @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 8b33b78548..81395453c5 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 @@ -2829,78 +2829,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 2ad83b60e1..61ca818dcd 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 @@ -33,6 +33,9 @@ import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; +import java.util.List; +import java.util.Collections; +import com.google.common.collect.Lists; /** * TestReplicationScenariosAcidTables - test replication for ACID tables @@ -47,6 +50,10 @@ protected static final Logger LOG = LoggerFactory.getLogger(TestReplicationScenarios.class); private static WarehouseInstance primary, replica, replicaNonAcid; private String primaryDbName, replicatedDbName; + private enum OperationType { + REPL_TEST_ACID_INSERT, REPL_TEST_ACID_INSERT_SELECT, REPL_TEST_ACID_CTAS, + REPL_TEST_INSERT_OVERWRITE, REPL_TEST_INSERT_IMPORT, REPL_TEST_INSERT_LOADLOCAL + } @BeforeClass public static void classLevelSetup() throws Exception { @@ -59,6 +66,11 @@ 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.exec.dynamic.partition.mode", "nonstrict"); + put("hive.strict.checks.bucketing", "false"); + put("hive.mapred.mode", "nonstrict"); + put("hive.metastore.disallow.incompatible.col.type.changes","false"); + put("metastore.client.capability.check","false"); }}; primary = new WarehouseInstance(LOG, miniDFSCluster, overridesForHiveConf); replica = new WarehouseInstance(LOG, miniDFSCluster, overridesForHiveConf); @@ -176,4 +188,407 @@ 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), + Collections.singletonList(new String[] {"1", "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 tableNameMM = testName.getMethodName() + "_MM"; + String tableNameMerge = testName.getMethodName() + "_Merge"; + String tableNameMergeMM = testName.getMethodName() + "_MergeMM"; + 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, + "select key from " + tableNameMerge, + "select ID from " + tableNameMerge), + Lists.newArrayList(new String[] {"creation","creation","creation","creation","creation", + "creation","creation","merge_update","merge_insert","merge_insert"}, + new String[] {"1","2","3","4","5","6"}, 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_INSERT_IMPORT); + incrementalDump = verifyLoad(tableName, tableNameImport, bootStrapDump.lastReplicationId); + + insertRecords(tableNameMM, null, true, OperationType.REPL_TEST_ACID_INSERT); + insertRecords(tableNameMM, tableNameImportMM, true, OperationType.REPL_TEST_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_INSERT_OVERWRITE); + incrementalDump = verifyLoad(tableName, tableNameOW, bootStrapDump.lastReplicationId); + + insertRecords(tableNameMM, null, true, OperationType.REPL_TEST_ACID_INSERT); + insertRecords(tableNameMM, tableNameOWMM, true, OperationType.REPL_TEST_INSERT_OVERWRITE); + incrementalDump = verifyLoad(tableNameMM, tableNameOWMM, incrementalDump.lastReplicationId); + } + + public void testLoodLocal() 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_INSERT_LOADLOCAL); + incrementalDump = verifyLoad(tableName, tableNameLL, bootStrapDump.lastReplicationId); + + insertRecords(tableNameMM, null, true, OperationType.REPL_TEST_ACID_INSERT); + insertRecords(tableNameMM, tableNameLLMM, true, OperationType.REPL_TEST_INSERT_LOADLOCAL); + incrementalDump = verifyLoad(tableNameMM, tableNameLLMM, incrementalDump.lastReplicationId); + } + + /*@Test + public void testImportOverWrite() throws Throwable { + String tableName = testName.getMethodName(); + String path = "hdfs:///tmp/" + primaryDbName + "/"; + String exportPath = "'" + path + tableName + "/'"; + String importPath = "'" + path + tableName + "/data'"; + + WarehouseInstance.Tuple bootStrapDump = primary.dump(primaryDbName, null); + replica.load(replicatedDbName, bootStrapDump.dumpLocation) + .run("REPL STATUS " + replicatedDbName) + .verifyResult(bootStrapDump.lastReplicationId); + + primary.run("use " + primaryDbName) + .run("create table " + tableName + " (i int) CLUSTERED BY (i) into 5 buckets STORED AS ORC TBLPROPERTIES" + + "('transactional'='true')") + .run("insert into table " + tableName + " values (1),(2)") + .run("export table " + tableName + " to " + exportPath) + .run("create table " + tableName + "_t2 like " + tableName) + .run("load data inpath " + importPath + " overwrite into table " + tableName + "_t2") + .run("select * from " + tableName + "_t2") + .verifyResults(new String[] { "1", "2" }); + + verifyIncrementalLoad(Collections.singletonList("select * from " + tableName + "_t2"), + Collections.singletonList(new String[] { "1", "2" }), bootStrapDump.lastReplicationId); + } + + @Test + public void testImportMetadataOnly() throws Throwable { + String tableName = testName.getMethodName(); + String importTblname = tableName + "_import"; + String path = "hdfs:///tmp/" + primaryDbName + "/"; + String exportMDPath = "'" + path + tableName + "_1/'"; + String exportDataPath = "'" + path + tableName + "_2/'"; + + WarehouseInstance.Tuple bootStrapDump = primary.dump(primaryDbName, null); + replica.load(replicatedDbName, bootStrapDump.dumpLocation) + .run("REPL STATUS " + replicatedDbName) + .verifyResult(bootStrapDump.lastReplicationId); + + primary.run("use " + primaryDbName) + .run("create table " + tableName + " (i int) CLUSTERED BY (i) into 5 buckets STORED AS ORC TBLPROPERTIES" + + "('transactional'='true')") + .run("insert into table " + tableName + " values (1),(2)") + .run("export table " + tableName + " to " + exportMDPath + " for metadata replication('1')") + .run("export table " + tableName + " to " + exportDataPath + " for replication('2')") + .run("import table " + importTblname + " from " + exportMDPath) + .run("import table " + importTblname + " from " + exportDataPath) + .run("select * from " + importTblname) + .verifyResults(new String[] { "1", "2" }); + + verifyIncrementalLoad(Collections.singletonList("select * from " + importTblname), + Collections.singletonList(new String[] { "1", "2" }), bootStrapDump.lastReplicationId); + }*/ + + private WarehouseInstance.Tuple verifyIncrementalLoad(List selectStmtList, + List expectedValues, String lastReplId) throws Throwable { + WarehouseInstance.Tuple incrementalDump = primary.dump(primaryDbName, lastReplId); + replica.load(replicatedDbName, incrementalDump.dumpLocation) + .run("REPL STATUS " + replicatedDbName).verifyResult(incrementalDump.lastReplicationId); + for (int idx = 0; idx > selectStmtList.size(); idx++) { + replica.run("use " + replicatedDbName).run(selectStmtList.get(idx)).verifyResults(expectedValues.get(idx)); + } + 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) + .verifyResults(new String[] {"1", "100" , "100"}); + } + + private void truncateTable(String tableName) throws Throwable { + primary.run("use " + primaryDbName) + .run("truncate table " + tableName) + .run("select count(*) from " + tableName) + .verifyResult("0"); + } + + private WarehouseInstance.Tuple verifyLoad(String tableName, String tableNameOp, String lastReplId) throws Throwable { + if (tableNameOp == null) { + return verifyIncrementalLoad(Collections.singletonList("select key from " + tableName), + Collections.singletonList(new String[]{"1", "2", "4"}), lastReplId); + } + return verifyIncrementalLoad(Lists.newArrayList("select key from " + tableName, "select key from " + tableNameOp), + Lists.newArrayList(new String[] {"1", "2" ,"4"}, new String[] {"1", "2", "4"}), + lastReplId); + } + + private void insertRecords(String tableName, String tableNameOp, boolean isMMTable, OperationType opType) throws Throwable { + String tableProperty = "'transactional'='true'"; + if (isMMTable) { + tableProperty = setMMtableProperty(tableProperty); + } + primary.run("use " + primaryDbName); + + switch (opType) { + case REPL_TEST_ACID_INSERT: + 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("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 (4, 4)") + .run("select key from " + tableName) + .verifyResults(new String[] {"1", "2", "4"}); + break; + case REPL_TEST_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 overwrite table " + tableNameOp + " partition (load_date) select * from " + tableName) + .run("select key from " + tableNameOp) + .verifyResults(new String[] {"1", "2", "4"}); + 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("select key from " + tableNameOp) + .verifyResults(new String[] {"1", "2", "4"}); + break; + case REPL_TEST_INSERT_IMPORT: + String path = "hdfs:///tmp/" + primaryDbName + "/"; + String exportPath = "'" + path + tableName + "/'"; + primary.run("export table " + tableName + " to " + exportPath) + .run("import table " + tableNameOp + " from " + exportPath) + .run("select key from " + tableNameOp) + .verifyResults(new String[] { "1", "2", "4" }); + break; + case REPL_TEST_ACID_CTAS: + primary.run("create table " + tableNameOp + " partition (load_date) as select * from " + tableName) + .run("select key from " + tableNameOp) + .verifyResults(new String[] {"1", "2", "4"}); + break; + case REPL_TEST_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 '/tmp/' SELECT a.* FROM" + tableName + " a") + .run("LOAD DATA LOCAL INPATH '/tmp/' OVERWRITE INTO TABLE " + tableNameOp + + " PARTITION (load_date='2008-08-15')") + .run("select key from " + tableNameOp) + .verifyResults(new String[] {"1", "2", "4"}); + break; + default: + break; + } + } + + 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) + .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) + .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) + .verifyResults(new String[] {"creation","creation","creation","creation","creation", + "creation","creation","merge_update","merge_insert","merge_insert"}); + } } 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..a9074ebe8f 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) { @@ -276,6 +280,10 @@ public int execute(DriverContext driverContext) { + work.getLoadMultiFilesWork()); } + LOG.debug("Executing MoveWork " + System.identityHashCode(work) + + " with " + work.getLoadFileWork() + "; " + work.getLoadTableWork() + "; " + + work.getLoadMultiFilesWork()); + try { if (driverContext.getCtx().getExplainAnalyze() == AnalyzeState.RUNNING) { return 0; 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 1cad5796ff..466e3c4a60 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 @@ -72,6 +72,8 @@ protected int execute(DriverContext driverContext) { console.printInfo("Copying data from " + fromPath.toString(), " to " + toPath.toString()); + LOG.debug("Copying data from " + fromPath.toString(), " to " + + toPath.toString()); ReplCopyWork rwork = ((ReplCopyWork)work); @@ -83,7 +85,7 @@ protected int execute(DriverContext driverContext) { if (ReplChangeManager.isCMFileUri(fromPath, srcFs)) { String[] result = ReplChangeManager.getFileWithChksumFromURI(fromPath.toString()); ReplChangeManager.FileInfo sourceInfo = ReplChangeManager - .getFileInfo(new Path(result[0]), result[1], conf); + .getFileInfo(new Path(result[0]), result[1], result[2], conf); if (FileUtils.copy( sourceInfo.getSrcFs(), sourceInfo.getSourcePath(), dstFs, toPath, false, false, conf)) { @@ -130,7 +132,7 @@ protected int execute(DriverContext driverContext) { console.printInfo("Copying file: " + oneSrc.getPath().toString()); LOG.debug("ReplCopyTask :cp:{}=>{}", oneSrc.getPath(), toPath); srcFiles.add(new ReplChangeManager.FileInfo(oneSrc.getPath().getFileSystem(conf), - oneSrc.getPath())); + oneSrc.getPath(), null)); } } @@ -190,7 +192,7 @@ protected int execute(DriverContext driverContext) { String[] fileWithChksum = ReplChangeManager.getFileWithChksumFromURI(line); try { ReplChangeManager.FileInfo f = ReplChangeManager - .getFileInfo(new Path(fileWithChksum[0]), fileWithChksum[1], conf); + .getFileInfo(new Path(fileWithChksum[0]), fileWithChksum[1], fileWithChksum[2], conf); filePaths.add(f); } catch (MetaException e) { // issue warning for missing file and throw exception 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 2615072f5e..0b98342b49 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,7 @@ package org.apache.hadoop.hive.ql.exec; +import org.apache.hadoop.hive.metastore.api.CommitTxnRequest; import org.apache.hadoop.hive.metastore.api.TxnToWriteId; import org.apache.hadoop.hive.ql.DriverContext; import org.apache.hadoop.hive.ql.lockmgr.HiveTxnManager; @@ -90,10 +91,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/ReplTxnWork.java b/ql/src/java/org/apache/hadoop/hive/ql/exec/ReplTxnWork.java index 530e9be884..ff496ba8d6 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/exec/ReplTxnWork.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/ReplTxnWork.java @@ -20,9 +20,11 @@ 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; import org.apache.hadoop.hive.ql.plan.Explain.Level; +import java.util.ArrayList; import java.util.Collections; import java.util.List; @@ -39,6 +41,7 @@ private List txnIds; private List txnToWriteIdList; private ReplicationSpec replicationSpec; + private List writeEventInfos; /** * OperationType. @@ -59,6 +62,7 @@ public ReplTxnWork(String replPolicy, String dbName, String tableName, List txnIds, OperationType type, @@ -76,6 +80,13 @@ public ReplTxnWork(String replPolicy, String dbName, String tableName, Operation this(replPolicy, dbName, tableName, null, type, txnToWriteIdList, replicationSpec); } + public void addWriteEventInfo(WriteEventInfo writeEventInfo) { + if (this.writeEventInfos == null) { + this.writeEventInfos = new ArrayList<>(); + } + this.writeEventInfos.add(writeEventInfo); + } + public List getTxnIds() { return txnIds; } @@ -103,4 +114,8 @@ public OperationType getOperationType() { public ReplicationSpec getReplicationSpec() { return replicationSpec; } + + public List getWriteEventInfos() { + return writeEventInfos; + } } 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 7b7fd5d198..7b8ddc5f0e 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 @@ -601,14 +601,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) { 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 78eedd34f3..9597d6d5e9 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; @@ -220,7 +221,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 ec11fecba7..f83be59da3 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; @@ -60,11 +61,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. 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 4661881301..56da6a2f37 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 @@ -166,6 +166,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; @@ -181,6 +182,7 @@ 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; +import org.apache.hadoop.hive.ql.parse.repl.dump.io.FileOperations; import org.apache.hadoop.hive.ql.plan.AddPartitionDesc; import org.apache.hadoop.hive.ql.plan.DropTableDesc; import org.apache.hadoop.hive.ql.plan.ExprNodeColumnDesc; @@ -1694,8 +1696,12 @@ 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)) { - newFiles = Collections.synchronizedList(new ArrayList()); + if (conf.getBoolVar(ConfVars.FIRE_EVENTS_FOR_DML) && !tbl.isTemporary()) { + // For Acid IUD, add partition is a meta data only operation. So need to add the new files added + // information into the write_notification_log table. + if ((null != oldPart) || AcidUtils.isTransactionalTable(tbl)) { + newFiles = Collections.synchronizedList(new ArrayList()); + } } @@ -1711,7 +1717,7 @@ public Partition loadPartition(Path loadPath, Table tbl, Map par } assert !isAcidIUDoperation; if (areEventsForDmlNeeded(tbl, oldPart)) { - newFiles = listFilesCreatedByQuery(loadPath, writeId, stmtId); + newFiles = listFilesCreatedByQuery(loadPath, writeId, stmtId, isMmTableWrite ? isInsertOverwrite : false); } if (Utilities.FILE_OP_LOGGER.isTraceEnabled()) { Utilities.FILE_OP_LOGGER.trace("maybe deleting stuff from " + oldPartPath @@ -1754,7 +1760,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 (AcidUtils.isTransactionalTable(tbl)) { + 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."); @@ -1827,6 +1837,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 (AcidUtils.isTransactionalTable(tbl) && (null != newFiles)) { + addWriteNotificationLog(tbl, partSpec, newFiles, writeId); + } } else { setStatsPropAndAlterPartition(hasFollowingStatsTask, tbl, newTPart); } @@ -1879,12 +1895,14 @@ 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; + return conf.getBoolVar(ConfVars.FIRE_EVENTS_FOR_DML) && !tbl.isTemporary() && + ((null != oldPart) || AcidUtils.isTransactionalTable(tbl)); } - private List listFilesCreatedByQuery(Path loadPath, long writeId, int stmtId) throws HiveException { + private List listFilesCreatedByQuery(Path loadPath, long writeId, int stmtId, + boolean isInsertOverwrite) throws HiveException { List newFiles = new ArrayList(); - final String filePrefix = AcidUtils.deltaSubdir(writeId, writeId, stmtId); + final String filePrefix = AcidUtils.baseOrDeltaSubdir(isInsertOverwrite, writeId, writeId, stmtId);; FileStatus[] srcs; FileSystem srcFs; try { @@ -1907,7 +1925,7 @@ private boolean areEventsForDmlNeeded(Table tbl, Partition oldPart) { subdirFilter = new PathFilter() { @Override public boolean accept(Path path) { - return path.getName().startsWith(filePrefix); + return path.getParent().getName().startsWith(filePrefix); } }; } @@ -2288,7 +2306,7 @@ 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); + newFiles = listFilesCreatedByQuery(loadPath, writeId, stmtId, isMmTable ? isInsertOverwrite : false); } else { // Either a non-MM query, or a load into MM table from an external source. Path tblPath = tbl.getPath(); @@ -2351,7 +2369,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); + } } /** @@ -2602,6 +2624,47 @@ 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); + + 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)) { @@ -2678,6 +2741,7 @@ private static void addInsertNonDirectoryInformation(Path p, FileSystem fileSyst InsertEventRequestData insertData) throws IOException { insertData.addToFilesAdded(p.toString()); FileChecksum cksum = fileSystem.getFileChecksum(p); + String acidDir = FileOperations.getAcidSubDir(p.getParent()); // File checksum is not implemented for local filesystem (RawLocalFileSystem) if (cksum != null) { String checksumString = @@ -2687,6 +2751,9 @@ private static void addInsertNonDirectoryInformation(Path p, FileSystem fileSyst // Add an empty checksum string for filesystems that don't generate one insertData.addToFilesAddedChecksum(""); } + if (acidDir != null) { + insertData.addToSubDirectoryList(acidDir); + } } public boolean dropPartition(String tblName, List part_vals, boolean deleteData) 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..cc71149bda 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 @@ -438,4 +438,12 @@ public static String getReplPolicy(String dbName, String tableName) { return dbName.toLowerCase() + "." + tableName.toLowerCase(); } } + + public static String getDumpPath(String dbName, String tableName) { + assert (dbName != null); + if ((tableName != null) && (!tableName.isEmpty())) { + return dbName + "." + tableName; + } + return 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 b850ddc9d0..eecdf0edac 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) { @@ -278,7 +281,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); @@ -332,13 +335,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, @@ -387,7 +391,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); @@ -427,13 +431,26 @@ private static ImportTableDesc getBaseCreateTableDescFromTable(String dbName, copyTask = TaskFactory.get(cw); } - 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; @@ -497,8 +514,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()) { @@ -524,17 +543,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); 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 2f3b07f4af..4c204db113 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 4e61280c9e..0e2f857e27 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 @@ -66,43 +66,51 @@ public CopyUtils(String distCpDoAsUser, HiveConf hiveConf) { // Used by replication, copy files from source to destination. It is possible source file is // changed/removed during copy, so double check the checksum after copy, // if not match, copy again from cm - public void copyAndVerify(FileSystem destinationFs, Path destination, + public void copyAndVerify(FileSystem destinationFs, Path destRoot, List srcFiles) throws IOException, LoginException { - Map> map = fsToFileMap(srcFiles); - for (Map.Entry> entry : map.entrySet()) { + Map>> map = fsToFileMap(srcFiles, destRoot); + for (Map.Entry>> entry : map.entrySet()) { FileSystem sourceFs = entry.getKey(); - List fileInfoList = entry.getValue(); - boolean useRegularCopy = regularCopy(destinationFs, sourceFs, fileInfoList); + Map> destMap = entry.getValue(); + for (Map.Entry> destMapEntry : destMap.entrySet()) { + Path destination = destMapEntry.getKey(); + List fileInfoList = destMapEntry.getValue(); + boolean useRegularCopy = regularCopy(destinationFs, sourceFs, fileInfoList); + if (!destinationFs.exists(destination) && !FileUtils.mkdir(destinationFs, destination, hiveConf)) { + LOG.error("Failed to create destination directory: " + destination); + throw new IOException("Destination directory creation failed"); + } - doCopyRetry(sourceFs, fileInfoList, destinationFs, destination, useRegularCopy); + doCopyRetry(sourceFs, fileInfoList, destinationFs, destination, useRegularCopy); - // Verify checksum, retry if checksum changed - List retryFileInfoList = new ArrayList<>(); - for (ReplChangeManager.FileInfo srcFile : srcFiles) { - if(!srcFile.isUseSourcePath()) { - // If already use cmpath, nothing we can do here, skip this file - continue; - } - String sourceChecksumString = srcFile.getCheckSum(); - if (sourceChecksumString != null) { - String verifySourceChecksumString; - try { - verifySourceChecksumString - = ReplChangeManager.checksumFor(srcFile.getSourcePath(), sourceFs); - } catch (IOException e) { - // Retry with CM path - verifySourceChecksumString = null; + // Verify checksum, retry if checksum changed + List retryFileInfoList = new ArrayList<>(); + for (ReplChangeManager.FileInfo srcFile : srcFiles) { + if (!srcFile.isUseSourcePath()) { + // If already use cmpath, nothing we can do here, skip this file + continue; } - if ((verifySourceChecksumString == null) - || !sourceChecksumString.equals(verifySourceChecksumString)) { - // If checksum does not match, likely the file is changed/removed, copy again from cm - srcFile.setIsUseSourcePath(false); - retryFileInfoList.add(srcFile); + String sourceChecksumString = srcFile.getCheckSum(); + if (sourceChecksumString != null) { + String verifySourceChecksumString; + try { + verifySourceChecksumString + = ReplChangeManager.checksumFor(srcFile.getSourcePath(), sourceFs); + } catch (IOException e) { + // Retry with CM path + verifySourceChecksumString = null; + } + if ((verifySourceChecksumString == null) + || !sourceChecksumString.equals(verifySourceChecksumString)) { + // If checksum does not match, likely the file is changed/removed, copy again from cm + srcFile.setIsUseSourcePath(false); + retryFileInfoList.add(srcFile); + } } } - } - if (!retryFileInfoList.isEmpty()) { - doCopyRetry(sourceFs, retryFileInfoList, destinationFs, destination, useRegularCopy); + if (!retryFileInfoList.isEmpty()) { + doCopyRetry(sourceFs, retryFileInfoList, destinationFs, destination, useRegularCopy); + } } } } @@ -212,7 +220,7 @@ public void doCopy(Path destination, List srcPaths) throws IOException, Lo for (Map.Entry> entry : map.entrySet()) { final FileSystem sourceFs = entry.getKey(); List fileList = Lists.transform(entry.getValue(), - path -> { return new ReplChangeManager.FileInfo(sourceFs, path);}); + path -> { return new ReplChangeManager.FileInfo(sourceFs, path, null); }); doCopyOnce(sourceFs, entry.getValue(), destinationFs, destination, regularCopy(destinationFs, sourceFs, fileList)); @@ -287,16 +295,33 @@ private boolean isLocal(FileSystem fs) { return result; } - private Map> fsToFileMap( - List srcFiles) throws IOException { - Map> result = new HashMap<>(); + // Create map of source file system to destination path to list of files to copy + private Map>> fsToFileMap( + List srcFiles, Path destRoot) throws IOException { + Map>> result = new HashMap<>(); for (ReplChangeManager.FileInfo file : srcFiles) { FileSystem fileSystem = file.getSrcFs(); if (!result.containsKey(fileSystem)) { - result.put(fileSystem, new ArrayList()); + result.put(fileSystem, new HashMap<>()); } - result.get(fileSystem).add(file); + Path destination = getCopyDestination(file, destRoot); + if (!result.get(fileSystem).containsKey(destination)) { + result.get(fileSystem).put(destination, new ArrayList<>()); + } + result.get(fileSystem).get(destination).add(file); } return result; } + + private Path getCopyDestination(ReplChangeManager.FileInfo fileInfo, Path destRoot) { + if (fileInfo.getSubDir() == null) { + return destRoot; + } + String[] subDirs = fileInfo.getSubDir().split(Path.SEPARATOR); + Path destination = destRoot; + for (String subDir: subDirs) { + destination = new Path(destination, subDir); + } + return destination; + } } diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/TableExport.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/TableExport.java index abb2e8874b..d41cef6ec7 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/TableExport.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/TableExport.java @@ -26,7 +26,6 @@ import org.apache.hadoop.hive.ql.ErrorMsg; import org.apache.hadoop.hive.ql.hooks.ReadEntity; import org.apache.hadoop.hive.ql.hooks.WriteEntity; -import org.apache.hadoop.hive.ql.io.AcidUtils; import org.apache.hadoop.hive.ql.metadata.Hive; import org.apache.hadoop.hive.ql.metadata.HiveException; import org.apache.hadoop.hive.ql.metadata.Partition; @@ -160,12 +159,6 @@ private void writeData(PartitionIterable partitions) throws SemanticException { } private boolean shouldExport() { - // Note: this is a temporary setting that is needed because replication does not support - // ACID or MM tables at the moment. It will eventually be removed. - if (conf.getBoolVar(HiveConf.ConfVars.REPL_DUMP_INCLUDE_ACID_TABLES) - && AcidUtils.isTransactionalTable(tableSpec.tableHandle)) { - return true; - } return Utils.shouldReplicate(replicationSpec, tableSpec.tableHandle, conf); } 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 d2bdde9946..0ea35cb034 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 @@ -176,10 +176,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..535cd5fe30 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,25 @@ */ 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.api.NotificationEvent; +import org.apache.hadoop.hive.metastore.api.WriteEventInfo; +import org.apache.hadoop.hive.metastore.messaging.CommitTxnMessage; +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 +44,101 @@ 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); + } + } + } + @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()); + + List writeEventInfoList = HiveMetaStore.HMSHandler.getMSForConf(withinContext.hiveConf). + getAllWriteEventInfo(commitTxnMessage.getTxnId()); + int numEntry = (writeEventInfoList != null ? writeEventInfoList.size() : 0); + if (numEntry != 0) { + commitTxnMessage.addWriteEventInfo(writeEventInfoList); + payload = commitTxnMessage.toString(); + LOG.debug("payload for commit txn event : " + payload); + } + + Context context = null; + org.apache.hadoop.hive.ql.metadata.Table qlMdTablePrev = null; + org.apache.hadoop.hive.ql.metadata.Table qlMdTable; + List qlPtns = new ArrayList<>(); + List> filesTobeAdded = new ArrayList<>(); + + for (int idx = 0; idx < numEntry; idx++) { + qlMdTable = new org.apache.hadoop.hive.ql.metadata.Table(commitTxnMessage.getTableObj(idx)); + Path newPath = new Path(withinContext.eventRoot, + HiveUtils.getDumpPath(qlMdTable.getDbName(), qlMdTable.getTableName())); + context = new Context(newPath, withinContext.cmRoot, + withinContext.db, withinContext.hiveConf, withinContext.replicationSpec); + if (qlMdTablePrev == null) { + qlMdTablePrev = qlMdTable; + } + + // one dump directory per table + if (!qlMdTablePrev.getTableName().equals(qlMdTable.getTableName())) { + createDumpFile(context, 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))); + } + + String[] fileList = commitTxnMessage.getFiles(idx).split(","); + filesTobeAdded.add(Lists.newArrayList(fileList)); + } + if (qlMdTablePrev != null) { + createDumpFile(context, 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/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/dump/io/FileOperations.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/io/FileOperations.java index 866d3513b1..ff197936c1 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/io/FileOperations.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/io/FileOperations.java @@ -22,6 +22,7 @@ import org.apache.hadoop.fs.Path; import org.apache.hadoop.hive.conf.HiveConf; import org.apache.hadoop.hive.metastore.ReplChangeManager; +import org.apache.hadoop.hive.ql.io.AcidUtils; import org.apache.hadoop.hive.ql.parse.EximUtil; import org.apache.hadoop.hive.ql.parse.LoadSemanticAnalyzer; import org.apache.hadoop.hive.ql.parse.ReplicationSpec; @@ -108,6 +109,16 @@ private BufferedWriter writer() throws IOException { private String encodedUri(FileStatus fileStatus) throws IOException { Path currentDataFilePath = fileStatus.getPath(); String checkSum = ReplChangeManager.checksumFor(currentDataFilePath, dataFileSystem); - return ReplChangeManager.encodeFileUri(currentDataFilePath.toString(), checkSum); + return ReplChangeManager.encodeFileUri(currentDataFilePath.toString(), checkSum, null); + } + + public static String getAcidSubDir(Path dataPath) { + String dataDir = dataPath.getName(); + if (dataDir.startsWith(AcidUtils.BASE_PREFIX) + || dataDir.startsWith(AcidUtils.DELTA_PREFIX) + || dataDir.startsWith(AcidUtils.DELETE_DELTA_PREFIX)) { + return dataDir; + } + return null; } } diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/io/FunctionSerializer.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/io/FunctionSerializer.java index f72f430a09..b68e8874c5 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/io/FunctionSerializer.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/io/FunctionSerializer.java @@ -56,7 +56,7 @@ public void writeTo(JsonWriter writer, ReplicationSpec additionalPropertiesProvi FileSystem fileSystem = inputPath.getFileSystem(hiveConf); Path qualifiedUri = PathBuilder.fullyQualifiedHDFSUri(inputPath, fileSystem); String checkSum = ReplChangeManager.checksumFor(qualifiedUri, fileSystem); - String newFileUri = ReplChangeManager.encodeFileUri(qualifiedUri.toString(), checkSum); + String newFileUri = ReplChangeManager.encodeFileUri(qualifiedUri.toString(), checkSum, null); resourceUris.add(new ResourceUri(uri.getResourceType(), newFileUri)); } else { resourceUris.add(uri); 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 127421320a..503e2c4599 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,6 +17,8 @@ */ 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.ReplTxnWork; import org.apache.hadoop.hive.ql.exec.Task; @@ -25,7 +27,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 +37,63 @@ 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 - ); + int numEntry = (msg.getTables() == null ? 0 : msg.getTables().size()); + List> tasks = new ArrayList<>(); + String dbName = (context.dbName == null || context.isDbNameEmpty() ? msg.getDB() : context.dbName); + String tableNamePrev = null; + String tblName = null; + + 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); + //one import task per table + if (tableNamePrev == null || !actualTblName.equals(tableNamePrev)) { + // The data location is created by source, so the location should be formed based on the table name in msg. + String location = context.location + Path.SEPARATOR + + HiveUtils.getDumpPath(msg.getDatabases().get(idx), actualTblName); + tblName = context.isTableNameEmpty() ? actualTblName : context.tableName; + Context currentContext = new Context(dbName, tblName, location, context.precursor, + context.dmd, context.hiveConf, context.db, context.nestedContext, context.log); + + // 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 = actualTblName; + } + + try { + WriteEventInfo writeEventInfo = new WriteEventInfo(msg.getWriteIds().get(idx), + dbName, tblName, msg.getPartitions().get(idx)); + writeEventInfo.setFiles(msg.getFiles(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); updatedMetadata.set(context.dmd.getEventTo().toString(), context.dbName, context.tableName, null); context.log.debug("Added Commit txn task : {}", commitTxnTask.getId()); - return Collections.singletonList(commitTxnTask); + tasks.add(commitTxnTask); + return tasks; } } + 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..a4bf3c0795 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 = false; } 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/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp b/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp index 4787703474..4d940fd66d 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 _size1191; - ::apache::thrift::protocol::TType _etype1194; - xfer += iprot->readListBegin(_etype1194, _size1191); - this->success.resize(_size1191); - uint32_t _i1195; - for (_i1195 = 0; _i1195 < _size1191; ++_i1195) + uint32_t _size1215; + ::apache::thrift::protocol::TType _etype1218; + xfer += iprot->readListBegin(_etype1218, _size1215); + this->success.resize(_size1215); + uint32_t _i1219; + for (_i1219 = 0; _i1219 < _size1215; ++_i1219) { - xfer += iprot->readString(this->success[_i1195]); + xfer += iprot->readString(this->success[_i1219]); } 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 _iter1196; - for (_iter1196 = this->success.begin(); _iter1196 != this->success.end(); ++_iter1196) + std::vector ::const_iterator _iter1220; + for (_iter1220 = this->success.begin(); _iter1220 != this->success.end(); ++_iter1220) { - xfer += oprot->writeString((*_iter1196)); + xfer += oprot->writeString((*_iter1220)); } 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 _size1197; - ::apache::thrift::protocol::TType _etype1200; - xfer += iprot->readListBegin(_etype1200, _size1197); - (*(this->success)).resize(_size1197); - uint32_t _i1201; - for (_i1201 = 0; _i1201 < _size1197; ++_i1201) + uint32_t _size1221; + ::apache::thrift::protocol::TType _etype1224; + xfer += iprot->readListBegin(_etype1224, _size1221); + (*(this->success)).resize(_size1221); + uint32_t _i1225; + for (_i1225 = 0; _i1225 < _size1221; ++_i1225) { - xfer += iprot->readString((*(this->success))[_i1201]); + xfer += iprot->readString((*(this->success))[_i1225]); } 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 _size1202; - ::apache::thrift::protocol::TType _etype1205; - xfer += iprot->readListBegin(_etype1205, _size1202); - this->success.resize(_size1202); - uint32_t _i1206; - for (_i1206 = 0; _i1206 < _size1202; ++_i1206) + uint32_t _size1226; + ::apache::thrift::protocol::TType _etype1229; + xfer += iprot->readListBegin(_etype1229, _size1226); + this->success.resize(_size1226); + uint32_t _i1230; + for (_i1230 = 0; _i1230 < _size1226; ++_i1230) { - xfer += iprot->readString(this->success[_i1206]); + xfer += iprot->readString(this->success[_i1230]); } 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 _iter1207; - for (_iter1207 = this->success.begin(); _iter1207 != this->success.end(); ++_iter1207) + std::vector ::const_iterator _iter1231; + for (_iter1231 = this->success.begin(); _iter1231 != this->success.end(); ++_iter1231) { - xfer += oprot->writeString((*_iter1207)); + xfer += oprot->writeString((*_iter1231)); } 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 _size1208; - ::apache::thrift::protocol::TType _etype1211; - xfer += iprot->readListBegin(_etype1211, _size1208); - (*(this->success)).resize(_size1208); - uint32_t _i1212; - for (_i1212 = 0; _i1212 < _size1208; ++_i1212) + uint32_t _size1232; + ::apache::thrift::protocol::TType _etype1235; + xfer += iprot->readListBegin(_etype1235, _size1232); + (*(this->success)).resize(_size1232); + uint32_t _i1236; + for (_i1236 = 0; _i1236 < _size1232; ++_i1236) { - xfer += iprot->readString((*(this->success))[_i1212]); + xfer += iprot->readString((*(this->success))[_i1236]); } 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 _size1213; - ::apache::thrift::protocol::TType _ktype1214; - ::apache::thrift::protocol::TType _vtype1215; - xfer += iprot->readMapBegin(_ktype1214, _vtype1215, _size1213); - uint32_t _i1217; - for (_i1217 = 0; _i1217 < _size1213; ++_i1217) + uint32_t _size1237; + ::apache::thrift::protocol::TType _ktype1238; + ::apache::thrift::protocol::TType _vtype1239; + xfer += iprot->readMapBegin(_ktype1238, _vtype1239, _size1237); + uint32_t _i1241; + for (_i1241 = 0; _i1241 < _size1237; ++_i1241) { - std::string _key1218; - xfer += iprot->readString(_key1218); - Type& _val1219 = this->success[_key1218]; - xfer += _val1219.read(iprot); + std::string _key1242; + xfer += iprot->readString(_key1242); + Type& _val1243 = this->success[_key1242]; + xfer += _val1243.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 _iter1220; - for (_iter1220 = this->success.begin(); _iter1220 != this->success.end(); ++_iter1220) + std::map ::const_iterator _iter1244; + for (_iter1244 = this->success.begin(); _iter1244 != this->success.end(); ++_iter1244) { - xfer += oprot->writeString(_iter1220->first); - xfer += _iter1220->second.write(oprot); + xfer += oprot->writeString(_iter1244->first); + xfer += _iter1244->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 _size1221; - ::apache::thrift::protocol::TType _ktype1222; - ::apache::thrift::protocol::TType _vtype1223; - xfer += iprot->readMapBegin(_ktype1222, _vtype1223, _size1221); - uint32_t _i1225; - for (_i1225 = 0; _i1225 < _size1221; ++_i1225) + uint32_t _size1245; + ::apache::thrift::protocol::TType _ktype1246; + ::apache::thrift::protocol::TType _vtype1247; + xfer += iprot->readMapBegin(_ktype1246, _vtype1247, _size1245); + uint32_t _i1249; + for (_i1249 = 0; _i1249 < _size1245; ++_i1249) { - std::string _key1226; - xfer += iprot->readString(_key1226); - Type& _val1227 = (*(this->success))[_key1226]; - xfer += _val1227.read(iprot); + std::string _key1250; + xfer += iprot->readString(_key1250); + Type& _val1251 = (*(this->success))[_key1250]; + xfer += _val1251.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 _size1228; - ::apache::thrift::protocol::TType _etype1231; - xfer += iprot->readListBegin(_etype1231, _size1228); - this->success.resize(_size1228); - uint32_t _i1232; - for (_i1232 = 0; _i1232 < _size1228; ++_i1232) + uint32_t _size1252; + ::apache::thrift::protocol::TType _etype1255; + xfer += iprot->readListBegin(_etype1255, _size1252); + this->success.resize(_size1252); + uint32_t _i1256; + for (_i1256 = 0; _i1256 < _size1252; ++_i1256) { - xfer += this->success[_i1232].read(iprot); + xfer += this->success[_i1256].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 _iter1233; - for (_iter1233 = this->success.begin(); _iter1233 != this->success.end(); ++_iter1233) + std::vector ::const_iterator _iter1257; + for (_iter1257 = this->success.begin(); _iter1257 != this->success.end(); ++_iter1257) { - xfer += (*_iter1233).write(oprot); + xfer += (*_iter1257).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 _size1234; - ::apache::thrift::protocol::TType _etype1237; - xfer += iprot->readListBegin(_etype1237, _size1234); - (*(this->success)).resize(_size1234); - uint32_t _i1238; - for (_i1238 = 0; _i1238 < _size1234; ++_i1238) + uint32_t _size1258; + ::apache::thrift::protocol::TType _etype1261; + xfer += iprot->readListBegin(_etype1261, _size1258); + (*(this->success)).resize(_size1258); + uint32_t _i1262; + for (_i1262 = 0; _i1262 < _size1258; ++_i1262) { - xfer += (*(this->success))[_i1238].read(iprot); + xfer += (*(this->success))[_i1262].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 _size1239; - ::apache::thrift::protocol::TType _etype1242; - xfer += iprot->readListBegin(_etype1242, _size1239); - this->success.resize(_size1239); - uint32_t _i1243; - for (_i1243 = 0; _i1243 < _size1239; ++_i1243) + uint32_t _size1263; + ::apache::thrift::protocol::TType _etype1266; + xfer += iprot->readListBegin(_etype1266, _size1263); + this->success.resize(_size1263); + uint32_t _i1267; + for (_i1267 = 0; _i1267 < _size1263; ++_i1267) { - xfer += this->success[_i1243].read(iprot); + xfer += this->success[_i1267].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 _iter1244; - for (_iter1244 = this->success.begin(); _iter1244 != this->success.end(); ++_iter1244) + std::vector ::const_iterator _iter1268; + for (_iter1268 = this->success.begin(); _iter1268 != this->success.end(); ++_iter1268) { - xfer += (*_iter1244).write(oprot); + xfer += (*_iter1268).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 _size1245; - ::apache::thrift::protocol::TType _etype1248; - xfer += iprot->readListBegin(_etype1248, _size1245); - (*(this->success)).resize(_size1245); - uint32_t _i1249; - for (_i1249 = 0; _i1249 < _size1245; ++_i1249) + uint32_t _size1269; + ::apache::thrift::protocol::TType _etype1272; + xfer += iprot->readListBegin(_etype1272, _size1269); + (*(this->success)).resize(_size1269); + uint32_t _i1273; + for (_i1273 = 0; _i1273 < _size1269; ++_i1273) { - xfer += (*(this->success))[_i1249].read(iprot); + xfer += (*(this->success))[_i1273].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 _size1250; - ::apache::thrift::protocol::TType _etype1253; - xfer += iprot->readListBegin(_etype1253, _size1250); - this->success.resize(_size1250); - uint32_t _i1254; - for (_i1254 = 0; _i1254 < _size1250; ++_i1254) + uint32_t _size1274; + ::apache::thrift::protocol::TType _etype1277; + xfer += iprot->readListBegin(_etype1277, _size1274); + this->success.resize(_size1274); + uint32_t _i1278; + for (_i1278 = 0; _i1278 < _size1274; ++_i1278) { - xfer += this->success[_i1254].read(iprot); + xfer += this->success[_i1278].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 _iter1255; - for (_iter1255 = this->success.begin(); _iter1255 != this->success.end(); ++_iter1255) + std::vector ::const_iterator _iter1279; + for (_iter1279 = this->success.begin(); _iter1279 != this->success.end(); ++_iter1279) { - xfer += (*_iter1255).write(oprot); + xfer += (*_iter1279).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 _size1256; - ::apache::thrift::protocol::TType _etype1259; - xfer += iprot->readListBegin(_etype1259, _size1256); - (*(this->success)).resize(_size1256); - uint32_t _i1260; - for (_i1260 = 0; _i1260 < _size1256; ++_i1260) + uint32_t _size1280; + ::apache::thrift::protocol::TType _etype1283; + xfer += iprot->readListBegin(_etype1283, _size1280); + (*(this->success)).resize(_size1280); + uint32_t _i1284; + for (_i1284 = 0; _i1284 < _size1280; ++_i1284) { - xfer += (*(this->success))[_i1260].read(iprot); + xfer += (*(this->success))[_i1284].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 _size1261; - ::apache::thrift::protocol::TType _etype1264; - xfer += iprot->readListBegin(_etype1264, _size1261); - this->success.resize(_size1261); - uint32_t _i1265; - for (_i1265 = 0; _i1265 < _size1261; ++_i1265) + uint32_t _size1285; + ::apache::thrift::protocol::TType _etype1288; + xfer += iprot->readListBegin(_etype1288, _size1285); + this->success.resize(_size1285); + uint32_t _i1289; + for (_i1289 = 0; _i1289 < _size1285; ++_i1289) { - xfer += this->success[_i1265].read(iprot); + xfer += this->success[_i1289].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 _iter1266; - for (_iter1266 = this->success.begin(); _iter1266 != this->success.end(); ++_iter1266) + std::vector ::const_iterator _iter1290; + for (_iter1290 = this->success.begin(); _iter1290 != this->success.end(); ++_iter1290) { - xfer += (*_iter1266).write(oprot); + xfer += (*_iter1290).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 _size1267; - ::apache::thrift::protocol::TType _etype1270; - xfer += iprot->readListBegin(_etype1270, _size1267); - (*(this->success)).resize(_size1267); - uint32_t _i1271; - for (_i1271 = 0; _i1271 < _size1267; ++_i1271) + uint32_t _size1291; + ::apache::thrift::protocol::TType _etype1294; + xfer += iprot->readListBegin(_etype1294, _size1291); + (*(this->success)).resize(_size1291); + uint32_t _i1295; + for (_i1295 = 0; _i1295 < _size1291; ++_i1295) { - xfer += (*(this->success))[_i1271].read(iprot); + xfer += (*(this->success))[_i1295].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 _size1272; - ::apache::thrift::protocol::TType _etype1275; - xfer += iprot->readListBegin(_etype1275, _size1272); - this->primaryKeys.resize(_size1272); - uint32_t _i1276; - for (_i1276 = 0; _i1276 < _size1272; ++_i1276) + uint32_t _size1296; + ::apache::thrift::protocol::TType _etype1299; + xfer += iprot->readListBegin(_etype1299, _size1296); + this->primaryKeys.resize(_size1296); + uint32_t _i1300; + for (_i1300 = 0; _i1300 < _size1296; ++_i1300) { - xfer += this->primaryKeys[_i1276].read(iprot); + xfer += this->primaryKeys[_i1300].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 _size1277; - ::apache::thrift::protocol::TType _etype1280; - xfer += iprot->readListBegin(_etype1280, _size1277); - this->foreignKeys.resize(_size1277); - uint32_t _i1281; - for (_i1281 = 0; _i1281 < _size1277; ++_i1281) + uint32_t _size1301; + ::apache::thrift::protocol::TType _etype1304; + xfer += iprot->readListBegin(_etype1304, _size1301); + this->foreignKeys.resize(_size1301); + uint32_t _i1305; + for (_i1305 = 0; _i1305 < _size1301; ++_i1305) { - xfer += this->foreignKeys[_i1281].read(iprot); + xfer += this->foreignKeys[_i1305].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 _size1282; - ::apache::thrift::protocol::TType _etype1285; - xfer += iprot->readListBegin(_etype1285, _size1282); - this->uniqueConstraints.resize(_size1282); - uint32_t _i1286; - for (_i1286 = 0; _i1286 < _size1282; ++_i1286) + uint32_t _size1306; + ::apache::thrift::protocol::TType _etype1309; + xfer += iprot->readListBegin(_etype1309, _size1306); + this->uniqueConstraints.resize(_size1306); + uint32_t _i1310; + for (_i1310 = 0; _i1310 < _size1306; ++_i1310) { - xfer += this->uniqueConstraints[_i1286].read(iprot); + xfer += this->uniqueConstraints[_i1310].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 _size1287; - ::apache::thrift::protocol::TType _etype1290; - xfer += iprot->readListBegin(_etype1290, _size1287); - this->notNullConstraints.resize(_size1287); - uint32_t _i1291; - for (_i1291 = 0; _i1291 < _size1287; ++_i1291) + uint32_t _size1311; + ::apache::thrift::protocol::TType _etype1314; + xfer += iprot->readListBegin(_etype1314, _size1311); + this->notNullConstraints.resize(_size1311); + uint32_t _i1315; + for (_i1315 = 0; _i1315 < _size1311; ++_i1315) { - xfer += this->notNullConstraints[_i1291].read(iprot); + xfer += this->notNullConstraints[_i1315].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 _size1292; - ::apache::thrift::protocol::TType _etype1295; - xfer += iprot->readListBegin(_etype1295, _size1292); - this->defaultConstraints.resize(_size1292); - uint32_t _i1296; - for (_i1296 = 0; _i1296 < _size1292; ++_i1296) + uint32_t _size1316; + ::apache::thrift::protocol::TType _etype1319; + xfer += iprot->readListBegin(_etype1319, _size1316); + this->defaultConstraints.resize(_size1316); + uint32_t _i1320; + for (_i1320 = 0; _i1320 < _size1316; ++_i1320) { - xfer += this->defaultConstraints[_i1296].read(iprot); + xfer += this->defaultConstraints[_i1320].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 _size1297; - ::apache::thrift::protocol::TType _etype1300; - xfer += iprot->readListBegin(_etype1300, _size1297); - this->checkConstraints.resize(_size1297); - uint32_t _i1301; - for (_i1301 = 0; _i1301 < _size1297; ++_i1301) + uint32_t _size1321; + ::apache::thrift::protocol::TType _etype1324; + xfer += iprot->readListBegin(_etype1324, _size1321); + this->checkConstraints.resize(_size1321); + uint32_t _i1325; + for (_i1325 = 0; _i1325 < _size1321; ++_i1325) { - xfer += this->checkConstraints[_i1301].read(iprot); + xfer += this->checkConstraints[_i1325].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 _iter1302; - for (_iter1302 = this->primaryKeys.begin(); _iter1302 != this->primaryKeys.end(); ++_iter1302) + std::vector ::const_iterator _iter1326; + for (_iter1326 = this->primaryKeys.begin(); _iter1326 != this->primaryKeys.end(); ++_iter1326) { - xfer += (*_iter1302).write(oprot); + xfer += (*_iter1326).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 _iter1303; - for (_iter1303 = this->foreignKeys.begin(); _iter1303 != this->foreignKeys.end(); ++_iter1303) + std::vector ::const_iterator _iter1327; + for (_iter1327 = this->foreignKeys.begin(); _iter1327 != this->foreignKeys.end(); ++_iter1327) { - xfer += (*_iter1303).write(oprot); + xfer += (*_iter1327).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 _iter1304; - for (_iter1304 = this->uniqueConstraints.begin(); _iter1304 != this->uniqueConstraints.end(); ++_iter1304) + std::vector ::const_iterator _iter1328; + for (_iter1328 = this->uniqueConstraints.begin(); _iter1328 != this->uniqueConstraints.end(); ++_iter1328) { - xfer += (*_iter1304).write(oprot); + xfer += (*_iter1328).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 _iter1305; - for (_iter1305 = this->notNullConstraints.begin(); _iter1305 != this->notNullConstraints.end(); ++_iter1305) + std::vector ::const_iterator _iter1329; + for (_iter1329 = this->notNullConstraints.begin(); _iter1329 != this->notNullConstraints.end(); ++_iter1329) { - xfer += (*_iter1305).write(oprot); + xfer += (*_iter1329).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 _iter1306; - for (_iter1306 = this->defaultConstraints.begin(); _iter1306 != this->defaultConstraints.end(); ++_iter1306) + std::vector ::const_iterator _iter1330; + for (_iter1330 = this->defaultConstraints.begin(); _iter1330 != this->defaultConstraints.end(); ++_iter1330) { - xfer += (*_iter1306).write(oprot); + xfer += (*_iter1330).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 _iter1307; - for (_iter1307 = this->checkConstraints.begin(); _iter1307 != this->checkConstraints.end(); ++_iter1307) + std::vector ::const_iterator _iter1331; + for (_iter1331 = this->checkConstraints.begin(); _iter1331 != this->checkConstraints.end(); ++_iter1331) { - xfer += (*_iter1307).write(oprot); + xfer += (*_iter1331).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 _iter1308; - for (_iter1308 = (*(this->primaryKeys)).begin(); _iter1308 != (*(this->primaryKeys)).end(); ++_iter1308) + std::vector ::const_iterator _iter1332; + for (_iter1332 = (*(this->primaryKeys)).begin(); _iter1332 != (*(this->primaryKeys)).end(); ++_iter1332) { - xfer += (*_iter1308).write(oprot); + xfer += (*_iter1332).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 _iter1309; - for (_iter1309 = (*(this->foreignKeys)).begin(); _iter1309 != (*(this->foreignKeys)).end(); ++_iter1309) + std::vector ::const_iterator _iter1333; + for (_iter1333 = (*(this->foreignKeys)).begin(); _iter1333 != (*(this->foreignKeys)).end(); ++_iter1333) { - xfer += (*_iter1309).write(oprot); + xfer += (*_iter1333).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 _iter1310; - for (_iter1310 = (*(this->uniqueConstraints)).begin(); _iter1310 != (*(this->uniqueConstraints)).end(); ++_iter1310) + std::vector ::const_iterator _iter1334; + for (_iter1334 = (*(this->uniqueConstraints)).begin(); _iter1334 != (*(this->uniqueConstraints)).end(); ++_iter1334) { - xfer += (*_iter1310).write(oprot); + xfer += (*_iter1334).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 _iter1311; - for (_iter1311 = (*(this->notNullConstraints)).begin(); _iter1311 != (*(this->notNullConstraints)).end(); ++_iter1311) + std::vector ::const_iterator _iter1335; + for (_iter1335 = (*(this->notNullConstraints)).begin(); _iter1335 != (*(this->notNullConstraints)).end(); ++_iter1335) { - xfer += (*_iter1311).write(oprot); + xfer += (*_iter1335).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 _iter1312; - for (_iter1312 = (*(this->defaultConstraints)).begin(); _iter1312 != (*(this->defaultConstraints)).end(); ++_iter1312) + std::vector ::const_iterator _iter1336; + for (_iter1336 = (*(this->defaultConstraints)).begin(); _iter1336 != (*(this->defaultConstraints)).end(); ++_iter1336) { - xfer += (*_iter1312).write(oprot); + xfer += (*_iter1336).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 _iter1313; - for (_iter1313 = (*(this->checkConstraints)).begin(); _iter1313 != (*(this->checkConstraints)).end(); ++_iter1313) + std::vector ::const_iterator _iter1337; + for (_iter1337 = (*(this->checkConstraints)).begin(); _iter1337 != (*(this->checkConstraints)).end(); ++_iter1337) { - xfer += (*_iter1313).write(oprot); + xfer += (*_iter1337).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 _size1314; - ::apache::thrift::protocol::TType _etype1317; - xfer += iprot->readListBegin(_etype1317, _size1314); - this->partNames.resize(_size1314); - uint32_t _i1318; - for (_i1318 = 0; _i1318 < _size1314; ++_i1318) + uint32_t _size1338; + ::apache::thrift::protocol::TType _etype1341; + xfer += iprot->readListBegin(_etype1341, _size1338); + this->partNames.resize(_size1338); + uint32_t _i1342; + for (_i1342 = 0; _i1342 < _size1338; ++_i1342) { - xfer += iprot->readString(this->partNames[_i1318]); + xfer += iprot->readString(this->partNames[_i1342]); } 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 _iter1319; - for (_iter1319 = this->partNames.begin(); _iter1319 != this->partNames.end(); ++_iter1319) + std::vector ::const_iterator _iter1343; + for (_iter1343 = this->partNames.begin(); _iter1343 != this->partNames.end(); ++_iter1343) { - xfer += oprot->writeString((*_iter1319)); + xfer += oprot->writeString((*_iter1343)); } 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 _iter1320; - for (_iter1320 = (*(this->partNames)).begin(); _iter1320 != (*(this->partNames)).end(); ++_iter1320) + std::vector ::const_iterator _iter1344; + for (_iter1344 = (*(this->partNames)).begin(); _iter1344 != (*(this->partNames)).end(); ++_iter1344) { - xfer += oprot->writeString((*_iter1320)); + xfer += oprot->writeString((*_iter1344)); } 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 _size1321; - ::apache::thrift::protocol::TType _etype1324; - xfer += iprot->readListBegin(_etype1324, _size1321); - this->success.resize(_size1321); - uint32_t _i1325; - for (_i1325 = 0; _i1325 < _size1321; ++_i1325) + uint32_t _size1345; + ::apache::thrift::protocol::TType _etype1348; + xfer += iprot->readListBegin(_etype1348, _size1345); + this->success.resize(_size1345); + uint32_t _i1349; + for (_i1349 = 0; _i1349 < _size1345; ++_i1349) { - xfer += iprot->readString(this->success[_i1325]); + xfer += iprot->readString(this->success[_i1349]); } 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 _iter1326; - for (_iter1326 = this->success.begin(); _iter1326 != this->success.end(); ++_iter1326) + std::vector ::const_iterator _iter1350; + for (_iter1350 = this->success.begin(); _iter1350 != this->success.end(); ++_iter1350) { - xfer += oprot->writeString((*_iter1326)); + xfer += oprot->writeString((*_iter1350)); } 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 _size1327; - ::apache::thrift::protocol::TType _etype1330; - xfer += iprot->readListBegin(_etype1330, _size1327); - (*(this->success)).resize(_size1327); - uint32_t _i1331; - for (_i1331 = 0; _i1331 < _size1327; ++_i1331) + uint32_t _size1351; + ::apache::thrift::protocol::TType _etype1354; + xfer += iprot->readListBegin(_etype1354, _size1351); + (*(this->success)).resize(_size1351); + uint32_t _i1355; + for (_i1355 = 0; _i1355 < _size1351; ++_i1355) { - xfer += iprot->readString((*(this->success))[_i1331]); + xfer += iprot->readString((*(this->success))[_i1355]); } 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 _size1332; - ::apache::thrift::protocol::TType _etype1335; - xfer += iprot->readListBegin(_etype1335, _size1332); - this->success.resize(_size1332); - uint32_t _i1336; - for (_i1336 = 0; _i1336 < _size1332; ++_i1336) + uint32_t _size1356; + ::apache::thrift::protocol::TType _etype1359; + xfer += iprot->readListBegin(_etype1359, _size1356); + this->success.resize(_size1356); + uint32_t _i1360; + for (_i1360 = 0; _i1360 < _size1356; ++_i1360) { - xfer += iprot->readString(this->success[_i1336]); + xfer += iprot->readString(this->success[_i1360]); } 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 _iter1337; - for (_iter1337 = this->success.begin(); _iter1337 != this->success.end(); ++_iter1337) + std::vector ::const_iterator _iter1361; + for (_iter1361 = this->success.begin(); _iter1361 != this->success.end(); ++_iter1361) { - xfer += oprot->writeString((*_iter1337)); + xfer += oprot->writeString((*_iter1361)); } 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 _size1338; - ::apache::thrift::protocol::TType _etype1341; - xfer += iprot->readListBegin(_etype1341, _size1338); - (*(this->success)).resize(_size1338); - uint32_t _i1342; - for (_i1342 = 0; _i1342 < _size1338; ++_i1342) + uint32_t _size1362; + ::apache::thrift::protocol::TType _etype1365; + xfer += iprot->readListBegin(_etype1365, _size1362); + (*(this->success)).resize(_size1362); + uint32_t _i1366; + for (_i1366 = 0; _i1366 < _size1362; ++_i1366) { - xfer += iprot->readString((*(this->success))[_i1342]); + xfer += iprot->readString((*(this->success))[_i1366]); } 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 _size1343; - ::apache::thrift::protocol::TType _etype1346; - xfer += iprot->readListBegin(_etype1346, _size1343); - this->success.resize(_size1343); - uint32_t _i1347; - for (_i1347 = 0; _i1347 < _size1343; ++_i1347) + uint32_t _size1367; + ::apache::thrift::protocol::TType _etype1370; + xfer += iprot->readListBegin(_etype1370, _size1367); + this->success.resize(_size1367); + uint32_t _i1371; + for (_i1371 = 0; _i1371 < _size1367; ++_i1371) { - xfer += iprot->readString(this->success[_i1347]); + xfer += iprot->readString(this->success[_i1371]); } 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 _iter1348; - for (_iter1348 = this->success.begin(); _iter1348 != this->success.end(); ++_iter1348) + std::vector ::const_iterator _iter1372; + for (_iter1372 = this->success.begin(); _iter1372 != this->success.end(); ++_iter1372) { - xfer += oprot->writeString((*_iter1348)); + xfer += oprot->writeString((*_iter1372)); } 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 _size1349; - ::apache::thrift::protocol::TType _etype1352; - xfer += iprot->readListBegin(_etype1352, _size1349); - (*(this->success)).resize(_size1349); - uint32_t _i1353; - for (_i1353 = 0; _i1353 < _size1349; ++_i1353) + uint32_t _size1373; + ::apache::thrift::protocol::TType _etype1376; + xfer += iprot->readListBegin(_etype1376, _size1373); + (*(this->success)).resize(_size1373); + uint32_t _i1377; + for (_i1377 = 0; _i1377 < _size1373; ++_i1377) { - xfer += iprot->readString((*(this->success))[_i1353]); + xfer += iprot->readString((*(this->success))[_i1377]); } 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 _size1354; - ::apache::thrift::protocol::TType _etype1357; - xfer += iprot->readListBegin(_etype1357, _size1354); - this->tbl_types.resize(_size1354); - uint32_t _i1358; - for (_i1358 = 0; _i1358 < _size1354; ++_i1358) + uint32_t _size1378; + ::apache::thrift::protocol::TType _etype1381; + xfer += iprot->readListBegin(_etype1381, _size1378); + this->tbl_types.resize(_size1378); + uint32_t _i1382; + for (_i1382 = 0; _i1382 < _size1378; ++_i1382) { - xfer += iprot->readString(this->tbl_types[_i1358]); + xfer += iprot->readString(this->tbl_types[_i1382]); } 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 _iter1359; - for (_iter1359 = this->tbl_types.begin(); _iter1359 != this->tbl_types.end(); ++_iter1359) + std::vector ::const_iterator _iter1383; + for (_iter1383 = this->tbl_types.begin(); _iter1383 != this->tbl_types.end(); ++_iter1383) { - xfer += oprot->writeString((*_iter1359)); + xfer += oprot->writeString((*_iter1383)); } 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 _iter1360; - for (_iter1360 = (*(this->tbl_types)).begin(); _iter1360 != (*(this->tbl_types)).end(); ++_iter1360) + std::vector ::const_iterator _iter1384; + for (_iter1384 = (*(this->tbl_types)).begin(); _iter1384 != (*(this->tbl_types)).end(); ++_iter1384) { - xfer += oprot->writeString((*_iter1360)); + xfer += oprot->writeString((*_iter1384)); } 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 _size1361; - ::apache::thrift::protocol::TType _etype1364; - xfer += iprot->readListBegin(_etype1364, _size1361); - this->success.resize(_size1361); - uint32_t _i1365; - for (_i1365 = 0; _i1365 < _size1361; ++_i1365) + uint32_t _size1385; + ::apache::thrift::protocol::TType _etype1388; + xfer += iprot->readListBegin(_etype1388, _size1385); + this->success.resize(_size1385); + uint32_t _i1389; + for (_i1389 = 0; _i1389 < _size1385; ++_i1389) { - xfer += this->success[_i1365].read(iprot); + xfer += this->success[_i1389].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 _iter1366; - for (_iter1366 = this->success.begin(); _iter1366 != this->success.end(); ++_iter1366) + std::vector ::const_iterator _iter1390; + for (_iter1390 = this->success.begin(); _iter1390 != this->success.end(); ++_iter1390) { - xfer += (*_iter1366).write(oprot); + xfer += (*_iter1390).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 _size1367; - ::apache::thrift::protocol::TType _etype1370; - xfer += iprot->readListBegin(_etype1370, _size1367); - (*(this->success)).resize(_size1367); - uint32_t _i1371; - for (_i1371 = 0; _i1371 < _size1367; ++_i1371) + uint32_t _size1391; + ::apache::thrift::protocol::TType _etype1394; + xfer += iprot->readListBegin(_etype1394, _size1391); + (*(this->success)).resize(_size1391); + uint32_t _i1395; + for (_i1395 = 0; _i1395 < _size1391; ++_i1395) { - xfer += (*(this->success))[_i1371].read(iprot); + xfer += (*(this->success))[_i1395].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 _size1372; - ::apache::thrift::protocol::TType _etype1375; - xfer += iprot->readListBegin(_etype1375, _size1372); - this->success.resize(_size1372); - uint32_t _i1376; - for (_i1376 = 0; _i1376 < _size1372; ++_i1376) + uint32_t _size1396; + ::apache::thrift::protocol::TType _etype1399; + xfer += iprot->readListBegin(_etype1399, _size1396); + this->success.resize(_size1396); + uint32_t _i1400; + for (_i1400 = 0; _i1400 < _size1396; ++_i1400) { - xfer += iprot->readString(this->success[_i1376]); + xfer += iprot->readString(this->success[_i1400]); } 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 _iter1377; - for (_iter1377 = this->success.begin(); _iter1377 != this->success.end(); ++_iter1377) + std::vector ::const_iterator _iter1401; + for (_iter1401 = this->success.begin(); _iter1401 != this->success.end(); ++_iter1401) { - xfer += oprot->writeString((*_iter1377)); + xfer += oprot->writeString((*_iter1401)); } 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 _size1378; - ::apache::thrift::protocol::TType _etype1381; - xfer += iprot->readListBegin(_etype1381, _size1378); - (*(this->success)).resize(_size1378); - uint32_t _i1382; - for (_i1382 = 0; _i1382 < _size1378; ++_i1382) + uint32_t _size1402; + ::apache::thrift::protocol::TType _etype1405; + xfer += iprot->readListBegin(_etype1405, _size1402); + (*(this->success)).resize(_size1402); + uint32_t _i1406; + for (_i1406 = 0; _i1406 < _size1402; ++_i1406) { - xfer += iprot->readString((*(this->success))[_i1382]); + xfer += iprot->readString((*(this->success))[_i1406]); } 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 _size1383; - ::apache::thrift::protocol::TType _etype1386; - xfer += iprot->readListBegin(_etype1386, _size1383); - this->tbl_names.resize(_size1383); - uint32_t _i1387; - for (_i1387 = 0; _i1387 < _size1383; ++_i1387) + uint32_t _size1407; + ::apache::thrift::protocol::TType _etype1410; + xfer += iprot->readListBegin(_etype1410, _size1407); + this->tbl_names.resize(_size1407); + uint32_t _i1411; + for (_i1411 = 0; _i1411 < _size1407; ++_i1411) { - xfer += iprot->readString(this->tbl_names[_i1387]); + xfer += iprot->readString(this->tbl_names[_i1411]); } 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 _iter1388; - for (_iter1388 = this->tbl_names.begin(); _iter1388 != this->tbl_names.end(); ++_iter1388) + std::vector ::const_iterator _iter1412; + for (_iter1412 = this->tbl_names.begin(); _iter1412 != this->tbl_names.end(); ++_iter1412) { - xfer += oprot->writeString((*_iter1388)); + xfer += oprot->writeString((*_iter1412)); } 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 _iter1389; - for (_iter1389 = (*(this->tbl_names)).begin(); _iter1389 != (*(this->tbl_names)).end(); ++_iter1389) + std::vector ::const_iterator _iter1413; + for (_iter1413 = (*(this->tbl_names)).begin(); _iter1413 != (*(this->tbl_names)).end(); ++_iter1413) { - xfer += oprot->writeString((*_iter1389)); + xfer += oprot->writeString((*_iter1413)); } 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 _size1390; - ::apache::thrift::protocol::TType _etype1393; - xfer += iprot->readListBegin(_etype1393, _size1390); - this->success.resize(_size1390); - uint32_t _i1394; - for (_i1394 = 0; _i1394 < _size1390; ++_i1394) + uint32_t _size1414; + ::apache::thrift::protocol::TType _etype1417; + xfer += iprot->readListBegin(_etype1417, _size1414); + this->success.resize(_size1414); + uint32_t _i1418; + for (_i1418 = 0; _i1418 < _size1414; ++_i1418) { - xfer += this->success[_i1394].read(iprot); + xfer += this->success[_i1418].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 _iter1395; - for (_iter1395 = this->success.begin(); _iter1395 != this->success.end(); ++_iter1395) + std::vector
::const_iterator _iter1419; + for (_iter1419 = this->success.begin(); _iter1419 != this->success.end(); ++_iter1419) { - xfer += (*_iter1395).write(oprot); + xfer += (*_iter1419).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 _size1396; - ::apache::thrift::protocol::TType _etype1399; - xfer += iprot->readListBegin(_etype1399, _size1396); - (*(this->success)).resize(_size1396); - uint32_t _i1400; - for (_i1400 = 0; _i1400 < _size1396; ++_i1400) + uint32_t _size1420; + ::apache::thrift::protocol::TType _etype1423; + xfer += iprot->readListBegin(_etype1423, _size1420); + (*(this->success)).resize(_size1420); + uint32_t _i1424; + for (_i1424 = 0; _i1424 < _size1420; ++_i1424) { - xfer += (*(this->success))[_i1400].read(iprot); + xfer += (*(this->success))[_i1424].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 _size1401; - ::apache::thrift::protocol::TType _etype1404; - xfer += iprot->readListBegin(_etype1404, _size1401); - this->tbl_names.resize(_size1401); - uint32_t _i1405; - for (_i1405 = 0; _i1405 < _size1401; ++_i1405) + uint32_t _size1425; + ::apache::thrift::protocol::TType _etype1428; + xfer += iprot->readListBegin(_etype1428, _size1425); + this->tbl_names.resize(_size1425); + uint32_t _i1429; + for (_i1429 = 0; _i1429 < _size1425; ++_i1429) { - xfer += iprot->readString(this->tbl_names[_i1405]); + xfer += iprot->readString(this->tbl_names[_i1429]); } 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 _iter1406; - for (_iter1406 = this->tbl_names.begin(); _iter1406 != this->tbl_names.end(); ++_iter1406) + std::vector ::const_iterator _iter1430; + for (_iter1430 = this->tbl_names.begin(); _iter1430 != this->tbl_names.end(); ++_iter1430) { - xfer += oprot->writeString((*_iter1406)); + xfer += oprot->writeString((*_iter1430)); } 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 _iter1407; - for (_iter1407 = (*(this->tbl_names)).begin(); _iter1407 != (*(this->tbl_names)).end(); ++_iter1407) + std::vector ::const_iterator _iter1431; + for (_iter1431 = (*(this->tbl_names)).begin(); _iter1431 != (*(this->tbl_names)).end(); ++_iter1431) { - xfer += oprot->writeString((*_iter1407)); + xfer += oprot->writeString((*_iter1431)); } 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 _size1408; - ::apache::thrift::protocol::TType _ktype1409; - ::apache::thrift::protocol::TType _vtype1410; - xfer += iprot->readMapBegin(_ktype1409, _vtype1410, _size1408); - uint32_t _i1412; - for (_i1412 = 0; _i1412 < _size1408; ++_i1412) + uint32_t _size1432; + ::apache::thrift::protocol::TType _ktype1433; + ::apache::thrift::protocol::TType _vtype1434; + xfer += iprot->readMapBegin(_ktype1433, _vtype1434, _size1432); + uint32_t _i1436; + for (_i1436 = 0; _i1436 < _size1432; ++_i1436) { - std::string _key1413; - xfer += iprot->readString(_key1413); - Materialization& _val1414 = this->success[_key1413]; - xfer += _val1414.read(iprot); + std::string _key1437; + xfer += iprot->readString(_key1437); + Materialization& _val1438 = this->success[_key1437]; + xfer += _val1438.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 _iter1415; - for (_iter1415 = this->success.begin(); _iter1415 != this->success.end(); ++_iter1415) + std::map ::const_iterator _iter1439; + for (_iter1439 = this->success.begin(); _iter1439 != this->success.end(); ++_iter1439) { - xfer += oprot->writeString(_iter1415->first); - xfer += _iter1415->second.write(oprot); + xfer += oprot->writeString(_iter1439->first); + xfer += _iter1439->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 _size1416; - ::apache::thrift::protocol::TType _ktype1417; - ::apache::thrift::protocol::TType _vtype1418; - xfer += iprot->readMapBegin(_ktype1417, _vtype1418, _size1416); - uint32_t _i1420; - for (_i1420 = 0; _i1420 < _size1416; ++_i1420) + uint32_t _size1440; + ::apache::thrift::protocol::TType _ktype1441; + ::apache::thrift::protocol::TType _vtype1442; + xfer += iprot->readMapBegin(_ktype1441, _vtype1442, _size1440); + uint32_t _i1444; + for (_i1444 = 0; _i1444 < _size1440; ++_i1444) { - std::string _key1421; - xfer += iprot->readString(_key1421); - Materialization& _val1422 = (*(this->success))[_key1421]; - xfer += _val1422.read(iprot); + std::string _key1445; + xfer += iprot->readString(_key1445); + Materialization& _val1446 = (*(this->success))[_key1445]; + xfer += _val1446.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 _size1423; - ::apache::thrift::protocol::TType _etype1426; - xfer += iprot->readListBegin(_etype1426, _size1423); - this->success.resize(_size1423); - uint32_t _i1427; - for (_i1427 = 0; _i1427 < _size1423; ++_i1427) + uint32_t _size1447; + ::apache::thrift::protocol::TType _etype1450; + xfer += iprot->readListBegin(_etype1450, _size1447); + this->success.resize(_size1447); + uint32_t _i1451; + for (_i1451 = 0; _i1451 < _size1447; ++_i1451) { - xfer += iprot->readString(this->success[_i1427]); + xfer += iprot->readString(this->success[_i1451]); } 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 _iter1428; - for (_iter1428 = this->success.begin(); _iter1428 != this->success.end(); ++_iter1428) + std::vector ::const_iterator _iter1452; + for (_iter1452 = this->success.begin(); _iter1452 != this->success.end(); ++_iter1452) { - xfer += oprot->writeString((*_iter1428)); + xfer += oprot->writeString((*_iter1452)); } 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 _size1429; - ::apache::thrift::protocol::TType _etype1432; - xfer += iprot->readListBegin(_etype1432, _size1429); - (*(this->success)).resize(_size1429); - uint32_t _i1433; - for (_i1433 = 0; _i1433 < _size1429; ++_i1433) + uint32_t _size1453; + ::apache::thrift::protocol::TType _etype1456; + xfer += iprot->readListBegin(_etype1456, _size1453); + (*(this->success)).resize(_size1453); + uint32_t _i1457; + for (_i1457 = 0; _i1457 < _size1453; ++_i1457) { - xfer += iprot->readString((*(this->success))[_i1433]); + xfer += iprot->readString((*(this->success))[_i1457]); } 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 _size1434; - ::apache::thrift::protocol::TType _etype1437; - xfer += iprot->readListBegin(_etype1437, _size1434); - this->new_parts.resize(_size1434); - uint32_t _i1438; - for (_i1438 = 0; _i1438 < _size1434; ++_i1438) + uint32_t _size1458; + ::apache::thrift::protocol::TType _etype1461; + xfer += iprot->readListBegin(_etype1461, _size1458); + this->new_parts.resize(_size1458); + uint32_t _i1462; + for (_i1462 = 0; _i1462 < _size1458; ++_i1462) { - xfer += this->new_parts[_i1438].read(iprot); + xfer += this->new_parts[_i1462].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 _iter1439; - for (_iter1439 = this->new_parts.begin(); _iter1439 != this->new_parts.end(); ++_iter1439) + std::vector ::const_iterator _iter1463; + for (_iter1463 = this->new_parts.begin(); _iter1463 != this->new_parts.end(); ++_iter1463) { - xfer += (*_iter1439).write(oprot); + xfer += (*_iter1463).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 _iter1440; - for (_iter1440 = (*(this->new_parts)).begin(); _iter1440 != (*(this->new_parts)).end(); ++_iter1440) + std::vector ::const_iterator _iter1464; + for (_iter1464 = (*(this->new_parts)).begin(); _iter1464 != (*(this->new_parts)).end(); ++_iter1464) { - xfer += (*_iter1440).write(oprot); + xfer += (*_iter1464).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 _size1441; - ::apache::thrift::protocol::TType _etype1444; - xfer += iprot->readListBegin(_etype1444, _size1441); - this->new_parts.resize(_size1441); - uint32_t _i1445; - for (_i1445 = 0; _i1445 < _size1441; ++_i1445) + uint32_t _size1465; + ::apache::thrift::protocol::TType _etype1468; + xfer += iprot->readListBegin(_etype1468, _size1465); + this->new_parts.resize(_size1465); + uint32_t _i1469; + for (_i1469 = 0; _i1469 < _size1465; ++_i1469) { - xfer += this->new_parts[_i1445].read(iprot); + xfer += this->new_parts[_i1469].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 _iter1446; - for (_iter1446 = this->new_parts.begin(); _iter1446 != this->new_parts.end(); ++_iter1446) + std::vector ::const_iterator _iter1470; + for (_iter1470 = this->new_parts.begin(); _iter1470 != this->new_parts.end(); ++_iter1470) { - xfer += (*_iter1446).write(oprot); + xfer += (*_iter1470).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 _iter1447; - for (_iter1447 = (*(this->new_parts)).begin(); _iter1447 != (*(this->new_parts)).end(); ++_iter1447) + std::vector ::const_iterator _iter1471; + for (_iter1471 = (*(this->new_parts)).begin(); _iter1471 != (*(this->new_parts)).end(); ++_iter1471) { - xfer += (*_iter1447).write(oprot); + xfer += (*_iter1471).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 _size1448; - ::apache::thrift::protocol::TType _etype1451; - xfer += iprot->readListBegin(_etype1451, _size1448); - this->part_vals.resize(_size1448); - uint32_t _i1452; - for (_i1452 = 0; _i1452 < _size1448; ++_i1452) + uint32_t _size1472; + ::apache::thrift::protocol::TType _etype1475; + xfer += iprot->readListBegin(_etype1475, _size1472); + this->part_vals.resize(_size1472); + uint32_t _i1476; + for (_i1476 = 0; _i1476 < _size1472; ++_i1476) { - xfer += iprot->readString(this->part_vals[_i1452]); + xfer += iprot->readString(this->part_vals[_i1476]); } 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 _iter1453; - for (_iter1453 = this->part_vals.begin(); _iter1453 != this->part_vals.end(); ++_iter1453) + std::vector ::const_iterator _iter1477; + for (_iter1477 = this->part_vals.begin(); _iter1477 != this->part_vals.end(); ++_iter1477) { - xfer += oprot->writeString((*_iter1453)); + xfer += oprot->writeString((*_iter1477)); } 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 _iter1454; - for (_iter1454 = (*(this->part_vals)).begin(); _iter1454 != (*(this->part_vals)).end(); ++_iter1454) + std::vector ::const_iterator _iter1478; + for (_iter1478 = (*(this->part_vals)).begin(); _iter1478 != (*(this->part_vals)).end(); ++_iter1478) { - xfer += oprot->writeString((*_iter1454)); + xfer += oprot->writeString((*_iter1478)); } 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 _size1455; - ::apache::thrift::protocol::TType _etype1458; - xfer += iprot->readListBegin(_etype1458, _size1455); - this->part_vals.resize(_size1455); - uint32_t _i1459; - for (_i1459 = 0; _i1459 < _size1455; ++_i1459) + uint32_t _size1479; + ::apache::thrift::protocol::TType _etype1482; + xfer += iprot->readListBegin(_etype1482, _size1479); + this->part_vals.resize(_size1479); + uint32_t _i1483; + for (_i1483 = 0; _i1483 < _size1479; ++_i1483) { - xfer += iprot->readString(this->part_vals[_i1459]); + xfer += iprot->readString(this->part_vals[_i1483]); } 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 _iter1460; - for (_iter1460 = this->part_vals.begin(); _iter1460 != this->part_vals.end(); ++_iter1460) + std::vector ::const_iterator _iter1484; + for (_iter1484 = this->part_vals.begin(); _iter1484 != this->part_vals.end(); ++_iter1484) { - xfer += oprot->writeString((*_iter1460)); + xfer += oprot->writeString((*_iter1484)); } 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 _iter1461; - for (_iter1461 = (*(this->part_vals)).begin(); _iter1461 != (*(this->part_vals)).end(); ++_iter1461) + std::vector ::const_iterator _iter1485; + for (_iter1485 = (*(this->part_vals)).begin(); _iter1485 != (*(this->part_vals)).end(); ++_iter1485) { - xfer += oprot->writeString((*_iter1461)); + xfer += oprot->writeString((*_iter1485)); } 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 _size1462; - ::apache::thrift::protocol::TType _etype1465; - xfer += iprot->readListBegin(_etype1465, _size1462); - this->part_vals.resize(_size1462); - uint32_t _i1466; - for (_i1466 = 0; _i1466 < _size1462; ++_i1466) + uint32_t _size1486; + ::apache::thrift::protocol::TType _etype1489; + xfer += iprot->readListBegin(_etype1489, _size1486); + this->part_vals.resize(_size1486); + uint32_t _i1490; + for (_i1490 = 0; _i1490 < _size1486; ++_i1490) { - xfer += iprot->readString(this->part_vals[_i1466]); + xfer += iprot->readString(this->part_vals[_i1490]); } 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 _iter1467; - for (_iter1467 = this->part_vals.begin(); _iter1467 != this->part_vals.end(); ++_iter1467) + std::vector ::const_iterator _iter1491; + for (_iter1491 = this->part_vals.begin(); _iter1491 != this->part_vals.end(); ++_iter1491) { - xfer += oprot->writeString((*_iter1467)); + xfer += oprot->writeString((*_iter1491)); } 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 _iter1468; - for (_iter1468 = (*(this->part_vals)).begin(); _iter1468 != (*(this->part_vals)).end(); ++_iter1468) + std::vector ::const_iterator _iter1492; + for (_iter1492 = (*(this->part_vals)).begin(); _iter1492 != (*(this->part_vals)).end(); ++_iter1492) { - xfer += oprot->writeString((*_iter1468)); + xfer += oprot->writeString((*_iter1492)); } 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 _size1469; - ::apache::thrift::protocol::TType _etype1472; - xfer += iprot->readListBegin(_etype1472, _size1469); - this->part_vals.resize(_size1469); - uint32_t _i1473; - for (_i1473 = 0; _i1473 < _size1469; ++_i1473) + uint32_t _size1493; + ::apache::thrift::protocol::TType _etype1496; + xfer += iprot->readListBegin(_etype1496, _size1493); + this->part_vals.resize(_size1493); + uint32_t _i1497; + for (_i1497 = 0; _i1497 < _size1493; ++_i1497) { - xfer += iprot->readString(this->part_vals[_i1473]); + xfer += iprot->readString(this->part_vals[_i1497]); } 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 _iter1474; - for (_iter1474 = this->part_vals.begin(); _iter1474 != this->part_vals.end(); ++_iter1474) + std::vector ::const_iterator _iter1498; + for (_iter1498 = this->part_vals.begin(); _iter1498 != this->part_vals.end(); ++_iter1498) { - xfer += oprot->writeString((*_iter1474)); + xfer += oprot->writeString((*_iter1498)); } 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 _iter1475; - for (_iter1475 = (*(this->part_vals)).begin(); _iter1475 != (*(this->part_vals)).end(); ++_iter1475) + std::vector ::const_iterator _iter1499; + for (_iter1499 = (*(this->part_vals)).begin(); _iter1499 != (*(this->part_vals)).end(); ++_iter1499) { - xfer += oprot->writeString((*_iter1475)); + xfer += oprot->writeString((*_iter1499)); } 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 _size1476; - ::apache::thrift::protocol::TType _etype1479; - xfer += iprot->readListBegin(_etype1479, _size1476); - this->part_vals.resize(_size1476); - uint32_t _i1480; - for (_i1480 = 0; _i1480 < _size1476; ++_i1480) + uint32_t _size1500; + ::apache::thrift::protocol::TType _etype1503; + xfer += iprot->readListBegin(_etype1503, _size1500); + this->part_vals.resize(_size1500); + uint32_t _i1504; + for (_i1504 = 0; _i1504 < _size1500; ++_i1504) { - xfer += iprot->readString(this->part_vals[_i1480]); + xfer += iprot->readString(this->part_vals[_i1504]); } 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 _iter1481; - for (_iter1481 = this->part_vals.begin(); _iter1481 != this->part_vals.end(); ++_iter1481) + std::vector ::const_iterator _iter1505; + for (_iter1505 = this->part_vals.begin(); _iter1505 != this->part_vals.end(); ++_iter1505) { - xfer += oprot->writeString((*_iter1481)); + xfer += oprot->writeString((*_iter1505)); } 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 _iter1482; - for (_iter1482 = (*(this->part_vals)).begin(); _iter1482 != (*(this->part_vals)).end(); ++_iter1482) + std::vector ::const_iterator _iter1506; + for (_iter1506 = (*(this->part_vals)).begin(); _iter1506 != (*(this->part_vals)).end(); ++_iter1506) { - xfer += oprot->writeString((*_iter1482)); + xfer += oprot->writeString((*_iter1506)); } 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 _size1483; - ::apache::thrift::protocol::TType _ktype1484; - ::apache::thrift::protocol::TType _vtype1485; - xfer += iprot->readMapBegin(_ktype1484, _vtype1485, _size1483); - uint32_t _i1487; - for (_i1487 = 0; _i1487 < _size1483; ++_i1487) + uint32_t _size1507; + ::apache::thrift::protocol::TType _ktype1508; + ::apache::thrift::protocol::TType _vtype1509; + xfer += iprot->readMapBegin(_ktype1508, _vtype1509, _size1507); + uint32_t _i1511; + for (_i1511 = 0; _i1511 < _size1507; ++_i1511) { - std::string _key1488; - xfer += iprot->readString(_key1488); - std::string& _val1489 = this->partitionSpecs[_key1488]; - xfer += iprot->readString(_val1489); + std::string _key1512; + xfer += iprot->readString(_key1512); + std::string& _val1513 = this->partitionSpecs[_key1512]; + xfer += iprot->readString(_val1513); } 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 _iter1490; - for (_iter1490 = this->partitionSpecs.begin(); _iter1490 != this->partitionSpecs.end(); ++_iter1490) + std::map ::const_iterator _iter1514; + for (_iter1514 = this->partitionSpecs.begin(); _iter1514 != this->partitionSpecs.end(); ++_iter1514) { - xfer += oprot->writeString(_iter1490->first); - xfer += oprot->writeString(_iter1490->second); + xfer += oprot->writeString(_iter1514->first); + xfer += oprot->writeString(_iter1514->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 _iter1491; - for (_iter1491 = (*(this->partitionSpecs)).begin(); _iter1491 != (*(this->partitionSpecs)).end(); ++_iter1491) + std::map ::const_iterator _iter1515; + for (_iter1515 = (*(this->partitionSpecs)).begin(); _iter1515 != (*(this->partitionSpecs)).end(); ++_iter1515) { - xfer += oprot->writeString(_iter1491->first); - xfer += oprot->writeString(_iter1491->second); + xfer += oprot->writeString(_iter1515->first); + xfer += oprot->writeString(_iter1515->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 _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(); } @@ -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 _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(); } @@ -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 _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(); } @@ -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 _size1501; - ::apache::thrift::protocol::TType _etype1504; - xfer += iprot->readListBegin(_etype1504, _size1501); - this->success.resize(_size1501); - uint32_t _i1505; - for (_i1505 = 0; _i1505 < _size1501; ++_i1505) + uint32_t _size1525; + ::apache::thrift::protocol::TType _etype1528; + xfer += iprot->readListBegin(_etype1528, _size1525); + this->success.resize(_size1525); + uint32_t _i1529; + for (_i1529 = 0; _i1529 < _size1525; ++_i1529) { - xfer += this->success[_i1505].read(iprot); + xfer += this->success[_i1529].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 _iter1506; - for (_iter1506 = this->success.begin(); _iter1506 != this->success.end(); ++_iter1506) + std::vector ::const_iterator _iter1530; + for (_iter1530 = this->success.begin(); _iter1530 != this->success.end(); ++_iter1530) { - xfer += (*_iter1506).write(oprot); + xfer += (*_iter1530).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 _size1507; - ::apache::thrift::protocol::TType _etype1510; - xfer += iprot->readListBegin(_etype1510, _size1507); - (*(this->success)).resize(_size1507); - uint32_t _i1511; - for (_i1511 = 0; _i1511 < _size1507; ++_i1511) + uint32_t _size1531; + ::apache::thrift::protocol::TType _etype1534; + xfer += iprot->readListBegin(_etype1534, _size1531); + (*(this->success)).resize(_size1531); + uint32_t _i1535; + for (_i1535 = 0; _i1535 < _size1531; ++_i1535) { - xfer += (*(this->success))[_i1511].read(iprot); + xfer += (*(this->success))[_i1535].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 _size1512; - ::apache::thrift::protocol::TType _etype1515; - xfer += iprot->readListBegin(_etype1515, _size1512); - this->part_vals.resize(_size1512); - uint32_t _i1516; - for (_i1516 = 0; _i1516 < _size1512; ++_i1516) + uint32_t _size1536; + ::apache::thrift::protocol::TType _etype1539; + xfer += iprot->readListBegin(_etype1539, _size1536); + this->part_vals.resize(_size1536); + uint32_t _i1540; + for (_i1540 = 0; _i1540 < _size1536; ++_i1540) { - xfer += iprot->readString(this->part_vals[_i1516]); + xfer += iprot->readString(this->part_vals[_i1540]); } 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 _size1517; - ::apache::thrift::protocol::TType _etype1520; - xfer += iprot->readListBegin(_etype1520, _size1517); - this->group_names.resize(_size1517); - uint32_t _i1521; - for (_i1521 = 0; _i1521 < _size1517; ++_i1521) + uint32_t _size1541; + ::apache::thrift::protocol::TType _etype1544; + xfer += iprot->readListBegin(_etype1544, _size1541); + this->group_names.resize(_size1541); + uint32_t _i1545; + for (_i1545 = 0; _i1545 < _size1541; ++_i1545) { - xfer += iprot->readString(this->group_names[_i1521]); + xfer += iprot->readString(this->group_names[_i1545]); } 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 _iter1522; - for (_iter1522 = this->part_vals.begin(); _iter1522 != this->part_vals.end(); ++_iter1522) + std::vector ::const_iterator _iter1546; + for (_iter1546 = this->part_vals.begin(); _iter1546 != this->part_vals.end(); ++_iter1546) { - xfer += oprot->writeString((*_iter1522)); + xfer += oprot->writeString((*_iter1546)); } 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 _iter1523; - for (_iter1523 = this->group_names.begin(); _iter1523 != this->group_names.end(); ++_iter1523) + std::vector ::const_iterator _iter1547; + for (_iter1547 = this->group_names.begin(); _iter1547 != this->group_names.end(); ++_iter1547) { - xfer += oprot->writeString((*_iter1523)); + xfer += oprot->writeString((*_iter1547)); } 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 _iter1524; - for (_iter1524 = (*(this->part_vals)).begin(); _iter1524 != (*(this->part_vals)).end(); ++_iter1524) + std::vector ::const_iterator _iter1548; + for (_iter1548 = (*(this->part_vals)).begin(); _iter1548 != (*(this->part_vals)).end(); ++_iter1548) { - xfer += oprot->writeString((*_iter1524)); + xfer += oprot->writeString((*_iter1548)); } 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 _iter1525; - for (_iter1525 = (*(this->group_names)).begin(); _iter1525 != (*(this->group_names)).end(); ++_iter1525) + std::vector ::const_iterator _iter1549; + for (_iter1549 = (*(this->group_names)).begin(); _iter1549 != (*(this->group_names)).end(); ++_iter1549) { - xfer += oprot->writeString((*_iter1525)); + xfer += oprot->writeString((*_iter1549)); } 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 _size1526; - ::apache::thrift::protocol::TType _etype1529; - xfer += iprot->readListBegin(_etype1529, _size1526); - this->success.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->success.resize(_size1550); + uint32_t _i1554; + for (_i1554 = 0; _i1554 < _size1550; ++_i1554) { - xfer += this->success[_i1530].read(iprot); + xfer += this->success[_i1554].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 _iter1531; - for (_iter1531 = this->success.begin(); _iter1531 != this->success.end(); ++_iter1531) + std::vector ::const_iterator _iter1555; + for (_iter1555 = this->success.begin(); _iter1555 != this->success.end(); ++_iter1555) { - xfer += (*_iter1531).write(oprot); + xfer += (*_iter1555).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 _size1532; - ::apache::thrift::protocol::TType _etype1535; - xfer += iprot->readListBegin(_etype1535, _size1532); - (*(this->success)).resize(_size1532); - uint32_t _i1536; - for (_i1536 = 0; _i1536 < _size1532; ++_i1536) + uint32_t _size1556; + ::apache::thrift::protocol::TType _etype1559; + xfer += iprot->readListBegin(_etype1559, _size1556); + (*(this->success)).resize(_size1556); + uint32_t _i1560; + for (_i1560 = 0; _i1560 < _size1556; ++_i1560) { - xfer += (*(this->success))[_i1536].read(iprot); + xfer += (*(this->success))[_i1560].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 _size1537; - ::apache::thrift::protocol::TType _etype1540; - xfer += iprot->readListBegin(_etype1540, _size1537); - this->group_names.resize(_size1537); - uint32_t _i1541; - for (_i1541 = 0; _i1541 < _size1537; ++_i1541) + uint32_t _size1561; + ::apache::thrift::protocol::TType _etype1564; + xfer += iprot->readListBegin(_etype1564, _size1561); + this->group_names.resize(_size1561); + uint32_t _i1565; + for (_i1565 = 0; _i1565 < _size1561; ++_i1565) { - xfer += iprot->readString(this->group_names[_i1541]); + xfer += iprot->readString(this->group_names[_i1565]); } 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 _iter1542; - for (_iter1542 = this->group_names.begin(); _iter1542 != this->group_names.end(); ++_iter1542) + std::vector ::const_iterator _iter1566; + for (_iter1566 = this->group_names.begin(); _iter1566 != this->group_names.end(); ++_iter1566) { - xfer += oprot->writeString((*_iter1542)); + xfer += oprot->writeString((*_iter1566)); } 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 _iter1543; - for (_iter1543 = (*(this->group_names)).begin(); _iter1543 != (*(this->group_names)).end(); ++_iter1543) + std::vector ::const_iterator _iter1567; + for (_iter1567 = (*(this->group_names)).begin(); _iter1567 != (*(this->group_names)).end(); ++_iter1567) { - xfer += oprot->writeString((*_iter1543)); + xfer += oprot->writeString((*_iter1567)); } 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 _size1544; - ::apache::thrift::protocol::TType _etype1547; - xfer += iprot->readListBegin(_etype1547, _size1544); - this->success.resize(_size1544); - uint32_t _i1548; - for (_i1548 = 0; _i1548 < _size1544; ++_i1548) + uint32_t _size1568; + ::apache::thrift::protocol::TType _etype1571; + xfer += iprot->readListBegin(_etype1571, _size1568); + this->success.resize(_size1568); + uint32_t _i1572; + for (_i1572 = 0; _i1572 < _size1568; ++_i1572) { - xfer += this->success[_i1548].read(iprot); + xfer += this->success[_i1572].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 _iter1549; - for (_iter1549 = this->success.begin(); _iter1549 != this->success.end(); ++_iter1549) + std::vector ::const_iterator _iter1573; + for (_iter1573 = this->success.begin(); _iter1573 != this->success.end(); ++_iter1573) { - xfer += (*_iter1549).write(oprot); + xfer += (*_iter1573).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 _size1550; - ::apache::thrift::protocol::TType _etype1553; - xfer += iprot->readListBegin(_etype1553, _size1550); - (*(this->success)).resize(_size1550); - uint32_t _i1554; - for (_i1554 = 0; _i1554 < _size1550; ++_i1554) + uint32_t _size1574; + ::apache::thrift::protocol::TType _etype1577; + xfer += iprot->readListBegin(_etype1577, _size1574); + (*(this->success)).resize(_size1574); + uint32_t _i1578; + for (_i1578 = 0; _i1578 < _size1574; ++_i1578) { - xfer += (*(this->success))[_i1554].read(iprot); + xfer += (*(this->success))[_i1578].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 _size1555; - ::apache::thrift::protocol::TType _etype1558; - xfer += iprot->readListBegin(_etype1558, _size1555); - this->success.resize(_size1555); - uint32_t _i1559; - for (_i1559 = 0; _i1559 < _size1555; ++_i1559) + uint32_t _size1579; + ::apache::thrift::protocol::TType _etype1582; + xfer += iprot->readListBegin(_etype1582, _size1579); + this->success.resize(_size1579); + uint32_t _i1583; + for (_i1583 = 0; _i1583 < _size1579; ++_i1583) { - xfer += this->success[_i1559].read(iprot); + xfer += this->success[_i1583].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 _iter1560; - for (_iter1560 = this->success.begin(); _iter1560 != this->success.end(); ++_iter1560) + std::vector ::const_iterator _iter1584; + for (_iter1584 = this->success.begin(); _iter1584 != this->success.end(); ++_iter1584) { - xfer += (*_iter1560).write(oprot); + xfer += (*_iter1584).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 _size1561; - ::apache::thrift::protocol::TType _etype1564; - xfer += iprot->readListBegin(_etype1564, _size1561); - (*(this->success)).resize(_size1561); - uint32_t _i1565; - for (_i1565 = 0; _i1565 < _size1561; ++_i1565) + uint32_t _size1585; + ::apache::thrift::protocol::TType _etype1588; + xfer += iprot->readListBegin(_etype1588, _size1585); + (*(this->success)).resize(_size1585); + uint32_t _i1589; + for (_i1589 = 0; _i1589 < _size1585; ++_i1589) { - xfer += (*(this->success))[_i1565].read(iprot); + xfer += (*(this->success))[_i1589].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 _size1566; - ::apache::thrift::protocol::TType _etype1569; - xfer += iprot->readListBegin(_etype1569, _size1566); - this->success.resize(_size1566); - uint32_t _i1570; - for (_i1570 = 0; _i1570 < _size1566; ++_i1570) + uint32_t _size1590; + ::apache::thrift::protocol::TType _etype1593; + xfer += iprot->readListBegin(_etype1593, _size1590); + this->success.resize(_size1590); + uint32_t _i1594; + for (_i1594 = 0; _i1594 < _size1590; ++_i1594) { - xfer += iprot->readString(this->success[_i1570]); + xfer += iprot->readString(this->success[_i1594]); } 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 _iter1571; - for (_iter1571 = this->success.begin(); _iter1571 != this->success.end(); ++_iter1571) + std::vector ::const_iterator _iter1595; + for (_iter1595 = this->success.begin(); _iter1595 != this->success.end(); ++_iter1595) { - xfer += oprot->writeString((*_iter1571)); + xfer += oprot->writeString((*_iter1595)); } 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 _size1572; - ::apache::thrift::protocol::TType _etype1575; - xfer += iprot->readListBegin(_etype1575, _size1572); - (*(this->success)).resize(_size1572); - uint32_t _i1576; - for (_i1576 = 0; _i1576 < _size1572; ++_i1576) + uint32_t _size1596; + ::apache::thrift::protocol::TType _etype1599; + xfer += iprot->readListBegin(_etype1599, _size1596); + (*(this->success)).resize(_size1596); + uint32_t _i1600; + for (_i1600 = 0; _i1600 < _size1596; ++_i1600) { - xfer += iprot->readString((*(this->success))[_i1576]); + xfer += iprot->readString((*(this->success))[_i1600]); } 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 _size1577; - ::apache::thrift::protocol::TType _etype1580; - xfer += iprot->readListBegin(_etype1580, _size1577); - this->part_vals.resize(_size1577); - uint32_t _i1581; - for (_i1581 = 0; _i1581 < _size1577; ++_i1581) + uint32_t _size1601; + ::apache::thrift::protocol::TType _etype1604; + xfer += iprot->readListBegin(_etype1604, _size1601); + this->part_vals.resize(_size1601); + uint32_t _i1605; + for (_i1605 = 0; _i1605 < _size1601; ++_i1605) { - xfer += iprot->readString(this->part_vals[_i1581]); + xfer += iprot->readString(this->part_vals[_i1605]); } 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 _iter1582; - for (_iter1582 = this->part_vals.begin(); _iter1582 != this->part_vals.end(); ++_iter1582) + std::vector ::const_iterator _iter1606; + for (_iter1606 = this->part_vals.begin(); _iter1606 != this->part_vals.end(); ++_iter1606) { - xfer += oprot->writeString((*_iter1582)); + xfer += oprot->writeString((*_iter1606)); } 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 _iter1583; - for (_iter1583 = (*(this->part_vals)).begin(); _iter1583 != (*(this->part_vals)).end(); ++_iter1583) + std::vector ::const_iterator _iter1607; + for (_iter1607 = (*(this->part_vals)).begin(); _iter1607 != (*(this->part_vals)).end(); ++_iter1607) { - xfer += oprot->writeString((*_iter1583)); + xfer += oprot->writeString((*_iter1607)); } 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 _size1584; - ::apache::thrift::protocol::TType _etype1587; - xfer += iprot->readListBegin(_etype1587, _size1584); - this->success.resize(_size1584); - uint32_t _i1588; - for (_i1588 = 0; _i1588 < _size1584; ++_i1588) + uint32_t _size1608; + ::apache::thrift::protocol::TType _etype1611; + xfer += iprot->readListBegin(_etype1611, _size1608); + this->success.resize(_size1608); + uint32_t _i1612; + for (_i1612 = 0; _i1612 < _size1608; ++_i1612) { - xfer += this->success[_i1588].read(iprot); + xfer += this->success[_i1612].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 _iter1589; - for (_iter1589 = this->success.begin(); _iter1589 != this->success.end(); ++_iter1589) + std::vector ::const_iterator _iter1613; + for (_iter1613 = this->success.begin(); _iter1613 != this->success.end(); ++_iter1613) { - xfer += (*_iter1589).write(oprot); + xfer += (*_iter1613).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 _size1590; - ::apache::thrift::protocol::TType _etype1593; - xfer += iprot->readListBegin(_etype1593, _size1590); - (*(this->success)).resize(_size1590); - uint32_t _i1594; - for (_i1594 = 0; _i1594 < _size1590; ++_i1594) + uint32_t _size1614; + ::apache::thrift::protocol::TType _etype1617; + xfer += iprot->readListBegin(_etype1617, _size1614); + (*(this->success)).resize(_size1614); + uint32_t _i1618; + for (_i1618 = 0; _i1618 < _size1614; ++_i1618) { - xfer += (*(this->success))[_i1594].read(iprot); + xfer += (*(this->success))[_i1618].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 _size1595; - ::apache::thrift::protocol::TType _etype1598; - xfer += iprot->readListBegin(_etype1598, _size1595); - this->part_vals.resize(_size1595); - uint32_t _i1599; - for (_i1599 = 0; _i1599 < _size1595; ++_i1599) + uint32_t _size1619; + ::apache::thrift::protocol::TType _etype1622; + xfer += iprot->readListBegin(_etype1622, _size1619); + this->part_vals.resize(_size1619); + uint32_t _i1623; + for (_i1623 = 0; _i1623 < _size1619; ++_i1623) { - xfer += iprot->readString(this->part_vals[_i1599]); + xfer += iprot->readString(this->part_vals[_i1623]); } 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 _size1600; - ::apache::thrift::protocol::TType _etype1603; - xfer += iprot->readListBegin(_etype1603, _size1600); - this->group_names.resize(_size1600); - uint32_t _i1604; - for (_i1604 = 0; _i1604 < _size1600; ++_i1604) + uint32_t _size1624; + ::apache::thrift::protocol::TType _etype1627; + xfer += iprot->readListBegin(_etype1627, _size1624); + this->group_names.resize(_size1624); + uint32_t _i1628; + for (_i1628 = 0; _i1628 < _size1624; ++_i1628) { - xfer += iprot->readString(this->group_names[_i1604]); + xfer += iprot->readString(this->group_names[_i1628]); } 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 _iter1605; - for (_iter1605 = this->part_vals.begin(); _iter1605 != this->part_vals.end(); ++_iter1605) + std::vector ::const_iterator _iter1629; + for (_iter1629 = this->part_vals.begin(); _iter1629 != this->part_vals.end(); ++_iter1629) { - xfer += oprot->writeString((*_iter1605)); + xfer += oprot->writeString((*_iter1629)); } 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 _iter1606; - for (_iter1606 = this->group_names.begin(); _iter1606 != this->group_names.end(); ++_iter1606) + std::vector ::const_iterator _iter1630; + for (_iter1630 = this->group_names.begin(); _iter1630 != this->group_names.end(); ++_iter1630) { - xfer += oprot->writeString((*_iter1606)); + xfer += oprot->writeString((*_iter1630)); } 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 _iter1607; - for (_iter1607 = (*(this->part_vals)).begin(); _iter1607 != (*(this->part_vals)).end(); ++_iter1607) + std::vector ::const_iterator _iter1631; + for (_iter1631 = (*(this->part_vals)).begin(); _iter1631 != (*(this->part_vals)).end(); ++_iter1631) { - xfer += oprot->writeString((*_iter1607)); + xfer += oprot->writeString((*_iter1631)); } 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 _iter1608; - for (_iter1608 = (*(this->group_names)).begin(); _iter1608 != (*(this->group_names)).end(); ++_iter1608) + std::vector ::const_iterator _iter1632; + for (_iter1632 = (*(this->group_names)).begin(); _iter1632 != (*(this->group_names)).end(); ++_iter1632) { - xfer += oprot->writeString((*_iter1608)); + xfer += oprot->writeString((*_iter1632)); } 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 _size1609; - ::apache::thrift::protocol::TType _etype1612; - xfer += iprot->readListBegin(_etype1612, _size1609); - this->success.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->success.resize(_size1633); + uint32_t _i1637; + for (_i1637 = 0; _i1637 < _size1633; ++_i1637) { - xfer += this->success[_i1613].read(iprot); + xfer += this->success[_i1637].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 _iter1614; - for (_iter1614 = this->success.begin(); _iter1614 != this->success.end(); ++_iter1614) + std::vector ::const_iterator _iter1638; + for (_iter1638 = this->success.begin(); _iter1638 != this->success.end(); ++_iter1638) { - xfer += (*_iter1614).write(oprot); + xfer += (*_iter1638).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 _size1615; - ::apache::thrift::protocol::TType _etype1618; - xfer += iprot->readListBegin(_etype1618, _size1615); - (*(this->success)).resize(_size1615); - uint32_t _i1619; - for (_i1619 = 0; _i1619 < _size1615; ++_i1619) + uint32_t _size1639; + ::apache::thrift::protocol::TType _etype1642; + xfer += iprot->readListBegin(_etype1642, _size1639); + (*(this->success)).resize(_size1639); + uint32_t _i1643; + for (_i1643 = 0; _i1643 < _size1639; ++_i1643) { - xfer += (*(this->success))[_i1619].read(iprot); + xfer += (*(this->success))[_i1643].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 _size1620; - ::apache::thrift::protocol::TType _etype1623; - xfer += iprot->readListBegin(_etype1623, _size1620); - this->part_vals.resize(_size1620); - uint32_t _i1624; - for (_i1624 = 0; _i1624 < _size1620; ++_i1624) + uint32_t _size1644; + ::apache::thrift::protocol::TType _etype1647; + xfer += iprot->readListBegin(_etype1647, _size1644); + this->part_vals.resize(_size1644); + uint32_t _i1648; + for (_i1648 = 0; _i1648 < _size1644; ++_i1648) { - xfer += iprot->readString(this->part_vals[_i1624]); + xfer += iprot->readString(this->part_vals[_i1648]); } 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 _iter1625; - for (_iter1625 = this->part_vals.begin(); _iter1625 != this->part_vals.end(); ++_iter1625) + std::vector ::const_iterator _iter1649; + for (_iter1649 = this->part_vals.begin(); _iter1649 != this->part_vals.end(); ++_iter1649) { - xfer += oprot->writeString((*_iter1625)); + xfer += oprot->writeString((*_iter1649)); } 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 _iter1626; - for (_iter1626 = (*(this->part_vals)).begin(); _iter1626 != (*(this->part_vals)).end(); ++_iter1626) + std::vector ::const_iterator _iter1650; + for (_iter1650 = (*(this->part_vals)).begin(); _iter1650 != (*(this->part_vals)).end(); ++_iter1650) { - xfer += oprot->writeString((*_iter1626)); + xfer += oprot->writeString((*_iter1650)); } 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 _size1627; - ::apache::thrift::protocol::TType _etype1630; - xfer += iprot->readListBegin(_etype1630, _size1627); - this->success.resize(_size1627); - uint32_t _i1631; - for (_i1631 = 0; _i1631 < _size1627; ++_i1631) + uint32_t _size1651; + ::apache::thrift::protocol::TType _etype1654; + xfer += iprot->readListBegin(_etype1654, _size1651); + this->success.resize(_size1651); + uint32_t _i1655; + for (_i1655 = 0; _i1655 < _size1651; ++_i1655) { - xfer += iprot->readString(this->success[_i1631]); + xfer += iprot->readString(this->success[_i1655]); } 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 _iter1632; - for (_iter1632 = this->success.begin(); _iter1632 != this->success.end(); ++_iter1632) + std::vector ::const_iterator _iter1656; + for (_iter1656 = this->success.begin(); _iter1656 != this->success.end(); ++_iter1656) { - xfer += oprot->writeString((*_iter1632)); + xfer += oprot->writeString((*_iter1656)); } 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 _size1633; - ::apache::thrift::protocol::TType _etype1636; - xfer += iprot->readListBegin(_etype1636, _size1633); - (*(this->success)).resize(_size1633); - uint32_t _i1637; - for (_i1637 = 0; _i1637 < _size1633; ++_i1637) + uint32_t _size1657; + ::apache::thrift::protocol::TType _etype1660; + xfer += iprot->readListBegin(_etype1660, _size1657); + (*(this->success)).resize(_size1657); + uint32_t _i1661; + for (_i1661 = 0; _i1661 < _size1657; ++_i1661) { - xfer += iprot->readString((*(this->success))[_i1637]); + xfer += iprot->readString((*(this->success))[_i1661]); } 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 _size1638; - ::apache::thrift::protocol::TType _etype1641; - xfer += iprot->readListBegin(_etype1641, _size1638); - this->success.resize(_size1638); - uint32_t _i1642; - for (_i1642 = 0; _i1642 < _size1638; ++_i1642) + uint32_t _size1662; + ::apache::thrift::protocol::TType _etype1665; + xfer += iprot->readListBegin(_etype1665, _size1662); + this->success.resize(_size1662); + uint32_t _i1666; + for (_i1666 = 0; _i1666 < _size1662; ++_i1666) { - xfer += this->success[_i1642].read(iprot); + xfer += this->success[_i1666].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 _iter1643; - for (_iter1643 = this->success.begin(); _iter1643 != this->success.end(); ++_iter1643) + std::vector ::const_iterator _iter1667; + for (_iter1667 = this->success.begin(); _iter1667 != this->success.end(); ++_iter1667) { - xfer += (*_iter1643).write(oprot); + xfer += (*_iter1667).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 _size1644; - ::apache::thrift::protocol::TType _etype1647; - xfer += iprot->readListBegin(_etype1647, _size1644); - (*(this->success)).resize(_size1644); - uint32_t _i1648; - for (_i1648 = 0; _i1648 < _size1644; ++_i1648) + uint32_t _size1668; + ::apache::thrift::protocol::TType _etype1671; + xfer += iprot->readListBegin(_etype1671, _size1668); + (*(this->success)).resize(_size1668); + uint32_t _i1672; + for (_i1672 = 0; _i1672 < _size1668; ++_i1672) { - xfer += (*(this->success))[_i1648].read(iprot); + xfer += (*(this->success))[_i1672].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 _size1649; - ::apache::thrift::protocol::TType _etype1652; - xfer += iprot->readListBegin(_etype1652, _size1649); - this->success.resize(_size1649); - uint32_t _i1653; - for (_i1653 = 0; _i1653 < _size1649; ++_i1653) + uint32_t _size1673; + ::apache::thrift::protocol::TType _etype1676; + xfer += iprot->readListBegin(_etype1676, _size1673); + this->success.resize(_size1673); + uint32_t _i1677; + for (_i1677 = 0; _i1677 < _size1673; ++_i1677) { - xfer += this->success[_i1653].read(iprot); + xfer += this->success[_i1677].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 _iter1654; - for (_iter1654 = this->success.begin(); _iter1654 != this->success.end(); ++_iter1654) + std::vector ::const_iterator _iter1678; + for (_iter1678 = this->success.begin(); _iter1678 != this->success.end(); ++_iter1678) { - xfer += (*_iter1654).write(oprot); + xfer += (*_iter1678).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 _size1655; - ::apache::thrift::protocol::TType _etype1658; - xfer += iprot->readListBegin(_etype1658, _size1655); - (*(this->success)).resize(_size1655); - uint32_t _i1659; - for (_i1659 = 0; _i1659 < _size1655; ++_i1659) + uint32_t _size1679; + ::apache::thrift::protocol::TType _etype1682; + xfer += iprot->readListBegin(_etype1682, _size1679); + (*(this->success)).resize(_size1679); + uint32_t _i1683; + for (_i1683 = 0; _i1683 < _size1679; ++_i1683) { - xfer += (*(this->success))[_i1659].read(iprot); + xfer += (*(this->success))[_i1683].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 _size1660; - ::apache::thrift::protocol::TType _etype1663; - xfer += iprot->readListBegin(_etype1663, _size1660); - this->names.resize(_size1660); - uint32_t _i1664; - for (_i1664 = 0; _i1664 < _size1660; ++_i1664) + uint32_t _size1684; + ::apache::thrift::protocol::TType _etype1687; + xfer += iprot->readListBegin(_etype1687, _size1684); + this->names.resize(_size1684); + uint32_t _i1688; + for (_i1688 = 0; _i1688 < _size1684; ++_i1688) { - xfer += iprot->readString(this->names[_i1664]); + xfer += iprot->readString(this->names[_i1688]); } 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 _iter1665; - for (_iter1665 = this->names.begin(); _iter1665 != this->names.end(); ++_iter1665) + std::vector ::const_iterator _iter1689; + for (_iter1689 = this->names.begin(); _iter1689 != this->names.end(); ++_iter1689) { - xfer += oprot->writeString((*_iter1665)); + xfer += oprot->writeString((*_iter1689)); } 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 _iter1666; - for (_iter1666 = (*(this->names)).begin(); _iter1666 != (*(this->names)).end(); ++_iter1666) + std::vector ::const_iterator _iter1690; + for (_iter1690 = (*(this->names)).begin(); _iter1690 != (*(this->names)).end(); ++_iter1690) { - xfer += oprot->writeString((*_iter1666)); + xfer += oprot->writeString((*_iter1690)); } 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 _size1667; - ::apache::thrift::protocol::TType _etype1670; - xfer += iprot->readListBegin(_etype1670, _size1667); - this->success.resize(_size1667); - uint32_t _i1671; - for (_i1671 = 0; _i1671 < _size1667; ++_i1671) + uint32_t _size1691; + ::apache::thrift::protocol::TType _etype1694; + xfer += iprot->readListBegin(_etype1694, _size1691); + this->success.resize(_size1691); + uint32_t _i1695; + for (_i1695 = 0; _i1695 < _size1691; ++_i1695) { - xfer += this->success[_i1671].read(iprot); + xfer += this->success[_i1695].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 _iter1672; - for (_iter1672 = this->success.begin(); _iter1672 != this->success.end(); ++_iter1672) + std::vector ::const_iterator _iter1696; + for (_iter1696 = this->success.begin(); _iter1696 != this->success.end(); ++_iter1696) { - xfer += (*_iter1672).write(oprot); + xfer += (*_iter1696).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 _size1673; - ::apache::thrift::protocol::TType _etype1676; - xfer += iprot->readListBegin(_etype1676, _size1673); - (*(this->success)).resize(_size1673); - uint32_t _i1677; - for (_i1677 = 0; _i1677 < _size1673; ++_i1677) + uint32_t _size1697; + ::apache::thrift::protocol::TType _etype1700; + xfer += iprot->readListBegin(_etype1700, _size1697); + (*(this->success)).resize(_size1697); + uint32_t _i1701; + for (_i1701 = 0; _i1701 < _size1697; ++_i1701) { - xfer += (*(this->success))[_i1677].read(iprot); + xfer += (*(this->success))[_i1701].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 _size1678; - ::apache::thrift::protocol::TType _etype1681; - xfer += iprot->readListBegin(_etype1681, _size1678); - this->new_parts.resize(_size1678); - uint32_t _i1682; - for (_i1682 = 0; _i1682 < _size1678; ++_i1682) + uint32_t _size1702; + ::apache::thrift::protocol::TType _etype1705; + xfer += iprot->readListBegin(_etype1705, _size1702); + this->new_parts.resize(_size1702); + uint32_t _i1706; + for (_i1706 = 0; _i1706 < _size1702; ++_i1706) { - xfer += this->new_parts[_i1682].read(iprot); + xfer += this->new_parts[_i1706].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 _iter1683; - for (_iter1683 = this->new_parts.begin(); _iter1683 != this->new_parts.end(); ++_iter1683) + std::vector ::const_iterator _iter1707; + for (_iter1707 = this->new_parts.begin(); _iter1707 != this->new_parts.end(); ++_iter1707) { - xfer += (*_iter1683).write(oprot); + xfer += (*_iter1707).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 _iter1684; - for (_iter1684 = (*(this->new_parts)).begin(); _iter1684 != (*(this->new_parts)).end(); ++_iter1684) + std::vector ::const_iterator _iter1708; + for (_iter1708 = (*(this->new_parts)).begin(); _iter1708 != (*(this->new_parts)).end(); ++_iter1708) { - xfer += (*_iter1684).write(oprot); + xfer += (*_iter1708).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 _size1685; - ::apache::thrift::protocol::TType _etype1688; - xfer += iprot->readListBegin(_etype1688, _size1685); - this->new_parts.resize(_size1685); - uint32_t _i1689; - for (_i1689 = 0; _i1689 < _size1685; ++_i1689) + uint32_t _size1709; + ::apache::thrift::protocol::TType _etype1712; + xfer += iprot->readListBegin(_etype1712, _size1709); + this->new_parts.resize(_size1709); + uint32_t _i1713; + for (_i1713 = 0; _i1713 < _size1709; ++_i1713) { - xfer += this->new_parts[_i1689].read(iprot); + xfer += this->new_parts[_i1713].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 _iter1690; - for (_iter1690 = this->new_parts.begin(); _iter1690 != this->new_parts.end(); ++_iter1690) + std::vector ::const_iterator _iter1714; + for (_iter1714 = this->new_parts.begin(); _iter1714 != this->new_parts.end(); ++_iter1714) { - xfer += (*_iter1690).write(oprot); + xfer += (*_iter1714).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 _iter1691; - for (_iter1691 = (*(this->new_parts)).begin(); _iter1691 != (*(this->new_parts)).end(); ++_iter1691) + std::vector ::const_iterator _iter1715; + for (_iter1715 = (*(this->new_parts)).begin(); _iter1715 != (*(this->new_parts)).end(); ++_iter1715) { - xfer += (*_iter1691).write(oprot); + xfer += (*_iter1715).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 _size1692; - ::apache::thrift::protocol::TType _etype1695; - xfer += iprot->readListBegin(_etype1695, _size1692); - this->part_vals.resize(_size1692); - uint32_t _i1696; - for (_i1696 = 0; _i1696 < _size1692; ++_i1696) + uint32_t _size1716; + ::apache::thrift::protocol::TType _etype1719; + xfer += iprot->readListBegin(_etype1719, _size1716); + this->part_vals.resize(_size1716); + uint32_t _i1720; + for (_i1720 = 0; _i1720 < _size1716; ++_i1720) { - xfer += iprot->readString(this->part_vals[_i1696]); + xfer += iprot->readString(this->part_vals[_i1720]); } 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 _iter1697; - for (_iter1697 = this->part_vals.begin(); _iter1697 != this->part_vals.end(); ++_iter1697) + std::vector ::const_iterator _iter1721; + for (_iter1721 = this->part_vals.begin(); _iter1721 != this->part_vals.end(); ++_iter1721) { - xfer += oprot->writeString((*_iter1697)); + xfer += oprot->writeString((*_iter1721)); } 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 _iter1698; - for (_iter1698 = (*(this->part_vals)).begin(); _iter1698 != (*(this->part_vals)).end(); ++_iter1698) + std::vector ::const_iterator _iter1722; + for (_iter1722 = (*(this->part_vals)).begin(); _iter1722 != (*(this->part_vals)).end(); ++_iter1722) { - xfer += oprot->writeString((*_iter1698)); + xfer += oprot->writeString((*_iter1722)); } 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 _size1699; - ::apache::thrift::protocol::TType _etype1702; - xfer += iprot->readListBegin(_etype1702, _size1699); - this->part_vals.resize(_size1699); - uint32_t _i1703; - for (_i1703 = 0; _i1703 < _size1699; ++_i1703) + uint32_t _size1723; + ::apache::thrift::protocol::TType _etype1726; + xfer += iprot->readListBegin(_etype1726, _size1723); + this->part_vals.resize(_size1723); + uint32_t _i1727; + for (_i1727 = 0; _i1727 < _size1723; ++_i1727) { - xfer += iprot->readString(this->part_vals[_i1703]); + xfer += iprot->readString(this->part_vals[_i1727]); } 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 _iter1704; - for (_iter1704 = this->part_vals.begin(); _iter1704 != this->part_vals.end(); ++_iter1704) + std::vector ::const_iterator _iter1728; + for (_iter1728 = this->part_vals.begin(); _iter1728 != this->part_vals.end(); ++_iter1728) { - xfer += oprot->writeString((*_iter1704)); + xfer += oprot->writeString((*_iter1728)); } 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 _iter1705; - for (_iter1705 = (*(this->part_vals)).begin(); _iter1705 != (*(this->part_vals)).end(); ++_iter1705) + std::vector ::const_iterator _iter1729; + for (_iter1729 = (*(this->part_vals)).begin(); _iter1729 != (*(this->part_vals)).end(); ++_iter1729) { - xfer += oprot->writeString((*_iter1705)); + xfer += oprot->writeString((*_iter1729)); } 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 _size1706; - ::apache::thrift::protocol::TType _etype1709; - xfer += iprot->readListBegin(_etype1709, _size1706); - this->success.resize(_size1706); - uint32_t _i1710; - for (_i1710 = 0; _i1710 < _size1706; ++_i1710) + uint32_t _size1730; + ::apache::thrift::protocol::TType _etype1733; + xfer += iprot->readListBegin(_etype1733, _size1730); + this->success.resize(_size1730); + uint32_t _i1734; + for (_i1734 = 0; _i1734 < _size1730; ++_i1734) { - xfer += iprot->readString(this->success[_i1710]); + xfer += iprot->readString(this->success[_i1734]); } 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 _iter1711; - for (_iter1711 = this->success.begin(); _iter1711 != this->success.end(); ++_iter1711) + std::vector ::const_iterator _iter1735; + for (_iter1735 = this->success.begin(); _iter1735 != this->success.end(); ++_iter1735) { - xfer += oprot->writeString((*_iter1711)); + xfer += oprot->writeString((*_iter1735)); } 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 _size1712; - ::apache::thrift::protocol::TType _etype1715; - xfer += iprot->readListBegin(_etype1715, _size1712); - (*(this->success)).resize(_size1712); - uint32_t _i1716; - for (_i1716 = 0; _i1716 < _size1712; ++_i1716) + uint32_t _size1736; + ::apache::thrift::protocol::TType _etype1739; + xfer += iprot->readListBegin(_etype1739, _size1736); + (*(this->success)).resize(_size1736); + uint32_t _i1740; + for (_i1740 = 0; _i1740 < _size1736; ++_i1740) { - xfer += iprot->readString((*(this->success))[_i1716]); + xfer += iprot->readString((*(this->success))[_i1740]); } 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 _size1717; - ::apache::thrift::protocol::TType _ktype1718; - ::apache::thrift::protocol::TType _vtype1719; - xfer += iprot->readMapBegin(_ktype1718, _vtype1719, _size1717); - uint32_t _i1721; - for (_i1721 = 0; _i1721 < _size1717; ++_i1721) + 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) { - std::string _key1722; - xfer += iprot->readString(_key1722); - std::string& _val1723 = this->success[_key1722]; - xfer += iprot->readString(_val1723); + std::string _key1746; + xfer += iprot->readString(_key1746); + std::string& _val1747 = this->success[_key1746]; + xfer += iprot->readString(_val1747); } 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 _iter1724; - for (_iter1724 = this->success.begin(); _iter1724 != this->success.end(); ++_iter1724) + std::map ::const_iterator _iter1748; + for (_iter1748 = this->success.begin(); _iter1748 != this->success.end(); ++_iter1748) { - xfer += oprot->writeString(_iter1724->first); - xfer += oprot->writeString(_iter1724->second); + xfer += oprot->writeString(_iter1748->first); + xfer += oprot->writeString(_iter1748->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 _size1725; - ::apache::thrift::protocol::TType _ktype1726; - ::apache::thrift::protocol::TType _vtype1727; - xfer += iprot->readMapBegin(_ktype1726, _vtype1727, _size1725); - uint32_t _i1729; - for (_i1729 = 0; _i1729 < _size1725; ++_i1729) + uint32_t _size1749; + ::apache::thrift::protocol::TType _ktype1750; + ::apache::thrift::protocol::TType _vtype1751; + xfer += iprot->readMapBegin(_ktype1750, _vtype1751, _size1749); + uint32_t _i1753; + for (_i1753 = 0; _i1753 < _size1749; ++_i1753) { - std::string _key1730; - xfer += iprot->readString(_key1730); - std::string& _val1731 = (*(this->success))[_key1730]; - xfer += iprot->readString(_val1731); + std::string _key1754; + xfer += iprot->readString(_key1754); + std::string& _val1755 = (*(this->success))[_key1754]; + xfer += iprot->readString(_val1755); } 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 _size1732; - ::apache::thrift::protocol::TType _ktype1733; - ::apache::thrift::protocol::TType _vtype1734; - xfer += iprot->readMapBegin(_ktype1733, _vtype1734, _size1732); - uint32_t _i1736; - for (_i1736 = 0; _i1736 < _size1732; ++_i1736) + uint32_t _size1756; + ::apache::thrift::protocol::TType _ktype1757; + ::apache::thrift::protocol::TType _vtype1758; + xfer += iprot->readMapBegin(_ktype1757, _vtype1758, _size1756); + uint32_t _i1760; + for (_i1760 = 0; _i1760 < _size1756; ++_i1760) { - std::string _key1737; - xfer += iprot->readString(_key1737); - std::string& _val1738 = this->part_vals[_key1737]; - xfer += iprot->readString(_val1738); + std::string _key1761; + xfer += iprot->readString(_key1761); + std::string& _val1762 = this->part_vals[_key1761]; + xfer += iprot->readString(_val1762); } 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 ecast1739; - xfer += iprot->readI32(ecast1739); - this->eventType = (PartitionEventType::type)ecast1739; + int32_t ecast1763; + xfer += iprot->readI32(ecast1763); + this->eventType = (PartitionEventType::type)ecast1763; 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 _iter1740; - for (_iter1740 = this->part_vals.begin(); _iter1740 != this->part_vals.end(); ++_iter1740) + std::map ::const_iterator _iter1764; + for (_iter1764 = this->part_vals.begin(); _iter1764 != this->part_vals.end(); ++_iter1764) { - xfer += oprot->writeString(_iter1740->first); - xfer += oprot->writeString(_iter1740->second); + xfer += oprot->writeString(_iter1764->first); + xfer += oprot->writeString(_iter1764->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 _iter1741; - for (_iter1741 = (*(this->part_vals)).begin(); _iter1741 != (*(this->part_vals)).end(); ++_iter1741) + std::map ::const_iterator _iter1765; + for (_iter1765 = (*(this->part_vals)).begin(); _iter1765 != (*(this->part_vals)).end(); ++_iter1765) { - xfer += oprot->writeString(_iter1741->first); - xfer += oprot->writeString(_iter1741->second); + xfer += oprot->writeString(_iter1765->first); + xfer += oprot->writeString(_iter1765->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 _size1742; - ::apache::thrift::protocol::TType _ktype1743; - ::apache::thrift::protocol::TType _vtype1744; - xfer += iprot->readMapBegin(_ktype1743, _vtype1744, _size1742); - uint32_t _i1746; - for (_i1746 = 0; _i1746 < _size1742; ++_i1746) + uint32_t _size1766; + ::apache::thrift::protocol::TType _ktype1767; + ::apache::thrift::protocol::TType _vtype1768; + xfer += iprot->readMapBegin(_ktype1767, _vtype1768, _size1766); + uint32_t _i1770; + for (_i1770 = 0; _i1770 < _size1766; ++_i1770) { - std::string _key1747; - xfer += iprot->readString(_key1747); - std::string& _val1748 = this->part_vals[_key1747]; - xfer += iprot->readString(_val1748); + std::string _key1771; + xfer += iprot->readString(_key1771); + std::string& _val1772 = this->part_vals[_key1771]; + xfer += iprot->readString(_val1772); } 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 ecast1749; - xfer += iprot->readI32(ecast1749); - this->eventType = (PartitionEventType::type)ecast1749; + int32_t ecast1773; + xfer += iprot->readI32(ecast1773); + this->eventType = (PartitionEventType::type)ecast1773; 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 _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(); } @@ -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 _iter1751; - for (_iter1751 = (*(this->part_vals)).begin(); _iter1751 != (*(this->part_vals)).end(); ++_iter1751) + std::map ::const_iterator _iter1775; + for (_iter1775 = (*(this->part_vals)).begin(); _iter1775 != (*(this->part_vals)).end(); ++_iter1775) { - xfer += oprot->writeString(_iter1751->first); - xfer += oprot->writeString(_iter1751->second); + xfer += oprot->writeString(_iter1775->first); + xfer += oprot->writeString(_iter1775->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 _size1752; - ::apache::thrift::protocol::TType _etype1755; - xfer += iprot->readListBegin(_etype1755, _size1752); - this->success.resize(_size1752); - uint32_t _i1756; - for (_i1756 = 0; _i1756 < _size1752; ++_i1756) + uint32_t _size1776; + ::apache::thrift::protocol::TType _etype1779; + xfer += iprot->readListBegin(_etype1779, _size1776); + this->success.resize(_size1776); + uint32_t _i1780; + for (_i1780 = 0; _i1780 < _size1776; ++_i1780) { - xfer += iprot->readString(this->success[_i1756]); + xfer += iprot->readString(this->success[_i1780]); } 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 _iter1757; - for (_iter1757 = this->success.begin(); _iter1757 != this->success.end(); ++_iter1757) + std::vector ::const_iterator _iter1781; + for (_iter1781 = this->success.begin(); _iter1781 != this->success.end(); ++_iter1781) { - xfer += oprot->writeString((*_iter1757)); + xfer += oprot->writeString((*_iter1781)); } 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 _size1758; - ::apache::thrift::protocol::TType _etype1761; - xfer += iprot->readListBegin(_etype1761, _size1758); - (*(this->success)).resize(_size1758); - uint32_t _i1762; - for (_i1762 = 0; _i1762 < _size1758; ++_i1762) + uint32_t _size1782; + ::apache::thrift::protocol::TType _etype1785; + xfer += iprot->readListBegin(_etype1785, _size1782); + (*(this->success)).resize(_size1782); + uint32_t _i1786; + for (_i1786 = 0; _i1786 < _size1782; ++_i1786) { - xfer += iprot->readString((*(this->success))[_i1762]); + xfer += iprot->readString((*(this->success))[_i1786]); } 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 _size1763; - ::apache::thrift::protocol::TType _etype1766; - xfer += iprot->readListBegin(_etype1766, _size1763); - this->success.resize(_size1763); - uint32_t _i1767; - for (_i1767 = 0; _i1767 < _size1763; ++_i1767) + 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) { - xfer += iprot->readString(this->success[_i1767]); + xfer += iprot->readString(this->success[_i1791]); } 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 _iter1768; - for (_iter1768 = this->success.begin(); _iter1768 != this->success.end(); ++_iter1768) + std::vector ::const_iterator _iter1792; + for (_iter1792 = this->success.begin(); _iter1792 != this->success.end(); ++_iter1792) { - xfer += oprot->writeString((*_iter1768)); + xfer += oprot->writeString((*_iter1792)); } 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 _size1769; - ::apache::thrift::protocol::TType _etype1772; - xfer += iprot->readListBegin(_etype1772, _size1769); - (*(this->success)).resize(_size1769); - uint32_t _i1773; - for (_i1773 = 0; _i1773 < _size1769; ++_i1773) + 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) { - xfer += iprot->readString((*(this->success))[_i1773]); + xfer += iprot->readString((*(this->success))[_i1797]); } 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 ecast1774; - xfer += iprot->readI32(ecast1774); - this->principal_type = (PrincipalType::type)ecast1774; + int32_t ecast1798; + xfer += iprot->readI32(ecast1798); + this->principal_type = (PrincipalType::type)ecast1798; 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 ecast1775; - xfer += iprot->readI32(ecast1775); - this->grantorType = (PrincipalType::type)ecast1775; + int32_t ecast1799; + xfer += iprot->readI32(ecast1799); + this->grantorType = (PrincipalType::type)ecast1799; 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 ecast1776; - xfer += iprot->readI32(ecast1776); - this->principal_type = (PrincipalType::type)ecast1776; + int32_t ecast1800; + xfer += iprot->readI32(ecast1800); + this->principal_type = (PrincipalType::type)ecast1800; 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 ecast1777; - xfer += iprot->readI32(ecast1777); - this->principal_type = (PrincipalType::type)ecast1777; + int32_t ecast1801; + xfer += iprot->readI32(ecast1801); + this->principal_type = (PrincipalType::type)ecast1801; 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 _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 += this->success[_i1782].read(iprot); + xfer += this->success[_i1806].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 _iter1783; - for (_iter1783 = this->success.begin(); _iter1783 != this->success.end(); ++_iter1783) + std::vector ::const_iterator _iter1807; + for (_iter1807 = this->success.begin(); _iter1807 != this->success.end(); ++_iter1807) { - xfer += (*_iter1783).write(oprot); + xfer += (*_iter1807).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 _size1784; - ::apache::thrift::protocol::TType _etype1787; - xfer += iprot->readListBegin(_etype1787, _size1784); - (*(this->success)).resize(_size1784); - uint32_t _i1788; - for (_i1788 = 0; _i1788 < _size1784; ++_i1788) + uint32_t _size1808; + ::apache::thrift::protocol::TType _etype1811; + xfer += iprot->readListBegin(_etype1811, _size1808); + (*(this->success)).resize(_size1808); + uint32_t _i1812; + for (_i1812 = 0; _i1812 < _size1808; ++_i1812) { - xfer += (*(this->success))[_i1788].read(iprot); + xfer += (*(this->success))[_i1812].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 _size1789; - ::apache::thrift::protocol::TType _etype1792; - xfer += iprot->readListBegin(_etype1792, _size1789); - this->group_names.resize(_size1789); - uint32_t _i1793; - for (_i1793 = 0; _i1793 < _size1789; ++_i1793) + uint32_t _size1813; + ::apache::thrift::protocol::TType _etype1816; + xfer += iprot->readListBegin(_etype1816, _size1813); + this->group_names.resize(_size1813); + uint32_t _i1817; + for (_i1817 = 0; _i1817 < _size1813; ++_i1817) { - xfer += iprot->readString(this->group_names[_i1793]); + xfer += iprot->readString(this->group_names[_i1817]); } 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 _iter1794; - for (_iter1794 = this->group_names.begin(); _iter1794 != this->group_names.end(); ++_iter1794) + std::vector ::const_iterator _iter1818; + for (_iter1818 = this->group_names.begin(); _iter1818 != this->group_names.end(); ++_iter1818) { - xfer += oprot->writeString((*_iter1794)); + xfer += oprot->writeString((*_iter1818)); } 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 _iter1795; - for (_iter1795 = (*(this->group_names)).begin(); _iter1795 != (*(this->group_names)).end(); ++_iter1795) + std::vector ::const_iterator _iter1819; + for (_iter1819 = (*(this->group_names)).begin(); _iter1819 != (*(this->group_names)).end(); ++_iter1819) { - xfer += oprot->writeString((*_iter1795)); + xfer += oprot->writeString((*_iter1819)); } 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 ecast1796; - xfer += iprot->readI32(ecast1796); - this->principal_type = (PrincipalType::type)ecast1796; + int32_t ecast1820; + xfer += iprot->readI32(ecast1820); + this->principal_type = (PrincipalType::type)ecast1820; 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 _size1797; - ::apache::thrift::protocol::TType _etype1800; - xfer += iprot->readListBegin(_etype1800, _size1797); - this->success.resize(_size1797); - uint32_t _i1801; - for (_i1801 = 0; _i1801 < _size1797; ++_i1801) + uint32_t _size1821; + ::apache::thrift::protocol::TType _etype1824; + xfer += iprot->readListBegin(_etype1824, _size1821); + this->success.resize(_size1821); + uint32_t _i1825; + for (_i1825 = 0; _i1825 < _size1821; ++_i1825) { - xfer += this->success[_i1801].read(iprot); + xfer += this->success[_i1825].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 _iter1802; - for (_iter1802 = this->success.begin(); _iter1802 != this->success.end(); ++_iter1802) + std::vector ::const_iterator _iter1826; + for (_iter1826 = this->success.begin(); _iter1826 != this->success.end(); ++_iter1826) { - xfer += (*_iter1802).write(oprot); + xfer += (*_iter1826).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 _size1803; - ::apache::thrift::protocol::TType _etype1806; - xfer += iprot->readListBegin(_etype1806, _size1803); - (*(this->success)).resize(_size1803); - uint32_t _i1807; - for (_i1807 = 0; _i1807 < _size1803; ++_i1807) + uint32_t _size1827; + ::apache::thrift::protocol::TType _etype1830; + xfer += iprot->readListBegin(_etype1830, _size1827); + (*(this->success)).resize(_size1827); + uint32_t _i1831; + for (_i1831 = 0; _i1831 < _size1827; ++_i1831) { - xfer += (*(this->success))[_i1807].read(iprot); + xfer += (*(this->success))[_i1831].read(iprot); } xfer += iprot->readListEnd(); } @@ -33262,14 +33262,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 _size1808; - ::apache::thrift::protocol::TType _etype1811; - xfer += iprot->readListBegin(_etype1811, _size1808); - this->group_names.resize(_size1808); - uint32_t _i1812; - for (_i1812 = 0; _i1812 < _size1808; ++_i1812) + uint32_t _size1832; + ::apache::thrift::protocol::TType _etype1835; + xfer += iprot->readListBegin(_etype1835, _size1832); + this->group_names.resize(_size1832); + uint32_t _i1836; + for (_i1836 = 0; _i1836 < _size1832; ++_i1836) { - xfer += iprot->readString(this->group_names[_i1812]); + xfer += iprot->readString(this->group_names[_i1836]); } xfer += iprot->readListEnd(); } @@ -33302,10 +33302,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 _iter1813; - for (_iter1813 = this->group_names.begin(); _iter1813 != this->group_names.end(); ++_iter1813) + std::vector ::const_iterator _iter1837; + for (_iter1837 = this->group_names.begin(); _iter1837 != this->group_names.end(); ++_iter1837) { - xfer += oprot->writeString((*_iter1813)); + xfer += oprot->writeString((*_iter1837)); } xfer += oprot->writeListEnd(); } @@ -33333,10 +33333,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 _iter1814; - for (_iter1814 = (*(this->group_names)).begin(); _iter1814 != (*(this->group_names)).end(); ++_iter1814) + std::vector ::const_iterator _iter1838; + for (_iter1838 = (*(this->group_names)).begin(); _iter1838 != (*(this->group_names)).end(); ++_iter1838) { - xfer += oprot->writeString((*_iter1814)); + xfer += oprot->writeString((*_iter1838)); } xfer += oprot->writeListEnd(); } @@ -33377,14 +33377,14 @@ uint32_t ThriftHiveMetastore_set_ugi_result::read(::apache::thrift::protocol::TP if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1815; - ::apache::thrift::protocol::TType _etype1818; - xfer += iprot->readListBegin(_etype1818, _size1815); - this->success.resize(_size1815); - uint32_t _i1819; - for (_i1819 = 0; _i1819 < _size1815; ++_i1819) + uint32_t _size1839; + ::apache::thrift::protocol::TType _etype1842; + xfer += iprot->readListBegin(_etype1842, _size1839); + this->success.resize(_size1839); + uint32_t _i1843; + for (_i1843 = 0; _i1843 < _size1839; ++_i1843) { - xfer += iprot->readString(this->success[_i1819]); + xfer += iprot->readString(this->success[_i1843]); } xfer += iprot->readListEnd(); } @@ -33423,10 +33423,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 _iter1820; - for (_iter1820 = this->success.begin(); _iter1820 != this->success.end(); ++_iter1820) + std::vector ::const_iterator _iter1844; + for (_iter1844 = this->success.begin(); _iter1844 != this->success.end(); ++_iter1844) { - xfer += oprot->writeString((*_iter1820)); + xfer += oprot->writeString((*_iter1844)); } xfer += oprot->writeListEnd(); } @@ -33471,14 +33471,14 @@ uint32_t ThriftHiveMetastore_set_ugi_presult::read(::apache::thrift::protocol::T if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1821; - ::apache::thrift::protocol::TType _etype1824; - xfer += iprot->readListBegin(_etype1824, _size1821); - (*(this->success)).resize(_size1821); - uint32_t _i1825; - for (_i1825 = 0; _i1825 < _size1821; ++_i1825) + uint32_t _size1845; + ::apache::thrift::protocol::TType _etype1848; + xfer += iprot->readListBegin(_etype1848, _size1845); + (*(this->success)).resize(_size1845); + uint32_t _i1849; + for (_i1849 = 0; _i1849 < _size1845; ++_i1849) { - xfer += iprot->readString((*(this->success))[_i1825]); + xfer += iprot->readString((*(this->success))[_i1849]); } xfer += iprot->readListEnd(); } @@ -34789,14 +34789,14 @@ uint32_t ThriftHiveMetastore_get_all_token_identifiers_result::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1826; - ::apache::thrift::protocol::TType _etype1829; - xfer += iprot->readListBegin(_etype1829, _size1826); - this->success.resize(_size1826); - uint32_t _i1830; - for (_i1830 = 0; _i1830 < _size1826; ++_i1830) + uint32_t _size1850; + ::apache::thrift::protocol::TType _etype1853; + xfer += iprot->readListBegin(_etype1853, _size1850); + this->success.resize(_size1850); + uint32_t _i1854; + for (_i1854 = 0; _i1854 < _size1850; ++_i1854) { - xfer += iprot->readString(this->success[_i1830]); + xfer += iprot->readString(this->success[_i1854]); } xfer += iprot->readListEnd(); } @@ -34827,10 +34827,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 _iter1831; - for (_iter1831 = this->success.begin(); _iter1831 != this->success.end(); ++_iter1831) + std::vector ::const_iterator _iter1855; + for (_iter1855 = this->success.begin(); _iter1855 != this->success.end(); ++_iter1855) { - xfer += oprot->writeString((*_iter1831)); + xfer += oprot->writeString((*_iter1855)); } xfer += oprot->writeListEnd(); } @@ -34871,14 +34871,14 @@ uint32_t ThriftHiveMetastore_get_all_token_identifiers_presult::read(::apache::t if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1832; - ::apache::thrift::protocol::TType _etype1835; - xfer += iprot->readListBegin(_etype1835, _size1832); - (*(this->success)).resize(_size1832); - uint32_t _i1836; - for (_i1836 = 0; _i1836 < _size1832; ++_i1836) + uint32_t _size1856; + ::apache::thrift::protocol::TType _etype1859; + xfer += iprot->readListBegin(_etype1859, _size1856); + (*(this->success)).resize(_size1856); + uint32_t _i1860; + for (_i1860 = 0; _i1860 < _size1856; ++_i1860) { - xfer += iprot->readString((*(this->success))[_i1836]); + xfer += iprot->readString((*(this->success))[_i1860]); } xfer += iprot->readListEnd(); } @@ -35604,14 +35604,14 @@ uint32_t ThriftHiveMetastore_get_master_keys_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1837; - ::apache::thrift::protocol::TType _etype1840; - xfer += iprot->readListBegin(_etype1840, _size1837); - this->success.resize(_size1837); - uint32_t _i1841; - for (_i1841 = 0; _i1841 < _size1837; ++_i1841) + uint32_t _size1861; + ::apache::thrift::protocol::TType _etype1864; + xfer += iprot->readListBegin(_etype1864, _size1861); + this->success.resize(_size1861); + uint32_t _i1865; + for (_i1865 = 0; _i1865 < _size1861; ++_i1865) { - xfer += iprot->readString(this->success[_i1841]); + xfer += iprot->readString(this->success[_i1865]); } xfer += iprot->readListEnd(); } @@ -35642,10 +35642,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 _iter1842; - for (_iter1842 = this->success.begin(); _iter1842 != this->success.end(); ++_iter1842) + std::vector ::const_iterator _iter1866; + for (_iter1866 = this->success.begin(); _iter1866 != this->success.end(); ++_iter1866) { - xfer += oprot->writeString((*_iter1842)); + xfer += oprot->writeString((*_iter1866)); } xfer += oprot->writeListEnd(); } @@ -35686,14 +35686,14 @@ uint32_t ThriftHiveMetastore_get_master_keys_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1843; - ::apache::thrift::protocol::TType _etype1846; - xfer += iprot->readListBegin(_etype1846, _size1843); - (*(this->success)).resize(_size1843); - uint32_t _i1847; - for (_i1847 = 0; _i1847 < _size1843; ++_i1847) + uint32_t _size1867; + ::apache::thrift::protocol::TType _etype1870; + xfer += iprot->readListBegin(_etype1870, _size1867); + (*(this->success)).resize(_size1867); + uint32_t _i1871; + for (_i1871 = 0; _i1871 < _size1867; ++_i1871) { - xfer += iprot->readString((*(this->success))[_i1847]); + xfer += iprot->readString((*(this->success))[_i1871]); } xfer += iprot->readListEnd(); } @@ -40170,6 +40170,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() { } @@ -47334,14 +47521,14 @@ uint32_t ThriftHiveMetastore_get_schema_all_versions_result::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - 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) + uint32_t _size1872; + ::apache::thrift::protocol::TType _etype1875; + xfer += iprot->readListBegin(_etype1875, _size1872); + this->success.resize(_size1872); + uint32_t _i1876; + for (_i1876 = 0; _i1876 < _size1872; ++_i1876) { - xfer += this->success[_i1852].read(iprot); + xfer += this->success[_i1876].read(iprot); } xfer += iprot->readListEnd(); } @@ -47388,10 +47575,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 _iter1853; - for (_iter1853 = this->success.begin(); _iter1853 != this->success.end(); ++_iter1853) + std::vector ::const_iterator _iter1877; + for (_iter1877 = this->success.begin(); _iter1877 != this->success.end(); ++_iter1877) { - xfer += (*_iter1853).write(oprot); + xfer += (*_iter1877).write(oprot); } xfer += oprot->writeListEnd(); } @@ -47440,14 +47627,14 @@ uint32_t ThriftHiveMetastore_get_schema_all_versions_presult::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - 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) + uint32_t _size1878; + ::apache::thrift::protocol::TType _etype1881; + xfer += iprot->readListBegin(_etype1881, _size1878); + (*(this->success)).resize(_size1878); + uint32_t _i1882; + for (_i1882 = 0; _i1882 < _size1878; ++_i1882) { - xfer += (*(this->success))[_i1858].read(iprot); + xfer += (*(this->success))[_i1882].read(iprot); } xfer += iprot->readListEnd(); } @@ -49500,14 +49687,14 @@ uint32_t ThriftHiveMetastore_get_runtime_stats_result::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - 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) + uint32_t _size1883; + ::apache::thrift::protocol::TType _etype1886; + xfer += iprot->readListBegin(_etype1886, _size1883); + this->success.resize(_size1883); + uint32_t _i1887; + for (_i1887 = 0; _i1887 < _size1883; ++_i1887) { - xfer += this->success[_i1863].read(iprot); + xfer += this->success[_i1887].read(iprot); } xfer += iprot->readListEnd(); } @@ -49546,10 +49733,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 _iter1864; - for (_iter1864 = this->success.begin(); _iter1864 != this->success.end(); ++_iter1864) + std::vector ::const_iterator _iter1888; + for (_iter1888 = this->success.begin(); _iter1888 != this->success.end(); ++_iter1888) { - xfer += (*_iter1864).write(oprot); + xfer += (*_iter1888).write(oprot); } xfer += oprot->writeListEnd(); } @@ -49594,14 +49781,14 @@ uint32_t ThriftHiveMetastore_get_runtime_stats_presult::read(::apache::thrift::p if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - 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) + uint32_t _size1889; + ::apache::thrift::protocol::TType _etype1892; + xfer += iprot->readListBegin(_etype1892, _size1889); + (*(this->success)).resize(_size1889); + uint32_t _i1893; + for (_i1893 = 0; _i1893 < _size1889; ++_i1893) { - xfer += (*(this->success))[_i1869].read(iprot); + xfer += (*(this->success))[_i1893].read(iprot); } xfer += iprot->readListEnd(); } @@ -59887,6 +60074,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); @@ -72161,6 +72406,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; @@ -89410,6 +89709,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 da669519f6..181466eaf0 100644 --- a/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h +++ b/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h @@ -184,6 +184,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; @@ -768,6 +769,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; } @@ -20884,6 +20888,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; @@ -26365,6 +26473,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); @@ -26663,6 +26774,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); @@ -26871,6 +26983,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; @@ -28497,6 +28610,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; @@ -29409,6 +29532,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 3b0b38c64a..d4ab103bee 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 @@ -832,6 +832,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 2fab857d36..112fc17b55 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 @@ -16442,6 +16442,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); @@ -16480,6 +16485,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 _size670; + ::apache::thrift::protocol::TType _etype673; + xfer += iprot->readListBegin(_etype673, _size670); + this->writeEventInfos.resize(_size670); + uint32_t _i674; + for (_i674 = 0; _i674 < _size670; ++_i674) + { + xfer += this->writeEventInfos[_i674].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.writeEventInfos = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -16508,6 +16533,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 _iter675; + for (_iter675 = this->writeEventInfos.begin(); _iter675 != this->writeEventInfos.end(); ++_iter675) + { + xfer += (*_iter675).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; @@ -16517,18 +16555,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& other670) { - txnid = other670.txnid; - replPolicy = other670.replPolicy; - __isset = other670.__isset; +CommitTxnRequest::CommitTxnRequest(const CommitTxnRequest& other676) { + txnid = other676.txnid; + replPolicy = other676.replPolicy; + writeEventInfos = other676.writeEventInfos; + __isset = other676.__isset; } -CommitTxnRequest& CommitTxnRequest::operator=(const CommitTxnRequest& other671) { - txnid = other671.txnid; - replPolicy = other671.replPolicy; - __isset = other671.__isset; +CommitTxnRequest& CommitTxnRequest::operator=(const CommitTxnRequest& other677) { + txnid = other677.txnid; + replPolicy = other677.replPolicy; + writeEventInfos = other677.writeEventInfos; + __isset = other677.__isset; return *this; } void CommitTxnRequest::printTo(std::ostream& out) const { @@ -16536,6 +16577,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_partition(const std::string& val) { + this->partition = val; +} + +void WriteEventInfo::__set_files(const std::string& val) { + this->files = val; +__isset.files = 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_partition = 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->partition); + isset_partition = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->files); + this->__isset.files = 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_partition) + 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("partition", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->partition); + xfer += oprot->writeFieldEnd(); + + if (this->__isset.files) { + xfer += oprot->writeFieldBegin("files", ::apache::thrift::protocol::T_STRING, 5); + xfer += oprot->writeString(this->files); + 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.partition, b.partition); + swap(a.files, b.files); + swap(a.tableObj, b.tableObj); + swap(a.partitionObj, b.partitionObj); + swap(a.__isset, b.__isset); +} + +WriteEventInfo::WriteEventInfo(const WriteEventInfo& other678) { + writeId = other678.writeId; + database = other678.database; + table = other678.table; + partition = other678.partition; + files = other678.files; + tableObj = other678.tableObj; + partitionObj = other678.partitionObj; + __isset = other678.__isset; +} +WriteEventInfo& WriteEventInfo::operator=(const WriteEventInfo& other679) { + writeId = other679.writeId; + database = other679.database; + table = other679.table; + partition = other679.partition; + files = other679.files; + tableObj = other679.tableObj; + partitionObj = other679.partitionObj; + __isset = other679.__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 << ", " << "partition=" << to_string(partition); + out << ", " << "files="; (__isset.files ? (out << to_string(files)) : (out << "")); + out << ", " << "tableObj="; (__isset.tableObj ? (out << to_string(tableObj)) : (out << "")); + out << ", " << "partitionObj="; (__isset.partitionObj ? (out << to_string(partitionObj)) : (out << "")); out << ")"; } @@ -16579,14 +16845,14 @@ uint32_t GetValidWriteIdsRequest::read(::apache::thrift::protocol::TProtocol* ip if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fullTableNames.clear(); - uint32_t _size672; - ::apache::thrift::protocol::TType _etype675; - xfer += iprot->readListBegin(_etype675, _size672); - this->fullTableNames.resize(_size672); - uint32_t _i676; - for (_i676 = 0; _i676 < _size672; ++_i676) + uint32_t _size680; + ::apache::thrift::protocol::TType _etype683; + xfer += iprot->readListBegin(_etype683, _size680); + this->fullTableNames.resize(_size680); + uint32_t _i684; + for (_i684 = 0; _i684 < _size680; ++_i684) { - xfer += iprot->readString(this->fullTableNames[_i676]); + xfer += iprot->readString(this->fullTableNames[_i684]); } xfer += iprot->readListEnd(); } @@ -16627,10 +16893,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 _iter677; - for (_iter677 = this->fullTableNames.begin(); _iter677 != this->fullTableNames.end(); ++_iter677) + std::vector ::const_iterator _iter685; + for (_iter685 = this->fullTableNames.begin(); _iter685 != this->fullTableNames.end(); ++_iter685) { - xfer += oprot->writeString((*_iter677)); + xfer += oprot->writeString((*_iter685)); } xfer += oprot->writeListEnd(); } @@ -16651,13 +16917,13 @@ void swap(GetValidWriteIdsRequest &a, GetValidWriteIdsRequest &b) { swap(a.validTxnList, b.validTxnList); } -GetValidWriteIdsRequest::GetValidWriteIdsRequest(const GetValidWriteIdsRequest& other678) { - fullTableNames = other678.fullTableNames; - validTxnList = other678.validTxnList; +GetValidWriteIdsRequest::GetValidWriteIdsRequest(const GetValidWriteIdsRequest& other686) { + fullTableNames = other686.fullTableNames; + validTxnList = other686.validTxnList; } -GetValidWriteIdsRequest& GetValidWriteIdsRequest::operator=(const GetValidWriteIdsRequest& other679) { - fullTableNames = other679.fullTableNames; - validTxnList = other679.validTxnList; +GetValidWriteIdsRequest& GetValidWriteIdsRequest::operator=(const GetValidWriteIdsRequest& other687) { + fullTableNames = other687.fullTableNames; + validTxnList = other687.validTxnList; return *this; } void GetValidWriteIdsRequest::printTo(std::ostream& out) const { @@ -16739,14 +17005,14 @@ uint32_t TableValidWriteIds::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->invalidWriteIds.clear(); - uint32_t _size680; - ::apache::thrift::protocol::TType _etype683; - xfer += iprot->readListBegin(_etype683, _size680); - this->invalidWriteIds.resize(_size680); - uint32_t _i684; - for (_i684 = 0; _i684 < _size680; ++_i684) + uint32_t _size688; + ::apache::thrift::protocol::TType _etype691; + xfer += iprot->readListBegin(_etype691, _size688); + this->invalidWriteIds.resize(_size688); + uint32_t _i692; + for (_i692 = 0; _i692 < _size688; ++_i692) { - xfer += iprot->readI64(this->invalidWriteIds[_i684]); + xfer += iprot->readI64(this->invalidWriteIds[_i692]); } xfer += iprot->readListEnd(); } @@ -16807,10 +17073,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 _iter685; - for (_iter685 = this->invalidWriteIds.begin(); _iter685 != this->invalidWriteIds.end(); ++_iter685) + std::vector ::const_iterator _iter693; + for (_iter693 = this->invalidWriteIds.begin(); _iter693 != this->invalidWriteIds.end(); ++_iter693) { - xfer += oprot->writeI64((*_iter685)); + xfer += oprot->writeI64((*_iter693)); } xfer += oprot->writeListEnd(); } @@ -16840,21 +17106,21 @@ void swap(TableValidWriteIds &a, TableValidWriteIds &b) { swap(a.__isset, b.__isset); } -TableValidWriteIds::TableValidWriteIds(const TableValidWriteIds& other686) { - fullTableName = other686.fullTableName; - writeIdHighWaterMark = other686.writeIdHighWaterMark; - invalidWriteIds = other686.invalidWriteIds; - minOpenWriteId = other686.minOpenWriteId; - abortedBits = other686.abortedBits; - __isset = other686.__isset; -} -TableValidWriteIds& TableValidWriteIds::operator=(const TableValidWriteIds& other687) { - fullTableName = other687.fullTableName; - writeIdHighWaterMark = other687.writeIdHighWaterMark; - invalidWriteIds = other687.invalidWriteIds; - minOpenWriteId = other687.minOpenWriteId; - abortedBits = other687.abortedBits; - __isset = other687.__isset; +TableValidWriteIds::TableValidWriteIds(const TableValidWriteIds& other694) { + fullTableName = other694.fullTableName; + writeIdHighWaterMark = other694.writeIdHighWaterMark; + invalidWriteIds = other694.invalidWriteIds; + minOpenWriteId = other694.minOpenWriteId; + abortedBits = other694.abortedBits; + __isset = other694.__isset; +} +TableValidWriteIds& TableValidWriteIds::operator=(const TableValidWriteIds& other695) { + fullTableName = other695.fullTableName; + writeIdHighWaterMark = other695.writeIdHighWaterMark; + invalidWriteIds = other695.invalidWriteIds; + minOpenWriteId = other695.minOpenWriteId; + abortedBits = other695.abortedBits; + __isset = other695.__isset; return *this; } void TableValidWriteIds::printTo(std::ostream& out) const { @@ -16903,14 +17169,14 @@ uint32_t GetValidWriteIdsResponse::read(::apache::thrift::protocol::TProtocol* i if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tblValidWriteIds.clear(); - uint32_t _size688; - ::apache::thrift::protocol::TType _etype691; - xfer += iprot->readListBegin(_etype691, _size688); - this->tblValidWriteIds.resize(_size688); - uint32_t _i692; - for (_i692 = 0; _i692 < _size688; ++_i692) + uint32_t _size696; + ::apache::thrift::protocol::TType _etype699; + xfer += iprot->readListBegin(_etype699, _size696); + this->tblValidWriteIds.resize(_size696); + uint32_t _i700; + for (_i700 = 0; _i700 < _size696; ++_i700) { - xfer += this->tblValidWriteIds[_i692].read(iprot); + xfer += this->tblValidWriteIds[_i700].read(iprot); } xfer += iprot->readListEnd(); } @@ -16941,10 +17207,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 _iter693; - for (_iter693 = this->tblValidWriteIds.begin(); _iter693 != this->tblValidWriteIds.end(); ++_iter693) + std::vector ::const_iterator _iter701; + for (_iter701 = this->tblValidWriteIds.begin(); _iter701 != this->tblValidWriteIds.end(); ++_iter701) { - xfer += (*_iter693).write(oprot); + xfer += (*_iter701).write(oprot); } xfer += oprot->writeListEnd(); } @@ -16960,11 +17226,11 @@ void swap(GetValidWriteIdsResponse &a, GetValidWriteIdsResponse &b) { swap(a.tblValidWriteIds, b.tblValidWriteIds); } -GetValidWriteIdsResponse::GetValidWriteIdsResponse(const GetValidWriteIdsResponse& other694) { - tblValidWriteIds = other694.tblValidWriteIds; +GetValidWriteIdsResponse::GetValidWriteIdsResponse(const GetValidWriteIdsResponse& other702) { + tblValidWriteIds = other702.tblValidWriteIds; } -GetValidWriteIdsResponse& GetValidWriteIdsResponse::operator=(const GetValidWriteIdsResponse& other695) { - tblValidWriteIds = other695.tblValidWriteIds; +GetValidWriteIdsResponse& GetValidWriteIdsResponse::operator=(const GetValidWriteIdsResponse& other703) { + tblValidWriteIds = other703.tblValidWriteIds; return *this; } void GetValidWriteIdsResponse::printTo(std::ostream& out) const { @@ -17045,14 +17311,14 @@ uint32_t AllocateTableWriteIdsRequest::read(::apache::thrift::protocol::TProtoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->txnIds.clear(); - uint32_t _size696; - ::apache::thrift::protocol::TType _etype699; - xfer += iprot->readListBegin(_etype699, _size696); - this->txnIds.resize(_size696); - uint32_t _i700; - for (_i700 = 0; _i700 < _size696; ++_i700) + uint32_t _size704; + ::apache::thrift::protocol::TType _etype707; + xfer += iprot->readListBegin(_etype707, _size704); + this->txnIds.resize(_size704); + uint32_t _i708; + for (_i708 = 0; _i708 < _size704; ++_i708) { - xfer += iprot->readI64(this->txnIds[_i700]); + xfer += iprot->readI64(this->txnIds[_i708]); } xfer += iprot->readListEnd(); } @@ -17073,14 +17339,14 @@ uint32_t AllocateTableWriteIdsRequest::read(::apache::thrift::protocol::TProtoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->srcTxnToWriteIdList.clear(); - uint32_t _size701; - ::apache::thrift::protocol::TType _etype704; - xfer += iprot->readListBegin(_etype704, _size701); - this->srcTxnToWriteIdList.resize(_size701); - uint32_t _i705; - for (_i705 = 0; _i705 < _size701; ++_i705) + uint32_t _size709; + ::apache::thrift::protocol::TType _etype712; + xfer += iprot->readListBegin(_etype712, _size709); + this->srcTxnToWriteIdList.resize(_size709); + uint32_t _i713; + for (_i713 = 0; _i713 < _size709; ++_i713) { - xfer += this->srcTxnToWriteIdList[_i705].read(iprot); + xfer += this->srcTxnToWriteIdList[_i713].read(iprot); } xfer += iprot->readListEnd(); } @@ -17122,10 +17388,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 _iter706; - for (_iter706 = this->txnIds.begin(); _iter706 != this->txnIds.end(); ++_iter706) + std::vector ::const_iterator _iter714; + for (_iter714 = this->txnIds.begin(); _iter714 != this->txnIds.end(); ++_iter714) { - xfer += oprot->writeI64((*_iter706)); + xfer += oprot->writeI64((*_iter714)); } xfer += oprot->writeListEnd(); } @@ -17140,10 +17406,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 _iter707; - for (_iter707 = this->srcTxnToWriteIdList.begin(); _iter707 != this->srcTxnToWriteIdList.end(); ++_iter707) + std::vector ::const_iterator _iter715; + for (_iter715 = this->srcTxnToWriteIdList.begin(); _iter715 != this->srcTxnToWriteIdList.end(); ++_iter715) { - xfer += (*_iter707).write(oprot); + xfer += (*_iter715).write(oprot); } xfer += oprot->writeListEnd(); } @@ -17164,21 +17430,21 @@ void swap(AllocateTableWriteIdsRequest &a, AllocateTableWriteIdsRequest &b) { swap(a.__isset, b.__isset); } -AllocateTableWriteIdsRequest::AllocateTableWriteIdsRequest(const AllocateTableWriteIdsRequest& other708) { - dbName = other708.dbName; - tableName = other708.tableName; - txnIds = other708.txnIds; - replPolicy = other708.replPolicy; - srcTxnToWriteIdList = other708.srcTxnToWriteIdList; - __isset = other708.__isset; -} -AllocateTableWriteIdsRequest& AllocateTableWriteIdsRequest::operator=(const AllocateTableWriteIdsRequest& other709) { - dbName = other709.dbName; - tableName = other709.tableName; - txnIds = other709.txnIds; - replPolicy = other709.replPolicy; - srcTxnToWriteIdList = other709.srcTxnToWriteIdList; - __isset = other709.__isset; +AllocateTableWriteIdsRequest::AllocateTableWriteIdsRequest(const AllocateTableWriteIdsRequest& other716) { + dbName = other716.dbName; + tableName = other716.tableName; + txnIds = other716.txnIds; + replPolicy = other716.replPolicy; + srcTxnToWriteIdList = other716.srcTxnToWriteIdList; + __isset = other716.__isset; +} +AllocateTableWriteIdsRequest& AllocateTableWriteIdsRequest::operator=(const AllocateTableWriteIdsRequest& other717) { + dbName = other717.dbName; + tableName = other717.tableName; + txnIds = other717.txnIds; + replPolicy = other717.replPolicy; + srcTxnToWriteIdList = other717.srcTxnToWriteIdList; + __isset = other717.__isset; return *this; } void AllocateTableWriteIdsRequest::printTo(std::ostream& out) const { @@ -17284,13 +17550,13 @@ void swap(TxnToWriteId &a, TxnToWriteId &b) { swap(a.writeId, b.writeId); } -TxnToWriteId::TxnToWriteId(const TxnToWriteId& other710) { - txnId = other710.txnId; - writeId = other710.writeId; +TxnToWriteId::TxnToWriteId(const TxnToWriteId& other718) { + txnId = other718.txnId; + writeId = other718.writeId; } -TxnToWriteId& TxnToWriteId::operator=(const TxnToWriteId& other711) { - txnId = other711.txnId; - writeId = other711.writeId; +TxnToWriteId& TxnToWriteId::operator=(const TxnToWriteId& other719) { + txnId = other719.txnId; + writeId = other719.writeId; return *this; } void TxnToWriteId::printTo(std::ostream& out) const { @@ -17336,14 +17602,14 @@ uint32_t AllocateTableWriteIdsResponse::read(::apache::thrift::protocol::TProtoc if (ftype == ::apache::thrift::protocol::T_LIST) { { this->txnToWriteIds.clear(); - uint32_t _size712; - ::apache::thrift::protocol::TType _etype715; - xfer += iprot->readListBegin(_etype715, _size712); - this->txnToWriteIds.resize(_size712); - uint32_t _i716; - for (_i716 = 0; _i716 < _size712; ++_i716) + uint32_t _size720; + ::apache::thrift::protocol::TType _etype723; + xfer += iprot->readListBegin(_etype723, _size720); + this->txnToWriteIds.resize(_size720); + uint32_t _i724; + for (_i724 = 0; _i724 < _size720; ++_i724) { - xfer += this->txnToWriteIds[_i716].read(iprot); + xfer += this->txnToWriteIds[_i724].read(iprot); } xfer += iprot->readListEnd(); } @@ -17374,10 +17640,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 _iter717; - for (_iter717 = this->txnToWriteIds.begin(); _iter717 != this->txnToWriteIds.end(); ++_iter717) + std::vector ::const_iterator _iter725; + for (_iter725 = this->txnToWriteIds.begin(); _iter725 != this->txnToWriteIds.end(); ++_iter725) { - xfer += (*_iter717).write(oprot); + xfer += (*_iter725).write(oprot); } xfer += oprot->writeListEnd(); } @@ -17393,11 +17659,11 @@ void swap(AllocateTableWriteIdsResponse &a, AllocateTableWriteIdsResponse &b) { swap(a.txnToWriteIds, b.txnToWriteIds); } -AllocateTableWriteIdsResponse::AllocateTableWriteIdsResponse(const AllocateTableWriteIdsResponse& other718) { - txnToWriteIds = other718.txnToWriteIds; +AllocateTableWriteIdsResponse::AllocateTableWriteIdsResponse(const AllocateTableWriteIdsResponse& other726) { + txnToWriteIds = other726.txnToWriteIds; } -AllocateTableWriteIdsResponse& AllocateTableWriteIdsResponse::operator=(const AllocateTableWriteIdsResponse& other719) { - txnToWriteIds = other719.txnToWriteIds; +AllocateTableWriteIdsResponse& AllocateTableWriteIdsResponse::operator=(const AllocateTableWriteIdsResponse& other727) { + txnToWriteIds = other727.txnToWriteIds; return *this; } void AllocateTableWriteIdsResponse::printTo(std::ostream& out) const { @@ -17475,9 +17741,9 @@ uint32_t LockComponent::read(::apache::thrift::protocol::TProtocol* iprot) { { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast720; - xfer += iprot->readI32(ecast720); - this->type = (LockType::type)ecast720; + int32_t ecast728; + xfer += iprot->readI32(ecast728); + this->type = (LockType::type)ecast728; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -17485,9 +17751,9 @@ uint32_t LockComponent::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast721; - xfer += iprot->readI32(ecast721); - this->level = (LockLevel::type)ecast721; + int32_t ecast729; + xfer += iprot->readI32(ecast729); + this->level = (LockLevel::type)ecast729; isset_level = true; } else { xfer += iprot->skip(ftype); @@ -17519,9 +17785,9 @@ uint32_t LockComponent::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 6: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast722; - xfer += iprot->readI32(ecast722); - this->operationType = (DataOperationType::type)ecast722; + int32_t ecast730; + xfer += iprot->readI32(ecast730); + this->operationType = (DataOperationType::type)ecast730; this->__isset.operationType = true; } else { xfer += iprot->skip(ftype); @@ -17621,27 +17887,27 @@ void swap(LockComponent &a, LockComponent &b) { swap(a.__isset, b.__isset); } -LockComponent::LockComponent(const LockComponent& other723) { - type = other723.type; - level = other723.level; - dbname = other723.dbname; - tablename = other723.tablename; - partitionname = other723.partitionname; - operationType = other723.operationType; - isTransactional = other723.isTransactional; - isDynamicPartitionWrite = other723.isDynamicPartitionWrite; - __isset = other723.__isset; -} -LockComponent& LockComponent::operator=(const LockComponent& other724) { - type = other724.type; - level = other724.level; - dbname = other724.dbname; - tablename = other724.tablename; - partitionname = other724.partitionname; - operationType = other724.operationType; - isTransactional = other724.isTransactional; - isDynamicPartitionWrite = other724.isDynamicPartitionWrite; - __isset = other724.__isset; +LockComponent::LockComponent(const LockComponent& other731) { + type = other731.type; + level = other731.level; + dbname = other731.dbname; + tablename = other731.tablename; + partitionname = other731.partitionname; + operationType = other731.operationType; + isTransactional = other731.isTransactional; + isDynamicPartitionWrite = other731.isDynamicPartitionWrite; + __isset = other731.__isset; +} +LockComponent& LockComponent::operator=(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; return *this; } void LockComponent::printTo(std::ostream& out) const { @@ -17713,14 +17979,14 @@ uint32_t LockRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->component.clear(); - uint32_t _size725; - ::apache::thrift::protocol::TType _etype728; - xfer += iprot->readListBegin(_etype728, _size725); - this->component.resize(_size725); - uint32_t _i729; - for (_i729 = 0; _i729 < _size725; ++_i729) + uint32_t _size733; + ::apache::thrift::protocol::TType _etype736; + xfer += iprot->readListBegin(_etype736, _size733); + this->component.resize(_size733); + uint32_t _i737; + for (_i737 = 0; _i737 < _size733; ++_i737) { - xfer += this->component[_i729].read(iprot); + xfer += this->component[_i737].read(iprot); } xfer += iprot->readListEnd(); } @@ -17787,10 +18053,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 _iter730; - for (_iter730 = this->component.begin(); _iter730 != this->component.end(); ++_iter730) + std::vector ::const_iterator _iter738; + for (_iter738 = this->component.begin(); _iter738 != this->component.end(); ++_iter738) { - xfer += (*_iter730).write(oprot); + xfer += (*_iter738).write(oprot); } xfer += oprot->writeListEnd(); } @@ -17829,21 +18095,21 @@ void swap(LockRequest &a, LockRequest &b) { swap(a.__isset, b.__isset); } -LockRequest::LockRequest(const LockRequest& other731) { - component = other731.component; - txnid = other731.txnid; - user = other731.user; - hostname = other731.hostname; - agentInfo = other731.agentInfo; - __isset = other731.__isset; -} -LockRequest& LockRequest::operator=(const LockRequest& other732) { - component = other732.component; - txnid = other732.txnid; - user = other732.user; - hostname = other732.hostname; - agentInfo = other732.agentInfo; - __isset = other732.__isset; +LockRequest::LockRequest(const LockRequest& other739) { + component = other739.component; + txnid = other739.txnid; + user = other739.user; + hostname = other739.hostname; + agentInfo = other739.agentInfo; + __isset = other739.__isset; +} +LockRequest& LockRequest::operator=(const LockRequest& other740) { + component = other740.component; + txnid = other740.txnid; + user = other740.user; + hostname = other740.hostname; + agentInfo = other740.agentInfo; + __isset = other740.__isset; return *this; } void LockRequest::printTo(std::ostream& out) const { @@ -17903,9 +18169,9 @@ uint32_t LockResponse::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast733; - xfer += iprot->readI32(ecast733); - this->state = (LockState::type)ecast733; + int32_t ecast741; + xfer += iprot->readI32(ecast741); + this->state = (LockState::type)ecast741; isset_state = true; } else { xfer += iprot->skip(ftype); @@ -17951,13 +18217,13 @@ void swap(LockResponse &a, LockResponse &b) { swap(a.state, b.state); } -LockResponse::LockResponse(const LockResponse& other734) { - lockid = other734.lockid; - state = other734.state; +LockResponse::LockResponse(const LockResponse& other742) { + lockid = other742.lockid; + state = other742.state; } -LockResponse& LockResponse::operator=(const LockResponse& other735) { - lockid = other735.lockid; - state = other735.state; +LockResponse& LockResponse::operator=(const LockResponse& other743) { + lockid = other743.lockid; + state = other743.state; return *this; } void LockResponse::printTo(std::ostream& out) const { @@ -18079,17 +18345,17 @@ void swap(CheckLockRequest &a, CheckLockRequest &b) { swap(a.__isset, b.__isset); } -CheckLockRequest::CheckLockRequest(const CheckLockRequest& other736) { - lockid = other736.lockid; - txnid = other736.txnid; - elapsed_ms = other736.elapsed_ms; - __isset = other736.__isset; +CheckLockRequest::CheckLockRequest(const CheckLockRequest& other744) { + lockid = other744.lockid; + txnid = other744.txnid; + elapsed_ms = other744.elapsed_ms; + __isset = other744.__isset; } -CheckLockRequest& CheckLockRequest::operator=(const CheckLockRequest& other737) { - lockid = other737.lockid; - txnid = other737.txnid; - elapsed_ms = other737.elapsed_ms; - __isset = other737.__isset; +CheckLockRequest& CheckLockRequest::operator=(const CheckLockRequest& other745) { + lockid = other745.lockid; + txnid = other745.txnid; + elapsed_ms = other745.elapsed_ms; + __isset = other745.__isset; return *this; } void CheckLockRequest::printTo(std::ostream& out) const { @@ -18173,11 +18439,11 @@ void swap(UnlockRequest &a, UnlockRequest &b) { swap(a.lockid, b.lockid); } -UnlockRequest::UnlockRequest(const UnlockRequest& other738) { - lockid = other738.lockid; +UnlockRequest::UnlockRequest(const UnlockRequest& other746) { + lockid = other746.lockid; } -UnlockRequest& UnlockRequest::operator=(const UnlockRequest& other739) { - lockid = other739.lockid; +UnlockRequest& UnlockRequest::operator=(const UnlockRequest& other747) { + lockid = other747.lockid; return *this; } void UnlockRequest::printTo(std::ostream& out) const { @@ -18316,19 +18582,19 @@ void swap(ShowLocksRequest &a, ShowLocksRequest &b) { swap(a.__isset, b.__isset); } -ShowLocksRequest::ShowLocksRequest(const ShowLocksRequest& other740) { - dbname = other740.dbname; - tablename = other740.tablename; - partname = other740.partname; - isExtended = other740.isExtended; - __isset = other740.__isset; +ShowLocksRequest::ShowLocksRequest(const ShowLocksRequest& other748) { + dbname = other748.dbname; + tablename = other748.tablename; + partname = other748.partname; + isExtended = other748.isExtended; + __isset = other748.__isset; } -ShowLocksRequest& ShowLocksRequest::operator=(const ShowLocksRequest& other741) { - dbname = other741.dbname; - tablename = other741.tablename; - partname = other741.partname; - isExtended = other741.isExtended; - __isset = other741.__isset; +ShowLocksRequest& ShowLocksRequest::operator=(const ShowLocksRequest& other749) { + dbname = other749.dbname; + tablename = other749.tablename; + partname = other749.partname; + isExtended = other749.isExtended; + __isset = other749.__isset; return *this; } void ShowLocksRequest::printTo(std::ostream& out) const { @@ -18481,9 +18747,9 @@ uint32_t ShowLocksResponseElement::read(::apache::thrift::protocol::TProtocol* i break; case 5: 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); @@ -18491,9 +18757,9 @@ uint32_t ShowLocksResponseElement::read(::apache::thrift::protocol::TProtocol* i break; case 6: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast743; - xfer += iprot->readI32(ecast743); - this->type = (LockType::type)ecast743; + int32_t ecast751; + xfer += iprot->readI32(ecast751); + this->type = (LockType::type)ecast751; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -18709,43 +18975,43 @@ void swap(ShowLocksResponseElement &a, ShowLocksResponseElement &b) { swap(a.__isset, b.__isset); } -ShowLocksResponseElement::ShowLocksResponseElement(const ShowLocksResponseElement& other744) { - lockid = other744.lockid; - dbname = other744.dbname; - tablename = other744.tablename; - partname = other744.partname; - state = other744.state; - type = other744.type; - txnid = other744.txnid; - lastheartbeat = other744.lastheartbeat; - acquiredat = other744.acquiredat; - user = other744.user; - hostname = other744.hostname; - heartbeatCount = other744.heartbeatCount; - agentInfo = other744.agentInfo; - blockedByExtId = other744.blockedByExtId; - blockedByIntId = other744.blockedByIntId; - lockIdInternal = other744.lockIdInternal; - __isset = other744.__isset; +ShowLocksResponseElement::ShowLocksResponseElement(const ShowLocksResponseElement& other752) { + lockid = other752.lockid; + dbname = other752.dbname; + tablename = other752.tablename; + partname = other752.partname; + state = other752.state; + type = other752.type; + txnid = other752.txnid; + lastheartbeat = other752.lastheartbeat; + acquiredat = other752.acquiredat; + user = other752.user; + hostname = other752.hostname; + heartbeatCount = other752.heartbeatCount; + agentInfo = other752.agentInfo; + blockedByExtId = other752.blockedByExtId; + blockedByIntId = other752.blockedByIntId; + lockIdInternal = other752.lockIdInternal; + __isset = other752.__isset; } -ShowLocksResponseElement& ShowLocksResponseElement::operator=(const ShowLocksResponseElement& other745) { - lockid = other745.lockid; - dbname = other745.dbname; - tablename = other745.tablename; - partname = other745.partname; - state = other745.state; - type = other745.type; - txnid = other745.txnid; - lastheartbeat = other745.lastheartbeat; - acquiredat = other745.acquiredat; - user = other745.user; - hostname = other745.hostname; - heartbeatCount = other745.heartbeatCount; - agentInfo = other745.agentInfo; - blockedByExtId = other745.blockedByExtId; - blockedByIntId = other745.blockedByIntId; - lockIdInternal = other745.lockIdInternal; - __isset = other745.__isset; +ShowLocksResponseElement& ShowLocksResponseElement::operator=(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; return *this; } void ShowLocksResponseElement::printTo(std::ostream& out) const { @@ -18804,14 +19070,14 @@ uint32_t ShowLocksResponse::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->locks.clear(); - uint32_t _size746; - ::apache::thrift::protocol::TType _etype749; - xfer += iprot->readListBegin(_etype749, _size746); - this->locks.resize(_size746); - uint32_t _i750; - for (_i750 = 0; _i750 < _size746; ++_i750) + uint32_t _size754; + ::apache::thrift::protocol::TType _etype757; + xfer += iprot->readListBegin(_etype757, _size754); + this->locks.resize(_size754); + uint32_t _i758; + for (_i758 = 0; _i758 < _size754; ++_i758) { - xfer += this->locks[_i750].read(iprot); + xfer += this->locks[_i758].read(iprot); } xfer += iprot->readListEnd(); } @@ -18840,10 +19106,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 _iter751; - for (_iter751 = this->locks.begin(); _iter751 != this->locks.end(); ++_iter751) + std::vector ::const_iterator _iter759; + for (_iter759 = this->locks.begin(); _iter759 != this->locks.end(); ++_iter759) { - xfer += (*_iter751).write(oprot); + xfer += (*_iter759).write(oprot); } xfer += oprot->writeListEnd(); } @@ -18860,13 +19126,13 @@ void swap(ShowLocksResponse &a, ShowLocksResponse &b) { swap(a.__isset, b.__isset); } -ShowLocksResponse::ShowLocksResponse(const ShowLocksResponse& other752) { - locks = other752.locks; - __isset = other752.__isset; +ShowLocksResponse::ShowLocksResponse(const ShowLocksResponse& other760) { + locks = other760.locks; + __isset = other760.__isset; } -ShowLocksResponse& ShowLocksResponse::operator=(const ShowLocksResponse& other753) { - locks = other753.locks; - __isset = other753.__isset; +ShowLocksResponse& ShowLocksResponse::operator=(const ShowLocksResponse& other761) { + locks = other761.locks; + __isset = other761.__isset; return *this; } void ShowLocksResponse::printTo(std::ostream& out) const { @@ -18967,15 +19233,15 @@ void swap(HeartbeatRequest &a, HeartbeatRequest &b) { swap(a.__isset, b.__isset); } -HeartbeatRequest::HeartbeatRequest(const HeartbeatRequest& other754) { - lockid = other754.lockid; - txnid = other754.txnid; - __isset = other754.__isset; +HeartbeatRequest::HeartbeatRequest(const HeartbeatRequest& other762) { + lockid = other762.lockid; + txnid = other762.txnid; + __isset = other762.__isset; } -HeartbeatRequest& HeartbeatRequest::operator=(const HeartbeatRequest& other755) { - lockid = other755.lockid; - txnid = other755.txnid; - __isset = other755.__isset; +HeartbeatRequest& HeartbeatRequest::operator=(const HeartbeatRequest& other763) { + lockid = other763.lockid; + txnid = other763.txnid; + __isset = other763.__isset; return *this; } void HeartbeatRequest::printTo(std::ostream& out) const { @@ -19078,13 +19344,13 @@ void swap(HeartbeatTxnRangeRequest &a, HeartbeatTxnRangeRequest &b) { swap(a.max, b.max); } -HeartbeatTxnRangeRequest::HeartbeatTxnRangeRequest(const HeartbeatTxnRangeRequest& other756) { - min = other756.min; - max = other756.max; +HeartbeatTxnRangeRequest::HeartbeatTxnRangeRequest(const HeartbeatTxnRangeRequest& other764) { + min = other764.min; + max = other764.max; } -HeartbeatTxnRangeRequest& HeartbeatTxnRangeRequest::operator=(const HeartbeatTxnRangeRequest& other757) { - min = other757.min; - max = other757.max; +HeartbeatTxnRangeRequest& HeartbeatTxnRangeRequest::operator=(const HeartbeatTxnRangeRequest& other765) { + min = other765.min; + max = other765.max; return *this; } void HeartbeatTxnRangeRequest::printTo(std::ostream& out) const { @@ -19135,15 +19401,15 @@ uint32_t HeartbeatTxnRangeResponse::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_SET) { { this->aborted.clear(); - uint32_t _size758; - ::apache::thrift::protocol::TType _etype761; - xfer += iprot->readSetBegin(_etype761, _size758); - uint32_t _i762; - for (_i762 = 0; _i762 < _size758; ++_i762) + uint32_t _size766; + ::apache::thrift::protocol::TType _etype769; + xfer += iprot->readSetBegin(_etype769, _size766); + uint32_t _i770; + for (_i770 = 0; _i770 < _size766; ++_i770) { - int64_t _elem763; - xfer += iprot->readI64(_elem763); - this->aborted.insert(_elem763); + int64_t _elem771; + xfer += iprot->readI64(_elem771); + this->aborted.insert(_elem771); } xfer += iprot->readSetEnd(); } @@ -19156,15 +19422,15 @@ uint32_t HeartbeatTxnRangeResponse::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_SET) { { this->nosuch.clear(); - uint32_t _size764; - ::apache::thrift::protocol::TType _etype767; - xfer += iprot->readSetBegin(_etype767, _size764); - uint32_t _i768; - for (_i768 = 0; _i768 < _size764; ++_i768) + uint32_t _size772; + ::apache::thrift::protocol::TType _etype775; + xfer += iprot->readSetBegin(_etype775, _size772); + uint32_t _i776; + for (_i776 = 0; _i776 < _size772; ++_i776) { - int64_t _elem769; - xfer += iprot->readI64(_elem769); - this->nosuch.insert(_elem769); + int64_t _elem777; + xfer += iprot->readI64(_elem777); + this->nosuch.insert(_elem777); } xfer += iprot->readSetEnd(); } @@ -19197,10 +19463,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 _iter770; - for (_iter770 = this->aborted.begin(); _iter770 != this->aborted.end(); ++_iter770) + std::set ::const_iterator _iter778; + for (_iter778 = this->aborted.begin(); _iter778 != this->aborted.end(); ++_iter778) { - xfer += oprot->writeI64((*_iter770)); + xfer += oprot->writeI64((*_iter778)); } xfer += oprot->writeSetEnd(); } @@ -19209,10 +19475,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 _iter771; - for (_iter771 = this->nosuch.begin(); _iter771 != this->nosuch.end(); ++_iter771) + std::set ::const_iterator _iter779; + for (_iter779 = this->nosuch.begin(); _iter779 != this->nosuch.end(); ++_iter779) { - xfer += oprot->writeI64((*_iter771)); + xfer += oprot->writeI64((*_iter779)); } xfer += oprot->writeSetEnd(); } @@ -19229,13 +19495,13 @@ void swap(HeartbeatTxnRangeResponse &a, HeartbeatTxnRangeResponse &b) { swap(a.nosuch, b.nosuch); } -HeartbeatTxnRangeResponse::HeartbeatTxnRangeResponse(const HeartbeatTxnRangeResponse& other772) { - aborted = other772.aborted; - nosuch = other772.nosuch; +HeartbeatTxnRangeResponse::HeartbeatTxnRangeResponse(const HeartbeatTxnRangeResponse& other780) { + aborted = other780.aborted; + nosuch = other780.nosuch; } -HeartbeatTxnRangeResponse& HeartbeatTxnRangeResponse::operator=(const HeartbeatTxnRangeResponse& other773) { - aborted = other773.aborted; - nosuch = other773.nosuch; +HeartbeatTxnRangeResponse& HeartbeatTxnRangeResponse::operator=(const HeartbeatTxnRangeResponse& other781) { + aborted = other781.aborted; + nosuch = other781.nosuch; return *this; } void HeartbeatTxnRangeResponse::printTo(std::ostream& out) const { @@ -19328,9 +19594,9 @@ uint32_t CompactionRequest::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast774; - xfer += iprot->readI32(ecast774); - this->type = (CompactionType::type)ecast774; + int32_t ecast782; + xfer += iprot->readI32(ecast782); + this->type = (CompactionType::type)ecast782; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -19348,17 +19614,17 @@ uint32_t CompactionRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->properties.clear(); - uint32_t _size775; - ::apache::thrift::protocol::TType _ktype776; - ::apache::thrift::protocol::TType _vtype777; - xfer += iprot->readMapBegin(_ktype776, _vtype777, _size775); - uint32_t _i779; - for (_i779 = 0; _i779 < _size775; ++_i779) + uint32_t _size783; + ::apache::thrift::protocol::TType _ktype784; + ::apache::thrift::protocol::TType _vtype785; + xfer += iprot->readMapBegin(_ktype784, _vtype785, _size783); + uint32_t _i787; + for (_i787 = 0; _i787 < _size783; ++_i787) { - std::string _key780; - xfer += iprot->readString(_key780); - std::string& _val781 = this->properties[_key780]; - xfer += iprot->readString(_val781); + std::string _key788; + xfer += iprot->readString(_key788); + std::string& _val789 = this->properties[_key788]; + xfer += iprot->readString(_val789); } xfer += iprot->readMapEnd(); } @@ -19416,11 +19682,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 _iter782; - for (_iter782 = this->properties.begin(); _iter782 != this->properties.end(); ++_iter782) + std::map ::const_iterator _iter790; + for (_iter790 = this->properties.begin(); _iter790 != this->properties.end(); ++_iter790) { - xfer += oprot->writeString(_iter782->first); - xfer += oprot->writeString(_iter782->second); + xfer += oprot->writeString(_iter790->first); + xfer += oprot->writeString(_iter790->second); } xfer += oprot->writeMapEnd(); } @@ -19442,23 +19708,23 @@ void swap(CompactionRequest &a, CompactionRequest &b) { swap(a.__isset, b.__isset); } -CompactionRequest::CompactionRequest(const CompactionRequest& other783) { - dbname = other783.dbname; - tablename = other783.tablename; - partitionname = other783.partitionname; - type = other783.type; - runas = other783.runas; - properties = other783.properties; - __isset = other783.__isset; -} -CompactionRequest& CompactionRequest::operator=(const CompactionRequest& other784) { - dbname = other784.dbname; - tablename = other784.tablename; - partitionname = other784.partitionname; - type = other784.type; - runas = other784.runas; - properties = other784.properties; - __isset = other784.__isset; +CompactionRequest::CompactionRequest(const CompactionRequest& other791) { + dbname = other791.dbname; + tablename = other791.tablename; + partitionname = other791.partitionname; + type = other791.type; + runas = other791.runas; + properties = other791.properties; + __isset = other791.__isset; +} +CompactionRequest& CompactionRequest::operator=(const CompactionRequest& other792) { + dbname = other792.dbname; + tablename = other792.tablename; + partitionname = other792.partitionname; + type = other792.type; + runas = other792.runas; + properties = other792.properties; + __isset = other792.__isset; return *this; } void CompactionRequest::printTo(std::ostream& out) const { @@ -19585,15 +19851,15 @@ void swap(CompactionResponse &a, CompactionResponse &b) { swap(a.accepted, b.accepted); } -CompactionResponse::CompactionResponse(const CompactionResponse& other785) { - id = other785.id; - state = other785.state; - accepted = other785.accepted; +CompactionResponse::CompactionResponse(const CompactionResponse& other793) { + id = other793.id; + state = other793.state; + accepted = other793.accepted; } -CompactionResponse& CompactionResponse::operator=(const CompactionResponse& other786) { - id = other786.id; - state = other786.state; - accepted = other786.accepted; +CompactionResponse& CompactionResponse::operator=(const CompactionResponse& other794) { + id = other794.id; + state = other794.state; + accepted = other794.accepted; return *this; } void CompactionResponse::printTo(std::ostream& out) const { @@ -19654,11 +19920,11 @@ void swap(ShowCompactRequest &a, ShowCompactRequest &b) { (void) b; } -ShowCompactRequest::ShowCompactRequest(const ShowCompactRequest& other787) { - (void) other787; +ShowCompactRequest::ShowCompactRequest(const ShowCompactRequest& other795) { + (void) other795; } -ShowCompactRequest& ShowCompactRequest::operator=(const ShowCompactRequest& other788) { - (void) other788; +ShowCompactRequest& ShowCompactRequest::operator=(const ShowCompactRequest& other796) { + (void) other796; return *this; } void ShowCompactRequest::printTo(std::ostream& out) const { @@ -19784,9 +20050,9 @@ uint32_t ShowCompactResponseElement::read(::apache::thrift::protocol::TProtocol* break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast789; - xfer += iprot->readI32(ecast789); - this->type = (CompactionType::type)ecast789; + int32_t ecast797; + xfer += iprot->readI32(ecast797); + this->type = (CompactionType::type)ecast797; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -19973,37 +20239,37 @@ void swap(ShowCompactResponseElement &a, ShowCompactResponseElement &b) { swap(a.__isset, b.__isset); } -ShowCompactResponseElement::ShowCompactResponseElement(const ShowCompactResponseElement& other790) { - dbname = other790.dbname; - tablename = other790.tablename; - partitionname = other790.partitionname; - type = other790.type; - state = other790.state; - workerid = other790.workerid; - start = other790.start; - runAs = other790.runAs; - hightestTxnId = other790.hightestTxnId; - metaInfo = other790.metaInfo; - endTime = other790.endTime; - hadoopJobId = other790.hadoopJobId; - id = other790.id; - __isset = other790.__isset; -} -ShowCompactResponseElement& ShowCompactResponseElement::operator=(const ShowCompactResponseElement& other791) { - dbname = other791.dbname; - tablename = other791.tablename; - partitionname = other791.partitionname; - type = other791.type; - state = other791.state; - workerid = other791.workerid; - start = other791.start; - runAs = other791.runAs; - hightestTxnId = other791.hightestTxnId; - metaInfo = other791.metaInfo; - endTime = other791.endTime; - hadoopJobId = other791.hadoopJobId; - id = other791.id; - __isset = other791.__isset; +ShowCompactResponseElement::ShowCompactResponseElement(const ShowCompactResponseElement& other798) { + dbname = other798.dbname; + tablename = other798.tablename; + partitionname = other798.partitionname; + type = other798.type; + state = other798.state; + workerid = other798.workerid; + start = other798.start; + runAs = other798.runAs; + hightestTxnId = other798.hightestTxnId; + metaInfo = other798.metaInfo; + endTime = other798.endTime; + hadoopJobId = other798.hadoopJobId; + id = other798.id; + __isset = other798.__isset; +} +ShowCompactResponseElement& ShowCompactResponseElement::operator=(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; return *this; } void ShowCompactResponseElement::printTo(std::ostream& out) const { @@ -20060,14 +20326,14 @@ uint32_t ShowCompactResponse::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->compacts.clear(); - uint32_t _size792; - ::apache::thrift::protocol::TType _etype795; - xfer += iprot->readListBegin(_etype795, _size792); - this->compacts.resize(_size792); - uint32_t _i796; - for (_i796 = 0; _i796 < _size792; ++_i796) + uint32_t _size800; + ::apache::thrift::protocol::TType _etype803; + xfer += iprot->readListBegin(_etype803, _size800); + this->compacts.resize(_size800); + uint32_t _i804; + for (_i804 = 0; _i804 < _size800; ++_i804) { - xfer += this->compacts[_i796].read(iprot); + xfer += this->compacts[_i804].read(iprot); } xfer += iprot->readListEnd(); } @@ -20098,10 +20364,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 _iter797; - for (_iter797 = this->compacts.begin(); _iter797 != this->compacts.end(); ++_iter797) + std::vector ::const_iterator _iter805; + for (_iter805 = this->compacts.begin(); _iter805 != this->compacts.end(); ++_iter805) { - xfer += (*_iter797).write(oprot); + xfer += (*_iter805).write(oprot); } xfer += oprot->writeListEnd(); } @@ -20117,11 +20383,11 @@ void swap(ShowCompactResponse &a, ShowCompactResponse &b) { swap(a.compacts, b.compacts); } -ShowCompactResponse::ShowCompactResponse(const ShowCompactResponse& other798) { - compacts = other798.compacts; +ShowCompactResponse::ShowCompactResponse(const ShowCompactResponse& other806) { + compacts = other806.compacts; } -ShowCompactResponse& ShowCompactResponse::operator=(const ShowCompactResponse& other799) { - compacts = other799.compacts; +ShowCompactResponse& ShowCompactResponse::operator=(const ShowCompactResponse& other807) { + compacts = other807.compacts; return *this; } void ShowCompactResponse::printTo(std::ostream& out) const { @@ -20223,14 +20489,14 @@ uint32_t AddDynamicPartitions::read(::apache::thrift::protocol::TProtocol* iprot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitionnames.clear(); - uint32_t _size800; - ::apache::thrift::protocol::TType _etype803; - xfer += iprot->readListBegin(_etype803, _size800); - this->partitionnames.resize(_size800); - uint32_t _i804; - for (_i804 = 0; _i804 < _size800; ++_i804) + uint32_t _size808; + ::apache::thrift::protocol::TType _etype811; + xfer += iprot->readListBegin(_etype811, _size808); + this->partitionnames.resize(_size808); + uint32_t _i812; + for (_i812 = 0; _i812 < _size808; ++_i812) { - xfer += iprot->readString(this->partitionnames[_i804]); + xfer += iprot->readString(this->partitionnames[_i812]); } xfer += iprot->readListEnd(); } @@ -20241,9 +20507,9 @@ uint32_t AddDynamicPartitions::read(::apache::thrift::protocol::TProtocol* iprot break; case 6: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast805; - xfer += iprot->readI32(ecast805); - this->operationType = (DataOperationType::type)ecast805; + int32_t ecast813; + xfer += iprot->readI32(ecast813); + this->operationType = (DataOperationType::type)ecast813; this->__isset.operationType = true; } else { xfer += iprot->skip(ftype); @@ -20295,10 +20561,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 _iter806; - for (_iter806 = this->partitionnames.begin(); _iter806 != this->partitionnames.end(); ++_iter806) + std::vector ::const_iterator _iter814; + for (_iter814 = this->partitionnames.begin(); _iter814 != this->partitionnames.end(); ++_iter814) { - xfer += oprot->writeString((*_iter806)); + xfer += oprot->writeString((*_iter814)); } xfer += oprot->writeListEnd(); } @@ -20325,23 +20591,23 @@ void swap(AddDynamicPartitions &a, AddDynamicPartitions &b) { swap(a.__isset, b.__isset); } -AddDynamicPartitions::AddDynamicPartitions(const AddDynamicPartitions& other807) { - txnid = other807.txnid; - writeid = other807.writeid; - dbname = other807.dbname; - tablename = other807.tablename; - partitionnames = other807.partitionnames; - operationType = other807.operationType; - __isset = other807.__isset; -} -AddDynamicPartitions& AddDynamicPartitions::operator=(const AddDynamicPartitions& other808) { - txnid = other808.txnid; - writeid = other808.writeid; - dbname = other808.dbname; - tablename = other808.tablename; - partitionnames = other808.partitionnames; - operationType = other808.operationType; - __isset = other808.__isset; +AddDynamicPartitions::AddDynamicPartitions(const AddDynamicPartitions& other815) { + txnid = other815.txnid; + writeid = other815.writeid; + dbname = other815.dbname; + tablename = other815.tablename; + partitionnames = other815.partitionnames; + operationType = other815.operationType; + __isset = other815.__isset; +} +AddDynamicPartitions& AddDynamicPartitions::operator=(const AddDynamicPartitions& other816) { + txnid = other816.txnid; + writeid = other816.writeid; + dbname = other816.dbname; + tablename = other816.tablename; + partitionnames = other816.partitionnames; + operationType = other816.operationType; + __isset = other816.__isset; return *this; } void AddDynamicPartitions::printTo(std::ostream& out) const { @@ -20524,23 +20790,23 @@ void swap(BasicTxnInfo &a, BasicTxnInfo &b) { swap(a.__isset, b.__isset); } -BasicTxnInfo::BasicTxnInfo(const BasicTxnInfo& other809) { - isnull = other809.isnull; - time = other809.time; - txnid = other809.txnid; - dbname = other809.dbname; - tablename = other809.tablename; - partitionname = other809.partitionname; - __isset = other809.__isset; -} -BasicTxnInfo& BasicTxnInfo::operator=(const BasicTxnInfo& other810) { - isnull = other810.isnull; - time = other810.time; - txnid = other810.txnid; - dbname = other810.dbname; - tablename = other810.tablename; - partitionname = other810.partitionname; - __isset = other810.__isset; +BasicTxnInfo::BasicTxnInfo(const BasicTxnInfo& other817) { + isnull = other817.isnull; + time = other817.time; + txnid = other817.txnid; + dbname = other817.dbname; + tablename = other817.tablename; + partitionname = other817.partitionname; + __isset = other817.__isset; +} +BasicTxnInfo& BasicTxnInfo::operator=(const BasicTxnInfo& other818) { + isnull = other818.isnull; + time = other818.time; + txnid = other818.txnid; + dbname = other818.dbname; + tablename = other818.tablename; + partitionname = other818.partitionname; + __isset = other818.__isset; return *this; } void BasicTxnInfo::printTo(std::ostream& out) const { @@ -20634,15 +20900,15 @@ uint32_t CreationMetadata::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_SET) { { this->tablesUsed.clear(); - uint32_t _size811; - ::apache::thrift::protocol::TType _etype814; - xfer += iprot->readSetBegin(_etype814, _size811); - uint32_t _i815; - for (_i815 = 0; _i815 < _size811; ++_i815) + uint32_t _size819; + ::apache::thrift::protocol::TType _etype822; + xfer += iprot->readSetBegin(_etype822, _size819); + uint32_t _i823; + for (_i823 = 0; _i823 < _size819; ++_i823) { - std::string _elem816; - xfer += iprot->readString(_elem816); - this->tablesUsed.insert(_elem816); + std::string _elem824; + xfer += iprot->readString(_elem824); + this->tablesUsed.insert(_elem824); } xfer += iprot->readSetEnd(); } @@ -20699,10 +20965,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 _iter817; - for (_iter817 = this->tablesUsed.begin(); _iter817 != this->tablesUsed.end(); ++_iter817) + std::set ::const_iterator _iter825; + for (_iter825 = this->tablesUsed.begin(); _iter825 != this->tablesUsed.end(); ++_iter825) { - xfer += oprot->writeString((*_iter817)); + xfer += oprot->writeString((*_iter825)); } xfer += oprot->writeSetEnd(); } @@ -20728,21 +20994,21 @@ void swap(CreationMetadata &a, CreationMetadata &b) { swap(a.__isset, b.__isset); } -CreationMetadata::CreationMetadata(const CreationMetadata& other818) { - catName = other818.catName; - dbName = other818.dbName; - tblName = other818.tblName; - tablesUsed = other818.tablesUsed; - validTxnList = other818.validTxnList; - __isset = other818.__isset; -} -CreationMetadata& CreationMetadata::operator=(const CreationMetadata& other819) { - catName = other819.catName; - dbName = other819.dbName; - tblName = other819.tblName; - tablesUsed = other819.tablesUsed; - validTxnList = other819.validTxnList; - __isset = other819.__isset; +CreationMetadata::CreationMetadata(const CreationMetadata& other826) { + catName = other826.catName; + dbName = other826.dbName; + tblName = other826.tblName; + tablesUsed = other826.tablesUsed; + validTxnList = other826.validTxnList; + __isset = other826.__isset; +} +CreationMetadata& CreationMetadata::operator=(const CreationMetadata& other827) { + catName = other827.catName; + dbName = other827.dbName; + tblName = other827.tblName; + tablesUsed = other827.tablesUsed; + validTxnList = other827.validTxnList; + __isset = other827.__isset; return *this; } void CreationMetadata::printTo(std::ostream& out) const { @@ -20848,15 +21114,15 @@ void swap(NotificationEventRequest &a, NotificationEventRequest &b) { swap(a.__isset, b.__isset); } -NotificationEventRequest::NotificationEventRequest(const NotificationEventRequest& other820) { - lastEvent = other820.lastEvent; - maxEvents = other820.maxEvents; - __isset = other820.__isset; +NotificationEventRequest::NotificationEventRequest(const NotificationEventRequest& other828) { + lastEvent = other828.lastEvent; + maxEvents = other828.maxEvents; + __isset = other828.__isset; } -NotificationEventRequest& NotificationEventRequest::operator=(const NotificationEventRequest& other821) { - lastEvent = other821.lastEvent; - maxEvents = other821.maxEvents; - __isset = other821.__isset; +NotificationEventRequest& NotificationEventRequest::operator=(const NotificationEventRequest& other829) { + lastEvent = other829.lastEvent; + maxEvents = other829.maxEvents; + __isset = other829.__isset; return *this; } void NotificationEventRequest::printTo(std::ostream& out) const { @@ -21076,27 +21342,27 @@ void swap(NotificationEvent &a, NotificationEvent &b) { swap(a.__isset, b.__isset); } -NotificationEvent::NotificationEvent(const NotificationEvent& other822) { - eventId = other822.eventId; - eventTime = other822.eventTime; - eventType = other822.eventType; - dbName = other822.dbName; - tableName = other822.tableName; - message = other822.message; - messageFormat = other822.messageFormat; - catName = other822.catName; - __isset = other822.__isset; -} -NotificationEvent& NotificationEvent::operator=(const NotificationEvent& other823) { - eventId = other823.eventId; - eventTime = other823.eventTime; - eventType = other823.eventType; - dbName = other823.dbName; - tableName = other823.tableName; - message = other823.message; - messageFormat = other823.messageFormat; - catName = other823.catName; - __isset = other823.__isset; +NotificationEvent::NotificationEvent(const NotificationEvent& other830) { + eventId = other830.eventId; + eventTime = other830.eventTime; + eventType = other830.eventType; + dbName = other830.dbName; + tableName = other830.tableName; + message = other830.message; + messageFormat = other830.messageFormat; + catName = other830.catName; + __isset = other830.__isset; +} +NotificationEvent& NotificationEvent::operator=(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; return *this; } void NotificationEvent::printTo(std::ostream& out) const { @@ -21148,14 +21414,14 @@ uint32_t NotificationEventResponse::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { this->events.clear(); - uint32_t _size824; - ::apache::thrift::protocol::TType _etype827; - xfer += iprot->readListBegin(_etype827, _size824); - this->events.resize(_size824); - uint32_t _i828; - for (_i828 = 0; _i828 < _size824; ++_i828) + uint32_t _size832; + ::apache::thrift::protocol::TType _etype835; + xfer += iprot->readListBegin(_etype835, _size832); + this->events.resize(_size832); + uint32_t _i836; + for (_i836 = 0; _i836 < _size832; ++_i836) { - xfer += this->events[_i828].read(iprot); + xfer += this->events[_i836].read(iprot); } xfer += iprot->readListEnd(); } @@ -21186,10 +21452,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 _iter829; - for (_iter829 = this->events.begin(); _iter829 != this->events.end(); ++_iter829) + std::vector ::const_iterator _iter837; + for (_iter837 = this->events.begin(); _iter837 != this->events.end(); ++_iter837) { - xfer += (*_iter829).write(oprot); + xfer += (*_iter837).write(oprot); } xfer += oprot->writeListEnd(); } @@ -21205,11 +21471,11 @@ void swap(NotificationEventResponse &a, NotificationEventResponse &b) { swap(a.events, b.events); } -NotificationEventResponse::NotificationEventResponse(const NotificationEventResponse& other830) { - events = other830.events; +NotificationEventResponse::NotificationEventResponse(const NotificationEventResponse& other838) { + events = other838.events; } -NotificationEventResponse& NotificationEventResponse::operator=(const NotificationEventResponse& other831) { - events = other831.events; +NotificationEventResponse& NotificationEventResponse::operator=(const NotificationEventResponse& other839) { + events = other839.events; return *this; } void NotificationEventResponse::printTo(std::ostream& out) const { @@ -21291,11 +21557,11 @@ void swap(CurrentNotificationEventId &a, CurrentNotificationEventId &b) { swap(a.eventId, b.eventId); } -CurrentNotificationEventId::CurrentNotificationEventId(const CurrentNotificationEventId& other832) { - eventId = other832.eventId; +CurrentNotificationEventId::CurrentNotificationEventId(const CurrentNotificationEventId& other840) { + eventId = other840.eventId; } -CurrentNotificationEventId& CurrentNotificationEventId::operator=(const CurrentNotificationEventId& other833) { - eventId = other833.eventId; +CurrentNotificationEventId& CurrentNotificationEventId::operator=(const CurrentNotificationEventId& other841) { + eventId = other841.eventId; return *this; } void CurrentNotificationEventId::printTo(std::ostream& out) const { @@ -21417,17 +21683,17 @@ void swap(NotificationEventsCountRequest &a, NotificationEventsCountRequest &b) swap(a.__isset, b.__isset); } -NotificationEventsCountRequest::NotificationEventsCountRequest(const NotificationEventsCountRequest& other834) { - fromEventId = other834.fromEventId; - dbName = other834.dbName; - catName = other834.catName; - __isset = other834.__isset; +NotificationEventsCountRequest::NotificationEventsCountRequest(const NotificationEventsCountRequest& other842) { + fromEventId = other842.fromEventId; + dbName = other842.dbName; + catName = other842.catName; + __isset = other842.__isset; } -NotificationEventsCountRequest& NotificationEventsCountRequest::operator=(const NotificationEventsCountRequest& other835) { - fromEventId = other835.fromEventId; - dbName = other835.dbName; - catName = other835.catName; - __isset = other835.__isset; +NotificationEventsCountRequest& NotificationEventsCountRequest::operator=(const NotificationEventsCountRequest& other843) { + fromEventId = other843.fromEventId; + dbName = other843.dbName; + catName = other843.catName; + __isset = other843.__isset; return *this; } void NotificationEventsCountRequest::printTo(std::ostream& out) const { @@ -21511,11 +21777,11 @@ void swap(NotificationEventsCountResponse &a, NotificationEventsCountResponse &b swap(a.eventsCount, b.eventsCount); } -NotificationEventsCountResponse::NotificationEventsCountResponse(const NotificationEventsCountResponse& other836) { - eventsCount = other836.eventsCount; +NotificationEventsCountResponse::NotificationEventsCountResponse(const NotificationEventsCountResponse& other844) { + eventsCount = other844.eventsCount; } -NotificationEventsCountResponse& NotificationEventsCountResponse::operator=(const NotificationEventsCountResponse& other837) { - eventsCount = other837.eventsCount; +NotificationEventsCountResponse& NotificationEventsCountResponse::operator=(const NotificationEventsCountResponse& other845) { + eventsCount = other845.eventsCount; return *this; } void NotificationEventsCountResponse::printTo(std::ostream& out) const { @@ -21544,6 +21810,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); @@ -21578,14 +21849,14 @@ uint32_t InsertEventRequestData::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->filesAdded.clear(); - uint32_t _size838; - ::apache::thrift::protocol::TType _etype841; - xfer += iprot->readListBegin(_etype841, _size838); - this->filesAdded.resize(_size838); - uint32_t _i842; - for (_i842 = 0; _i842 < _size838; ++_i842) + uint32_t _size846; + ::apache::thrift::protocol::TType _etype849; + xfer += iprot->readListBegin(_etype849, _size846); + this->filesAdded.resize(_size846); + uint32_t _i850; + for (_i850 = 0; _i850 < _size846; ++_i850) { - xfer += iprot->readString(this->filesAdded[_i842]); + xfer += iprot->readString(this->filesAdded[_i850]); } xfer += iprot->readListEnd(); } @@ -21598,14 +21869,14 @@ uint32_t InsertEventRequestData::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->filesAddedChecksum.clear(); - uint32_t _size843; - ::apache::thrift::protocol::TType _etype846; - xfer += iprot->readListBegin(_etype846, _size843); - this->filesAddedChecksum.resize(_size843); - uint32_t _i847; - for (_i847 = 0; _i847 < _size843; ++_i847) + uint32_t _size851; + ::apache::thrift::protocol::TType _etype854; + xfer += iprot->readListBegin(_etype854, _size851); + this->filesAddedChecksum.resize(_size851); + uint32_t _i855; + for (_i855 = 0; _i855 < _size851; ++_i855) { - xfer += iprot->readString(this->filesAddedChecksum[_i847]); + xfer += iprot->readString(this->filesAddedChecksum[_i855]); } xfer += iprot->readListEnd(); } @@ -21614,6 +21885,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 _size856; + ::apache::thrift::protocol::TType _etype859; + xfer += iprot->readListBegin(_etype859, _size856); + this->subDirectoryList.resize(_size856); + uint32_t _i860; + for (_i860 = 0; _i860 < _size856; ++_i860) + { + xfer += iprot->readString(this->subDirectoryList[_i860]); + } + xfer += iprot->readListEnd(); + } + this->__isset.subDirectoryList = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -21641,10 +21932,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 _iter848; - for (_iter848 = this->filesAdded.begin(); _iter848 != this->filesAdded.end(); ++_iter848) + std::vector ::const_iterator _iter861; + for (_iter861 = this->filesAdded.begin(); _iter861 != this->filesAdded.end(); ++_iter861) { - xfer += oprot->writeString((*_iter848)); + xfer += oprot->writeString((*_iter861)); } xfer += oprot->writeListEnd(); } @@ -21654,10 +21945,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 _iter849; - for (_iter849 = this->filesAddedChecksum.begin(); _iter849 != this->filesAddedChecksum.end(); ++_iter849) + std::vector ::const_iterator _iter862; + for (_iter862 = this->filesAddedChecksum.begin(); _iter862 != this->filesAddedChecksum.end(); ++_iter862) { - xfer += oprot->writeString((*_iter849)); + xfer += oprot->writeString((*_iter862)); + } + 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 _iter863; + for (_iter863 = this->subDirectoryList.begin(); _iter863 != this->subDirectoryList.end(); ++_iter863) + { + xfer += oprot->writeString((*_iter863)); } xfer += oprot->writeListEnd(); } @@ -21673,20 +21977,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& other850) { - replace = other850.replace; - filesAdded = other850.filesAdded; - filesAddedChecksum = other850.filesAddedChecksum; - __isset = other850.__isset; +InsertEventRequestData::InsertEventRequestData(const InsertEventRequestData& other864) { + replace = other864.replace; + filesAdded = other864.filesAdded; + filesAddedChecksum = other864.filesAddedChecksum; + subDirectoryList = other864.subDirectoryList; + __isset = other864.__isset; } -InsertEventRequestData& InsertEventRequestData::operator=(const InsertEventRequestData& other851) { - replace = other851.replace; - filesAdded = other851.filesAdded; - filesAddedChecksum = other851.filesAddedChecksum; - __isset = other851.__isset; +InsertEventRequestData& InsertEventRequestData::operator=(const InsertEventRequestData& other865) { + replace = other865.replace; + filesAdded = other865.filesAdded; + filesAddedChecksum = other865.filesAddedChecksum; + subDirectoryList = other865.subDirectoryList; + __isset = other865.__isset; return *this; } void InsertEventRequestData::printTo(std::ostream& out) const { @@ -21695,6 +22002,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 << ")"; } @@ -21768,13 +22076,13 @@ void swap(FireEventRequestData &a, FireEventRequestData &b) { swap(a.__isset, b.__isset); } -FireEventRequestData::FireEventRequestData(const FireEventRequestData& other852) { - insertData = other852.insertData; - __isset = other852.__isset; +FireEventRequestData::FireEventRequestData(const FireEventRequestData& other866) { + insertData = other866.insertData; + __isset = other866.__isset; } -FireEventRequestData& FireEventRequestData::operator=(const FireEventRequestData& other853) { - insertData = other853.insertData; - __isset = other853.__isset; +FireEventRequestData& FireEventRequestData::operator=(const FireEventRequestData& other867) { + insertData = other867.insertData; + __isset = other867.__isset; return *this; } void FireEventRequestData::printTo(std::ostream& out) const { @@ -21789,35 +22097,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 _size868; + ::apache::thrift::protocol::TType _etype871; + xfer += iprot->readListBegin(_etype871, _size868); + this->partitionVals.resize(_size868); + uint32_t _i872; + for (_i872 = 0; _i872 < _size868; ++_i872) + { + xfer += iprot->readString(this->partitionVals[_i872]); + } + 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 _iter873; + for (_iter873 = this->partitionVals.begin(); _iter873 != this->partitionVals.end(); ++_iter873) + { + xfer += oprot->writeString((*_iter873)); + } + 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& other874) { + successful = other874.successful; + data = other874.data; + dbName = other874.dbName; + tableName = other874.tableName; + partitionVals = other874.partitionVals; + catName = other874.catName; + __isset = other874.__isset; +} +FireEventRequest& FireEventRequest::operator=(const FireEventRequest& other875) { + successful = other875.successful; + data = other875.data; + dbName = other875.dbName; + tableName = other875.tableName; + partitionVals = other875.partitionVals; + catName = other875.catName; + __isset = other875.__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& other876) { + (void) other876; +} +FireEventResponse& FireEventResponse::operator=(const FireEventResponse& other877) { + (void) other877; + 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; @@ -21829,8 +22416,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) { @@ -21841,49 +22431,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 _size854; - ::apache::thrift::protocol::TType _etype857; - xfer += iprot->readListBegin(_etype857, _size854); - this->partitionVals.resize(_size854); - uint32_t _i858; - for (_i858 = 0; _i858 < _size854; ++_i858) + uint32_t _size878; + ::apache::thrift::protocol::TType _etype881; + xfer += iprot->readListBegin(_etype881, _size878); + this->partitionVals.resize(_size878); + uint32_t _i882; + for (_i882 = 0; _i882 < _size878; ++_i882) { - xfer += iprot->readString(this->partitionVals[_i858]); + xfer += iprot->readString(this->partitionVals[_i882]); } xfer += iprot->readListEnd(); } @@ -21892,14 +22490,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; @@ -21909,107 +22499,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 _iter859; - for (_iter859 = this->partitionVals.begin(); _iter859 != this->partitionVals.end(); ++_iter859) + std::vector ::const_iterator _iter883; + for (_iter883 = this->partitionVals.begin(); _iter883 != this->partitionVals.end(); ++_iter883) { - xfer += oprot->writeString((*_iter859)); + xfer += oprot->writeString((*_iter883)); } 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& other860) { - successful = other860.successful; - data = other860.data; - dbName = other860.dbName; - tableName = other860.tableName; - partitionVals = other860.partitionVals; - catName = other860.catName; - __isset = other860.__isset; -} -FireEventRequest& FireEventRequest::operator=(const FireEventRequest& other861) { - successful = other861.successful; - data = other861.data; - dbName = other861.dbName; - tableName = other861.tableName; - partitionVals = other861.partitionVals; - catName = other861.catName; - __isset = other861.__isset; +WriteNotificationLogRequest::WriteNotificationLogRequest(const WriteNotificationLogRequest& other884) { + txnId = other884.txnId; + writeId = other884.writeId; + db = other884.db; + table = other884.table; + fileInfo = other884.fileInfo; + partitionVals = other884.partitionVals; + __isset = other884.__isset; +} +WriteNotificationLogRequest& WriteNotificationLogRequest::operator=(const WriteNotificationLogRequest& other885) { + txnId = other885.txnId; + writeId = other885.writeId; + db = other885.db; + table = other885.table; + fileInfo = other885.fileInfo; + partitionVals = other885.partitionVals; + __isset = other885.__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; @@ -22037,32 +22630,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& other862) { - (void) other862; +WriteNotificationLogResponse::WriteNotificationLogResponse(const WriteNotificationLogResponse& other886) { + (void) other886; } -FireEventResponse& FireEventResponse::operator=(const FireEventResponse& other863) { - (void) other863; +WriteNotificationLogResponse& WriteNotificationLogResponse::operator=(const WriteNotificationLogResponse& other887) { + (void) other887; 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 << ")"; } @@ -22157,15 +22750,15 @@ void swap(MetadataPpdResult &a, MetadataPpdResult &b) { swap(a.__isset, b.__isset); } -MetadataPpdResult::MetadataPpdResult(const MetadataPpdResult& other864) { - metadata = other864.metadata; - includeBitset = other864.includeBitset; - __isset = other864.__isset; +MetadataPpdResult::MetadataPpdResult(const MetadataPpdResult& other888) { + metadata = other888.metadata; + includeBitset = other888.includeBitset; + __isset = other888.__isset; } -MetadataPpdResult& MetadataPpdResult::operator=(const MetadataPpdResult& other865) { - metadata = other865.metadata; - includeBitset = other865.includeBitset; - __isset = other865.__isset; +MetadataPpdResult& MetadataPpdResult::operator=(const MetadataPpdResult& other889) { + metadata = other889.metadata; + includeBitset = other889.includeBitset; + __isset = other889.__isset; return *this; } void MetadataPpdResult::printTo(std::ostream& out) const { @@ -22216,17 +22809,17 @@ uint32_t GetFileMetadataByExprResult::read(::apache::thrift::protocol::TProtocol if (ftype == ::apache::thrift::protocol::T_MAP) { { this->metadata.clear(); - uint32_t _size866; - ::apache::thrift::protocol::TType _ktype867; - ::apache::thrift::protocol::TType _vtype868; - xfer += iprot->readMapBegin(_ktype867, _vtype868, _size866); - uint32_t _i870; - for (_i870 = 0; _i870 < _size866; ++_i870) + uint32_t _size890; + ::apache::thrift::protocol::TType _ktype891; + ::apache::thrift::protocol::TType _vtype892; + xfer += iprot->readMapBegin(_ktype891, _vtype892, _size890); + uint32_t _i894; + for (_i894 = 0; _i894 < _size890; ++_i894) { - int64_t _key871; - xfer += iprot->readI64(_key871); - MetadataPpdResult& _val872 = this->metadata[_key871]; - xfer += _val872.read(iprot); + int64_t _key895; + xfer += iprot->readI64(_key895); + MetadataPpdResult& _val896 = this->metadata[_key895]; + xfer += _val896.read(iprot); } xfer += iprot->readMapEnd(); } @@ -22267,11 +22860,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 _iter873; - for (_iter873 = this->metadata.begin(); _iter873 != this->metadata.end(); ++_iter873) + std::map ::const_iterator _iter897; + for (_iter897 = this->metadata.begin(); _iter897 != this->metadata.end(); ++_iter897) { - xfer += oprot->writeI64(_iter873->first); - xfer += _iter873->second.write(oprot); + xfer += oprot->writeI64(_iter897->first); + xfer += _iter897->second.write(oprot); } xfer += oprot->writeMapEnd(); } @@ -22292,13 +22885,13 @@ void swap(GetFileMetadataByExprResult &a, GetFileMetadataByExprResult &b) { swap(a.isSupported, b.isSupported); } -GetFileMetadataByExprResult::GetFileMetadataByExprResult(const GetFileMetadataByExprResult& other874) { - metadata = other874.metadata; - isSupported = other874.isSupported; +GetFileMetadataByExprResult::GetFileMetadataByExprResult(const GetFileMetadataByExprResult& other898) { + metadata = other898.metadata; + isSupported = other898.isSupported; } -GetFileMetadataByExprResult& GetFileMetadataByExprResult::operator=(const GetFileMetadataByExprResult& other875) { - metadata = other875.metadata; - isSupported = other875.isSupported; +GetFileMetadataByExprResult& GetFileMetadataByExprResult::operator=(const GetFileMetadataByExprResult& other899) { + metadata = other899.metadata; + isSupported = other899.isSupported; return *this; } void GetFileMetadataByExprResult::printTo(std::ostream& out) const { @@ -22359,14 +22952,14 @@ uint32_t GetFileMetadataByExprRequest::read(::apache::thrift::protocol::TProtoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size876; - ::apache::thrift::protocol::TType _etype879; - xfer += iprot->readListBegin(_etype879, _size876); - this->fileIds.resize(_size876); - uint32_t _i880; - for (_i880 = 0; _i880 < _size876; ++_i880) + uint32_t _size900; + ::apache::thrift::protocol::TType _etype903; + xfer += iprot->readListBegin(_etype903, _size900); + this->fileIds.resize(_size900); + uint32_t _i904; + for (_i904 = 0; _i904 < _size900; ++_i904) { - xfer += iprot->readI64(this->fileIds[_i880]); + xfer += iprot->readI64(this->fileIds[_i904]); } xfer += iprot->readListEnd(); } @@ -22393,9 +22986,9 @@ uint32_t GetFileMetadataByExprRequest::read(::apache::thrift::protocol::TProtoco break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast881; - xfer += iprot->readI32(ecast881); - this->type = (FileMetadataExprType::type)ecast881; + int32_t ecast905; + xfer += iprot->readI32(ecast905); + this->type = (FileMetadataExprType::type)ecast905; this->__isset.type = true; } else { xfer += iprot->skip(ftype); @@ -22425,10 +23018,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 _iter882; - for (_iter882 = this->fileIds.begin(); _iter882 != this->fileIds.end(); ++_iter882) + std::vector ::const_iterator _iter906; + for (_iter906 = this->fileIds.begin(); _iter906 != this->fileIds.end(); ++_iter906) { - xfer += oprot->writeI64((*_iter882)); + xfer += oprot->writeI64((*_iter906)); } xfer += oprot->writeListEnd(); } @@ -22462,19 +23055,19 @@ void swap(GetFileMetadataByExprRequest &a, GetFileMetadataByExprRequest &b) { swap(a.__isset, b.__isset); } -GetFileMetadataByExprRequest::GetFileMetadataByExprRequest(const GetFileMetadataByExprRequest& other883) { - fileIds = other883.fileIds; - expr = other883.expr; - doGetFooters = other883.doGetFooters; - type = other883.type; - __isset = other883.__isset; +GetFileMetadataByExprRequest::GetFileMetadataByExprRequest(const GetFileMetadataByExprRequest& other907) { + fileIds = other907.fileIds; + expr = other907.expr; + doGetFooters = other907.doGetFooters; + type = other907.type; + __isset = other907.__isset; } -GetFileMetadataByExprRequest& GetFileMetadataByExprRequest::operator=(const GetFileMetadataByExprRequest& other884) { - fileIds = other884.fileIds; - expr = other884.expr; - doGetFooters = other884.doGetFooters; - type = other884.type; - __isset = other884.__isset; +GetFileMetadataByExprRequest& GetFileMetadataByExprRequest::operator=(const GetFileMetadataByExprRequest& other908) { + fileIds = other908.fileIds; + expr = other908.expr; + doGetFooters = other908.doGetFooters; + type = other908.type; + __isset = other908.__isset; return *this; } void GetFileMetadataByExprRequest::printTo(std::ostream& out) const { @@ -22527,17 +23120,17 @@ uint32_t GetFileMetadataResult::read(::apache::thrift::protocol::TProtocol* ipro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->metadata.clear(); - uint32_t _size885; - ::apache::thrift::protocol::TType _ktype886; - ::apache::thrift::protocol::TType _vtype887; - xfer += iprot->readMapBegin(_ktype886, _vtype887, _size885); - uint32_t _i889; - for (_i889 = 0; _i889 < _size885; ++_i889) + uint32_t _size909; + ::apache::thrift::protocol::TType _ktype910; + ::apache::thrift::protocol::TType _vtype911; + xfer += iprot->readMapBegin(_ktype910, _vtype911, _size909); + uint32_t _i913; + for (_i913 = 0; _i913 < _size909; ++_i913) { - int64_t _key890; - xfer += iprot->readI64(_key890); - std::string& _val891 = this->metadata[_key890]; - xfer += iprot->readBinary(_val891); + int64_t _key914; + xfer += iprot->readI64(_key914); + std::string& _val915 = this->metadata[_key914]; + xfer += iprot->readBinary(_val915); } xfer += iprot->readMapEnd(); } @@ -22578,11 +23171,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 _iter892; - for (_iter892 = this->metadata.begin(); _iter892 != this->metadata.end(); ++_iter892) + std::map ::const_iterator _iter916; + for (_iter916 = this->metadata.begin(); _iter916 != this->metadata.end(); ++_iter916) { - xfer += oprot->writeI64(_iter892->first); - xfer += oprot->writeBinary(_iter892->second); + xfer += oprot->writeI64(_iter916->first); + xfer += oprot->writeBinary(_iter916->second); } xfer += oprot->writeMapEnd(); } @@ -22603,13 +23196,13 @@ void swap(GetFileMetadataResult &a, GetFileMetadataResult &b) { swap(a.isSupported, b.isSupported); } -GetFileMetadataResult::GetFileMetadataResult(const GetFileMetadataResult& other893) { - metadata = other893.metadata; - isSupported = other893.isSupported; +GetFileMetadataResult::GetFileMetadataResult(const GetFileMetadataResult& other917) { + metadata = other917.metadata; + isSupported = other917.isSupported; } -GetFileMetadataResult& GetFileMetadataResult::operator=(const GetFileMetadataResult& other894) { - metadata = other894.metadata; - isSupported = other894.isSupported; +GetFileMetadataResult& GetFileMetadataResult::operator=(const GetFileMetadataResult& other918) { + metadata = other918.metadata; + isSupported = other918.isSupported; return *this; } void GetFileMetadataResult::printTo(std::ostream& out) const { @@ -22655,14 +23248,14 @@ uint32_t GetFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size895; - ::apache::thrift::protocol::TType _etype898; - xfer += iprot->readListBegin(_etype898, _size895); - this->fileIds.resize(_size895); - uint32_t _i899; - for (_i899 = 0; _i899 < _size895; ++_i899) + uint32_t _size919; + ::apache::thrift::protocol::TType _etype922; + xfer += iprot->readListBegin(_etype922, _size919); + this->fileIds.resize(_size919); + uint32_t _i923; + for (_i923 = 0; _i923 < _size919; ++_i923) { - xfer += iprot->readI64(this->fileIds[_i899]); + xfer += iprot->readI64(this->fileIds[_i923]); } xfer += iprot->readListEnd(); } @@ -22693,10 +23286,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 _iter900; - for (_iter900 = this->fileIds.begin(); _iter900 != this->fileIds.end(); ++_iter900) + std::vector ::const_iterator _iter924; + for (_iter924 = this->fileIds.begin(); _iter924 != this->fileIds.end(); ++_iter924) { - xfer += oprot->writeI64((*_iter900)); + xfer += oprot->writeI64((*_iter924)); } xfer += oprot->writeListEnd(); } @@ -22712,11 +23305,11 @@ void swap(GetFileMetadataRequest &a, GetFileMetadataRequest &b) { swap(a.fileIds, b.fileIds); } -GetFileMetadataRequest::GetFileMetadataRequest(const GetFileMetadataRequest& other901) { - fileIds = other901.fileIds; +GetFileMetadataRequest::GetFileMetadataRequest(const GetFileMetadataRequest& other925) { + fileIds = other925.fileIds; } -GetFileMetadataRequest& GetFileMetadataRequest::operator=(const GetFileMetadataRequest& other902) { - fileIds = other902.fileIds; +GetFileMetadataRequest& GetFileMetadataRequest::operator=(const GetFileMetadataRequest& other926) { + fileIds = other926.fileIds; return *this; } void GetFileMetadataRequest::printTo(std::ostream& out) const { @@ -22775,11 +23368,11 @@ void swap(PutFileMetadataResult &a, PutFileMetadataResult &b) { (void) b; } -PutFileMetadataResult::PutFileMetadataResult(const PutFileMetadataResult& other903) { - (void) other903; +PutFileMetadataResult::PutFileMetadataResult(const PutFileMetadataResult& other927) { + (void) other927; } -PutFileMetadataResult& PutFileMetadataResult::operator=(const PutFileMetadataResult& other904) { - (void) other904; +PutFileMetadataResult& PutFileMetadataResult::operator=(const PutFileMetadataResult& other928) { + (void) other928; return *this; } void PutFileMetadataResult::printTo(std::ostream& out) const { @@ -22833,14 +23426,14 @@ uint32_t PutFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size905; - ::apache::thrift::protocol::TType _etype908; - xfer += iprot->readListBegin(_etype908, _size905); - this->fileIds.resize(_size905); - uint32_t _i909; - for (_i909 = 0; _i909 < _size905; ++_i909) + uint32_t _size929; + ::apache::thrift::protocol::TType _etype932; + xfer += iprot->readListBegin(_etype932, _size929); + this->fileIds.resize(_size929); + uint32_t _i933; + for (_i933 = 0; _i933 < _size929; ++_i933) { - xfer += iprot->readI64(this->fileIds[_i909]); + xfer += iprot->readI64(this->fileIds[_i933]); } xfer += iprot->readListEnd(); } @@ -22853,14 +23446,14 @@ uint32_t PutFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->metadata.clear(); - uint32_t _size910; - ::apache::thrift::protocol::TType _etype913; - xfer += iprot->readListBegin(_etype913, _size910); - this->metadata.resize(_size910); - uint32_t _i914; - for (_i914 = 0; _i914 < _size910; ++_i914) + uint32_t _size934; + ::apache::thrift::protocol::TType _etype937; + xfer += iprot->readListBegin(_etype937, _size934); + this->metadata.resize(_size934); + uint32_t _i938; + for (_i938 = 0; _i938 < _size934; ++_i938) { - xfer += iprot->readBinary(this->metadata[_i914]); + xfer += iprot->readBinary(this->metadata[_i938]); } xfer += iprot->readListEnd(); } @@ -22871,9 +23464,9 @@ uint32_t PutFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast915; - xfer += iprot->readI32(ecast915); - this->type = (FileMetadataExprType::type)ecast915; + int32_t ecast939; + xfer += iprot->readI32(ecast939); + this->type = (FileMetadataExprType::type)ecast939; this->__isset.type = true; } else { xfer += iprot->skip(ftype); @@ -22903,10 +23496,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 _iter916; - for (_iter916 = this->fileIds.begin(); _iter916 != this->fileIds.end(); ++_iter916) + std::vector ::const_iterator _iter940; + for (_iter940 = this->fileIds.begin(); _iter940 != this->fileIds.end(); ++_iter940) { - xfer += oprot->writeI64((*_iter916)); + xfer += oprot->writeI64((*_iter940)); } xfer += oprot->writeListEnd(); } @@ -22915,10 +23508,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 _iter917; - for (_iter917 = this->metadata.begin(); _iter917 != this->metadata.end(); ++_iter917) + std::vector ::const_iterator _iter941; + for (_iter941 = this->metadata.begin(); _iter941 != this->metadata.end(); ++_iter941) { - xfer += oprot->writeBinary((*_iter917)); + xfer += oprot->writeBinary((*_iter941)); } xfer += oprot->writeListEnd(); } @@ -22942,17 +23535,17 @@ void swap(PutFileMetadataRequest &a, PutFileMetadataRequest &b) { swap(a.__isset, b.__isset); } -PutFileMetadataRequest::PutFileMetadataRequest(const PutFileMetadataRequest& other918) { - fileIds = other918.fileIds; - metadata = other918.metadata; - type = other918.type; - __isset = other918.__isset; -} -PutFileMetadataRequest& PutFileMetadataRequest::operator=(const PutFileMetadataRequest& other919) { - fileIds = other919.fileIds; - metadata = other919.metadata; - type = other919.type; - __isset = other919.__isset; +PutFileMetadataRequest::PutFileMetadataRequest(const PutFileMetadataRequest& other942) { + fileIds = other942.fileIds; + metadata = other942.metadata; + type = other942.type; + __isset = other942.__isset; +} +PutFileMetadataRequest& PutFileMetadataRequest::operator=(const PutFileMetadataRequest& other943) { + fileIds = other943.fileIds; + metadata = other943.metadata; + type = other943.type; + __isset = other943.__isset; return *this; } void PutFileMetadataRequest::printTo(std::ostream& out) const { @@ -23013,11 +23606,11 @@ void swap(ClearFileMetadataResult &a, ClearFileMetadataResult &b) { (void) b; } -ClearFileMetadataResult::ClearFileMetadataResult(const ClearFileMetadataResult& other920) { - (void) other920; +ClearFileMetadataResult::ClearFileMetadataResult(const ClearFileMetadataResult& other944) { + (void) other944; } -ClearFileMetadataResult& ClearFileMetadataResult::operator=(const ClearFileMetadataResult& other921) { - (void) other921; +ClearFileMetadataResult& ClearFileMetadataResult::operator=(const ClearFileMetadataResult& other945) { + (void) other945; return *this; } void ClearFileMetadataResult::printTo(std::ostream& out) const { @@ -23061,14 +23654,14 @@ uint32_t ClearFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* i if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size922; - ::apache::thrift::protocol::TType _etype925; - xfer += iprot->readListBegin(_etype925, _size922); - this->fileIds.resize(_size922); - uint32_t _i926; - for (_i926 = 0; _i926 < _size922; ++_i926) + uint32_t _size946; + ::apache::thrift::protocol::TType _etype949; + xfer += iprot->readListBegin(_etype949, _size946); + this->fileIds.resize(_size946); + uint32_t _i950; + for (_i950 = 0; _i950 < _size946; ++_i950) { - xfer += iprot->readI64(this->fileIds[_i926]); + xfer += iprot->readI64(this->fileIds[_i950]); } xfer += iprot->readListEnd(); } @@ -23099,10 +23692,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 _iter927; - for (_iter927 = this->fileIds.begin(); _iter927 != this->fileIds.end(); ++_iter927) + std::vector ::const_iterator _iter951; + for (_iter951 = this->fileIds.begin(); _iter951 != this->fileIds.end(); ++_iter951) { - xfer += oprot->writeI64((*_iter927)); + xfer += oprot->writeI64((*_iter951)); } xfer += oprot->writeListEnd(); } @@ -23118,11 +23711,11 @@ void swap(ClearFileMetadataRequest &a, ClearFileMetadataRequest &b) { swap(a.fileIds, b.fileIds); } -ClearFileMetadataRequest::ClearFileMetadataRequest(const ClearFileMetadataRequest& other928) { - fileIds = other928.fileIds; +ClearFileMetadataRequest::ClearFileMetadataRequest(const ClearFileMetadataRequest& other952) { + fileIds = other952.fileIds; } -ClearFileMetadataRequest& ClearFileMetadataRequest::operator=(const ClearFileMetadataRequest& other929) { - fileIds = other929.fileIds; +ClearFileMetadataRequest& ClearFileMetadataRequest::operator=(const ClearFileMetadataRequest& other953) { + fileIds = other953.fileIds; return *this; } void ClearFileMetadataRequest::printTo(std::ostream& out) const { @@ -23204,11 +23797,11 @@ void swap(CacheFileMetadataResult &a, CacheFileMetadataResult &b) { swap(a.isSupported, b.isSupported); } -CacheFileMetadataResult::CacheFileMetadataResult(const CacheFileMetadataResult& other930) { - isSupported = other930.isSupported; +CacheFileMetadataResult::CacheFileMetadataResult(const CacheFileMetadataResult& other954) { + isSupported = other954.isSupported; } -CacheFileMetadataResult& CacheFileMetadataResult::operator=(const CacheFileMetadataResult& other931) { - isSupported = other931.isSupported; +CacheFileMetadataResult& CacheFileMetadataResult::operator=(const CacheFileMetadataResult& other955) { + isSupported = other955.isSupported; return *this; } void CacheFileMetadataResult::printTo(std::ostream& out) const { @@ -23349,19 +23942,19 @@ void swap(CacheFileMetadataRequest &a, CacheFileMetadataRequest &b) { swap(a.__isset, b.__isset); } -CacheFileMetadataRequest::CacheFileMetadataRequest(const CacheFileMetadataRequest& other932) { - dbName = other932.dbName; - tblName = other932.tblName; - partName = other932.partName; - isAllParts = other932.isAllParts; - __isset = other932.__isset; +CacheFileMetadataRequest::CacheFileMetadataRequest(const CacheFileMetadataRequest& other956) { + dbName = other956.dbName; + tblName = other956.tblName; + partName = other956.partName; + isAllParts = other956.isAllParts; + __isset = other956.__isset; } -CacheFileMetadataRequest& CacheFileMetadataRequest::operator=(const CacheFileMetadataRequest& other933) { - dbName = other933.dbName; - tblName = other933.tblName; - partName = other933.partName; - isAllParts = other933.isAllParts; - __isset = other933.__isset; +CacheFileMetadataRequest& CacheFileMetadataRequest::operator=(const CacheFileMetadataRequest& other957) { + dbName = other957.dbName; + tblName = other957.tblName; + partName = other957.partName; + isAllParts = other957.isAllParts; + __isset = other957.__isset; return *this; } void CacheFileMetadataRequest::printTo(std::ostream& out) const { @@ -23409,14 +24002,14 @@ uint32_t GetAllFunctionsResponse::read(::apache::thrift::protocol::TProtocol* ip if (ftype == ::apache::thrift::protocol::T_LIST) { { this->functions.clear(); - uint32_t _size934; - ::apache::thrift::protocol::TType _etype937; - xfer += iprot->readListBegin(_etype937, _size934); - this->functions.resize(_size934); - uint32_t _i938; - for (_i938 = 0; _i938 < _size934; ++_i938) + uint32_t _size958; + ::apache::thrift::protocol::TType _etype961; + xfer += iprot->readListBegin(_etype961, _size958); + this->functions.resize(_size958); + uint32_t _i962; + for (_i962 = 0; _i962 < _size958; ++_i962) { - xfer += this->functions[_i938].read(iprot); + xfer += this->functions[_i962].read(iprot); } xfer += iprot->readListEnd(); } @@ -23446,10 +24039,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 _iter939; - for (_iter939 = this->functions.begin(); _iter939 != this->functions.end(); ++_iter939) + std::vector ::const_iterator _iter963; + for (_iter963 = this->functions.begin(); _iter963 != this->functions.end(); ++_iter963) { - xfer += (*_iter939).write(oprot); + xfer += (*_iter963).write(oprot); } xfer += oprot->writeListEnd(); } @@ -23466,13 +24059,13 @@ void swap(GetAllFunctionsResponse &a, GetAllFunctionsResponse &b) { swap(a.__isset, b.__isset); } -GetAllFunctionsResponse::GetAllFunctionsResponse(const GetAllFunctionsResponse& other940) { - functions = other940.functions; - __isset = other940.__isset; +GetAllFunctionsResponse::GetAllFunctionsResponse(const GetAllFunctionsResponse& other964) { + functions = other964.functions; + __isset = other964.__isset; } -GetAllFunctionsResponse& GetAllFunctionsResponse::operator=(const GetAllFunctionsResponse& other941) { - functions = other941.functions; - __isset = other941.__isset; +GetAllFunctionsResponse& GetAllFunctionsResponse::operator=(const GetAllFunctionsResponse& other965) { + functions = other965.functions; + __isset = other965.__isset; return *this; } void GetAllFunctionsResponse::printTo(std::ostream& out) const { @@ -23517,16 +24110,16 @@ uint32_t ClientCapabilities::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->values.clear(); - uint32_t _size942; - ::apache::thrift::protocol::TType _etype945; - xfer += iprot->readListBegin(_etype945, _size942); - this->values.resize(_size942); - uint32_t _i946; - for (_i946 = 0; _i946 < _size942; ++_i946) + uint32_t _size966; + ::apache::thrift::protocol::TType _etype969; + xfer += iprot->readListBegin(_etype969, _size966); + this->values.resize(_size966); + uint32_t _i970; + for (_i970 = 0; _i970 < _size966; ++_i970) { - int32_t ecast947; - xfer += iprot->readI32(ecast947); - this->values[_i946] = (ClientCapability::type)ecast947; + int32_t ecast971; + xfer += iprot->readI32(ecast971); + this->values[_i970] = (ClientCapability::type)ecast971; } xfer += iprot->readListEnd(); } @@ -23557,10 +24150,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 _iter948; - for (_iter948 = this->values.begin(); _iter948 != this->values.end(); ++_iter948) + std::vector ::const_iterator _iter972; + for (_iter972 = this->values.begin(); _iter972 != this->values.end(); ++_iter972) { - xfer += oprot->writeI32((int32_t)(*_iter948)); + xfer += oprot->writeI32((int32_t)(*_iter972)); } xfer += oprot->writeListEnd(); } @@ -23576,11 +24169,11 @@ void swap(ClientCapabilities &a, ClientCapabilities &b) { swap(a.values, b.values); } -ClientCapabilities::ClientCapabilities(const ClientCapabilities& other949) { - values = other949.values; +ClientCapabilities::ClientCapabilities(const ClientCapabilities& other973) { + values = other973.values; } -ClientCapabilities& ClientCapabilities::operator=(const ClientCapabilities& other950) { - values = other950.values; +ClientCapabilities& ClientCapabilities::operator=(const ClientCapabilities& other974) { + values = other974.values; return *this; } void ClientCapabilities::printTo(std::ostream& out) const { @@ -23721,19 +24314,19 @@ void swap(GetTableRequest &a, GetTableRequest &b) { swap(a.__isset, b.__isset); } -GetTableRequest::GetTableRequest(const GetTableRequest& other951) { - dbName = other951.dbName; - tblName = other951.tblName; - capabilities = other951.capabilities; - catName = other951.catName; - __isset = other951.__isset; +GetTableRequest::GetTableRequest(const GetTableRequest& other975) { + dbName = other975.dbName; + tblName = other975.tblName; + capabilities = other975.capabilities; + catName = other975.catName; + __isset = other975.__isset; } -GetTableRequest& GetTableRequest::operator=(const GetTableRequest& other952) { - dbName = other952.dbName; - tblName = other952.tblName; - capabilities = other952.capabilities; - catName = other952.catName; - __isset = other952.__isset; +GetTableRequest& GetTableRequest::operator=(const GetTableRequest& other976) { + dbName = other976.dbName; + tblName = other976.tblName; + capabilities = other976.capabilities; + catName = other976.catName; + __isset = other976.__isset; return *this; } void GetTableRequest::printTo(std::ostream& out) const { @@ -23818,11 +24411,11 @@ void swap(GetTableResult &a, GetTableResult &b) { swap(a.table, b.table); } -GetTableResult::GetTableResult(const GetTableResult& other953) { - table = other953.table; +GetTableResult::GetTableResult(const GetTableResult& other977) { + table = other977.table; } -GetTableResult& GetTableResult::operator=(const GetTableResult& other954) { - table = other954.table; +GetTableResult& GetTableResult::operator=(const GetTableResult& other978) { + table = other978.table; return *this; } void GetTableResult::printTo(std::ostream& out) const { @@ -23890,14 +24483,14 @@ uint32_t GetTablesRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tblNames.clear(); - uint32_t _size955; - ::apache::thrift::protocol::TType _etype958; - xfer += iprot->readListBegin(_etype958, _size955); - this->tblNames.resize(_size955); - uint32_t _i959; - for (_i959 = 0; _i959 < _size955; ++_i959) + uint32_t _size979; + ::apache::thrift::protocol::TType _etype982; + xfer += iprot->readListBegin(_etype982, _size979); + this->tblNames.resize(_size979); + uint32_t _i983; + for (_i983 = 0; _i983 < _size979; ++_i983) { - xfer += iprot->readString(this->tblNames[_i959]); + xfer += iprot->readString(this->tblNames[_i983]); } xfer += iprot->readListEnd(); } @@ -23949,10 +24542,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 _iter960; - for (_iter960 = this->tblNames.begin(); _iter960 != this->tblNames.end(); ++_iter960) + std::vector ::const_iterator _iter984; + for (_iter984 = this->tblNames.begin(); _iter984 != this->tblNames.end(); ++_iter984) { - xfer += oprot->writeString((*_iter960)); + xfer += oprot->writeString((*_iter984)); } xfer += oprot->writeListEnd(); } @@ -23982,19 +24575,19 @@ void swap(GetTablesRequest &a, GetTablesRequest &b) { swap(a.__isset, b.__isset); } -GetTablesRequest::GetTablesRequest(const GetTablesRequest& other961) { - dbName = other961.dbName; - tblNames = other961.tblNames; - capabilities = other961.capabilities; - catName = other961.catName; - __isset = other961.__isset; +GetTablesRequest::GetTablesRequest(const GetTablesRequest& other985) { + dbName = other985.dbName; + tblNames = other985.tblNames; + capabilities = other985.capabilities; + catName = other985.catName; + __isset = other985.__isset; } -GetTablesRequest& GetTablesRequest::operator=(const GetTablesRequest& other962) { - dbName = other962.dbName; - tblNames = other962.tblNames; - capabilities = other962.capabilities; - catName = other962.catName; - __isset = other962.__isset; +GetTablesRequest& GetTablesRequest::operator=(const GetTablesRequest& other986) { + dbName = other986.dbName; + tblNames = other986.tblNames; + capabilities = other986.capabilities; + catName = other986.catName; + __isset = other986.__isset; return *this; } void GetTablesRequest::printTo(std::ostream& out) const { @@ -24042,14 +24635,14 @@ uint32_t GetTablesResult::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tables.clear(); - uint32_t _size963; - ::apache::thrift::protocol::TType _etype966; - xfer += iprot->readListBegin(_etype966, _size963); - this->tables.resize(_size963); - uint32_t _i967; - for (_i967 = 0; _i967 < _size963; ++_i967) + uint32_t _size987; + ::apache::thrift::protocol::TType _etype990; + xfer += iprot->readListBegin(_etype990, _size987); + this->tables.resize(_size987); + uint32_t _i991; + for (_i991 = 0; _i991 < _size987; ++_i991) { - xfer += this->tables[_i967].read(iprot); + xfer += this->tables[_i991].read(iprot); } xfer += iprot->readListEnd(); } @@ -24080,10 +24673,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 _iter968; - for (_iter968 = this->tables.begin(); _iter968 != this->tables.end(); ++_iter968) + std::vector
::const_iterator _iter992; + for (_iter992 = this->tables.begin(); _iter992 != this->tables.end(); ++_iter992) { - xfer += (*_iter968).write(oprot); + xfer += (*_iter992).write(oprot); } xfer += oprot->writeListEnd(); } @@ -24099,11 +24692,11 @@ void swap(GetTablesResult &a, GetTablesResult &b) { swap(a.tables, b.tables); } -GetTablesResult::GetTablesResult(const GetTablesResult& other969) { - tables = other969.tables; +GetTablesResult::GetTablesResult(const GetTablesResult& other993) { + tables = other993.tables; } -GetTablesResult& GetTablesResult::operator=(const GetTablesResult& other970) { - tables = other970.tables; +GetTablesResult& GetTablesResult::operator=(const GetTablesResult& other994) { + tables = other994.tables; return *this; } void GetTablesResult::printTo(std::ostream& out) const { @@ -24205,13 +24798,13 @@ void swap(CmRecycleRequest &a, CmRecycleRequest &b) { swap(a.purge, b.purge); } -CmRecycleRequest::CmRecycleRequest(const CmRecycleRequest& other971) { - dataPath = other971.dataPath; - purge = other971.purge; +CmRecycleRequest::CmRecycleRequest(const CmRecycleRequest& other995) { + dataPath = other995.dataPath; + purge = other995.purge; } -CmRecycleRequest& CmRecycleRequest::operator=(const CmRecycleRequest& other972) { - dataPath = other972.dataPath; - purge = other972.purge; +CmRecycleRequest& CmRecycleRequest::operator=(const CmRecycleRequest& other996) { + dataPath = other996.dataPath; + purge = other996.purge; return *this; } void CmRecycleRequest::printTo(std::ostream& out) const { @@ -24271,11 +24864,11 @@ void swap(CmRecycleResponse &a, CmRecycleResponse &b) { (void) b; } -CmRecycleResponse::CmRecycleResponse(const CmRecycleResponse& other973) { - (void) other973; +CmRecycleResponse::CmRecycleResponse(const CmRecycleResponse& other997) { + (void) other997; } -CmRecycleResponse& CmRecycleResponse::operator=(const CmRecycleResponse& other974) { - (void) other974; +CmRecycleResponse& CmRecycleResponse::operator=(const CmRecycleResponse& other998) { + (void) other998; return *this; } void CmRecycleResponse::printTo(std::ostream& out) const { @@ -24435,21 +25028,21 @@ void swap(TableMeta &a, TableMeta &b) { swap(a.__isset, b.__isset); } -TableMeta::TableMeta(const TableMeta& other975) { - dbName = other975.dbName; - tableName = other975.tableName; - tableType = other975.tableType; - comments = other975.comments; - catName = other975.catName; - __isset = other975.__isset; +TableMeta::TableMeta(const TableMeta& other999) { + dbName = other999.dbName; + tableName = other999.tableName; + tableType = other999.tableType; + comments = other999.comments; + catName = other999.catName; + __isset = other999.__isset; } -TableMeta& TableMeta::operator=(const TableMeta& other976) { - dbName = other976.dbName; - tableName = other976.tableName; - tableType = other976.tableType; - comments = other976.comments; - catName = other976.catName; - __isset = other976.__isset; +TableMeta& TableMeta::operator=(const TableMeta& other1000) { + dbName = other1000.dbName; + tableName = other1000.tableName; + tableType = other1000.tableType; + comments = other1000.comments; + catName = other1000.catName; + __isset = other1000.__isset; return *this; } void TableMeta::printTo(std::ostream& out) const { @@ -24513,15 +25106,15 @@ uint32_t Materialization::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_SET) { { this->tablesUsed.clear(); - uint32_t _size977; - ::apache::thrift::protocol::TType _etype980; - xfer += iprot->readSetBegin(_etype980, _size977); - uint32_t _i981; - for (_i981 = 0; _i981 < _size977; ++_i981) + uint32_t _size1001; + ::apache::thrift::protocol::TType _etype1004; + xfer += iprot->readSetBegin(_etype1004, _size1001); + uint32_t _i1005; + for (_i1005 = 0; _i1005 < _size1001; ++_i1005) { - std::string _elem982; - xfer += iprot->readString(_elem982); - this->tablesUsed.insert(_elem982); + std::string _elem1006; + xfer += iprot->readString(_elem1006); + this->tablesUsed.insert(_elem1006); } xfer += iprot->readSetEnd(); } @@ -24576,10 +25169,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 _iter983; - for (_iter983 = this->tablesUsed.begin(); _iter983 != this->tablesUsed.end(); ++_iter983) + std::set ::const_iterator _iter1007; + for (_iter1007 = this->tablesUsed.begin(); _iter1007 != this->tablesUsed.end(); ++_iter1007) { - xfer += oprot->writeString((*_iter983)); + xfer += oprot->writeString((*_iter1007)); } xfer += oprot->writeSetEnd(); } @@ -24614,19 +25207,19 @@ void swap(Materialization &a, Materialization &b) { swap(a.__isset, b.__isset); } -Materialization::Materialization(const Materialization& other984) { - tablesUsed = other984.tablesUsed; - validTxnList = other984.validTxnList; - invalidationTime = other984.invalidationTime; - sourceTablesUpdateDeleteModified = other984.sourceTablesUpdateDeleteModified; - __isset = other984.__isset; +Materialization::Materialization(const Materialization& other1008) { + tablesUsed = other1008.tablesUsed; + validTxnList = other1008.validTxnList; + invalidationTime = other1008.invalidationTime; + sourceTablesUpdateDeleteModified = other1008.sourceTablesUpdateDeleteModified; + __isset = other1008.__isset; } -Materialization& Materialization::operator=(const Materialization& other985) { - tablesUsed = other985.tablesUsed; - validTxnList = other985.validTxnList; - invalidationTime = other985.invalidationTime; - sourceTablesUpdateDeleteModified = other985.sourceTablesUpdateDeleteModified; - __isset = other985.__isset; +Materialization& Materialization::operator=(const Materialization& other1009) { + tablesUsed = other1009.tablesUsed; + validTxnList = other1009.validTxnList; + invalidationTime = other1009.invalidationTime; + sourceTablesUpdateDeleteModified = other1009.sourceTablesUpdateDeleteModified; + __isset = other1009.__isset; return *this; } void Materialization::printTo(std::ostream& out) const { @@ -24695,9 +25288,9 @@ uint32_t WMResourcePlan::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast986; - xfer += iprot->readI32(ecast986); - this->status = (WMResourcePlanStatus::type)ecast986; + int32_t ecast1010; + xfer += iprot->readI32(ecast1010); + this->status = (WMResourcePlanStatus::type)ecast1010; this->__isset.status = true; } else { xfer += iprot->skip(ftype); @@ -24771,19 +25364,19 @@ void swap(WMResourcePlan &a, WMResourcePlan &b) { swap(a.__isset, b.__isset); } -WMResourcePlan::WMResourcePlan(const WMResourcePlan& other987) { - name = other987.name; - status = other987.status; - queryParallelism = other987.queryParallelism; - defaultPoolPath = other987.defaultPoolPath; - __isset = other987.__isset; +WMResourcePlan::WMResourcePlan(const WMResourcePlan& other1011) { + name = other1011.name; + status = other1011.status; + queryParallelism = other1011.queryParallelism; + defaultPoolPath = other1011.defaultPoolPath; + __isset = other1011.__isset; } -WMResourcePlan& WMResourcePlan::operator=(const WMResourcePlan& other988) { - name = other988.name; - status = other988.status; - queryParallelism = other988.queryParallelism; - defaultPoolPath = other988.defaultPoolPath; - __isset = other988.__isset; +WMResourcePlan& WMResourcePlan::operator=(const WMResourcePlan& other1012) { + name = other1012.name; + status = other1012.status; + queryParallelism = other1012.queryParallelism; + defaultPoolPath = other1012.defaultPoolPath; + __isset = other1012.__isset; return *this; } void WMResourcePlan::printTo(std::ostream& out) const { @@ -24862,9 +25455,9 @@ uint32_t WMNullableResourcePlan::read(::apache::thrift::protocol::TProtocol* ipr break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast989; - xfer += iprot->readI32(ecast989); - this->status = (WMResourcePlanStatus::type)ecast989; + int32_t ecast1013; + xfer += iprot->readI32(ecast1013); + this->status = (WMResourcePlanStatus::type)ecast1013; this->__isset.status = true; } else { xfer += iprot->skip(ftype); @@ -24965,23 +25558,23 @@ void swap(WMNullableResourcePlan &a, WMNullableResourcePlan &b) { swap(a.__isset, b.__isset); } -WMNullableResourcePlan::WMNullableResourcePlan(const WMNullableResourcePlan& other990) { - name = other990.name; - status = other990.status; - queryParallelism = other990.queryParallelism; - isSetQueryParallelism = other990.isSetQueryParallelism; - defaultPoolPath = other990.defaultPoolPath; - isSetDefaultPoolPath = other990.isSetDefaultPoolPath; - __isset = other990.__isset; -} -WMNullableResourcePlan& WMNullableResourcePlan::operator=(const WMNullableResourcePlan& other991) { - name = other991.name; - status = other991.status; - queryParallelism = other991.queryParallelism; - isSetQueryParallelism = other991.isSetQueryParallelism; - defaultPoolPath = other991.defaultPoolPath; - isSetDefaultPoolPath = other991.isSetDefaultPoolPath; - __isset = other991.__isset; +WMNullableResourcePlan::WMNullableResourcePlan(const WMNullableResourcePlan& other1014) { + name = other1014.name; + status = other1014.status; + queryParallelism = other1014.queryParallelism; + isSetQueryParallelism = other1014.isSetQueryParallelism; + defaultPoolPath = other1014.defaultPoolPath; + isSetDefaultPoolPath = other1014.isSetDefaultPoolPath; + __isset = other1014.__isset; +} +WMNullableResourcePlan& WMNullableResourcePlan::operator=(const WMNullableResourcePlan& other1015) { + name = other1015.name; + status = other1015.status; + queryParallelism = other1015.queryParallelism; + isSetQueryParallelism = other1015.isSetQueryParallelism; + defaultPoolPath = other1015.defaultPoolPath; + isSetDefaultPoolPath = other1015.isSetDefaultPoolPath; + __isset = other1015.__isset; return *this; } void WMNullableResourcePlan::printTo(std::ostream& out) const { @@ -25146,21 +25739,21 @@ void swap(WMPool &a, WMPool &b) { swap(a.__isset, b.__isset); } -WMPool::WMPool(const WMPool& other992) { - resourcePlanName = other992.resourcePlanName; - poolPath = other992.poolPath; - allocFraction = other992.allocFraction; - queryParallelism = other992.queryParallelism; - schedulingPolicy = other992.schedulingPolicy; - __isset = other992.__isset; -} -WMPool& WMPool::operator=(const WMPool& other993) { - resourcePlanName = other993.resourcePlanName; - poolPath = other993.poolPath; - allocFraction = other993.allocFraction; - queryParallelism = other993.queryParallelism; - schedulingPolicy = other993.schedulingPolicy; - __isset = other993.__isset; +WMPool::WMPool(const WMPool& other1016) { + resourcePlanName = other1016.resourcePlanName; + poolPath = other1016.poolPath; + allocFraction = other1016.allocFraction; + queryParallelism = other1016.queryParallelism; + schedulingPolicy = other1016.schedulingPolicy; + __isset = other1016.__isset; +} +WMPool& WMPool::operator=(const WMPool& other1017) { + resourcePlanName = other1017.resourcePlanName; + poolPath = other1017.poolPath; + allocFraction = other1017.allocFraction; + queryParallelism = other1017.queryParallelism; + schedulingPolicy = other1017.schedulingPolicy; + __isset = other1017.__isset; return *this; } void WMPool::printTo(std::ostream& out) const { @@ -25343,23 +25936,23 @@ void swap(WMNullablePool &a, WMNullablePool &b) { swap(a.__isset, b.__isset); } -WMNullablePool::WMNullablePool(const WMNullablePool& other994) { - resourcePlanName = other994.resourcePlanName; - poolPath = other994.poolPath; - allocFraction = other994.allocFraction; - queryParallelism = other994.queryParallelism; - schedulingPolicy = other994.schedulingPolicy; - isSetSchedulingPolicy = other994.isSetSchedulingPolicy; - __isset = other994.__isset; -} -WMNullablePool& WMNullablePool::operator=(const WMNullablePool& other995) { - resourcePlanName = other995.resourcePlanName; - poolPath = other995.poolPath; - allocFraction = other995.allocFraction; - queryParallelism = other995.queryParallelism; - schedulingPolicy = other995.schedulingPolicy; - isSetSchedulingPolicy = other995.isSetSchedulingPolicy; - __isset = other995.__isset; +WMNullablePool::WMNullablePool(const WMNullablePool& other1018) { + resourcePlanName = other1018.resourcePlanName; + poolPath = other1018.poolPath; + allocFraction = other1018.allocFraction; + queryParallelism = other1018.queryParallelism; + schedulingPolicy = other1018.schedulingPolicy; + isSetSchedulingPolicy = other1018.isSetSchedulingPolicy; + __isset = other1018.__isset; +} +WMNullablePool& WMNullablePool::operator=(const WMNullablePool& other1019) { + resourcePlanName = other1019.resourcePlanName; + poolPath = other1019.poolPath; + allocFraction = other1019.allocFraction; + queryParallelism = other1019.queryParallelism; + schedulingPolicy = other1019.schedulingPolicy; + isSetSchedulingPolicy = other1019.isSetSchedulingPolicy; + __isset = other1019.__isset; return *this; } void WMNullablePool::printTo(std::ostream& out) const { @@ -25524,21 +26117,21 @@ void swap(WMTrigger &a, WMTrigger &b) { swap(a.__isset, b.__isset); } -WMTrigger::WMTrigger(const WMTrigger& other996) { - resourcePlanName = other996.resourcePlanName; - triggerName = other996.triggerName; - triggerExpression = other996.triggerExpression; - actionExpression = other996.actionExpression; - isInUnmanaged = other996.isInUnmanaged; - __isset = other996.__isset; -} -WMTrigger& WMTrigger::operator=(const WMTrigger& other997) { - resourcePlanName = other997.resourcePlanName; - triggerName = other997.triggerName; - triggerExpression = other997.triggerExpression; - actionExpression = other997.actionExpression; - isInUnmanaged = other997.isInUnmanaged; - __isset = other997.__isset; +WMTrigger::WMTrigger(const WMTrigger& other1020) { + resourcePlanName = other1020.resourcePlanName; + triggerName = other1020.triggerName; + triggerExpression = other1020.triggerExpression; + actionExpression = other1020.actionExpression; + isInUnmanaged = other1020.isInUnmanaged; + __isset = other1020.__isset; +} +WMTrigger& WMTrigger::operator=(const WMTrigger& other1021) { + resourcePlanName = other1021.resourcePlanName; + triggerName = other1021.triggerName; + triggerExpression = other1021.triggerExpression; + actionExpression = other1021.actionExpression; + isInUnmanaged = other1021.isInUnmanaged; + __isset = other1021.__isset; return *this; } void WMTrigger::printTo(std::ostream& out) const { @@ -25703,21 +26296,21 @@ void swap(WMMapping &a, WMMapping &b) { swap(a.__isset, b.__isset); } -WMMapping::WMMapping(const WMMapping& other998) { - resourcePlanName = other998.resourcePlanName; - entityType = other998.entityType; - entityName = other998.entityName; - poolPath = other998.poolPath; - ordering = other998.ordering; - __isset = other998.__isset; -} -WMMapping& WMMapping::operator=(const WMMapping& other999) { - resourcePlanName = other999.resourcePlanName; - entityType = other999.entityType; - entityName = other999.entityName; - poolPath = other999.poolPath; - ordering = other999.ordering; - __isset = other999.__isset; +WMMapping::WMMapping(const WMMapping& other1022) { + resourcePlanName = other1022.resourcePlanName; + entityType = other1022.entityType; + entityName = other1022.entityName; + poolPath = other1022.poolPath; + ordering = other1022.ordering; + __isset = other1022.__isset; +} +WMMapping& WMMapping::operator=(const WMMapping& other1023) { + resourcePlanName = other1023.resourcePlanName; + entityType = other1023.entityType; + entityName = other1023.entityName; + poolPath = other1023.poolPath; + ordering = other1023.ordering; + __isset = other1023.__isset; return *this; } void WMMapping::printTo(std::ostream& out) const { @@ -25823,13 +26416,13 @@ void swap(WMPoolTrigger &a, WMPoolTrigger &b) { swap(a.trigger, b.trigger); } -WMPoolTrigger::WMPoolTrigger(const WMPoolTrigger& other1000) { - pool = other1000.pool; - trigger = other1000.trigger; +WMPoolTrigger::WMPoolTrigger(const WMPoolTrigger& other1024) { + pool = other1024.pool; + trigger = other1024.trigger; } -WMPoolTrigger& WMPoolTrigger::operator=(const WMPoolTrigger& other1001) { - pool = other1001.pool; - trigger = other1001.trigger; +WMPoolTrigger& WMPoolTrigger::operator=(const WMPoolTrigger& other1025) { + pool = other1025.pool; + trigger = other1025.trigger; return *this; } void WMPoolTrigger::printTo(std::ostream& out) const { @@ -25903,14 +26496,14 @@ uint32_t WMFullResourcePlan::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->pools.clear(); - uint32_t _size1002; - ::apache::thrift::protocol::TType _etype1005; - xfer += iprot->readListBegin(_etype1005, _size1002); - this->pools.resize(_size1002); - uint32_t _i1006; - for (_i1006 = 0; _i1006 < _size1002; ++_i1006) + uint32_t _size1026; + ::apache::thrift::protocol::TType _etype1029; + xfer += iprot->readListBegin(_etype1029, _size1026); + this->pools.resize(_size1026); + uint32_t _i1030; + for (_i1030 = 0; _i1030 < _size1026; ++_i1030) { - xfer += this->pools[_i1006].read(iprot); + xfer += this->pools[_i1030].read(iprot); } xfer += iprot->readListEnd(); } @@ -25923,14 +26516,14 @@ uint32_t WMFullResourcePlan::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->mappings.clear(); - uint32_t _size1007; - ::apache::thrift::protocol::TType _etype1010; - xfer += iprot->readListBegin(_etype1010, _size1007); - this->mappings.resize(_size1007); - uint32_t _i1011; - for (_i1011 = 0; _i1011 < _size1007; ++_i1011) + uint32_t _size1031; + ::apache::thrift::protocol::TType _etype1034; + xfer += iprot->readListBegin(_etype1034, _size1031); + this->mappings.resize(_size1031); + uint32_t _i1035; + for (_i1035 = 0; _i1035 < _size1031; ++_i1035) { - xfer += this->mappings[_i1011].read(iprot); + xfer += this->mappings[_i1035].read(iprot); } xfer += iprot->readListEnd(); } @@ -25943,14 +26536,14 @@ uint32_t WMFullResourcePlan::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->triggers.clear(); - uint32_t _size1012; - ::apache::thrift::protocol::TType _etype1015; - xfer += iprot->readListBegin(_etype1015, _size1012); - this->triggers.resize(_size1012); - uint32_t _i1016; - for (_i1016 = 0; _i1016 < _size1012; ++_i1016) + uint32_t _size1036; + ::apache::thrift::protocol::TType _etype1039; + xfer += iprot->readListBegin(_etype1039, _size1036); + this->triggers.resize(_size1036); + uint32_t _i1040; + for (_i1040 = 0; _i1040 < _size1036; ++_i1040) { - xfer += this->triggers[_i1016].read(iprot); + xfer += this->triggers[_i1040].read(iprot); } xfer += iprot->readListEnd(); } @@ -25963,14 +26556,14 @@ uint32_t WMFullResourcePlan::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->poolTriggers.clear(); - uint32_t _size1017; - ::apache::thrift::protocol::TType _etype1020; - xfer += iprot->readListBegin(_etype1020, _size1017); - this->poolTriggers.resize(_size1017); - uint32_t _i1021; - for (_i1021 = 0; _i1021 < _size1017; ++_i1021) + uint32_t _size1041; + ::apache::thrift::protocol::TType _etype1044; + xfer += iprot->readListBegin(_etype1044, _size1041); + this->poolTriggers.resize(_size1041); + uint32_t _i1045; + for (_i1045 = 0; _i1045 < _size1041; ++_i1045) { - xfer += this->poolTriggers[_i1021].read(iprot); + xfer += this->poolTriggers[_i1045].read(iprot); } xfer += iprot->readListEnd(); } @@ -26007,10 +26600,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 _iter1022; - for (_iter1022 = this->pools.begin(); _iter1022 != this->pools.end(); ++_iter1022) + std::vector ::const_iterator _iter1046; + for (_iter1046 = this->pools.begin(); _iter1046 != this->pools.end(); ++_iter1046) { - xfer += (*_iter1022).write(oprot); + xfer += (*_iter1046).write(oprot); } xfer += oprot->writeListEnd(); } @@ -26020,10 +26613,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 _iter1023; - for (_iter1023 = this->mappings.begin(); _iter1023 != this->mappings.end(); ++_iter1023) + std::vector ::const_iterator _iter1047; + for (_iter1047 = this->mappings.begin(); _iter1047 != this->mappings.end(); ++_iter1047) { - xfer += (*_iter1023).write(oprot); + xfer += (*_iter1047).write(oprot); } xfer += oprot->writeListEnd(); } @@ -26033,10 +26626,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 _iter1024; - for (_iter1024 = this->triggers.begin(); _iter1024 != this->triggers.end(); ++_iter1024) + std::vector ::const_iterator _iter1048; + for (_iter1048 = this->triggers.begin(); _iter1048 != this->triggers.end(); ++_iter1048) { - xfer += (*_iter1024).write(oprot); + xfer += (*_iter1048).write(oprot); } xfer += oprot->writeListEnd(); } @@ -26046,10 +26639,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 _iter1025; - for (_iter1025 = this->poolTriggers.begin(); _iter1025 != this->poolTriggers.end(); ++_iter1025) + std::vector ::const_iterator _iter1049; + for (_iter1049 = this->poolTriggers.begin(); _iter1049 != this->poolTriggers.end(); ++_iter1049) { - xfer += (*_iter1025).write(oprot); + xfer += (*_iter1049).write(oprot); } xfer += oprot->writeListEnd(); } @@ -26070,21 +26663,21 @@ void swap(WMFullResourcePlan &a, WMFullResourcePlan &b) { swap(a.__isset, b.__isset); } -WMFullResourcePlan::WMFullResourcePlan(const WMFullResourcePlan& other1026) { - plan = other1026.plan; - pools = other1026.pools; - mappings = other1026.mappings; - triggers = other1026.triggers; - poolTriggers = other1026.poolTriggers; - __isset = other1026.__isset; -} -WMFullResourcePlan& WMFullResourcePlan::operator=(const WMFullResourcePlan& other1027) { - plan = other1027.plan; - pools = other1027.pools; - mappings = other1027.mappings; - triggers = other1027.triggers; - poolTriggers = other1027.poolTriggers; - __isset = other1027.__isset; +WMFullResourcePlan::WMFullResourcePlan(const WMFullResourcePlan& other1050) { + plan = other1050.plan; + pools = other1050.pools; + mappings = other1050.mappings; + triggers = other1050.triggers; + poolTriggers = other1050.poolTriggers; + __isset = other1050.__isset; +} +WMFullResourcePlan& WMFullResourcePlan::operator=(const WMFullResourcePlan& other1051) { + plan = other1051.plan; + pools = other1051.pools; + mappings = other1051.mappings; + triggers = other1051.triggers; + poolTriggers = other1051.poolTriggers; + __isset = other1051.__isset; return *this; } void WMFullResourcePlan::printTo(std::ostream& out) const { @@ -26189,15 +26782,15 @@ void swap(WMCreateResourcePlanRequest &a, WMCreateResourcePlanRequest &b) { swap(a.__isset, b.__isset); } -WMCreateResourcePlanRequest::WMCreateResourcePlanRequest(const WMCreateResourcePlanRequest& other1028) { - resourcePlan = other1028.resourcePlan; - copyFrom = other1028.copyFrom; - __isset = other1028.__isset; +WMCreateResourcePlanRequest::WMCreateResourcePlanRequest(const WMCreateResourcePlanRequest& other1052) { + resourcePlan = other1052.resourcePlan; + copyFrom = other1052.copyFrom; + __isset = other1052.__isset; } -WMCreateResourcePlanRequest& WMCreateResourcePlanRequest::operator=(const WMCreateResourcePlanRequest& other1029) { - resourcePlan = other1029.resourcePlan; - copyFrom = other1029.copyFrom; - __isset = other1029.__isset; +WMCreateResourcePlanRequest& WMCreateResourcePlanRequest::operator=(const WMCreateResourcePlanRequest& other1053) { + resourcePlan = other1053.resourcePlan; + copyFrom = other1053.copyFrom; + __isset = other1053.__isset; return *this; } void WMCreateResourcePlanRequest::printTo(std::ostream& out) const { @@ -26257,11 +26850,11 @@ void swap(WMCreateResourcePlanResponse &a, WMCreateResourcePlanResponse &b) { (void) b; } -WMCreateResourcePlanResponse::WMCreateResourcePlanResponse(const WMCreateResourcePlanResponse& other1030) { - (void) other1030; +WMCreateResourcePlanResponse::WMCreateResourcePlanResponse(const WMCreateResourcePlanResponse& other1054) { + (void) other1054; } -WMCreateResourcePlanResponse& WMCreateResourcePlanResponse::operator=(const WMCreateResourcePlanResponse& other1031) { - (void) other1031; +WMCreateResourcePlanResponse& WMCreateResourcePlanResponse::operator=(const WMCreateResourcePlanResponse& other1055) { + (void) other1055; return *this; } void WMCreateResourcePlanResponse::printTo(std::ostream& out) const { @@ -26319,11 +26912,11 @@ void swap(WMGetActiveResourcePlanRequest &a, WMGetActiveResourcePlanRequest &b) (void) b; } -WMGetActiveResourcePlanRequest::WMGetActiveResourcePlanRequest(const WMGetActiveResourcePlanRequest& other1032) { - (void) other1032; +WMGetActiveResourcePlanRequest::WMGetActiveResourcePlanRequest(const WMGetActiveResourcePlanRequest& other1056) { + (void) other1056; } -WMGetActiveResourcePlanRequest& WMGetActiveResourcePlanRequest::operator=(const WMGetActiveResourcePlanRequest& other1033) { - (void) other1033; +WMGetActiveResourcePlanRequest& WMGetActiveResourcePlanRequest::operator=(const WMGetActiveResourcePlanRequest& other1057) { + (void) other1057; return *this; } void WMGetActiveResourcePlanRequest::printTo(std::ostream& out) const { @@ -26404,13 +26997,13 @@ void swap(WMGetActiveResourcePlanResponse &a, WMGetActiveResourcePlanResponse &b swap(a.__isset, b.__isset); } -WMGetActiveResourcePlanResponse::WMGetActiveResourcePlanResponse(const WMGetActiveResourcePlanResponse& other1034) { - resourcePlan = other1034.resourcePlan; - __isset = other1034.__isset; +WMGetActiveResourcePlanResponse::WMGetActiveResourcePlanResponse(const WMGetActiveResourcePlanResponse& other1058) { + resourcePlan = other1058.resourcePlan; + __isset = other1058.__isset; } -WMGetActiveResourcePlanResponse& WMGetActiveResourcePlanResponse::operator=(const WMGetActiveResourcePlanResponse& other1035) { - resourcePlan = other1035.resourcePlan; - __isset = other1035.__isset; +WMGetActiveResourcePlanResponse& WMGetActiveResourcePlanResponse::operator=(const WMGetActiveResourcePlanResponse& other1059) { + resourcePlan = other1059.resourcePlan; + __isset = other1059.__isset; return *this; } void WMGetActiveResourcePlanResponse::printTo(std::ostream& out) const { @@ -26492,13 +27085,13 @@ void swap(WMGetResourcePlanRequest &a, WMGetResourcePlanRequest &b) { swap(a.__isset, b.__isset); } -WMGetResourcePlanRequest::WMGetResourcePlanRequest(const WMGetResourcePlanRequest& other1036) { - resourcePlanName = other1036.resourcePlanName; - __isset = other1036.__isset; +WMGetResourcePlanRequest::WMGetResourcePlanRequest(const WMGetResourcePlanRequest& other1060) { + resourcePlanName = other1060.resourcePlanName; + __isset = other1060.__isset; } -WMGetResourcePlanRequest& WMGetResourcePlanRequest::operator=(const WMGetResourcePlanRequest& other1037) { - resourcePlanName = other1037.resourcePlanName; - __isset = other1037.__isset; +WMGetResourcePlanRequest& WMGetResourcePlanRequest::operator=(const WMGetResourcePlanRequest& other1061) { + resourcePlanName = other1061.resourcePlanName; + __isset = other1061.__isset; return *this; } void WMGetResourcePlanRequest::printTo(std::ostream& out) const { @@ -26580,13 +27173,13 @@ void swap(WMGetResourcePlanResponse &a, WMGetResourcePlanResponse &b) { swap(a.__isset, b.__isset); } -WMGetResourcePlanResponse::WMGetResourcePlanResponse(const WMGetResourcePlanResponse& other1038) { - resourcePlan = other1038.resourcePlan; - __isset = other1038.__isset; +WMGetResourcePlanResponse::WMGetResourcePlanResponse(const WMGetResourcePlanResponse& other1062) { + resourcePlan = other1062.resourcePlan; + __isset = other1062.__isset; } -WMGetResourcePlanResponse& WMGetResourcePlanResponse::operator=(const WMGetResourcePlanResponse& other1039) { - resourcePlan = other1039.resourcePlan; - __isset = other1039.__isset; +WMGetResourcePlanResponse& WMGetResourcePlanResponse::operator=(const WMGetResourcePlanResponse& other1063) { + resourcePlan = other1063.resourcePlan; + __isset = other1063.__isset; return *this; } void WMGetResourcePlanResponse::printTo(std::ostream& out) const { @@ -26645,11 +27238,11 @@ void swap(WMGetAllResourcePlanRequest &a, WMGetAllResourcePlanRequest &b) { (void) b; } -WMGetAllResourcePlanRequest::WMGetAllResourcePlanRequest(const WMGetAllResourcePlanRequest& other1040) { - (void) other1040; +WMGetAllResourcePlanRequest::WMGetAllResourcePlanRequest(const WMGetAllResourcePlanRequest& other1064) { + (void) other1064; } -WMGetAllResourcePlanRequest& WMGetAllResourcePlanRequest::operator=(const WMGetAllResourcePlanRequest& other1041) { - (void) other1041; +WMGetAllResourcePlanRequest& WMGetAllResourcePlanRequest::operator=(const WMGetAllResourcePlanRequest& other1065) { + (void) other1065; return *this; } void WMGetAllResourcePlanRequest::printTo(std::ostream& out) const { @@ -26693,14 +27286,14 @@ uint32_t WMGetAllResourcePlanResponse::read(::apache::thrift::protocol::TProtoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->resourcePlans.clear(); - uint32_t _size1042; - ::apache::thrift::protocol::TType _etype1045; - xfer += iprot->readListBegin(_etype1045, _size1042); - this->resourcePlans.resize(_size1042); - uint32_t _i1046; - for (_i1046 = 0; _i1046 < _size1042; ++_i1046) + uint32_t _size1066; + ::apache::thrift::protocol::TType _etype1069; + xfer += iprot->readListBegin(_etype1069, _size1066); + this->resourcePlans.resize(_size1066); + uint32_t _i1070; + for (_i1070 = 0; _i1070 < _size1066; ++_i1070) { - xfer += this->resourcePlans[_i1046].read(iprot); + xfer += this->resourcePlans[_i1070].read(iprot); } xfer += iprot->readListEnd(); } @@ -26730,10 +27323,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 _iter1047; - for (_iter1047 = this->resourcePlans.begin(); _iter1047 != this->resourcePlans.end(); ++_iter1047) + std::vector ::const_iterator _iter1071; + for (_iter1071 = this->resourcePlans.begin(); _iter1071 != this->resourcePlans.end(); ++_iter1071) { - xfer += (*_iter1047).write(oprot); + xfer += (*_iter1071).write(oprot); } xfer += oprot->writeListEnd(); } @@ -26750,13 +27343,13 @@ void swap(WMGetAllResourcePlanResponse &a, WMGetAllResourcePlanResponse &b) { swap(a.__isset, b.__isset); } -WMGetAllResourcePlanResponse::WMGetAllResourcePlanResponse(const WMGetAllResourcePlanResponse& other1048) { - resourcePlans = other1048.resourcePlans; - __isset = other1048.__isset; +WMGetAllResourcePlanResponse::WMGetAllResourcePlanResponse(const WMGetAllResourcePlanResponse& other1072) { + resourcePlans = other1072.resourcePlans; + __isset = other1072.__isset; } -WMGetAllResourcePlanResponse& WMGetAllResourcePlanResponse::operator=(const WMGetAllResourcePlanResponse& other1049) { - resourcePlans = other1049.resourcePlans; - __isset = other1049.__isset; +WMGetAllResourcePlanResponse& WMGetAllResourcePlanResponse::operator=(const WMGetAllResourcePlanResponse& other1073) { + resourcePlans = other1073.resourcePlans; + __isset = other1073.__isset; return *this; } void WMGetAllResourcePlanResponse::printTo(std::ostream& out) const { @@ -26914,21 +27507,21 @@ void swap(WMAlterResourcePlanRequest &a, WMAlterResourcePlanRequest &b) { swap(a.__isset, b.__isset); } -WMAlterResourcePlanRequest::WMAlterResourcePlanRequest(const WMAlterResourcePlanRequest& other1050) { - resourcePlanName = other1050.resourcePlanName; - resourcePlan = other1050.resourcePlan; - isEnableAndActivate = other1050.isEnableAndActivate; - isForceDeactivate = other1050.isForceDeactivate; - isReplace = other1050.isReplace; - __isset = other1050.__isset; +WMAlterResourcePlanRequest::WMAlterResourcePlanRequest(const WMAlterResourcePlanRequest& other1074) { + resourcePlanName = other1074.resourcePlanName; + resourcePlan = other1074.resourcePlan; + isEnableAndActivate = other1074.isEnableAndActivate; + isForceDeactivate = other1074.isForceDeactivate; + isReplace = other1074.isReplace; + __isset = other1074.__isset; } -WMAlterResourcePlanRequest& WMAlterResourcePlanRequest::operator=(const WMAlterResourcePlanRequest& other1051) { - resourcePlanName = other1051.resourcePlanName; - resourcePlan = other1051.resourcePlan; - isEnableAndActivate = other1051.isEnableAndActivate; - isForceDeactivate = other1051.isForceDeactivate; - isReplace = other1051.isReplace; - __isset = other1051.__isset; +WMAlterResourcePlanRequest& WMAlterResourcePlanRequest::operator=(const WMAlterResourcePlanRequest& other1075) { + resourcePlanName = other1075.resourcePlanName; + resourcePlan = other1075.resourcePlan; + isEnableAndActivate = other1075.isEnableAndActivate; + isForceDeactivate = other1075.isForceDeactivate; + isReplace = other1075.isReplace; + __isset = other1075.__isset; return *this; } void WMAlterResourcePlanRequest::printTo(std::ostream& out) const { @@ -27014,13 +27607,13 @@ void swap(WMAlterResourcePlanResponse &a, WMAlterResourcePlanResponse &b) { swap(a.__isset, b.__isset); } -WMAlterResourcePlanResponse::WMAlterResourcePlanResponse(const WMAlterResourcePlanResponse& other1052) { - fullResourcePlan = other1052.fullResourcePlan; - __isset = other1052.__isset; +WMAlterResourcePlanResponse::WMAlterResourcePlanResponse(const WMAlterResourcePlanResponse& other1076) { + fullResourcePlan = other1076.fullResourcePlan; + __isset = other1076.__isset; } -WMAlterResourcePlanResponse& WMAlterResourcePlanResponse::operator=(const WMAlterResourcePlanResponse& other1053) { - fullResourcePlan = other1053.fullResourcePlan; - __isset = other1053.__isset; +WMAlterResourcePlanResponse& WMAlterResourcePlanResponse::operator=(const WMAlterResourcePlanResponse& other1077) { + fullResourcePlan = other1077.fullResourcePlan; + __isset = other1077.__isset; return *this; } void WMAlterResourcePlanResponse::printTo(std::ostream& out) const { @@ -27102,13 +27695,13 @@ void swap(WMValidateResourcePlanRequest &a, WMValidateResourcePlanRequest &b) { swap(a.__isset, b.__isset); } -WMValidateResourcePlanRequest::WMValidateResourcePlanRequest(const WMValidateResourcePlanRequest& other1054) { - resourcePlanName = other1054.resourcePlanName; - __isset = other1054.__isset; +WMValidateResourcePlanRequest::WMValidateResourcePlanRequest(const WMValidateResourcePlanRequest& other1078) { + resourcePlanName = other1078.resourcePlanName; + __isset = other1078.__isset; } -WMValidateResourcePlanRequest& WMValidateResourcePlanRequest::operator=(const WMValidateResourcePlanRequest& other1055) { - resourcePlanName = other1055.resourcePlanName; - __isset = other1055.__isset; +WMValidateResourcePlanRequest& WMValidateResourcePlanRequest::operator=(const WMValidateResourcePlanRequest& other1079) { + resourcePlanName = other1079.resourcePlanName; + __isset = other1079.__isset; return *this; } void WMValidateResourcePlanRequest::printTo(std::ostream& out) const { @@ -27158,14 +27751,14 @@ uint32_t WMValidateResourcePlanResponse::read(::apache::thrift::protocol::TProto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->errors.clear(); - uint32_t _size1056; - ::apache::thrift::protocol::TType _etype1059; - xfer += iprot->readListBegin(_etype1059, _size1056); - this->errors.resize(_size1056); - uint32_t _i1060; - for (_i1060 = 0; _i1060 < _size1056; ++_i1060) + uint32_t _size1080; + ::apache::thrift::protocol::TType _etype1083; + xfer += iprot->readListBegin(_etype1083, _size1080); + this->errors.resize(_size1080); + uint32_t _i1084; + for (_i1084 = 0; _i1084 < _size1080; ++_i1084) { - xfer += iprot->readString(this->errors[_i1060]); + xfer += iprot->readString(this->errors[_i1084]); } xfer += iprot->readListEnd(); } @@ -27178,14 +27771,14 @@ uint32_t WMValidateResourcePlanResponse::read(::apache::thrift::protocol::TProto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->warnings.clear(); - uint32_t _size1061; - ::apache::thrift::protocol::TType _etype1064; - xfer += iprot->readListBegin(_etype1064, _size1061); - this->warnings.resize(_size1061); - uint32_t _i1065; - for (_i1065 = 0; _i1065 < _size1061; ++_i1065) + uint32_t _size1085; + ::apache::thrift::protocol::TType _etype1088; + xfer += iprot->readListBegin(_etype1088, _size1085); + this->warnings.resize(_size1085); + uint32_t _i1089; + for (_i1089 = 0; _i1089 < _size1085; ++_i1089) { - xfer += iprot->readString(this->warnings[_i1065]); + xfer += iprot->readString(this->warnings[_i1089]); } xfer += iprot->readListEnd(); } @@ -27215,10 +27808,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 _iter1066; - for (_iter1066 = this->errors.begin(); _iter1066 != this->errors.end(); ++_iter1066) + std::vector ::const_iterator _iter1090; + for (_iter1090 = this->errors.begin(); _iter1090 != this->errors.end(); ++_iter1090) { - xfer += oprot->writeString((*_iter1066)); + xfer += oprot->writeString((*_iter1090)); } xfer += oprot->writeListEnd(); } @@ -27228,10 +27821,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 _iter1067; - for (_iter1067 = this->warnings.begin(); _iter1067 != this->warnings.end(); ++_iter1067) + std::vector ::const_iterator _iter1091; + for (_iter1091 = this->warnings.begin(); _iter1091 != this->warnings.end(); ++_iter1091) { - xfer += oprot->writeString((*_iter1067)); + xfer += oprot->writeString((*_iter1091)); } xfer += oprot->writeListEnd(); } @@ -27249,15 +27842,15 @@ void swap(WMValidateResourcePlanResponse &a, WMValidateResourcePlanResponse &b) swap(a.__isset, b.__isset); } -WMValidateResourcePlanResponse::WMValidateResourcePlanResponse(const WMValidateResourcePlanResponse& other1068) { - errors = other1068.errors; - warnings = other1068.warnings; - __isset = other1068.__isset; +WMValidateResourcePlanResponse::WMValidateResourcePlanResponse(const WMValidateResourcePlanResponse& other1092) { + errors = other1092.errors; + warnings = other1092.warnings; + __isset = other1092.__isset; } -WMValidateResourcePlanResponse& WMValidateResourcePlanResponse::operator=(const WMValidateResourcePlanResponse& other1069) { - errors = other1069.errors; - warnings = other1069.warnings; - __isset = other1069.__isset; +WMValidateResourcePlanResponse& WMValidateResourcePlanResponse::operator=(const WMValidateResourcePlanResponse& other1093) { + errors = other1093.errors; + warnings = other1093.warnings; + __isset = other1093.__isset; return *this; } void WMValidateResourcePlanResponse::printTo(std::ostream& out) const { @@ -27340,13 +27933,13 @@ void swap(WMDropResourcePlanRequest &a, WMDropResourcePlanRequest &b) { swap(a.__isset, b.__isset); } -WMDropResourcePlanRequest::WMDropResourcePlanRequest(const WMDropResourcePlanRequest& other1070) { - resourcePlanName = other1070.resourcePlanName; - __isset = other1070.__isset; +WMDropResourcePlanRequest::WMDropResourcePlanRequest(const WMDropResourcePlanRequest& other1094) { + resourcePlanName = other1094.resourcePlanName; + __isset = other1094.__isset; } -WMDropResourcePlanRequest& WMDropResourcePlanRequest::operator=(const WMDropResourcePlanRequest& other1071) { - resourcePlanName = other1071.resourcePlanName; - __isset = other1071.__isset; +WMDropResourcePlanRequest& WMDropResourcePlanRequest::operator=(const WMDropResourcePlanRequest& other1095) { + resourcePlanName = other1095.resourcePlanName; + __isset = other1095.__isset; return *this; } void WMDropResourcePlanRequest::printTo(std::ostream& out) const { @@ -27405,11 +27998,11 @@ void swap(WMDropResourcePlanResponse &a, WMDropResourcePlanResponse &b) { (void) b; } -WMDropResourcePlanResponse::WMDropResourcePlanResponse(const WMDropResourcePlanResponse& other1072) { - (void) other1072; +WMDropResourcePlanResponse::WMDropResourcePlanResponse(const WMDropResourcePlanResponse& other1096) { + (void) other1096; } -WMDropResourcePlanResponse& WMDropResourcePlanResponse::operator=(const WMDropResourcePlanResponse& other1073) { - (void) other1073; +WMDropResourcePlanResponse& WMDropResourcePlanResponse::operator=(const WMDropResourcePlanResponse& other1097) { + (void) other1097; return *this; } void WMDropResourcePlanResponse::printTo(std::ostream& out) const { @@ -27490,13 +28083,13 @@ void swap(WMCreateTriggerRequest &a, WMCreateTriggerRequest &b) { swap(a.__isset, b.__isset); } -WMCreateTriggerRequest::WMCreateTriggerRequest(const WMCreateTriggerRequest& other1074) { - trigger = other1074.trigger; - __isset = other1074.__isset; +WMCreateTriggerRequest::WMCreateTriggerRequest(const WMCreateTriggerRequest& other1098) { + trigger = other1098.trigger; + __isset = other1098.__isset; } -WMCreateTriggerRequest& WMCreateTriggerRequest::operator=(const WMCreateTriggerRequest& other1075) { - trigger = other1075.trigger; - __isset = other1075.__isset; +WMCreateTriggerRequest& WMCreateTriggerRequest::operator=(const WMCreateTriggerRequest& other1099) { + trigger = other1099.trigger; + __isset = other1099.__isset; return *this; } void WMCreateTriggerRequest::printTo(std::ostream& out) const { @@ -27555,11 +28148,11 @@ void swap(WMCreateTriggerResponse &a, WMCreateTriggerResponse &b) { (void) b; } -WMCreateTriggerResponse::WMCreateTriggerResponse(const WMCreateTriggerResponse& other1076) { - (void) other1076; +WMCreateTriggerResponse::WMCreateTriggerResponse(const WMCreateTriggerResponse& other1100) { + (void) other1100; } -WMCreateTriggerResponse& WMCreateTriggerResponse::operator=(const WMCreateTriggerResponse& other1077) { - (void) other1077; +WMCreateTriggerResponse& WMCreateTriggerResponse::operator=(const WMCreateTriggerResponse& other1101) { + (void) other1101; return *this; } void WMCreateTriggerResponse::printTo(std::ostream& out) const { @@ -27640,13 +28233,13 @@ void swap(WMAlterTriggerRequest &a, WMAlterTriggerRequest &b) { swap(a.__isset, b.__isset); } -WMAlterTriggerRequest::WMAlterTriggerRequest(const WMAlterTriggerRequest& other1078) { - trigger = other1078.trigger; - __isset = other1078.__isset; +WMAlterTriggerRequest::WMAlterTriggerRequest(const WMAlterTriggerRequest& other1102) { + trigger = other1102.trigger; + __isset = other1102.__isset; } -WMAlterTriggerRequest& WMAlterTriggerRequest::operator=(const WMAlterTriggerRequest& other1079) { - trigger = other1079.trigger; - __isset = other1079.__isset; +WMAlterTriggerRequest& WMAlterTriggerRequest::operator=(const WMAlterTriggerRequest& other1103) { + trigger = other1103.trigger; + __isset = other1103.__isset; return *this; } void WMAlterTriggerRequest::printTo(std::ostream& out) const { @@ -27705,11 +28298,11 @@ void swap(WMAlterTriggerResponse &a, WMAlterTriggerResponse &b) { (void) b; } -WMAlterTriggerResponse::WMAlterTriggerResponse(const WMAlterTriggerResponse& other1080) { - (void) other1080; +WMAlterTriggerResponse::WMAlterTriggerResponse(const WMAlterTriggerResponse& other1104) { + (void) other1104; } -WMAlterTriggerResponse& WMAlterTriggerResponse::operator=(const WMAlterTriggerResponse& other1081) { - (void) other1081; +WMAlterTriggerResponse& WMAlterTriggerResponse::operator=(const WMAlterTriggerResponse& other1105) { + (void) other1105; return *this; } void WMAlterTriggerResponse::printTo(std::ostream& out) const { @@ -27809,15 +28402,15 @@ void swap(WMDropTriggerRequest &a, WMDropTriggerRequest &b) { swap(a.__isset, b.__isset); } -WMDropTriggerRequest::WMDropTriggerRequest(const WMDropTriggerRequest& other1082) { - resourcePlanName = other1082.resourcePlanName; - triggerName = other1082.triggerName; - __isset = other1082.__isset; +WMDropTriggerRequest::WMDropTriggerRequest(const WMDropTriggerRequest& other1106) { + resourcePlanName = other1106.resourcePlanName; + triggerName = other1106.triggerName; + __isset = other1106.__isset; } -WMDropTriggerRequest& WMDropTriggerRequest::operator=(const WMDropTriggerRequest& other1083) { - resourcePlanName = other1083.resourcePlanName; - triggerName = other1083.triggerName; - __isset = other1083.__isset; +WMDropTriggerRequest& WMDropTriggerRequest::operator=(const WMDropTriggerRequest& other1107) { + resourcePlanName = other1107.resourcePlanName; + triggerName = other1107.triggerName; + __isset = other1107.__isset; return *this; } void WMDropTriggerRequest::printTo(std::ostream& out) const { @@ -27877,11 +28470,11 @@ void swap(WMDropTriggerResponse &a, WMDropTriggerResponse &b) { (void) b; } -WMDropTriggerResponse::WMDropTriggerResponse(const WMDropTriggerResponse& other1084) { - (void) other1084; +WMDropTriggerResponse::WMDropTriggerResponse(const WMDropTriggerResponse& other1108) { + (void) other1108; } -WMDropTriggerResponse& WMDropTriggerResponse::operator=(const WMDropTriggerResponse& other1085) { - (void) other1085; +WMDropTriggerResponse& WMDropTriggerResponse::operator=(const WMDropTriggerResponse& other1109) { + (void) other1109; return *this; } void WMDropTriggerResponse::printTo(std::ostream& out) const { @@ -27962,13 +28555,13 @@ void swap(WMGetTriggersForResourePlanRequest &a, WMGetTriggersForResourePlanRequ swap(a.__isset, b.__isset); } -WMGetTriggersForResourePlanRequest::WMGetTriggersForResourePlanRequest(const WMGetTriggersForResourePlanRequest& other1086) { - resourcePlanName = other1086.resourcePlanName; - __isset = other1086.__isset; +WMGetTriggersForResourePlanRequest::WMGetTriggersForResourePlanRequest(const WMGetTriggersForResourePlanRequest& other1110) { + resourcePlanName = other1110.resourcePlanName; + __isset = other1110.__isset; } -WMGetTriggersForResourePlanRequest& WMGetTriggersForResourePlanRequest::operator=(const WMGetTriggersForResourePlanRequest& other1087) { - resourcePlanName = other1087.resourcePlanName; - __isset = other1087.__isset; +WMGetTriggersForResourePlanRequest& WMGetTriggersForResourePlanRequest::operator=(const WMGetTriggersForResourePlanRequest& other1111) { + resourcePlanName = other1111.resourcePlanName; + __isset = other1111.__isset; return *this; } void WMGetTriggersForResourePlanRequest::printTo(std::ostream& out) const { @@ -28013,14 +28606,14 @@ uint32_t WMGetTriggersForResourePlanResponse::read(::apache::thrift::protocol::T if (ftype == ::apache::thrift::protocol::T_LIST) { { this->triggers.clear(); - uint32_t _size1088; - ::apache::thrift::protocol::TType _etype1091; - xfer += iprot->readListBegin(_etype1091, _size1088); - this->triggers.resize(_size1088); - uint32_t _i1092; - for (_i1092 = 0; _i1092 < _size1088; ++_i1092) + uint32_t _size1112; + ::apache::thrift::protocol::TType _etype1115; + xfer += iprot->readListBegin(_etype1115, _size1112); + this->triggers.resize(_size1112); + uint32_t _i1116; + for (_i1116 = 0; _i1116 < _size1112; ++_i1116) { - xfer += this->triggers[_i1092].read(iprot); + xfer += this->triggers[_i1116].read(iprot); } xfer += iprot->readListEnd(); } @@ -28050,10 +28643,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 _iter1093; - for (_iter1093 = this->triggers.begin(); _iter1093 != this->triggers.end(); ++_iter1093) + std::vector ::const_iterator _iter1117; + for (_iter1117 = this->triggers.begin(); _iter1117 != this->triggers.end(); ++_iter1117) { - xfer += (*_iter1093).write(oprot); + xfer += (*_iter1117).write(oprot); } xfer += oprot->writeListEnd(); } @@ -28070,13 +28663,13 @@ void swap(WMGetTriggersForResourePlanResponse &a, WMGetTriggersForResourePlanRes swap(a.__isset, b.__isset); } -WMGetTriggersForResourePlanResponse::WMGetTriggersForResourePlanResponse(const WMGetTriggersForResourePlanResponse& other1094) { - triggers = other1094.triggers; - __isset = other1094.__isset; +WMGetTriggersForResourePlanResponse::WMGetTriggersForResourePlanResponse(const WMGetTriggersForResourePlanResponse& other1118) { + triggers = other1118.triggers; + __isset = other1118.__isset; } -WMGetTriggersForResourePlanResponse& WMGetTriggersForResourePlanResponse::operator=(const WMGetTriggersForResourePlanResponse& other1095) { - triggers = other1095.triggers; - __isset = other1095.__isset; +WMGetTriggersForResourePlanResponse& WMGetTriggersForResourePlanResponse::operator=(const WMGetTriggersForResourePlanResponse& other1119) { + triggers = other1119.triggers; + __isset = other1119.__isset; return *this; } void WMGetTriggersForResourePlanResponse::printTo(std::ostream& out) const { @@ -28158,13 +28751,13 @@ void swap(WMCreatePoolRequest &a, WMCreatePoolRequest &b) { swap(a.__isset, b.__isset); } -WMCreatePoolRequest::WMCreatePoolRequest(const WMCreatePoolRequest& other1096) { - pool = other1096.pool; - __isset = other1096.__isset; +WMCreatePoolRequest::WMCreatePoolRequest(const WMCreatePoolRequest& other1120) { + pool = other1120.pool; + __isset = other1120.__isset; } -WMCreatePoolRequest& WMCreatePoolRequest::operator=(const WMCreatePoolRequest& other1097) { - pool = other1097.pool; - __isset = other1097.__isset; +WMCreatePoolRequest& WMCreatePoolRequest::operator=(const WMCreatePoolRequest& other1121) { + pool = other1121.pool; + __isset = other1121.__isset; return *this; } void WMCreatePoolRequest::printTo(std::ostream& out) const { @@ -28223,11 +28816,11 @@ void swap(WMCreatePoolResponse &a, WMCreatePoolResponse &b) { (void) b; } -WMCreatePoolResponse::WMCreatePoolResponse(const WMCreatePoolResponse& other1098) { - (void) other1098; +WMCreatePoolResponse::WMCreatePoolResponse(const WMCreatePoolResponse& other1122) { + (void) other1122; } -WMCreatePoolResponse& WMCreatePoolResponse::operator=(const WMCreatePoolResponse& other1099) { - (void) other1099; +WMCreatePoolResponse& WMCreatePoolResponse::operator=(const WMCreatePoolResponse& other1123) { + (void) other1123; return *this; } void WMCreatePoolResponse::printTo(std::ostream& out) const { @@ -28327,15 +28920,15 @@ void swap(WMAlterPoolRequest &a, WMAlterPoolRequest &b) { swap(a.__isset, b.__isset); } -WMAlterPoolRequest::WMAlterPoolRequest(const WMAlterPoolRequest& other1100) { - pool = other1100.pool; - poolPath = other1100.poolPath; - __isset = other1100.__isset; +WMAlterPoolRequest::WMAlterPoolRequest(const WMAlterPoolRequest& other1124) { + pool = other1124.pool; + poolPath = other1124.poolPath; + __isset = other1124.__isset; } -WMAlterPoolRequest& WMAlterPoolRequest::operator=(const WMAlterPoolRequest& other1101) { - pool = other1101.pool; - poolPath = other1101.poolPath; - __isset = other1101.__isset; +WMAlterPoolRequest& WMAlterPoolRequest::operator=(const WMAlterPoolRequest& other1125) { + pool = other1125.pool; + poolPath = other1125.poolPath; + __isset = other1125.__isset; return *this; } void WMAlterPoolRequest::printTo(std::ostream& out) const { @@ -28395,11 +28988,11 @@ void swap(WMAlterPoolResponse &a, WMAlterPoolResponse &b) { (void) b; } -WMAlterPoolResponse::WMAlterPoolResponse(const WMAlterPoolResponse& other1102) { - (void) other1102; +WMAlterPoolResponse::WMAlterPoolResponse(const WMAlterPoolResponse& other1126) { + (void) other1126; } -WMAlterPoolResponse& WMAlterPoolResponse::operator=(const WMAlterPoolResponse& other1103) { - (void) other1103; +WMAlterPoolResponse& WMAlterPoolResponse::operator=(const WMAlterPoolResponse& other1127) { + (void) other1127; return *this; } void WMAlterPoolResponse::printTo(std::ostream& out) const { @@ -28499,15 +29092,15 @@ void swap(WMDropPoolRequest &a, WMDropPoolRequest &b) { swap(a.__isset, b.__isset); } -WMDropPoolRequest::WMDropPoolRequest(const WMDropPoolRequest& other1104) { - resourcePlanName = other1104.resourcePlanName; - poolPath = other1104.poolPath; - __isset = other1104.__isset; +WMDropPoolRequest::WMDropPoolRequest(const WMDropPoolRequest& other1128) { + resourcePlanName = other1128.resourcePlanName; + poolPath = other1128.poolPath; + __isset = other1128.__isset; } -WMDropPoolRequest& WMDropPoolRequest::operator=(const WMDropPoolRequest& other1105) { - resourcePlanName = other1105.resourcePlanName; - poolPath = other1105.poolPath; - __isset = other1105.__isset; +WMDropPoolRequest& WMDropPoolRequest::operator=(const WMDropPoolRequest& other1129) { + resourcePlanName = other1129.resourcePlanName; + poolPath = other1129.poolPath; + __isset = other1129.__isset; return *this; } void WMDropPoolRequest::printTo(std::ostream& out) const { @@ -28567,11 +29160,11 @@ void swap(WMDropPoolResponse &a, WMDropPoolResponse &b) { (void) b; } -WMDropPoolResponse::WMDropPoolResponse(const WMDropPoolResponse& other1106) { - (void) other1106; +WMDropPoolResponse::WMDropPoolResponse(const WMDropPoolResponse& other1130) { + (void) other1130; } -WMDropPoolResponse& WMDropPoolResponse::operator=(const WMDropPoolResponse& other1107) { - (void) other1107; +WMDropPoolResponse& WMDropPoolResponse::operator=(const WMDropPoolResponse& other1131) { + (void) other1131; return *this; } void WMDropPoolResponse::printTo(std::ostream& out) const { @@ -28671,15 +29264,15 @@ void swap(WMCreateOrUpdateMappingRequest &a, WMCreateOrUpdateMappingRequest &b) swap(a.__isset, b.__isset); } -WMCreateOrUpdateMappingRequest::WMCreateOrUpdateMappingRequest(const WMCreateOrUpdateMappingRequest& other1108) { - mapping = other1108.mapping; - update = other1108.update; - __isset = other1108.__isset; +WMCreateOrUpdateMappingRequest::WMCreateOrUpdateMappingRequest(const WMCreateOrUpdateMappingRequest& other1132) { + mapping = other1132.mapping; + update = other1132.update; + __isset = other1132.__isset; } -WMCreateOrUpdateMappingRequest& WMCreateOrUpdateMappingRequest::operator=(const WMCreateOrUpdateMappingRequest& other1109) { - mapping = other1109.mapping; - update = other1109.update; - __isset = other1109.__isset; +WMCreateOrUpdateMappingRequest& WMCreateOrUpdateMappingRequest::operator=(const WMCreateOrUpdateMappingRequest& other1133) { + mapping = other1133.mapping; + update = other1133.update; + __isset = other1133.__isset; return *this; } void WMCreateOrUpdateMappingRequest::printTo(std::ostream& out) const { @@ -28739,11 +29332,11 @@ void swap(WMCreateOrUpdateMappingResponse &a, WMCreateOrUpdateMappingResponse &b (void) b; } -WMCreateOrUpdateMappingResponse::WMCreateOrUpdateMappingResponse(const WMCreateOrUpdateMappingResponse& other1110) { - (void) other1110; +WMCreateOrUpdateMappingResponse::WMCreateOrUpdateMappingResponse(const WMCreateOrUpdateMappingResponse& other1134) { + (void) other1134; } -WMCreateOrUpdateMappingResponse& WMCreateOrUpdateMappingResponse::operator=(const WMCreateOrUpdateMappingResponse& other1111) { - (void) other1111; +WMCreateOrUpdateMappingResponse& WMCreateOrUpdateMappingResponse::operator=(const WMCreateOrUpdateMappingResponse& other1135) { + (void) other1135; return *this; } void WMCreateOrUpdateMappingResponse::printTo(std::ostream& out) const { @@ -28824,13 +29417,13 @@ void swap(WMDropMappingRequest &a, WMDropMappingRequest &b) { swap(a.__isset, b.__isset); } -WMDropMappingRequest::WMDropMappingRequest(const WMDropMappingRequest& other1112) { - mapping = other1112.mapping; - __isset = other1112.__isset; +WMDropMappingRequest::WMDropMappingRequest(const WMDropMappingRequest& other1136) { + mapping = other1136.mapping; + __isset = other1136.__isset; } -WMDropMappingRequest& WMDropMappingRequest::operator=(const WMDropMappingRequest& other1113) { - mapping = other1113.mapping; - __isset = other1113.__isset; +WMDropMappingRequest& WMDropMappingRequest::operator=(const WMDropMappingRequest& other1137) { + mapping = other1137.mapping; + __isset = other1137.__isset; return *this; } void WMDropMappingRequest::printTo(std::ostream& out) const { @@ -28889,11 +29482,11 @@ void swap(WMDropMappingResponse &a, WMDropMappingResponse &b) { (void) b; } -WMDropMappingResponse::WMDropMappingResponse(const WMDropMappingResponse& other1114) { - (void) other1114; +WMDropMappingResponse::WMDropMappingResponse(const WMDropMappingResponse& other1138) { + (void) other1138; } -WMDropMappingResponse& WMDropMappingResponse::operator=(const WMDropMappingResponse& other1115) { - (void) other1115; +WMDropMappingResponse& WMDropMappingResponse::operator=(const WMDropMappingResponse& other1139) { + (void) other1139; return *this; } void WMDropMappingResponse::printTo(std::ostream& out) const { @@ -29031,19 +29624,19 @@ void swap(WMCreateOrDropTriggerToPoolMappingRequest &a, WMCreateOrDropTriggerToP swap(a.__isset, b.__isset); } -WMCreateOrDropTriggerToPoolMappingRequest::WMCreateOrDropTriggerToPoolMappingRequest(const WMCreateOrDropTriggerToPoolMappingRequest& other1116) { - resourcePlanName = other1116.resourcePlanName; - triggerName = other1116.triggerName; - poolPath = other1116.poolPath; - drop = other1116.drop; - __isset = other1116.__isset; +WMCreateOrDropTriggerToPoolMappingRequest::WMCreateOrDropTriggerToPoolMappingRequest(const WMCreateOrDropTriggerToPoolMappingRequest& other1140) { + resourcePlanName = other1140.resourcePlanName; + triggerName = other1140.triggerName; + poolPath = other1140.poolPath; + drop = other1140.drop; + __isset = other1140.__isset; } -WMCreateOrDropTriggerToPoolMappingRequest& WMCreateOrDropTriggerToPoolMappingRequest::operator=(const WMCreateOrDropTriggerToPoolMappingRequest& other1117) { - resourcePlanName = other1117.resourcePlanName; - triggerName = other1117.triggerName; - poolPath = other1117.poolPath; - drop = other1117.drop; - __isset = other1117.__isset; +WMCreateOrDropTriggerToPoolMappingRequest& WMCreateOrDropTriggerToPoolMappingRequest::operator=(const WMCreateOrDropTriggerToPoolMappingRequest& other1141) { + resourcePlanName = other1141.resourcePlanName; + triggerName = other1141.triggerName; + poolPath = other1141.poolPath; + drop = other1141.drop; + __isset = other1141.__isset; return *this; } void WMCreateOrDropTriggerToPoolMappingRequest::printTo(std::ostream& out) const { @@ -29105,11 +29698,11 @@ void swap(WMCreateOrDropTriggerToPoolMappingResponse &a, WMCreateOrDropTriggerTo (void) b; } -WMCreateOrDropTriggerToPoolMappingResponse::WMCreateOrDropTriggerToPoolMappingResponse(const WMCreateOrDropTriggerToPoolMappingResponse& other1118) { - (void) other1118; +WMCreateOrDropTriggerToPoolMappingResponse::WMCreateOrDropTriggerToPoolMappingResponse(const WMCreateOrDropTriggerToPoolMappingResponse& other1142) { + (void) other1142; } -WMCreateOrDropTriggerToPoolMappingResponse& WMCreateOrDropTriggerToPoolMappingResponse::operator=(const WMCreateOrDropTriggerToPoolMappingResponse& other1119) { - (void) other1119; +WMCreateOrDropTriggerToPoolMappingResponse& WMCreateOrDropTriggerToPoolMappingResponse::operator=(const WMCreateOrDropTriggerToPoolMappingResponse& other1143) { + (void) other1143; return *this; } void WMCreateOrDropTriggerToPoolMappingResponse::printTo(std::ostream& out) const { @@ -29184,9 +29777,9 @@ uint32_t ISchema::read(::apache::thrift::protocol::TProtocol* iprot) { { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1120; - xfer += iprot->readI32(ecast1120); - this->schemaType = (SchemaType::type)ecast1120; + int32_t ecast1144; + xfer += iprot->readI32(ecast1144); + this->schemaType = (SchemaType::type)ecast1144; this->__isset.schemaType = true; } else { xfer += iprot->skip(ftype); @@ -29218,9 +29811,9 @@ uint32_t ISchema::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1121; - xfer += iprot->readI32(ecast1121); - this->compatibility = (SchemaCompatibility::type)ecast1121; + int32_t ecast1145; + xfer += iprot->readI32(ecast1145); + this->compatibility = (SchemaCompatibility::type)ecast1145; this->__isset.compatibility = true; } else { xfer += iprot->skip(ftype); @@ -29228,9 +29821,9 @@ uint32_t ISchema::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 6: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1122; - xfer += iprot->readI32(ecast1122); - this->validationLevel = (SchemaValidation::type)ecast1122; + int32_t ecast1146; + xfer += iprot->readI32(ecast1146); + this->validationLevel = (SchemaValidation::type)ecast1146; this->__isset.validationLevel = true; } else { xfer += iprot->skip(ftype); @@ -29334,29 +29927,29 @@ void swap(ISchema &a, ISchema &b) { swap(a.__isset, b.__isset); } -ISchema::ISchema(const ISchema& other1123) { - schemaType = other1123.schemaType; - name = other1123.name; - catName = other1123.catName; - dbName = other1123.dbName; - compatibility = other1123.compatibility; - validationLevel = other1123.validationLevel; - canEvolve = other1123.canEvolve; - schemaGroup = other1123.schemaGroup; - description = other1123.description; - __isset = other1123.__isset; -} -ISchema& ISchema::operator=(const ISchema& other1124) { - schemaType = other1124.schemaType; - name = other1124.name; - catName = other1124.catName; - dbName = other1124.dbName; - compatibility = other1124.compatibility; - validationLevel = other1124.validationLevel; - canEvolve = other1124.canEvolve; - schemaGroup = other1124.schemaGroup; - description = other1124.description; - __isset = other1124.__isset; +ISchema::ISchema(const ISchema& other1147) { + schemaType = other1147.schemaType; + name = other1147.name; + catName = other1147.catName; + dbName = other1147.dbName; + compatibility = other1147.compatibility; + validationLevel = other1147.validationLevel; + canEvolve = other1147.canEvolve; + schemaGroup = other1147.schemaGroup; + description = other1147.description; + __isset = other1147.__isset; +} +ISchema& ISchema::operator=(const ISchema& other1148) { + schemaType = other1148.schemaType; + name = other1148.name; + catName = other1148.catName; + dbName = other1148.dbName; + compatibility = other1148.compatibility; + validationLevel = other1148.validationLevel; + canEvolve = other1148.canEvolve; + schemaGroup = other1148.schemaGroup; + description = other1148.description; + __isset = other1148.__isset; return *this; } void ISchema::printTo(std::ostream& out) const { @@ -29478,17 +30071,17 @@ void swap(ISchemaName &a, ISchemaName &b) { swap(a.__isset, b.__isset); } -ISchemaName::ISchemaName(const ISchemaName& other1125) { - catName = other1125.catName; - dbName = other1125.dbName; - schemaName = other1125.schemaName; - __isset = other1125.__isset; +ISchemaName::ISchemaName(const ISchemaName& other1149) { + catName = other1149.catName; + dbName = other1149.dbName; + schemaName = other1149.schemaName; + __isset = other1149.__isset; } -ISchemaName& ISchemaName::operator=(const ISchemaName& other1126) { - catName = other1126.catName; - dbName = other1126.dbName; - schemaName = other1126.schemaName; - __isset = other1126.__isset; +ISchemaName& ISchemaName::operator=(const ISchemaName& other1150) { + catName = other1150.catName; + dbName = other1150.dbName; + schemaName = other1150.schemaName; + __isset = other1150.__isset; return *this; } void ISchemaName::printTo(std::ostream& out) const { @@ -29587,15 +30180,15 @@ void swap(AlterISchemaRequest &a, AlterISchemaRequest &b) { swap(a.__isset, b.__isset); } -AlterISchemaRequest::AlterISchemaRequest(const AlterISchemaRequest& other1127) { - name = other1127.name; - newSchema = other1127.newSchema; - __isset = other1127.__isset; +AlterISchemaRequest::AlterISchemaRequest(const AlterISchemaRequest& other1151) { + name = other1151.name; + newSchema = other1151.newSchema; + __isset = other1151.__isset; } -AlterISchemaRequest& AlterISchemaRequest::operator=(const AlterISchemaRequest& other1128) { - name = other1128.name; - newSchema = other1128.newSchema; - __isset = other1128.__isset; +AlterISchemaRequest& AlterISchemaRequest::operator=(const AlterISchemaRequest& other1152) { + name = other1152.name; + newSchema = other1152.newSchema; + __isset = other1152.__isset; return *this; } void AlterISchemaRequest::printTo(std::ostream& out) const { @@ -29706,14 +30299,14 @@ uint32_t SchemaVersion::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->cols.clear(); - uint32_t _size1129; - ::apache::thrift::protocol::TType _etype1132; - xfer += iprot->readListBegin(_etype1132, _size1129); - this->cols.resize(_size1129); - uint32_t _i1133; - for (_i1133 = 0; _i1133 < _size1129; ++_i1133) + uint32_t _size1153; + ::apache::thrift::protocol::TType _etype1156; + xfer += iprot->readListBegin(_etype1156, _size1153); + this->cols.resize(_size1153); + uint32_t _i1157; + for (_i1157 = 0; _i1157 < _size1153; ++_i1157) { - xfer += this->cols[_i1133].read(iprot); + xfer += this->cols[_i1157].read(iprot); } xfer += iprot->readListEnd(); } @@ -29724,9 +30317,9 @@ uint32_t SchemaVersion::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1134; - xfer += iprot->readI32(ecast1134); - this->state = (SchemaVersionState::type)ecast1134; + int32_t ecast1158; + xfer += iprot->readI32(ecast1158); + this->state = (SchemaVersionState::type)ecast1158; this->__isset.state = true; } else { xfer += iprot->skip(ftype); @@ -29804,10 +30397,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 _iter1135; - for (_iter1135 = this->cols.begin(); _iter1135 != this->cols.end(); ++_iter1135) + std::vector ::const_iterator _iter1159; + for (_iter1159 = this->cols.begin(); _iter1159 != this->cols.end(); ++_iter1159) { - xfer += (*_iter1135).write(oprot); + xfer += (*_iter1159).write(oprot); } xfer += oprot->writeListEnd(); } @@ -29863,31 +30456,31 @@ void swap(SchemaVersion &a, SchemaVersion &b) { swap(a.__isset, b.__isset); } -SchemaVersion::SchemaVersion(const SchemaVersion& other1136) { - schema = other1136.schema; - version = other1136.version; - createdAt = other1136.createdAt; - cols = other1136.cols; - state = other1136.state; - description = other1136.description; - schemaText = other1136.schemaText; - fingerprint = other1136.fingerprint; - name = other1136.name; - serDe = other1136.serDe; - __isset = other1136.__isset; -} -SchemaVersion& SchemaVersion::operator=(const SchemaVersion& other1137) { - schema = other1137.schema; - version = other1137.version; - createdAt = other1137.createdAt; - cols = other1137.cols; - state = other1137.state; - description = other1137.description; - schemaText = other1137.schemaText; - fingerprint = other1137.fingerprint; - name = other1137.name; - serDe = other1137.serDe; - __isset = other1137.__isset; +SchemaVersion::SchemaVersion(const SchemaVersion& other1160) { + schema = other1160.schema; + version = other1160.version; + createdAt = other1160.createdAt; + cols = other1160.cols; + state = other1160.state; + description = other1160.description; + schemaText = other1160.schemaText; + fingerprint = other1160.fingerprint; + name = other1160.name; + serDe = other1160.serDe; + __isset = other1160.__isset; +} +SchemaVersion& SchemaVersion::operator=(const SchemaVersion& other1161) { + schema = other1161.schema; + version = other1161.version; + createdAt = other1161.createdAt; + cols = other1161.cols; + state = other1161.state; + description = other1161.description; + schemaText = other1161.schemaText; + fingerprint = other1161.fingerprint; + name = other1161.name; + serDe = other1161.serDe; + __isset = other1161.__isset; return *this; } void SchemaVersion::printTo(std::ostream& out) const { @@ -29993,15 +30586,15 @@ void swap(SchemaVersionDescriptor &a, SchemaVersionDescriptor &b) { swap(a.__isset, b.__isset); } -SchemaVersionDescriptor::SchemaVersionDescriptor(const SchemaVersionDescriptor& other1138) { - schema = other1138.schema; - version = other1138.version; - __isset = other1138.__isset; +SchemaVersionDescriptor::SchemaVersionDescriptor(const SchemaVersionDescriptor& other1162) { + schema = other1162.schema; + version = other1162.version; + __isset = other1162.__isset; } -SchemaVersionDescriptor& SchemaVersionDescriptor::operator=(const SchemaVersionDescriptor& other1139) { - schema = other1139.schema; - version = other1139.version; - __isset = other1139.__isset; +SchemaVersionDescriptor& SchemaVersionDescriptor::operator=(const SchemaVersionDescriptor& other1163) { + schema = other1163.schema; + version = other1163.version; + __isset = other1163.__isset; return *this; } void SchemaVersionDescriptor::printTo(std::ostream& out) const { @@ -30122,17 +30715,17 @@ void swap(FindSchemasByColsRqst &a, FindSchemasByColsRqst &b) { swap(a.__isset, b.__isset); } -FindSchemasByColsRqst::FindSchemasByColsRqst(const FindSchemasByColsRqst& other1140) { - colName = other1140.colName; - colNamespace = other1140.colNamespace; - type = other1140.type; - __isset = other1140.__isset; +FindSchemasByColsRqst::FindSchemasByColsRqst(const FindSchemasByColsRqst& other1164) { + colName = other1164.colName; + colNamespace = other1164.colNamespace; + type = other1164.type; + __isset = other1164.__isset; } -FindSchemasByColsRqst& FindSchemasByColsRqst::operator=(const FindSchemasByColsRqst& other1141) { - colName = other1141.colName; - colNamespace = other1141.colNamespace; - type = other1141.type; - __isset = other1141.__isset; +FindSchemasByColsRqst& FindSchemasByColsRqst::operator=(const FindSchemasByColsRqst& other1165) { + colName = other1165.colName; + colNamespace = other1165.colNamespace; + type = other1165.type; + __isset = other1165.__isset; return *this; } void FindSchemasByColsRqst::printTo(std::ostream& out) const { @@ -30178,14 +30771,14 @@ uint32_t FindSchemasByColsResp::read(::apache::thrift::protocol::TProtocol* ipro if (ftype == ::apache::thrift::protocol::T_LIST) { { this->schemaVersions.clear(); - uint32_t _size1142; - ::apache::thrift::protocol::TType _etype1145; - xfer += iprot->readListBegin(_etype1145, _size1142); - this->schemaVersions.resize(_size1142); - uint32_t _i1146; - for (_i1146 = 0; _i1146 < _size1142; ++_i1146) + uint32_t _size1166; + ::apache::thrift::protocol::TType _etype1169; + xfer += iprot->readListBegin(_etype1169, _size1166); + this->schemaVersions.resize(_size1166); + uint32_t _i1170; + for (_i1170 = 0; _i1170 < _size1166; ++_i1170) { - xfer += this->schemaVersions[_i1146].read(iprot); + xfer += this->schemaVersions[_i1170].read(iprot); } xfer += iprot->readListEnd(); } @@ -30214,10 +30807,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 _iter1147; - for (_iter1147 = this->schemaVersions.begin(); _iter1147 != this->schemaVersions.end(); ++_iter1147) + std::vector ::const_iterator _iter1171; + for (_iter1171 = this->schemaVersions.begin(); _iter1171 != this->schemaVersions.end(); ++_iter1171) { - xfer += (*_iter1147).write(oprot); + xfer += (*_iter1171).write(oprot); } xfer += oprot->writeListEnd(); } @@ -30234,13 +30827,13 @@ void swap(FindSchemasByColsResp &a, FindSchemasByColsResp &b) { swap(a.__isset, b.__isset); } -FindSchemasByColsResp::FindSchemasByColsResp(const FindSchemasByColsResp& other1148) { - schemaVersions = other1148.schemaVersions; - __isset = other1148.__isset; +FindSchemasByColsResp::FindSchemasByColsResp(const FindSchemasByColsResp& other1172) { + schemaVersions = other1172.schemaVersions; + __isset = other1172.__isset; } -FindSchemasByColsResp& FindSchemasByColsResp::operator=(const FindSchemasByColsResp& other1149) { - schemaVersions = other1149.schemaVersions; - __isset = other1149.__isset; +FindSchemasByColsResp& FindSchemasByColsResp::operator=(const FindSchemasByColsResp& other1173) { + schemaVersions = other1173.schemaVersions; + __isset = other1173.__isset; return *this; } void FindSchemasByColsResp::printTo(std::ostream& out) const { @@ -30337,15 +30930,15 @@ void swap(MapSchemaVersionToSerdeRequest &a, MapSchemaVersionToSerdeRequest &b) swap(a.__isset, b.__isset); } -MapSchemaVersionToSerdeRequest::MapSchemaVersionToSerdeRequest(const MapSchemaVersionToSerdeRequest& other1150) { - schemaVersion = other1150.schemaVersion; - serdeName = other1150.serdeName; - __isset = other1150.__isset; +MapSchemaVersionToSerdeRequest::MapSchemaVersionToSerdeRequest(const MapSchemaVersionToSerdeRequest& other1174) { + schemaVersion = other1174.schemaVersion; + serdeName = other1174.serdeName; + __isset = other1174.__isset; } -MapSchemaVersionToSerdeRequest& MapSchemaVersionToSerdeRequest::operator=(const MapSchemaVersionToSerdeRequest& other1151) { - schemaVersion = other1151.schemaVersion; - serdeName = other1151.serdeName; - __isset = other1151.__isset; +MapSchemaVersionToSerdeRequest& MapSchemaVersionToSerdeRequest::operator=(const MapSchemaVersionToSerdeRequest& other1175) { + schemaVersion = other1175.schemaVersion; + serdeName = other1175.serdeName; + __isset = other1175.__isset; return *this; } void MapSchemaVersionToSerdeRequest::printTo(std::ostream& out) const { @@ -30400,9 +30993,9 @@ uint32_t SetSchemaVersionStateRequest::read(::apache::thrift::protocol::TProtoco break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1152; - xfer += iprot->readI32(ecast1152); - this->state = (SchemaVersionState::type)ecast1152; + int32_t ecast1176; + xfer += iprot->readI32(ecast1176); + this->state = (SchemaVersionState::type)ecast1176; this->__isset.state = true; } else { xfer += iprot->skip(ftype); @@ -30445,15 +31038,15 @@ void swap(SetSchemaVersionStateRequest &a, SetSchemaVersionStateRequest &b) { swap(a.__isset, b.__isset); } -SetSchemaVersionStateRequest::SetSchemaVersionStateRequest(const SetSchemaVersionStateRequest& other1153) { - schemaVersion = other1153.schemaVersion; - state = other1153.state; - __isset = other1153.__isset; +SetSchemaVersionStateRequest::SetSchemaVersionStateRequest(const SetSchemaVersionStateRequest& other1177) { + schemaVersion = other1177.schemaVersion; + state = other1177.state; + __isset = other1177.__isset; } -SetSchemaVersionStateRequest& SetSchemaVersionStateRequest::operator=(const SetSchemaVersionStateRequest& other1154) { - schemaVersion = other1154.schemaVersion; - state = other1154.state; - __isset = other1154.__isset; +SetSchemaVersionStateRequest& SetSchemaVersionStateRequest::operator=(const SetSchemaVersionStateRequest& other1178) { + schemaVersion = other1178.schemaVersion; + state = other1178.state; + __isset = other1178.__isset; return *this; } void SetSchemaVersionStateRequest::printTo(std::ostream& out) const { @@ -30534,13 +31127,13 @@ void swap(GetSerdeRequest &a, GetSerdeRequest &b) { swap(a.__isset, b.__isset); } -GetSerdeRequest::GetSerdeRequest(const GetSerdeRequest& other1155) { - serdeName = other1155.serdeName; - __isset = other1155.__isset; +GetSerdeRequest::GetSerdeRequest(const GetSerdeRequest& other1179) { + serdeName = other1179.serdeName; + __isset = other1179.__isset; } -GetSerdeRequest& GetSerdeRequest::operator=(const GetSerdeRequest& other1156) { - serdeName = other1156.serdeName; - __isset = other1156.__isset; +GetSerdeRequest& GetSerdeRequest::operator=(const GetSerdeRequest& other1180) { + serdeName = other1180.serdeName; + __isset = other1180.__isset; return *this; } void GetSerdeRequest::printTo(std::ostream& out) const { @@ -30662,17 +31255,17 @@ void swap(RuntimeStat &a, RuntimeStat &b) { swap(a.__isset, b.__isset); } -RuntimeStat::RuntimeStat(const RuntimeStat& other1157) { - createTime = other1157.createTime; - weight = other1157.weight; - payload = other1157.payload; - __isset = other1157.__isset; +RuntimeStat::RuntimeStat(const RuntimeStat& other1181) { + createTime = other1181.createTime; + weight = other1181.weight; + payload = other1181.payload; + __isset = other1181.__isset; } -RuntimeStat& RuntimeStat::operator=(const RuntimeStat& other1158) { - createTime = other1158.createTime; - weight = other1158.weight; - payload = other1158.payload; - __isset = other1158.__isset; +RuntimeStat& RuntimeStat::operator=(const RuntimeStat& other1182) { + createTime = other1182.createTime; + weight = other1182.weight; + payload = other1182.payload; + __isset = other1182.__isset; return *this; } void RuntimeStat::printTo(std::ostream& out) const { @@ -30733,11 +31326,11 @@ void swap(GetRuntimeStatsRequest &a, GetRuntimeStatsRequest &b) { (void) b; } -GetRuntimeStatsRequest::GetRuntimeStatsRequest(const GetRuntimeStatsRequest& other1159) { - (void) other1159; +GetRuntimeStatsRequest::GetRuntimeStatsRequest(const GetRuntimeStatsRequest& other1183) { + (void) other1183; } -GetRuntimeStatsRequest& GetRuntimeStatsRequest::operator=(const GetRuntimeStatsRequest& other1160) { - (void) other1160; +GetRuntimeStatsRequest& GetRuntimeStatsRequest::operator=(const GetRuntimeStatsRequest& other1184) { + (void) other1184; return *this; } void GetRuntimeStatsRequest::printTo(std::ostream& out) const { @@ -30816,13 +31409,13 @@ void swap(MetaException &a, MetaException &b) { swap(a.__isset, b.__isset); } -MetaException::MetaException(const MetaException& other1161) : TException() { - message = other1161.message; - __isset = other1161.__isset; +MetaException::MetaException(const MetaException& other1185) : TException() { + message = other1185.message; + __isset = other1185.__isset; } -MetaException& MetaException::operator=(const MetaException& other1162) { - message = other1162.message; - __isset = other1162.__isset; +MetaException& MetaException::operator=(const MetaException& other1186) { + message = other1186.message; + __isset = other1186.__isset; return *this; } void MetaException::printTo(std::ostream& out) const { @@ -30913,13 +31506,13 @@ void swap(UnknownTableException &a, UnknownTableException &b) { swap(a.__isset, b.__isset); } -UnknownTableException::UnknownTableException(const UnknownTableException& other1163) : TException() { - message = other1163.message; - __isset = other1163.__isset; +UnknownTableException::UnknownTableException(const UnknownTableException& other1187) : TException() { + message = other1187.message; + __isset = other1187.__isset; } -UnknownTableException& UnknownTableException::operator=(const UnknownTableException& other1164) { - message = other1164.message; - __isset = other1164.__isset; +UnknownTableException& UnknownTableException::operator=(const UnknownTableException& other1188) { + message = other1188.message; + __isset = other1188.__isset; return *this; } void UnknownTableException::printTo(std::ostream& out) const { @@ -31010,13 +31603,13 @@ void swap(UnknownDBException &a, UnknownDBException &b) { swap(a.__isset, b.__isset); } -UnknownDBException::UnknownDBException(const UnknownDBException& other1165) : TException() { - message = other1165.message; - __isset = other1165.__isset; +UnknownDBException::UnknownDBException(const UnknownDBException& other1189) : TException() { + message = other1189.message; + __isset = other1189.__isset; } -UnknownDBException& UnknownDBException::operator=(const UnknownDBException& other1166) { - message = other1166.message; - __isset = other1166.__isset; +UnknownDBException& UnknownDBException::operator=(const UnknownDBException& other1190) { + message = other1190.message; + __isset = other1190.__isset; return *this; } void UnknownDBException::printTo(std::ostream& out) const { @@ -31107,13 +31700,13 @@ void swap(AlreadyExistsException &a, AlreadyExistsException &b) { swap(a.__isset, b.__isset); } -AlreadyExistsException::AlreadyExistsException(const AlreadyExistsException& other1167) : TException() { - message = other1167.message; - __isset = other1167.__isset; +AlreadyExistsException::AlreadyExistsException(const AlreadyExistsException& other1191) : TException() { + message = other1191.message; + __isset = other1191.__isset; } -AlreadyExistsException& AlreadyExistsException::operator=(const AlreadyExistsException& other1168) { - message = other1168.message; - __isset = other1168.__isset; +AlreadyExistsException& AlreadyExistsException::operator=(const AlreadyExistsException& other1192) { + message = other1192.message; + __isset = other1192.__isset; return *this; } void AlreadyExistsException::printTo(std::ostream& out) const { @@ -31204,13 +31797,13 @@ void swap(InvalidPartitionException &a, InvalidPartitionException &b) { swap(a.__isset, b.__isset); } -InvalidPartitionException::InvalidPartitionException(const InvalidPartitionException& other1169) : TException() { - message = other1169.message; - __isset = other1169.__isset; +InvalidPartitionException::InvalidPartitionException(const InvalidPartitionException& other1193) : TException() { + message = other1193.message; + __isset = other1193.__isset; } -InvalidPartitionException& InvalidPartitionException::operator=(const InvalidPartitionException& other1170) { - message = other1170.message; - __isset = other1170.__isset; +InvalidPartitionException& InvalidPartitionException::operator=(const InvalidPartitionException& other1194) { + message = other1194.message; + __isset = other1194.__isset; return *this; } void InvalidPartitionException::printTo(std::ostream& out) const { @@ -31301,13 +31894,13 @@ void swap(UnknownPartitionException &a, UnknownPartitionException &b) { swap(a.__isset, b.__isset); } -UnknownPartitionException::UnknownPartitionException(const UnknownPartitionException& other1171) : TException() { - message = other1171.message; - __isset = other1171.__isset; +UnknownPartitionException::UnknownPartitionException(const UnknownPartitionException& other1195) : TException() { + message = other1195.message; + __isset = other1195.__isset; } -UnknownPartitionException& UnknownPartitionException::operator=(const UnknownPartitionException& other1172) { - message = other1172.message; - __isset = other1172.__isset; +UnknownPartitionException& UnknownPartitionException::operator=(const UnknownPartitionException& other1196) { + message = other1196.message; + __isset = other1196.__isset; return *this; } void UnknownPartitionException::printTo(std::ostream& out) const { @@ -31398,13 +31991,13 @@ void swap(InvalidObjectException &a, InvalidObjectException &b) { swap(a.__isset, b.__isset); } -InvalidObjectException::InvalidObjectException(const InvalidObjectException& other1173) : TException() { - message = other1173.message; - __isset = other1173.__isset; +InvalidObjectException::InvalidObjectException(const InvalidObjectException& other1197) : TException() { + message = other1197.message; + __isset = other1197.__isset; } -InvalidObjectException& InvalidObjectException::operator=(const InvalidObjectException& other1174) { - message = other1174.message; - __isset = other1174.__isset; +InvalidObjectException& InvalidObjectException::operator=(const InvalidObjectException& other1198) { + message = other1198.message; + __isset = other1198.__isset; return *this; } void InvalidObjectException::printTo(std::ostream& out) const { @@ -31495,13 +32088,13 @@ void swap(NoSuchObjectException &a, NoSuchObjectException &b) { swap(a.__isset, b.__isset); } -NoSuchObjectException::NoSuchObjectException(const NoSuchObjectException& other1175) : TException() { - message = other1175.message; - __isset = other1175.__isset; +NoSuchObjectException::NoSuchObjectException(const NoSuchObjectException& other1199) : TException() { + message = other1199.message; + __isset = other1199.__isset; } -NoSuchObjectException& NoSuchObjectException::operator=(const NoSuchObjectException& other1176) { - message = other1176.message; - __isset = other1176.__isset; +NoSuchObjectException& NoSuchObjectException::operator=(const NoSuchObjectException& other1200) { + message = other1200.message; + __isset = other1200.__isset; return *this; } void NoSuchObjectException::printTo(std::ostream& out) const { @@ -31592,13 +32185,13 @@ void swap(InvalidOperationException &a, InvalidOperationException &b) { swap(a.__isset, b.__isset); } -InvalidOperationException::InvalidOperationException(const InvalidOperationException& other1177) : TException() { - message = other1177.message; - __isset = other1177.__isset; +InvalidOperationException::InvalidOperationException(const InvalidOperationException& other1201) : TException() { + message = other1201.message; + __isset = other1201.__isset; } -InvalidOperationException& InvalidOperationException::operator=(const InvalidOperationException& other1178) { - message = other1178.message; - __isset = other1178.__isset; +InvalidOperationException& InvalidOperationException::operator=(const InvalidOperationException& other1202) { + message = other1202.message; + __isset = other1202.__isset; return *this; } void InvalidOperationException::printTo(std::ostream& out) const { @@ -31689,13 +32282,13 @@ void swap(ConfigValSecurityException &a, ConfigValSecurityException &b) { swap(a.__isset, b.__isset); } -ConfigValSecurityException::ConfigValSecurityException(const ConfigValSecurityException& other1179) : TException() { - message = other1179.message; - __isset = other1179.__isset; +ConfigValSecurityException::ConfigValSecurityException(const ConfigValSecurityException& other1203) : TException() { + message = other1203.message; + __isset = other1203.__isset; } -ConfigValSecurityException& ConfigValSecurityException::operator=(const ConfigValSecurityException& other1180) { - message = other1180.message; - __isset = other1180.__isset; +ConfigValSecurityException& ConfigValSecurityException::operator=(const ConfigValSecurityException& other1204) { + message = other1204.message; + __isset = other1204.__isset; return *this; } void ConfigValSecurityException::printTo(std::ostream& out) const { @@ -31786,13 +32379,13 @@ void swap(InvalidInputException &a, InvalidInputException &b) { swap(a.__isset, b.__isset); } -InvalidInputException::InvalidInputException(const InvalidInputException& other1181) : TException() { - message = other1181.message; - __isset = other1181.__isset; +InvalidInputException::InvalidInputException(const InvalidInputException& other1205) : TException() { + message = other1205.message; + __isset = other1205.__isset; } -InvalidInputException& InvalidInputException::operator=(const InvalidInputException& other1182) { - message = other1182.message; - __isset = other1182.__isset; +InvalidInputException& InvalidInputException::operator=(const InvalidInputException& other1206) { + message = other1206.message; + __isset = other1206.__isset; return *this; } void InvalidInputException::printTo(std::ostream& out) const { @@ -31883,13 +32476,13 @@ void swap(NoSuchTxnException &a, NoSuchTxnException &b) { swap(a.__isset, b.__isset); } -NoSuchTxnException::NoSuchTxnException(const NoSuchTxnException& other1183) : TException() { - message = other1183.message; - __isset = other1183.__isset; +NoSuchTxnException::NoSuchTxnException(const NoSuchTxnException& other1207) : TException() { + message = other1207.message; + __isset = other1207.__isset; } -NoSuchTxnException& NoSuchTxnException::operator=(const NoSuchTxnException& other1184) { - message = other1184.message; - __isset = other1184.__isset; +NoSuchTxnException& NoSuchTxnException::operator=(const NoSuchTxnException& other1208) { + message = other1208.message; + __isset = other1208.__isset; return *this; } void NoSuchTxnException::printTo(std::ostream& out) const { @@ -31980,13 +32573,13 @@ void swap(TxnAbortedException &a, TxnAbortedException &b) { swap(a.__isset, b.__isset); } -TxnAbortedException::TxnAbortedException(const TxnAbortedException& other1185) : TException() { - message = other1185.message; - __isset = other1185.__isset; +TxnAbortedException::TxnAbortedException(const TxnAbortedException& other1209) : TException() { + message = other1209.message; + __isset = other1209.__isset; } -TxnAbortedException& TxnAbortedException::operator=(const TxnAbortedException& other1186) { - message = other1186.message; - __isset = other1186.__isset; +TxnAbortedException& TxnAbortedException::operator=(const TxnAbortedException& other1210) { + message = other1210.message; + __isset = other1210.__isset; return *this; } void TxnAbortedException::printTo(std::ostream& out) const { @@ -32077,13 +32670,13 @@ void swap(TxnOpenException &a, TxnOpenException &b) { swap(a.__isset, b.__isset); } -TxnOpenException::TxnOpenException(const TxnOpenException& other1187) : TException() { - message = other1187.message; - __isset = other1187.__isset; +TxnOpenException::TxnOpenException(const TxnOpenException& other1211) : TException() { + message = other1211.message; + __isset = other1211.__isset; } -TxnOpenException& TxnOpenException::operator=(const TxnOpenException& other1188) { - message = other1188.message; - __isset = other1188.__isset; +TxnOpenException& TxnOpenException::operator=(const TxnOpenException& other1212) { + message = other1212.message; + __isset = other1212.__isset; return *this; } void TxnOpenException::printTo(std::ostream& out) const { @@ -32174,13 +32767,13 @@ void swap(NoSuchLockException &a, NoSuchLockException &b) { swap(a.__isset, b.__isset); } -NoSuchLockException::NoSuchLockException(const NoSuchLockException& other1189) : TException() { - message = other1189.message; - __isset = other1189.__isset; +NoSuchLockException::NoSuchLockException(const NoSuchLockException& other1213) : TException() { + message = other1213.message; + __isset = other1213.__isset; } -NoSuchLockException& NoSuchLockException::operator=(const NoSuchLockException& other1190) { - message = other1190.message; - __isset = other1190.__isset; +NoSuchLockException& NoSuchLockException::operator=(const NoSuchLockException& other1214) { + message = other1214.message; + __isset = other1214.__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 cd78f58957..e639427335 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 GetValidWriteIdsRequest; class TableValidWriteIds; @@ -513,6 +515,10 @@ class FireEventRequest; class FireEventResponse; +class WriteNotificationLogRequest; + +class WriteNotificationLogResponse; + class MetadataPpdResult; class GetFileMetadataByExprResult; @@ -6913,8 +6919,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 { @@ -6928,6 +6935,7 @@ class CommitTxnRequest { virtual ~CommitTxnRequest() throw(); int64_t txnid; std::string replPolicy; + std::vector writeEventInfos; _CommitTxnRequest__isset __isset; @@ -6935,6 +6943,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)) @@ -6943,6 +6953,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 { @@ -6965,6 +6979,90 @@ inline std::ostream& operator<<(std::ostream& out, const CommitTxnRequest& obj) return out; } +typedef struct _WriteEventInfo__isset { + _WriteEventInfo__isset() : files(false), tableObj(false), partitionObj(false) {} + bool files :1; + bool tableObj :1; + bool partitionObj :1; +} _WriteEventInfo__isset; + +class WriteEventInfo { + public: + + WriteEventInfo(const WriteEventInfo&); + WriteEventInfo& operator=(const WriteEventInfo&); + WriteEventInfo() : writeId(0), database(), table(), partition(), files(), tableObj(), partitionObj() { + } + + virtual ~WriteEventInfo() throw(); + int64_t writeId; + std::string database; + std::string table; + std::string partition; + std::string files; + 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_partition(const std::string& val); + + void __set_files(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 (!(partition == rhs.partition)) + return false; + if (__isset.files != rhs.__isset.files) + return false; + else if (__isset.files && !(files == rhs.files)) + 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; +} + class GetValidWriteIdsRequest { public: @@ -8890,9 +8988,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 { @@ -8907,6 +9006,7 @@ class InsertEventRequestData { bool replace; std::vector filesAdded; std::vector filesAddedChecksum; + std::vector subDirectoryList; _InsertEventRequestData__isset __isset; @@ -8916,6 +9016,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) @@ -8928,6 +9030,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 { @@ -9113,6 +9219,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 64111296a6..1dcc8707b5 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 _list692 = iprot.readListBegin(); - struct.partitionnames = new ArrayList(_list692.size); - String _elem693; - for (int _i694 = 0; _i694 < _list692.size; ++_i694) + org.apache.thrift.protocol.TList _list700 = iprot.readListBegin(); + struct.partitionnames = new ArrayList(_list700.size); + String _elem701; + for (int _i702 = 0; _i702 < _list700.size; ++_i702) { - _elem693 = iprot.readString(); - struct.partitionnames.add(_elem693); + _elem701 = iprot.readString(); + struct.partitionnames.add(_elem701); } 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 _iter695 : struct.partitionnames) + for (String _iter703 : struct.partitionnames) { - oprot.writeString(_iter695); + oprot.writeString(_iter703); } 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 _iter696 : struct.partitionnames) + for (String _iter704 : struct.partitionnames) { - oprot.writeString(_iter696); + oprot.writeString(_iter704); } } 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 _list697 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partitionnames = new ArrayList(_list697.size); - String _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.STRING, iprot.readI32()); + struct.partitionnames = new ArrayList(_list705.size); + String _elem706; + for (int _i707 = 0; _i707 < _list705.size; ++_i707) { - _elem698 = iprot.readString(); - struct.partitionnames.add(_elem698); + _elem706 = iprot.readString(); + struct.partitionnames.add(_elem706); } } 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 5a60e95517..fa33963799 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 _list618 = iprot.readListBegin(); - struct.txnIds = new ArrayList(_list618.size); - long _elem619; - for (int _i620 = 0; _i620 < _list618.size; ++_i620) + org.apache.thrift.protocol.TList _list626 = iprot.readListBegin(); + struct.txnIds = new ArrayList(_list626.size); + long _elem627; + for (int _i628 = 0; _i628 < _list626.size; ++_i628) { - _elem619 = iprot.readI64(); - struct.txnIds.add(_elem619); + _elem627 = iprot.readI64(); + struct.txnIds.add(_elem627); } 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 _list621 = iprot.readListBegin(); - struct.srcTxnToWriteIdList = new ArrayList(_list621.size); - TxnToWriteId _elem622; - for (int _i623 = 0; _i623 < _list621.size; ++_i623) + org.apache.thrift.protocol.TList _list629 = iprot.readListBegin(); + struct.srcTxnToWriteIdList = new ArrayList(_list629.size); + TxnToWriteId _elem630; + for (int _i631 = 0; _i631 < _list629.size; ++_i631) { - _elem622 = new TxnToWriteId(); - _elem622.read(iprot); - struct.srcTxnToWriteIdList.add(_elem622); + _elem630 = new TxnToWriteId(); + _elem630.read(iprot); + struct.srcTxnToWriteIdList.add(_elem630); } 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 _iter624 : struct.txnIds) + for (long _iter632 : struct.txnIds) { - oprot.writeI64(_iter624); + oprot.writeI64(_iter632); } 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 _iter625 : struct.srcTxnToWriteIdList) + for (TxnToWriteId _iter633 : struct.srcTxnToWriteIdList) { - _iter625.write(oprot); + _iter633.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 _iter626 : struct.txnIds) + for (long _iter634 : struct.txnIds) { - oprot.writeI64(_iter626); + oprot.writeI64(_iter634); } } } @@ -861,9 +861,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AllocateTableWriteI if (struct.isSetSrcTxnToWriteIdList()) { { oprot.writeI32(struct.srcTxnToWriteIdList.size()); - for (TxnToWriteId _iter627 : struct.srcTxnToWriteIdList) + for (TxnToWriteId _iter635 : struct.srcTxnToWriteIdList) { - _iter627.write(oprot); + _iter635.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 _list628 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.txnIds = new ArrayList(_list628.size); - long _elem629; - for (int _i630 = 0; _i630 < _list628.size; ++_i630) + 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) { - _elem629 = iprot.readI64(); - struct.txnIds.add(_elem629); + _elem637 = iprot.readI64(); + struct.txnIds.add(_elem637); } } 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 _list631 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.srcTxnToWriteIdList = new ArrayList(_list631.size); - TxnToWriteId _elem632; - for (int _i633 = 0; _i633 < _list631.size; ++_i633) + 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) { - _elem632 = new TxnToWriteId(); - _elem632.read(iprot); - struct.srcTxnToWriteIdList.add(_elem632); + _elem640 = new TxnToWriteId(); + _elem640.read(iprot); + struct.srcTxnToWriteIdList.add(_elem640); } } 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 7bba38c4b4..20dc757dc7 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 _list634 = iprot.readListBegin(); - struct.txnToWriteIds = new ArrayList(_list634.size); - TxnToWriteId _elem635; - for (int _i636 = 0; _i636 < _list634.size; ++_i636) + org.apache.thrift.protocol.TList _list642 = iprot.readListBegin(); + struct.txnToWriteIds = new ArrayList(_list642.size); + TxnToWriteId _elem643; + for (int _i644 = 0; _i644 < _list642.size; ++_i644) { - _elem635 = new TxnToWriteId(); - _elem635.read(iprot); - struct.txnToWriteIds.add(_elem635); + _elem643 = new TxnToWriteId(); + _elem643.read(iprot); + struct.txnToWriteIds.add(_elem643); } 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 _iter637 : struct.txnToWriteIds) + for (TxnToWriteId _iter645 : struct.txnToWriteIds) { - _iter637.write(oprot); + _iter645.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 _iter638 : struct.txnToWriteIds) + for (TxnToWriteId _iter646 : struct.txnToWriteIds) { - _iter638.write(oprot); + _iter646.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 _list639 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.txnToWriteIds = 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.txnToWriteIds = new ArrayList(_list647.size); + TxnToWriteId _elem648; + for (int _i649 = 0; _i649 < _list647.size; ++_i649) { - _elem640 = new TxnToWriteId(); - _elem640.read(iprot); - struct.txnToWriteIds.add(_elem640); + _elem648 = new TxnToWriteId(); + _elem648.read(iprot); + struct.txnToWriteIds.add(_elem648); } } 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 7db0801e23..2393908b93 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 _list792 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list792.size); - long _elem793; - for (int _i794 = 0; _i794 < _list792.size; ++_i794) + org.apache.thrift.protocol.TList _list816 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list816.size); + long _elem817; + for (int _i818 = 0; _i818 < _list816.size; ++_i818) { - _elem793 = iprot.readI64(); - struct.fileIds.add(_elem793); + _elem817 = iprot.readI64(); + struct.fileIds.add(_elem817); } 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 _iter795 : struct.fileIds) + for (long _iter819 : struct.fileIds) { - oprot.writeI64(_iter795); + oprot.writeI64(_iter819); } 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 _iter796 : struct.fileIds) + for (long _iter820 : struct.fileIds) { - oprot.writeI64(_iter796); + oprot.writeI64(_iter820); } } } @@ -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 _list797 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list797.size); - long _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.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list821.size); + long _elem822; + for (int _i823 = 0; _i823 < _list821.size; ++_i823) { - _elem798 = iprot.readI64(); - struct.fileIds.add(_elem798); + _elem822 = iprot.readI64(); + struct.fileIds.add(_elem822); } } 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 a83c0bbcb8..8d33971544 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 _list808 = iprot.readListBegin(); - struct.values = new ArrayList(_list808.size); - ClientCapability _elem809; - for (int _i810 = 0; _i810 < _list808.size; ++_i810) + org.apache.thrift.protocol.TList _list832 = iprot.readListBegin(); + struct.values = new ArrayList(_list832.size); + ClientCapability _elem833; + for (int _i834 = 0; _i834 < _list832.size; ++_i834) { - _elem809 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); - struct.values.add(_elem809); + _elem833 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); + struct.values.add(_elem833); } 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 _iter811 : struct.values) + for (ClientCapability _iter835 : struct.values) { - oprot.writeI32(_iter811.getValue()); + oprot.writeI32(_iter835.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 _iter812 : struct.values) + for (ClientCapability _iter836 : struct.values) { - oprot.writeI32(_iter812.getValue()); + oprot.writeI32(_iter836.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 _list813 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); - struct.values = new ArrayList(_list813.size); - ClientCapability _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.I32, iprot.readI32()); + struct.values = new ArrayList(_list837.size); + ClientCapability _elem838; + for (int _i839 = 0; _i839 < _list837.size; ++_i839) { - _elem814 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); - struct.values.add(_elem814); + _elem838 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); + struct.values.add(_elem838); } } 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 524a48ed99..31f2e144a9 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 _map674 = iprot.readMapBegin(); - struct.properties = new HashMap(2*_map674.size); - String _key675; - String _val676; - for (int _i677 = 0; _i677 < _map674.size; ++_i677) + 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) { - _key675 = iprot.readString(); - _val676 = iprot.readString(); - struct.properties.put(_key675, _val676); + _key683 = iprot.readString(); + _val684 = iprot.readString(); + struct.properties.put(_key683, _val684); } 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 _iter678 : struct.properties.entrySet()) + for (Map.Entry _iter686 : struct.properties.entrySet()) { - oprot.writeString(_iter678.getKey()); - oprot.writeString(_iter678.getValue()); + oprot.writeString(_iter686.getKey()); + oprot.writeString(_iter686.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 _iter679 : struct.properties.entrySet()) + for (Map.Entry _iter687 : struct.properties.entrySet()) { - oprot.writeString(_iter679.getKey()); - oprot.writeString(_iter679.getValue()); + oprot.writeString(_iter687.getKey()); + oprot.writeString(_iter687.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 _map680 = 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*_map680.size); - String _key681; - String _val682; - for (int _i683 = 0; _i683 < _map680.size; ++_i683) + 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) { - _key681 = iprot.readString(); - _val682 = iprot.readString(); - struct.properties.put(_key681, _val682); + _key689 = iprot.readString(); + _val690 = iprot.readString(); + struct.properties.put(_key689, _val690); } } 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 8e4144e17f..ab7b0594f0 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 _set700 = iprot.readSetBegin(); - struct.tablesUsed = new HashSet(2*_set700.size); - String _elem701; - for (int _i702 = 0; _i702 < _set700.size; ++_i702) + 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) { - _elem701 = iprot.readString(); - struct.tablesUsed.add(_elem701); + _elem709 = iprot.readString(); + struct.tablesUsed.add(_elem709); } 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 _iter703 : struct.tablesUsed) + for (String _iter711 : struct.tablesUsed) { - oprot.writeString(_iter703); + oprot.writeString(_iter711); } 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 _iter704 : struct.tablesUsed) + for (String _iter712 : struct.tablesUsed) { - oprot.writeString(_iter704); + oprot.writeString(_iter712); } } 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 _set705 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tablesUsed = new HashSet(2*_set705.size); - String _elem706; - for (int _i707 = 0; _i707 < _set705.size; ++_i707) + 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) { - _elem706 = iprot.readString(); - struct.tablesUsed.add(_elem706); + _elem714 = iprot.readString(); + struct.tablesUsed.add(_elem714); } } 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 bb640865b3..79d9fc6409 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 _list912 = iprot.readListBegin(); - struct.schemaVersions = new ArrayList(_list912.size); - SchemaVersionDescriptor _elem913; - for (int _i914 = 0; _i914 < _list912.size; ++_i914) + org.apache.thrift.protocol.TList _list936 = iprot.readListBegin(); + struct.schemaVersions = new ArrayList(_list936.size); + SchemaVersionDescriptor _elem937; + for (int _i938 = 0; _i938 < _list936.size; ++_i938) { - _elem913 = new SchemaVersionDescriptor(); - _elem913.read(iprot); - struct.schemaVersions.add(_elem913); + _elem937 = new SchemaVersionDescriptor(); + _elem937.read(iprot); + struct.schemaVersions.add(_elem937); } 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 _iter915 : struct.schemaVersions) + for (SchemaVersionDescriptor _iter939 : struct.schemaVersions) { - _iter915.write(oprot); + _iter939.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 _iter916 : struct.schemaVersions) + for (SchemaVersionDescriptor _iter940 : struct.schemaVersions) { - _iter916.write(oprot); + _iter940.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 _list917 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.schemaVersions = new ArrayList(_list917.size); - SchemaVersionDescriptor _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.schemaVersions = new ArrayList(_list941.size); + SchemaVersionDescriptor _elem942; + for (int _i943 = 0; _i943 < _list941.size; ++_i943) { - _elem918 = new SchemaVersionDescriptor(); - _elem918.read(iprot); - struct.schemaVersions.add(_elem918); + _elem942 = new SchemaVersionDescriptor(); + _elem942.read(iprot); + struct.schemaVersions.add(_elem942); } } 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 42c9b53d5e..52a900fa4a 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 _list732 = iprot.readListBegin(); - struct.partitionVals = new ArrayList(_list732.size); - String _elem733; - for (int _i734 = 0; _i734 < _list732.size; ++_i734) + org.apache.thrift.protocol.TList _list748 = iprot.readListBegin(); + struct.partitionVals = new ArrayList(_list748.size); + String _elem749; + for (int _i750 = 0; _i750 < _list748.size; ++_i750) { - _elem733 = iprot.readString(); - struct.partitionVals.add(_elem733); + _elem749 = iprot.readString(); + struct.partitionVals.add(_elem749); } 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 _iter735 : struct.partitionVals) + for (String _iter751 : struct.partitionVals) { - oprot.writeString(_iter735); + oprot.writeString(_iter751); } 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 _iter736 : struct.partitionVals) + for (String _iter752 : struct.partitionVals) { - oprot.writeString(_iter736); + oprot.writeString(_iter752); } } } @@ -945,13 +945,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, FireEventRequest str } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list737 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partitionVals = new ArrayList(_list737.size); - String _elem738; - for (int _i739 = 0; _i739 < _list737.size; ++_i739) + org.apache.thrift.protocol.TList _list753 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionVals = new ArrayList(_list753.size); + String _elem754; + for (int _i755 = 0; _i755 < _list753.size; ++_i755) { - _elem738 = iprot.readString(); - struct.partitionVals.add(_elem738); + _elem754 = iprot.readString(); + struct.partitionVals.add(_elem754); } } 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 32e6543d79..52bec109e9 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 _list800 = iprot.readListBegin(); - struct.functions = new ArrayList(_list800.size); - Function _elem801; - for (int _i802 = 0; _i802 < _list800.size; ++_i802) + org.apache.thrift.protocol.TList _list824 = iprot.readListBegin(); + struct.functions = new ArrayList(_list824.size); + Function _elem825; + for (int _i826 = 0; _i826 < _list824.size; ++_i826) { - _elem801 = new Function(); - _elem801.read(iprot); - struct.functions.add(_elem801); + _elem825 = new Function(); + _elem825.read(iprot); + struct.functions.add(_elem825); } 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 _iter803 : struct.functions) + for (Function _iter827 : struct.functions) { - _iter803.write(oprot); + _iter827.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 _iter804 : struct.functions) + for (Function _iter828 : struct.functions) { - _iter804.write(oprot); + _iter828.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 _list805 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.functions = new ArrayList(_list805.size); - Function _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.STRUCT, iprot.readI32()); + struct.functions = new ArrayList(_list829.size); + Function _elem830; + for (int _i831 = 0; _i831 < _list829.size; ++_i831) { - _elem806 = new Function(); - _elem806.read(iprot); - struct.functions.add(_elem806); + _elem830 = new Function(); + _elem830.read(iprot); + struct.functions.add(_elem830); } } 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 8dab985641..8b4b7926d9 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 _list750 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list750.size); - long _elem751; - for (int _i752 = 0; _i752 < _list750.size; ++_i752) + org.apache.thrift.protocol.TList _list774 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list774.size); + long _elem775; + for (int _i776 = 0; _i776 < _list774.size; ++_i776) { - _elem751 = iprot.readI64(); - struct.fileIds.add(_elem751); + _elem775 = iprot.readI64(); + struct.fileIds.add(_elem775); } 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 _iter753 : struct.fileIds) + for (long _iter777 : struct.fileIds) { - oprot.writeI64(_iter753); + oprot.writeI64(_iter777); } 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 _iter754 : struct.fileIds) + for (long _iter778 : struct.fileIds) { - oprot.writeI64(_iter754); + oprot.writeI64(_iter778); } } 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 _list755 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list755.size); - long _elem756; - for (int _i757 = 0; _i757 < _list755.size; ++_i757) + org.apache.thrift.protocol.TList _list779 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list779.size); + long _elem780; + for (int _i781 = 0; _i781 < _list779.size; ++_i781) { - _elem756 = iprot.readI64(); - struct.fileIds.add(_elem756); + _elem780 = iprot.readI64(); + struct.fileIds.add(_elem780); } } 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 d94ea73c4b..89b1813e9e 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 _map740 = iprot.readMapBegin(); - struct.metadata = new HashMap(2*_map740.size); - long _key741; - MetadataPpdResult _val742; - for (int _i743 = 0; _i743 < _map740.size; ++_i743) + org.apache.thrift.protocol.TMap _map764 = iprot.readMapBegin(); + struct.metadata = new HashMap(2*_map764.size); + long _key765; + MetadataPpdResult _val766; + for (int _i767 = 0; _i767 < _map764.size; ++_i767) { - _key741 = iprot.readI64(); - _val742 = new MetadataPpdResult(); - _val742.read(iprot); - struct.metadata.put(_key741, _val742); + _key765 = iprot.readI64(); + _val766 = new MetadataPpdResult(); + _val766.read(iprot); + struct.metadata.put(_key765, _val766); } 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 _iter744 : struct.metadata.entrySet()) + for (Map.Entry _iter768 : struct.metadata.entrySet()) { - oprot.writeI64(_iter744.getKey()); - _iter744.getValue().write(oprot); + oprot.writeI64(_iter768.getKey()); + _iter768.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 _iter745 : struct.metadata.entrySet()) + for (Map.Entry _iter769 : struct.metadata.entrySet()) { - oprot.writeI64(_iter745.getKey()); - _iter745.getValue().write(oprot); + oprot.writeI64(_iter769.getKey()); + _iter769.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 _map746 = 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*_map746.size); - long _key747; - MetadataPpdResult _val748; - for (int _i749 = 0; _i749 < _map746.size; ++_i749) + org.apache.thrift.protocol.TMap _map770 = 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*_map770.size); + long _key771; + MetadataPpdResult _val772; + for (int _i773 = 0; _i773 < _map770.size; ++_i773) { - _key747 = iprot.readI64(); - _val748 = new MetadataPpdResult(); - _val748.read(iprot); - struct.metadata.put(_key747, _val748); + _key771 = iprot.readI64(); + _val772 = new MetadataPpdResult(); + _val772.read(iprot); + struct.metadata.put(_key771, _val772); } } 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 9dfc484591..b0f6789fde 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 _list768 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list768.size); - long _elem769; - for (int _i770 = 0; _i770 < _list768.size; ++_i770) + org.apache.thrift.protocol.TList _list792 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list792.size); + long _elem793; + for (int _i794 = 0; _i794 < _list792.size; ++_i794) { - _elem769 = iprot.readI64(); - struct.fileIds.add(_elem769); + _elem793 = iprot.readI64(); + struct.fileIds.add(_elem793); } 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 _iter771 : struct.fileIds) + for (long _iter795 : struct.fileIds) { - oprot.writeI64(_iter771); + oprot.writeI64(_iter795); } 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 _iter772 : struct.fileIds) + for (long _iter796 : struct.fileIds) { - oprot.writeI64(_iter772); + oprot.writeI64(_iter796); } } } @@ -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 _list773 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list773.size); - long _elem774; - for (int _i775 = 0; _i775 < _list773.size; ++_i775) + org.apache.thrift.protocol.TList _list797 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list797.size); + long _elem798; + for (int _i799 = 0; _i799 < _list797.size; ++_i799) { - _elem774 = iprot.readI64(); - struct.fileIds.add(_elem774); + _elem798 = iprot.readI64(); + struct.fileIds.add(_elem798); } } 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 d454340aa4..445def2dca 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 _map758 = iprot.readMapBegin(); - struct.metadata = new HashMap(2*_map758.size); - long _key759; - ByteBuffer _val760; - for (int _i761 = 0; _i761 < _map758.size; ++_i761) + org.apache.thrift.protocol.TMap _map782 = iprot.readMapBegin(); + struct.metadata = new HashMap(2*_map782.size); + long _key783; + ByteBuffer _val784; + for (int _i785 = 0; _i785 < _map782.size; ++_i785) { - _key759 = iprot.readI64(); - _val760 = iprot.readBinary(); - struct.metadata.put(_key759, _val760); + _key783 = iprot.readI64(); + _val784 = iprot.readBinary(); + struct.metadata.put(_key783, _val784); } 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 _iter762 : struct.metadata.entrySet()) + for (Map.Entry _iter786 : struct.metadata.entrySet()) { - oprot.writeI64(_iter762.getKey()); - oprot.writeBinary(_iter762.getValue()); + oprot.writeI64(_iter786.getKey()); + oprot.writeBinary(_iter786.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 _iter763 : struct.metadata.entrySet()) + for (Map.Entry _iter787 : struct.metadata.entrySet()) { - oprot.writeI64(_iter763.getKey()); - oprot.writeBinary(_iter763.getValue()); + oprot.writeI64(_iter787.getKey()); + oprot.writeBinary(_iter787.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 _map764 = 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*_map764.size); - long _key765; - ByteBuffer _val766; - for (int _i767 = 0; _i767 < _map764.size; ++_i767) + org.apache.thrift.protocol.TMap _map788 = 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*_map788.size); + long _key789; + ByteBuffer _val790; + for (int _i791 = 0; _i791 < _map788.size; ++_i791) { - _key765 = iprot.readI64(); - _val766 = iprot.readBinary(); - struct.metadata.put(_key765, _val766); + _key789 = iprot.readI64(); + _val790 = iprot.readBinary(); + struct.metadata.put(_key789, _val790); } } 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 f2be7ecc3e..379749fa3a 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 _list816 = iprot.readListBegin(); - struct.tblNames = new ArrayList(_list816.size); - String _elem817; - for (int _i818 = 0; _i818 < _list816.size; ++_i818) + org.apache.thrift.protocol.TList _list840 = iprot.readListBegin(); + struct.tblNames = new ArrayList(_list840.size); + String _elem841; + for (int _i842 = 0; _i842 < _list840.size; ++_i842) { - _elem817 = iprot.readString(); - struct.tblNames.add(_elem817); + _elem841 = iprot.readString(); + struct.tblNames.add(_elem841); } 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 _iter819 : struct.tblNames) + for (String _iter843 : struct.tblNames) { - oprot.writeString(_iter819); + oprot.writeString(_iter843); } 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 _iter820 : struct.tblNames) + for (String _iter844 : struct.tblNames) { - oprot.writeString(_iter820); + oprot.writeString(_iter844); } } } @@ -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 _list821 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tblNames = new ArrayList(_list821.size); - String _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.STRING, iprot.readI32()); + struct.tblNames = new ArrayList(_list845.size); + String _elem846; + for (int _i847 = 0; _i847 < _list845.size; ++_i847) { - _elem822 = iprot.readString(); - struct.tblNames.add(_elem822); + _elem846 = iprot.readString(); + struct.tblNames.add(_elem846); } } 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 371757a3dd..66cb8bd491 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 _list824 = iprot.readListBegin(); - struct.tables = new ArrayList
(_list824.size); - Table _elem825; - for (int _i826 = 0; _i826 < _list824.size; ++_i826) + org.apache.thrift.protocol.TList _list848 = iprot.readListBegin(); + struct.tables = new ArrayList
(_list848.size); + Table _elem849; + for (int _i850 = 0; _i850 < _list848.size; ++_i850) { - _elem825 = new Table(); - _elem825.read(iprot); - struct.tables.add(_elem825); + _elem849 = new Table(); + _elem849.read(iprot); + struct.tables.add(_elem849); } 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 _iter827 : struct.tables) + for (Table _iter851 : struct.tables) { - _iter827.write(oprot); + _iter851.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 _iter828 : struct.tables) + for (Table _iter852 : struct.tables) { - _iter828.write(oprot); + _iter852.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 _list829 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.tables = new ArrayList
(_list829.size); - Table _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.STRUCT, iprot.readI32()); + struct.tables = new ArrayList
(_list853.size); + Table _elem854; + for (int _i855 = 0; _i855 < _list853.size; ++_i855) { - _elem830 = new Table(); - _elem830.read(iprot); - struct.tables.add(_elem830); + _elem854 = new Table(); + _elem854.read(iprot); + struct.tables.add(_elem854); } } 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 58c608aa8c..27b6cf8669 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 _list594 = iprot.readListBegin(); - struct.fullTableNames = new ArrayList(_list594.size); - String _elem595; - for (int _i596 = 0; _i596 < _list594.size; ++_i596) + org.apache.thrift.protocol.TList _list602 = iprot.readListBegin(); + struct.fullTableNames = new ArrayList(_list602.size); + String _elem603; + for (int _i604 = 0; _i604 < _list602.size; ++_i604) { - _elem595 = iprot.readString(); - struct.fullTableNames.add(_elem595); + _elem603 = iprot.readString(); + struct.fullTableNames.add(_elem603); } 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 _iter597 : struct.fullTableNames) + for (String _iter605 : struct.fullTableNames) { - oprot.writeString(_iter597); + oprot.writeString(_iter605); } 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 _iter598 : struct.fullTableNames) + for (String _iter606 : struct.fullTableNames) { - oprot.writeString(_iter598); + oprot.writeString(_iter606); } } 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 _list599 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.fullTableNames = 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.fullTableNames = new ArrayList(_list607.size); + String _elem608; + for (int _i609 = 0; _i609 < _list607.size; ++_i609) { - _elem600 = iprot.readString(); - struct.fullTableNames.add(_elem600); + _elem608 = iprot.readString(); + struct.fullTableNames.add(_elem608); } } 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 86bc346d98..7a1bbc7cc1 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 _list610 = iprot.readListBegin(); - struct.tblValidWriteIds = new ArrayList(_list610.size); - TableValidWriteIds _elem611; - for (int _i612 = 0; _i612 < _list610.size; ++_i612) + org.apache.thrift.protocol.TList _list618 = iprot.readListBegin(); + struct.tblValidWriteIds = new ArrayList(_list618.size); + TableValidWriteIds _elem619; + for (int _i620 = 0; _i620 < _list618.size; ++_i620) { - _elem611 = new TableValidWriteIds(); - _elem611.read(iprot); - struct.tblValidWriteIds.add(_elem611); + _elem619 = new TableValidWriteIds(); + _elem619.read(iprot); + struct.tblValidWriteIds.add(_elem619); } 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 _iter613 : struct.tblValidWriteIds) + for (TableValidWriteIds _iter621 : struct.tblValidWriteIds) { - _iter613.write(oprot); + _iter621.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 _iter614 : struct.tblValidWriteIds) + for (TableValidWriteIds _iter622 : struct.tblValidWriteIds) { - _iter614.write(oprot); + _iter622.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 _list615 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.tblValidWriteIds = new ArrayList(_list615.size); - TableValidWriteIds _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.STRUCT, iprot.readI32()); + struct.tblValidWriteIds = new ArrayList(_list623.size); + TableValidWriteIds _elem624; + for (int _i625 = 0; _i625 < _list623.size; ++_i625) { - _elem616 = new TableValidWriteIds(); - _elem616.read(iprot); - struct.tblValidWriteIds.add(_elem616); + _elem624 = new TableValidWriteIds(); + _elem624.read(iprot); + struct.tblValidWriteIds.add(_elem624); } } 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 75ddaf69ba..4999215989 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 _set658 = iprot.readSetBegin(); - struct.aborted = new HashSet(2*_set658.size); - long _elem659; - for (int _i660 = 0; _i660 < _set658.size; ++_i660) + 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) { - _elem659 = iprot.readI64(); - struct.aborted.add(_elem659); + _elem667 = iprot.readI64(); + struct.aborted.add(_elem667); } 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 _set661 = iprot.readSetBegin(); - struct.nosuch = new HashSet(2*_set661.size); - long _elem662; - for (int _i663 = 0; _i663 < _set661.size; ++_i663) + 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) { - _elem662 = iprot.readI64(); - struct.nosuch.add(_elem662); + _elem670 = iprot.readI64(); + struct.nosuch.add(_elem670); } 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 _iter664 : struct.aborted) + for (long _iter672 : struct.aborted) { - oprot.writeI64(_iter664); + oprot.writeI64(_iter672); } 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 _iter665 : struct.nosuch) + for (long _iter673 : struct.nosuch) { - oprot.writeI64(_iter665); + oprot.writeI64(_iter673); } 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 _iter666 : struct.aborted) + for (long _iter674 : struct.aborted) { - oprot.writeI64(_iter666); + oprot.writeI64(_iter674); } } { oprot.writeI32(struct.nosuch.size()); - for (long _iter667 : struct.nosuch) + for (long _iter675 : struct.nosuch) { - oprot.writeI64(_iter667); + oprot.writeI64(_iter675); } } } @@ -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 _set668 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.aborted = new HashSet(2*_set668.size); - long _elem669; - for (int _i670 = 0; _i670 < _set668.size; ++_i670) + 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) { - _elem669 = iprot.readI64(); - struct.aborted.add(_elem669); + _elem677 = iprot.readI64(); + struct.aborted.add(_elem677); } } struct.setAbortedIsSet(true); { - org.apache.thrift.protocol.TSet _set671 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.nosuch = new HashSet(2*_set671.size); - long _elem672; - for (int _i673 = 0; _i673 < _set671.size; ++_i673) + 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) { - _elem672 = iprot.readI64(); - struct.nosuch.add(_elem672); + _elem680 = iprot.readI64(); + struct.nosuch.add(_elem680); } } 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 c7100a7ed6..ae2223eb22 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 _list716 = iprot.readListBegin(); - struct.filesAdded = new ArrayList(_list716.size); - String _elem717; - for (int _i718 = 0; _i718 < _list716.size; ++_i718) + org.apache.thrift.protocol.TList _list724 = iprot.readListBegin(); + struct.filesAdded = new ArrayList(_list724.size); + String _elem725; + for (int _i726 = 0; _i726 < _list724.size; ++_i726) { - _elem717 = iprot.readString(); - struct.filesAdded.add(_elem717); + _elem725 = iprot.readString(); + struct.filesAdded.add(_elem725); } 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 _list719 = iprot.readListBegin(); - struct.filesAddedChecksum = new ArrayList(_list719.size); - String _elem720; - for (int _i721 = 0; _i721 < _list719.size; ++_i721) + org.apache.thrift.protocol.TList _list727 = iprot.readListBegin(); + struct.filesAddedChecksum = new ArrayList(_list727.size); + String _elem728; + for (int _i729 = 0; _i729 < _list727.size; ++_i729) { - _elem720 = iprot.readString(); - struct.filesAddedChecksum.add(_elem720); + _elem728 = iprot.readString(); + struct.filesAddedChecksum.add(_elem728); } 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 _list730 = iprot.readListBegin(); + struct.subDirectoryList = new ArrayList(_list730.size); + String _elem731; + for (int _i732 = 0; _i732 < _list730.size; ++_i732) + { + _elem731 = iprot.readString(); + struct.subDirectoryList.add(_elem731); + } + 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 _iter722 : struct.filesAdded) + for (String _iter733 : struct.filesAdded) { - oprot.writeString(_iter722); + oprot.writeString(_iter733); } 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 _iter723 : struct.filesAddedChecksum) + for (String _iter734 : struct.filesAddedChecksum) { - oprot.writeString(_iter723); + oprot.writeString(_iter734); + } + 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 _iter735 : struct.subDirectoryList) + { + oprot.writeString(_iter735); } 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 _iter724 : struct.filesAdded) + for (String _iter736 : struct.filesAdded) { - oprot.writeString(_iter724); + oprot.writeString(_iter736); } } 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 _iter725 : struct.filesAddedChecksum) + for (String _iter737 : struct.filesAddedChecksum) + { + oprot.writeString(_iter737); + } + } + } + if (struct.isSetSubDirectoryList()) { + { + oprot.writeI32(struct.subDirectoryList.size()); + for (String _iter738 : struct.subDirectoryList) { - oprot.writeString(_iter725); + oprot.writeString(_iter738); } } } @@ -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 _list726 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.filesAdded = new ArrayList(_list726.size); - String _elem727; - for (int _i728 = 0; _i728 < _list726.size; ++_i728) + org.apache.thrift.protocol.TList _list739 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.filesAdded = new ArrayList(_list739.size); + String _elem740; + for (int _i741 = 0; _i741 < _list739.size; ++_i741) { - _elem727 = iprot.readString(); - struct.filesAdded.add(_elem727); + _elem740 = iprot.readString(); + struct.filesAdded.add(_elem740); } } 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 _list729 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.filesAddedChecksum = new ArrayList(_list729.size); - String _elem730; - for (int _i731 = 0; _i731 < _list729.size; ++_i731) + org.apache.thrift.protocol.TList _list742 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.filesAddedChecksum = new ArrayList(_list742.size); + String _elem743; + for (int _i744 = 0; _i744 < _list742.size; ++_i744) { - _elem730 = iprot.readString(); - struct.filesAddedChecksum.add(_elem730); + _elem743 = iprot.readString(); + struct.filesAddedChecksum.add(_elem743); } } struct.setFilesAddedChecksumIsSet(true); } + 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.subDirectoryList = new ArrayList(_list745.size); + String _elem746; + for (int _i747 = 0; _i747 < _list745.size; ++_i747) + { + _elem746 = iprot.readString(); + struct.subDirectoryList.add(_elem746); + } + } + 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 d1134b5ddb..d0dc21c319 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 _list642 = iprot.readListBegin(); - struct.component = new ArrayList(_list642.size); - LockComponent _elem643; - for (int _i644 = 0; _i644 < _list642.size; ++_i644) + org.apache.thrift.protocol.TList _list650 = iprot.readListBegin(); + struct.component = new ArrayList(_list650.size); + LockComponent _elem651; + for (int _i652 = 0; _i652 < _list650.size; ++_i652) { - _elem643 = new LockComponent(); - _elem643.read(iprot); - struct.component.add(_elem643); + _elem651 = new LockComponent(); + _elem651.read(iprot); + struct.component.add(_elem651); } 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 _iter645 : struct.component) + for (LockComponent _iter653 : struct.component) { - _iter645.write(oprot); + _iter653.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 _iter646 : struct.component) + for (LockComponent _iter654 : struct.component) { - _iter646.write(oprot); + _iter654.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 _list647 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.component = new ArrayList(_list647.size); - LockComponent _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.component = new ArrayList(_list655.size); + LockComponent _elem656; + for (int _i657 = 0; _i657 < _list655.size; ++_i657) { - _elem648 = new LockComponent(); - _elem648.read(iprot); - struct.component.add(_elem648); + _elem656 = new LockComponent(); + _elem656.read(iprot); + struct.component.add(_elem656); } } 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 403c7aaa93..ca0e4118ba 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 _set832 = iprot.readSetBegin(); - struct.tablesUsed = new HashSet(2*_set832.size); - String _elem833; - for (int _i834 = 0; _i834 < _set832.size; ++_i834) + org.apache.thrift.protocol.TSet _set856 = iprot.readSetBegin(); + struct.tablesUsed = new HashSet(2*_set856.size); + String _elem857; + for (int _i858 = 0; _i858 < _set856.size; ++_i858) { - _elem833 = iprot.readString(); - struct.tablesUsed.add(_elem833); + _elem857 = iprot.readString(); + struct.tablesUsed.add(_elem857); } 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 _iter835 : struct.tablesUsed) + for (String _iter859 : struct.tablesUsed) { - oprot.writeString(_iter835); + oprot.writeString(_iter859); } 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 _iter836 : struct.tablesUsed) + for (String _iter860 : struct.tablesUsed) { - oprot.writeString(_iter836); + oprot.writeString(_iter860); } } 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 _set837 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tablesUsed = new HashSet(2*_set837.size); - String _elem838; - for (int _i839 = 0; _i839 < _set837.size; ++_i839) + org.apache.thrift.protocol.TSet _set861 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tablesUsed = new HashSet(2*_set861.size); + String _elem862; + for (int _i863 = 0; _i863 < _set861.size; ++_i863) { - _elem838 = iprot.readString(); - struct.tablesUsed.add(_elem838); + _elem862 = iprot.readString(); + struct.tablesUsed.add(_elem862); } } 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 baa4224eea..0c850faea7 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 _list708 = iprot.readListBegin(); - struct.events = new ArrayList(_list708.size); - NotificationEvent _elem709; - for (int _i710 = 0; _i710 < _list708.size; ++_i710) + org.apache.thrift.protocol.TList _list716 = iprot.readListBegin(); + struct.events = new ArrayList(_list716.size); + NotificationEvent _elem717; + for (int _i718 = 0; _i718 < _list716.size; ++_i718) { - _elem709 = new NotificationEvent(); - _elem709.read(iprot); - struct.events.add(_elem709); + _elem717 = new NotificationEvent(); + _elem717.read(iprot); + struct.events.add(_elem717); } 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 _iter711 : struct.events) + for (NotificationEvent _iter719 : struct.events) { - _iter711.write(oprot); + _iter719.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 _iter712 : struct.events) + for (NotificationEvent _iter720 : struct.events) { - _iter712.write(oprot); + _iter720.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 _list713 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.events = new ArrayList(_list713.size); - NotificationEvent _elem714; - for (int _i715 = 0; _i715 < _list713.size; ++_i715) + 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) { - _elem714 = new NotificationEvent(); - _elem714.read(iprot); - struct.events.add(_elem714); + _elem722 = new NotificationEvent(); + _elem722.read(iprot); + struct.events.add(_elem722); } } 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 ad42dbe3a2..18c23e47e2 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 _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(); } @@ -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 _list779 = iprot.readListBegin(); - struct.metadata = new ArrayList(_list779.size); - ByteBuffer _elem780; - for (int _i781 = 0; _i781 < _list779.size; ++_i781) + org.apache.thrift.protocol.TList _list803 = iprot.readListBegin(); + struct.metadata = new ArrayList(_list803.size); + ByteBuffer _elem804; + for (int _i805 = 0; _i805 < _list803.size; ++_i805) { - _elem780 = iprot.readBinary(); - struct.metadata.add(_elem780); + _elem804 = iprot.readBinary(); + struct.metadata.add(_elem804); } 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 _iter782 : struct.fileIds) + for (long _iter806 : struct.fileIds) { - oprot.writeI64(_iter782); + oprot.writeI64(_iter806); } 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 _iter783 : struct.metadata) + for (ByteBuffer _iter807 : struct.metadata) { - oprot.writeBinary(_iter783); + oprot.writeBinary(_iter807); } 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 _iter784 : struct.fileIds) + for (long _iter808 : struct.fileIds) { - oprot.writeI64(_iter784); + oprot.writeI64(_iter808); } } { oprot.writeI32(struct.metadata.size()); - for (ByteBuffer _iter785 : struct.metadata) + for (ByteBuffer _iter809 : struct.metadata) { - oprot.writeBinary(_iter785); + oprot.writeBinary(_iter809); } } 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 _list786 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list786.size); - long _elem787; - for (int _i788 = 0; _i788 < _list786.size; ++_i788) + org.apache.thrift.protocol.TList _list810 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list810.size); + long _elem811; + for (int _i812 = 0; _i812 < _list810.size; ++_i812) { - _elem787 = iprot.readI64(); - struct.fileIds.add(_elem787); + _elem811 = iprot.readI64(); + struct.fileIds.add(_elem811); } } struct.setFileIdsIsSet(true); { - org.apache.thrift.protocol.TList _list789 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.metadata = new ArrayList(_list789.size); - ByteBuffer _elem790; - for (int _i791 = 0; _i791 < _list789.size; ++_i791) + org.apache.thrift.protocol.TList _list813 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.metadata = new ArrayList(_list813.size); + ByteBuffer _elem814; + for (int _i815 = 0; _i815 < _list813.size; ++_i815) { - _elem790 = iprot.readBinary(); - struct.metadata.add(_elem790); + _elem814 = iprot.readBinary(); + struct.metadata.add(_elem814); } } struct.setMetadataIsSet(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 62bc3b4bb4..935af04b35 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 _list904 = iprot.readListBegin(); - struct.cols = new ArrayList(_list904.size); - FieldSchema _elem905; - for (int _i906 = 0; _i906 < _list904.size; ++_i906) + org.apache.thrift.protocol.TList _list928 = iprot.readListBegin(); + struct.cols = new ArrayList(_list928.size); + FieldSchema _elem929; + for (int _i930 = 0; _i930 < _list928.size; ++_i930) { - _elem905 = new FieldSchema(); - _elem905.read(iprot); - struct.cols.add(_elem905); + _elem929 = new FieldSchema(); + _elem929.read(iprot); + struct.cols.add(_elem929); } 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 _iter907 : struct.cols) + for (FieldSchema _iter931 : struct.cols) { - _iter907.write(oprot); + _iter931.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 _iter908 : struct.cols) + for (FieldSchema _iter932 : struct.cols) { - _iter908.write(oprot); + _iter932.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 _list909 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.cols = new ArrayList(_list909.size); - FieldSchema _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.cols = new ArrayList(_list933.size); + FieldSchema _elem934; + for (int _i935 = 0; _i935 < _list933.size; ++_i935) { - _elem910 = new FieldSchema(); - _elem910.read(iprot); - struct.cols.add(_elem910); + _elem934 = new FieldSchema(); + _elem934.read(iprot); + struct.cols.add(_elem934); } } 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 4e465ac57d..d7e5132ea9 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 _list684 = iprot.readListBegin(); - struct.compacts = new ArrayList(_list684.size); - ShowCompactResponseElement _elem685; - for (int _i686 = 0; _i686 < _list684.size; ++_i686) + org.apache.thrift.protocol.TList _list692 = iprot.readListBegin(); + struct.compacts = new ArrayList(_list692.size); + ShowCompactResponseElement _elem693; + for (int _i694 = 0; _i694 < _list692.size; ++_i694) { - _elem685 = new ShowCompactResponseElement(); - _elem685.read(iprot); - struct.compacts.add(_elem685); + _elem693 = new ShowCompactResponseElement(); + _elem693.read(iprot); + struct.compacts.add(_elem693); } 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 _iter687 : struct.compacts) + for (ShowCompactResponseElement _iter695 : struct.compacts) { - _iter687.write(oprot); + _iter695.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 _iter688 : struct.compacts) + for (ShowCompactResponseElement _iter696 : struct.compacts) { - _iter688.write(oprot); + _iter696.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 _list689 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.compacts = new ArrayList(_list689.size); - ShowCompactResponseElement _elem690; - for (int _i691 = 0; _i691 < _list689.size; ++_i691) + 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) { - _elem690 = new ShowCompactResponseElement(); - _elem690.read(iprot); - struct.compacts.add(_elem690); + _elem698 = new ShowCompactResponseElement(); + _elem698.read(iprot); + struct.compacts.add(_elem698); } } 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 cfc7f9cf38..0e1009ce1a 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 _list650 = iprot.readListBegin(); - struct.locks = new ArrayList(_list650.size); - ShowLocksResponseElement _elem651; - for (int _i652 = 0; _i652 < _list650.size; ++_i652) + org.apache.thrift.protocol.TList _list658 = iprot.readListBegin(); + struct.locks = new ArrayList(_list658.size); + ShowLocksResponseElement _elem659; + for (int _i660 = 0; _i660 < _list658.size; ++_i660) { - _elem651 = new ShowLocksResponseElement(); - _elem651.read(iprot); - struct.locks.add(_elem651); + _elem659 = new ShowLocksResponseElement(); + _elem659.read(iprot); + struct.locks.add(_elem659); } 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 _iter653 : struct.locks) + for (ShowLocksResponseElement _iter661 : struct.locks) { - _iter653.write(oprot); + _iter661.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 _iter654 : struct.locks) + for (ShowLocksResponseElement _iter662 : struct.locks) { - _iter654.write(oprot); + _iter662.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 _list655 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.locks = new ArrayList(_list655.size); - ShowLocksResponseElement _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.locks = new ArrayList(_list663.size); + ShowLocksResponseElement _elem664; + for (int _i665 = 0; _i665 < _list663.size; ++_i665) { - _elem656 = new ShowLocksResponseElement(); - _elem656.read(iprot); - struct.locks.add(_elem656); + _elem664 = new ShowLocksResponseElement(); + _elem664.read(iprot); + struct.locks.add(_elem664); } } 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 40822c61c4..20f225d007 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 _list602 = iprot.readListBegin(); - struct.invalidWriteIds = new ArrayList(_list602.size); - long _elem603; - for (int _i604 = 0; _i604 < _list602.size; ++_i604) + org.apache.thrift.protocol.TList _list610 = iprot.readListBegin(); + struct.invalidWriteIds = new ArrayList(_list610.size); + long _elem611; + for (int _i612 = 0; _i612 < _list610.size; ++_i612) { - _elem603 = iprot.readI64(); - struct.invalidWriteIds.add(_elem603); + _elem611 = iprot.readI64(); + struct.invalidWriteIds.add(_elem611); } 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 _iter605 : struct.invalidWriteIds) + for (long _iter613 : struct.invalidWriteIds) { - oprot.writeI64(_iter605); + oprot.writeI64(_iter613); } 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 _iter606 : struct.invalidWriteIds) + for (long _iter614 : struct.invalidWriteIds) { - oprot.writeI64(_iter606); + oprot.writeI64(_iter614); } } 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 _list607 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.invalidWriteIds = new ArrayList(_list607.size); - long _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.I64, iprot.readI32()); + struct.invalidWriteIds = new ArrayList(_list615.size); + long _elem616; + for (int _i617 = 0; _i617 < _list615.size; ++_i617) { - _elem608 = iprot.readI64(); - struct.invalidWriteIds.add(_elem608); + _elem616 = iprot.readI64(); + struct.invalidWriteIds.add(_elem616); } } 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 e2f0e82b8c..97983461c1 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 @@ -366,6 +366,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; @@ -778,6 +780,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; @@ -5555,6 +5559,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); @@ -12428,6 +12455,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); @@ -13956,6 +14015,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"); @@ -19414,6 +19494,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"); @@ -40875,13 +41007,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 _list920 = iprot.readListBegin(); - struct.success = new ArrayList(_list920.size); - String _elem921; - for (int _i922 = 0; _i922 < _list920.size; ++_i922) + org.apache.thrift.protocol.TList _list944 = iprot.readListBegin(); + struct.success = new ArrayList(_list944.size); + String _elem945; + for (int _i946 = 0; _i946 < _list944.size; ++_i946) { - _elem921 = iprot.readString(); - struct.success.add(_elem921); + _elem945 = iprot.readString(); + struct.success.add(_elem945); } iprot.readListEnd(); } @@ -40916,9 +41048,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 _iter923 : struct.success) + for (String _iter947 : struct.success) { - oprot.writeString(_iter923); + oprot.writeString(_iter947); } oprot.writeListEnd(); } @@ -40957,9 +41089,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_databases_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter924 : struct.success) + for (String _iter948 : struct.success) { - oprot.writeString(_iter924); + oprot.writeString(_iter948); } } } @@ -40974,13 +41106,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 _list925 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list925.size); - String _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.STRING, iprot.readI32()); + struct.success = new ArrayList(_list949.size); + String _elem950; + for (int _i951 = 0; _i951 < _list949.size; ++_i951) { - _elem926 = iprot.readString(); - struct.success.add(_elem926); + _elem950 = iprot.readString(); + struct.success.add(_elem950); } } struct.setSuccessIsSet(true); @@ -41634,13 +41766,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 _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(); } @@ -41675,9 +41807,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 _iter931 : struct.success) + for (String _iter955 : struct.success) { - oprot.writeString(_iter931); + oprot.writeString(_iter955); } oprot.writeListEnd(); } @@ -41716,9 +41848,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_databases_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter932 : struct.success) + for (String _iter956 : struct.success) { - oprot.writeString(_iter932); + oprot.writeString(_iter956); } } } @@ -41733,13 +41865,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 _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); @@ -46346,16 +46478,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 _map936 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map936.size); - String _key937; - Type _val938; - for (int _i939 = 0; _i939 < _map936.size; ++_i939) + org.apache.thrift.protocol.TMap _map960 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map960.size); + String _key961; + Type _val962; + for (int _i963 = 0; _i963 < _map960.size; ++_i963) { - _key937 = iprot.readString(); - _val938 = new Type(); - _val938.read(iprot); - struct.success.put(_key937, _val938); + _key961 = iprot.readString(); + _val962 = new Type(); + _val962.read(iprot); + struct.success.put(_key961, _val962); } iprot.readMapEnd(); } @@ -46390,10 +46522,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 _iter940 : struct.success.entrySet()) + for (Map.Entry _iter964 : struct.success.entrySet()) { - oprot.writeString(_iter940.getKey()); - _iter940.getValue().write(oprot); + oprot.writeString(_iter964.getKey()); + _iter964.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -46432,10 +46564,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 _iter941 : struct.success.entrySet()) + for (Map.Entry _iter965 : struct.success.entrySet()) { - oprot.writeString(_iter941.getKey()); - _iter941.getValue().write(oprot); + oprot.writeString(_iter965.getKey()); + _iter965.getValue().write(oprot); } } } @@ -46450,16 +46582,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 _map942 = 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*_map942.size); - String _key943; - Type _val944; - for (int _i945 = 0; _i945 < _map942.size; ++_i945) + org.apache.thrift.protocol.TMap _map966 = 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*_map966.size); + String _key967; + Type _val968; + for (int _i969 = 0; _i969 < _map966.size; ++_i969) { - _key943 = iprot.readString(); - _val944 = new Type(); - _val944.read(iprot); - struct.success.put(_key943, _val944); + _key967 = iprot.readString(); + _val968 = new Type(); + _val968.read(iprot); + struct.success.put(_key967, _val968); } } struct.setSuccessIsSet(true); @@ -47494,14 +47626,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 _list946 = iprot.readListBegin(); - struct.success = new ArrayList(_list946.size); - FieldSchema _elem947; - for (int _i948 = 0; _i948 < _list946.size; ++_i948) + org.apache.thrift.protocol.TList _list970 = iprot.readListBegin(); + struct.success = new ArrayList(_list970.size); + FieldSchema _elem971; + for (int _i972 = 0; _i972 < _list970.size; ++_i972) { - _elem947 = new FieldSchema(); - _elem947.read(iprot); - struct.success.add(_elem947); + _elem971 = new FieldSchema(); + _elem971.read(iprot); + struct.success.add(_elem971); } iprot.readListEnd(); } @@ -47554,9 +47686,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 _iter949 : struct.success) + for (FieldSchema _iter973 : struct.success) { - _iter949.write(oprot); + _iter973.write(oprot); } oprot.writeListEnd(); } @@ -47611,9 +47743,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter950 : struct.success) + for (FieldSchema _iter974 : struct.success) { - _iter950.write(oprot); + _iter974.write(oprot); } } } @@ -47634,14 +47766,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 _list951 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list951.size); - FieldSchema _elem952; - for (int _i953 = 0; _i953 < _list951.size; ++_i953) + 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) { - _elem952 = new FieldSchema(); - _elem952.read(iprot); - struct.success.add(_elem952); + _elem976 = new FieldSchema(); + _elem976.read(iprot); + struct.success.add(_elem976); } } struct.setSuccessIsSet(true); @@ -48795,14 +48927,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 _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(); } @@ -48855,9 +48987,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 _iter957 : struct.success) + for (FieldSchema _iter981 : struct.success) { - _iter957.write(oprot); + _iter981.write(oprot); } oprot.writeListEnd(); } @@ -48912,9 +49044,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_with_env if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter958 : struct.success) + for (FieldSchema _iter982 : struct.success) { - _iter958.write(oprot); + _iter982.write(oprot); } } } @@ -48935,14 +49067,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 _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); @@ -49987,14 +50119,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 _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(); } @@ -50047,9 +50179,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 _iter965 : struct.success) + for (FieldSchema _iter989 : struct.success) { - _iter965.write(oprot); + _iter989.write(oprot); } oprot.writeListEnd(); } @@ -50104,9 +50236,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter966 : struct.success) + for (FieldSchema _iter990 : struct.success) { - _iter966.write(oprot); + _iter990.write(oprot); } } } @@ -50127,14 +50259,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 _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); @@ -51288,14 +51420,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 _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(); } @@ -51348,9 +51480,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 _iter973 : struct.success) + for (FieldSchema _iter997 : struct.success) { - _iter973.write(oprot); + _iter997.write(oprot); } oprot.writeListEnd(); } @@ -51405,9 +51537,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_with_env if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter974 : struct.success) + for (FieldSchema _iter998 : struct.success) { - _iter974.write(oprot); + _iter998.write(oprot); } } } @@ -51428,14 +51560,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 _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); @@ -54564,14 +54696,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 _list978 = iprot.readListBegin(); - struct.primaryKeys = new ArrayList(_list978.size); - SQLPrimaryKey _elem979; - for (int _i980 = 0; _i980 < _list978.size; ++_i980) + org.apache.thrift.protocol.TList _list1002 = iprot.readListBegin(); + struct.primaryKeys = new ArrayList(_list1002.size); + SQLPrimaryKey _elem1003; + for (int _i1004 = 0; _i1004 < _list1002.size; ++_i1004) { - _elem979 = new SQLPrimaryKey(); - _elem979.read(iprot); - struct.primaryKeys.add(_elem979); + _elem1003 = new SQLPrimaryKey(); + _elem1003.read(iprot); + struct.primaryKeys.add(_elem1003); } iprot.readListEnd(); } @@ -54583,14 +54715,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 _list981 = iprot.readListBegin(); - struct.foreignKeys = new ArrayList(_list981.size); - SQLForeignKey _elem982; - for (int _i983 = 0; _i983 < _list981.size; ++_i983) + org.apache.thrift.protocol.TList _list1005 = iprot.readListBegin(); + struct.foreignKeys = new ArrayList(_list1005.size); + SQLForeignKey _elem1006; + for (int _i1007 = 0; _i1007 < _list1005.size; ++_i1007) { - _elem982 = new SQLForeignKey(); - _elem982.read(iprot); - struct.foreignKeys.add(_elem982); + _elem1006 = new SQLForeignKey(); + _elem1006.read(iprot); + struct.foreignKeys.add(_elem1006); } iprot.readListEnd(); } @@ -54602,14 +54734,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 _list984 = iprot.readListBegin(); - struct.uniqueConstraints = new ArrayList(_list984.size); - SQLUniqueConstraint _elem985; - for (int _i986 = 0; _i986 < _list984.size; ++_i986) + org.apache.thrift.protocol.TList _list1008 = iprot.readListBegin(); + struct.uniqueConstraints = new ArrayList(_list1008.size); + SQLUniqueConstraint _elem1009; + for (int _i1010 = 0; _i1010 < _list1008.size; ++_i1010) { - _elem985 = new SQLUniqueConstraint(); - _elem985.read(iprot); - struct.uniqueConstraints.add(_elem985); + _elem1009 = new SQLUniqueConstraint(); + _elem1009.read(iprot); + struct.uniqueConstraints.add(_elem1009); } iprot.readListEnd(); } @@ -54621,14 +54753,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 _list987 = iprot.readListBegin(); - struct.notNullConstraints = new ArrayList(_list987.size); - SQLNotNullConstraint _elem988; - for (int _i989 = 0; _i989 < _list987.size; ++_i989) + org.apache.thrift.protocol.TList _list1011 = iprot.readListBegin(); + struct.notNullConstraints = new ArrayList(_list1011.size); + SQLNotNullConstraint _elem1012; + for (int _i1013 = 0; _i1013 < _list1011.size; ++_i1013) { - _elem988 = new SQLNotNullConstraint(); - _elem988.read(iprot); - struct.notNullConstraints.add(_elem988); + _elem1012 = new SQLNotNullConstraint(); + _elem1012.read(iprot); + struct.notNullConstraints.add(_elem1012); } iprot.readListEnd(); } @@ -54640,14 +54772,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 _list990 = iprot.readListBegin(); - struct.defaultConstraints = new ArrayList(_list990.size); - SQLDefaultConstraint _elem991; - for (int _i992 = 0; _i992 < _list990.size; ++_i992) + org.apache.thrift.protocol.TList _list1014 = iprot.readListBegin(); + struct.defaultConstraints = new ArrayList(_list1014.size); + SQLDefaultConstraint _elem1015; + for (int _i1016 = 0; _i1016 < _list1014.size; ++_i1016) { - _elem991 = new SQLDefaultConstraint(); - _elem991.read(iprot); - struct.defaultConstraints.add(_elem991); + _elem1015 = new SQLDefaultConstraint(); + _elem1015.read(iprot); + struct.defaultConstraints.add(_elem1015); } iprot.readListEnd(); } @@ -54659,14 +54791,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 _list993 = iprot.readListBegin(); - struct.checkConstraints = new ArrayList(_list993.size); - SQLCheckConstraint _elem994; - for (int _i995 = 0; _i995 < _list993.size; ++_i995) + org.apache.thrift.protocol.TList _list1017 = iprot.readListBegin(); + struct.checkConstraints = new ArrayList(_list1017.size); + SQLCheckConstraint _elem1018; + for (int _i1019 = 0; _i1019 < _list1017.size; ++_i1019) { - _elem994 = new SQLCheckConstraint(); - _elem994.read(iprot); - struct.checkConstraints.add(_elem994); + _elem1018 = new SQLCheckConstraint(); + _elem1018.read(iprot); + struct.checkConstraints.add(_elem1018); } iprot.readListEnd(); } @@ -54697,9 +54829,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 _iter996 : struct.primaryKeys) + for (SQLPrimaryKey _iter1020 : struct.primaryKeys) { - _iter996.write(oprot); + _iter1020.write(oprot); } oprot.writeListEnd(); } @@ -54709,9 +54841,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 _iter997 : struct.foreignKeys) + for (SQLForeignKey _iter1021 : struct.foreignKeys) { - _iter997.write(oprot); + _iter1021.write(oprot); } oprot.writeListEnd(); } @@ -54721,9 +54853,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 _iter998 : struct.uniqueConstraints) + for (SQLUniqueConstraint _iter1022 : struct.uniqueConstraints) { - _iter998.write(oprot); + _iter1022.write(oprot); } oprot.writeListEnd(); } @@ -54733,9 +54865,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 _iter999 : struct.notNullConstraints) + for (SQLNotNullConstraint _iter1023 : struct.notNullConstraints) { - _iter999.write(oprot); + _iter1023.write(oprot); } oprot.writeListEnd(); } @@ -54745,9 +54877,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 _iter1000 : struct.defaultConstraints) + for (SQLDefaultConstraint _iter1024 : struct.defaultConstraints) { - _iter1000.write(oprot); + _iter1024.write(oprot); } oprot.writeListEnd(); } @@ -54757,9 +54889,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 _iter1001 : struct.checkConstraints) + for (SQLCheckConstraint _iter1025 : struct.checkConstraints) { - _iter1001.write(oprot); + _iter1025.write(oprot); } oprot.writeListEnd(); } @@ -54811,54 +54943,54 @@ public void write(org.apache.thrift.protocol.TProtocol prot, create_table_with_c if (struct.isSetPrimaryKeys()) { { oprot.writeI32(struct.primaryKeys.size()); - for (SQLPrimaryKey _iter1002 : struct.primaryKeys) + for (SQLPrimaryKey _iter1026 : struct.primaryKeys) { - _iter1002.write(oprot); + _iter1026.write(oprot); } } } if (struct.isSetForeignKeys()) { { oprot.writeI32(struct.foreignKeys.size()); - for (SQLForeignKey _iter1003 : struct.foreignKeys) + for (SQLForeignKey _iter1027 : struct.foreignKeys) { - _iter1003.write(oprot); + _iter1027.write(oprot); } } } if (struct.isSetUniqueConstraints()) { { oprot.writeI32(struct.uniqueConstraints.size()); - for (SQLUniqueConstraint _iter1004 : struct.uniqueConstraints) + for (SQLUniqueConstraint _iter1028 : struct.uniqueConstraints) { - _iter1004.write(oprot); + _iter1028.write(oprot); } } } if (struct.isSetNotNullConstraints()) { { oprot.writeI32(struct.notNullConstraints.size()); - for (SQLNotNullConstraint _iter1005 : struct.notNullConstraints) + for (SQLNotNullConstraint _iter1029 : struct.notNullConstraints) { - _iter1005.write(oprot); + _iter1029.write(oprot); } } } if (struct.isSetDefaultConstraints()) { { oprot.writeI32(struct.defaultConstraints.size()); - for (SQLDefaultConstraint _iter1006 : struct.defaultConstraints) + for (SQLDefaultConstraint _iter1030 : struct.defaultConstraints) { - _iter1006.write(oprot); + _iter1030.write(oprot); } } } if (struct.isSetCheckConstraints()) { { oprot.writeI32(struct.checkConstraints.size()); - for (SQLCheckConstraint _iter1007 : struct.checkConstraints) + for (SQLCheckConstraint _iter1031 : struct.checkConstraints) { - _iter1007.write(oprot); + _iter1031.write(oprot); } } } @@ -54875,84 +55007,84 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_table_with_co } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list1008 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.primaryKeys = new ArrayList(_list1008.size); - SQLPrimaryKey _elem1009; - for (int _i1010 = 0; _i1010 < _list1008.size; ++_i1010) + org.apache.thrift.protocol.TList _list1032 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.primaryKeys = new ArrayList(_list1032.size); + SQLPrimaryKey _elem1033; + for (int _i1034 = 0; _i1034 < _list1032.size; ++_i1034) { - _elem1009 = new SQLPrimaryKey(); - _elem1009.read(iprot); - struct.primaryKeys.add(_elem1009); + _elem1033 = new SQLPrimaryKey(); + _elem1033.read(iprot); + struct.primaryKeys.add(_elem1033); } } struct.setPrimaryKeysIsSet(true); } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1011 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.foreignKeys = new ArrayList(_list1011.size); - SQLForeignKey _elem1012; - for (int _i1013 = 0; _i1013 < _list1011.size; ++_i1013) + org.apache.thrift.protocol.TList _list1035 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.foreignKeys = new ArrayList(_list1035.size); + SQLForeignKey _elem1036; + for (int _i1037 = 0; _i1037 < _list1035.size; ++_i1037) { - _elem1012 = new SQLForeignKey(); - _elem1012.read(iprot); - struct.foreignKeys.add(_elem1012); + _elem1036 = new SQLForeignKey(); + _elem1036.read(iprot); + struct.foreignKeys.add(_elem1036); } } struct.setForeignKeysIsSet(true); } if (incoming.get(3)) { { - org.apache.thrift.protocol.TList _list1014 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.uniqueConstraints = new ArrayList(_list1014.size); - SQLUniqueConstraint _elem1015; - for (int _i1016 = 0; _i1016 < _list1014.size; ++_i1016) + org.apache.thrift.protocol.TList _list1038 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.uniqueConstraints = new ArrayList(_list1038.size); + SQLUniqueConstraint _elem1039; + for (int _i1040 = 0; _i1040 < _list1038.size; ++_i1040) { - _elem1015 = new SQLUniqueConstraint(); - _elem1015.read(iprot); - struct.uniqueConstraints.add(_elem1015); + _elem1039 = new SQLUniqueConstraint(); + _elem1039.read(iprot); + struct.uniqueConstraints.add(_elem1039); } } struct.setUniqueConstraintsIsSet(true); } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list1017 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.notNullConstraints = new ArrayList(_list1017.size); - SQLNotNullConstraint _elem1018; - for (int _i1019 = 0; _i1019 < _list1017.size; ++_i1019) + org.apache.thrift.protocol.TList _list1041 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.notNullConstraints = new ArrayList(_list1041.size); + SQLNotNullConstraint _elem1042; + for (int _i1043 = 0; _i1043 < _list1041.size; ++_i1043) { - _elem1018 = new SQLNotNullConstraint(); - _elem1018.read(iprot); - struct.notNullConstraints.add(_elem1018); + _elem1042 = new SQLNotNullConstraint(); + _elem1042.read(iprot); + struct.notNullConstraints.add(_elem1042); } } struct.setNotNullConstraintsIsSet(true); } if (incoming.get(5)) { { - org.apache.thrift.protocol.TList _list1020 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.defaultConstraints = new ArrayList(_list1020.size); - SQLDefaultConstraint _elem1021; - for (int _i1022 = 0; _i1022 < _list1020.size; ++_i1022) + org.apache.thrift.protocol.TList _list1044 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.defaultConstraints = new ArrayList(_list1044.size); + SQLDefaultConstraint _elem1045; + for (int _i1046 = 0; _i1046 < _list1044.size; ++_i1046) { - _elem1021 = new SQLDefaultConstraint(); - _elem1021.read(iprot); - struct.defaultConstraints.add(_elem1021); + _elem1045 = new SQLDefaultConstraint(); + _elem1045.read(iprot); + struct.defaultConstraints.add(_elem1045); } } struct.setDefaultConstraintsIsSet(true); } if (incoming.get(6)) { { - org.apache.thrift.protocol.TList _list1023 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.checkConstraints = new ArrayList(_list1023.size); - SQLCheckConstraint _elem1024; - for (int _i1025 = 0; _i1025 < _list1023.size; ++_i1025) + org.apache.thrift.protocol.TList _list1047 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.checkConstraints = new ArrayList(_list1047.size); + SQLCheckConstraint _elem1048; + for (int _i1049 = 0; _i1049 < _list1047.size; ++_i1049) { - _elem1024 = new SQLCheckConstraint(); - _elem1024.read(iprot); - struct.checkConstraints.add(_elem1024); + _elem1048 = new SQLCheckConstraint(); + _elem1048.read(iprot); + struct.checkConstraints.add(_elem1048); } } struct.setCheckConstraintsIsSet(true); @@ -64102,13 +64234,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 _list1026 = iprot.readListBegin(); - struct.partNames = new ArrayList(_list1026.size); - String _elem1027; - for (int _i1028 = 0; _i1028 < _list1026.size; ++_i1028) + org.apache.thrift.protocol.TList _list1050 = iprot.readListBegin(); + struct.partNames = new ArrayList(_list1050.size); + String _elem1051; + for (int _i1052 = 0; _i1052 < _list1050.size; ++_i1052) { - _elem1027 = iprot.readString(); - struct.partNames.add(_elem1027); + _elem1051 = iprot.readString(); + struct.partNames.add(_elem1051); } iprot.readListEnd(); } @@ -64144,9 +64276,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 _iter1029 : struct.partNames) + for (String _iter1053 : struct.partNames) { - oprot.writeString(_iter1029); + oprot.writeString(_iter1053); } oprot.writeListEnd(); } @@ -64189,9 +64321,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, truncate_table_args if (struct.isSetPartNames()) { { oprot.writeI32(struct.partNames.size()); - for (String _iter1030 : struct.partNames) + for (String _iter1054 : struct.partNames) { - oprot.writeString(_iter1030); + oprot.writeString(_iter1054); } } } @@ -64211,13 +64343,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, truncate_table_args } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1031 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partNames = new ArrayList(_list1031.size); - String _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.STRING, iprot.readI32()); + struct.partNames = new ArrayList(_list1055.size); + String _elem1056; + for (int _i1057 = 0; _i1057 < _list1055.size; ++_i1057) { - _elem1032 = iprot.readString(); - struct.partNames.add(_elem1032); + _elem1056 = iprot.readString(); + struct.partNames.add(_elem1056); } } struct.setPartNamesIsSet(true); @@ -65442,13 +65574,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 _list1034 = iprot.readListBegin(); - struct.success = new ArrayList(_list1034.size); - String _elem1035; - for (int _i1036 = 0; _i1036 < _list1034.size; ++_i1036) + org.apache.thrift.protocol.TList _list1058 = iprot.readListBegin(); + struct.success = new ArrayList(_list1058.size); + String _elem1059; + for (int _i1060 = 0; _i1060 < _list1058.size; ++_i1060) { - _elem1035 = iprot.readString(); - struct.success.add(_elem1035); + _elem1059 = iprot.readString(); + struct.success.add(_elem1059); } iprot.readListEnd(); } @@ -65483,9 +65615,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 _iter1037 : struct.success) + for (String _iter1061 : struct.success) { - oprot.writeString(_iter1037); + oprot.writeString(_iter1061); } oprot.writeListEnd(); } @@ -65524,9 +65656,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1038 : struct.success) + for (String _iter1062 : struct.success) { - oprot.writeString(_iter1038); + oprot.writeString(_iter1062); } } } @@ -65541,13 +65673,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 _list1039 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = 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.success = new ArrayList(_list1063.size); + String _elem1064; + for (int _i1065 = 0; _i1065 < _list1063.size; ++_i1065) { - _elem1040 = iprot.readString(); - struct.success.add(_elem1040); + _elem1064 = iprot.readString(); + struct.success.add(_elem1064); } } struct.setSuccessIsSet(true); @@ -66521,13 +66653,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 _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(); } @@ -66562,9 +66694,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 _iter1045 : struct.success) + for (String _iter1069 : struct.success) { - oprot.writeString(_iter1045); + oprot.writeString(_iter1069); } oprot.writeListEnd(); } @@ -66603,9 +66735,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_ if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1046 : struct.success) + for (String _iter1070 : struct.success) { - oprot.writeString(_iter1046); + oprot.writeString(_iter1070); } } } @@ -66620,13 +66752,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 _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); @@ -67392,13 +67524,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 _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(); } @@ -67433,9 +67565,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 _iter1053 : struct.success) + for (String _iter1077 : struct.success) { - oprot.writeString(_iter1053); + oprot.writeString(_iter1077); } oprot.writeListEnd(); } @@ -67474,9 +67606,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_materialized_vi if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1054 : struct.success) + for (String _iter1078 : struct.success) { - oprot.writeString(_iter1054); + oprot.writeString(_iter1078); } } } @@ -67491,13 +67623,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 _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); @@ -68002,13 +68134,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 _list1058 = iprot.readListBegin(); - struct.tbl_types = new ArrayList(_list1058.size); - String _elem1059; - for (int _i1060 = 0; _i1060 < _list1058.size; ++_i1060) + org.apache.thrift.protocol.TList _list1082 = iprot.readListBegin(); + struct.tbl_types = new ArrayList(_list1082.size); + String _elem1083; + for (int _i1084 = 0; _i1084 < _list1082.size; ++_i1084) { - _elem1059 = iprot.readString(); - struct.tbl_types.add(_elem1059); + _elem1083 = iprot.readString(); + struct.tbl_types.add(_elem1083); } iprot.readListEnd(); } @@ -68044,9 +68176,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 _iter1061 : struct.tbl_types) + for (String _iter1085 : struct.tbl_types) { - oprot.writeString(_iter1061); + oprot.writeString(_iter1085); } oprot.writeListEnd(); } @@ -68089,9 +68221,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 _iter1062 : struct.tbl_types) + for (String _iter1086 : struct.tbl_types) { - oprot.writeString(_iter1062); + oprot.writeString(_iter1086); } } } @@ -68111,13 +68243,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_meta_args } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1063 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tbl_types = 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.tbl_types = new ArrayList(_list1087.size); + String _elem1088; + for (int _i1089 = 0; _i1089 < _list1087.size; ++_i1089) { - _elem1064 = iprot.readString(); - struct.tbl_types.add(_elem1064); + _elem1088 = iprot.readString(); + struct.tbl_types.add(_elem1088); } } struct.setTbl_typesIsSet(true); @@ -68523,14 +68655,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 _list1066 = iprot.readListBegin(); - struct.success = new ArrayList(_list1066.size); - TableMeta _elem1067; - for (int _i1068 = 0; _i1068 < _list1066.size; ++_i1068) + org.apache.thrift.protocol.TList _list1090 = iprot.readListBegin(); + struct.success = new ArrayList(_list1090.size); + TableMeta _elem1091; + for (int _i1092 = 0; _i1092 < _list1090.size; ++_i1092) { - _elem1067 = new TableMeta(); - _elem1067.read(iprot); - struct.success.add(_elem1067); + _elem1091 = new TableMeta(); + _elem1091.read(iprot); + struct.success.add(_elem1091); } iprot.readListEnd(); } @@ -68565,9 +68697,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 _iter1069 : struct.success) + for (TableMeta _iter1093 : struct.success) { - _iter1069.write(oprot); + _iter1093.write(oprot); } oprot.writeListEnd(); } @@ -68606,9 +68738,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_meta_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (TableMeta _iter1070 : struct.success) + for (TableMeta _iter1094 : struct.success) { - _iter1070.write(oprot); + _iter1094.write(oprot); } } } @@ -68623,14 +68755,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 _list1071 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1071.size); - TableMeta _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.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1095.size); + TableMeta _elem1096; + for (int _i1097 = 0; _i1097 < _list1095.size; ++_i1097) { - _elem1072 = new TableMeta(); - _elem1072.read(iprot); - struct.success.add(_elem1072); + _elem1096 = new TableMeta(); + _elem1096.read(iprot); + struct.success.add(_elem1096); } } struct.setSuccessIsSet(true); @@ -69396,13 +69528,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 _list1074 = iprot.readListBegin(); - struct.success = new ArrayList(_list1074.size); - String _elem1075; - for (int _i1076 = 0; _i1076 < _list1074.size; ++_i1076) + org.apache.thrift.protocol.TList _list1098 = iprot.readListBegin(); + struct.success = new ArrayList(_list1098.size); + String _elem1099; + for (int _i1100 = 0; _i1100 < _list1098.size; ++_i1100) { - _elem1075 = iprot.readString(); - struct.success.add(_elem1075); + _elem1099 = iprot.readString(); + struct.success.add(_elem1099); } iprot.readListEnd(); } @@ -69437,9 +69569,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 _iter1077 : struct.success) + for (String _iter1101 : struct.success) { - oprot.writeString(_iter1077); + oprot.writeString(_iter1101); } oprot.writeListEnd(); } @@ -69478,9 +69610,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_tables_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1078 : struct.success) + for (String _iter1102 : struct.success) { - oprot.writeString(_iter1078); + oprot.writeString(_iter1102); } } } @@ -69495,13 +69627,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 _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) + org.apache.thrift.protocol.TList _list1103 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1103.size); + String _elem1104; + for (int _i1105 = 0; _i1105 < _list1103.size; ++_i1105) { - _elem1080 = iprot.readString(); - struct.success.add(_elem1080); + _elem1104 = iprot.readString(); + struct.success.add(_elem1104); } } struct.setSuccessIsSet(true); @@ -70954,13 +71086,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 _list1082 = iprot.readListBegin(); - struct.tbl_names = new ArrayList(_list1082.size); - String _elem1083; - for (int _i1084 = 0; _i1084 < _list1082.size; ++_i1084) + 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) { - _elem1083 = iprot.readString(); - struct.tbl_names.add(_elem1083); + _elem1107 = iprot.readString(); + struct.tbl_names.add(_elem1107); } iprot.readListEnd(); } @@ -70991,9 +71123,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 _iter1085 : struct.tbl_names) + for (String _iter1109 : struct.tbl_names) { - oprot.writeString(_iter1085); + oprot.writeString(_iter1109); } oprot.writeListEnd(); } @@ -71030,9 +71162,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 _iter1086 : struct.tbl_names) + for (String _iter1110 : struct.tbl_names) { - oprot.writeString(_iter1086); + oprot.writeString(_iter1110); } } } @@ -71048,13 +71180,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list1087 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tbl_names = 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.tbl_names = new ArrayList(_list1111.size); + String _elem1112; + for (int _i1113 = 0; _i1113 < _list1111.size; ++_i1113) { - _elem1088 = iprot.readString(); - struct.tbl_names.add(_elem1088); + _elem1112 = iprot.readString(); + struct.tbl_names.add(_elem1112); } } struct.setTbl_namesIsSet(true); @@ -71379,14 +71511,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 _list1090 = iprot.readListBegin(); - struct.success = new ArrayList
(_list1090.size); - Table _elem1091; - for (int _i1092 = 0; _i1092 < _list1090.size; ++_i1092) + org.apache.thrift.protocol.TList _list1114 = iprot.readListBegin(); + struct.success = new ArrayList
(_list1114.size); + Table _elem1115; + for (int _i1116 = 0; _i1116 < _list1114.size; ++_i1116) { - _elem1091 = new Table(); - _elem1091.read(iprot); - struct.success.add(_elem1091); + _elem1115 = new Table(); + _elem1115.read(iprot); + struct.success.add(_elem1115); } iprot.readListEnd(); } @@ -71412,9 +71544,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 _iter1093 : struct.success) + for (Table _iter1117 : struct.success) { - _iter1093.write(oprot); + _iter1117.write(oprot); } oprot.writeListEnd(); } @@ -71445,9 +71577,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_b if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Table _iter1094 : struct.success) + for (Table _iter1118 : struct.success) { - _iter1094.write(oprot); + _iter1118.write(oprot); } } } @@ -71459,14 +71591,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 _list1095 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList
(_list1095.size); - Table _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.STRUCT, iprot.readI32()); + struct.success = new ArrayList
(_list1119.size); + Table _elem1120; + for (int _i1121 = 0; _i1121 < _list1119.size; ++_i1121) { - _elem1096 = new Table(); - _elem1096.read(iprot); - struct.success.add(_elem1096); + _elem1120 = new Table(); + _elem1120.read(iprot); + struct.success.add(_elem1120); } } struct.setSuccessIsSet(true); @@ -73859,13 +73991,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 _list1098 = iprot.readListBegin(); - struct.tbl_names = new ArrayList(_list1098.size); - String _elem1099; - for (int _i1100 = 0; _i1100 < _list1098.size; ++_i1100) + org.apache.thrift.protocol.TList _list1122 = iprot.readListBegin(); + struct.tbl_names = new ArrayList(_list1122.size); + String _elem1123; + for (int _i1124 = 0; _i1124 < _list1122.size; ++_i1124) { - _elem1099 = iprot.readString(); - struct.tbl_names.add(_elem1099); + _elem1123 = iprot.readString(); + struct.tbl_names.add(_elem1123); } iprot.readListEnd(); } @@ -73896,9 +74028,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 _iter1101 : struct.tbl_names) + for (String _iter1125 : struct.tbl_names) { - oprot.writeString(_iter1101); + oprot.writeString(_iter1125); } oprot.writeListEnd(); } @@ -73935,9 +74067,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_materialization if (struct.isSetTbl_names()) { { oprot.writeI32(struct.tbl_names.size()); - for (String _iter1102 : struct.tbl_names) + for (String _iter1126 : struct.tbl_names) { - oprot.writeString(_iter1102); + oprot.writeString(_iter1126); } } } @@ -73953,13 +74085,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_materialization_ } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list1103 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tbl_names = new ArrayList(_list1103.size); - String _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.STRING, iprot.readI32()); + struct.tbl_names = new ArrayList(_list1127.size); + String _elem1128; + for (int _i1129 = 0; _i1129 < _list1127.size; ++_i1129) { - _elem1104 = iprot.readString(); - struct.tbl_names.add(_elem1104); + _elem1128 = iprot.readString(); + struct.tbl_names.add(_elem1128); } } struct.setTbl_namesIsSet(true); @@ -74532,16 +74664,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 _map1106 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map1106.size); - String _key1107; - Materialization _val1108; - for (int _i1109 = 0; _i1109 < _map1106.size; ++_i1109) + org.apache.thrift.protocol.TMap _map1130 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map1130.size); + String _key1131; + Materialization _val1132; + for (int _i1133 = 0; _i1133 < _map1130.size; ++_i1133) { - _key1107 = iprot.readString(); - _val1108 = new Materialization(); - _val1108.read(iprot); - struct.success.put(_key1107, _val1108); + _key1131 = iprot.readString(); + _val1132 = new Materialization(); + _val1132.read(iprot); + struct.success.put(_key1131, _val1132); } iprot.readMapEnd(); } @@ -74594,10 +74726,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 _iter1110 : struct.success.entrySet()) + for (Map.Entry _iter1134 : struct.success.entrySet()) { - oprot.writeString(_iter1110.getKey()); - _iter1110.getValue().write(oprot); + oprot.writeString(_iter1134.getKey()); + _iter1134.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -74652,10 +74784,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_materialization if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry _iter1111 : struct.success.entrySet()) + for (Map.Entry _iter1135 : struct.success.entrySet()) { - oprot.writeString(_iter1111.getKey()); - _iter1111.getValue().write(oprot); + oprot.writeString(_iter1135.getKey()); + _iter1135.getValue().write(oprot); } } } @@ -74676,16 +74808,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 _map1112 = 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*_map1112.size); - String _key1113; - Materialization _val1114; - for (int _i1115 = 0; _i1115 < _map1112.size; ++_i1115) + org.apache.thrift.protocol.TMap _map1136 = 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*_map1136.size); + String _key1137; + Materialization _val1138; + for (int _i1139 = 0; _i1139 < _map1136.size; ++_i1139) { - _key1113 = iprot.readString(); - _val1114 = new Materialization(); - _val1114.read(iprot); - struct.success.put(_key1113, _val1114); + _key1137 = iprot.readString(); + _val1138 = new Materialization(); + _val1138.read(iprot); + struct.success.put(_key1137, _val1138); } } struct.setSuccessIsSet(true); @@ -77078,13 +77210,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 _list1116 = iprot.readListBegin(); - struct.success = new ArrayList(_list1116.size); - String _elem1117; - for (int _i1118 = 0; _i1118 < _list1116.size; ++_i1118) + org.apache.thrift.protocol.TList _list1140 = iprot.readListBegin(); + struct.success = new ArrayList(_list1140.size); + String _elem1141; + for (int _i1142 = 0; _i1142 < _list1140.size; ++_i1142) { - _elem1117 = iprot.readString(); - struct.success.add(_elem1117); + _elem1141 = iprot.readString(); + struct.success.add(_elem1141); } iprot.readListEnd(); } @@ -77137,9 +77269,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 _iter1119 : struct.success) + for (String _iter1143 : struct.success) { - oprot.writeString(_iter1119); + oprot.writeString(_iter1143); } oprot.writeListEnd(); } @@ -77194,9 +77326,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_ if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1120 : struct.success) + for (String _iter1144 : struct.success) { - oprot.writeString(_iter1120); + oprot.writeString(_iter1144); } } } @@ -77217,13 +77349,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 _list1121 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1121.size); - String _elem1122; - for (int _i1123 = 0; _i1123 < _list1121.size; ++_i1123) + org.apache.thrift.protocol.TList _list1145 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1145.size); + String _elem1146; + for (int _i1147 = 0; _i1147 < _list1145.size; ++_i1147) { - _elem1122 = iprot.readString(); - struct.success.add(_elem1122); + _elem1146 = iprot.readString(); + struct.success.add(_elem1146); } } struct.setSuccessIsSet(true); @@ -83082,14 +83214,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 _list1124 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1124.size); - Partition _elem1125; - for (int _i1126 = 0; _i1126 < _list1124.size; ++_i1126) + org.apache.thrift.protocol.TList _list1148 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1148.size); + Partition _elem1149; + for (int _i1150 = 0; _i1150 < _list1148.size; ++_i1150) { - _elem1125 = new Partition(); - _elem1125.read(iprot); - struct.new_parts.add(_elem1125); + _elem1149 = new Partition(); + _elem1149.read(iprot); + struct.new_parts.add(_elem1149); } iprot.readListEnd(); } @@ -83115,9 +83247,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 _iter1127 : struct.new_parts) + for (Partition _iter1151 : struct.new_parts) { - _iter1127.write(oprot); + _iter1151.write(oprot); } oprot.writeListEnd(); } @@ -83148,9 +83280,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 _iter1128 : struct.new_parts) + for (Partition _iter1152 : struct.new_parts) { - _iter1128.write(oprot); + _iter1152.write(oprot); } } } @@ -83162,14 +83294,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 _list1129 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1129.size); - Partition _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.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1153.size); + Partition _elem1154; + for (int _i1155 = 0; _i1155 < _list1153.size; ++_i1155) { - _elem1130 = new Partition(); - _elem1130.read(iprot); - struct.new_parts.add(_elem1130); + _elem1154 = new Partition(); + _elem1154.read(iprot); + struct.new_parts.add(_elem1154); } } struct.setNew_partsIsSet(true); @@ -84170,14 +84302,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 _list1132 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1132.size); - PartitionSpec _elem1133; - for (int _i1134 = 0; _i1134 < _list1132.size; ++_i1134) + org.apache.thrift.protocol.TList _list1156 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1156.size); + PartitionSpec _elem1157; + for (int _i1158 = 0; _i1158 < _list1156.size; ++_i1158) { - _elem1133 = new PartitionSpec(); - _elem1133.read(iprot); - struct.new_parts.add(_elem1133); + _elem1157 = new PartitionSpec(); + _elem1157.read(iprot); + struct.new_parts.add(_elem1157); } iprot.readListEnd(); } @@ -84203,9 +84335,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 _iter1135 : struct.new_parts) + for (PartitionSpec _iter1159 : struct.new_parts) { - _iter1135.write(oprot); + _iter1159.write(oprot); } oprot.writeListEnd(); } @@ -84236,9 +84368,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 _iter1136 : struct.new_parts) + for (PartitionSpec _iter1160 : struct.new_parts) { - _iter1136.write(oprot); + _iter1160.write(oprot); } } } @@ -84250,14 +84382,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 _list1137 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1137.size); - PartitionSpec _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); + PartitionSpec _elem1162; + for (int _i1163 = 0; _i1163 < _list1161.size; ++_i1163) { - _elem1138 = new PartitionSpec(); - _elem1138.read(iprot); - struct.new_parts.add(_elem1138); + _elem1162 = new PartitionSpec(); + _elem1162.read(iprot); + struct.new_parts.add(_elem1162); } } struct.setNew_partsIsSet(true); @@ -85433,13 +85565,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 _list1140 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1140.size); - String _elem1141; - for (int _i1142 = 0; _i1142 < _list1140.size; ++_i1142) + 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) { - _elem1141 = iprot.readString(); - struct.part_vals.add(_elem1141); + _elem1165 = iprot.readString(); + struct.part_vals.add(_elem1165); } iprot.readListEnd(); } @@ -85475,9 +85607,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 _iter1143 : struct.part_vals) + for (String _iter1167 : struct.part_vals) { - oprot.writeString(_iter1143); + oprot.writeString(_iter1167); } oprot.writeListEnd(); } @@ -85520,9 +85652,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 _iter1144 : struct.part_vals) + for (String _iter1168 : struct.part_vals) { - oprot.writeString(_iter1144); + oprot.writeString(_iter1168); } } } @@ -85542,13 +85674,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1145 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1145.size); - String _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.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1169.size); + String _elem1170; + for (int _i1171 = 0; _i1171 < _list1169.size; ++_i1171) { - _elem1146 = iprot.readString(); - struct.part_vals.add(_elem1146); + _elem1170 = iprot.readString(); + struct.part_vals.add(_elem1170); } } struct.setPart_valsIsSet(true); @@ -87857,13 +87989,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 _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(); } @@ -87908,9 +88040,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 _iter1151 : struct.part_vals) + for (String _iter1175 : struct.part_vals) { - oprot.writeString(_iter1151); + oprot.writeString(_iter1175); } oprot.writeListEnd(); } @@ -87961,9 +88093,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 _iter1152 : struct.part_vals) + for (String _iter1176 : struct.part_vals) { - oprot.writeString(_iter1152); + oprot.writeString(_iter1176); } } } @@ -87986,13 +88118,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_wit } 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); @@ -91862,13 +91994,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 _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(); } @@ -91912,9 +92044,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 _iter1159 : struct.part_vals) + for (String _iter1183 : struct.part_vals) { - oprot.writeString(_iter1159); + oprot.writeString(_iter1183); } oprot.writeListEnd(); } @@ -91963,9 +92095,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 _iter1160 : struct.part_vals) + for (String _iter1184 : struct.part_vals) { - oprot.writeString(_iter1160); + oprot.writeString(_iter1184); } } } @@ -91988,13 +92120,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_args } 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); @@ -93233,13 +93365,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 _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(); } @@ -93292,9 +93424,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 _iter1167 : struct.part_vals) + for (String _iter1191 : struct.part_vals) { - oprot.writeString(_iter1167); + oprot.writeString(_iter1191); } oprot.writeListEnd(); } @@ -93351,9 +93483,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 _iter1168 : struct.part_vals) + for (String _iter1192 : struct.part_vals) { - oprot.writeString(_iter1168); + oprot.writeString(_iter1192); } } } @@ -93379,13 +93511,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_ } 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); @@ -97987,13 +98119,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 _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(); } @@ -98029,9 +98161,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 _iter1175 : struct.part_vals) + for (String _iter1199 : struct.part_vals) { - oprot.writeString(_iter1175); + oprot.writeString(_iter1199); } oprot.writeListEnd(); } @@ -98074,9 +98206,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 _iter1176 : struct.part_vals) + for (String _iter1200 : struct.part_vals) { - oprot.writeString(_iter1176); + oprot.writeString(_iter1200); } } } @@ -98096,13 +98228,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_args s } 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); @@ -99320,15 +99452,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 _map1180 = iprot.readMapBegin(); - struct.partitionSpecs = new HashMap(2*_map1180.size); - String _key1181; - String _val1182; - for (int _i1183 = 0; _i1183 < _map1180.size; ++_i1183) + org.apache.thrift.protocol.TMap _map1204 = iprot.readMapBegin(); + struct.partitionSpecs = new HashMap(2*_map1204.size); + String _key1205; + String _val1206; + for (int _i1207 = 0; _i1207 < _map1204.size; ++_i1207) { - _key1181 = iprot.readString(); - _val1182 = iprot.readString(); - struct.partitionSpecs.put(_key1181, _val1182); + _key1205 = iprot.readString(); + _val1206 = iprot.readString(); + struct.partitionSpecs.put(_key1205, _val1206); } iprot.readMapEnd(); } @@ -99386,10 +99518,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 _iter1184 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter1208 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1184.getKey()); - oprot.writeString(_iter1184.getValue()); + oprot.writeString(_iter1208.getKey()); + oprot.writeString(_iter1208.getValue()); } oprot.writeMapEnd(); } @@ -99452,10 +99584,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_ if (struct.isSetPartitionSpecs()) { { oprot.writeI32(struct.partitionSpecs.size()); - for (Map.Entry _iter1185 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter1209 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1185.getKey()); - oprot.writeString(_iter1185.getValue()); + oprot.writeString(_iter1209.getKey()); + oprot.writeString(_iter1209.getValue()); } } } @@ -99479,15 +99611,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 _map1186 = 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*_map1186.size); - String _key1187; - String _val1188; - for (int _i1189 = 0; _i1189 < _map1186.size; ++_i1189) + org.apache.thrift.protocol.TMap _map1210 = 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*_map1210.size); + String _key1211; + String _val1212; + for (int _i1213 = 0; _i1213 < _map1210.size; ++_i1213) { - _key1187 = iprot.readString(); - _val1188 = iprot.readString(); - struct.partitionSpecs.put(_key1187, _val1188); + _key1211 = iprot.readString(); + _val1212 = iprot.readString(); + struct.partitionSpecs.put(_key1211, _val1212); } } struct.setPartitionSpecsIsSet(true); @@ -100933,15 +101065,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 _map1190 = iprot.readMapBegin(); - struct.partitionSpecs = new HashMap(2*_map1190.size); - String _key1191; - String _val1192; - for (int _i1193 = 0; _i1193 < _map1190.size; ++_i1193) + org.apache.thrift.protocol.TMap _map1214 = iprot.readMapBegin(); + struct.partitionSpecs = new HashMap(2*_map1214.size); + String _key1215; + String _val1216; + for (int _i1217 = 0; _i1217 < _map1214.size; ++_i1217) { - _key1191 = iprot.readString(); - _val1192 = iprot.readString(); - struct.partitionSpecs.put(_key1191, _val1192); + _key1215 = iprot.readString(); + _val1216 = iprot.readString(); + struct.partitionSpecs.put(_key1215, _val1216); } iprot.readMapEnd(); } @@ -100999,10 +101131,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 _iter1194 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter1218 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1194.getKey()); - oprot.writeString(_iter1194.getValue()); + oprot.writeString(_iter1218.getKey()); + oprot.writeString(_iter1218.getValue()); } oprot.writeMapEnd(); } @@ -101065,10 +101197,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions if (struct.isSetPartitionSpecs()) { { oprot.writeI32(struct.partitionSpecs.size()); - for (Map.Entry _iter1195 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter1219 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1195.getKey()); - oprot.writeString(_iter1195.getValue()); + oprot.writeString(_iter1219.getKey()); + oprot.writeString(_iter1219.getValue()); } } } @@ -101092,15 +101224,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 _map1196 = 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*_map1196.size); - String _key1197; - String _val1198; - for (int _i1199 = 0; _i1199 < _map1196.size; ++_i1199) + org.apache.thrift.protocol.TMap _map1220 = 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*_map1220.size); + String _key1221; + String _val1222; + for (int _i1223 = 0; _i1223 < _map1220.size; ++_i1223) { - _key1197 = iprot.readString(); - _val1198 = iprot.readString(); - struct.partitionSpecs.put(_key1197, _val1198); + _key1221 = iprot.readString(); + _val1222 = iprot.readString(); + struct.partitionSpecs.put(_key1221, _val1222); } } struct.setPartitionSpecsIsSet(true); @@ -101765,14 +101897,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 _list1200 = iprot.readListBegin(); - struct.success = new ArrayList(_list1200.size); - Partition _elem1201; - for (int _i1202 = 0; _i1202 < _list1200.size; ++_i1202) + org.apache.thrift.protocol.TList _list1224 = iprot.readListBegin(); + struct.success = new ArrayList(_list1224.size); + Partition _elem1225; + for (int _i1226 = 0; _i1226 < _list1224.size; ++_i1226) { - _elem1201 = new Partition(); - _elem1201.read(iprot); - struct.success.add(_elem1201); + _elem1225 = new Partition(); + _elem1225.read(iprot); + struct.success.add(_elem1225); } iprot.readListEnd(); } @@ -101834,9 +101966,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 _iter1203 : struct.success) + for (Partition _iter1227 : struct.success) { - _iter1203.write(oprot); + _iter1227.write(oprot); } oprot.writeListEnd(); } @@ -101899,9 +102031,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1204 : struct.success) + for (Partition _iter1228 : struct.success) { - _iter1204.write(oprot); + _iter1228.write(oprot); } } } @@ -101925,14 +102057,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 _list1205 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1205.size); - Partition _elem1206; - for (int _i1207 = 0; _i1207 < _list1205.size; ++_i1207) + org.apache.thrift.protocol.TList _list1229 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1229.size); + Partition _elem1230; + for (int _i1231 = 0; _i1231 < _list1229.size; ++_i1231) { - _elem1206 = new Partition(); - _elem1206.read(iprot); - struct.success.add(_elem1206); + _elem1230 = new Partition(); + _elem1230.read(iprot); + struct.success.add(_elem1230); } } struct.setSuccessIsSet(true); @@ -102631,13 +102763,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 _list1208 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1208.size); - String _elem1209; - for (int _i1210 = 0; _i1210 < _list1208.size; ++_i1210) + org.apache.thrift.protocol.TList _list1232 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1232.size); + String _elem1233; + for (int _i1234 = 0; _i1234 < _list1232.size; ++_i1234) { - _elem1209 = iprot.readString(); - struct.part_vals.add(_elem1209); + _elem1233 = iprot.readString(); + struct.part_vals.add(_elem1233); } iprot.readListEnd(); } @@ -102657,13 +102789,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 _list1211 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1211.size); - String _elem1212; - for (int _i1213 = 0; _i1213 < _list1211.size; ++_i1213) + org.apache.thrift.protocol.TList _list1235 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1235.size); + String _elem1236; + for (int _i1237 = 0; _i1237 < _list1235.size; ++_i1237) { - _elem1212 = iprot.readString(); - struct.group_names.add(_elem1212); + _elem1236 = iprot.readString(); + struct.group_names.add(_elem1236); } iprot.readListEnd(); } @@ -102699,9 +102831,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 _iter1214 : struct.part_vals) + for (String _iter1238 : struct.part_vals) { - oprot.writeString(_iter1214); + oprot.writeString(_iter1238); } oprot.writeListEnd(); } @@ -102716,9 +102848,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 _iter1215 : struct.group_names) + for (String _iter1239 : struct.group_names) { - oprot.writeString(_iter1215); + oprot.writeString(_iter1239); } oprot.writeListEnd(); } @@ -102767,9 +102899,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 _iter1216 : struct.part_vals) + for (String _iter1240 : struct.part_vals) { - oprot.writeString(_iter1216); + oprot.writeString(_iter1240); } } } @@ -102779,9 +102911,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 _iter1217 : struct.group_names) + for (String _iter1241 : struct.group_names) { - oprot.writeString(_iter1217); + oprot.writeString(_iter1241); } } } @@ -102801,13 +102933,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1218 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1218.size); - String _elem1219; - for (int _i1220 = 0; _i1220 < _list1218.size; ++_i1220) + org.apache.thrift.protocol.TList _list1242 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1242.size); + String _elem1243; + for (int _i1244 = 0; _i1244 < _list1242.size; ++_i1244) { - _elem1219 = iprot.readString(); - struct.part_vals.add(_elem1219); + _elem1243 = iprot.readString(); + struct.part_vals.add(_elem1243); } } struct.setPart_valsIsSet(true); @@ -102818,13 +102950,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list1221 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1221.size); - String _elem1222; - for (int _i1223 = 0; _i1223 < _list1221.size; ++_i1223) + 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) { - _elem1222 = iprot.readString(); - struct.group_names.add(_elem1222); + _elem1246 = iprot.readString(); + struct.group_names.add(_elem1246); } } struct.setGroup_namesIsSet(true); @@ -105593,14 +105725,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 _list1224 = iprot.readListBegin(); - struct.success = new ArrayList(_list1224.size); - Partition _elem1225; - for (int _i1226 = 0; _i1226 < _list1224.size; ++_i1226) + org.apache.thrift.protocol.TList _list1248 = iprot.readListBegin(); + struct.success = new ArrayList(_list1248.size); + Partition _elem1249; + for (int _i1250 = 0; _i1250 < _list1248.size; ++_i1250) { - _elem1225 = new Partition(); - _elem1225.read(iprot); - struct.success.add(_elem1225); + _elem1249 = new Partition(); + _elem1249.read(iprot); + struct.success.add(_elem1249); } iprot.readListEnd(); } @@ -105644,9 +105776,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 _iter1227 : struct.success) + for (Partition _iter1251 : struct.success) { - _iter1227.write(oprot); + _iter1251.write(oprot); } oprot.writeListEnd(); } @@ -105693,9 +105825,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1228 : struct.success) + for (Partition _iter1252 : struct.success) { - _iter1228.write(oprot); + _iter1252.write(oprot); } } } @@ -105713,14 +105845,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 _list1229 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1229.size); - Partition _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.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1253.size); + Partition _elem1254; + for (int _i1255 = 0; _i1255 < _list1253.size; ++_i1255) { - _elem1230 = new Partition(); - _elem1230.read(iprot); - struct.success.add(_elem1230); + _elem1254 = new Partition(); + _elem1254.read(iprot); + struct.success.add(_elem1254); } } struct.setSuccessIsSet(true); @@ -106410,13 +106542,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 _list1232 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1232.size); - String _elem1233; - for (int _i1234 = 0; _i1234 < _list1232.size; ++_i1234) + org.apache.thrift.protocol.TList _list1256 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1256.size); + String _elem1257; + for (int _i1258 = 0; _i1258 < _list1256.size; ++_i1258) { - _elem1233 = iprot.readString(); - struct.group_names.add(_elem1233); + _elem1257 = iprot.readString(); + struct.group_names.add(_elem1257); } iprot.readListEnd(); } @@ -106460,9 +106592,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 _iter1235 : struct.group_names) + for (String _iter1259 : struct.group_names) { - oprot.writeString(_iter1235); + oprot.writeString(_iter1259); } oprot.writeListEnd(); } @@ -106517,9 +106649,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 _iter1236 : struct.group_names) + for (String _iter1260 : struct.group_names) { - oprot.writeString(_iter1236); + oprot.writeString(_iter1260); } } } @@ -106547,13 +106679,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list1237 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1237.size); - String _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.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1261.size); + String _elem1262; + for (int _i1263 = 0; _i1263 < _list1261.size; ++_i1263) { - _elem1238 = iprot.readString(); - struct.group_names.add(_elem1238); + _elem1262 = iprot.readString(); + struct.group_names.add(_elem1262); } } struct.setGroup_namesIsSet(true); @@ -107040,14 +107172,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 _list1240 = iprot.readListBegin(); - struct.success = new ArrayList(_list1240.size); - Partition _elem1241; - for (int _i1242 = 0; _i1242 < _list1240.size; ++_i1242) + org.apache.thrift.protocol.TList _list1264 = iprot.readListBegin(); + struct.success = new ArrayList(_list1264.size); + Partition _elem1265; + for (int _i1266 = 0; _i1266 < _list1264.size; ++_i1266) { - _elem1241 = new Partition(); - _elem1241.read(iprot); - struct.success.add(_elem1241); + _elem1265 = new Partition(); + _elem1265.read(iprot); + struct.success.add(_elem1265); } iprot.readListEnd(); } @@ -107091,9 +107223,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 _iter1243 : struct.success) + for (Partition _iter1267 : struct.success) { - _iter1243.write(oprot); + _iter1267.write(oprot); } oprot.writeListEnd(); } @@ -107140,9 +107272,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1244 : struct.success) + for (Partition _iter1268 : struct.success) { - _iter1244.write(oprot); + _iter1268.write(oprot); } } } @@ -107160,14 +107292,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 _list1245 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1245.size); - Partition _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.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1269.size); + Partition _elem1270; + for (int _i1271 = 0; _i1271 < _list1269.size; ++_i1271) { - _elem1246 = new Partition(); - _elem1246.read(iprot); - struct.success.add(_elem1246); + _elem1270 = new Partition(); + _elem1270.read(iprot); + struct.success.add(_elem1270); } } struct.setSuccessIsSet(true); @@ -108230,14 +108362,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 _list1248 = iprot.readListBegin(); - struct.success = new ArrayList(_list1248.size); - PartitionSpec _elem1249; - for (int _i1250 = 0; _i1250 < _list1248.size; ++_i1250) + org.apache.thrift.protocol.TList _list1272 = iprot.readListBegin(); + struct.success = new ArrayList(_list1272.size); + PartitionSpec _elem1273; + for (int _i1274 = 0; _i1274 < _list1272.size; ++_i1274) { - _elem1249 = new PartitionSpec(); - _elem1249.read(iprot); - struct.success.add(_elem1249); + _elem1273 = new PartitionSpec(); + _elem1273.read(iprot); + struct.success.add(_elem1273); } iprot.readListEnd(); } @@ -108281,9 +108413,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 _iter1251 : struct.success) + for (PartitionSpec _iter1275 : struct.success) { - _iter1251.write(oprot); + _iter1275.write(oprot); } oprot.writeListEnd(); } @@ -108330,9 +108462,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspe if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (PartitionSpec _iter1252 : struct.success) + for (PartitionSpec _iter1276 : struct.success) { - _iter1252.write(oprot); + _iter1276.write(oprot); } } } @@ -108350,14 +108482,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 _list1253 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1253.size); - PartitionSpec _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); + PartitionSpec _elem1278; + for (int _i1279 = 0; _i1279 < _list1277.size; ++_i1279) { - _elem1254 = new PartitionSpec(); - _elem1254.read(iprot); - struct.success.add(_elem1254); + _elem1278 = new PartitionSpec(); + _elem1278.read(iprot); + struct.success.add(_elem1278); } } struct.setSuccessIsSet(true); @@ -109417,13 +109549,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 _list1256 = iprot.readListBegin(); - struct.success = new ArrayList(_list1256.size); - String _elem1257; - for (int _i1258 = 0; _i1258 < _list1256.size; ++_i1258) + org.apache.thrift.protocol.TList _list1280 = iprot.readListBegin(); + struct.success = new ArrayList(_list1280.size); + String _elem1281; + for (int _i1282 = 0; _i1282 < _list1280.size; ++_i1282) { - _elem1257 = iprot.readString(); - struct.success.add(_elem1257); + _elem1281 = iprot.readString(); + struct.success.add(_elem1281); } iprot.readListEnd(); } @@ -109467,9 +109599,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 _iter1259 : struct.success) + for (String _iter1283 : struct.success) { - oprot.writeString(_iter1259); + oprot.writeString(_iter1283); } oprot.writeListEnd(); } @@ -109516,9 +109648,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1260 : struct.success) + for (String _iter1284 : struct.success) { - oprot.writeString(_iter1260); + oprot.writeString(_iter1284); } } } @@ -109536,13 +109668,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 _list1261 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1261.size); - String _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.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1285.size); + String _elem1286; + for (int _i1287 = 0; _i1287 < _list1285.size; ++_i1287) { - _elem1262 = iprot.readString(); - struct.success.add(_elem1262); + _elem1286 = iprot.readString(); + struct.success.add(_elem1286); } } struct.setSuccessIsSet(true); @@ -111073,13 +111205,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 _list1264 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1264.size); - String _elem1265; - for (int _i1266 = 0; _i1266 < _list1264.size; ++_i1266) + 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) { - _elem1265 = iprot.readString(); - struct.part_vals.add(_elem1265); + _elem1289 = iprot.readString(); + struct.part_vals.add(_elem1289); } iprot.readListEnd(); } @@ -111123,9 +111255,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 _iter1267 : struct.part_vals) + for (String _iter1291 : struct.part_vals) { - oprot.writeString(_iter1267); + oprot.writeString(_iter1291); } oprot.writeListEnd(); } @@ -111174,9 +111306,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 _iter1268 : struct.part_vals) + for (String _iter1292 : struct.part_vals) { - oprot.writeString(_iter1268); + oprot.writeString(_iter1292); } } } @@ -111199,13 +111331,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1269 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = 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.part_vals = new ArrayList(_list1293.size); + String _elem1294; + for (int _i1295 = 0; _i1295 < _list1293.size; ++_i1295) { - _elem1270 = iprot.readString(); - struct.part_vals.add(_elem1270); + _elem1294 = iprot.readString(); + struct.part_vals.add(_elem1294); } } struct.setPart_valsIsSet(true); @@ -111696,14 +111828,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 _list1272 = iprot.readListBegin(); - struct.success = new ArrayList(_list1272.size); - Partition _elem1273; - for (int _i1274 = 0; _i1274 < _list1272.size; ++_i1274) + org.apache.thrift.protocol.TList _list1296 = iprot.readListBegin(); + struct.success = new ArrayList(_list1296.size); + Partition _elem1297; + for (int _i1298 = 0; _i1298 < _list1296.size; ++_i1298) { - _elem1273 = new Partition(); - _elem1273.read(iprot); - struct.success.add(_elem1273); + _elem1297 = new Partition(); + _elem1297.read(iprot); + struct.success.add(_elem1297); } iprot.readListEnd(); } @@ -111747,9 +111879,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 _iter1275 : struct.success) + for (Partition _iter1299 : struct.success) { - _iter1275.write(oprot); + _iter1299.write(oprot); } oprot.writeListEnd(); } @@ -111796,9 +111928,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1276 : struct.success) + for (Partition _iter1300 : struct.success) { - _iter1276.write(oprot); + _iter1300.write(oprot); } } } @@ -111816,14 +111948,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 _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) + org.apache.thrift.protocol.TList _list1301 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1301.size); + Partition _elem1302; + for (int _i1303 = 0; _i1303 < _list1301.size; ++_i1303) { - _elem1278 = new Partition(); - _elem1278.read(iprot); - struct.success.add(_elem1278); + _elem1302 = new Partition(); + _elem1302.read(iprot); + struct.success.add(_elem1302); } } struct.setSuccessIsSet(true); @@ -112595,13 +112727,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 _list1280 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1280.size); - String _elem1281; - for (int _i1282 = 0; _i1282 < _list1280.size; ++_i1282) + org.apache.thrift.protocol.TList _list1304 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1304.size); + String _elem1305; + for (int _i1306 = 0; _i1306 < _list1304.size; ++_i1306) { - _elem1281 = iprot.readString(); - struct.part_vals.add(_elem1281); + _elem1305 = iprot.readString(); + struct.part_vals.add(_elem1305); } iprot.readListEnd(); } @@ -112629,13 +112761,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 _list1283 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1283.size); - String _elem1284; - for (int _i1285 = 0; _i1285 < _list1283.size; ++_i1285) + org.apache.thrift.protocol.TList _list1307 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1307.size); + String _elem1308; + for (int _i1309 = 0; _i1309 < _list1307.size; ++_i1309) { - _elem1284 = iprot.readString(); - struct.group_names.add(_elem1284); + _elem1308 = iprot.readString(); + struct.group_names.add(_elem1308); } iprot.readListEnd(); } @@ -112671,9 +112803,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 _iter1286 : struct.part_vals) + for (String _iter1310 : struct.part_vals) { - oprot.writeString(_iter1286); + oprot.writeString(_iter1310); } oprot.writeListEnd(); } @@ -112691,9 +112823,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 _iter1287 : struct.group_names) + for (String _iter1311 : struct.group_names) { - oprot.writeString(_iter1287); + oprot.writeString(_iter1311); } oprot.writeListEnd(); } @@ -112745,9 +112877,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 _iter1288 : struct.part_vals) + for (String _iter1312 : struct.part_vals) { - oprot.writeString(_iter1288); + oprot.writeString(_iter1312); } } } @@ -112760,9 +112892,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 _iter1289 : struct.group_names) + for (String _iter1313 : struct.group_names) { - oprot.writeString(_iter1289); + oprot.writeString(_iter1313); } } } @@ -112782,13 +112914,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1290 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1290.size); - String _elem1291; - for (int _i1292 = 0; _i1292 < _list1290.size; ++_i1292) + org.apache.thrift.protocol.TList _list1314 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1314.size); + String _elem1315; + for (int _i1316 = 0; _i1316 < _list1314.size; ++_i1316) { - _elem1291 = iprot.readString(); - struct.part_vals.add(_elem1291); + _elem1315 = iprot.readString(); + struct.part_vals.add(_elem1315); } } struct.setPart_valsIsSet(true); @@ -112803,13 +112935,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(5)) { { - org.apache.thrift.protocol.TList _list1293 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1293.size); - String _elem1294; - for (int _i1295 = 0; _i1295 < _list1293.size; ++_i1295) + org.apache.thrift.protocol.TList _list1317 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1317.size); + String _elem1318; + for (int _i1319 = 0; _i1319 < _list1317.size; ++_i1319) { - _elem1294 = iprot.readString(); - struct.group_names.add(_elem1294); + _elem1318 = iprot.readString(); + struct.group_names.add(_elem1318); } } struct.setGroup_namesIsSet(true); @@ -113296,14 +113428,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 _list1296 = iprot.readListBegin(); - struct.success = new ArrayList(_list1296.size); - Partition _elem1297; - for (int _i1298 = 0; _i1298 < _list1296.size; ++_i1298) + org.apache.thrift.protocol.TList _list1320 = iprot.readListBegin(); + struct.success = new ArrayList(_list1320.size); + Partition _elem1321; + for (int _i1322 = 0; _i1322 < _list1320.size; ++_i1322) { - _elem1297 = new Partition(); - _elem1297.read(iprot); - struct.success.add(_elem1297); + _elem1321 = new Partition(); + _elem1321.read(iprot); + struct.success.add(_elem1321); } iprot.readListEnd(); } @@ -113347,9 +113479,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 _iter1299 : struct.success) + for (Partition _iter1323 : struct.success) { - _iter1299.write(oprot); + _iter1323.write(oprot); } oprot.writeListEnd(); } @@ -113396,9 +113528,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1300 : struct.success) + for (Partition _iter1324 : struct.success) { - _iter1300.write(oprot); + _iter1324.write(oprot); } } } @@ -113416,14 +113548,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 _list1301 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1301.size); - Partition _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.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1325.size); + Partition _elem1326; + for (int _i1327 = 0; _i1327 < _list1325.size; ++_i1327) { - _elem1302 = new Partition(); - _elem1302.read(iprot); - struct.success.add(_elem1302); + _elem1326 = new Partition(); + _elem1326.read(iprot); + struct.success.add(_elem1326); } } struct.setSuccessIsSet(true); @@ -114016,13 +114148,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 _list1304 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1304.size); - String _elem1305; - for (int _i1306 = 0; _i1306 < _list1304.size; ++_i1306) + org.apache.thrift.protocol.TList _list1328 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1328.size); + String _elem1329; + for (int _i1330 = 0; _i1330 < _list1328.size; ++_i1330) { - _elem1305 = iprot.readString(); - struct.part_vals.add(_elem1305); + _elem1329 = iprot.readString(); + struct.part_vals.add(_elem1329); } iprot.readListEnd(); } @@ -114066,9 +114198,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 _iter1307 : struct.part_vals) + for (String _iter1331 : struct.part_vals) { - oprot.writeString(_iter1307); + oprot.writeString(_iter1331); } oprot.writeListEnd(); } @@ -114117,9 +114249,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 _iter1308 : struct.part_vals) + for (String _iter1332 : struct.part_vals) { - oprot.writeString(_iter1308); + oprot.writeString(_iter1332); } } } @@ -114142,13 +114274,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1309 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1309.size); - String _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.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1333.size); + String _elem1334; + for (int _i1335 = 0; _i1335 < _list1333.size; ++_i1335) { - _elem1310 = iprot.readString(); - struct.part_vals.add(_elem1310); + _elem1334 = iprot.readString(); + struct.part_vals.add(_elem1334); } } struct.setPart_valsIsSet(true); @@ -114636,13 +114768,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 _list1312 = iprot.readListBegin(); - struct.success = new ArrayList(_list1312.size); - String _elem1313; - for (int _i1314 = 0; _i1314 < _list1312.size; ++_i1314) + org.apache.thrift.protocol.TList _list1336 = iprot.readListBegin(); + struct.success = new ArrayList(_list1336.size); + String _elem1337; + for (int _i1338 = 0; _i1338 < _list1336.size; ++_i1338) { - _elem1313 = iprot.readString(); - struct.success.add(_elem1313); + _elem1337 = iprot.readString(); + struct.success.add(_elem1337); } iprot.readListEnd(); } @@ -114686,9 +114818,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 _iter1315 : struct.success) + for (String _iter1339 : struct.success) { - oprot.writeString(_iter1315); + oprot.writeString(_iter1339); } oprot.writeListEnd(); } @@ -114735,9 +114867,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1316 : struct.success) + for (String _iter1340 : struct.success) { - oprot.writeString(_iter1316); + oprot.writeString(_iter1340); } } } @@ -114755,13 +114887,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 _list1317 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = 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.success = new ArrayList(_list1341.size); + String _elem1342; + for (int _i1343 = 0; _i1343 < _list1341.size; ++_i1343) { - _elem1318 = iprot.readString(); - struct.success.add(_elem1318); + _elem1342 = iprot.readString(); + struct.success.add(_elem1342); } } struct.setSuccessIsSet(true); @@ -115928,14 +116060,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 _list1320 = iprot.readListBegin(); - struct.success = new ArrayList(_list1320.size); - Partition _elem1321; - for (int _i1322 = 0; _i1322 < _list1320.size; ++_i1322) + org.apache.thrift.protocol.TList _list1344 = iprot.readListBegin(); + struct.success = new ArrayList(_list1344.size); + Partition _elem1345; + for (int _i1346 = 0; _i1346 < _list1344.size; ++_i1346) { - _elem1321 = new Partition(); - _elem1321.read(iprot); - struct.success.add(_elem1321); + _elem1345 = new Partition(); + _elem1345.read(iprot); + struct.success.add(_elem1345); } iprot.readListEnd(); } @@ -115979,9 +116111,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 _iter1323 : struct.success) + for (Partition _iter1347 : struct.success) { - _iter1323.write(oprot); + _iter1347.write(oprot); } oprot.writeListEnd(); } @@ -116028,9 +116160,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_f if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1324 : struct.success) + for (Partition _iter1348 : struct.success) { - _iter1324.write(oprot); + _iter1348.write(oprot); } } } @@ -116048,14 +116180,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 _list1325 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1325.size); - Partition _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.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1349.size); + Partition _elem1350; + for (int _i1351 = 0; _i1351 < _list1349.size; ++_i1351) { - _elem1326 = new Partition(); - _elem1326.read(iprot); - struct.success.add(_elem1326); + _elem1350 = new Partition(); + _elem1350.read(iprot); + struct.success.add(_elem1350); } } struct.setSuccessIsSet(true); @@ -117222,14 +117354,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 _list1328 = iprot.readListBegin(); - struct.success = new ArrayList(_list1328.size); - PartitionSpec _elem1329; - for (int _i1330 = 0; _i1330 < _list1328.size; ++_i1330) + org.apache.thrift.protocol.TList _list1352 = iprot.readListBegin(); + struct.success = new ArrayList(_list1352.size); + PartitionSpec _elem1353; + for (int _i1354 = 0; _i1354 < _list1352.size; ++_i1354) { - _elem1329 = new PartitionSpec(); - _elem1329.read(iprot); - struct.success.add(_elem1329); + _elem1353 = new PartitionSpec(); + _elem1353.read(iprot); + struct.success.add(_elem1353); } iprot.readListEnd(); } @@ -117273,9 +117405,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 _iter1331 : struct.success) + for (PartitionSpec _iter1355 : struct.success) { - _iter1331.write(oprot); + _iter1355.write(oprot); } oprot.writeListEnd(); } @@ -117322,9 +117454,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 _iter1332 : struct.success) + for (PartitionSpec _iter1356 : struct.success) { - _iter1332.write(oprot); + _iter1356.write(oprot); } } } @@ -117342,14 +117474,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 _list1333 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1333.size); - PartitionSpec _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); + PartitionSpec _elem1358; + for (int _i1359 = 0; _i1359 < _list1357.size; ++_i1359) { - _elem1334 = new PartitionSpec(); - _elem1334.read(iprot); - struct.success.add(_elem1334); + _elem1358 = new PartitionSpec(); + _elem1358.read(iprot); + struct.success.add(_elem1358); } } struct.setSuccessIsSet(true); @@ -119933,13 +120065,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 _list1336 = iprot.readListBegin(); - struct.names = new ArrayList(_list1336.size); - String _elem1337; - for (int _i1338 = 0; _i1338 < _list1336.size; ++_i1338) + org.apache.thrift.protocol.TList _list1360 = iprot.readListBegin(); + struct.names = new ArrayList(_list1360.size); + String _elem1361; + for (int _i1362 = 0; _i1362 < _list1360.size; ++_i1362) { - _elem1337 = iprot.readString(); - struct.names.add(_elem1337); + _elem1361 = iprot.readString(); + struct.names.add(_elem1361); } iprot.readListEnd(); } @@ -119975,9 +120107,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 _iter1339 : struct.names) + for (String _iter1363 : struct.names) { - oprot.writeString(_iter1339); + oprot.writeString(_iter1363); } oprot.writeListEnd(); } @@ -120020,9 +120152,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetNames()) { { oprot.writeI32(struct.names.size()); - for (String _iter1340 : struct.names) + for (String _iter1364 : struct.names) { - oprot.writeString(_iter1340); + oprot.writeString(_iter1364); } } } @@ -120042,13 +120174,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_na } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1341 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.names = new ArrayList(_list1341.size); - String _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.STRING, iprot.readI32()); + struct.names = new ArrayList(_list1365.size); + String _elem1366; + for (int _i1367 = 0; _i1367 < _list1365.size; ++_i1367) { - _elem1342 = iprot.readString(); - struct.names.add(_elem1342); + _elem1366 = iprot.readString(); + struct.names.add(_elem1366); } } struct.setNamesIsSet(true); @@ -120535,14 +120667,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 _list1344 = iprot.readListBegin(); - struct.success = new ArrayList(_list1344.size); - Partition _elem1345; - for (int _i1346 = 0; _i1346 < _list1344.size; ++_i1346) + org.apache.thrift.protocol.TList _list1368 = iprot.readListBegin(); + struct.success = new ArrayList(_list1368.size); + Partition _elem1369; + for (int _i1370 = 0; _i1370 < _list1368.size; ++_i1370) { - _elem1345 = new Partition(); - _elem1345.read(iprot); - struct.success.add(_elem1345); + _elem1369 = new Partition(); + _elem1369.read(iprot); + struct.success.add(_elem1369); } iprot.readListEnd(); } @@ -120586,9 +120718,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 _iter1347 : struct.success) + for (Partition _iter1371 : struct.success) { - _iter1347.write(oprot); + _iter1371.write(oprot); } oprot.writeListEnd(); } @@ -120635,9 +120767,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1348 : struct.success) + for (Partition _iter1372 : struct.success) { - _iter1348.write(oprot); + _iter1372.write(oprot); } } } @@ -120655,14 +120787,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 _list1349 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1349.size); - Partition _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.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1373.size); + Partition _elem1374; + for (int _i1375 = 0; _i1375 < _list1373.size; ++_i1375) { - _elem1350 = new Partition(); - _elem1350.read(iprot); - struct.success.add(_elem1350); + _elem1374 = new Partition(); + _elem1374.read(iprot); + struct.success.add(_elem1374); } } struct.setSuccessIsSet(true); @@ -122212,14 +122344,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 _list1352 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1352.size); - Partition _elem1353; - for (int _i1354 = 0; _i1354 < _list1352.size; ++_i1354) + org.apache.thrift.protocol.TList _list1376 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1376.size); + Partition _elem1377; + for (int _i1378 = 0; _i1378 < _list1376.size; ++_i1378) { - _elem1353 = new Partition(); - _elem1353.read(iprot); - struct.new_parts.add(_elem1353); + _elem1377 = new Partition(); + _elem1377.read(iprot); + struct.new_parts.add(_elem1377); } iprot.readListEnd(); } @@ -122255,9 +122387,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 _iter1355 : struct.new_parts) + for (Partition _iter1379 : struct.new_parts) { - _iter1355.write(oprot); + _iter1379.write(oprot); } oprot.writeListEnd(); } @@ -122300,9 +122432,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 _iter1356 : struct.new_parts) + for (Partition _iter1380 : struct.new_parts) { - _iter1356.write(oprot); + _iter1380.write(oprot); } } } @@ -122322,14 +122454,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1357 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = 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.new_parts = new ArrayList(_list1381.size); + Partition _elem1382; + for (int _i1383 = 0; _i1383 < _list1381.size; ++_i1383) { - _elem1358 = new Partition(); - _elem1358.read(iprot); - struct.new_parts.add(_elem1358); + _elem1382 = new Partition(); + _elem1382.read(iprot); + struct.new_parts.add(_elem1382); } } struct.setNew_partsIsSet(true); @@ -123382,14 +123514,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 _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(); } @@ -123434,9 +123566,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 _iter1363 : struct.new_parts) + for (Partition _iter1387 : struct.new_parts) { - _iter1363.write(oprot); + _iter1387.write(oprot); } oprot.writeListEnd(); } @@ -123487,9 +123619,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 _iter1364 : struct.new_parts) + for (Partition _iter1388 : struct.new_parts) { - _iter1364.write(oprot); + _iter1388.write(oprot); } } } @@ -123512,14 +123644,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_wit } 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); @@ -125720,13 +125852,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 _list1368 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1368.size); - String _elem1369; - for (int _i1370 = 0; _i1370 < _list1368.size; ++_i1370) + org.apache.thrift.protocol.TList _list1392 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1392.size); + String _elem1393; + for (int _i1394 = 0; _i1394 < _list1392.size; ++_i1394) { - _elem1369 = iprot.readString(); - struct.part_vals.add(_elem1369); + _elem1393 = iprot.readString(); + struct.part_vals.add(_elem1393); } iprot.readListEnd(); } @@ -125771,9 +125903,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 _iter1371 : struct.part_vals) + for (String _iter1395 : struct.part_vals) { - oprot.writeString(_iter1371); + oprot.writeString(_iter1395); } oprot.writeListEnd(); } @@ -125824,9 +125956,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 _iter1372 : struct.part_vals) + for (String _iter1396 : struct.part_vals) { - oprot.writeString(_iter1372); + oprot.writeString(_iter1396); } } } @@ -125849,13 +125981,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, rename_partition_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1373 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1373.size); - String _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.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1397.size); + String _elem1398; + for (int _i1399 = 0; _i1399 < _list1397.size; ++_i1399) { - _elem1374 = iprot.readString(); - struct.part_vals.add(_elem1374); + _elem1398 = iprot.readString(); + struct.part_vals.add(_elem1398); } } struct.setPart_valsIsSet(true); @@ -126729,13 +126861,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 _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(); } @@ -126769,9 +126901,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 _iter1379 : struct.part_vals) + for (String _iter1403 : struct.part_vals) { - oprot.writeString(_iter1379); + oprot.writeString(_iter1403); } oprot.writeListEnd(); } @@ -126808,9 +126940,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 _iter1380 : struct.part_vals) + for (String _iter1404 : struct.part_vals) { - oprot.writeString(_iter1380); + oprot.writeString(_iter1404); } } } @@ -126825,13 +126957,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 _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); @@ -128986,13 +129118,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 _list1384 = iprot.readListBegin(); - struct.success = new ArrayList(_list1384.size); - String _elem1385; - for (int _i1386 = 0; _i1386 < _list1384.size; ++_i1386) + org.apache.thrift.protocol.TList _list1408 = iprot.readListBegin(); + struct.success = new ArrayList(_list1408.size); + String _elem1409; + for (int _i1410 = 0; _i1410 < _list1408.size; ++_i1410) { - _elem1385 = iprot.readString(); - struct.success.add(_elem1385); + _elem1409 = iprot.readString(); + struct.success.add(_elem1409); } iprot.readListEnd(); } @@ -129027,9 +129159,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 _iter1387 : struct.success) + for (String _iter1411 : struct.success) { - oprot.writeString(_iter1387); + oprot.writeString(_iter1411); } oprot.writeListEnd(); } @@ -129068,9 +129200,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_to_v if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1388 : struct.success) + for (String _iter1412 : struct.success) { - oprot.writeString(_iter1388); + oprot.writeString(_iter1412); } } } @@ -129085,13 +129217,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 _list1389 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = 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.success = new ArrayList(_list1413.size); + String _elem1414; + for (int _i1415 = 0; _i1415 < _list1413.size; ++_i1415) { - _elem1390 = iprot.readString(); - struct.success.add(_elem1390); + _elem1414 = iprot.readString(); + struct.success.add(_elem1414); } } struct.setSuccessIsSet(true); @@ -129854,15 +129986,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 _map1392 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map1392.size); - String _key1393; - String _val1394; - for (int _i1395 = 0; _i1395 < _map1392.size; ++_i1395) + org.apache.thrift.protocol.TMap _map1416 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map1416.size); + String _key1417; + String _val1418; + for (int _i1419 = 0; _i1419 < _map1416.size; ++_i1419) { - _key1393 = iprot.readString(); - _val1394 = iprot.readString(); - struct.success.put(_key1393, _val1394); + _key1417 = iprot.readString(); + _val1418 = iprot.readString(); + struct.success.put(_key1417, _val1418); } iprot.readMapEnd(); } @@ -129897,10 +130029,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 _iter1396 : struct.success.entrySet()) + for (Map.Entry _iter1420 : struct.success.entrySet()) { - oprot.writeString(_iter1396.getKey()); - oprot.writeString(_iter1396.getValue()); + oprot.writeString(_iter1420.getKey()); + oprot.writeString(_iter1420.getValue()); } oprot.writeMapEnd(); } @@ -129939,10 +130071,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 _iter1397 : struct.success.entrySet()) + for (Map.Entry _iter1421 : struct.success.entrySet()) { - oprot.writeString(_iter1397.getKey()); - oprot.writeString(_iter1397.getValue()); + oprot.writeString(_iter1421.getKey()); + oprot.writeString(_iter1421.getValue()); } } } @@ -129957,15 +130089,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 _map1398 = 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*_map1398.size); - String _key1399; - String _val1400; - for (int _i1401 = 0; _i1401 < _map1398.size; ++_i1401) + org.apache.thrift.protocol.TMap _map1422 = 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*_map1422.size); + String _key1423; + String _val1424; + for (int _i1425 = 0; _i1425 < _map1422.size; ++_i1425) { - _key1399 = iprot.readString(); - _val1400 = iprot.readString(); - struct.success.put(_key1399, _val1400); + _key1423 = iprot.readString(); + _val1424 = iprot.readString(); + struct.success.put(_key1423, _val1424); } } struct.setSuccessIsSet(true); @@ -130560,15 +130692,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 _map1402 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map1402.size); - String _key1403; - String _val1404; - for (int _i1405 = 0; _i1405 < _map1402.size; ++_i1405) + org.apache.thrift.protocol.TMap _map1426 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map1426.size); + String _key1427; + String _val1428; + for (int _i1429 = 0; _i1429 < _map1426.size; ++_i1429) { - _key1403 = iprot.readString(); - _val1404 = iprot.readString(); - struct.part_vals.put(_key1403, _val1404); + _key1427 = iprot.readString(); + _val1428 = iprot.readString(); + struct.part_vals.put(_key1427, _val1428); } iprot.readMapEnd(); } @@ -130612,10 +130744,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 _iter1406 : struct.part_vals.entrySet()) + for (Map.Entry _iter1430 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1406.getKey()); - oprot.writeString(_iter1406.getValue()); + oprot.writeString(_iter1430.getKey()); + oprot.writeString(_iter1430.getValue()); } oprot.writeMapEnd(); } @@ -130666,10 +130798,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, markPartitionForEve if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter1407 : struct.part_vals.entrySet()) + for (Map.Entry _iter1431 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1407.getKey()); - oprot.writeString(_iter1407.getValue()); + oprot.writeString(_iter1431.getKey()); + oprot.writeString(_iter1431.getValue()); } } } @@ -130692,15 +130824,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, markPartitionForEven } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map1408 = 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*_map1408.size); - String _key1409; - String _val1410; - for (int _i1411 = 0; _i1411 < _map1408.size; ++_i1411) + org.apache.thrift.protocol.TMap _map1432 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new HashMap(2*_map1432.size); + String _key1433; + String _val1434; + for (int _i1435 = 0; _i1435 < _map1432.size; ++_i1435) { - _key1409 = iprot.readString(); - _val1410 = iprot.readString(); - struct.part_vals.put(_key1409, _val1410); + _key1433 = iprot.readString(); + _val1434 = iprot.readString(); + struct.part_vals.put(_key1433, _val1434); } } struct.setPart_valsIsSet(true); @@ -132184,15 +132316,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 _map1412 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map1412.size); - String _key1413; - String _val1414; - for (int _i1415 = 0; _i1415 < _map1412.size; ++_i1415) + org.apache.thrift.protocol.TMap _map1436 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map1436.size); + String _key1437; + String _val1438; + for (int _i1439 = 0; _i1439 < _map1436.size; ++_i1439) { - _key1413 = iprot.readString(); - _val1414 = iprot.readString(); - struct.part_vals.put(_key1413, _val1414); + _key1437 = iprot.readString(); + _val1438 = iprot.readString(); + struct.part_vals.put(_key1437, _val1438); } iprot.readMapEnd(); } @@ -132236,10 +132368,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 _iter1416 : struct.part_vals.entrySet()) + for (Map.Entry _iter1440 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1416.getKey()); - oprot.writeString(_iter1416.getValue()); + oprot.writeString(_iter1440.getKey()); + oprot.writeString(_iter1440.getValue()); } oprot.writeMapEnd(); } @@ -132290,10 +132422,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFo if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter1417 : struct.part_vals.entrySet()) + for (Map.Entry _iter1441 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1417.getKey()); - oprot.writeString(_iter1417.getValue()); + oprot.writeString(_iter1441.getKey()); + oprot.writeString(_iter1441.getValue()); } } } @@ -132316,15 +132448,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFor } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map1418 = 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*_map1418.size); - String _key1419; - String _val1420; - for (int _i1421 = 0; _i1421 < _map1418.size; ++_i1421) + org.apache.thrift.protocol.TMap _map1442 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new HashMap(2*_map1442.size); + String _key1443; + String _val1444; + for (int _i1445 = 0; _i1445 < _map1442.size; ++_i1445) { - _key1419 = iprot.readString(); - _val1420 = iprot.readString(); - struct.part_vals.put(_key1419, _val1420); + _key1443 = iprot.readString(); + _val1444 = iprot.readString(); + struct.part_vals.put(_key1443, _val1444); } } struct.setPart_valsIsSet(true); @@ -154680,13 +154812,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 _list1422 = iprot.readListBegin(); - struct.success = new ArrayList(_list1422.size); - String _elem1423; - for (int _i1424 = 0; _i1424 < _list1422.size; ++_i1424) + org.apache.thrift.protocol.TList _list1446 = iprot.readListBegin(); + struct.success = new ArrayList(_list1446.size); + String _elem1447; + for (int _i1448 = 0; _i1448 < _list1446.size; ++_i1448) { - _elem1423 = iprot.readString(); - struct.success.add(_elem1423); + _elem1447 = iprot.readString(); + struct.success.add(_elem1447); } iprot.readListEnd(); } @@ -154721,9 +154853,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 _iter1425 : struct.success) + for (String _iter1449 : struct.success) { - oprot.writeString(_iter1425); + oprot.writeString(_iter1449); } oprot.writeListEnd(); } @@ -154762,9 +154894,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_functions_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1426 : struct.success) + for (String _iter1450 : struct.success) { - oprot.writeString(_iter1426); + oprot.writeString(_iter1450); } } } @@ -154779,13 +154911,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 _list1427 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1427.size); - String _elem1428; - for (int _i1429 = 0; _i1429 < _list1427.size; ++_i1429) + org.apache.thrift.protocol.TList _list1451 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1451.size); + String _elem1452; + for (int _i1453 = 0; _i1453 < _list1451.size; ++_i1453) { - _elem1428 = iprot.readString(); - struct.success.add(_elem1428); + _elem1452 = iprot.readString(); + struct.success.add(_elem1452); } } struct.setSuccessIsSet(true); @@ -158840,13 +158972,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 _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(); } @@ -158881,9 +159013,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 _iter1433 : struct.success) + for (String _iter1457 : struct.success) { - oprot.writeString(_iter1433); + oprot.writeString(_iter1457); } oprot.writeListEnd(); } @@ -158922,9 +159054,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_role_names_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1434 : struct.success) + for (String _iter1458 : struct.success) { - oprot.writeString(_iter1434); + oprot.writeString(_iter1458); } } } @@ -158939,13 +159071,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 _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); @@ -162236,14 +162368,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 _list1438 = iprot.readListBegin(); - struct.success = new ArrayList(_list1438.size); - Role _elem1439; - for (int _i1440 = 0; _i1440 < _list1438.size; ++_i1440) + org.apache.thrift.protocol.TList _list1462 = iprot.readListBegin(); + struct.success = new ArrayList(_list1462.size); + Role _elem1463; + for (int _i1464 = 0; _i1464 < _list1462.size; ++_i1464) { - _elem1439 = new Role(); - _elem1439.read(iprot); - struct.success.add(_elem1439); + _elem1463 = new Role(); + _elem1463.read(iprot); + struct.success.add(_elem1463); } iprot.readListEnd(); } @@ -162278,9 +162410,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 _iter1441 : struct.success) + for (Role _iter1465 : struct.success) { - _iter1441.write(oprot); + _iter1465.write(oprot); } oprot.writeListEnd(); } @@ -162319,9 +162451,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_roles_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Role _iter1442 : struct.success) + for (Role _iter1466 : struct.success) { - _iter1442.write(oprot); + _iter1466.write(oprot); } } } @@ -162336,14 +162468,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 _list1443 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1443.size); - Role _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.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1467.size); + Role _elem1468; + for (int _i1469 = 0; _i1469 < _list1467.size; ++_i1469) { - _elem1444 = new Role(); - _elem1444.read(iprot); - struct.success.add(_elem1444); + _elem1468 = new Role(); + _elem1468.read(iprot); + struct.success.add(_elem1468); } } struct.setSuccessIsSet(true); @@ -165348,13 +165480,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 _list1446 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1446.size); - String _elem1447; - for (int _i1448 = 0; _i1448 < _list1446.size; ++_i1448) + 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) { - _elem1447 = iprot.readString(); - struct.group_names.add(_elem1447); + _elem1471 = iprot.readString(); + struct.group_names.add(_elem1471); } iprot.readListEnd(); } @@ -165390,9 +165522,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 _iter1449 : struct.group_names) + for (String _iter1473 : struct.group_names) { - oprot.writeString(_iter1449); + oprot.writeString(_iter1473); } oprot.writeListEnd(); } @@ -165435,9 +165567,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 _iter1450 : struct.group_names) + for (String _iter1474 : struct.group_names) { - oprot.writeString(_iter1450); + oprot.writeString(_iter1474); } } } @@ -165458,13 +165590,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_privilege_set_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1451 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1451.size); - String _elem1452; - for (int _i1453 = 0; _i1453 < _list1451.size; ++_i1453) + org.apache.thrift.protocol.TList _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) { - _elem1452 = iprot.readString(); - struct.group_names.add(_elem1452); + _elem1476 = iprot.readString(); + struct.group_names.add(_elem1476); } } struct.setGroup_namesIsSet(true); @@ -166922,14 +167054,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 _list1454 = iprot.readListBegin(); - struct.success = new ArrayList(_list1454.size); - HiveObjectPrivilege _elem1455; - for (int _i1456 = 0; _i1456 < _list1454.size; ++_i1456) + org.apache.thrift.protocol.TList _list1478 = iprot.readListBegin(); + struct.success = new ArrayList(_list1478.size); + HiveObjectPrivilege _elem1479; + for (int _i1480 = 0; _i1480 < _list1478.size; ++_i1480) { - _elem1455 = new HiveObjectPrivilege(); - _elem1455.read(iprot); - struct.success.add(_elem1455); + _elem1479 = new HiveObjectPrivilege(); + _elem1479.read(iprot); + struct.success.add(_elem1479); } iprot.readListEnd(); } @@ -166964,9 +167096,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 _iter1457 : struct.success) + for (HiveObjectPrivilege _iter1481 : struct.success) { - _iter1457.write(oprot); + _iter1481.write(oprot); } oprot.writeListEnd(); } @@ -167005,9 +167137,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_privileges_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (HiveObjectPrivilege _iter1458 : struct.success) + for (HiveObjectPrivilege _iter1482 : struct.success) { - _iter1458.write(oprot); + _iter1482.write(oprot); } } } @@ -167022,14 +167154,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 _list1459 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1459.size); - HiveObjectPrivilege _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.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1483.size); + HiveObjectPrivilege _elem1484; + for (int _i1485 = 0; _i1485 < _list1483.size; ++_i1485) { - _elem1460 = new HiveObjectPrivilege(); - _elem1460.read(iprot); - struct.success.add(_elem1460); + _elem1484 = new HiveObjectPrivilege(); + _elem1484.read(iprot); + struct.success.add(_elem1484); } } struct.setSuccessIsSet(true); @@ -169931,13 +170063,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 _list1462 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1462.size); - String _elem1463; - for (int _i1464 = 0; _i1464 < _list1462.size; ++_i1464) + org.apache.thrift.protocol.TList _list1486 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1486.size); + String _elem1487; + for (int _i1488 = 0; _i1488 < _list1486.size; ++_i1488) { - _elem1463 = iprot.readString(); - struct.group_names.add(_elem1463); + _elem1487 = iprot.readString(); + struct.group_names.add(_elem1487); } iprot.readListEnd(); } @@ -169968,9 +170100,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 _iter1465 : struct.group_names) + for (String _iter1489 : struct.group_names) { - oprot.writeString(_iter1465); + oprot.writeString(_iter1489); } oprot.writeListEnd(); } @@ -170007,9 +170139,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 _iter1466 : struct.group_names) + for (String _iter1490 : struct.group_names) { - oprot.writeString(_iter1466); + oprot.writeString(_iter1490); } } } @@ -170025,13 +170157,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_ugi_args struct) } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list1467 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1467.size); - String _elem1468; - for (int _i1469 = 0; _i1469 < _list1467.size; ++_i1469) + org.apache.thrift.protocol.TList _list1491 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1491.size); + String _elem1492; + for (int _i1493 = 0; _i1493 < _list1491.size; ++_i1493) { - _elem1468 = iprot.readString(); - struct.group_names.add(_elem1468); + _elem1492 = iprot.readString(); + struct.group_names.add(_elem1492); } } struct.setGroup_namesIsSet(true); @@ -170434,13 +170566,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 _list1470 = iprot.readListBegin(); - struct.success = new ArrayList(_list1470.size); - String _elem1471; - for (int _i1472 = 0; _i1472 < _list1470.size; ++_i1472) + org.apache.thrift.protocol.TList _list1494 = iprot.readListBegin(); + struct.success = new ArrayList(_list1494.size); + String _elem1495; + for (int _i1496 = 0; _i1496 < _list1494.size; ++_i1496) { - _elem1471 = iprot.readString(); - struct.success.add(_elem1471); + _elem1495 = iprot.readString(); + struct.success.add(_elem1495); } iprot.readListEnd(); } @@ -170475,9 +170607,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 _iter1473 : struct.success) + for (String _iter1497 : struct.success) { - oprot.writeString(_iter1473); + oprot.writeString(_iter1497); } oprot.writeListEnd(); } @@ -170516,9 +170648,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, set_ugi_result stru if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1474 : struct.success) + for (String _iter1498 : struct.success) { - oprot.writeString(_iter1474); + oprot.writeString(_iter1498); } } } @@ -170533,13 +170665,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 _list1475 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1475.size); - String _elem1476; - for (int _i1477 = 0; _i1477 < _list1475.size; ++_i1477) + org.apache.thrift.protocol.TList _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) { - _elem1476 = iprot.readString(); - struct.success.add(_elem1476); + _elem1500 = iprot.readString(); + struct.success.add(_elem1500); } } struct.setSuccessIsSet(true); @@ -175830,13 +175962,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 _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(); } @@ -175862,9 +175994,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 _iter1481 : struct.success) + for (String _iter1505 : struct.success) { - oprot.writeString(_iter1481); + oprot.writeString(_iter1505); } oprot.writeListEnd(); } @@ -175895,9 +176027,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_token_ident if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1482 : struct.success) + for (String _iter1506 : struct.success) { - oprot.writeString(_iter1482); + oprot.writeString(_iter1506); } } } @@ -175909,13 +176041,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 _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); @@ -178945,13 +179077,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 _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(); } @@ -178977,9 +179109,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 _iter1489 : struct.success) + for (String _iter1513 : struct.success) { - oprot.writeString(_iter1489); + oprot.writeString(_iter1513); } oprot.writeListEnd(); } @@ -179010,9 +179142,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_master_keys_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1490 : struct.success) + for (String _iter1514 : struct.success) { - oprot.writeString(_iter1490); + oprot.writeString(_iter1514); } } } @@ -179024,13 +179156,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 _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); @@ -196186,33 +196318,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(); } @@ -196224,6 +196901,8 @@ public boolean isSet(_Fields field) { } switch (field) { + case RQST: + return isSetRqst(); } throw new IllegalStateException(); } @@ -196232,15 +196911,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; } @@ -196248,17 +196936,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; } @@ -196276,9 +196979,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(); } @@ -196286,6 +196996,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 { @@ -196304,15 +197017,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) @@ -196322,6 +197035,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); } @@ -196331,51 +197053,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(); @@ -196390,6 +197133,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; } @@ -196428,37 +197173,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(); } @@ -196470,6 +197264,8 @@ public boolean isSet(_Fields field) { } switch (field) { + case SUCCESS: + return isSetSuccess(); } throw new IllegalStateException(); } @@ -196478,15 +197274,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; } @@ -196494,17 +197299,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; } @@ -196522,9 +197342,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(); } @@ -196532,6 +197359,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 { @@ -196550,15 +197380,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) @@ -196568,6 +197398,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); } @@ -196577,32 +197416,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); + } } } @@ -226604,14 +227462,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 _list1494 = iprot.readListBegin(); - struct.success = new ArrayList(_list1494.size); - SchemaVersion _elem1495; - for (int _i1496 = 0; _i1496 < _list1494.size; ++_i1496) + org.apache.thrift.protocol.TList _list1518 = iprot.readListBegin(); + struct.success = new ArrayList(_list1518.size); + SchemaVersion _elem1519; + for (int _i1520 = 0; _i1520 < _list1518.size; ++_i1520) { - _elem1495 = new SchemaVersion(); - _elem1495.read(iprot); - struct.success.add(_elem1495); + _elem1519 = new SchemaVersion(); + _elem1519.read(iprot); + struct.success.add(_elem1519); } iprot.readListEnd(); } @@ -226655,9 +227513,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 _iter1497 : struct.success) + for (SchemaVersion _iter1521 : struct.success) { - _iter1497.write(oprot); + _iter1521.write(oprot); } oprot.writeListEnd(); } @@ -226704,9 +227562,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_all_vers if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (SchemaVersion _iter1498 : struct.success) + for (SchemaVersion _iter1522 : struct.success) { - _iter1498.write(oprot); + _iter1522.write(oprot); } } } @@ -226724,14 +227582,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 _list1499 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1499.size); - SchemaVersion _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.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1523.size); + SchemaVersion _elem1524; + for (int _i1525 = 0; _i1525 < _list1523.size; ++_i1525) { - _elem1500 = new SchemaVersion(); - _elem1500.read(iprot); - struct.success.add(_elem1500); + _elem1524 = new SchemaVersion(); + _elem1524.read(iprot); + struct.success.add(_elem1524); } } struct.setSuccessIsSet(true); @@ -235274,14 +236132,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 _list1502 = iprot.readListBegin(); - struct.success = new ArrayList(_list1502.size); - RuntimeStat _elem1503; - for (int _i1504 = 0; _i1504 < _list1502.size; ++_i1504) + org.apache.thrift.protocol.TList _list1526 = iprot.readListBegin(); + struct.success = new ArrayList(_list1526.size); + RuntimeStat _elem1527; + for (int _i1528 = 0; _i1528 < _list1526.size; ++_i1528) { - _elem1503 = new RuntimeStat(); - _elem1503.read(iprot); - struct.success.add(_elem1503); + _elem1527 = new RuntimeStat(); + _elem1527.read(iprot); + struct.success.add(_elem1527); } iprot.readListEnd(); } @@ -235316,9 +236174,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 _iter1505 : struct.success) + for (RuntimeStat _iter1529 : struct.success) { - _iter1505.write(oprot); + _iter1529.write(oprot); } oprot.writeListEnd(); } @@ -235357,9 +236215,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_runtime_stats_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (RuntimeStat _iter1506 : struct.success) + for (RuntimeStat _iter1530 : struct.success) { - _iter1506.write(oprot); + _iter1530.write(oprot); } } } @@ -235374,14 +236232,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 _list1507 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1507.size); - RuntimeStat _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); + RuntimeStat _elem1532; + for (int _i1533 = 0; _i1533 < _list1531.size; ++_i1533) { - _elem1508 = new RuntimeStat(); - _elem1508.read(iprot); - struct.success.add(_elem1508); + _elem1532 = new RuntimeStat(); + _elem1532.read(iprot); + struct.success.add(_elem1532); } } 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 f4e30f037e..f0c308d7a3 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 _list840 = iprot.readListBegin(); - struct.pools = new ArrayList(_list840.size); - WMPool _elem841; - for (int _i842 = 0; _i842 < _list840.size; ++_i842) + org.apache.thrift.protocol.TList _list864 = iprot.readListBegin(); + struct.pools = new ArrayList(_list864.size); + WMPool _elem865; + for (int _i866 = 0; _i866 < _list864.size; ++_i866) { - _elem841 = new WMPool(); - _elem841.read(iprot); - struct.pools.add(_elem841); + _elem865 = new WMPool(); + _elem865.read(iprot); + struct.pools.add(_elem865); } 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 _list843 = iprot.readListBegin(); - struct.mappings = new ArrayList(_list843.size); - WMMapping _elem844; - for (int _i845 = 0; _i845 < _list843.size; ++_i845) + org.apache.thrift.protocol.TList _list867 = iprot.readListBegin(); + struct.mappings = new ArrayList(_list867.size); + WMMapping _elem868; + for (int _i869 = 0; _i869 < _list867.size; ++_i869) { - _elem844 = new WMMapping(); - _elem844.read(iprot); - struct.mappings.add(_elem844); + _elem868 = new WMMapping(); + _elem868.read(iprot); + struct.mappings.add(_elem868); } 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 _list846 = iprot.readListBegin(); - struct.triggers = new ArrayList(_list846.size); - WMTrigger _elem847; - for (int _i848 = 0; _i848 < _list846.size; ++_i848) + org.apache.thrift.protocol.TList _list870 = iprot.readListBegin(); + struct.triggers = new ArrayList(_list870.size); + WMTrigger _elem871; + for (int _i872 = 0; _i872 < _list870.size; ++_i872) { - _elem847 = new WMTrigger(); - _elem847.read(iprot); - struct.triggers.add(_elem847); + _elem871 = new WMTrigger(); + _elem871.read(iprot); + struct.triggers.add(_elem871); } 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 _list849 = iprot.readListBegin(); - struct.poolTriggers = new ArrayList(_list849.size); - WMPoolTrigger _elem850; - for (int _i851 = 0; _i851 < _list849.size; ++_i851) + org.apache.thrift.protocol.TList _list873 = iprot.readListBegin(); + struct.poolTriggers = new ArrayList(_list873.size); + WMPoolTrigger _elem874; + for (int _i875 = 0; _i875 < _list873.size; ++_i875) { - _elem850 = new WMPoolTrigger(); - _elem850.read(iprot); - struct.poolTriggers.add(_elem850); + _elem874 = new WMPoolTrigger(); + _elem874.read(iprot); + struct.poolTriggers.add(_elem874); } 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 _iter852 : struct.pools) + for (WMPool _iter876 : struct.pools) { - _iter852.write(oprot); + _iter876.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 _iter853 : struct.mappings) + for (WMMapping _iter877 : struct.mappings) { - _iter853.write(oprot); + _iter877.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 _iter854 : struct.triggers) + for (WMTrigger _iter878 : struct.triggers) { - _iter854.write(oprot); + _iter878.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 _iter855 : struct.poolTriggers) + for (WMPoolTrigger _iter879 : struct.poolTriggers) { - _iter855.write(oprot); + _iter879.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 _iter856 : struct.pools) + for (WMPool _iter880 : struct.pools) { - _iter856.write(oprot); + _iter880.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 _iter857 : struct.mappings) + for (WMMapping _iter881 : struct.mappings) { - _iter857.write(oprot); + _iter881.write(oprot); } } } if (struct.isSetTriggers()) { { oprot.writeI32(struct.triggers.size()); - for (WMTrigger _iter858 : struct.triggers) + for (WMTrigger _iter882 : struct.triggers) { - _iter858.write(oprot); + _iter882.write(oprot); } } } if (struct.isSetPoolTriggers()) { { oprot.writeI32(struct.poolTriggers.size()); - for (WMPoolTrigger _iter859 : struct.poolTriggers) + for (WMPoolTrigger _iter883 : struct.poolTriggers) { - _iter859.write(oprot); + _iter883.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 _list860 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.pools = new ArrayList(_list860.size); - WMPool _elem861; - for (int _i862 = 0; _i862 < _list860.size; ++_i862) + org.apache.thrift.protocol.TList _list884 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.pools = new ArrayList(_list884.size); + WMPool _elem885; + for (int _i886 = 0; _i886 < _list884.size; ++_i886) { - _elem861 = new WMPool(); - _elem861.read(iprot); - struct.pools.add(_elem861); + _elem885 = new WMPool(); + _elem885.read(iprot); + struct.pools.add(_elem885); } } struct.setPoolsIsSet(true); BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list863 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.mappings = new ArrayList(_list863.size); - WMMapping _elem864; - for (int _i865 = 0; _i865 < _list863.size; ++_i865) + org.apache.thrift.protocol.TList _list887 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.mappings = new ArrayList(_list887.size); + WMMapping _elem888; + for (int _i889 = 0; _i889 < _list887.size; ++_i889) { - _elem864 = new WMMapping(); - _elem864.read(iprot); - struct.mappings.add(_elem864); + _elem888 = new WMMapping(); + _elem888.read(iprot); + struct.mappings.add(_elem888); } } struct.setMappingsIsSet(true); } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list866 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.triggers = new ArrayList(_list866.size); - WMTrigger _elem867; - for (int _i868 = 0; _i868 < _list866.size; ++_i868) + org.apache.thrift.protocol.TList _list890 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.triggers = new ArrayList(_list890.size); + WMTrigger _elem891; + for (int _i892 = 0; _i892 < _list890.size; ++_i892) { - _elem867 = new WMTrigger(); - _elem867.read(iprot); - struct.triggers.add(_elem867); + _elem891 = new WMTrigger(); + _elem891.read(iprot); + struct.triggers.add(_elem891); } } struct.setTriggersIsSet(true); } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list869 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.poolTriggers = new ArrayList(_list869.size); - WMPoolTrigger _elem870; - for (int _i871 = 0; _i871 < _list869.size; ++_i871) + org.apache.thrift.protocol.TList _list893 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.poolTriggers = new ArrayList(_list893.size); + WMPoolTrigger _elem894; + for (int _i895 = 0; _i895 < _list893.size; ++_i895) { - _elem870 = new WMPoolTrigger(); - _elem870.read(iprot); - struct.poolTriggers.add(_elem870); + _elem894 = new WMPoolTrigger(); + _elem894.read(iprot); + struct.poolTriggers.add(_elem894); } } 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 ba81ce9684..6eed84b222 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 _list872 = iprot.readListBegin(); - struct.resourcePlans = new ArrayList(_list872.size); - WMResourcePlan _elem873; - for (int _i874 = 0; _i874 < _list872.size; ++_i874) + org.apache.thrift.protocol.TList _list896 = iprot.readListBegin(); + struct.resourcePlans = new ArrayList(_list896.size); + WMResourcePlan _elem897; + for (int _i898 = 0; _i898 < _list896.size; ++_i898) { - _elem873 = new WMResourcePlan(); - _elem873.read(iprot); - struct.resourcePlans.add(_elem873); + _elem897 = new WMResourcePlan(); + _elem897.read(iprot); + struct.resourcePlans.add(_elem897); } 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 _iter875 : struct.resourcePlans) + for (WMResourcePlan _iter899 : struct.resourcePlans) { - _iter875.write(oprot); + _iter899.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 _iter876 : struct.resourcePlans) + for (WMResourcePlan _iter900 : struct.resourcePlans) { - _iter876.write(oprot); + _iter900.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 _list877 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.resourcePlans = new ArrayList(_list877.size); - WMResourcePlan _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.resourcePlans = new ArrayList(_list901.size); + WMResourcePlan _elem902; + for (int _i903 = 0; _i903 < _list901.size; ++_i903) { - _elem878 = new WMResourcePlan(); - _elem878.read(iprot); - struct.resourcePlans.add(_elem878); + _elem902 = new WMResourcePlan(); + _elem902.read(iprot); + struct.resourcePlans.add(_elem902); } } 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 10ed67ce2b..53ea5d56f3 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 _list896 = iprot.readListBegin(); - struct.triggers = new ArrayList(_list896.size); - WMTrigger _elem897; - for (int _i898 = 0; _i898 < _list896.size; ++_i898) + org.apache.thrift.protocol.TList _list920 = iprot.readListBegin(); + struct.triggers = new ArrayList(_list920.size); + WMTrigger _elem921; + for (int _i922 = 0; _i922 < _list920.size; ++_i922) { - _elem897 = new WMTrigger(); - _elem897.read(iprot); - struct.triggers.add(_elem897); + _elem921 = new WMTrigger(); + _elem921.read(iprot); + struct.triggers.add(_elem921); } 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 _iter899 : struct.triggers) + for (WMTrigger _iter923 : struct.triggers) { - _iter899.write(oprot); + _iter923.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 _iter900 : struct.triggers) + for (WMTrigger _iter924 : struct.triggers) { - _iter900.write(oprot); + _iter924.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 _list901 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.triggers = new ArrayList(_list901.size); - WMTrigger _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.STRUCT, iprot.readI32()); + struct.triggers = new ArrayList(_list925.size); + WMTrigger _elem926; + for (int _i927 = 0; _i927 < _list925.size; ++_i927) { - _elem902 = new WMTrigger(); - _elem902.read(iprot); - struct.triggers.add(_elem902); + _elem926 = new WMTrigger(); + _elem926.read(iprot); + struct.triggers.add(_elem926); } } 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 86d7d5c694..0dd8a5e191 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 _list880 = iprot.readListBegin(); - struct.errors = new ArrayList(_list880.size); - String _elem881; - for (int _i882 = 0; _i882 < _list880.size; ++_i882) + org.apache.thrift.protocol.TList _list904 = iprot.readListBegin(); + struct.errors = new ArrayList(_list904.size); + String _elem905; + for (int _i906 = 0; _i906 < _list904.size; ++_i906) { - _elem881 = iprot.readString(); - struct.errors.add(_elem881); + _elem905 = iprot.readString(); + struct.errors.add(_elem905); } 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 _list883 = iprot.readListBegin(); - struct.warnings = new ArrayList(_list883.size); - String _elem884; - for (int _i885 = 0; _i885 < _list883.size; ++_i885) + org.apache.thrift.protocol.TList _list907 = iprot.readListBegin(); + struct.warnings = new ArrayList(_list907.size); + String _elem908; + for (int _i909 = 0; _i909 < _list907.size; ++_i909) { - _elem884 = iprot.readString(); - struct.warnings.add(_elem884); + _elem908 = iprot.readString(); + struct.warnings.add(_elem908); } 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 _iter886 : struct.errors) + for (String _iter910 : struct.errors) { - oprot.writeString(_iter886); + oprot.writeString(_iter910); } 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 _iter887 : struct.warnings) + for (String _iter911 : struct.warnings) { - oprot.writeString(_iter887); + oprot.writeString(_iter911); } 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 _iter888 : struct.errors) + for (String _iter912 : struct.errors) { - oprot.writeString(_iter888); + oprot.writeString(_iter912); } } } if (struct.isSetWarnings()) { { oprot.writeI32(struct.warnings.size()); - for (String _iter889 : struct.warnings) + for (String _iter913 : struct.warnings) { - oprot.writeString(_iter889); + oprot.writeString(_iter913); } } } @@ -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 _list890 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.errors = new ArrayList(_list890.size); - String _elem891; - for (int _i892 = 0; _i892 < _list890.size; ++_i892) + org.apache.thrift.protocol.TList _list914 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.errors = new ArrayList(_list914.size); + String _elem915; + for (int _i916 = 0; _i916 < _list914.size; ++_i916) { - _elem891 = iprot.readString(); - struct.errors.add(_elem891); + _elem915 = iprot.readString(); + struct.errors.add(_elem915); } } struct.setErrorsIsSet(true); } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list893 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.warnings = new ArrayList(_list893.size); - String _elem894; - for (int _i895 = 0; _i895 < _list893.size; ++_i895) + org.apache.thrift.protocol.TList _list917 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.warnings = new ArrayList(_list917.size); + String _elem918; + for (int _i919 = 0; _i919 < _list917.size; ++_i919) { - _elem894 = iprot.readString(); - struct.warnings.add(_elem894); + _elem918 = iprot.readString(); + struct.warnings.add(_elem918); } } 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..7d1998f72d --- /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 PARTITION_FIELD_DESC = new org.apache.thrift.protocol.TField("partition", org.apache.thrift.protocol.TType.STRING, (short)4); + 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)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 partition; // required + private String files; // 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"), + PARTITION((short)4, "partition"), + FILES((short)5, "files"), + 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: // PARTITION + return PARTITION; + case 5: // FILES + return FILES; + 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.FILES,_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.PARTITION, new org.apache.thrift.meta_data.FieldMetaData("partition", 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.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 partition) + { + this(); + this.writeId = writeId; + setWriteIdIsSet(true); + this.database = database; + this.table = table; + this.partition = partition; + } + + /** + * 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.isSetPartition()) { + this.partition = other.partition; + } + if (other.isSetFiles()) { + this.files = other.files; + } + 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.partition = null; + this.files = 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 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 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 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 PARTITION: + if (value == null) { + unsetPartition(); + } else { + setPartition((String)value); + } + break; + + case FILES: + if (value == null) { + unsetFiles(); + } else { + setFiles((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 PARTITION: + return getPartition(); + + case FILES: + return getFiles(); + + 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 PARTITION: + return isSetPartition(); + case FILES: + return isSetFiles(); + 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_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_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_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_partition = true && (isSetPartition()); + list.add(present_partition); + if (present_partition) + list.add(partition); + + boolean present_files = true && (isSetFiles()); + list.add(present_files); + if (present_files) + list.add(files); + + 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(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(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(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("partition:"); + if (this.partition == null) { + sb.append("null"); + } else { + sb.append(this.partition); + } + first = false; + if (isSetFiles()) { + if (!first) sb.append(", "); + sb.append("files:"); + if (this.files == null) { + sb.append("null"); + } else { + sb.append(this.files); + } + 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 (!isSetPartition()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'partition' 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: // 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 5: // 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 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.partition != null) { + oprot.writeFieldBegin(PARTITION_FIELD_DESC); + oprot.writeString(struct.partition); + oprot.writeFieldEnd(); + } + if (struct.files != null) { + if (struct.isSetFiles()) { + oprot.writeFieldBegin(FILES_FIELD_DESC); + oprot.writeString(struct.files); + 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.partition); + BitSet optionals = new BitSet(); + if (struct.isSetFiles()) { + optionals.set(0); + } + if (struct.isSetTableObj()) { + optionals.set(1); + } + if (struct.isSetPartitionObj()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetFiles()) { + oprot.writeString(struct.files); + } + 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.partition = iprot.readString(); + struct.setPartitionIsSet(true); + BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.files = iprot.readString(); + struct.setFilesIsSet(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..52cd7d074f --- /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 _list756 = iprot.readListBegin(); + struct.partitionVals = new ArrayList(_list756.size); + String _elem757; + for (int _i758 = 0; _i758 < _list756.size; ++_i758) + { + _elem757 = iprot.readString(); + struct.partitionVals.add(_elem757); + } + 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 _iter759 : struct.partitionVals) + { + oprot.writeString(_iter759); + } + 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 _iter760 : struct.partitionVals) + { + oprot.writeString(_iter760); + } + } + } + } + + @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 _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) + { + _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/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 1c1d58e418..2a2b9ba0fc 100644 --- a/standalone-metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php +++ b/standalone-metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php @@ -1251,6 +1251,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 @@ -10753,6 +10758,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); @@ -15053,14 +15109,14 @@ class ThriftHiveMetastore_get_databases_result { case 0: if ($ftype == TType::LST) { $this->success = 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; - $xfer += $input->readString($elem818); - $this->success []= $elem818; + $elem839 = null; + $xfer += $input->readString($elem839); + $this->success []= $elem839; } $xfer += $input->readListEnd(); } else { @@ -15096,9 +15152,9 @@ class ThriftHiveMetastore_get_databases_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter819) + foreach ($this->success as $iter840) { - $xfer += $output->writeString($iter819); + $xfer += $output->writeString($iter840); } } $output->writeListEnd(); @@ -15229,14 +15285,14 @@ class ThriftHiveMetastore_get_all_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 { @@ -15272,9 +15328,9 @@ class ThriftHiveMetastore_get_all_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(); @@ -16275,18 +16331,18 @@ class ThriftHiveMetastore_get_type_all_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size827 = 0; - $_ktype828 = 0; - $_vtype829 = 0; - $xfer += $input->readMapBegin($_ktype828, $_vtype829, $_size827); - for ($_i831 = 0; $_i831 < $_size827; ++$_i831) + $_size848 = 0; + $_ktype849 = 0; + $_vtype850 = 0; + $xfer += $input->readMapBegin($_ktype849, $_vtype850, $_size848); + for ($_i852 = 0; $_i852 < $_size848; ++$_i852) { - $key832 = ''; - $val833 = new \metastore\Type(); - $xfer += $input->readString($key832); - $val833 = new \metastore\Type(); - $xfer += $val833->read($input); - $this->success[$key832] = $val833; + $key853 = ''; + $val854 = new \metastore\Type(); + $xfer += $input->readString($key853); + $val854 = new \metastore\Type(); + $xfer += $val854->read($input); + $this->success[$key853] = $val854; } $xfer += $input->readMapEnd(); } else { @@ -16322,10 +16378,10 @@ class ThriftHiveMetastore_get_type_all_result { { $output->writeMapBegin(TType::STRING, TType::STRUCT, count($this->success)); { - foreach ($this->success as $kiter834 => $viter835) + foreach ($this->success as $kiter855 => $viter856) { - $xfer += $output->writeString($kiter834); - $xfer += $viter835->write($output); + $xfer += $output->writeString($kiter855); + $xfer += $viter856->write($output); } } $output->writeMapEnd(); @@ -16529,15 +16585,15 @@ class ThriftHiveMetastore_get_fields_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size836 = 0; - $_etype839 = 0; - $xfer += $input->readListBegin($_etype839, $_size836); - for ($_i840 = 0; $_i840 < $_size836; ++$_i840) + $_size857 = 0; + $_etype860 = 0; + $xfer += $input->readListBegin($_etype860, $_size857); + for ($_i861 = 0; $_i861 < $_size857; ++$_i861) { - $elem841 = null; - $elem841 = new \metastore\FieldSchema(); - $xfer += $elem841->read($input); - $this->success []= $elem841; + $elem862 = null; + $elem862 = new \metastore\FieldSchema(); + $xfer += $elem862->read($input); + $this->success []= $elem862; } $xfer += $input->readListEnd(); } else { @@ -16589,9 +16645,9 @@ class ThriftHiveMetastore_get_fields_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter842) + foreach ($this->success as $iter863) { - $xfer += $iter842->write($output); + $xfer += $iter863->write($output); } } $output->writeListEnd(); @@ -16833,15 +16889,15 @@ class ThriftHiveMetastore_get_fields_with_environment_context_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 { @@ -16893,9 +16949,9 @@ class ThriftHiveMetastore_get_fields_with_environment_context_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(); @@ -17109,15 +17165,15 @@ class ThriftHiveMetastore_get_schema_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 { @@ -17169,9 +17225,9 @@ class ThriftHiveMetastore_get_schema_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(); @@ -17413,15 +17469,15 @@ class ThriftHiveMetastore_get_schema_with_environment_context_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 { @@ -17473,9 +17529,9 @@ class ThriftHiveMetastore_get_schema_with_environment_context_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(); @@ -18147,15 +18203,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 2: if ($ftype == TType::LST) { $this->primaryKeys = 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\SQLPrimaryKey(); - $xfer += $elem869->read($input); - $this->primaryKeys []= $elem869; + $elem890 = null; + $elem890 = new \metastore\SQLPrimaryKey(); + $xfer += $elem890->read($input); + $this->primaryKeys []= $elem890; } $xfer += $input->readListEnd(); } else { @@ -18165,15 +18221,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 3: if ($ftype == TType::LST) { $this->foreignKeys = array(); - $_size870 = 0; - $_etype873 = 0; - $xfer += $input->readListBegin($_etype873, $_size870); - for ($_i874 = 0; $_i874 < $_size870; ++$_i874) + $_size891 = 0; + $_etype894 = 0; + $xfer += $input->readListBegin($_etype894, $_size891); + for ($_i895 = 0; $_i895 < $_size891; ++$_i895) { - $elem875 = null; - $elem875 = new \metastore\SQLForeignKey(); - $xfer += $elem875->read($input); - $this->foreignKeys []= $elem875; + $elem896 = null; + $elem896 = new \metastore\SQLForeignKey(); + $xfer += $elem896->read($input); + $this->foreignKeys []= $elem896; } $xfer += $input->readListEnd(); } else { @@ -18183,15 +18239,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 4: if ($ftype == TType::LST) { $this->uniqueConstraints = array(); - $_size876 = 0; - $_etype879 = 0; - $xfer += $input->readListBegin($_etype879, $_size876); - for ($_i880 = 0; $_i880 < $_size876; ++$_i880) + $_size897 = 0; + $_etype900 = 0; + $xfer += $input->readListBegin($_etype900, $_size897); + for ($_i901 = 0; $_i901 < $_size897; ++$_i901) { - $elem881 = null; - $elem881 = new \metastore\SQLUniqueConstraint(); - $xfer += $elem881->read($input); - $this->uniqueConstraints []= $elem881; + $elem902 = null; + $elem902 = new \metastore\SQLUniqueConstraint(); + $xfer += $elem902->read($input); + $this->uniqueConstraints []= $elem902; } $xfer += $input->readListEnd(); } else { @@ -18201,15 +18257,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 5: if ($ftype == TType::LST) { $this->notNullConstraints = array(); - $_size882 = 0; - $_etype885 = 0; - $xfer += $input->readListBegin($_etype885, $_size882); - for ($_i886 = 0; $_i886 < $_size882; ++$_i886) + $_size903 = 0; + $_etype906 = 0; + $xfer += $input->readListBegin($_etype906, $_size903); + for ($_i907 = 0; $_i907 < $_size903; ++$_i907) { - $elem887 = null; - $elem887 = new \metastore\SQLNotNullConstraint(); - $xfer += $elem887->read($input); - $this->notNullConstraints []= $elem887; + $elem908 = null; + $elem908 = new \metastore\SQLNotNullConstraint(); + $xfer += $elem908->read($input); + $this->notNullConstraints []= $elem908; } $xfer += $input->readListEnd(); } else { @@ -18219,15 +18275,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 6: if ($ftype == TType::LST) { $this->defaultConstraints = array(); - $_size888 = 0; - $_etype891 = 0; - $xfer += $input->readListBegin($_etype891, $_size888); - for ($_i892 = 0; $_i892 < $_size888; ++$_i892) + $_size909 = 0; + $_etype912 = 0; + $xfer += $input->readListBegin($_etype912, $_size909); + for ($_i913 = 0; $_i913 < $_size909; ++$_i913) { - $elem893 = null; - $elem893 = new \metastore\SQLDefaultConstraint(); - $xfer += $elem893->read($input); - $this->defaultConstraints []= $elem893; + $elem914 = null; + $elem914 = new \metastore\SQLDefaultConstraint(); + $xfer += $elem914->read($input); + $this->defaultConstraints []= $elem914; } $xfer += $input->readListEnd(); } else { @@ -18237,15 +18293,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 7: if ($ftype == TType::LST) { $this->checkConstraints = array(); - $_size894 = 0; - $_etype897 = 0; - $xfer += $input->readListBegin($_etype897, $_size894); - for ($_i898 = 0; $_i898 < $_size894; ++$_i898) + $_size915 = 0; + $_etype918 = 0; + $xfer += $input->readListBegin($_etype918, $_size915); + for ($_i919 = 0; $_i919 < $_size915; ++$_i919) { - $elem899 = null; - $elem899 = new \metastore\SQLCheckConstraint(); - $xfer += $elem899->read($input); - $this->checkConstraints []= $elem899; + $elem920 = null; + $elem920 = new \metastore\SQLCheckConstraint(); + $xfer += $elem920->read($input); + $this->checkConstraints []= $elem920; } $xfer += $input->readListEnd(); } else { @@ -18281,9 +18337,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->primaryKeys)); { - foreach ($this->primaryKeys as $iter900) + foreach ($this->primaryKeys as $iter921) { - $xfer += $iter900->write($output); + $xfer += $iter921->write($output); } } $output->writeListEnd(); @@ -18298,9 +18354,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->foreignKeys)); { - foreach ($this->foreignKeys as $iter901) + foreach ($this->foreignKeys as $iter922) { - $xfer += $iter901->write($output); + $xfer += $iter922->write($output); } } $output->writeListEnd(); @@ -18315,9 +18371,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->uniqueConstraints)); { - foreach ($this->uniqueConstraints as $iter902) + foreach ($this->uniqueConstraints as $iter923) { - $xfer += $iter902->write($output); + $xfer += $iter923->write($output); } } $output->writeListEnd(); @@ -18332,9 +18388,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->notNullConstraints)); { - foreach ($this->notNullConstraints as $iter903) + foreach ($this->notNullConstraints as $iter924) { - $xfer += $iter903->write($output); + $xfer += $iter924->write($output); } } $output->writeListEnd(); @@ -18349,9 +18405,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->defaultConstraints)); { - foreach ($this->defaultConstraints as $iter904) + foreach ($this->defaultConstraints as $iter925) { - $xfer += $iter904->write($output); + $xfer += $iter925->write($output); } } $output->writeListEnd(); @@ -18366,9 +18422,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->checkConstraints)); { - foreach ($this->checkConstraints as $iter905) + foreach ($this->checkConstraints as $iter926) { - $xfer += $iter905->write($output); + $xfer += $iter926->write($output); } } $output->writeListEnd(); @@ -20368,14 +20424,14 @@ class ThriftHiveMetastore_truncate_table_args { case 3: if ($ftype == TType::LST) { $this->partNames = array(); - $_size906 = 0; - $_etype909 = 0; - $xfer += $input->readListBegin($_etype909, $_size906); - for ($_i910 = 0; $_i910 < $_size906; ++$_i910) + $_size927 = 0; + $_etype930 = 0; + $xfer += $input->readListBegin($_etype930, $_size927); + for ($_i931 = 0; $_i931 < $_size927; ++$_i931) { - $elem911 = null; - $xfer += $input->readString($elem911); - $this->partNames []= $elem911; + $elem932 = null; + $xfer += $input->readString($elem932); + $this->partNames []= $elem932; } $xfer += $input->readListEnd(); } else { @@ -20413,9 +20469,9 @@ class ThriftHiveMetastore_truncate_table_args { { $output->writeListBegin(TType::STRING, count($this->partNames)); { - foreach ($this->partNames as $iter912) + foreach ($this->partNames as $iter933) { - $xfer += $output->writeString($iter912); + $xfer += $output->writeString($iter933); } } $output->writeListEnd(); @@ -20666,14 +20722,14 @@ class ThriftHiveMetastore_get_tables_result { case 0: if ($ftype == TType::LST) { $this->success = 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->success []= $elem918; + $elem939 = null; + $xfer += $input->readString($elem939); + $this->success []= $elem939; } $xfer += $input->readListEnd(); } else { @@ -20709,9 +20765,9 @@ class ThriftHiveMetastore_get_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter919) + foreach ($this->success as $iter940) { - $xfer += $output->writeString($iter919); + $xfer += $output->writeString($iter940); } } $output->writeListEnd(); @@ -20913,14 +20969,14 @@ class ThriftHiveMetastore_get_tables_by_type_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 { @@ -20956,9 +21012,9 @@ class ThriftHiveMetastore_get_tables_by_type_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(); @@ -21114,14 +21170,14 @@ class ThriftHiveMetastore_get_materialized_views_for_rewriting_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 { @@ -21157,9 +21213,9 @@ class ThriftHiveMetastore_get_materialized_views_for_rewriting_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(); @@ -21264,14 +21320,14 @@ class ThriftHiveMetastore_get_table_meta_args { case 3: if ($ftype == TType::LST) { $this->tbl_types = 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->tbl_types []= $elem939; + $elem960 = null; + $xfer += $input->readString($elem960); + $this->tbl_types []= $elem960; } $xfer += $input->readListEnd(); } else { @@ -21309,9 +21365,9 @@ class ThriftHiveMetastore_get_table_meta_args { { $output->writeListBegin(TType::STRING, count($this->tbl_types)); { - foreach ($this->tbl_types as $iter940) + foreach ($this->tbl_types as $iter961) { - $xfer += $output->writeString($iter940); + $xfer += $output->writeString($iter961); } } $output->writeListEnd(); @@ -21388,15 +21444,15 @@ class ThriftHiveMetastore_get_table_meta_result { case 0: if ($ftype == TType::LST) { $this->success = 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; - $elem946 = new \metastore\TableMeta(); - $xfer += $elem946->read($input); - $this->success []= $elem946; + $elem967 = null; + $elem967 = new \metastore\TableMeta(); + $xfer += $elem967->read($input); + $this->success []= $elem967; } $xfer += $input->readListEnd(); } else { @@ -21432,9 +21488,9 @@ class ThriftHiveMetastore_get_table_meta_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter947) + foreach ($this->success as $iter968) { - $xfer += $iter947->write($output); + $xfer += $iter968->write($output); } } $output->writeListEnd(); @@ -21590,14 +21646,14 @@ class ThriftHiveMetastore_get_all_tables_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; - $xfer += $input->readString($elem953); - $this->success []= $elem953; + $elem974 = null; + $xfer += $input->readString($elem974); + $this->success []= $elem974; } $xfer += $input->readListEnd(); } else { @@ -21633,9 +21689,9 @@ class ThriftHiveMetastore_get_all_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter954) + foreach ($this->success as $iter975) { - $xfer += $output->writeString($iter954); + $xfer += $output->writeString($iter975); } } $output->writeListEnd(); @@ -21950,14 +22006,14 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { case 2: if ($ftype == TType::LST) { $this->tbl_names = 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->tbl_names []= $elem960; + $elem981 = null; + $xfer += $input->readString($elem981); + $this->tbl_names []= $elem981; } $xfer += $input->readListEnd(); } else { @@ -21990,9 +22046,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { { $output->writeListBegin(TType::STRING, count($this->tbl_names)); { - foreach ($this->tbl_names as $iter961) + foreach ($this->tbl_names as $iter982) { - $xfer += $output->writeString($iter961); + $xfer += $output->writeString($iter982); } } $output->writeListEnd(); @@ -22057,15 +22113,15 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { case 0: if ($ftype == TType::LST) { $this->success = 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; - $elem967 = new \metastore\Table(); - $xfer += $elem967->read($input); - $this->success []= $elem967; + $elem988 = null; + $elem988 = new \metastore\Table(); + $xfer += $elem988->read($input); + $this->success []= $elem988; } $xfer += $input->readListEnd(); } else { @@ -22093,9 +22149,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter968) + foreach ($this->success as $iter989) { - $xfer += $iter968->write($output); + $xfer += $iter989->write($output); } } $output->writeListEnd(); @@ -22622,14 +22678,14 @@ class ThriftHiveMetastore_get_materialization_invalidation_info_args { case 2: if ($ftype == TType::LST) { $this->tbl_names = 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; - $xfer += $input->readString($elem974); - $this->tbl_names []= $elem974; + $elem995 = null; + $xfer += $input->readString($elem995); + $this->tbl_names []= $elem995; } $xfer += $input->readListEnd(); } else { @@ -22662,9 +22718,9 @@ class ThriftHiveMetastore_get_materialization_invalidation_info_args { { $output->writeListBegin(TType::STRING, count($this->tbl_names)); { - foreach ($this->tbl_names as $iter975) + foreach ($this->tbl_names as $iter996) { - $xfer += $output->writeString($iter975); + $xfer += $output->writeString($iter996); } } $output->writeListEnd(); @@ -22769,18 +22825,18 @@ class ThriftHiveMetastore_get_materialization_invalidation_info_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size976 = 0; - $_ktype977 = 0; - $_vtype978 = 0; - $xfer += $input->readMapBegin($_ktype977, $_vtype978, $_size976); - for ($_i980 = 0; $_i980 < $_size976; ++$_i980) + $_size997 = 0; + $_ktype998 = 0; + $_vtype999 = 0; + $xfer += $input->readMapBegin($_ktype998, $_vtype999, $_size997); + for ($_i1001 = 0; $_i1001 < $_size997; ++$_i1001) { - $key981 = ''; - $val982 = new \metastore\Materialization(); - $xfer += $input->readString($key981); - $val982 = new \metastore\Materialization(); - $xfer += $val982->read($input); - $this->success[$key981] = $val982; + $key1002 = ''; + $val1003 = new \metastore\Materialization(); + $xfer += $input->readString($key1002); + $val1003 = new \metastore\Materialization(); + $xfer += $val1003->read($input); + $this->success[$key1002] = $val1003; } $xfer += $input->readMapEnd(); } else { @@ -22832,10 +22888,10 @@ class ThriftHiveMetastore_get_materialization_invalidation_info_result { { $output->writeMapBegin(TType::STRING, TType::STRUCT, count($this->success)); { - foreach ($this->success as $kiter983 => $viter984) + foreach ($this->success as $kiter1004 => $viter1005) { - $xfer += $output->writeString($kiter983); - $xfer += $viter984->write($output); + $xfer += $output->writeString($kiter1004); + $xfer += $viter1005->write($output); } } $output->writeMapEnd(); @@ -23347,14 +23403,14 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size985 = 0; - $_etype988 = 0; - $xfer += $input->readListBegin($_etype988, $_size985); - for ($_i989 = 0; $_i989 < $_size985; ++$_i989) + $_size1006 = 0; + $_etype1009 = 0; + $xfer += $input->readListBegin($_etype1009, $_size1006); + for ($_i1010 = 0; $_i1010 < $_size1006; ++$_i1010) { - $elem990 = null; - $xfer += $input->readString($elem990); - $this->success []= $elem990; + $elem1011 = null; + $xfer += $input->readString($elem1011); + $this->success []= $elem1011; } $xfer += $input->readListEnd(); } else { @@ -23406,9 +23462,9 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter991) + foreach ($this->success as $iter1012) { - $xfer += $output->writeString($iter991); + $xfer += $output->writeString($iter1012); } } $output->writeListEnd(); @@ -24721,15 +24777,15 @@ class ThriftHiveMetastore_add_partitions_args { case 1: if ($ftype == TType::LST) { $this->new_parts = 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; - $elem997 = new \metastore\Partition(); - $xfer += $elem997->read($input); - $this->new_parts []= $elem997; + $elem1018 = null; + $elem1018 = new \metastore\Partition(); + $xfer += $elem1018->read($input); + $this->new_parts []= $elem1018; } $xfer += $input->readListEnd(); } else { @@ -24757,9 +24813,9 @@ class ThriftHiveMetastore_add_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter998) + foreach ($this->new_parts as $iter1019) { - $xfer += $iter998->write($output); + $xfer += $iter1019->write($output); } } $output->writeListEnd(); @@ -24974,15 +25030,15 @@ class ThriftHiveMetastore_add_partitions_pspec_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\PartitionSpec(); - $xfer += $elem1004->read($input); - $this->new_parts []= $elem1004; + $elem1025 = null; + $elem1025 = new \metastore\PartitionSpec(); + $xfer += $elem1025->read($input); + $this->new_parts []= $elem1025; } $xfer += $input->readListEnd(); } else { @@ -25010,9 +25066,9 @@ class ThriftHiveMetastore_add_partitions_pspec_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(); @@ -25262,14 +25318,14 @@ class ThriftHiveMetastore_append_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = 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; - $xfer += $input->readString($elem1011); - $this->part_vals []= $elem1011; + $elem1032 = null; + $xfer += $input->readString($elem1032); + $this->part_vals []= $elem1032; } $xfer += $input->readListEnd(); } else { @@ -25307,9 +25363,9 @@ class ThriftHiveMetastore_append_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1012) + foreach ($this->part_vals as $iter1033) { - $xfer += $output->writeString($iter1012); + $xfer += $output->writeString($iter1033); } } $output->writeListEnd(); @@ -25811,14 +25867,14 @@ class ThriftHiveMetastore_append_partition_with_environment_context_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 { @@ -25864,9 +25920,9 @@ class ThriftHiveMetastore_append_partition_with_environment_context_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(); @@ -26720,14 +26776,14 @@ class ThriftHiveMetastore_drop_partition_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 { @@ -26772,9 +26828,9 @@ class ThriftHiveMetastore_drop_partition_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(); @@ -27027,14 +27083,14 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_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 { @@ -27087,9 +27143,9 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_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(); @@ -28103,14 +28159,14 @@ class ThriftHiveMetastore_get_partition_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 { @@ -28148,9 +28204,9 @@ class ThriftHiveMetastore_get_partition_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(); @@ -28392,17 +28448,17 @@ class ThriftHiveMetastore_exchange_partition_args { case 1: if ($ftype == TType::MAP) { $this->partitionSpecs = array(); - $_size1041 = 0; - $_ktype1042 = 0; - $_vtype1043 = 0; - $xfer += $input->readMapBegin($_ktype1042, $_vtype1043, $_size1041); - for ($_i1045 = 0; $_i1045 < $_size1041; ++$_i1045) + $_size1062 = 0; + $_ktype1063 = 0; + $_vtype1064 = 0; + $xfer += $input->readMapBegin($_ktype1063, $_vtype1064, $_size1062); + for ($_i1066 = 0; $_i1066 < $_size1062; ++$_i1066) { - $key1046 = ''; - $val1047 = ''; - $xfer += $input->readString($key1046); - $xfer += $input->readString($val1047); - $this->partitionSpecs[$key1046] = $val1047; + $key1067 = ''; + $val1068 = ''; + $xfer += $input->readString($key1067); + $xfer += $input->readString($val1068); + $this->partitionSpecs[$key1067] = $val1068; } $xfer += $input->readMapEnd(); } else { @@ -28458,10 +28514,10 @@ class ThriftHiveMetastore_exchange_partition_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); { - foreach ($this->partitionSpecs as $kiter1048 => $viter1049) + foreach ($this->partitionSpecs as $kiter1069 => $viter1070) { - $xfer += $output->writeString($kiter1048); - $xfer += $output->writeString($viter1049); + $xfer += $output->writeString($kiter1069); + $xfer += $output->writeString($viter1070); } } $output->writeMapEnd(); @@ -28773,17 +28829,17 @@ class ThriftHiveMetastore_exchange_partitions_args { case 1: if ($ftype == TType::MAP) { $this->partitionSpecs = array(); - $_size1050 = 0; - $_ktype1051 = 0; - $_vtype1052 = 0; - $xfer += $input->readMapBegin($_ktype1051, $_vtype1052, $_size1050); - for ($_i1054 = 0; $_i1054 < $_size1050; ++$_i1054) + $_size1071 = 0; + $_ktype1072 = 0; + $_vtype1073 = 0; + $xfer += $input->readMapBegin($_ktype1072, $_vtype1073, $_size1071); + for ($_i1075 = 0; $_i1075 < $_size1071; ++$_i1075) { - $key1055 = ''; - $val1056 = ''; - $xfer += $input->readString($key1055); - $xfer += $input->readString($val1056); - $this->partitionSpecs[$key1055] = $val1056; + $key1076 = ''; + $val1077 = ''; + $xfer += $input->readString($key1076); + $xfer += $input->readString($val1077); + $this->partitionSpecs[$key1076] = $val1077; } $xfer += $input->readMapEnd(); } else { @@ -28839,10 +28895,10 @@ class ThriftHiveMetastore_exchange_partitions_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); { - foreach ($this->partitionSpecs as $kiter1057 => $viter1058) + foreach ($this->partitionSpecs as $kiter1078 => $viter1079) { - $xfer += $output->writeString($kiter1057); - $xfer += $output->writeString($viter1058); + $xfer += $output->writeString($kiter1078); + $xfer += $output->writeString($viter1079); } } $output->writeMapEnd(); @@ -28975,15 +29031,15 @@ class ThriftHiveMetastore_exchange_partitions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1059 = 0; - $_etype1062 = 0; - $xfer += $input->readListBegin($_etype1062, $_size1059); - for ($_i1063 = 0; $_i1063 < $_size1059; ++$_i1063) + $_size1080 = 0; + $_etype1083 = 0; + $xfer += $input->readListBegin($_etype1083, $_size1080); + for ($_i1084 = 0; $_i1084 < $_size1080; ++$_i1084) { - $elem1064 = null; - $elem1064 = new \metastore\Partition(); - $xfer += $elem1064->read($input); - $this->success []= $elem1064; + $elem1085 = null; + $elem1085 = new \metastore\Partition(); + $xfer += $elem1085->read($input); + $this->success []= $elem1085; } $xfer += $input->readListEnd(); } else { @@ -29043,9 +29099,9 @@ class ThriftHiveMetastore_exchange_partitions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1065) + foreach ($this->success as $iter1086) { - $xfer += $iter1065->write($output); + $xfer += $iter1086->write($output); } } $output->writeListEnd(); @@ -29191,14 +29247,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = 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; - $xfer += $input->readString($elem1071); - $this->part_vals []= $elem1071; + $elem1092 = null; + $xfer += $input->readString($elem1092); + $this->part_vals []= $elem1092; } $xfer += $input->readListEnd(); } else { @@ -29215,14 +29271,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1072 = 0; - $_etype1075 = 0; - $xfer += $input->readListBegin($_etype1075, $_size1072); - for ($_i1076 = 0; $_i1076 < $_size1072; ++$_i1076) + $_size1093 = 0; + $_etype1096 = 0; + $xfer += $input->readListBegin($_etype1096, $_size1093); + for ($_i1097 = 0; $_i1097 < $_size1093; ++$_i1097) { - $elem1077 = null; - $xfer += $input->readString($elem1077); - $this->group_names []= $elem1077; + $elem1098 = null; + $xfer += $input->readString($elem1098); + $this->group_names []= $elem1098; } $xfer += $input->readListEnd(); } else { @@ -29260,9 +29316,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1078) + foreach ($this->part_vals as $iter1099) { - $xfer += $output->writeString($iter1078); + $xfer += $output->writeString($iter1099); } } $output->writeListEnd(); @@ -29282,9 +29338,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1079) + foreach ($this->group_names as $iter1100) { - $xfer += $output->writeString($iter1079); + $xfer += $output->writeString($iter1100); } } $output->writeListEnd(); @@ -29875,15 +29931,15 @@ class ThriftHiveMetastore_get_partitions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1080 = 0; - $_etype1083 = 0; - $xfer += $input->readListBegin($_etype1083, $_size1080); - for ($_i1084 = 0; $_i1084 < $_size1080; ++$_i1084) + $_size1101 = 0; + $_etype1104 = 0; + $xfer += $input->readListBegin($_etype1104, $_size1101); + for ($_i1105 = 0; $_i1105 < $_size1101; ++$_i1105) { - $elem1085 = null; - $elem1085 = new \metastore\Partition(); - $xfer += $elem1085->read($input); - $this->success []= $elem1085; + $elem1106 = null; + $elem1106 = new \metastore\Partition(); + $xfer += $elem1106->read($input); + $this->success []= $elem1106; } $xfer += $input->readListEnd(); } else { @@ -29927,9 +29983,9 @@ class ThriftHiveMetastore_get_partitions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1086) + foreach ($this->success as $iter1107) { - $xfer += $iter1086->write($output); + $xfer += $iter1107->write($output); } } $output->writeListEnd(); @@ -30075,14 +30131,14 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = 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; - $xfer += $input->readString($elem1092); - $this->group_names []= $elem1092; + $elem1113 = null; + $xfer += $input->readString($elem1113); + $this->group_names []= $elem1113; } $xfer += $input->readListEnd(); } else { @@ -30130,9 +30186,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1093) + foreach ($this->group_names as $iter1114) { - $xfer += $output->writeString($iter1093); + $xfer += $output->writeString($iter1114); } } $output->writeListEnd(); @@ -30221,15 +30277,15 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1094 = 0; - $_etype1097 = 0; - $xfer += $input->readListBegin($_etype1097, $_size1094); - for ($_i1098 = 0; $_i1098 < $_size1094; ++$_i1098) + $_size1115 = 0; + $_etype1118 = 0; + $xfer += $input->readListBegin($_etype1118, $_size1115); + for ($_i1119 = 0; $_i1119 < $_size1115; ++$_i1119) { - $elem1099 = null; - $elem1099 = new \metastore\Partition(); - $xfer += $elem1099->read($input); - $this->success []= $elem1099; + $elem1120 = null; + $elem1120 = new \metastore\Partition(); + $xfer += $elem1120->read($input); + $this->success []= $elem1120; } $xfer += $input->readListEnd(); } else { @@ -30273,9 +30329,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1100) + foreach ($this->success as $iter1121) { - $xfer += $iter1100->write($output); + $xfer += $iter1121->write($output); } } $output->writeListEnd(); @@ -30495,15 +30551,15 @@ class ThriftHiveMetastore_get_partitions_pspec_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\PartitionSpec(); - $xfer += $elem1106->read($input); - $this->success []= $elem1106; + $elem1127 = null; + $elem1127 = new \metastore\PartitionSpec(); + $xfer += $elem1127->read($input); + $this->success []= $elem1127; } $xfer += $input->readListEnd(); } else { @@ -30547,9 +30603,9 @@ class ThriftHiveMetastore_get_partitions_pspec_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(); @@ -30768,14 +30824,14 @@ class ThriftHiveMetastore_get_partition_names_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; - $xfer += $input->readString($elem1113); - $this->success []= $elem1113; + $elem1134 = null; + $xfer += $input->readString($elem1134); + $this->success []= $elem1134; } $xfer += $input->readListEnd(); } else { @@ -30819,9 +30875,9 @@ class ThriftHiveMetastore_get_partition_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1114) + foreach ($this->success as $iter1135) { - $xfer += $output->writeString($iter1114); + $xfer += $output->writeString($iter1135); } } $output->writeListEnd(); @@ -31152,14 +31208,14 @@ class ThriftHiveMetastore_get_partitions_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = 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->part_vals []= $elem1120; + $elem1141 = null; + $xfer += $input->readString($elem1141); + $this->part_vals []= $elem1141; } $xfer += $input->readListEnd(); } else { @@ -31204,9 +31260,9 @@ class ThriftHiveMetastore_get_partitions_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1121) + foreach ($this->part_vals as $iter1142) { - $xfer += $output->writeString($iter1121); + $xfer += $output->writeString($iter1142); } } $output->writeListEnd(); @@ -31300,15 +31356,15 @@ class ThriftHiveMetastore_get_partitions_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1122 = 0; - $_etype1125 = 0; - $xfer += $input->readListBegin($_etype1125, $_size1122); - for ($_i1126 = 0; $_i1126 < $_size1122; ++$_i1126) + $_size1143 = 0; + $_etype1146 = 0; + $xfer += $input->readListBegin($_etype1146, $_size1143); + for ($_i1147 = 0; $_i1147 < $_size1143; ++$_i1147) { - $elem1127 = null; - $elem1127 = new \metastore\Partition(); - $xfer += $elem1127->read($input); - $this->success []= $elem1127; + $elem1148 = null; + $elem1148 = new \metastore\Partition(); + $xfer += $elem1148->read($input); + $this->success []= $elem1148; } $xfer += $input->readListEnd(); } else { @@ -31352,9 +31408,9 @@ class ThriftHiveMetastore_get_partitions_ps_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1128) + foreach ($this->success as $iter1149) { - $xfer += $iter1128->write($output); + $xfer += $iter1149->write($output); } } $output->writeListEnd(); @@ -31501,14 +31557,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = 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; - $xfer += $input->readString($elem1134); - $this->part_vals []= $elem1134; + $elem1155 = null; + $xfer += $input->readString($elem1155); + $this->part_vals []= $elem1155; } $xfer += $input->readListEnd(); } else { @@ -31532,14 +31588,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 6: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1135 = 0; - $_etype1138 = 0; - $xfer += $input->readListBegin($_etype1138, $_size1135); - for ($_i1139 = 0; $_i1139 < $_size1135; ++$_i1139) + $_size1156 = 0; + $_etype1159 = 0; + $xfer += $input->readListBegin($_etype1159, $_size1156); + for ($_i1160 = 0; $_i1160 < $_size1156; ++$_i1160) { - $elem1140 = null; - $xfer += $input->readString($elem1140); - $this->group_names []= $elem1140; + $elem1161 = null; + $xfer += $input->readString($elem1161); + $this->group_names []= $elem1161; } $xfer += $input->readListEnd(); } else { @@ -31577,9 +31633,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1141) + foreach ($this->part_vals as $iter1162) { - $xfer += $output->writeString($iter1141); + $xfer += $output->writeString($iter1162); } } $output->writeListEnd(); @@ -31604,9 +31660,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1142) + foreach ($this->group_names as $iter1163) { - $xfer += $output->writeString($iter1142); + $xfer += $output->writeString($iter1163); } } $output->writeListEnd(); @@ -31695,15 +31751,15 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1143 = 0; - $_etype1146 = 0; - $xfer += $input->readListBegin($_etype1146, $_size1143); - for ($_i1147 = 0; $_i1147 < $_size1143; ++$_i1147) + $_size1164 = 0; + $_etype1167 = 0; + $xfer += $input->readListBegin($_etype1167, $_size1164); + for ($_i1168 = 0; $_i1168 < $_size1164; ++$_i1168) { - $elem1148 = null; - $elem1148 = new \metastore\Partition(); - $xfer += $elem1148->read($input); - $this->success []= $elem1148; + $elem1169 = null; + $elem1169 = new \metastore\Partition(); + $xfer += $elem1169->read($input); + $this->success []= $elem1169; } $xfer += $input->readListEnd(); } else { @@ -31747,9 +31803,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1149) + foreach ($this->success as $iter1170) { - $xfer += $iter1149->write($output); + $xfer += $iter1170->write($output); } } $output->writeListEnd(); @@ -31870,14 +31926,14 @@ class ThriftHiveMetastore_get_partition_names_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1150 = 0; - $_etype1153 = 0; - $xfer += $input->readListBegin($_etype1153, $_size1150); - for ($_i1154 = 0; $_i1154 < $_size1150; ++$_i1154) + $_size1171 = 0; + $_etype1174 = 0; + $xfer += $input->readListBegin($_etype1174, $_size1171); + for ($_i1175 = 0; $_i1175 < $_size1171; ++$_i1175) { - $elem1155 = null; - $xfer += $input->readString($elem1155); - $this->part_vals []= $elem1155; + $elem1176 = null; + $xfer += $input->readString($elem1176); + $this->part_vals []= $elem1176; } $xfer += $input->readListEnd(); } else { @@ -31922,9 +31978,9 @@ class ThriftHiveMetastore_get_partition_names_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1156) + foreach ($this->part_vals as $iter1177) { - $xfer += $output->writeString($iter1156); + $xfer += $output->writeString($iter1177); } } $output->writeListEnd(); @@ -32017,14 +32073,14 @@ class ThriftHiveMetastore_get_partition_names_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1157 = 0; - $_etype1160 = 0; - $xfer += $input->readListBegin($_etype1160, $_size1157); - for ($_i1161 = 0; $_i1161 < $_size1157; ++$_i1161) + $_size1178 = 0; + $_etype1181 = 0; + $xfer += $input->readListBegin($_etype1181, $_size1178); + for ($_i1182 = 0; $_i1182 < $_size1178; ++$_i1182) { - $elem1162 = null; - $xfer += $input->readString($elem1162); - $this->success []= $elem1162; + $elem1183 = null; + $xfer += $input->readString($elem1183); + $this->success []= $elem1183; } $xfer += $input->readListEnd(); } else { @@ -32068,9 +32124,9 @@ class ThriftHiveMetastore_get_partition_names_ps_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1163) + foreach ($this->success as $iter1184) { - $xfer += $output->writeString($iter1163); + $xfer += $output->writeString($iter1184); } } $output->writeListEnd(); @@ -32313,15 +32369,15 @@ class ThriftHiveMetastore_get_partitions_by_filter_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; - $elem1169 = new \metastore\Partition(); - $xfer += $elem1169->read($input); - $this->success []= $elem1169; + $elem1190 = null; + $elem1190 = new \metastore\Partition(); + $xfer += $elem1190->read($input); + $this->success []= $elem1190; } $xfer += $input->readListEnd(); } else { @@ -32365,9 +32421,9 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1170) + foreach ($this->success as $iter1191) { - $xfer += $iter1170->write($output); + $xfer += $iter1191->write($output); } } $output->writeListEnd(); @@ -32610,15 +32666,15 @@ class ThriftHiveMetastore_get_part_specs_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\PartitionSpec(); - $xfer += $elem1176->read($input); - $this->success []= $elem1176; + $elem1197 = null; + $elem1197 = new \metastore\PartitionSpec(); + $xfer += $elem1197->read($input); + $this->success []= $elem1197; } $xfer += $input->readListEnd(); } else { @@ -32662,9 +32718,9 @@ class ThriftHiveMetastore_get_part_specs_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(); @@ -33230,14 +33286,14 @@ class ThriftHiveMetastore_get_partitions_by_names_args { case 3: if ($ftype == TType::LST) { $this->names = 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; - $xfer += $input->readString($elem1183); - $this->names []= $elem1183; + $elem1204 = null; + $xfer += $input->readString($elem1204); + $this->names []= $elem1204; } $xfer += $input->readListEnd(); } else { @@ -33275,9 +33331,9 @@ class ThriftHiveMetastore_get_partitions_by_names_args { { $output->writeListBegin(TType::STRING, count($this->names)); { - foreach ($this->names as $iter1184) + foreach ($this->names as $iter1205) { - $xfer += $output->writeString($iter1184); + $xfer += $output->writeString($iter1205); } } $output->writeListEnd(); @@ -33366,15 +33422,15 @@ class ThriftHiveMetastore_get_partitions_by_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1185 = 0; - $_etype1188 = 0; - $xfer += $input->readListBegin($_etype1188, $_size1185); - for ($_i1189 = 0; $_i1189 < $_size1185; ++$_i1189) + $_size1206 = 0; + $_etype1209 = 0; + $xfer += $input->readListBegin($_etype1209, $_size1206); + for ($_i1210 = 0; $_i1210 < $_size1206; ++$_i1210) { - $elem1190 = null; - $elem1190 = new \metastore\Partition(); - $xfer += $elem1190->read($input); - $this->success []= $elem1190; + $elem1211 = null; + $elem1211 = new \metastore\Partition(); + $xfer += $elem1211->read($input); + $this->success []= $elem1211; } $xfer += $input->readListEnd(); } else { @@ -33418,9 +33474,9 @@ class ThriftHiveMetastore_get_partitions_by_names_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1191) + foreach ($this->success as $iter1212) { - $xfer += $iter1191->write($output); + $xfer += $iter1212->write($output); } } $output->writeListEnd(); @@ -33759,15 +33815,15 @@ class ThriftHiveMetastore_alter_partitions_args { case 3: if ($ftype == TType::LST) { $this->new_parts = 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->new_parts []= $elem1197; + $elem1218 = null; + $elem1218 = new \metastore\Partition(); + $xfer += $elem1218->read($input); + $this->new_parts []= $elem1218; } $xfer += $input->readListEnd(); } else { @@ -33805,9 +33861,9 @@ class ThriftHiveMetastore_alter_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter1198) + foreach ($this->new_parts as $iter1219) { - $xfer += $iter1198->write($output); + $xfer += $iter1219->write($output); } } $output->writeListEnd(); @@ -34022,15 +34078,15 @@ class ThriftHiveMetastore_alter_partitions_with_environment_context_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 { @@ -34076,9 +34132,9 @@ class ThriftHiveMetastore_alter_partitions_with_environment_context_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(); @@ -34556,14 +34612,14 @@ class ThriftHiveMetastore_rename_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = 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; - $xfer += $input->readString($elem1211); - $this->part_vals []= $elem1211; + $elem1232 = null; + $xfer += $input->readString($elem1232); + $this->part_vals []= $elem1232; } $xfer += $input->readListEnd(); } else { @@ -34609,9 +34665,9 @@ class ThriftHiveMetastore_rename_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1212) + foreach ($this->part_vals as $iter1233) { - $xfer += $output->writeString($iter1212); + $xfer += $output->writeString($iter1233); } } $output->writeListEnd(); @@ -34796,14 +34852,14 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { case 1: 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 { @@ -34838,9 +34894,9 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_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(); @@ -35294,14 +35350,14 @@ class ThriftHiveMetastore_partition_name_to_vals_result { case 0: if ($ftype == TType::LST) { $this->success = 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->success []= $elem1225; + $elem1246 = null; + $xfer += $input->readString($elem1246); + $this->success []= $elem1246; } $xfer += $input->readListEnd(); } else { @@ -35337,9 +35393,9 @@ class ThriftHiveMetastore_partition_name_to_vals_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1226) + foreach ($this->success as $iter1247) { - $xfer += $output->writeString($iter1226); + $xfer += $output->writeString($iter1247); } } $output->writeListEnd(); @@ -35499,17 +35555,17 @@ class ThriftHiveMetastore_partition_name_to_spec_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size1227 = 0; - $_ktype1228 = 0; - $_vtype1229 = 0; - $xfer += $input->readMapBegin($_ktype1228, $_vtype1229, $_size1227); - for ($_i1231 = 0; $_i1231 < $_size1227; ++$_i1231) + $_size1248 = 0; + $_ktype1249 = 0; + $_vtype1250 = 0; + $xfer += $input->readMapBegin($_ktype1249, $_vtype1250, $_size1248); + for ($_i1252 = 0; $_i1252 < $_size1248; ++$_i1252) { - $key1232 = ''; - $val1233 = ''; - $xfer += $input->readString($key1232); - $xfer += $input->readString($val1233); - $this->success[$key1232] = $val1233; + $key1253 = ''; + $val1254 = ''; + $xfer += $input->readString($key1253); + $xfer += $input->readString($val1254); + $this->success[$key1253] = $val1254; } $xfer += $input->readMapEnd(); } else { @@ -35545,10 +35601,10 @@ class ThriftHiveMetastore_partition_name_to_spec_result { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->success)); { - foreach ($this->success as $kiter1234 => $viter1235) + foreach ($this->success as $kiter1255 => $viter1256) { - $xfer += $output->writeString($kiter1234); - $xfer += $output->writeString($viter1235); + $xfer += $output->writeString($kiter1255); + $xfer += $output->writeString($viter1256); } } $output->writeMapEnd(); @@ -35668,17 +35724,17 @@ class ThriftHiveMetastore_markPartitionForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size1236 = 0; - $_ktype1237 = 0; - $_vtype1238 = 0; - $xfer += $input->readMapBegin($_ktype1237, $_vtype1238, $_size1236); - for ($_i1240 = 0; $_i1240 < $_size1236; ++$_i1240) + $_size1257 = 0; + $_ktype1258 = 0; + $_vtype1259 = 0; + $xfer += $input->readMapBegin($_ktype1258, $_vtype1259, $_size1257); + for ($_i1261 = 0; $_i1261 < $_size1257; ++$_i1261) { - $key1241 = ''; - $val1242 = ''; - $xfer += $input->readString($key1241); - $xfer += $input->readString($val1242); - $this->part_vals[$key1241] = $val1242; + $key1262 = ''; + $val1263 = ''; + $xfer += $input->readString($key1262); + $xfer += $input->readString($val1263); + $this->part_vals[$key1262] = $val1263; } $xfer += $input->readMapEnd(); } else { @@ -35723,10 +35779,10 @@ class ThriftHiveMetastore_markPartitionForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter1243 => $viter1244) + foreach ($this->part_vals as $kiter1264 => $viter1265) { - $xfer += $output->writeString($kiter1243); - $xfer += $output->writeString($viter1244); + $xfer += $output->writeString($kiter1264); + $xfer += $output->writeString($viter1265); } } $output->writeMapEnd(); @@ -36048,17 +36104,17 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size1245 = 0; - $_ktype1246 = 0; - $_vtype1247 = 0; - $xfer += $input->readMapBegin($_ktype1246, $_vtype1247, $_size1245); - for ($_i1249 = 0; $_i1249 < $_size1245; ++$_i1249) + $_size1266 = 0; + $_ktype1267 = 0; + $_vtype1268 = 0; + $xfer += $input->readMapBegin($_ktype1267, $_vtype1268, $_size1266); + for ($_i1270 = 0; $_i1270 < $_size1266; ++$_i1270) { - $key1250 = ''; - $val1251 = ''; - $xfer += $input->readString($key1250); - $xfer += $input->readString($val1251); - $this->part_vals[$key1250] = $val1251; + $key1271 = ''; + $val1272 = ''; + $xfer += $input->readString($key1271); + $xfer += $input->readString($val1272); + $this->part_vals[$key1271] = $val1272; } $xfer += $input->readMapEnd(); } else { @@ -36103,10 +36159,10 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter1252 => $viter1253) + foreach ($this->part_vals as $kiter1273 => $viter1274) { - $xfer += $output->writeString($kiter1252); - $xfer += $output->writeString($viter1253); + $xfer += $output->writeString($kiter1273); + $xfer += $output->writeString($viter1274); } } $output->writeMapEnd(); @@ -41065,14 +41121,14 @@ class ThriftHiveMetastore_get_functions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1254 = 0; - $_etype1257 = 0; - $xfer += $input->readListBegin($_etype1257, $_size1254); - for ($_i1258 = 0; $_i1258 < $_size1254; ++$_i1258) + $_size1275 = 0; + $_etype1278 = 0; + $xfer += $input->readListBegin($_etype1278, $_size1275); + for ($_i1279 = 0; $_i1279 < $_size1275; ++$_i1279) { - $elem1259 = null; - $xfer += $input->readString($elem1259); - $this->success []= $elem1259; + $elem1280 = null; + $xfer += $input->readString($elem1280); + $this->success []= $elem1280; } $xfer += $input->readListEnd(); } else { @@ -41108,9 +41164,9 @@ class ThriftHiveMetastore_get_functions_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1260) + foreach ($this->success as $iter1281) { - $xfer += $output->writeString($iter1260); + $xfer += $output->writeString($iter1281); } } $output->writeListEnd(); @@ -41979,14 +42035,14 @@ class ThriftHiveMetastore_get_role_names_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 { @@ -42022,9 +42078,9 @@ class ThriftHiveMetastore_get_role_names_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(); @@ -42715,15 +42771,15 @@ class ThriftHiveMetastore_list_roles_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; - $elem1273 = new \metastore\Role(); - $xfer += $elem1273->read($input); - $this->success []= $elem1273; + $elem1294 = null; + $elem1294 = new \metastore\Role(); + $xfer += $elem1294->read($input); + $this->success []= $elem1294; } $xfer += $input->readListEnd(); } else { @@ -42759,9 +42815,9 @@ class ThriftHiveMetastore_list_roles_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1274) + foreach ($this->success as $iter1295) { - $xfer += $iter1274->write($output); + $xfer += $iter1295->write($output); } } $output->writeListEnd(); @@ -43423,14 +43479,14 @@ class ThriftHiveMetastore_get_privilege_set_args { case 3: if ($ftype == TType::LST) { $this->group_names = 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; - $xfer += $input->readString($elem1280); - $this->group_names []= $elem1280; + $elem1301 = null; + $xfer += $input->readString($elem1301); + $this->group_names []= $elem1301; } $xfer += $input->readListEnd(); } else { @@ -43471,9 +43527,9 @@ class ThriftHiveMetastore_get_privilege_set_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1281) + foreach ($this->group_names as $iter1302) { - $xfer += $output->writeString($iter1281); + $xfer += $output->writeString($iter1302); } } $output->writeListEnd(); @@ -43781,15 +43837,15 @@ class ThriftHiveMetastore_list_privileges_result { case 0: if ($ftype == TType::LST) { $this->success = 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; - $elem1287 = new \metastore\HiveObjectPrivilege(); - $xfer += $elem1287->read($input); - $this->success []= $elem1287; + $elem1308 = null; + $elem1308 = new \metastore\HiveObjectPrivilege(); + $xfer += $elem1308->read($input); + $this->success []= $elem1308; } $xfer += $input->readListEnd(); } else { @@ -43825,9 +43881,9 @@ class ThriftHiveMetastore_list_privileges_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1288) + foreach ($this->success as $iter1309) { - $xfer += $iter1288->write($output); + $xfer += $iter1309->write($output); } } $output->writeListEnd(); @@ -44459,14 +44515,14 @@ class ThriftHiveMetastore_set_ugi_args { case 2: if ($ftype == TType::LST) { $this->group_names = 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; - $xfer += $input->readString($elem1294); - $this->group_names []= $elem1294; + $elem1315 = null; + $xfer += $input->readString($elem1315); + $this->group_names []= $elem1315; } $xfer += $input->readListEnd(); } else { @@ -44499,9 +44555,9 @@ class ThriftHiveMetastore_set_ugi_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1295) + foreach ($this->group_names as $iter1316) { - $xfer += $output->writeString($iter1295); + $xfer += $output->writeString($iter1316); } } $output->writeListEnd(); @@ -44577,14 +44633,14 @@ class ThriftHiveMetastore_set_ugi_result { case 0: if ($ftype == TType::LST) { $this->success = 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->success []= $elem1301; + $elem1322 = null; + $xfer += $input->readString($elem1322); + $this->success []= $elem1322; } $xfer += $input->readListEnd(); } else { @@ -44620,9 +44676,9 @@ class ThriftHiveMetastore_set_ugi_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1302) + foreach ($this->success as $iter1323) { - $xfer += $output->writeString($iter1302); + $xfer += $output->writeString($iter1323); } } $output->writeListEnd(); @@ -45739,14 +45795,14 @@ class ThriftHiveMetastore_get_all_token_identifiers_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 { @@ -45774,9 +45830,9 @@ class ThriftHiveMetastore_get_all_token_identifiers_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(); @@ -46415,14 +46471,14 @@ class ThriftHiveMetastore_get_master_keys_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 { @@ -46450,9 +46506,9 @@ class ThriftHiveMetastore_get_master_keys_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(); @@ -50323,6 +50379,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; @@ -56991,15 +57207,15 @@ class ThriftHiveMetastore_get_schema_all_versions_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; - $elem1322 = new \metastore\SchemaVersion(); - $xfer += $elem1322->read($input); - $this->success []= $elem1322; + $elem1343 = null; + $elem1343 = new \metastore\SchemaVersion(); + $xfer += $elem1343->read($input); + $this->success []= $elem1343; } $xfer += $input->readListEnd(); } else { @@ -57043,9 +57259,9 @@ class ThriftHiveMetastore_get_schema_all_versions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1323) + foreach ($this->success as $iter1344) { - $xfer += $iter1323->write($output); + $xfer += $iter1344->write($output); } } $output->writeListEnd(); @@ -58914,15 +59130,15 @@ class ThriftHiveMetastore_get_runtime_stats_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\RuntimeStat(); - $xfer += $elem1329->read($input); - $this->success []= $elem1329; + $elem1350 = null; + $elem1350 = new \metastore\RuntimeStat(); + $xfer += $elem1350->read($input); + $this->success []= $elem1350; } $xfer += $input->readListEnd(); } else { @@ -58958,9 +59174,9 @@ class ThriftHiveMetastore_get_runtime_stats_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(); 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 c9ebfaf4ff..d75453a4c8 100644 --- a/standalone-metastore/src/gen/thrift/gen-php/metastore/Types.php +++ b/standalone-metastore/src/gen/thrift/gen-php/metastore/Types.php @@ -16409,6 +16409,10 @@ class CommitTxnRequest { * @var string */ public $replPolicy = null; + /** + * @var \metastore\WriteEventInfo[] + */ + public $writeEventInfos = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -16421,6 +16425,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)) { @@ -16430,6 +16443,9 @@ class CommitTxnRequest { if (isset($vals['replPolicy'])) { $this->replPolicy = $vals['replPolicy']; } + if (isset($vals['writeEventInfos'])) { + $this->writeEventInfos = $vals['writeEventInfos']; + } } } @@ -16466,6 +16482,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; @@ -16489,6 +16523,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 $partition = null; + /** + * @var string + */ + public $files = 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' => 'partition', + 'type' => TType::STRING, + ), + 5 => array( + 'var' => 'files', + '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['partition'])) { + $this->partition = $vals['partition']; + } + if (isset($vals['files'])) { + $this->files = $vals['files']; + } + 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->partition); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->files); + } 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->partition !== null) { + $xfer += $output->writeFieldBegin('partition', TType::STRING, 4); + $xfer += $output->writeString($this->partition); + $xfer += $output->writeFieldEnd(); + } + if ($this->files !== null) { + $xfer += $output->writeFieldBegin('files', TType::STRING, 5); + $xfer += $output->writeString($this->files); + $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; @@ -16557,14 +16821,14 @@ class GetValidWriteIdsRequest { case 1: if ($ftype == TType::LST) { $this->fullTableNames = 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->fullTableNames []= $elem528; + $elem535 = null; + $xfer += $input->readString($elem535); + $this->fullTableNames []= $elem535; } $xfer += $input->readListEnd(); } else { @@ -16599,9 +16863,9 @@ class GetValidWriteIdsRequest { { $output->writeListBegin(TType::STRING, count($this->fullTableNames)); { - foreach ($this->fullTableNames as $iter529) + foreach ($this->fullTableNames as $iter536) { - $xfer += $output->writeString($iter529); + $xfer += $output->writeString($iter536); } } $output->writeListEnd(); @@ -16728,14 +16992,14 @@ class TableValidWriteIds { case 3: if ($ftype == TType::LST) { $this->invalidWriteIds = 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->readI64($elem535); - $this->invalidWriteIds []= $elem535; + $elem542 = null; + $xfer += $input->readI64($elem542); + $this->invalidWriteIds []= $elem542; } $xfer += $input->readListEnd(); } else { @@ -16787,9 +17051,9 @@ class TableValidWriteIds { { $output->writeListBegin(TType::I64, count($this->invalidWriteIds)); { - foreach ($this->invalidWriteIds as $iter536) + foreach ($this->invalidWriteIds as $iter543) { - $xfer += $output->writeI64($iter536); + $xfer += $output->writeI64($iter543); } } $output->writeListEnd(); @@ -16864,15 +17128,15 @@ class GetValidWriteIdsResponse { case 1: if ($ftype == TType::LST) { $this->tblValidWriteIds = 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; - $elem542 = new \metastore\TableValidWriteIds(); - $xfer += $elem542->read($input); - $this->tblValidWriteIds []= $elem542; + $elem549 = null; + $elem549 = new \metastore\TableValidWriteIds(); + $xfer += $elem549->read($input); + $this->tblValidWriteIds []= $elem549; } $xfer += $input->readListEnd(); } else { @@ -16900,9 +17164,9 @@ class GetValidWriteIdsResponse { { $output->writeListBegin(TType::STRUCT, count($this->tblValidWriteIds)); { - foreach ($this->tblValidWriteIds as $iter543) + foreach ($this->tblValidWriteIds as $iter550) { - $xfer += $iter543->write($output); + $xfer += $iter550->write($output); } } $output->writeListEnd(); @@ -17029,14 +17293,14 @@ class AllocateTableWriteIdsRequest { case 3: if ($ftype == TType::LST) { $this->txnIds = 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; - $xfer += $input->readI64($elem549); - $this->txnIds []= $elem549; + $elem556 = null; + $xfer += $input->readI64($elem556); + $this->txnIds []= $elem556; } $xfer += $input->readListEnd(); } else { @@ -17053,15 +17317,15 @@ class AllocateTableWriteIdsRequest { case 5: if ($ftype == TType::LST) { $this->srcTxnToWriteIdList = array(); - $_size550 = 0; - $_etype553 = 0; - $xfer += $input->readListBegin($_etype553, $_size550); - for ($_i554 = 0; $_i554 < $_size550; ++$_i554) + $_size557 = 0; + $_etype560 = 0; + $xfer += $input->readListBegin($_etype560, $_size557); + for ($_i561 = 0; $_i561 < $_size557; ++$_i561) { - $elem555 = null; - $elem555 = new \metastore\TxnToWriteId(); - $xfer += $elem555->read($input); - $this->srcTxnToWriteIdList []= $elem555; + $elem562 = null; + $elem562 = new \metastore\TxnToWriteId(); + $xfer += $elem562->read($input); + $this->srcTxnToWriteIdList []= $elem562; } $xfer += $input->readListEnd(); } else { @@ -17099,9 +17363,9 @@ class AllocateTableWriteIdsRequest { { $output->writeListBegin(TType::I64, count($this->txnIds)); { - foreach ($this->txnIds as $iter556) + foreach ($this->txnIds as $iter563) { - $xfer += $output->writeI64($iter556); + $xfer += $output->writeI64($iter563); } } $output->writeListEnd(); @@ -17121,9 +17385,9 @@ class AllocateTableWriteIdsRequest { { $output->writeListBegin(TType::STRUCT, count($this->srcTxnToWriteIdList)); { - foreach ($this->srcTxnToWriteIdList as $iter557) + foreach ($this->srcTxnToWriteIdList as $iter564) { - $xfer += $iter557->write($output); + $xfer += $iter564->write($output); } } $output->writeListEnd(); @@ -17286,15 +17550,15 @@ class AllocateTableWriteIdsResponse { case 1: if ($ftype == TType::LST) { $this->txnToWriteIds = array(); - $_size558 = 0; - $_etype561 = 0; - $xfer += $input->readListBegin($_etype561, $_size558); - for ($_i562 = 0; $_i562 < $_size558; ++$_i562) + $_size565 = 0; + $_etype568 = 0; + $xfer += $input->readListBegin($_etype568, $_size565); + for ($_i569 = 0; $_i569 < $_size565; ++$_i569) { - $elem563 = null; - $elem563 = new \metastore\TxnToWriteId(); - $xfer += $elem563->read($input); - $this->txnToWriteIds []= $elem563; + $elem570 = null; + $elem570 = new \metastore\TxnToWriteId(); + $xfer += $elem570->read($input); + $this->txnToWriteIds []= $elem570; } $xfer += $input->readListEnd(); } else { @@ -17322,9 +17586,9 @@ class AllocateTableWriteIdsResponse { { $output->writeListBegin(TType::STRUCT, count($this->txnToWriteIds)); { - foreach ($this->txnToWriteIds as $iter564) + foreach ($this->txnToWriteIds as $iter571) { - $xfer += $iter564->write($output); + $xfer += $iter571->write($output); } } $output->writeListEnd(); @@ -17669,16 +17933,16 @@ class LockRequest { case 1: if ($ftype == TType::LST) { $this->component = 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\LockComponent(); - $xfer += $elem570->read($input); - $this->component []= $elem570; - } + $elem577 = null; + $elem577 = new \metastore\LockComponent(); + $xfer += $elem577->read($input); + $this->component []= $elem577; + } $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); @@ -17733,9 +17997,9 @@ class LockRequest { { $output->writeListBegin(TType::STRUCT, count($this->component)); { - foreach ($this->component as $iter571) + foreach ($this->component as $iter578) { - $xfer += $iter571->write($output); + $xfer += $iter578->write($output); } } $output->writeListEnd(); @@ -18678,15 +18942,15 @@ class ShowLocksResponse { case 1: if ($ftype == TType::LST) { $this->locks = 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\ShowLocksResponseElement(); - $xfer += $elem577->read($input); - $this->locks []= $elem577; + $elem584 = null; + $elem584 = new \metastore\ShowLocksResponseElement(); + $xfer += $elem584->read($input); + $this->locks []= $elem584; } $xfer += $input->readListEnd(); } else { @@ -18714,9 +18978,9 @@ class ShowLocksResponse { { $output->writeListBegin(TType::STRUCT, count($this->locks)); { - foreach ($this->locks as $iter578) + foreach ($this->locks as $iter585) { - $xfer += $iter578->write($output); + $xfer += $iter585->write($output); } } $output->writeListEnd(); @@ -18991,17 +19255,17 @@ class HeartbeatTxnRangeResponse { case 1: if ($ftype == TType::SET) { $this->aborted = array(); - $_size579 = 0; - $_etype582 = 0; - $xfer += $input->readSetBegin($_etype582, $_size579); - for ($_i583 = 0; $_i583 < $_size579; ++$_i583) + $_size586 = 0; + $_etype589 = 0; + $xfer += $input->readSetBegin($_etype589, $_size586); + for ($_i590 = 0; $_i590 < $_size586; ++$_i590) { - $elem584 = null; - $xfer += $input->readI64($elem584); - if (is_scalar($elem584)) { - $this->aborted[$elem584] = true; + $elem591 = null; + $xfer += $input->readI64($elem591); + if (is_scalar($elem591)) { + $this->aborted[$elem591] = true; } else { - $this->aborted []= $elem584; + $this->aborted []= $elem591; } } $xfer += $input->readSetEnd(); @@ -19012,17 +19276,17 @@ class HeartbeatTxnRangeResponse { case 2: if ($ftype == TType::SET) { $this->nosuch = array(); - $_size585 = 0; - $_etype588 = 0; - $xfer += $input->readSetBegin($_etype588, $_size585); - for ($_i589 = 0; $_i589 < $_size585; ++$_i589) + $_size592 = 0; + $_etype595 = 0; + $xfer += $input->readSetBegin($_etype595, $_size592); + for ($_i596 = 0; $_i596 < $_size592; ++$_i596) { - $elem590 = null; - $xfer += $input->readI64($elem590); - if (is_scalar($elem590)) { - $this->nosuch[$elem590] = true; + $elem597 = null; + $xfer += $input->readI64($elem597); + if (is_scalar($elem597)) { + $this->nosuch[$elem597] = true; } else { - $this->nosuch []= $elem590; + $this->nosuch []= $elem597; } } $xfer += $input->readSetEnd(); @@ -19051,12 +19315,12 @@ class HeartbeatTxnRangeResponse { { $output->writeSetBegin(TType::I64, count($this->aborted)); { - foreach ($this->aborted as $iter591 => $iter592) + foreach ($this->aborted as $iter598 => $iter599) { - if (is_scalar($iter592)) { - $xfer += $output->writeI64($iter591); + if (is_scalar($iter599)) { + $xfer += $output->writeI64($iter598); } else { - $xfer += $output->writeI64($iter592); + $xfer += $output->writeI64($iter599); } } } @@ -19072,12 +19336,12 @@ class HeartbeatTxnRangeResponse { { $output->writeSetBegin(TType::I64, count($this->nosuch)); { - foreach ($this->nosuch as $iter593 => $iter594) + foreach ($this->nosuch as $iter600 => $iter601) { - if (is_scalar($iter594)) { - $xfer += $output->writeI64($iter593); + if (is_scalar($iter601)) { + $xfer += $output->writeI64($iter600); } else { - $xfer += $output->writeI64($iter594); + $xfer += $output->writeI64($iter601); } } } @@ -19236,17 +19500,17 @@ class CompactionRequest { case 6: if ($ftype == TType::MAP) { $this->properties = array(); - $_size595 = 0; - $_ktype596 = 0; - $_vtype597 = 0; - $xfer += $input->readMapBegin($_ktype596, $_vtype597, $_size595); - for ($_i599 = 0; $_i599 < $_size595; ++$_i599) + $_size602 = 0; + $_ktype603 = 0; + $_vtype604 = 0; + $xfer += $input->readMapBegin($_ktype603, $_vtype604, $_size602); + for ($_i606 = 0; $_i606 < $_size602; ++$_i606) { - $key600 = ''; - $val601 = ''; - $xfer += $input->readString($key600); - $xfer += $input->readString($val601); - $this->properties[$key600] = $val601; + $key607 = ''; + $val608 = ''; + $xfer += $input->readString($key607); + $xfer += $input->readString($val608); + $this->properties[$key607] = $val608; } $xfer += $input->readMapEnd(); } else { @@ -19299,10 +19563,10 @@ class CompactionRequest { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->properties)); { - foreach ($this->properties as $kiter602 => $viter603) + foreach ($this->properties as $kiter609 => $viter610) { - $xfer += $output->writeString($kiter602); - $xfer += $output->writeString($viter603); + $xfer += $output->writeString($kiter609); + $xfer += $output->writeString($viter610); } } $output->writeMapEnd(); @@ -19889,15 +20153,15 @@ class ShowCompactResponse { case 1: if ($ftype == TType::LST) { $this->compacts = array(); - $_size604 = 0; - $_etype607 = 0; - $xfer += $input->readListBegin($_etype607, $_size604); - for ($_i608 = 0; $_i608 < $_size604; ++$_i608) + $_size611 = 0; + $_etype614 = 0; + $xfer += $input->readListBegin($_etype614, $_size611); + for ($_i615 = 0; $_i615 < $_size611; ++$_i615) { - $elem609 = null; - $elem609 = new \metastore\ShowCompactResponseElement(); - $xfer += $elem609->read($input); - $this->compacts []= $elem609; + $elem616 = null; + $elem616 = new \metastore\ShowCompactResponseElement(); + $xfer += $elem616->read($input); + $this->compacts []= $elem616; } $xfer += $input->readListEnd(); } else { @@ -19925,9 +20189,9 @@ class ShowCompactResponse { { $output->writeListBegin(TType::STRUCT, count($this->compacts)); { - foreach ($this->compacts as $iter610) + foreach ($this->compacts as $iter617) { - $xfer += $iter610->write($output); + $xfer += $iter617->write($output); } } $output->writeListEnd(); @@ -20074,14 +20338,14 @@ class AddDynamicPartitions { case 5: if ($ftype == TType::LST) { $this->partitionnames = 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; - $xfer += $input->readString($elem616); - $this->partitionnames []= $elem616; + $elem623 = null; + $xfer += $input->readString($elem623); + $this->partitionnames []= $elem623; } $xfer += $input->readListEnd(); } else { @@ -20136,9 +20400,9 @@ class AddDynamicPartitions { { $output->writeListBegin(TType::STRING, count($this->partitionnames)); { - foreach ($this->partitionnames as $iter617) + foreach ($this->partitionnames as $iter624) { - $xfer += $output->writeString($iter617); + $xfer += $output->writeString($iter624); } } $output->writeListEnd(); @@ -20462,17 +20726,17 @@ class CreationMetadata { case 4: if ($ftype == TType::SET) { $this->tablesUsed = array(); - $_size618 = 0; - $_etype621 = 0; - $xfer += $input->readSetBegin($_etype621, $_size618); - for ($_i622 = 0; $_i622 < $_size618; ++$_i622) + $_size625 = 0; + $_etype628 = 0; + $xfer += $input->readSetBegin($_etype628, $_size625); + for ($_i629 = 0; $_i629 < $_size625; ++$_i629) { - $elem623 = null; - $xfer += $input->readString($elem623); - if (is_scalar($elem623)) { - $this->tablesUsed[$elem623] = true; + $elem630 = null; + $xfer += $input->readString($elem630); + if (is_scalar($elem630)) { + $this->tablesUsed[$elem630] = true; } else { - $this->tablesUsed []= $elem623; + $this->tablesUsed []= $elem630; } } $xfer += $input->readSetEnd(); @@ -20523,12 +20787,12 @@ class CreationMetadata { { $output->writeSetBegin(TType::STRING, count($this->tablesUsed)); { - foreach ($this->tablesUsed as $iter624 => $iter625) + foreach ($this->tablesUsed as $iter631 => $iter632) { - if (is_scalar($iter625)) { - $xfer += $output->writeString($iter624); + if (is_scalar($iter632)) { + $xfer += $output->writeString($iter631); } else { - $xfer += $output->writeString($iter625); + $xfer += $output->writeString($iter632); } } } @@ -20933,15 +21197,15 @@ class NotificationEventResponse { case 1: if ($ftype == TType::LST) { $this->events = array(); - $_size626 = 0; - $_etype629 = 0; - $xfer += $input->readListBegin($_etype629, $_size626); - for ($_i630 = 0; $_i630 < $_size626; ++$_i630) + $_size633 = 0; + $_etype636 = 0; + $xfer += $input->readListBegin($_etype636, $_size633); + for ($_i637 = 0; $_i637 < $_size633; ++$_i637) { - $elem631 = null; - $elem631 = new \metastore\NotificationEvent(); - $xfer += $elem631->read($input); - $this->events []= $elem631; + $elem638 = null; + $elem638 = new \metastore\NotificationEvent(); + $xfer += $elem638->read($input); + $this->events []= $elem638; } $xfer += $input->readListEnd(); } else { @@ -20969,9 +21233,9 @@ class NotificationEventResponse { { $output->writeListBegin(TType::STRUCT, count($this->events)); { - foreach ($this->events as $iter632) + foreach ($this->events as $iter639) { - $xfer += $iter632->write($output); + $xfer += $iter639->write($output); } } $output->writeListEnd(); @@ -21271,6 +21535,10 @@ class InsertEventRequestData { * @var string[] */ public $filesAddedChecksum = null; + /** + * @var string[] + */ + public $subDirectoryList = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -21295,6 +21563,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)) { @@ -21307,6 +21583,9 @@ class InsertEventRequestData { if (isset($vals['filesAddedChecksum'])) { $this->filesAddedChecksum = $vals['filesAddedChecksum']; } + if (isset($vals['subDirectoryList'])) { + $this->subDirectoryList = $vals['subDirectoryList']; + } } } @@ -21339,14 +21618,14 @@ class InsertEventRequestData { case 2: if ($ftype == TType::LST) { $this->filesAdded = 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; - $xfer += $input->readString($elem638); - $this->filesAdded []= $elem638; + $elem645 = null; + $xfer += $input->readString($elem645); + $this->filesAdded []= $elem645; } $xfer += $input->readListEnd(); } else { @@ -21356,14 +21635,31 @@ class InsertEventRequestData { case 3: if ($ftype == TType::LST) { $this->filesAddedChecksum = array(); - $_size639 = 0; - $_etype642 = 0; - $xfer += $input->readListBegin($_etype642, $_size639); - for ($_i643 = 0; $_i643 < $_size639; ++$_i643) + $_size646 = 0; + $_etype649 = 0; + $xfer += $input->readListBegin($_etype649, $_size646); + for ($_i650 = 0; $_i650 < $_size646; ++$_i650) + { + $elem651 = null; + $xfer += $input->readString($elem651); + $this->filesAddedChecksum []= $elem651; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::LST) { + $this->subDirectoryList = array(); + $_size652 = 0; + $_etype655 = 0; + $xfer += $input->readListBegin($_etype655, $_size652); + for ($_i656 = 0; $_i656 < $_size652; ++$_i656) { - $elem644 = null; - $xfer += $input->readString($elem644); - $this->filesAddedChecksum []= $elem644; + $elem657 = null; + $xfer += $input->readString($elem657); + $this->subDirectoryList []= $elem657; } $xfer += $input->readListEnd(); } else { @@ -21396,9 +21692,9 @@ class InsertEventRequestData { { $output->writeListBegin(TType::STRING, count($this->filesAdded)); { - foreach ($this->filesAdded as $iter645) + foreach ($this->filesAdded as $iter658) { - $xfer += $output->writeString($iter645); + $xfer += $output->writeString($iter658); } } $output->writeListEnd(); @@ -21413,15 +21709,333 @@ class InsertEventRequestData { { $output->writeListBegin(TType::STRING, count($this->filesAddedChecksum)); { - foreach ($this->filesAddedChecksum as $iter646) + foreach ($this->filesAddedChecksum as $iter659) { - $xfer += $output->writeString($iter646); + $xfer += $output->writeString($iter659); } } $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 $iter660) + { + $xfer += $output->writeString($iter660); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +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(); + $_size661 = 0; + $_etype664 = 0; + $xfer += $input->readListBegin($_etype664, $_size661); + for ($_i665 = 0; $_i665 < $_size661; ++$_i665) + { + $elem666 = null; + $xfer += $input->readString($elem666); + $this->partitionVals []= $elem666; + } + $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 $iter667) + { + $xfer += $output->writeString($iter667); + } + } + $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; @@ -21429,33 +22043,19 @@ class InsertEventRequestData { } -class FireEventRequestData { +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) @@ -21473,14 +22073,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; @@ -21493,15 +22085,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; @@ -21509,55 +22093,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, @@ -21565,36 +22153,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) @@ -21613,54 +22197,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(); - $_size647 = 0; - $_etype650 = 0; - $xfer += $input->readListBegin($_etype650, $_size647); - for ($_i651 = 0; $_i651 < $_size647; ++$_i651) - { - $elem652 = null; - $xfer += $input->readString($elem652); - $this->partitionVals []= $elem652; - } - $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(); + $_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); } @@ -21677,52 +22261,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 $iter653) + foreach ($this->partitionVals as $iter674) { - $xfer += $output->writeString($iter653); + $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; @@ -21730,7 +22314,7 @@ class FireEventRequest { } -class FireEventResponse { +class WriteNotificationLogResponse { static $_TSPEC; @@ -21742,7 +22326,7 @@ class FireEventResponse { } public function getName() { - return 'FireEventResponse'; + return 'WriteNotificationLogResponse'; } public function read($input) @@ -21772,7 +22356,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; @@ -21944,18 +22528,18 @@ class GetFileMetadataByExprResult { case 1: if ($ftype == TType::MAP) { $this->metadata = array(); - $_size654 = 0; - $_ktype655 = 0; - $_vtype656 = 0; - $xfer += $input->readMapBegin($_ktype655, $_vtype656, $_size654); - for ($_i658 = 0; $_i658 < $_size654; ++$_i658) + $_size675 = 0; + $_ktype676 = 0; + $_vtype677 = 0; + $xfer += $input->readMapBegin($_ktype676, $_vtype677, $_size675); + for ($_i679 = 0; $_i679 < $_size675; ++$_i679) { - $key659 = 0; - $val660 = new \metastore\MetadataPpdResult(); - $xfer += $input->readI64($key659); - $val660 = new \metastore\MetadataPpdResult(); - $xfer += $val660->read($input); - $this->metadata[$key659] = $val660; + $key680 = 0; + $val681 = new \metastore\MetadataPpdResult(); + $xfer += $input->readI64($key680); + $val681 = new \metastore\MetadataPpdResult(); + $xfer += $val681->read($input); + $this->metadata[$key680] = $val681; } $xfer += $input->readMapEnd(); } else { @@ -21990,10 +22574,10 @@ class GetFileMetadataByExprResult { { $output->writeMapBegin(TType::I64, TType::STRUCT, count($this->metadata)); { - foreach ($this->metadata as $kiter661 => $viter662) + foreach ($this->metadata as $kiter682 => $viter683) { - $xfer += $output->writeI64($kiter661); - $xfer += $viter662->write($output); + $xfer += $output->writeI64($kiter682); + $xfer += $viter683->write($output); } } $output->writeMapEnd(); @@ -22095,14 +22679,14 @@ class GetFileMetadataByExprRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size663 = 0; - $_etype666 = 0; - $xfer += $input->readListBegin($_etype666, $_size663); - for ($_i667 = 0; $_i667 < $_size663; ++$_i667) + $_size684 = 0; + $_etype687 = 0; + $xfer += $input->readListBegin($_etype687, $_size684); + for ($_i688 = 0; $_i688 < $_size684; ++$_i688) { - $elem668 = null; - $xfer += $input->readI64($elem668); - $this->fileIds []= $elem668; + $elem689 = null; + $xfer += $input->readI64($elem689); + $this->fileIds []= $elem689; } $xfer += $input->readListEnd(); } else { @@ -22151,9 +22735,9 @@ class GetFileMetadataByExprRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter669) + foreach ($this->fileIds as $iter690) { - $xfer += $output->writeI64($iter669); + $xfer += $output->writeI64($iter690); } } $output->writeListEnd(); @@ -22247,17 +22831,17 @@ class GetFileMetadataResult { case 1: if ($ftype == TType::MAP) { $this->metadata = array(); - $_size670 = 0; - $_ktype671 = 0; - $_vtype672 = 0; - $xfer += $input->readMapBegin($_ktype671, $_vtype672, $_size670); - for ($_i674 = 0; $_i674 < $_size670; ++$_i674) + $_size691 = 0; + $_ktype692 = 0; + $_vtype693 = 0; + $xfer += $input->readMapBegin($_ktype692, $_vtype693, $_size691); + for ($_i695 = 0; $_i695 < $_size691; ++$_i695) { - $key675 = 0; - $val676 = ''; - $xfer += $input->readI64($key675); - $xfer += $input->readString($val676); - $this->metadata[$key675] = $val676; + $key696 = 0; + $val697 = ''; + $xfer += $input->readI64($key696); + $xfer += $input->readString($val697); + $this->metadata[$key696] = $val697; } $xfer += $input->readMapEnd(); } else { @@ -22292,10 +22876,10 @@ class GetFileMetadataResult { { $output->writeMapBegin(TType::I64, TType::STRING, count($this->metadata)); { - foreach ($this->metadata as $kiter677 => $viter678) + foreach ($this->metadata as $kiter698 => $viter699) { - $xfer += $output->writeI64($kiter677); - $xfer += $output->writeString($viter678); + $xfer += $output->writeI64($kiter698); + $xfer += $output->writeString($viter699); } } $output->writeMapEnd(); @@ -22364,14 +22948,14 @@ class GetFileMetadataRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size679 = 0; - $_etype682 = 0; - $xfer += $input->readListBegin($_etype682, $_size679); - for ($_i683 = 0; $_i683 < $_size679; ++$_i683) + $_size700 = 0; + $_etype703 = 0; + $xfer += $input->readListBegin($_etype703, $_size700); + for ($_i704 = 0; $_i704 < $_size700; ++$_i704) { - $elem684 = null; - $xfer += $input->readI64($elem684); - $this->fileIds []= $elem684; + $elem705 = null; + $xfer += $input->readI64($elem705); + $this->fileIds []= $elem705; } $xfer += $input->readListEnd(); } else { @@ -22399,9 +22983,9 @@ class GetFileMetadataRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter685) + foreach ($this->fileIds as $iter706) { - $xfer += $output->writeI64($iter685); + $xfer += $output->writeI64($iter706); } } $output->writeListEnd(); @@ -22541,14 +23125,14 @@ class PutFileMetadataRequest { 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 { @@ -22558,14 +23142,14 @@ class PutFileMetadataRequest { case 2: if ($ftype == TType::LST) { $this->metadata = array(); - $_size692 = 0; - $_etype695 = 0; - $xfer += $input->readListBegin($_etype695, $_size692); - for ($_i696 = 0; $_i696 < $_size692; ++$_i696) + $_size713 = 0; + $_etype716 = 0; + $xfer += $input->readListBegin($_etype716, $_size713); + for ($_i717 = 0; $_i717 < $_size713; ++$_i717) { - $elem697 = null; - $xfer += $input->readString($elem697); - $this->metadata []= $elem697; + $elem718 = null; + $xfer += $input->readString($elem718); + $this->metadata []= $elem718; } $xfer += $input->readListEnd(); } else { @@ -22600,9 +23184,9 @@ class PutFileMetadataRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter698) + foreach ($this->fileIds as $iter719) { - $xfer += $output->writeI64($iter698); + $xfer += $output->writeI64($iter719); } } $output->writeListEnd(); @@ -22617,9 +23201,9 @@ class PutFileMetadataRequest { { $output->writeListBegin(TType::STRING, count($this->metadata)); { - foreach ($this->metadata as $iter699) + foreach ($this->metadata as $iter720) { - $xfer += $output->writeString($iter699); + $xfer += $output->writeString($iter720); } } $output->writeListEnd(); @@ -22738,14 +23322,14 @@ class ClearFileMetadataRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size700 = 0; - $_etype703 = 0; - $xfer += $input->readListBegin($_etype703, $_size700); - for ($_i704 = 0; $_i704 < $_size700; ++$_i704) + $_size721 = 0; + $_etype724 = 0; + $xfer += $input->readListBegin($_etype724, $_size721); + for ($_i725 = 0; $_i725 < $_size721; ++$_i725) { - $elem705 = null; - $xfer += $input->readI64($elem705); - $this->fileIds []= $elem705; + $elem726 = null; + $xfer += $input->readI64($elem726); + $this->fileIds []= $elem726; } $xfer += $input->readListEnd(); } else { @@ -22773,9 +23357,9 @@ class ClearFileMetadataRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter706) + foreach ($this->fileIds as $iter727) { - $xfer += $output->writeI64($iter706); + $xfer += $output->writeI64($iter727); } } $output->writeListEnd(); @@ -23059,15 +23643,15 @@ class GetAllFunctionsResponse { case 1: if ($ftype == TType::LST) { $this->functions = 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; - $elem712 = new \metastore\Function(); - $xfer += $elem712->read($input); - $this->functions []= $elem712; + $elem733 = null; + $elem733 = new \metastore\Function(); + $xfer += $elem733->read($input); + $this->functions []= $elem733; } $xfer += $input->readListEnd(); } else { @@ -23095,9 +23679,9 @@ class GetAllFunctionsResponse { { $output->writeListBegin(TType::STRUCT, count($this->functions)); { - foreach ($this->functions as $iter713) + foreach ($this->functions as $iter734) { - $xfer += $iter713->write($output); + $xfer += $iter734->write($output); } } $output->writeListEnd(); @@ -23161,14 +23745,14 @@ class ClientCapabilities { case 1: if ($ftype == TType::LST) { $this->values = 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; - $xfer += $input->readI32($elem719); - $this->values []= $elem719; + $elem740 = null; + $xfer += $input->readI32($elem740); + $this->values []= $elem740; } $xfer += $input->readListEnd(); } else { @@ -23196,9 +23780,9 @@ class ClientCapabilities { { $output->writeListBegin(TType::I32, count($this->values)); { - foreach ($this->values as $iter720) + foreach ($this->values as $iter741) { - $xfer += $output->writeI32($iter720); + $xfer += $output->writeI32($iter741); } } $output->writeListEnd(); @@ -23532,14 +24116,14 @@ class GetTablesRequest { case 2: if ($ftype == TType::LST) { $this->tblNames = 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->readString($elem726); - $this->tblNames []= $elem726; + $elem747 = null; + $xfer += $input->readString($elem747); + $this->tblNames []= $elem747; } $xfer += $input->readListEnd(); } else { @@ -23587,9 +24171,9 @@ class GetTablesRequest { { $output->writeListBegin(TType::STRING, count($this->tblNames)); { - foreach ($this->tblNames as $iter727) + foreach ($this->tblNames as $iter748) { - $xfer += $output->writeString($iter727); + $xfer += $output->writeString($iter748); } } $output->writeListEnd(); @@ -23667,15 +24251,15 @@ class GetTablesResult { case 1: if ($ftype == TType::LST) { $this->tables = 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; - $elem733 = new \metastore\Table(); - $xfer += $elem733->read($input); - $this->tables []= $elem733; + $elem754 = null; + $elem754 = new \metastore\Table(); + $xfer += $elem754->read($input); + $this->tables []= $elem754; } $xfer += $input->readListEnd(); } else { @@ -23703,9 +24287,9 @@ class GetTablesResult { { $output->writeListBegin(TType::STRUCT, count($this->tables)); { - foreach ($this->tables as $iter734) + foreach ($this->tables as $iter755) { - $xfer += $iter734->write($output); + $xfer += $iter755->write($output); } } $output->writeListEnd(); @@ -24117,17 +24701,17 @@ class Materialization { case 1: if ($ftype == TType::SET) { $this->tablesUsed = array(); - $_size735 = 0; - $_etype738 = 0; - $xfer += $input->readSetBegin($_etype738, $_size735); - for ($_i739 = 0; $_i739 < $_size735; ++$_i739) + $_size756 = 0; + $_etype759 = 0; + $xfer += $input->readSetBegin($_etype759, $_size756); + for ($_i760 = 0; $_i760 < $_size756; ++$_i760) { - $elem740 = null; - $xfer += $input->readString($elem740); - if (is_scalar($elem740)) { - $this->tablesUsed[$elem740] = true; + $elem761 = null; + $xfer += $input->readString($elem761); + if (is_scalar($elem761)) { + $this->tablesUsed[$elem761] = true; } else { - $this->tablesUsed []= $elem740; + $this->tablesUsed []= $elem761; } } $xfer += $input->readSetEnd(); @@ -24177,12 +24761,12 @@ class Materialization { { $output->writeSetBegin(TType::STRING, count($this->tablesUsed)); { - foreach ($this->tablesUsed as $iter741 => $iter742) + foreach ($this->tablesUsed as $iter762 => $iter763) { - if (is_scalar($iter742)) { - $xfer += $output->writeString($iter741); + if (is_scalar($iter763)) { + $xfer += $output->writeString($iter762); } else { - $xfer += $output->writeString($iter742); + $xfer += $output->writeString($iter763); } } } @@ -25454,15 +26038,15 @@ class WMFullResourcePlan { case 2: if ($ftype == TType::LST) { $this->pools = array(); - $_size743 = 0; - $_etype746 = 0; - $xfer += $input->readListBegin($_etype746, $_size743); - for ($_i747 = 0; $_i747 < $_size743; ++$_i747) + $_size764 = 0; + $_etype767 = 0; + $xfer += $input->readListBegin($_etype767, $_size764); + for ($_i768 = 0; $_i768 < $_size764; ++$_i768) { - $elem748 = null; - $elem748 = new \metastore\WMPool(); - $xfer += $elem748->read($input); - $this->pools []= $elem748; + $elem769 = null; + $elem769 = new \metastore\WMPool(); + $xfer += $elem769->read($input); + $this->pools []= $elem769; } $xfer += $input->readListEnd(); } else { @@ -25472,15 +26056,15 @@ class WMFullResourcePlan { case 3: if ($ftype == TType::LST) { $this->mappings = array(); - $_size749 = 0; - $_etype752 = 0; - $xfer += $input->readListBegin($_etype752, $_size749); - for ($_i753 = 0; $_i753 < $_size749; ++$_i753) + $_size770 = 0; + $_etype773 = 0; + $xfer += $input->readListBegin($_etype773, $_size770); + for ($_i774 = 0; $_i774 < $_size770; ++$_i774) { - $elem754 = null; - $elem754 = new \metastore\WMMapping(); - $xfer += $elem754->read($input); - $this->mappings []= $elem754; + $elem775 = null; + $elem775 = new \metastore\WMMapping(); + $xfer += $elem775->read($input); + $this->mappings []= $elem775; } $xfer += $input->readListEnd(); } else { @@ -25490,15 +26074,15 @@ class WMFullResourcePlan { case 4: if ($ftype == TType::LST) { $this->triggers = array(); - $_size755 = 0; - $_etype758 = 0; - $xfer += $input->readListBegin($_etype758, $_size755); - for ($_i759 = 0; $_i759 < $_size755; ++$_i759) + $_size776 = 0; + $_etype779 = 0; + $xfer += $input->readListBegin($_etype779, $_size776); + for ($_i780 = 0; $_i780 < $_size776; ++$_i780) { - $elem760 = null; - $elem760 = new \metastore\WMTrigger(); - $xfer += $elem760->read($input); - $this->triggers []= $elem760; + $elem781 = null; + $elem781 = new \metastore\WMTrigger(); + $xfer += $elem781->read($input); + $this->triggers []= $elem781; } $xfer += $input->readListEnd(); } else { @@ -25508,15 +26092,15 @@ class WMFullResourcePlan { case 5: if ($ftype == TType::LST) { $this->poolTriggers = array(); - $_size761 = 0; - $_etype764 = 0; - $xfer += $input->readListBegin($_etype764, $_size761); - for ($_i765 = 0; $_i765 < $_size761; ++$_i765) + $_size782 = 0; + $_etype785 = 0; + $xfer += $input->readListBegin($_etype785, $_size782); + for ($_i786 = 0; $_i786 < $_size782; ++$_i786) { - $elem766 = null; - $elem766 = new \metastore\WMPoolTrigger(); - $xfer += $elem766->read($input); - $this->poolTriggers []= $elem766; + $elem787 = null; + $elem787 = new \metastore\WMPoolTrigger(); + $xfer += $elem787->read($input); + $this->poolTriggers []= $elem787; } $xfer += $input->readListEnd(); } else { @@ -25552,9 +26136,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->pools)); { - foreach ($this->pools as $iter767) + foreach ($this->pools as $iter788) { - $xfer += $iter767->write($output); + $xfer += $iter788->write($output); } } $output->writeListEnd(); @@ -25569,9 +26153,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->mappings)); { - foreach ($this->mappings as $iter768) + foreach ($this->mappings as $iter789) { - $xfer += $iter768->write($output); + $xfer += $iter789->write($output); } } $output->writeListEnd(); @@ -25586,9 +26170,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->triggers)); { - foreach ($this->triggers as $iter769) + foreach ($this->triggers as $iter790) { - $xfer += $iter769->write($output); + $xfer += $iter790->write($output); } } $output->writeListEnd(); @@ -25603,9 +26187,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->poolTriggers)); { - foreach ($this->poolTriggers as $iter770) + foreach ($this->poolTriggers as $iter791) { - $xfer += $iter770->write($output); + $xfer += $iter791->write($output); } } $output->writeListEnd(); @@ -26158,15 +26742,15 @@ class WMGetAllResourcePlanResponse { case 1: if ($ftype == TType::LST) { $this->resourcePlans = array(); - $_size771 = 0; - $_etype774 = 0; - $xfer += $input->readListBegin($_etype774, $_size771); - for ($_i775 = 0; $_i775 < $_size771; ++$_i775) + $_size792 = 0; + $_etype795 = 0; + $xfer += $input->readListBegin($_etype795, $_size792); + for ($_i796 = 0; $_i796 < $_size792; ++$_i796) { - $elem776 = null; - $elem776 = new \metastore\WMResourcePlan(); - $xfer += $elem776->read($input); - $this->resourcePlans []= $elem776; + $elem797 = null; + $elem797 = new \metastore\WMResourcePlan(); + $xfer += $elem797->read($input); + $this->resourcePlans []= $elem797; } $xfer += $input->readListEnd(); } else { @@ -26194,9 +26778,9 @@ class WMGetAllResourcePlanResponse { { $output->writeListBegin(TType::STRUCT, count($this->resourcePlans)); { - foreach ($this->resourcePlans as $iter777) + foreach ($this->resourcePlans as $iter798) { - $xfer += $iter777->write($output); + $xfer += $iter798->write($output); } } $output->writeListEnd(); @@ -26602,14 +27186,14 @@ class WMValidateResourcePlanResponse { case 1: if ($ftype == TType::LST) { $this->errors = 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; - $xfer += $input->readString($elem783); - $this->errors []= $elem783; + $elem804 = null; + $xfer += $input->readString($elem804); + $this->errors []= $elem804; } $xfer += $input->readListEnd(); } else { @@ -26619,14 +27203,14 @@ class WMValidateResourcePlanResponse { case 2: if ($ftype == TType::LST) { $this->warnings = array(); - $_size784 = 0; - $_etype787 = 0; - $xfer += $input->readListBegin($_etype787, $_size784); - for ($_i788 = 0; $_i788 < $_size784; ++$_i788) + $_size805 = 0; + $_etype808 = 0; + $xfer += $input->readListBegin($_etype808, $_size805); + for ($_i809 = 0; $_i809 < $_size805; ++$_i809) { - $elem789 = null; - $xfer += $input->readString($elem789); - $this->warnings []= $elem789; + $elem810 = null; + $xfer += $input->readString($elem810); + $this->warnings []= $elem810; } $xfer += $input->readListEnd(); } else { @@ -26654,9 +27238,9 @@ class WMValidateResourcePlanResponse { { $output->writeListBegin(TType::STRING, count($this->errors)); { - foreach ($this->errors as $iter790) + foreach ($this->errors as $iter811) { - $xfer += $output->writeString($iter790); + $xfer += $output->writeString($iter811); } } $output->writeListEnd(); @@ -26671,9 +27255,9 @@ class WMValidateResourcePlanResponse { { $output->writeListBegin(TType::STRING, count($this->warnings)); { - foreach ($this->warnings as $iter791) + foreach ($this->warnings as $iter812) { - $xfer += $output->writeString($iter791); + $xfer += $output->writeString($iter812); } } $output->writeListEnd(); @@ -27346,15 +27930,15 @@ class WMGetTriggersForResourePlanResponse { case 1: if ($ftype == TType::LST) { $this->triggers = array(); - $_size792 = 0; - $_etype795 = 0; - $xfer += $input->readListBegin($_etype795, $_size792); - for ($_i796 = 0; $_i796 < $_size792; ++$_i796) + $_size813 = 0; + $_etype816 = 0; + $xfer += $input->readListBegin($_etype816, $_size813); + for ($_i817 = 0; $_i817 < $_size813; ++$_i817) { - $elem797 = null; - $elem797 = new \metastore\WMTrigger(); - $xfer += $elem797->read($input); - $this->triggers []= $elem797; + $elem818 = null; + $elem818 = new \metastore\WMTrigger(); + $xfer += $elem818->read($input); + $this->triggers []= $elem818; } $xfer += $input->readListEnd(); } else { @@ -27382,9 +27966,9 @@ class WMGetTriggersForResourePlanResponse { { $output->writeListBegin(TType::STRUCT, count($this->triggers)); { - foreach ($this->triggers as $iter798) + foreach ($this->triggers as $iter819) { - $xfer += $iter798->write($output); + $xfer += $iter819->write($output); } } $output->writeListEnd(); @@ -28968,15 +29552,15 @@ class SchemaVersion { case 4: if ($ftype == TType::LST) { $this->cols = 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\FieldSchema(); - $xfer += $elem804->read($input); - $this->cols []= $elem804; + $elem825 = null; + $elem825 = new \metastore\FieldSchema(); + $xfer += $elem825->read($input); + $this->cols []= $elem825; } $xfer += $input->readListEnd(); } else { @@ -29065,9 +29649,9 @@ class SchemaVersion { { $output->writeListBegin(TType::STRUCT, count($this->cols)); { - foreach ($this->cols as $iter805) + foreach ($this->cols as $iter826) { - $xfer += $iter805->write($output); + $xfer += $iter826->write($output); } } $output->writeListEnd(); @@ -29389,15 +29973,15 @@ class FindSchemasByColsResp { case 1: if ($ftype == TType::LST) { $this->schemaVersions = 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\SchemaVersionDescriptor(); - $xfer += $elem811->read($input); - $this->schemaVersions []= $elem811; + $elem832 = null; + $elem832 = new \metastore\SchemaVersionDescriptor(); + $xfer += $elem832->read($input); + $this->schemaVersions []= $elem832; } $xfer += $input->readListEnd(); } else { @@ -29425,9 +30009,9 @@ class FindSchemasByColsResp { { $output->writeListBegin(TType::STRUCT, count($this->schemaVersions)); { - foreach ($this->schemaVersions as $iter812) + foreach ($this->schemaVersions as $iter833) { - $xfer += $iter812->write($output); + $xfer += $iter833->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 a231e9c193..5ec0deab10 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 @@ -186,6 +186,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)') @@ -1269,6 +1270,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 d94951bd06..ac3f34b3eb 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 @@ -1286,6 +1286,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: @@ -7422,6 +7429,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: @@ -9043,6 +9081,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 @@ -13091,6 +13130,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) @@ -15631,10 +15689,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype812, _size809) = iprot.readListBegin() - for _i813 in xrange(_size809): - _elem814 = iprot.readString() - self.success.append(_elem814) + (_etype833, _size830) = iprot.readListBegin() + for _i834 in xrange(_size830): + _elem835 = iprot.readString() + self.success.append(_elem835) iprot.readListEnd() else: iprot.skip(ftype) @@ -15657,8 +15715,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 iter815 in self.success: - oprot.writeString(iter815) + for iter836 in self.success: + oprot.writeString(iter836) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -15763,10 +15821,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) @@ -15789,8 +15847,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: @@ -16560,12 +16618,12 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype824, _vtype825, _size823 ) = iprot.readMapBegin() - for _i827 in xrange(_size823): - _key828 = iprot.readString() - _val829 = Type() - _val829.read(iprot) - self.success[_key828] = _val829 + (_ktype845, _vtype846, _size844 ) = iprot.readMapBegin() + for _i848 in xrange(_size844): + _key849 = iprot.readString() + _val850 = Type() + _val850.read(iprot) + self.success[_key849] = _val850 iprot.readMapEnd() else: iprot.skip(ftype) @@ -16588,9 +16646,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 kiter830,viter831 in self.success.items(): - oprot.writeString(kiter830) - viter831.write(oprot) + for kiter851,viter852 in self.success.items(): + oprot.writeString(kiter851) + viter852.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -16733,11 +16791,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype835, _size832) = iprot.readListBegin() - for _i836 in xrange(_size832): - _elem837 = FieldSchema() - _elem837.read(iprot) - self.success.append(_elem837) + (_etype856, _size853) = iprot.readListBegin() + for _i857 in xrange(_size853): + _elem858 = FieldSchema() + _elem858.read(iprot) + self.success.append(_elem858) iprot.readListEnd() else: iprot.skip(ftype) @@ -16772,8 +16830,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 iter838 in self.success: - iter838.write(oprot) + for iter859 in self.success: + iter859.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -16940,11 +16998,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) @@ -16979,8 +17037,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: @@ -17133,11 +17191,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) @@ -17172,8 +17230,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: @@ -17340,11 +17398,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) @@ -17379,8 +17437,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: @@ -17833,66 +17891,66 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.primaryKeys = [] - (_etype863, _size860) = iprot.readListBegin() - for _i864 in xrange(_size860): - _elem865 = SQLPrimaryKey() - _elem865.read(iprot) - self.primaryKeys.append(_elem865) + (_etype884, _size881) = iprot.readListBegin() + for _i885 in xrange(_size881): + _elem886 = SQLPrimaryKey() + _elem886.read(iprot) + self.primaryKeys.append(_elem886) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.foreignKeys = [] - (_etype869, _size866) = iprot.readListBegin() - for _i870 in xrange(_size866): - _elem871 = SQLForeignKey() - _elem871.read(iprot) - self.foreignKeys.append(_elem871) + (_etype890, _size887) = iprot.readListBegin() + for _i891 in xrange(_size887): + _elem892 = SQLForeignKey() + _elem892.read(iprot) + self.foreignKeys.append(_elem892) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.uniqueConstraints = [] - (_etype875, _size872) = iprot.readListBegin() - for _i876 in xrange(_size872): - _elem877 = SQLUniqueConstraint() - _elem877.read(iprot) - self.uniqueConstraints.append(_elem877) + (_etype896, _size893) = iprot.readListBegin() + for _i897 in xrange(_size893): + _elem898 = SQLUniqueConstraint() + _elem898.read(iprot) + self.uniqueConstraints.append(_elem898) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.LIST: self.notNullConstraints = [] - (_etype881, _size878) = iprot.readListBegin() - for _i882 in xrange(_size878): - _elem883 = SQLNotNullConstraint() - _elem883.read(iprot) - self.notNullConstraints.append(_elem883) + (_etype902, _size899) = iprot.readListBegin() + for _i903 in xrange(_size899): + _elem904 = SQLNotNullConstraint() + _elem904.read(iprot) + self.notNullConstraints.append(_elem904) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.LIST: self.defaultConstraints = [] - (_etype887, _size884) = iprot.readListBegin() - for _i888 in xrange(_size884): - _elem889 = SQLDefaultConstraint() - _elem889.read(iprot) - self.defaultConstraints.append(_elem889) + (_etype908, _size905) = iprot.readListBegin() + for _i909 in xrange(_size905): + _elem910 = SQLDefaultConstraint() + _elem910.read(iprot) + self.defaultConstraints.append(_elem910) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.LIST: self.checkConstraints = [] - (_etype893, _size890) = iprot.readListBegin() - for _i894 in xrange(_size890): - _elem895 = SQLCheckConstraint() - _elem895.read(iprot) - self.checkConstraints.append(_elem895) + (_etype914, _size911) = iprot.readListBegin() + for _i915 in xrange(_size911): + _elem916 = SQLCheckConstraint() + _elem916.read(iprot) + self.checkConstraints.append(_elem916) iprot.readListEnd() else: iprot.skip(ftype) @@ -17913,43 +17971,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 iter896 in self.primaryKeys: - iter896.write(oprot) + for iter917 in self.primaryKeys: + iter917.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 iter897 in self.foreignKeys: - iter897.write(oprot) + for iter918 in self.foreignKeys: + iter918.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 iter898 in self.uniqueConstraints: - iter898.write(oprot) + for iter919 in self.uniqueConstraints: + iter919.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 iter899 in self.notNullConstraints: - iter899.write(oprot) + for iter920 in self.notNullConstraints: + iter920.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 iter900 in self.defaultConstraints: - iter900.write(oprot) + for iter921 in self.defaultConstraints: + iter921.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 iter901 in self.checkConstraints: - iter901.write(oprot) + for iter922 in self.checkConstraints: + iter922.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -19509,10 +19567,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.partNames = [] - (_etype905, _size902) = iprot.readListBegin() - for _i906 in xrange(_size902): - _elem907 = iprot.readString() - self.partNames.append(_elem907) + (_etype926, _size923) = iprot.readListBegin() + for _i927 in xrange(_size923): + _elem928 = iprot.readString() + self.partNames.append(_elem928) iprot.readListEnd() else: iprot.skip(ftype) @@ -19537,8 +19595,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 iter908 in self.partNames: - oprot.writeString(iter908) + for iter929 in self.partNames: + oprot.writeString(iter929) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -19738,10 +19796,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype912, _size909) = iprot.readListBegin() - for _i913 in xrange(_size909): - _elem914 = iprot.readString() - self.success.append(_elem914) + (_etype933, _size930) = iprot.readListBegin() + for _i934 in xrange(_size930): + _elem935 = iprot.readString() + self.success.append(_elem935) iprot.readListEnd() else: iprot.skip(ftype) @@ -19764,8 +19822,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 iter915 in self.success: - oprot.writeString(iter915) + for iter936 in self.success: + oprot.writeString(iter936) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -19915,10 +19973,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) @@ -19941,8 +19999,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: @@ -20066,10 +20124,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) @@ -20092,8 +20150,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: @@ -20166,10 +20224,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.tbl_types = [] - (_etype933, _size930) = iprot.readListBegin() - for _i934 in xrange(_size930): - _elem935 = iprot.readString() - self.tbl_types.append(_elem935) + (_etype954, _size951) = iprot.readListBegin() + for _i955 in xrange(_size951): + _elem956 = iprot.readString() + self.tbl_types.append(_elem956) iprot.readListEnd() else: iprot.skip(ftype) @@ -20194,8 +20252,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 iter936 in self.tbl_types: - oprot.writeString(iter936) + for iter957 in self.tbl_types: + oprot.writeString(iter957) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20251,11 +20309,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype940, _size937) = iprot.readListBegin() - for _i941 in xrange(_size937): - _elem942 = TableMeta() - _elem942.read(iprot) - self.success.append(_elem942) + (_etype961, _size958) = iprot.readListBegin() + for _i962 in xrange(_size958): + _elem963 = TableMeta() + _elem963.read(iprot) + self.success.append(_elem963) iprot.readListEnd() else: iprot.skip(ftype) @@ -20278,8 +20336,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 iter943 in self.success: - iter943.write(oprot) + for iter964 in self.success: + iter964.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -20403,10 +20461,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype947, _size944) = iprot.readListBegin() - for _i948 in xrange(_size944): - _elem949 = iprot.readString() - self.success.append(_elem949) + (_etype968, _size965) = iprot.readListBegin() + for _i969 in xrange(_size965): + _elem970 = iprot.readString() + self.success.append(_elem970) iprot.readListEnd() else: iprot.skip(ftype) @@ -20429,8 +20487,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 iter950 in self.success: - oprot.writeString(iter950) + for iter971 in self.success: + oprot.writeString(iter971) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -20666,10 +20724,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.tbl_names = [] - (_etype954, _size951) = iprot.readListBegin() - for _i955 in xrange(_size951): - _elem956 = iprot.readString() - self.tbl_names.append(_elem956) + (_etype975, _size972) = iprot.readListBegin() + for _i976 in xrange(_size972): + _elem977 = iprot.readString() + self.tbl_names.append(_elem977) iprot.readListEnd() else: iprot.skip(ftype) @@ -20690,8 +20748,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 iter957 in self.tbl_names: - oprot.writeString(iter957) + for iter978 in self.tbl_names: + oprot.writeString(iter978) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20743,11 +20801,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype961, _size958) = iprot.readListBegin() - for _i962 in xrange(_size958): - _elem963 = Table() - _elem963.read(iprot) - self.success.append(_elem963) + (_etype982, _size979) = iprot.readListBegin() + for _i983 in xrange(_size979): + _elem984 = Table() + _elem984.read(iprot) + self.success.append(_elem984) iprot.readListEnd() else: iprot.skip(ftype) @@ -20764,8 +20822,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 iter964 in self.success: - iter964.write(oprot) + for iter985 in self.success: + iter985.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21157,10 +21215,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.tbl_names = [] - (_etype968, _size965) = iprot.readListBegin() - for _i969 in xrange(_size965): - _elem970 = iprot.readString() - self.tbl_names.append(_elem970) + (_etype989, _size986) = iprot.readListBegin() + for _i990 in xrange(_size986): + _elem991 = iprot.readString() + self.tbl_names.append(_elem991) iprot.readListEnd() else: iprot.skip(ftype) @@ -21181,8 +21239,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 iter971 in self.tbl_names: - oprot.writeString(iter971) + for iter992 in self.tbl_names: + oprot.writeString(iter992) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21243,12 +21301,12 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype973, _vtype974, _size972 ) = iprot.readMapBegin() - for _i976 in xrange(_size972): - _key977 = iprot.readString() - _val978 = Materialization() - _val978.read(iprot) - self.success[_key977] = _val978 + (_ktype994, _vtype995, _size993 ) = iprot.readMapBegin() + for _i997 in xrange(_size993): + _key998 = iprot.readString() + _val999 = Materialization() + _val999.read(iprot) + self.success[_key998] = _val999 iprot.readMapEnd() else: iprot.skip(ftype) @@ -21283,9 +21341,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 kiter979,viter980 in self.success.items(): - oprot.writeString(kiter979) - viter980.write(oprot) + for kiter1000,viter1001 in self.success.items(): + oprot.writeString(kiter1000) + viter1001.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21650,10 +21708,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype984, _size981) = iprot.readListBegin() - for _i985 in xrange(_size981): - _elem986 = iprot.readString() - self.success.append(_elem986) + (_etype1005, _size1002) = iprot.readListBegin() + for _i1006 in xrange(_size1002): + _elem1007 = iprot.readString() + self.success.append(_elem1007) iprot.readListEnd() else: iprot.skip(ftype) @@ -21688,8 +21746,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 iter987 in self.success: - oprot.writeString(iter987) + for iter1008 in self.success: + oprot.writeString(iter1008) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -22659,11 +22717,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.new_parts = [] - (_etype991, _size988) = iprot.readListBegin() - for _i992 in xrange(_size988): - _elem993 = Partition() - _elem993.read(iprot) - self.new_parts.append(_elem993) + (_etype1012, _size1009) = iprot.readListBegin() + for _i1013 in xrange(_size1009): + _elem1014 = Partition() + _elem1014.read(iprot) + self.new_parts.append(_elem1014) iprot.readListEnd() else: iprot.skip(ftype) @@ -22680,8 +22738,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 iter994 in self.new_parts: - iter994.write(oprot) + for iter1015 in self.new_parts: + iter1015.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -22839,11 +22897,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 = PartitionSpec() - _elem1000.read(iprot) - self.new_parts.append(_elem1000) + (_etype1019, _size1016) = iprot.readListBegin() + for _i1020 in xrange(_size1016): + _elem1021 = PartitionSpec() + _elem1021.read(iprot) + self.new_parts.append(_elem1021) iprot.readListEnd() else: iprot.skip(ftype) @@ -22860,8 +22918,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() @@ -23035,10 +23093,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1005, _size1002) = iprot.readListBegin() - for _i1006 in xrange(_size1002): - _elem1007 = iprot.readString() - self.part_vals.append(_elem1007) + (_etype1026, _size1023) = iprot.readListBegin() + for _i1027 in xrange(_size1023): + _elem1028 = iprot.readString() + self.part_vals.append(_elem1028) iprot.readListEnd() else: iprot.skip(ftype) @@ -23063,8 +23121,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 iter1008 in self.part_vals: - oprot.writeString(iter1008) + for iter1029 in self.part_vals: + oprot.writeString(iter1029) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -23417,10 +23475,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) @@ -23451,8 +23509,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() if self.environment_context is not None: @@ -24047,10 +24105,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) @@ -24080,8 +24138,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.deleteData is not None: @@ -24254,10 +24312,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) @@ -24293,8 +24351,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: @@ -25031,10 +25089,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) @@ -25059,8 +25117,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() oprot.writeFieldStop() @@ -25219,11 +25277,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partitionSpecs = {} - (_ktype1038, _vtype1039, _size1037 ) = iprot.readMapBegin() - for _i1041 in xrange(_size1037): - _key1042 = iprot.readString() - _val1043 = iprot.readString() - self.partitionSpecs[_key1042] = _val1043 + (_ktype1059, _vtype1060, _size1058 ) = iprot.readMapBegin() + for _i1062 in xrange(_size1058): + _key1063 = iprot.readString() + _val1064 = iprot.readString() + self.partitionSpecs[_key1063] = _val1064 iprot.readMapEnd() else: iprot.skip(ftype) @@ -25260,9 +25318,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 kiter1044,viter1045 in self.partitionSpecs.items(): - oprot.writeString(kiter1044) - oprot.writeString(viter1045) + for kiter1065,viter1066 in self.partitionSpecs.items(): + oprot.writeString(kiter1065) + oprot.writeString(viter1066) oprot.writeMapEnd() oprot.writeFieldEnd() if self.source_db is not None: @@ -25467,11 +25525,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partitionSpecs = {} - (_ktype1047, _vtype1048, _size1046 ) = iprot.readMapBegin() - for _i1050 in xrange(_size1046): - _key1051 = iprot.readString() - _val1052 = iprot.readString() - self.partitionSpecs[_key1051] = _val1052 + (_ktype1068, _vtype1069, _size1067 ) = iprot.readMapBegin() + for _i1071 in xrange(_size1067): + _key1072 = iprot.readString() + _val1073 = iprot.readString() + self.partitionSpecs[_key1072] = _val1073 iprot.readMapEnd() else: iprot.skip(ftype) @@ -25508,9 +25566,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 kiter1053,viter1054 in self.partitionSpecs.items(): - oprot.writeString(kiter1053) - oprot.writeString(viter1054) + for kiter1074,viter1075 in self.partitionSpecs.items(): + oprot.writeString(kiter1074) + oprot.writeString(viter1075) oprot.writeMapEnd() oprot.writeFieldEnd() if self.source_db is not None: @@ -25593,11 +25651,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1058, _size1055) = iprot.readListBegin() - for _i1059 in xrange(_size1055): - _elem1060 = Partition() - _elem1060.read(iprot) - self.success.append(_elem1060) + (_etype1079, _size1076) = iprot.readListBegin() + for _i1080 in xrange(_size1076): + _elem1081 = Partition() + _elem1081.read(iprot) + self.success.append(_elem1081) iprot.readListEnd() else: iprot.skip(ftype) @@ -25638,8 +25696,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 iter1061 in self.success: - iter1061.write(oprot) + for iter1082 in self.success: + iter1082.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -25733,10 +25791,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1065, _size1062) = iprot.readListBegin() - for _i1066 in xrange(_size1062): - _elem1067 = iprot.readString() - self.part_vals.append(_elem1067) + (_etype1086, _size1083) = iprot.readListBegin() + for _i1087 in xrange(_size1083): + _elem1088 = iprot.readString() + self.part_vals.append(_elem1088) iprot.readListEnd() else: iprot.skip(ftype) @@ -25748,10 +25806,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype1071, _size1068) = iprot.readListBegin() - for _i1072 in xrange(_size1068): - _elem1073 = iprot.readString() - self.group_names.append(_elem1073) + (_etype1092, _size1089) = iprot.readListBegin() + for _i1093 in xrange(_size1089): + _elem1094 = iprot.readString() + self.group_names.append(_elem1094) iprot.readListEnd() else: iprot.skip(ftype) @@ -25776,8 +25834,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 iter1074 in self.part_vals: - oprot.writeString(iter1074) + for iter1095 in self.part_vals: + oprot.writeString(iter1095) oprot.writeListEnd() oprot.writeFieldEnd() if self.user_name is not None: @@ -25787,8 +25845,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 iter1075 in self.group_names: - oprot.writeString(iter1075) + for iter1096 in self.group_names: + oprot.writeString(iter1096) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -26217,11 +26275,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1079, _size1076) = iprot.readListBegin() - for _i1080 in xrange(_size1076): - _elem1081 = Partition() - _elem1081.read(iprot) - self.success.append(_elem1081) + (_etype1100, _size1097) = iprot.readListBegin() + for _i1101 in xrange(_size1097): + _elem1102 = Partition() + _elem1102.read(iprot) + self.success.append(_elem1102) iprot.readListEnd() else: iprot.skip(ftype) @@ -26250,8 +26308,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 iter1082 in self.success: - iter1082.write(oprot) + for iter1103 in self.success: + iter1103.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -26345,10 +26403,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype1086, _size1083) = iprot.readListBegin() - for _i1087 in xrange(_size1083): - _elem1088 = iprot.readString() - self.group_names.append(_elem1088) + (_etype1107, _size1104) = iprot.readListBegin() + for _i1108 in xrange(_size1104): + _elem1109 = iprot.readString() + self.group_names.append(_elem1109) iprot.readListEnd() else: iprot.skip(ftype) @@ -26381,8 +26439,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 iter1089 in self.group_names: - oprot.writeString(iter1089) + for iter1110 in self.group_names: + oprot.writeString(iter1110) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -26443,11 +26501,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1093, _size1090) = iprot.readListBegin() - for _i1094 in xrange(_size1090): - _elem1095 = Partition() - _elem1095.read(iprot) - self.success.append(_elem1095) + (_etype1114, _size1111) = iprot.readListBegin() + for _i1115 in xrange(_size1111): + _elem1116 = Partition() + _elem1116.read(iprot) + self.success.append(_elem1116) iprot.readListEnd() else: iprot.skip(ftype) @@ -26476,8 +26534,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 iter1096 in self.success: - iter1096.write(oprot) + for iter1117 in self.success: + iter1117.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -26635,11 +26693,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1100, _size1097) = iprot.readListBegin() - for _i1101 in xrange(_size1097): - _elem1102 = PartitionSpec() - _elem1102.read(iprot) - self.success.append(_elem1102) + (_etype1121, _size1118) = iprot.readListBegin() + for _i1122 in xrange(_size1118): + _elem1123 = PartitionSpec() + _elem1123.read(iprot) + self.success.append(_elem1123) iprot.readListEnd() else: iprot.skip(ftype) @@ -26668,8 +26726,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: @@ -26827,10 +26885,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1107, _size1104) = iprot.readListBegin() - for _i1108 in xrange(_size1104): - _elem1109 = iprot.readString() - self.success.append(_elem1109) + (_etype1128, _size1125) = iprot.readListBegin() + for _i1129 in xrange(_size1125): + _elem1130 = iprot.readString() + self.success.append(_elem1130) iprot.readListEnd() else: iprot.skip(ftype) @@ -26859,8 +26917,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 iter1110 in self.success: - oprot.writeString(iter1110) + for iter1131 in self.success: + oprot.writeString(iter1131) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -27100,10 +27158,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1114, _size1111) = iprot.readListBegin() - for _i1115 in xrange(_size1111): - _elem1116 = iprot.readString() - self.part_vals.append(_elem1116) + (_etype1135, _size1132) = iprot.readListBegin() + for _i1136 in xrange(_size1132): + _elem1137 = iprot.readString() + self.part_vals.append(_elem1137) iprot.readListEnd() else: iprot.skip(ftype) @@ -27133,8 +27191,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 iter1117 in self.part_vals: - oprot.writeString(iter1117) + for iter1138 in self.part_vals: + oprot.writeString(iter1138) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -27198,11 +27256,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1121, _size1118) = iprot.readListBegin() - for _i1122 in xrange(_size1118): - _elem1123 = Partition() - _elem1123.read(iprot) - self.success.append(_elem1123) + (_etype1142, _size1139) = iprot.readListBegin() + for _i1143 in xrange(_size1139): + _elem1144 = Partition() + _elem1144.read(iprot) + self.success.append(_elem1144) iprot.readListEnd() else: iprot.skip(ftype) @@ -27231,8 +27289,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 iter1124 in self.success: - iter1124.write(oprot) + for iter1145 in self.success: + iter1145.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -27319,10 +27377,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1128, _size1125) = iprot.readListBegin() - for _i1129 in xrange(_size1125): - _elem1130 = iprot.readString() - self.part_vals.append(_elem1130) + (_etype1149, _size1146) = iprot.readListBegin() + for _i1150 in xrange(_size1146): + _elem1151 = iprot.readString() + self.part_vals.append(_elem1151) iprot.readListEnd() else: iprot.skip(ftype) @@ -27339,10 +27397,10 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.group_names = [] - (_etype1134, _size1131) = iprot.readListBegin() - for _i1135 in xrange(_size1131): - _elem1136 = iprot.readString() - self.group_names.append(_elem1136) + (_etype1155, _size1152) = iprot.readListBegin() + for _i1156 in xrange(_size1152): + _elem1157 = iprot.readString() + self.group_names.append(_elem1157) iprot.readListEnd() else: iprot.skip(ftype) @@ -27367,8 +27425,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 iter1137 in self.part_vals: - oprot.writeString(iter1137) + for iter1158 in self.part_vals: + oprot.writeString(iter1158) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -27382,8 +27440,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 iter1138 in self.group_names: - oprot.writeString(iter1138) + for iter1159 in self.group_names: + oprot.writeString(iter1159) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -27445,11 +27503,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1142, _size1139) = iprot.readListBegin() - for _i1143 in xrange(_size1139): - _elem1144 = Partition() - _elem1144.read(iprot) - self.success.append(_elem1144) + (_etype1163, _size1160) = iprot.readListBegin() + for _i1164 in xrange(_size1160): + _elem1165 = Partition() + _elem1165.read(iprot) + self.success.append(_elem1165) iprot.readListEnd() else: iprot.skip(ftype) @@ -27478,8 +27536,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 iter1145 in self.success: - iter1145.write(oprot) + for iter1166 in self.success: + iter1166.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -27560,10 +27618,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1149, _size1146) = iprot.readListBegin() - for _i1150 in xrange(_size1146): - _elem1151 = iprot.readString() - self.part_vals.append(_elem1151) + (_etype1170, _size1167) = iprot.readListBegin() + for _i1171 in xrange(_size1167): + _elem1172 = iprot.readString() + self.part_vals.append(_elem1172) iprot.readListEnd() else: iprot.skip(ftype) @@ -27593,8 +27651,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 iter1152 in self.part_vals: - oprot.writeString(iter1152) + for iter1173 in self.part_vals: + oprot.writeString(iter1173) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -27658,10 +27716,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1156, _size1153) = iprot.readListBegin() - for _i1157 in xrange(_size1153): - _elem1158 = iprot.readString() - self.success.append(_elem1158) + (_etype1177, _size1174) = iprot.readListBegin() + for _i1178 in xrange(_size1174): + _elem1179 = iprot.readString() + self.success.append(_elem1179) iprot.readListEnd() else: iprot.skip(ftype) @@ -27690,8 +27748,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 iter1159 in self.success: - oprot.writeString(iter1159) + for iter1180 in self.success: + oprot.writeString(iter1180) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -27862,11 +27920,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1163, _size1160) = iprot.readListBegin() - for _i1164 in xrange(_size1160): - _elem1165 = Partition() - _elem1165.read(iprot) - self.success.append(_elem1165) + (_etype1184, _size1181) = iprot.readListBegin() + for _i1185 in xrange(_size1181): + _elem1186 = Partition() + _elem1186.read(iprot) + self.success.append(_elem1186) iprot.readListEnd() else: iprot.skip(ftype) @@ -27895,8 +27953,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 iter1166 in self.success: - iter1166.write(oprot) + for iter1187 in self.success: + iter1187.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -28067,11 +28125,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1170, _size1167) = iprot.readListBegin() - for _i1171 in xrange(_size1167): - _elem1172 = PartitionSpec() - _elem1172.read(iprot) - self.success.append(_elem1172) + (_etype1191, _size1188) = iprot.readListBegin() + for _i1192 in xrange(_size1188): + _elem1193 = PartitionSpec() + _elem1193.read(iprot) + self.success.append(_elem1193) iprot.readListEnd() else: iprot.skip(ftype) @@ -28100,8 +28158,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: @@ -28521,10 +28579,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.names = [] - (_etype1177, _size1174) = iprot.readListBegin() - for _i1178 in xrange(_size1174): - _elem1179 = iprot.readString() - self.names.append(_elem1179) + (_etype1198, _size1195) = iprot.readListBegin() + for _i1199 in xrange(_size1195): + _elem1200 = iprot.readString() + self.names.append(_elem1200) iprot.readListEnd() else: iprot.skip(ftype) @@ -28549,8 +28607,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 iter1180 in self.names: - oprot.writeString(iter1180) + for iter1201 in self.names: + oprot.writeString(iter1201) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -28609,11 +28667,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1184, _size1181) = iprot.readListBegin() - for _i1185 in xrange(_size1181): - _elem1186 = Partition() - _elem1186.read(iprot) - self.success.append(_elem1186) + (_etype1205, _size1202) = iprot.readListBegin() + for _i1206 in xrange(_size1202): + _elem1207 = Partition() + _elem1207.read(iprot) + self.success.append(_elem1207) iprot.readListEnd() else: iprot.skip(ftype) @@ -28642,8 +28700,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 iter1187 in self.success: - iter1187.write(oprot) + for iter1208 in self.success: + iter1208.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -28893,11 +28951,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.new_parts = [] - (_etype1191, _size1188) = iprot.readListBegin() - for _i1192 in xrange(_size1188): - _elem1193 = Partition() - _elem1193.read(iprot) - self.new_parts.append(_elem1193) + (_etype1212, _size1209) = iprot.readListBegin() + for _i1213 in xrange(_size1209): + _elem1214 = Partition() + _elem1214.read(iprot) + self.new_parts.append(_elem1214) iprot.readListEnd() else: iprot.skip(ftype) @@ -28922,8 +28980,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 iter1194 in self.new_parts: - iter1194.write(oprot) + for iter1215 in self.new_parts: + iter1215.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -29076,11 +29134,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) @@ -29111,8 +29169,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() if self.environment_context is not None: @@ -29456,10 +29514,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1205, _size1202) = iprot.readListBegin() - for _i1206 in xrange(_size1202): - _elem1207 = iprot.readString() - self.part_vals.append(_elem1207) + (_etype1226, _size1223) = iprot.readListBegin() + for _i1227 in xrange(_size1223): + _elem1228 = iprot.readString() + self.part_vals.append(_elem1228) iprot.readListEnd() else: iprot.skip(ftype) @@ -29490,8 +29548,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 iter1208 in self.part_vals: - oprot.writeString(iter1208) + for iter1229 in self.part_vals: + oprot.writeString(iter1229) oprot.writeListEnd() oprot.writeFieldEnd() if self.new_part is not None: @@ -29633,10 +29691,10 @@ def read(self, iprot): if fid == 1: 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) @@ -29658,8 +29716,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 iter1215 in self.part_vals: - oprot.writeString(iter1215) + for iter1236 in self.part_vals: + oprot.writeString(iter1236) oprot.writeListEnd() oprot.writeFieldEnd() if self.throw_exception is not None: @@ -30017,10 +30075,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1219, _size1216) = iprot.readListBegin() - for _i1220 in xrange(_size1216): - _elem1221 = iprot.readString() - self.success.append(_elem1221) + (_etype1240, _size1237) = iprot.readListBegin() + for _i1241 in xrange(_size1237): + _elem1242 = iprot.readString() + self.success.append(_elem1242) iprot.readListEnd() else: iprot.skip(ftype) @@ -30043,8 +30101,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 iter1222 in self.success: - oprot.writeString(iter1222) + for iter1243 in self.success: + oprot.writeString(iter1243) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -30168,11 +30226,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype1224, _vtype1225, _size1223 ) = iprot.readMapBegin() - for _i1227 in xrange(_size1223): - _key1228 = iprot.readString() - _val1229 = iprot.readString() - self.success[_key1228] = _val1229 + (_ktype1245, _vtype1246, _size1244 ) = iprot.readMapBegin() + for _i1248 in xrange(_size1244): + _key1249 = iprot.readString() + _val1250 = iprot.readString() + self.success[_key1249] = _val1250 iprot.readMapEnd() else: iprot.skip(ftype) @@ -30195,9 +30253,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 kiter1230,viter1231 in self.success.items(): - oprot.writeString(kiter1230) - oprot.writeString(viter1231) + for kiter1251,viter1252 in self.success.items(): + oprot.writeString(kiter1251) + oprot.writeString(viter1252) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -30273,11 +30331,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype1233, _vtype1234, _size1232 ) = iprot.readMapBegin() - for _i1236 in xrange(_size1232): - _key1237 = iprot.readString() - _val1238 = iprot.readString() - self.part_vals[_key1237] = _val1238 + (_ktype1254, _vtype1255, _size1253 ) = iprot.readMapBegin() + for _i1257 in xrange(_size1253): + _key1258 = iprot.readString() + _val1259 = iprot.readString() + self.part_vals[_key1258] = _val1259 iprot.readMapEnd() else: iprot.skip(ftype) @@ -30307,9 +30365,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 kiter1239,viter1240 in self.part_vals.items(): - oprot.writeString(kiter1239) - oprot.writeString(viter1240) + for kiter1260,viter1261 in self.part_vals.items(): + oprot.writeString(kiter1260) + oprot.writeString(viter1261) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -30523,11 +30581,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype1242, _vtype1243, _size1241 ) = iprot.readMapBegin() - for _i1245 in xrange(_size1241): - _key1246 = iprot.readString() - _val1247 = iprot.readString() - self.part_vals[_key1246] = _val1247 + (_ktype1263, _vtype1264, _size1262 ) = iprot.readMapBegin() + for _i1266 in xrange(_size1262): + _key1267 = iprot.readString() + _val1268 = iprot.readString() + self.part_vals[_key1267] = _val1268 iprot.readMapEnd() else: iprot.skip(ftype) @@ -30557,9 +30615,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 kiter1248,viter1249 in self.part_vals.items(): - oprot.writeString(kiter1248) - oprot.writeString(viter1249) + for kiter1269,viter1270 in self.part_vals.items(): + oprot.writeString(kiter1269) + oprot.writeString(viter1270) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -34211,10 +34269,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1253, _size1250) = iprot.readListBegin() - for _i1254 in xrange(_size1250): - _elem1255 = iprot.readString() - self.success.append(_elem1255) + (_etype1274, _size1271) = iprot.readListBegin() + for _i1275 in xrange(_size1271): + _elem1276 = iprot.readString() + self.success.append(_elem1276) iprot.readListEnd() else: iprot.skip(ftype) @@ -34237,8 +34295,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 iter1256 in self.success: - oprot.writeString(iter1256) + for iter1277 in self.success: + oprot.writeString(iter1277) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -34926,10 +34984,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) @@ -34952,8 +35010,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: @@ -35467,11 +35525,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1267, _size1264) = iprot.readListBegin() - for _i1268 in xrange(_size1264): - _elem1269 = Role() - _elem1269.read(iprot) - self.success.append(_elem1269) + (_etype1288, _size1285) = iprot.readListBegin() + for _i1289 in xrange(_size1285): + _elem1290 = Role() + _elem1290.read(iprot) + self.success.append(_elem1290) iprot.readListEnd() else: iprot.skip(ftype) @@ -35494,8 +35552,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 iter1270 in self.success: - iter1270.write(oprot) + for iter1291 in self.success: + iter1291.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -36004,10 +36062,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.group_names = [] - (_etype1274, _size1271) = iprot.readListBegin() - for _i1275 in xrange(_size1271): - _elem1276 = iprot.readString() - self.group_names.append(_elem1276) + (_etype1295, _size1292) = iprot.readListBegin() + for _i1296 in xrange(_size1292): + _elem1297 = iprot.readString() + self.group_names.append(_elem1297) iprot.readListEnd() else: iprot.skip(ftype) @@ -36032,8 +36090,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 iter1277 in self.group_names: - oprot.writeString(iter1277) + for iter1298 in self.group_names: + oprot.writeString(iter1298) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -36260,11 +36318,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1281, _size1278) = iprot.readListBegin() - for _i1282 in xrange(_size1278): - _elem1283 = HiveObjectPrivilege() - _elem1283.read(iprot) - self.success.append(_elem1283) + (_etype1302, _size1299) = iprot.readListBegin() + for _i1303 in xrange(_size1299): + _elem1304 = HiveObjectPrivilege() + _elem1304.read(iprot) + self.success.append(_elem1304) iprot.readListEnd() else: iprot.skip(ftype) @@ -36287,8 +36345,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 iter1284 in self.success: - iter1284.write(oprot) + for iter1305 in self.success: + iter1305.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -36786,10 +36844,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.group_names = [] - (_etype1288, _size1285) = iprot.readListBegin() - for _i1289 in xrange(_size1285): - _elem1290 = iprot.readString() - self.group_names.append(_elem1290) + (_etype1309, _size1306) = iprot.readListBegin() + for _i1310 in xrange(_size1306): + _elem1311 = iprot.readString() + self.group_names.append(_elem1311) iprot.readListEnd() else: iprot.skip(ftype) @@ -36810,8 +36868,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 iter1291 in self.group_names: - oprot.writeString(iter1291) + for iter1312 in self.group_names: + oprot.writeString(iter1312) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -36866,10 +36924,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1295, _size1292) = iprot.readListBegin() - for _i1296 in xrange(_size1292): - _elem1297 = iprot.readString() - self.success.append(_elem1297) + (_etype1316, _size1313) = iprot.readListBegin() + for _i1317 in xrange(_size1313): + _elem1318 = iprot.readString() + self.success.append(_elem1318) iprot.readListEnd() else: iprot.skip(ftype) @@ -36892,8 +36950,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 iter1298 in self.success: - oprot.writeString(iter1298) + for iter1319 in self.success: + oprot.writeString(iter1319) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -37825,10 +37883,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) @@ -37845,8 +37903,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() oprot.writeFieldStop() @@ -38373,10 +38431,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) @@ -38393,8 +38451,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() @@ -41531,6 +41589,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: @@ -46562,11 +46747,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1316, _size1313) = iprot.readListBegin() - for _i1317 in xrange(_size1313): - _elem1318 = SchemaVersion() - _elem1318.read(iprot) - self.success.append(_elem1318) + (_etype1337, _size1334) = iprot.readListBegin() + for _i1338 in xrange(_size1334): + _elem1339 = SchemaVersion() + _elem1339.read(iprot) + self.success.append(_elem1339) iprot.readListEnd() else: iprot.skip(ftype) @@ -46595,8 +46780,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 iter1319 in self.success: - iter1319.write(oprot) + for iter1340 in self.success: + iter1340.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -48071,11 +48256,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1323, _size1320) = iprot.readListBegin() - for _i1324 in xrange(_size1320): - _elem1325 = RuntimeStat() - _elem1325.read(iprot) - self.success.append(_elem1325) + (_etype1344, _size1341) = iprot.readListBegin() + for _i1345 in xrange(_size1341): + _elem1346 = RuntimeStat() + _elem1346.read(iprot) + self.success.append(_elem1346) iprot.readListEnd() else: iprot.skip(ftype) @@ -48098,8 +48283,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: 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 b1e577a1f7..e0e56c2575 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 @@ -11457,17 +11457,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: @@ -11488,6 +11491,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() @@ -11506,6 +11520,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() @@ -11519,6 +11540,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 + - partition + - files + - 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, 'partition', None, None, ), # 4 + (5, TType.STRING, 'files', 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, partition=None, files=None, tableObj=None, partitionObj=None,): + self.writeId = writeId + self.database = database + self.table = table + self.partition = partition + self.files = files + 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.partition = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRING: + self.files = 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.partition is not None: + oprot.writeFieldBegin('partition', TType.STRING, 4) + oprot.writeString(self.partition) + oprot.writeFieldEnd() + if self.files is not None: + oprot.writeFieldBegin('files', TType.STRING, 5) + oprot.writeString(self.files) + 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.partition is None: + raise TProtocol.TProtocolException(message='Required field partition 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.partition) + value = (value * 31) ^ hash(self.files) + value = (value * 31) ^ hash(self.tableObj) + value = (value * 31) ^ hash(self.partitionObj) return value def __repr__(self): @@ -11561,10 +11734,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fullTableNames = [] - (_etype526, _size523) = iprot.readListBegin() - for _i527 in xrange(_size523): - _elem528 = iprot.readString() - self.fullTableNames.append(_elem528) + (_etype533, _size530) = iprot.readListBegin() + for _i534 in xrange(_size530): + _elem535 = iprot.readString() + self.fullTableNames.append(_elem535) iprot.readListEnd() else: iprot.skip(ftype) @@ -11586,8 +11759,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 iter529 in self.fullTableNames: - oprot.writeString(iter529) + for iter536 in self.fullTableNames: + oprot.writeString(iter536) oprot.writeListEnd() oprot.writeFieldEnd() if self.validTxnList is not None: @@ -11670,10 +11843,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.invalidWriteIds = [] - (_etype533, _size530) = iprot.readListBegin() - for _i534 in xrange(_size530): - _elem535 = iprot.readI64() - self.invalidWriteIds.append(_elem535) + (_etype540, _size537) = iprot.readListBegin() + for _i541 in xrange(_size537): + _elem542 = iprot.readI64() + self.invalidWriteIds.append(_elem542) iprot.readListEnd() else: iprot.skip(ftype) @@ -11708,8 +11881,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 iter536 in self.invalidWriteIds: - oprot.writeI64(iter536) + for iter543 in self.invalidWriteIds: + oprot.writeI64(iter543) oprot.writeListEnd() oprot.writeFieldEnd() if self.minOpenWriteId is not None: @@ -11781,11 +11954,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.tblValidWriteIds = [] - (_etype540, _size537) = iprot.readListBegin() - for _i541 in xrange(_size537): - _elem542 = TableValidWriteIds() - _elem542.read(iprot) - self.tblValidWriteIds.append(_elem542) + (_etype547, _size544) = iprot.readListBegin() + for _i548 in xrange(_size544): + _elem549 = TableValidWriteIds() + _elem549.read(iprot) + self.tblValidWriteIds.append(_elem549) iprot.readListEnd() else: iprot.skip(ftype) @@ -11802,8 +11975,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 iter543 in self.tblValidWriteIds: - iter543.write(oprot) + for iter550 in self.tblValidWriteIds: + iter550.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11879,10 +12052,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.txnIds = [] - (_etype547, _size544) = iprot.readListBegin() - for _i548 in xrange(_size544): - _elem549 = iprot.readI64() - self.txnIds.append(_elem549) + (_etype554, _size551) = iprot.readListBegin() + for _i555 in xrange(_size551): + _elem556 = iprot.readI64() + self.txnIds.append(_elem556) iprot.readListEnd() else: iprot.skip(ftype) @@ -11894,11 +12067,11 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.srcTxnToWriteIdList = [] - (_etype553, _size550) = iprot.readListBegin() - for _i554 in xrange(_size550): - _elem555 = TxnToWriteId() - _elem555.read(iprot) - self.srcTxnToWriteIdList.append(_elem555) + (_etype560, _size557) = iprot.readListBegin() + for _i561 in xrange(_size557): + _elem562 = TxnToWriteId() + _elem562.read(iprot) + self.srcTxnToWriteIdList.append(_elem562) iprot.readListEnd() else: iprot.skip(ftype) @@ -11923,8 +12096,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 iter556 in self.txnIds: - oprot.writeI64(iter556) + for iter563 in self.txnIds: + oprot.writeI64(iter563) oprot.writeListEnd() oprot.writeFieldEnd() if self.replPolicy is not None: @@ -11934,8 +12107,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 iter557 in self.srcTxnToWriteIdList: - iter557.write(oprot) + for iter564 in self.srcTxnToWriteIdList: + iter564.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12077,11 +12250,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.txnToWriteIds = [] - (_etype561, _size558) = iprot.readListBegin() - for _i562 in xrange(_size558): - _elem563 = TxnToWriteId() - _elem563.read(iprot) - self.txnToWriteIds.append(_elem563) + (_etype568, _size565) = iprot.readListBegin() + for _i569 in xrange(_size565): + _elem570 = TxnToWriteId() + _elem570.read(iprot) + self.txnToWriteIds.append(_elem570) iprot.readListEnd() else: iprot.skip(ftype) @@ -12098,8 +12271,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 iter564 in self.txnToWriteIds: - iter564.write(oprot) + for iter571 in self.txnToWriteIds: + iter571.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12327,11 +12500,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.component = [] - (_etype568, _size565) = iprot.readListBegin() - for _i569 in xrange(_size565): - _elem570 = LockComponent() - _elem570.read(iprot) - self.component.append(_elem570) + (_etype575, _size572) = iprot.readListBegin() + for _i576 in xrange(_size572): + _elem577 = LockComponent() + _elem577.read(iprot) + self.component.append(_elem577) iprot.readListEnd() else: iprot.skip(ftype) @@ -12368,8 +12541,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 iter571 in self.component: - iter571.write(oprot) + for iter578 in self.component: + iter578.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.txnid is not None: @@ -13067,11 +13240,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.locks = [] - (_etype575, _size572) = iprot.readListBegin() - for _i576 in xrange(_size572): - _elem577 = ShowLocksResponseElement() - _elem577.read(iprot) - self.locks.append(_elem577) + (_etype582, _size579) = iprot.readListBegin() + for _i583 in xrange(_size579): + _elem584 = ShowLocksResponseElement() + _elem584.read(iprot) + self.locks.append(_elem584) iprot.readListEnd() else: iprot.skip(ftype) @@ -13088,8 +13261,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 iter578 in self.locks: - iter578.write(oprot) + for iter585 in self.locks: + iter585.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13304,20 +13477,20 @@ def read(self, iprot): if fid == 1: if ftype == TType.SET: self.aborted = set() - (_etype582, _size579) = iprot.readSetBegin() - for _i583 in xrange(_size579): - _elem584 = iprot.readI64() - self.aborted.add(_elem584) + (_etype589, _size586) = iprot.readSetBegin() + for _i590 in xrange(_size586): + _elem591 = iprot.readI64() + self.aborted.add(_elem591) iprot.readSetEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.SET: self.nosuch = set() - (_etype588, _size585) = iprot.readSetBegin() - for _i589 in xrange(_size585): - _elem590 = iprot.readI64() - self.nosuch.add(_elem590) + (_etype595, _size592) = iprot.readSetBegin() + for _i596 in xrange(_size592): + _elem597 = iprot.readI64() + self.nosuch.add(_elem597) iprot.readSetEnd() else: iprot.skip(ftype) @@ -13334,15 +13507,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 iter591 in self.aborted: - oprot.writeI64(iter591) + for iter598 in self.aborted: + oprot.writeI64(iter598) oprot.writeSetEnd() oprot.writeFieldEnd() if self.nosuch is not None: oprot.writeFieldBegin('nosuch', TType.SET, 2) oprot.writeSetBegin(TType.I64, len(self.nosuch)) - for iter592 in self.nosuch: - oprot.writeI64(iter592) + for iter599 in self.nosuch: + oprot.writeI64(iter599) oprot.writeSetEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13439,11 +13612,11 @@ def read(self, iprot): elif fid == 6: if ftype == TType.MAP: self.properties = {} - (_ktype594, _vtype595, _size593 ) = iprot.readMapBegin() - for _i597 in xrange(_size593): - _key598 = iprot.readString() - _val599 = iprot.readString() - self.properties[_key598] = _val599 + (_ktype601, _vtype602, _size600 ) = iprot.readMapBegin() + for _i604 in xrange(_size600): + _key605 = iprot.readString() + _val606 = iprot.readString() + self.properties[_key605] = _val606 iprot.readMapEnd() else: iprot.skip(ftype) @@ -13480,9 +13653,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 kiter600,viter601 in self.properties.items(): - oprot.writeString(kiter600) - oprot.writeString(viter601) + for kiter607,viter608 in self.properties.items(): + oprot.writeString(kiter607) + oprot.writeString(viter608) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13917,11 +14090,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.compacts = [] - (_etype605, _size602) = iprot.readListBegin() - for _i606 in xrange(_size602): - _elem607 = ShowCompactResponseElement() - _elem607.read(iprot) - self.compacts.append(_elem607) + (_etype612, _size609) = iprot.readListBegin() + for _i613 in xrange(_size609): + _elem614 = ShowCompactResponseElement() + _elem614.read(iprot) + self.compacts.append(_elem614) iprot.readListEnd() else: iprot.skip(ftype) @@ -13938,8 +14111,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 iter608 in self.compacts: - iter608.write(oprot) + for iter615 in self.compacts: + iter615.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14028,10 +14201,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.partitionnames = [] - (_etype612, _size609) = iprot.readListBegin() - for _i613 in xrange(_size609): - _elem614 = iprot.readString() - self.partitionnames.append(_elem614) + (_etype619, _size616) = iprot.readListBegin() + for _i620 in xrange(_size616): + _elem621 = iprot.readString() + self.partitionnames.append(_elem621) iprot.readListEnd() else: iprot.skip(ftype) @@ -14069,8 +14242,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 iter615 in self.partitionnames: - oprot.writeString(iter615) + for iter622 in self.partitionnames: + oprot.writeString(iter622) oprot.writeListEnd() oprot.writeFieldEnd() if self.operationType is not None: @@ -14300,10 +14473,10 @@ def read(self, iprot): elif fid == 4: if ftype == TType.SET: self.tablesUsed = set() - (_etype619, _size616) = iprot.readSetBegin() - for _i620 in xrange(_size616): - _elem621 = iprot.readString() - self.tablesUsed.add(_elem621) + (_etype626, _size623) = iprot.readSetBegin() + for _i627 in xrange(_size623): + _elem628 = iprot.readString() + self.tablesUsed.add(_elem628) iprot.readSetEnd() else: iprot.skip(ftype) @@ -14337,8 +14510,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 iter622 in self.tablesUsed: - oprot.writeString(iter622) + for iter629 in self.tablesUsed: + oprot.writeString(iter629) oprot.writeSetEnd() oprot.writeFieldEnd() if self.validTxnList is not None: @@ -14650,11 +14823,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.events = [] - (_etype626, _size623) = iprot.readListBegin() - for _i627 in xrange(_size623): - _elem628 = NotificationEvent() - _elem628.read(iprot) - self.events.append(_elem628) + (_etype633, _size630) = iprot.readListBegin() + for _i634 in xrange(_size630): + _elem635 = NotificationEvent() + _elem635.read(iprot) + self.events.append(_elem635) iprot.readListEnd() else: iprot.skip(ftype) @@ -14671,8 +14844,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 iter629 in self.events: - iter629.write(oprot) + for iter636 in self.events: + iter636.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14935,6 +15108,7 @@ class InsertEventRequestData: - replace - filesAdded - filesAddedChecksum + - subDirectoryList """ thrift_spec = ( @@ -14942,12 +15116,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: @@ -14966,20 +15142,30 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.filesAdded = [] - (_etype633, _size630) = iprot.readListBegin() - for _i634 in xrange(_size630): - _elem635 = iprot.readString() - self.filesAdded.append(_elem635) + (_etype640, _size637) = iprot.readListBegin() + for _i641 in xrange(_size637): + _elem642 = iprot.readString() + self.filesAdded.append(_elem642) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.filesAddedChecksum = [] - (_etype639, _size636) = iprot.readListBegin() - for _i640 in xrange(_size636): - _elem641 = iprot.readString() - self.filesAddedChecksum.append(_elem641) + (_etype646, _size643) = iprot.readListBegin() + for _i647 in xrange(_size643): + _elem648 = iprot.readString() + self.filesAddedChecksum.append(_elem648) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.LIST: + self.subDirectoryList = [] + (_etype652, _size649) = iprot.readListBegin() + for _i653 in xrange(_size649): + _elem654 = iprot.readString() + self.subDirectoryList.append(_elem654) iprot.readListEnd() else: iprot.skip(ftype) @@ -15000,15 +15186,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 iter642 in self.filesAdded: - oprot.writeString(iter642) + for iter655 in self.filesAdded: + oprot.writeString(iter655) oprot.writeListEnd() oprot.writeFieldEnd() if self.filesAddedChecksum is not None: oprot.writeFieldBegin('filesAddedChecksum', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.filesAddedChecksum)) - for iter643 in self.filesAddedChecksum: - oprot.writeString(iter643) + for iter656 in self.filesAddedChecksum: + oprot.writeString(iter656) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.subDirectoryList is not None: + oprot.writeFieldBegin('subDirectoryList', TType.LIST, 4) + oprot.writeListBegin(TType.STRING, len(self.subDirectoryList)) + for iter657 in self.subDirectoryList: + oprot.writeString(iter657) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15025,6 +15218,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): @@ -15166,10 +15360,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.partitionVals = [] - (_etype647, _size644) = iprot.readListBegin() - for _i648 in xrange(_size644): - _elem649 = iprot.readString() - self.partitionVals.append(_elem649) + (_etype661, _size658) = iprot.readListBegin() + for _i662 in xrange(_size658): + _elem663 = iprot.readString() + self.partitionVals.append(_elem663) iprot.readListEnd() else: iprot.skip(ftype) @@ -15207,8 +15401,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 iter650 in self.partitionVals: - oprot.writeString(iter650) + for iter664 in self.partitionVals: + oprot.writeString(iter664) oprot.writeListEnd() oprot.writeFieldEnd() if self.catName is not None: @@ -15293,6 +15487,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 = [] + (_etype668, _size665) = iprot.readListBegin() + for _i669 in xrange(_size665): + _elem670 = iprot.readString() + self.partitionVals.append(_elem670) + 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 iter671 in self.partitionVals: + oprot.writeString(iter671) + 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: @@ -15400,12 +15789,12 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.metadata = {} - (_ktype652, _vtype653, _size651 ) = iprot.readMapBegin() - for _i655 in xrange(_size651): - _key656 = iprot.readI64() - _val657 = MetadataPpdResult() - _val657.read(iprot) - self.metadata[_key656] = _val657 + (_ktype673, _vtype674, _size672 ) = iprot.readMapBegin() + for _i676 in xrange(_size672): + _key677 = iprot.readI64() + _val678 = MetadataPpdResult() + _val678.read(iprot) + self.metadata[_key677] = _val678 iprot.readMapEnd() else: iprot.skip(ftype) @@ -15427,9 +15816,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 kiter658,viter659 in self.metadata.items(): - oprot.writeI64(kiter658) - viter659.write(oprot) + for kiter679,viter680 in self.metadata.items(): + oprot.writeI64(kiter679) + viter680.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.isSupported is not None: @@ -15499,10 +15888,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype663, _size660) = iprot.readListBegin() - for _i664 in xrange(_size660): - _elem665 = iprot.readI64() - self.fileIds.append(_elem665) + (_etype684, _size681) = iprot.readListBegin() + for _i685 in xrange(_size681): + _elem686 = iprot.readI64() + self.fileIds.append(_elem686) iprot.readListEnd() else: iprot.skip(ftype) @@ -15534,8 +15923,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 iter666 in self.fileIds: - oprot.writeI64(iter666) + for iter687 in self.fileIds: + oprot.writeI64(iter687) oprot.writeListEnd() oprot.writeFieldEnd() if self.expr is not None: @@ -15609,11 +15998,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.metadata = {} - (_ktype668, _vtype669, _size667 ) = iprot.readMapBegin() - for _i671 in xrange(_size667): - _key672 = iprot.readI64() - _val673 = iprot.readString() - self.metadata[_key672] = _val673 + (_ktype689, _vtype690, _size688 ) = iprot.readMapBegin() + for _i692 in xrange(_size688): + _key693 = iprot.readI64() + _val694 = iprot.readString() + self.metadata[_key693] = _val694 iprot.readMapEnd() else: iprot.skip(ftype) @@ -15635,9 +16024,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 kiter674,viter675 in self.metadata.items(): - oprot.writeI64(kiter674) - oprot.writeString(viter675) + for kiter695,viter696 in self.metadata.items(): + oprot.writeI64(kiter695) + oprot.writeString(viter696) oprot.writeMapEnd() oprot.writeFieldEnd() if self.isSupported is not None: @@ -15698,10 +16087,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype679, _size676) = iprot.readListBegin() - for _i680 in xrange(_size676): - _elem681 = iprot.readI64() - self.fileIds.append(_elem681) + (_etype700, _size697) = iprot.readListBegin() + for _i701 in xrange(_size697): + _elem702 = iprot.readI64() + self.fileIds.append(_elem702) iprot.readListEnd() else: iprot.skip(ftype) @@ -15718,8 +16107,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 iter682 in self.fileIds: - oprot.writeI64(iter682) + for iter703 in self.fileIds: + oprot.writeI64(iter703) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15825,20 +16214,20 @@ 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) elif fid == 2: if ftype == TType.LIST: self.metadata = [] - (_etype692, _size689) = iprot.readListBegin() - for _i693 in xrange(_size689): - _elem694 = iprot.readString() - self.metadata.append(_elem694) + (_etype713, _size710) = iprot.readListBegin() + for _i714 in xrange(_size710): + _elem715 = iprot.readString() + self.metadata.append(_elem715) iprot.readListEnd() else: iprot.skip(ftype) @@ -15860,15 +16249,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 iter695 in self.fileIds: - oprot.writeI64(iter695) + for iter716 in self.fileIds: + oprot.writeI64(iter716) oprot.writeListEnd() oprot.writeFieldEnd() if self.metadata is not None: oprot.writeFieldBegin('metadata', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.metadata)) - for iter696 in self.metadata: - oprot.writeString(iter696) + for iter717 in self.metadata: + oprot.writeString(iter717) oprot.writeListEnd() oprot.writeFieldEnd() if self.type is not None: @@ -15976,10 +16365,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype700, _size697) = iprot.readListBegin() - for _i701 in xrange(_size697): - _elem702 = iprot.readI64() - self.fileIds.append(_elem702) + (_etype721, _size718) = iprot.readListBegin() + for _i722 in xrange(_size718): + _elem723 = iprot.readI64() + self.fileIds.append(_elem723) iprot.readListEnd() else: iprot.skip(ftype) @@ -15996,8 +16385,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 iter703 in self.fileIds: - oprot.writeI64(iter703) + for iter724 in self.fileIds: + oprot.writeI64(iter724) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16226,11 +16615,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.functions = [] - (_etype707, _size704) = iprot.readListBegin() - for _i708 in xrange(_size704): - _elem709 = Function() - _elem709.read(iprot) - self.functions.append(_elem709) + (_etype728, _size725) = iprot.readListBegin() + for _i729 in xrange(_size725): + _elem730 = Function() + _elem730.read(iprot) + self.functions.append(_elem730) iprot.readListEnd() else: iprot.skip(ftype) @@ -16247,8 +16636,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 iter710 in self.functions: - iter710.write(oprot) + for iter731 in self.functions: + iter731.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16300,10 +16689,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.values = [] - (_etype714, _size711) = iprot.readListBegin() - for _i715 in xrange(_size711): - _elem716 = iprot.readI32() - self.values.append(_elem716) + (_etype735, _size732) = iprot.readListBegin() + for _i736 in xrange(_size732): + _elem737 = iprot.readI32() + self.values.append(_elem737) iprot.readListEnd() else: iprot.skip(ftype) @@ -16320,8 +16709,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 iter717 in self.values: - oprot.writeI32(iter717) + for iter738 in self.values: + oprot.writeI32(iter738) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16566,10 +16955,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.tblNames = [] - (_etype721, _size718) = iprot.readListBegin() - for _i722 in xrange(_size718): - _elem723 = iprot.readString() - self.tblNames.append(_elem723) + (_etype742, _size739) = iprot.readListBegin() + for _i743 in xrange(_size739): + _elem744 = iprot.readString() + self.tblNames.append(_elem744) iprot.readListEnd() else: iprot.skip(ftype) @@ -16601,8 +16990,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 iter724 in self.tblNames: - oprot.writeString(iter724) + for iter745 in self.tblNames: + oprot.writeString(iter745) oprot.writeListEnd() oprot.writeFieldEnd() if self.capabilities is not None: @@ -16667,11 +17056,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.tables = [] - (_etype728, _size725) = iprot.readListBegin() - for _i729 in xrange(_size725): - _elem730 = Table() - _elem730.read(iprot) - self.tables.append(_elem730) + (_etype749, _size746) = iprot.readListBegin() + for _i750 in xrange(_size746): + _elem751 = Table() + _elem751.read(iprot) + self.tables.append(_elem751) iprot.readListEnd() else: iprot.skip(ftype) @@ -16688,8 +17077,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 iter731 in self.tables: - iter731.write(oprot) + for iter752 in self.tables: + iter752.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -17003,10 +17392,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.SET: self.tablesUsed = set() - (_etype735, _size732) = iprot.readSetBegin() - for _i736 in xrange(_size732): - _elem737 = iprot.readString() - self.tablesUsed.add(_elem737) + (_etype756, _size753) = iprot.readSetBegin() + for _i757 in xrange(_size753): + _elem758 = iprot.readString() + self.tablesUsed.add(_elem758) iprot.readSetEnd() else: iprot.skip(ftype) @@ -17038,8 +17427,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 iter738 in self.tablesUsed: - oprot.writeString(iter738) + for iter759 in self.tablesUsed: + oprot.writeString(iter759) oprot.writeSetEnd() oprot.writeFieldEnd() if self.validTxnList is not None: @@ -17944,44 +18333,44 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.pools = [] - (_etype742, _size739) = iprot.readListBegin() - for _i743 in xrange(_size739): - _elem744 = WMPool() - _elem744.read(iprot) - self.pools.append(_elem744) + (_etype763, _size760) = iprot.readListBegin() + for _i764 in xrange(_size760): + _elem765 = WMPool() + _elem765.read(iprot) + self.pools.append(_elem765) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.mappings = [] - (_etype748, _size745) = iprot.readListBegin() - for _i749 in xrange(_size745): - _elem750 = WMMapping() - _elem750.read(iprot) - self.mappings.append(_elem750) + (_etype769, _size766) = iprot.readListBegin() + for _i770 in xrange(_size766): + _elem771 = WMMapping() + _elem771.read(iprot) + self.mappings.append(_elem771) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.triggers = [] - (_etype754, _size751) = iprot.readListBegin() - for _i755 in xrange(_size751): - _elem756 = WMTrigger() - _elem756.read(iprot) - self.triggers.append(_elem756) + (_etype775, _size772) = iprot.readListBegin() + for _i776 in xrange(_size772): + _elem777 = WMTrigger() + _elem777.read(iprot) + self.triggers.append(_elem777) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.LIST: self.poolTriggers = [] - (_etype760, _size757) = iprot.readListBegin() - for _i761 in xrange(_size757): - _elem762 = WMPoolTrigger() - _elem762.read(iprot) - self.poolTriggers.append(_elem762) + (_etype781, _size778) = iprot.readListBegin() + for _i782 in xrange(_size778): + _elem783 = WMPoolTrigger() + _elem783.read(iprot) + self.poolTriggers.append(_elem783) iprot.readListEnd() else: iprot.skip(ftype) @@ -18002,29 +18391,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 iter763 in self.pools: - iter763.write(oprot) + for iter784 in self.pools: + iter784.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 iter764 in self.mappings: - iter764.write(oprot) + for iter785 in self.mappings: + iter785.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 iter765 in self.triggers: - iter765.write(oprot) + for iter786 in self.triggers: + iter786.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 iter766 in self.poolTriggers: - iter766.write(oprot) + for iter787 in self.poolTriggers: + iter787.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -18498,11 +18887,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.resourcePlans = [] - (_etype770, _size767) = iprot.readListBegin() - for _i771 in xrange(_size767): - _elem772 = WMResourcePlan() - _elem772.read(iprot) - self.resourcePlans.append(_elem772) + (_etype791, _size788) = iprot.readListBegin() + for _i792 in xrange(_size788): + _elem793 = WMResourcePlan() + _elem793.read(iprot) + self.resourcePlans.append(_elem793) iprot.readListEnd() else: iprot.skip(ftype) @@ -18519,8 +18908,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 iter773 in self.resourcePlans: - iter773.write(oprot) + for iter794 in self.resourcePlans: + iter794.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -18824,20 +19213,20 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.errors = [] - (_etype777, _size774) = iprot.readListBegin() - for _i778 in xrange(_size774): - _elem779 = iprot.readString() - self.errors.append(_elem779) + (_etype798, _size795) = iprot.readListBegin() + for _i799 in xrange(_size795): + _elem800 = iprot.readString() + self.errors.append(_elem800) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.warnings = [] - (_etype783, _size780) = iprot.readListBegin() - for _i784 in xrange(_size780): - _elem785 = iprot.readString() - self.warnings.append(_elem785) + (_etype804, _size801) = iprot.readListBegin() + for _i805 in xrange(_size801): + _elem806 = iprot.readString() + self.warnings.append(_elem806) iprot.readListEnd() else: iprot.skip(ftype) @@ -18854,15 +19243,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 iter786 in self.errors: - oprot.writeString(iter786) + for iter807 in self.errors: + oprot.writeString(iter807) oprot.writeListEnd() oprot.writeFieldEnd() if self.warnings is not None: oprot.writeFieldBegin('warnings', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.warnings)) - for iter787 in self.warnings: - oprot.writeString(iter787) + for iter808 in self.warnings: + oprot.writeString(iter808) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -19439,11 +19828,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.triggers = [] - (_etype791, _size788) = iprot.readListBegin() - for _i792 in xrange(_size788): - _elem793 = WMTrigger() - _elem793.read(iprot) - self.triggers.append(_elem793) + (_etype812, _size809) = iprot.readListBegin() + for _i813 in xrange(_size809): + _elem814 = WMTrigger() + _elem814.read(iprot) + self.triggers.append(_elem814) iprot.readListEnd() else: iprot.skip(ftype) @@ -19460,8 +19849,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 iter794 in self.triggers: - iter794.write(oprot) + for iter815 in self.triggers: + iter815.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20645,11 +21034,11 @@ def read(self, iprot): elif fid == 4: if ftype == TType.LIST: self.cols = [] - (_etype798, _size795) = iprot.readListBegin() - for _i799 in xrange(_size795): - _elem800 = FieldSchema() - _elem800.read(iprot) - self.cols.append(_elem800) + (_etype819, _size816) = iprot.readListBegin() + for _i820 in xrange(_size816): + _elem821 = FieldSchema() + _elem821.read(iprot) + self.cols.append(_elem821) iprot.readListEnd() else: iprot.skip(ftype) @@ -20709,8 +21098,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 iter801 in self.cols: - iter801.write(oprot) + for iter822 in self.cols: + iter822.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.state is not None: @@ -20965,11 +21354,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.schemaVersions = [] - (_etype805, _size802) = iprot.readListBegin() - for _i806 in xrange(_size802): - _elem807 = SchemaVersionDescriptor() - _elem807.read(iprot) - self.schemaVersions.append(_elem807) + (_etype826, _size823) = iprot.readListBegin() + for _i827 in xrange(_size823): + _elem828 = SchemaVersionDescriptor() + _elem828.read(iprot) + self.schemaVersions.append(_elem828) iprot.readListEnd() else: iprot.skip(ftype) @@ -20986,8 +21375,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 iter808 in self.schemaVersions: - iter808.write(oprot) + for iter829 in self.schemaVersions: + iter829.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 2687ce5682..7697119a14 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 @@ -2557,10 +2557,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 @@ -2572,6 +2574,38 @@ class CommitTxnRequest ::Thrift::Struct.generate_accessors self end +class WriteEventInfo + include ::Thrift::Struct, ::Thrift::Struct_Union + WRITEID = 1 + DATABASE = 2 + TABLE = 3 + PARTITION = 4 + FILES = 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'}, + PARTITION => {:type => ::Thrift::Types::STRING, :name => 'partition'}, + FILES => {:type => ::Thrift::Types::STRING, :name => 'files', :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 partition is unset!') unless @partition + end + + ::Thrift::Struct.generate_accessors self +end + class GetValidWriteIdsRequest include ::Thrift::Struct, ::Thrift::Struct_Union FULLTABLENAMES = 1 @@ -3339,11 +3373,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 @@ -3421,6 +3457,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 4de8bd3227..f5b88eb3f1 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 @@ -2704,6 +2704,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() @@ -5440,6 +5455,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() @@ -12035,6 +12057,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 397a08103d..4757f20263 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 @@ -7014,6 +7014,18 @@ 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()) { + for (WriteEventInfo writeEventInfo : rqst.getWriteEventInfos()) { + InsertEventRequestData insertData = new InsertEventRequestData(); + insertData.setReplace(true); + insertData.setFilesAdded(Collections.singletonList(writeEventInfo.getFiles())); + WriteNotificationLogRequest wnRqst = new WriteNotificationLogRequest(rqst.getTxnid(), + writeEventInfo.getWriteId(), writeEventInfo.getDatabase(), writeEventInfo.getTable(), insertData); + wnRqst.setPartitionVals(Warehouse.getPartValuesFromPartName(writeEventInfo.getPartition())); + add_write_notification_log(wnRqst); + } + } getTxnHandler().commitTxn(rqst); if (listeners != null && !listeners.isEmpty()) { MetaStoreListenerNotifier.notifyEvent(listeners, EventType.COMMIT_TXN, @@ -7038,6 +7050,22 @@ public AllocateTableWriteIdsResponse allocate_table_write_ids( return response; } + @Override + public WriteNotificationLogResponse add_write_notification_log(WriteNotificationLogRequest rqst) + throws MetaException, NoSuchObjectException { + Partition ptnObj; + GetTableRequest req = new GetTableRequest(rqst.getDb(), rqst.getTable()); + req.setCapabilities(new ClientCapabilities(Lists.newArrayList(ClientCapability.TEST_CAPABILITY))); + Table tableObj = get_table_req(req).getTable(); + if (rqst.getPartitionVals() != null) { + ptnObj = get_partition(rqst.getDb(), rqst.getTable(), rqst.getPartitionVals()); + } else { + ptnObj = null; + } + getTxnHandler().addWriteNotificationLog(rqst, tableObj, ptnObj); + 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 1c8d22353f..39975735c7 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 @@ -2469,10 +2469,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); } @@ -2692,6 +2690,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 aee416da34..176cc199ed 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 @@ -41,6 +41,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; @@ -2846,8 +2848,8 @@ void commitTxn(long txnid) /** * Commit a transaction. This will also unlock any locks associated with * this transaction. - * @param txnid id of transaction to be committed. - * @param replPolicy the replication policy to identify the source cluster + * + * @param rqst Information containing the txn info and write event information * @throws NoSuchTxnException if the requested transaction does not exist. * This can result fro the transaction having timed out and been deleted by * the compactor. @@ -2855,7 +2857,7 @@ void commitTxn(long txnid) * aborted. This can result from the transaction timing out. * @throws TException */ - void replCommitTxn(long txnid, String replPolicy) + void replCommitTxn(CommitTxnRequest rqst) throws NoSuchTxnException, TxnAbortedException, TException; /** @@ -3157,6 +3159,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 184ecb6db6..497d18d3da 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.MWriteNotificationLog; 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; @@ -9135,6 +9137,56 @@ 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(MWriteNotificationLog.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) throws MetaException { + List writeEventInfoList = null; + boolean commited = false; + Query query = null; + try { + openTransaction(); + query = pm.newQuery(MWriteNotificationLog.class); + String filter = "txnId == " + Long.toString(txnId); + query.setFilter(filter); + List mplans = (List) query.execute(); + pm.retrieveAll(mplans); + commited = commitTransaction(); + if (mplans != null && mplans.size() > 0) { + writeEventInfoList = Lists.newArrayList(); + for (MWriteNotificationLog mplan : mplans) { + WriteEventInfo writeEventInfo = new WriteEventInfo(mplan.getWriteId(), mplan.getDatabase(), + mplan.getTable(), mplan.getPartition()); + writeEventInfo.setFiles(mplan.getFiles()); + 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 2c9f2e50e9..4b3328c10a 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; @@ -1634,4 +1635,16 @@ void alterSchemaVersion(SchemaVersionDescriptor version, SchemaVersion newVersio /** Removes outdated statistics. */ int deleteRuntimeStats(int maxRetained, 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 + */ + List getAllWriteEventInfo(long txnId) 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 7c1d5f5cca..d7914b6bc8 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 @@ -69,21 +69,30 @@ Path cmPath; String checkSum; boolean useSourcePath; + private String subDir; - public FileInfo(FileSystem srcFs, Path sourcePath) { - this.srcFs = srcFs; - this.sourcePath = sourcePath; - this.cmPath = null; - this.checkSum = null; - this.useSourcePath = true; - } - public FileInfo(FileSystem srcFs, Path sourcePath, Path cmPath, String checkSum, boolean useSourcePath) { + public FileInfo(FileSystem srcFs, Path sourcePath, Path cmPath, String checkSum, + boolean useSourcePath, String subDir) { this.srcFs = srcFs; this.sourcePath = sourcePath; + this.subDir = subDir; this.cmPath = cmPath; this.checkSum = checkSum; this.useSourcePath = useSourcePath; } + + public FileInfo(FileSystem srcFs, Path sourcePath) { + this(srcFs, sourcePath, null, null, true, null); + } + + public FileInfo(FileSystem srcFs, Path sourcePath, Path cmPath, String checkSum, boolean useSourcePath) { + this(srcFs, sourcePath, cmPath, checkSum, useSourcePath, null); + } + + public FileInfo(FileSystem srcFs, Path sourcePath, String subDir) { + this(srcFs, sourcePath, null, null, true, subDir); + } + public FileSystem getSrcFs() { return srcFs; } @@ -109,6 +118,10 @@ public Path getEffectivePath() { return cmPath; } } + + public String getSubDir() { + return subDir; + } } public static ReplChangeManager getInstance(Configuration conf) throws MetaException { @@ -304,17 +317,17 @@ static Path getCMPath(Configuration conf, String name, String checkSum) { * @param conf * @return Corresponding FileInfo object */ - public static FileInfo getFileInfo(Path src, String checksumString, Configuration conf) + public static FileInfo getFileInfo(Path src, String checksumString, String subDir, Configuration conf) throws MetaException { try { FileSystem srcFs = src.getFileSystem(conf); if (checksumString == null) { - return new FileInfo(srcFs, src); + return new FileInfo(srcFs, src, subDir); } Path cmPath = getCMPath(conf, src.getName(), checksumString); if (!srcFs.exists(src)) { - return new FileInfo(srcFs, src, cmPath, checksumString, false); + return new FileInfo(srcFs, src, cmPath, checksumString, false, subDir); } String currentChecksumString; @@ -322,12 +335,12 @@ public static FileInfo getFileInfo(Path src, String checksumString, Configuratio currentChecksumString = checksumFor(src, srcFs); } catch (IOException ex) { // If the file is missing or getting modified, then refer CM path - return new FileInfo(srcFs, src, cmPath, checksumString, false); + return new FileInfo(srcFs, src, cmPath, checksumString, false, subDir); } if ((currentChecksumString == null) || checksumString.equals(currentChecksumString)) { - return new FileInfo(srcFs, src, cmPath, checksumString, true); + return new FileInfo(srcFs, src, cmPath, checksumString, true, subDir); } else { - return new FileInfo(srcFs, src, cmPath, checksumString, false); + return new FileInfo(srcFs, src, cmPath, checksumString, false, subDir); } } catch (IOException e) { throw new MetaException(StringUtils.stringifyException(e)); @@ -342,12 +355,15 @@ public static FileInfo getFileInfo(Path src, String checksumString, Configuratio */ // TODO: this needs to be enhanced once change management based filesystem is implemented // Currently using fileuri#checksum as the format - static public String encodeFileUri(String fileUriStr, String fileChecksum) { + public static String encodeFileUri(String fileUriStr, String fileChecksum, String encodedSubDir) { + String encodedUri = fileUriStr; if (fileChecksum != null) { - return fileUriStr + URI_FRAGMENT_SEPARATOR + fileChecksum; - } else { - return fileUriStr; + encodedUri = encodedUri + URI_FRAGMENT_SEPARATOR + fileChecksum; } + if (encodedSubDir != null) { + encodedUri = encodedUri + URI_FRAGMENT_SEPARATOR + encodedSubDir; + } + return encodedUri; } /*** @@ -355,13 +371,16 @@ static public String encodeFileUri(String fileUriStr, String fileChecksum) { * @param fileURIStr uri with fragment * @return array of file name and checksum */ - static public String[] getFileWithChksumFromURI(String fileURIStr) { + public static String[] getFileWithChksumFromURI(String fileURIStr) { String[] uriAndFragment = fileURIStr.split(URI_FRAGMENT_SEPARATOR); - String[] result = new String[2]; + String[] result = new String[3]; result[0] = uriAndFragment[0]; if (uriAndFragment.length>1) { result[1] = uriAndFragment[1]; } + if (uriAndFragment.length>2) { + result[2] = uriAndFragment[2]; + } return result; } 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 92d000ba30..9dcd558258 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 @@ -108,6 +108,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; @@ -2398,6 +2399,17 @@ public long getCacheUpdateCount() { return sharedCache.getUpdateCount(); } + @Override + public void cleanWriteNotificationEvents(int olderThan) { + rawStore.cleanWriteNotificationEvents(olderThan); + } + + + @Override + public List getAllWriteEventInfo(long txnId) throws MetaException { + return rawStore.getAllWriteEventInfo(txnId); + } + 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..5e18596e1b --- /dev/null +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/events/AcidWriteEvent.java @@ -0,0 +1,95 @@ +/* + * 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 java.util.List; + +/** + * AcidWriteEvent + * Event generated for acid write operations + */ +@InterfaceAudience.Public +@InterfaceStability.Stable +public class AcidWriteEvent extends ListenerEvent { + private final Long txnId; + 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); + txnId = writeNotificationLogRequest.getTxnId(); + this.writeNotificationLogRequest = writeNotificationLogRequest; + this.partition = partition; + this.tableObj = tableObj; + this.partitionObj = partitionObj; + } + + /** + * @return Long txnId + */ + public Long getTxnId() { + return txnId; + } + + public List getFiles() { + return writeNotificationLogRequest.getFileInfo().getFilesAdded(); + } + + public List getChecksums() { + return writeNotificationLogRequest.getFileInfo().getFilesAddedChecksum(); + } + + public String getDatabase() { + return writeNotificationLogRequest.getDb(); + } + + public String getTable() { + return writeNotificationLogRequest.getTable(); + } + + public String getPartition() { + return partition; + } + + 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..da6bc194ab --- /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 getPartitions(); + + 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..d6458e3cc4 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 @@ -73,6 +73,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 +324,26 @@ 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 txnId Id of the transaction which has done the write operation + * @param database database name + * @param table table name + * @param writeId write id allocated by the transaction for the given table + * @param partition partitions added/modified by the write operation + * @param tableObj table object + * @param partitionObj partition object + * @param files files added by this write operation + * @return instance of AcidWriteMessage + */ + public abstract AcidWriteMessage buildAcidWriteMessage(Long txnId, + String database, + String table, + Long writeId, + String partition, + Table tableObj, + Partition partitionObj, + 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..8557718e2d --- /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.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, partitions, tableObjJason, partitionObjJson; + + @JsonProperty + private List files; + + /** + * Default constructor, needed for Jackson. + */ + public JSONAcidWriteMessage() { + } + + public JSONAcidWriteMessage(String server, String servicePrincipal, Long txnid, Long timestamp, + String database, String table, Long writeId, + String partitions, Table tableObj, + Partition partitionObj, Iterator files) { + this.timestamp = timestamp; + this.txnid = txnid; + this.server = server; + this.servicePrincipal = servicePrincipal; + this.database = database; + this.table = table; + this.writeId = writeId; + this.partitions = partitions; + try { + this.tableObjJason = JSONMessageFactory.createTableObjJson(tableObj); + if (partitionObj != null) { + this.partitionObjJson = JSONMessageFactory.createPartitionObjJson(partitionObj); + } 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 getPartitions() { + return partitions; + } + + @Override + public List getFiles() { + return files; + } + + @Override + public Table getTableObj() throws Exception { + return (Table) JSONMessageFactory.getTObj(tableObjJason, Table.class); + } + + @Override + public Partition getPartitionObj() throws Exception { + return ((null == tableObjJason) ? null : (Partition) JSONMessageFactory.getTObj(tableObjJason, Partition.class)); + } + + @Override + public String getTableObjStr() { + return tableObjJason; + } + + @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..a38ace3f36 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 : + (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..2383ae2aba 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 @@ -65,6 +65,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 +224,25 @@ 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(Long txnId, + String database, + String table, + Long writeId, + String partition, + Table tableObj, + Partition partitionObj, + Iterator files) { + return new JSONAcidWriteMessage(MS_SERVER_URL, MS_SERVICE_PRINCIPAL, txnId, now(), database, table, writeId, + partition, tableObj, partitionObj, files); + } + private long now() { return System.currentTimeMillis() / 1000; } diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/model/MWriteNotificationLog.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/model/MWriteNotificationLog.java new file mode 100644 index 0000000000..61e046caf7 --- /dev/null +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/model/MWriteNotificationLog.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; + +/** + * MWriteNotificationLog + * DN table for ACID write events. + */ +public class MWriteNotificationLog { + 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 MWriteNotificationLog() { + } + + public MWriteNotificationLog(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..a51932aa39 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,11 @@ public DatabaseProduct getDbProduct() { return dbProduct; } + public String addEscapeCharacters(String s) { + if (dbProduct != DatabaseProduct.DERBY) { + 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 cf89ab2166..452c4aa66e 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 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("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.MWriteNotificationLog', " + + "1)) tmp_table WHERE NOT EXISTS ( SELECT \"NEXT_VAL\" FROM \"APP\"" + + ".\"SEQUENCE_TABLE\" WHERE \"SEQUENCE_NAME\" = 'org.apache.hadoop.hive.metastore" + + ".model.MWriteNotificationLog')"); } 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 db596a6a13..1f5a4f828d 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 @@ -118,6 +118,8 @@ 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.WriteNotificationLogRequest; +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.BoneCPDataSourceProvider; @@ -127,6 +129,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; @@ -920,10 +923,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 @@ -1012,23 +1022,50 @@ 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()) { @@ -1038,27 +1075,22 @@ 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); @@ -1405,6 +1437,50 @@ public AllocateTableWriteIdsResponse allocateTableWriteIds(AllocateTableWriteIds } } + @Override + @RetrySemantics.Idempotent + public void addWriteNotificationLog(WriteNotificationLogRequest rqst, Table tableObj, Partition ptnObj) + throws MetaException { + Connection dbConn = null; + try { + try { + //Idempotent case is handled by notify Event + lockInternal(); + dbConn = getDbConn(Connection.TRANSACTION_READ_COMMITTED); + + String partition = " ";//partition is part of primary key so need to set a empty string, can not be null. + if (rqst.isSetPartitionVals()) { + partition = Warehouse.makePartName(tableObj.getPartitionKeys(), rqst.getPartitionVals()); + } + AcidWriteEvent event = new AcidWriteEvent(partition, tableObj, ptnObj, rqst); + MetaStoreListenerNotifier.notifyEventWithDirectSql(transactionalListeners, + EventMessage.EventType.ACID_WRITE, event, 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", e.getMessage())) { + throw new RetryException(); + } + retryNum = 0; + throw new MetaException(e.getMessage()); + } + checkRetryable(dbConn, e, "allocateTableWriteIds(" + rqst + ")"); + throw new MetaException("Unable to update transaction database " + + StringUtils.stringifyException(e)); + } finally{ + closeDbConn(dbConn); + unlockInternal(); + } + } catch (RetryException e) { + addWriteNotificationLog(rqst, tableObj, ptnObj); + } + } + @Override @RetrySemantics.SafeToRetry public void performWriteSetGC() { @@ -2727,6 +2803,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 @@ -2770,18 +2862,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 6d8b8456a7..b10b2c0305 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 @@ -458,4 +458,10 @@ void cleanupRecords(HiveObjectType type, Database db, Table table, */ @RetrySemantics.Idempotent void setHadoopJobId(String hadoopJobId, long id); + + /** + * Add the ACID write event information to writeNotificationLog table. + */ + @RetrySemantics.Idempotent + void addWriteNotificationLog(WriteNotificationLogRequest rqst, Table tableObj, Partition ptnObj) throws MetaException; } diff --git a/standalone-metastore/src/main/resources/package.jdo b/standalone-metastore/src/main/resources/package.jdo index 221192e376..1bcaae3507 100644 --- a/standalone-metastore/src/main/resources/package.jdo +++ b/standalone-metastore/src/main/resources/package.jdo @@ -1155,6 +1155,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/standalone-metastore/src/main/sql/derby/hive-schema-3.0.0.derby.sql b/standalone-metastore/src/main/sql/derby/hive-schema-3.0.0.derby.sql index 48d28cb7d8..e7b7629341 100644 --- a/standalone-metastore/src/main/sql/derby/hive-schema-3.0.0.derby.sql +++ b/standalone-metastore/src/main/sql/derby/hive-schema-3.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 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.MWriteNotificationLog', 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 ed6c4cd3d7..5426a9a09f 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 @@ -238,7 +238,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, @@ -248,6 +247,22 @@ CREATE TABLE "APP"."RUNTIME_STATS" ( CREATE INDEX IDX_RUNTIME_STATS_CREATE_TIME ON RUNTIME_STATS(CREATE_TIME); +CREATE TABLE 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.MWriteNotificationLog', 1); + -- This needs to be the last thing done. Insert any changes above this line. UPDATE "APP".VERSION SET SCHEMA_VERSION='3.0.0', VERSION_COMMENT='Hive release version 3.0.0' where VER_ID=1; diff --git a/standalone-metastore/src/main/sql/mssql/hive-schema-3.0.0.mssql.sql b/standalone-metastore/src/main/sql/mssql/hive-schema-3.0.0.mssql.sql index 6e31b16c52..4cf446dbb9 100644 --- a/standalone-metastore/src/main/sql/mssql/hive-schema-3.0.0.mssql.sql +++ b/standalone-metastore/src/main/sql/mssql/hive-schema-3.0.0.mssql.sql @@ -1239,6 +1239,22 @@ CREATE TABLE RUNTIME_STATS ( CREATE INDEX IDX_RUNTIME_STATS_CREATE_TIME ON RUNTIME_STATS(CREATE_TIME); +CREATE TABLE 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 WRITE_NOTIFICATION_LOG ADD CONSTRAINT 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.MWriteNotificationLog', 1); -- ----------------------------------------------------------------- -- Record schema version. Should be the last step in the init script -- ----------------------------------------------------------------- diff --git a/standalone-metastore/src/main/sql/mssql/upgrade-2.3.0-to-3.0.0.mssql.sql b/standalone-metastore/src/main/sql/mssql/upgrade-2.3.0-to-3.0.0.mssql.sql index c2504d33c6..966c9592b8 100644 --- a/standalone-metastore/src/main/sql/mssql/upgrade-2.3.0-to-3.0.0.mssql.sql +++ b/standalone-metastore/src/main/sql/mssql/upgrade-2.3.0-to-3.0.0.mssql.sql @@ -315,6 +315,23 @@ CREATE TABLE RUNTIME_STATS ( CREATE INDEX IDX_RUNTIME_STATS_CREATE_TIME ON RUNTIME_STATS(CREATE_TIME); +CREATE TABLE 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 WRITE_NOTIFICATION_LOG ADD CONSTRAINT 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.MWriteNotificationLog', 1); + -- 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 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 4309911dbf..45c678909f 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 @@ -1154,7 +1154,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, @@ -1164,6 +1163,22 @@ CREATE TABLE RUNTIME_STATS ( CREATE INDEX IDX_RUNTIME_STATS_CREATE_TIME ON RUNTIME_STATS(CREATE_TIME); +CREATE TABLE 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.MWriteNotificationLog', 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 e01b4da7fd..a64033336e 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 @@ -288,6 +288,22 @@ CREATE TABLE RUNTIME_STATS ( CREATE INDEX IDX_RUNTIME_STATS_CREATE_TIME ON RUNTIME_STATS(CREATE_TIME); +CREATE TABLE 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.MWriteNotificationLog', 1); + -- 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 ' '; 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 a45c7bbb0f..dff5fac8ad 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 @@ -1133,7 +1133,21 @@ CREATE TABLE RUNTIME_STATS ( CREATE INDEX IDX_RUNTIME_STATS_CREATE_TIME ON RUNTIME_STATS(CREATE_TIME); - +CREATE TABLE 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.MWriteNotificationLog', 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 327800bb0d..81d93b50b7 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 @@ -306,6 +306,22 @@ CREATE TABLE RUNTIME_STATS ( CREATE INDEX IDX_RUNTIME_STATS_CREATE_TIME ON RUNTIME_STATS(CREATE_TIME); +CREATE TABLE 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.MWriteNotificationLog', 1); + -- 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; 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 2484744adf..e93cf452af 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 @@ -1811,7 +1811,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, @@ -1821,6 +1820,21 @@ CREATE TABLE RUNTIME_STATS ( CREATE INDEX IDX_RUNTIME_STATS_CREATE_TIME ON RUNTIME_STATS(CREATE_TIME); +CREATE TABLE 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 INT(11) 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.MWriteNotificationLog', 1); -- ----------------------------------------------------------------- -- Record schema version. Should be the last step in the init script diff --git a/standalone-metastore/src/main/sql/postgres/upgrade-2.3.0-to-3.0.0.postgres.sql b/standalone-metastore/src/main/sql/postgres/upgrade-2.3.0-to-3.0.0.postgres.sql index 63932a9cf3..f10c0735b2 100644 --- a/standalone-metastore/src/main/sql/postgres/upgrade-2.3.0-to-3.0.0.postgres.sql +++ b/standalone-metastore/src/main/sql/postgres/upgrade-2.3.0-to-3.0.0.postgres.sql @@ -323,6 +323,22 @@ CREATE TABLE RUNTIME_STATS ( CREATE INDEX IDX_RUNTIME_STATS_CREATE_TIME ON RUNTIME_STATS(CREATE_TIME); +CREATE TABLE 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 INT(11) 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.MWriteNotificationLog', 1); + -- 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'; diff --git a/standalone-metastore/src/main/thrift/hive_metastore.thrift b/standalone-metastore/src/main/thrift/hive_metastore.thrift index c56a4f9545..28868d4887 100644 --- a/standalone-metastore/src/main/thrift/hive_metastore.thrift +++ b/standalone-metastore/src/main/thrift/hive_metastore.thrift @@ -860,6 +860,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 partition, + 5: optional string files, + 6: optional string tableObj, + 7: optional string partitionObj, } // Request msg to get the valid write ids list for the given list of tables wrt to input validTxnList @@ -1086,6 +1098,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 { @@ -1106,7 +1120,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 @@ -2082,6 +2109,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 defc68fc9f..bdc3e9d0d1 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 @@ -83,6 +83,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; @@ -1178,5 +1179,15 @@ public void addRuntimeStat(RuntimeStat stat) throws MetaException { @Override public int deleteRuntimeStats(int maxRetained, int maxRetainSecs) throws MetaException { return objectStore.deleteRuntimeStats(maxRetained, maxRetainSecs); + } + + @Override + public void cleanWriteNotificationEvents(int olderThan) { + objectStore.cleanWriteNotificationEvents(olderThan); + } + + @Override + public List getAllWriteEventInfo(long txnId) throws MetaException { + return objectStore.getAllWriteEventInfo(txnId); } } 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 20c5d8a58c..5e4cbc5b86 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 @@ -81,6 +81,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; @@ -1165,4 +1166,13 @@ public void addRuntimeStat(RuntimeStat stat) throws MetaException { public int deleteRuntimeStats(int maxRetained, int maxRetainSecs) throws MetaException { return 0; } + + @Override + public void cleanWriteNotificationEvents(int olderThan) { + } + + @Override + public List getAllWriteEventInfo(long txnId) 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 bf87cfcf7c..d145fd9b38 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 @@ -2206,10 +2206,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); } @@ -2423,6 +2421,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