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..48aaef7004 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 @@ -51,30 +51,8 @@ import org.apache.hadoop.hive.metastore.api.Table; import org.apache.hadoop.hive.metastore.conf.MetastoreConf; import org.apache.hadoop.hive.metastore.conf.MetastoreConf.ConfVars; -import org.apache.hadoop.hive.metastore.events.AddForeignKeyEvent; -import org.apache.hadoop.hive.metastore.events.AddNotNullConstraintEvent; -import org.apache.hadoop.hive.metastore.events.AddPartitionEvent; -import org.apache.hadoop.hive.metastore.events.AddPrimaryKeyEvent; -import org.apache.hadoop.hive.metastore.events.AddUniqueConstraintEvent; -import org.apache.hadoop.hive.metastore.events.AlterDatabaseEvent; -import org.apache.hadoop.hive.metastore.events.AlterPartitionEvent; -import org.apache.hadoop.hive.metastore.events.AlterTableEvent; -import org.apache.hadoop.hive.metastore.events.ConfigChangeEvent; -import org.apache.hadoop.hive.metastore.events.CreateDatabaseEvent; -import org.apache.hadoop.hive.metastore.events.CreateFunctionEvent; -import org.apache.hadoop.hive.metastore.events.CreateTableEvent; -import org.apache.hadoop.hive.metastore.events.DropConstraintEvent; -import org.apache.hadoop.hive.metastore.events.DropDatabaseEvent; -import org.apache.hadoop.hive.metastore.events.DropFunctionEvent; -import org.apache.hadoop.hive.metastore.events.DropPartitionEvent; -import org.apache.hadoop.hive.metastore.events.DropTableEvent; -import org.apache.hadoop.hive.metastore.events.InsertEvent; -import org.apache.hadoop.hive.metastore.events.LoadPartitionDoneEvent; -import org.apache.hadoop.hive.metastore.events.OpenTxnEvent; -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.ListenerEvent; +import org.apache.hadoop.hive.metastore.events.*; +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 +218,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 +392,17 @@ 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 = files; this.chksums = chksums; + this.subDirs = null; + } + FileChksumIterator(List files, List chksums, List subDirs) { + this.files = files; + this.chksums = chksums; + this.subDirs = subDirs; } @Override public boolean hasNext() { @@ -426,7 +411,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; } @@ -609,6 +595,7 @@ public void onAllocWriteId(AllocWriteIdEvent allocWriteIdEvent, Connection dbCon .buildAllocWriteIdMessage(allocWriteIdEvent.getTxnToWriteIdList(), dbName, tableName).toString()); event.setTableName(tableName); event.setDbName(dbName); + event.setMessageFormat(msgFactory.getMessageFormat()); try { addNotificationLog(event, allocWriteIdEvent, dbConn, sqlGenerator); } catch (SQLException e) { @@ -616,6 +603,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 +631,133 @@ 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 event 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())+ + "," + Integer.toString(now()) + ")"; + LOG.info("Going to execute insert <" + s + ">"); + //stmt.execute(s.replaceAll("\\\\", "\\\\\\\\")); + stmt.execute(s); + } else { + String existingFiles = rs.getString(1); + if (existingFiles.contains(sb.toString().replaceAll("\\\\", "\\\\\\\\"))) { + //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 = " + Integer.toString(now()) + + " where WNL_ID = " + nlId; + LOG.info("Going to execute update <" + s + ">"); + //stmt.executeUpdate(s.replaceAll("\\\\", "\\\\\\\\")); + stmt.execute(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 notification log" + e.getMessage()); + throw e; + } finally { + closeStmt(stmt); + close(rs); + } + } + static String quoteString(String input) { return "'" + input + "'"; } @@ -643,7 +774,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 +792,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 +821,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 +839,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 +865,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 +896,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 801de7aca2..27bda79370 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 @@ -84,6 +84,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; @@ -860,6 +861,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 WriteEventInfo 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..4462fc9291 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 @@ -238,6 +238,10 @@ public void onAbortTxn(AbortTxnEvent abortTxnEvent) throws MetaException { public void onAllocWriteId(AllocWriteIdEvent allocWriteIdEvent) throws MetaException { pushEventId(EventType.ALLOC_WRITE_ID, allocWriteIdEvent); } + + public void onAcidWrite(AllocWriteIdEvent allocWriteIdEvent) throws MetaException { + pushEventId(EventType.ALLOC_WRITE_ID, allocWriteIdEvent); + } } @SuppressWarnings("rawtypes") 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..2d1f8534d3 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 @@ -59,6 +59,7 @@ 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"); }}; primary = new WarehouseInstance(LOG, miniDFSCluster, overridesForHiveConf); replica = new WarehouseInstance(LOG, miniDFSCluster, overridesForHiveConf); @@ -66,6 +67,7 @@ public static void classLevelSetup() throws Exception { put("fs.defaultFS", miniDFSCluster.getFileSystem().getUri().toString()); put("hive.support.concurrency", "false"); put("hive.txn.manager", "org.apache.hadoop.hive.ql.lockmgr.DummyTxnManager"); + put("hive.exec.dynamic.partition.mode", "nonstrict"); }}; replicaNonAcid = new WarehouseInstance(LOG, miniDFSCluster, overridesForHiveConf1); } @@ -176,4 +178,263 @@ public void testTxnEventNonAcid() throws Throwable { .run("REPL STATUS " + replicatedDbName) .verifyResult(bootStrapDump.lastReplicationId); } + + @Test + public void testInsert() throws Throwable { + String tableName = testName.getMethodName(); + WarehouseInstance.Tuple bootStrapDump = primary.dump(primaryDbName, null); + replica.load(replicatedDbName, bootStrapDump.dumpLocation) + .run("REPL STATUS " + replicatedDbName) + .verifyResult(bootStrapDump.lastReplicationId); + + // create table will start and coomit the transaction + primary.run("use " + primaryDbName) + .run("CREATE TABLE " + tableName + " (key int, value int) PARTITIONED BY (load_date date) " + + "CLUSTERED BY(key) INTO 3 BUCKETS STORED AS ORC TBLPROPERTIES ('transactional'='true')") + .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-01') VALUES (3, 3)") + .run("INSERT INTO " + tableName + " partition (load_date='2016-03-02') VALUES (4, 4)") + .run("INSERT INTO " + tableName + " partition (load_date='2016-03-02') VALUES (5, 5)") + .run("INSERT INTO " + tableName + " partition (load_date='2016-03-03') VALUES (6, 6)") + .run("select key from " + tableName) + .verifyResults(new String[] {"1","2","3","4","5","6"}); + + WarehouseInstance.Tuple incrementalDump = + primary.dump(primaryDbName, bootStrapDump.lastReplicationId); + + replica.load(replicatedDbName, incrementalDump.dumpLocation) + .run("REPL STATUS " + replicatedDbName) + .verifyResult(incrementalDump.lastReplicationId) + .run("use " + replicatedDbName).run("SHOW TABLES LIKE '" + tableName + "'") + .verifyResult(tableName) + .run("select key from " + tableName) + .verifyResults(new String[] {"1","2","3","4","5","6"}); + + // Test the idempotent behavior of Open and Commit Txn + /*replica.load(replicatedDbName, incrementalDump.dumpLocation) + .run("REPL STATUS " + replicatedDbName) + .verifyResult(incrementalDump.lastReplicationId) + .run("use " + replicatedDbName).run("SHOW TABLES LIKE '" + tableName + "'") + .verifyResult(tableName) + .run("select key from " + tableName) + .verifyResults(new String[] {"1","2","3","4","5","6"});*/ + } + + @Test + public void testDelete() throws Throwable { + String tableName = testName.getMethodName(); + WarehouseInstance.Tuple bootStrapDump = primary.dump(primaryDbName, null); + replica.load(replicatedDbName, bootStrapDump.dumpLocation) + .run("REPL STATUS " + replicatedDbName) + .verifyResult(bootStrapDump.lastReplicationId); + + // create table will start and coomit the transaction + primary.run("use " + primaryDbName) + .run("CREATE TABLE " + tableName + " (key int, value int) PARTITIONED BY (load_date date) " + + "CLUSTERED BY(key) INTO 3 BUCKETS STORED AS ORC TBLPROPERTIES ('transactional'='true')") + .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-01') VALUES (3, 3)") + .run("INSERT INTO " + tableName + " partition (load_date='2016-03-02') VALUES (4, 4)") + .run("INSERT INTO " + tableName + " partition (load_date='2016-03-02') VALUES (5, 5)") + .run("INSERT INTO " + tableName + " partition (load_date='2016-03-03') VALUES (6, 6)") + .run("select key from " + tableName) + .verifyResults(new String[] {"1","2","3","4","5","6"}) + .run("delete from " + tableName) + .run("select count(*) from " + tableName) + .verifyResult("0"); + + WarehouseInstance.Tuple incrementalDump = + primary.dump(primaryDbName, bootStrapDump.lastReplicationId); + + replica.load(replicatedDbName, incrementalDump.dumpLocation) + .run("REPL STATUS " + replicatedDbName) + .verifyResult(incrementalDump.lastReplicationId) + .run("use " + replicatedDbName).run("SHOW TABLES LIKE '" + tableName + "'") + .verifyResult(tableName) + .run("select count(*) from " + tableName) + .verifyResult("0"); + + // Test the idempotent behavior of Open and Commit Txn + replica.load(replicatedDbName, incrementalDump.dumpLocation) + .run("REPL STATUS " + replicatedDbName) + .verifyResult(incrementalDump.lastReplicationId) + .run("use " + replicatedDbName).run("SHOW TABLES LIKE '" + tableName + "'") + .verifyResult(tableName) + .run("select count(*) from " + tableName) + .verifyResult("0"); + } + + @Test + public void testUpdate() throws Throwable { + String tableName = testName.getMethodName(); + WarehouseInstance.Tuple bootStrapDump = primary.dump(primaryDbName, null); + replica.load(replicatedDbName, bootStrapDump.dumpLocation) + .run("REPL STATUS " + replicatedDbName) + .verifyResult(bootStrapDump.lastReplicationId); + + // create table will start and coomit the transaction + primary.run("use " + primaryDbName) + .run("CREATE TABLE " + tableName + " (key int, value int) PARTITIONED BY (load_date date) " + + "CLUSTERED BY(key) INTO 3 BUCKETS STORED AS ORC TBLPROPERTIES ('transactional'='true')") + .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-01') VALUES (3, 3)") + .run("INSERT INTO " + tableName + " partition (load_date='2016-03-02') VALUES (4, 4)") + .run("INSERT INTO " + tableName + " partition (load_date='2016-03-02') VALUES (5, 5)") + .run("INSERT INTO " + tableName + " partition (load_date='2016-03-03') VALUES (6, 6)") + .run("select key from " + tableName) + .verifyResults(new String[] {"1","2","3","4","5","6"}) + .run("update " + tableName + " set value = 100 where key >= 3") + .run("select value from " + tableName) + .verifyResults(new String[] {"1", "2" , "100", "100", "100", "100"}); + + WarehouseInstance.Tuple incrementalDump = + primary.dump(primaryDbName, bootStrapDump.lastReplicationId); + + replica.load(replicatedDbName, incrementalDump.dumpLocation) + .run("REPL STATUS " + replicatedDbName) + .verifyResult(incrementalDump.lastReplicationId) + .run("use " + replicatedDbName).run("SHOW TABLES LIKE '" + tableName + "'") + .verifyResult(tableName) + .run("select value from " + tableName) + .verifyResults(new String[] {"1", "2" , "100", "100", "100", "100"}); + + // Test the idempotent behavior of Open and Commit Txn + replica.load(replicatedDbName, incrementalDump.dumpLocation) + .run("REPL STATUS " + replicatedDbName) + .verifyResult(incrementalDump.lastReplicationId) + .run("use " + replicatedDbName).run("SHOW TABLES LIKE '" + tableName + "'") + .verifyResult(tableName) + .run("select value from " + tableName) + .verifyResults(new String[] {"1", "2" , "100", "100", "100", "100"}); + } + + @Test + public void testInsertInto() throws Throwable { + String tableName = testName.getMethodName(); + WarehouseInstance.Tuple bootStrapDump = primary.dump(primaryDbName, null); + replica.load(replicatedDbName, bootStrapDump.dumpLocation) + .run("REPL STATUS " + replicatedDbName) + .verifyResult(bootStrapDump.lastReplicationId); + + // create table will start and coomit the transaction + primary.run("use " + primaryDbName) + .run("CREATE TABLE " + tableName + " (key int, value int) PARTITIONED BY (load_date date) " + + "CLUSTERED BY(key) INTO 3 BUCKETS STORED AS ORC TBLPROPERTIES ('transactional'='true')") + .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-01') VALUES (3, 3)") + .run("INSERT INTO " + tableName + " partition (load_date='2016-03-02') VALUES (4, 4)") + .run("INSERT INTO " + tableName + " partition (load_date='2016-03-02') VALUES (5, 5)") + .run("INSERT INTO " + tableName + " partition (load_date='2016-03-03') VALUES (6, 6)") + .run("select key from " + tableName) + .verifyResults(new String[] {"1","2","3","4","5","6"}) + .run("CREATE TABLE " + tableName + "_next (key int, value int) PARTITIONED BY (load_date date) " + + "CLUSTERED BY(key) INTO 3 BUCKETS STORED AS ORC TBLPROPERTIES ('transactional'='true')") + .run("insert into " + tableName + "_next partition (load_date) select * from " + tableName) + .run("select key from " + tableName + "_next") + .verifyResults(new String[] {"1","2","3","4","5","6"}); + + WarehouseInstance.Tuple incrementalDump = + primary.dump(primaryDbName, bootStrapDump.lastReplicationId); + + replica.load(replicatedDbName, incrementalDump.dumpLocation) + .run("REPL STATUS " + replicatedDbName) + .verifyResult(incrementalDump.lastReplicationId) + .run("use " + replicatedDbName) + .run("select key from " + tableName) + .verifyResults(new String[] {"1", "2" , "3", "4", "5", "6"}) + .run("select key from " + tableName + "_next") + .verifyResults(new String[] {"1","2","3","4","5","6"}); + + // Test the idempotent behavior of Open and Commit Txn + replica.load(replicatedDbName, incrementalDump.dumpLocation) + .run("REPL STATUS " + replicatedDbName) + .verifyResult(incrementalDump.lastReplicationId) + .run("use " + replicatedDbName) + .run("select key from " + tableName) + .verifyResults(new String[] {"1", "2" , "3", "4", "5", "6"}) + .run("select key from " + tableName + "_next") + .verifyResults(new String[] {"1","2","3","4","5","6"}); + } + + @Test + public void testMerge() throws Throwable { + String tableName = testName.getMethodName(); + WarehouseInstance.Tuple bootStrapDump = primary.dump(primaryDbName, null); + replica.load(replicatedDbName, bootStrapDump.dumpLocation) + .run("REPL STATUS " + replicatedDbName) + .verifyResult(bootStrapDump.lastReplicationId); + + // create table will start and coomit the transaction + 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 " + + " ('transactional'='true')") + .run("SHOW TABLES LIKE '" + tableName + "'") + .verifyResult(tableName) + .run("CREATE TABLE " + tableName + "_next ( ID int, TranValue string, tran_date string) STORED AS ORC ") + .run("SHOW TABLES LIKE '" + tableName + "_next'") + .verifyResult(tableName+"_next") + .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 " + tableName + "_next 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 " + tableName + "_next") + .verifyResults(new String[] {"1", "4", "7", "8", "8", "11"}) + .run("MERGE INTO " + tableName + " AS T USING " + tableName + "_next 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"}); + + WarehouseInstance.Tuple incrementalDump = + primary.dump(primaryDbName, bootStrapDump.lastReplicationId); + + replica.load(replicatedDbName, incrementalDump.dumpLocation) + .run("REPL STATUS " + replicatedDbName) + .verifyResult(incrementalDump.lastReplicationId) + .run("use " + replicatedDbName) + .run("select last_update_user from " + tableName) + .verifyResults(new String[] {"creation","creation","creation","creation","creation", + "creation","creation","merge_update","merge_insert","merge_insert"}) + .run("select key from " + tableName + "_next") + .verifyResults(new String[] {"1","2","3","4","5","6"}) + .run("select ID from " + tableName + "_next") + .verifyResults(new String[] {"1", "4", "7", "8", "8", "11"}); + + // Test the idempotent behavior of Open and Commit Txn + replica.load(replicatedDbName, incrementalDump.dumpLocation) + .run("REPL STATUS " + replicatedDbName) + .verifyResult(incrementalDump.lastReplicationId) + .run("use " + replicatedDbName) + .run("select last_update_user from " + tableName) + .verifyResults(new String[] {"creation","creation","creation","creation","creation", + "creation","creation","merge_update","merge_insert","merge_insert"}) + .run("select key from " + tableName + "_next") + .verifyResults(new String[] {"1","2","3","4","5","6"}) + .run("select ID from " + tableName + "_next") + .verifyResults(new String[] {"1", "4", "7", "8", "8", "11"}); + } } 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 6fff7e7421..62b18a262a 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..1541c6964c 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,19 @@ 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.setDatabases(work.getDbList()); + commitTxnRequest.setTables(work.getTableList()); + commitTxnRequest.setWriteIds(work.getWriteIdList()); + commitTxnRequest.setPartitions(work.getPartitionList()); + txnManager.replCommitTxn(commitTxnRequest); + LOG.info("Replayed CommitTxn Event for replPolicy " + replPolicy + " with srcTxn " + txnId + "DBs:" + + work.getDbList() + " Tables: " + work.getTableList() + " Partitions: " + work.getPartitionList() + + "WriteIds " + work.getWriteIdList()); 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..8cc070d31b 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 @@ -23,6 +23,8 @@ 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; @@ -36,9 +38,10 @@ private String dbName; private String tableName; private String replPolicy; - private List txnIds; + private List txnIds, writeIdList; private List txnToWriteIdList; private ReplicationSpec replicationSpec; + private List dbList, tableList, partitionList; /** * OperationType. @@ -59,6 +62,10 @@ public ReplTxnWork(String replPolicy, String dbName, String tableName, List txnIds, OperationType type, @@ -76,6 +83,28 @@ public ReplTxnWork(String replPolicy, String dbName, String tableName, Operation this(replPolicy, dbName, tableName, null, type, txnToWriteIdList, replicationSpec); } + public void addWriteEventInfo(String db, String table, String partition, Long writeId) { + if (this.dbList == null) { + this.dbList = new ArrayList<>(); + } + this.dbList.add(db); + + if (this.tableList == null) { + this.tableList = new ArrayList<>(); + } + this.tableList.add(table); + + if (this.partitionList == null) { + this.partitionList = new ArrayList<>(); + } + this.partitionList.add(partition); + + if (this.writeIdList == null) { + this.writeIdList = new ArrayList<>(); + } + this.writeIdList.add(writeId); + } + public List getTxnIds() { return txnIds; } @@ -103,4 +132,20 @@ public OperationType getOperationType() { public ReplicationSpec getReplicationSpec() { return replicationSpec; } + + public List getWriteIdList() { + return writeIdList; + } + + public List getDbList() { + return dbList; + } + + public List getTableList() { + return tableList; + } + + public List getPartitionList() { + return partitionList; + } } diff --git a/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/bootstrap/load/table/LoadPartitions.java b/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/bootstrap/load/table/LoadPartitions.java index a42c299537..ab562993c5 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/bootstrap/load/table/LoadPartitions.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/bootstrap/load/table/LoadPartitions.java @@ -34,6 +34,7 @@ import org.apache.hadoop.hive.ql.exec.repl.bootstrap.load.util.Context; import org.apache.hadoop.hive.ql.exec.repl.bootstrap.load.util.PathUtils; import org.apache.hadoop.hive.ql.exec.util.DAGTraversal; +import org.apache.hadoop.hive.ql.io.AcidUtils; import org.apache.hadoop.hive.ql.lockmgr.HiveTxnManager; import org.apache.hadoop.hive.ql.metadata.HiveException; import org.apache.hadoop.hive.ql.metadata.Partition; @@ -46,9 +47,9 @@ import org.apache.hadoop.hive.ql.plan.DDLWork; import org.apache.hadoop.hive.ql.plan.ImportTableDesc; 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; import org.datanucleus.util.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -60,6 +61,7 @@ import java.util.Iterator; import java.util.List; import java.util.Map; +import java.util.Collections; import static org.apache.hadoop.hive.ql.exec.repl.bootstrap.load.ReplicationState.PartitionState; import static org.apache.hadoop.hive.ql.parse.ImportSemanticAnalyzer.isPartitioned; @@ -244,16 +246,23 @@ private void addPartition(boolean hasMorePartitions, AddPartitionDesc addPartiti */ private Task movePartitionTask(Table table, AddPartitionDesc.OnePartitionDesc partSpec, Path tmpPath) { - // Note: this sets LoadFileType incorrectly for ACID; is that relevant for load? - // See setLoadFileType and setIsAcidIow calls elsewhere for an example. - LoadTableDesc loadTableWork = new LoadTableDesc( - tmpPath, Utilities.getTableDesc(table), partSpec.getPartSpec(), - event.replicationSpec().isReplace() ? LoadFileType.REPLACE_ALL : LoadFileType.OVERWRITE_EXISTING, - txnMgr.getCurrentTxnId() - ); - loadTableWork.setInheritTableSpecs(false); - MoveWork work = new MoveWork(new HashSet<>(), new HashSet<>(), loadTableWork, null, false); - return TaskFactory.get(work, context.hiveConf); + MoveWork moveWork = new MoveWork(new HashSet<>(), new HashSet<>(), + null, null, false); + if (AcidUtils.isTransactionalTable(table)) { + LoadMultiFilesDesc loadFilesWork = new LoadMultiFilesDesc( + Collections.singletonList(tmpPath), + Collections.singletonList(new Path(partSpec.getLocation())), + true, null, null); + moveWork.setMultiFilesDesc(loadFilesWork); + } else { + LoadTableDesc loadTableWork = new LoadTableDesc( + tmpPath, Utilities.getTableDesc(table), partSpec.getPartSpec(), + event.replicationSpec().isReplace() ? LoadFileType.REPLACE_ALL : LoadFileType.OVERWRITE_EXISTING, 0L + ); + loadTableWork.setInheritTableSpecs(false); + moveWork.setLoadTableWork(loadTableWork); + } + return TaskFactory.get(moveWork, context.hiveConf); } private Path locationOnReplicaWarehouse(Table table, AddPartitionDesc.OnePartitionDesc partSpec) diff --git a/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/bootstrap/load/table/LoadTable.java b/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/bootstrap/load/table/LoadTable.java index ddb26e529e..9e05eb4014 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/bootstrap/load/table/LoadTable.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/bootstrap/load/table/LoadTable.java @@ -34,6 +34,7 @@ import org.apache.hadoop.hive.ql.exec.repl.bootstrap.load.util.Context; import org.apache.hadoop.hive.ql.exec.repl.bootstrap.load.util.PathUtils; import org.apache.hadoop.hive.ql.exec.util.DAGTraversal; +import org.apache.hadoop.hive.ql.io.AcidUtils; import org.apache.hadoop.hive.ql.lockmgr.HiveTxnManager; import org.apache.hadoop.hive.ql.metadata.Table; import org.apache.hadoop.hive.ql.parse.EximUtil; @@ -42,10 +43,10 @@ import org.apache.hadoop.hive.ql.parse.SemanticException; import org.apache.hadoop.hive.ql.parse.repl.ReplLogger; import org.apache.hadoop.hive.ql.plan.ImportTableDesc; +import org.apache.hadoop.hive.ql.plan.LoadMultiFilesDesc; import org.apache.hadoop.hive.ql.plan.LoadTableDesc; 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; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -55,6 +56,7 @@ import java.util.HashSet; import java.util.List; import java.util.TreeMap; +import java.util.Collections; import static org.apache.hadoop.hive.ql.parse.ImportSemanticAnalyzer.isPartitioned; @@ -229,14 +231,21 @@ private String location(ImportTableDesc tblDesc, Database parentDb) Task copyTask = ReplCopyTask.getLoadCopyTask(replicationSpec, dataPath, tmpPath, context.hiveConf); - LoadTableDesc loadTableWork = new LoadTableDesc( - tmpPath, Utilities.getTableDesc(table), new TreeMap<>(), - replicationSpec.isReplace() ? LoadFileType.REPLACE_ALL : LoadFileType.OVERWRITE_EXISTING, - //todo: what is the point of this? If this is for replication, who would have opened a txn? - txnMgr.getCurrentTxnId() - ); - MoveWork moveWork = - new MoveWork(new HashSet<>(), new HashSet<>(), loadTableWork, null, false); + MoveWork moveWork = new MoveWork(new HashSet<>(), new HashSet<>(), + null, null, false); + if (AcidUtils.isTransactionalTable(table)) { + LoadMultiFilesDesc loadFilesWork = new LoadMultiFilesDesc( + Collections.singletonList(tmpPath), + Collections.singletonList(tgtPath), + true, null, null); + moveWork.setMultiFilesDesc(loadFilesWork); + } else { + LoadTableDesc loadTableWork = new LoadTableDesc( + tmpPath, Utilities.getTableDesc(table), new TreeMap<>(), + replicationSpec.isReplace() ? LoadFileType.REPLACE_ALL : LoadFileType.OVERWRITE_EXISTING, 0L + ); + moveWork.setLoadTableWork(loadTableWork); + } Task loadTableTask = TaskFactory.get(moveWork, context.hiveConf); copyTask.addDependentTask(loadTableTask); return copyTask; 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..0d3b9c42dd 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,14 @@ 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..1b3c91d368 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,10 @@ /** * 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 - * @throws LockException in case of failure to commit the transaction. + * + * @param rqst@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 49c355be01..fb6510de1f 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; @@ -1717,8 +1719,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) || isAcidIUDoperation) { + newFiles = Collections.synchronizedList(new ArrayList()); + } } @@ -1781,7 +1787,11 @@ else if(!isAcidIUDoperation && isFullAcidTable) { // 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 (isAcidIUDoperation) { + 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."); @@ -1854,6 +1864,12 @@ else if(!isAcidIUDoperation && isFullAcidTable) { } 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 (isAcidIUDoperation && (null != newFiles)) { + addWriteNotificationLog(tbl, partSpec, newFiles, writeId); + } } else { setStatsPropAndAlterPartition(hasFollowingStatsTask, tbl, newTPart); } @@ -2383,7 +2399,11 @@ else if(!isAcidIUDoperation && isFullAcidTable) { alterTable(tbl, environmentContext); - fireInsertEvent(tbl, null, (loadFileType == LoadFileType.REPLACE_ALL), newFiles); + if (isAcidIUDoperation) { + addWriteNotificationLog(tbl, null, newFiles, writeId); + } else { + fireInsertEvent(tbl, null, (loadFileType == LoadFileType.REPLACE_ALL), newFiles); + } } /** @@ -2634,6 +2654,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)) { @@ -2710,6 +2771,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 = @@ -2719,6 +2781,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 ac44be5e0b..7ff22e5b46 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 @@ -57,6 +57,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; @@ -333,7 +334,8 @@ 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 && replicationSpec != null && !replicationSpec.isInReplicationScope()) { writeId = txnMgr.getTableWriteId(tblDesc.getDatabaseName(), tblDesc.getTableName()); stmtId = txnMgr.getStmtIdAndIncrement(); } @@ -499,8 +501,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()) { @@ -526,17 +530,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/repl/CopyUtils.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/CopyUtils.java index 4e61280c9e..98689e094f 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..b3f31d4ea9 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 @@ -160,12 +160,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/AddPartitionHandler.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/events/AddPartitionHandler.java index cf159051a9..f3dd2efb67 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/events/AddPartitionHandler.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/events/AddPartitionHandler.java @@ -19,9 +19,11 @@ import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; +import org.apache.hadoop.hive.conf.HiveConf; import org.apache.hadoop.hive.metastore.api.NotificationEvent; import org.apache.hadoop.hive.metastore.messaging.AddPartitionMessage; import org.apache.hadoop.hive.metastore.messaging.PartitionFiles; +import org.apache.hadoop.hive.ql.io.AcidUtils; import org.apache.hadoop.hive.ql.metadata.HiveException; import org.apache.hadoop.hive.ql.metadata.Partition; import org.apache.hadoop.hive.ql.metadata.Table; @@ -57,6 +59,11 @@ public void handle(Context withinContext) throws Exception { return; } + // In case of ACID tables, file creation will be done by write event. + if (AcidUtils.isTransactionalTable(qlMdTable)) { + withinContext.replicationSpec.setIsMetadataOnly(true); + } + Iterable ptns = apm.getPartitionObjs(); if ((ptns == null) || (!ptns.iterator().hasNext())) { LOG.debug("Event#{} was an ADD_PTN_EVENT with no partitions"); diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/events/AlterPartitionHandler.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/events/AlterPartitionHandler.java index cde4eed986..91ace6b7aa 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/events/AlterPartitionHandler.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/events/AlterPartitionHandler.java @@ -20,6 +20,7 @@ import org.apache.hadoop.fs.Path; import org.apache.hadoop.hive.metastore.api.NotificationEvent; import org.apache.hadoop.hive.metastore.messaging.AlterPartitionMessage; +import org.apache.hadoop.hive.ql.io.AcidUtils; import org.apache.hadoop.hive.ql.metadata.Partition; import org.apache.hadoop.hive.ql.metadata.Table; import org.apache.hadoop.hive.ql.parse.EximUtil; @@ -92,7 +93,10 @@ public void handle(Context withinContext) throws Exception { if (!Utils.shouldReplicate(withinContext.replicationSpec, qlMdTable, withinContext.hiveConf)) { return; } - + // In case of ACID tables, file creation will be done by write event. + if (AcidUtils.isTransactionalTable(qlMdTable)) { + withinContext.replicationSpec.setIsMetadataOnly(true); + } if (Scenario.ALTER == scenario) { withinContext.replicationSpec.setIsMetadataOnly(true); List partitions = new ArrayList<>(); diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/events/AlterTableHandler.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/events/AlterTableHandler.java index 5f582b32d3..ff18567e16 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/events/AlterTableHandler.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/events/AlterTableHandler.java @@ -20,6 +20,7 @@ import org.apache.hadoop.fs.Path; import org.apache.hadoop.hive.metastore.api.NotificationEvent; import org.apache.hadoop.hive.metastore.messaging.AlterTableMessage; +import org.apache.hadoop.hive.ql.io.AcidUtils; import org.apache.hadoop.hive.ql.metadata.Table; import org.apache.hadoop.hive.ql.parse.EximUtil; @@ -85,7 +86,10 @@ public void handle(Context withinContext) throws Exception { .shouldReplicate(withinContext.replicationSpec, qlMdTableBefore, withinContext.hiveConf)) { return; } - + // In case of ACID tables, file creation will be done by write event. + if (AcidUtils.isTransactionalTable(qlMdTableBefore)) { + withinContext.replicationSpec.setIsMetadataOnly(true); + } if (Scenario.ALTER == scenario) { withinContext.replicationSpec.setIsMetadataOnly(true); Table qlMdTableAfter = new Table(after); 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..61f77cc251 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,102 @@ 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()); + + WriteEventInfo writeEventInfo = HiveMetaStore.HMSHandler.getMSForConf(withinContext.hiveConf). + getAllWriteEventInfo(commitTxnMessage.getTxnId()); + int numEntry = (writeEventInfo != null && writeEventInfo.getTables() != null ? writeEventInfo.getTables().size() : 0); + if (numEntry != 0) { + commitTxnMessage.addWriteEventInfo(writeEventInfo.getDatabases(), writeEventInfo.getTables(), + writeEventInfo.getPartitions(), writeEventInfo.getWriteIds(), writeEventInfo.getTableObjs(), + writeEventInfo.getPartitionObjs(), writeEventInfo.getFiles()); + 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/CreateTableHandler.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/events/CreateTableHandler.java index 3804396626..251731f6a9 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/events/CreateTableHandler.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/events/CreateTableHandler.java @@ -21,6 +21,7 @@ import org.apache.hadoop.fs.Path; import org.apache.hadoop.hive.metastore.api.NotificationEvent; import org.apache.hadoop.hive.metastore.messaging.CreateTableMessage; +import org.apache.hadoop.hive.ql.io.AcidUtils; import org.apache.hadoop.hive.ql.metadata.Table; import org.apache.hadoop.hive.ql.parse.EximUtil; import org.apache.hadoop.hive.ql.parse.repl.DumpType; @@ -52,6 +53,10 @@ public void handle(Context withinContext) throws Exception { if (!Utils.shouldReplicate(withinContext.replicationSpec, qlMdTable, withinContext.hiveConf)) { return; } + // In case of ACID tables, file creation will be done by write event. + if (AcidUtils.isTransactionalTable(qlMdTable)) { + withinContext.replicationSpec.setIsMetadataOnly(true); + } if (qlMdTable.isView()) { withinContext.replicationSpec.setIsMetadataOnly(true); 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..564f043c33 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,16 +17,23 @@ */ package org.apache.hadoop.hive.ql.parse.repl.load.message; +import org.apache.hadoop.fs.Path; +import org.apache.hadoop.hive.conf.HiveConf; import org.apache.hadoop.hive.metastore.messaging.CommitTxnMessage; import org.apache.hadoop.hive.ql.exec.ReplTxnWork; import org.apache.hadoop.hive.ql.exec.Task; import org.apache.hadoop.hive.ql.exec.TaskFactory; import org.apache.hadoop.hive.ql.io.AcidUtils; +import org.apache.hadoop.hive.ql.metadata.HiveException; import org.apache.hadoop.hive.ql.metadata.HiveUtils; +import org.apache.hadoop.hive.ql.metadata.InvalidTableException; +import org.apache.hadoop.hive.ql.metadata.Table; +import org.apache.hadoop.hive.ql.parse.ReplicationSpec; import org.apache.hadoop.hive.ql.parse.SemanticException; import java.io.Serializable; -import java.util.Collections; +import java.util.ArrayList; import java.util.List; +import java.util.Map; /** * CommitTxnHandler @@ -35,20 +42,56 @@ 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; + } + + work.addWriteEventInfo(dbName, tblName, msg.getPartitions().get(idx), msg.getWriteIds().get(idx)); + } + + 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 dfa13a0614..103c614ed5 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 _size1187; - ::apache::thrift::protocol::TType _etype1190; - xfer += iprot->readListBegin(_etype1190, _size1187); - this->success.resize(_size1187); - uint32_t _i1191; - for (_i1191 = 0; _i1191 < _size1187; ++_i1191) + uint32_t _size1289; + ::apache::thrift::protocol::TType _etype1292; + xfer += iprot->readListBegin(_etype1292, _size1289); + this->success.resize(_size1289); + uint32_t _i1293; + for (_i1293 = 0; _i1293 < _size1289; ++_i1293) { - xfer += iprot->readString(this->success[_i1191]); + xfer += iprot->readString(this->success[_i1293]); } 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 _iter1192; - for (_iter1192 = this->success.begin(); _iter1192 != this->success.end(); ++_iter1192) + std::vector ::const_iterator _iter1294; + for (_iter1294 = this->success.begin(); _iter1294 != this->success.end(); ++_iter1294) { - xfer += oprot->writeString((*_iter1192)); + xfer += oprot->writeString((*_iter1294)); } 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 _size1193; - ::apache::thrift::protocol::TType _etype1196; - xfer += iprot->readListBegin(_etype1196, _size1193); - (*(this->success)).resize(_size1193); - uint32_t _i1197; - for (_i1197 = 0; _i1197 < _size1193; ++_i1197) + uint32_t _size1295; + ::apache::thrift::protocol::TType _etype1298; + xfer += iprot->readListBegin(_etype1298, _size1295); + (*(this->success)).resize(_size1295); + uint32_t _i1299; + for (_i1299 = 0; _i1299 < _size1295; ++_i1299) { - xfer += iprot->readString((*(this->success))[_i1197]); + xfer += iprot->readString((*(this->success))[_i1299]); } 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 _size1198; - ::apache::thrift::protocol::TType _etype1201; - xfer += iprot->readListBegin(_etype1201, _size1198); - this->success.resize(_size1198); - uint32_t _i1202; - for (_i1202 = 0; _i1202 < _size1198; ++_i1202) + uint32_t _size1300; + ::apache::thrift::protocol::TType _etype1303; + xfer += iprot->readListBegin(_etype1303, _size1300); + this->success.resize(_size1300); + uint32_t _i1304; + for (_i1304 = 0; _i1304 < _size1300; ++_i1304) { - xfer += iprot->readString(this->success[_i1202]); + xfer += iprot->readString(this->success[_i1304]); } 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 _iter1203; - for (_iter1203 = this->success.begin(); _iter1203 != this->success.end(); ++_iter1203) + std::vector ::const_iterator _iter1305; + for (_iter1305 = this->success.begin(); _iter1305 != this->success.end(); ++_iter1305) { - xfer += oprot->writeString((*_iter1203)); + xfer += oprot->writeString((*_iter1305)); } 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 _size1204; - ::apache::thrift::protocol::TType _etype1207; - xfer += iprot->readListBegin(_etype1207, _size1204); - (*(this->success)).resize(_size1204); - uint32_t _i1208; - for (_i1208 = 0; _i1208 < _size1204; ++_i1208) + uint32_t _size1306; + ::apache::thrift::protocol::TType _etype1309; + xfer += iprot->readListBegin(_etype1309, _size1306); + (*(this->success)).resize(_size1306); + uint32_t _i1310; + for (_i1310 = 0; _i1310 < _size1306; ++_i1310) { - xfer += iprot->readString((*(this->success))[_i1208]); + xfer += iprot->readString((*(this->success))[_i1310]); } 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 _size1209; - ::apache::thrift::protocol::TType _ktype1210; - ::apache::thrift::protocol::TType _vtype1211; - xfer += iprot->readMapBegin(_ktype1210, _vtype1211, _size1209); - uint32_t _i1213; - for (_i1213 = 0; _i1213 < _size1209; ++_i1213) + uint32_t _size1311; + ::apache::thrift::protocol::TType _ktype1312; + ::apache::thrift::protocol::TType _vtype1313; + xfer += iprot->readMapBegin(_ktype1312, _vtype1313, _size1311); + uint32_t _i1315; + for (_i1315 = 0; _i1315 < _size1311; ++_i1315) { - std::string _key1214; - xfer += iprot->readString(_key1214); - Type& _val1215 = this->success[_key1214]; - xfer += _val1215.read(iprot); + std::string _key1316; + xfer += iprot->readString(_key1316); + Type& _val1317 = this->success[_key1316]; + xfer += _val1317.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 _iter1216; - for (_iter1216 = this->success.begin(); _iter1216 != this->success.end(); ++_iter1216) + std::map ::const_iterator _iter1318; + for (_iter1318 = this->success.begin(); _iter1318 != this->success.end(); ++_iter1318) { - xfer += oprot->writeString(_iter1216->first); - xfer += _iter1216->second.write(oprot); + xfer += oprot->writeString(_iter1318->first); + xfer += _iter1318->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 _size1217; - ::apache::thrift::protocol::TType _ktype1218; - ::apache::thrift::protocol::TType _vtype1219; - xfer += iprot->readMapBegin(_ktype1218, _vtype1219, _size1217); - uint32_t _i1221; - for (_i1221 = 0; _i1221 < _size1217; ++_i1221) + uint32_t _size1319; + ::apache::thrift::protocol::TType _ktype1320; + ::apache::thrift::protocol::TType _vtype1321; + xfer += iprot->readMapBegin(_ktype1320, _vtype1321, _size1319); + uint32_t _i1323; + for (_i1323 = 0; _i1323 < _size1319; ++_i1323) { - std::string _key1222; - xfer += iprot->readString(_key1222); - Type& _val1223 = (*(this->success))[_key1222]; - xfer += _val1223.read(iprot); + std::string _key1324; + xfer += iprot->readString(_key1324); + Type& _val1325 = (*(this->success))[_key1324]; + xfer += _val1325.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 _size1224; - ::apache::thrift::protocol::TType _etype1227; - xfer += iprot->readListBegin(_etype1227, _size1224); - this->success.resize(_size1224); - uint32_t _i1228; - for (_i1228 = 0; _i1228 < _size1224; ++_i1228) + uint32_t _size1326; + ::apache::thrift::protocol::TType _etype1329; + xfer += iprot->readListBegin(_etype1329, _size1326); + this->success.resize(_size1326); + uint32_t _i1330; + for (_i1330 = 0; _i1330 < _size1326; ++_i1330) { - xfer += this->success[_i1228].read(iprot); + xfer += this->success[_i1330].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 _iter1229; - for (_iter1229 = this->success.begin(); _iter1229 != this->success.end(); ++_iter1229) + std::vector ::const_iterator _iter1331; + for (_iter1331 = this->success.begin(); _iter1331 != this->success.end(); ++_iter1331) { - xfer += (*_iter1229).write(oprot); + xfer += (*_iter1331).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 _size1230; - ::apache::thrift::protocol::TType _etype1233; - xfer += iprot->readListBegin(_etype1233, _size1230); - (*(this->success)).resize(_size1230); - uint32_t _i1234; - for (_i1234 = 0; _i1234 < _size1230; ++_i1234) + uint32_t _size1332; + ::apache::thrift::protocol::TType _etype1335; + xfer += iprot->readListBegin(_etype1335, _size1332); + (*(this->success)).resize(_size1332); + uint32_t _i1336; + for (_i1336 = 0; _i1336 < _size1332; ++_i1336) { - xfer += (*(this->success))[_i1234].read(iprot); + xfer += (*(this->success))[_i1336].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 _size1235; - ::apache::thrift::protocol::TType _etype1238; - xfer += iprot->readListBegin(_etype1238, _size1235); - this->success.resize(_size1235); - uint32_t _i1239; - for (_i1239 = 0; _i1239 < _size1235; ++_i1239) + uint32_t _size1337; + ::apache::thrift::protocol::TType _etype1340; + xfer += iprot->readListBegin(_etype1340, _size1337); + this->success.resize(_size1337); + uint32_t _i1341; + for (_i1341 = 0; _i1341 < _size1337; ++_i1341) { - xfer += this->success[_i1239].read(iprot); + xfer += this->success[_i1341].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 _iter1240; - for (_iter1240 = this->success.begin(); _iter1240 != this->success.end(); ++_iter1240) + std::vector ::const_iterator _iter1342; + for (_iter1342 = this->success.begin(); _iter1342 != this->success.end(); ++_iter1342) { - xfer += (*_iter1240).write(oprot); + xfer += (*_iter1342).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 _size1241; - ::apache::thrift::protocol::TType _etype1244; - xfer += iprot->readListBegin(_etype1244, _size1241); - (*(this->success)).resize(_size1241); - uint32_t _i1245; - for (_i1245 = 0; _i1245 < _size1241; ++_i1245) + 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) { - xfer += (*(this->success))[_i1245].read(iprot); + xfer += (*(this->success))[_i1347].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 _size1246; - ::apache::thrift::protocol::TType _etype1249; - xfer += iprot->readListBegin(_etype1249, _size1246); - this->success.resize(_size1246); - uint32_t _i1250; - for (_i1250 = 0; _i1250 < _size1246; ++_i1250) + uint32_t _size1348; + ::apache::thrift::protocol::TType _etype1351; + xfer += iprot->readListBegin(_etype1351, _size1348); + this->success.resize(_size1348); + uint32_t _i1352; + for (_i1352 = 0; _i1352 < _size1348; ++_i1352) { - xfer += this->success[_i1250].read(iprot); + xfer += this->success[_i1352].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 _iter1251; - for (_iter1251 = this->success.begin(); _iter1251 != this->success.end(); ++_iter1251) + std::vector ::const_iterator _iter1353; + for (_iter1353 = this->success.begin(); _iter1353 != this->success.end(); ++_iter1353) { - xfer += (*_iter1251).write(oprot); + xfer += (*_iter1353).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 _size1252; - ::apache::thrift::protocol::TType _etype1255; - xfer += iprot->readListBegin(_etype1255, _size1252); - (*(this->success)).resize(_size1252); - uint32_t _i1256; - for (_i1256 = 0; _i1256 < _size1252; ++_i1256) + uint32_t _size1354; + ::apache::thrift::protocol::TType _etype1357; + xfer += iprot->readListBegin(_etype1357, _size1354); + (*(this->success)).resize(_size1354); + uint32_t _i1358; + for (_i1358 = 0; _i1358 < _size1354; ++_i1358) { - xfer += (*(this->success))[_i1256].read(iprot); + xfer += (*(this->success))[_i1358].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 _size1257; - ::apache::thrift::protocol::TType _etype1260; - xfer += iprot->readListBegin(_etype1260, _size1257); - this->success.resize(_size1257); - uint32_t _i1261; - for (_i1261 = 0; _i1261 < _size1257; ++_i1261) + uint32_t _size1359; + ::apache::thrift::protocol::TType _etype1362; + xfer += iprot->readListBegin(_etype1362, _size1359); + this->success.resize(_size1359); + uint32_t _i1363; + for (_i1363 = 0; _i1363 < _size1359; ++_i1363) { - xfer += this->success[_i1261].read(iprot); + xfer += this->success[_i1363].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 _iter1262; - for (_iter1262 = this->success.begin(); _iter1262 != this->success.end(); ++_iter1262) + std::vector ::const_iterator _iter1364; + for (_iter1364 = this->success.begin(); _iter1364 != this->success.end(); ++_iter1364) { - xfer += (*_iter1262).write(oprot); + xfer += (*_iter1364).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 _size1263; - ::apache::thrift::protocol::TType _etype1266; - xfer += iprot->readListBegin(_etype1266, _size1263); - (*(this->success)).resize(_size1263); - uint32_t _i1267; - for (_i1267 = 0; _i1267 < _size1263; ++_i1267) + uint32_t _size1365; + ::apache::thrift::protocol::TType _etype1368; + xfer += iprot->readListBegin(_etype1368, _size1365); + (*(this->success)).resize(_size1365); + uint32_t _i1369; + for (_i1369 = 0; _i1369 < _size1365; ++_i1369) { - xfer += (*(this->success))[_i1267].read(iprot); + xfer += (*(this->success))[_i1369].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 _size1268; - ::apache::thrift::protocol::TType _etype1271; - xfer += iprot->readListBegin(_etype1271, _size1268); - this->primaryKeys.resize(_size1268); - uint32_t _i1272; - for (_i1272 = 0; _i1272 < _size1268; ++_i1272) + uint32_t _size1370; + ::apache::thrift::protocol::TType _etype1373; + xfer += iprot->readListBegin(_etype1373, _size1370); + this->primaryKeys.resize(_size1370); + uint32_t _i1374; + for (_i1374 = 0; _i1374 < _size1370; ++_i1374) { - xfer += this->primaryKeys[_i1272].read(iprot); + xfer += this->primaryKeys[_i1374].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 _size1273; - ::apache::thrift::protocol::TType _etype1276; - xfer += iprot->readListBegin(_etype1276, _size1273); - this->foreignKeys.resize(_size1273); - uint32_t _i1277; - for (_i1277 = 0; _i1277 < _size1273; ++_i1277) + uint32_t _size1375; + ::apache::thrift::protocol::TType _etype1378; + xfer += iprot->readListBegin(_etype1378, _size1375); + this->foreignKeys.resize(_size1375); + uint32_t _i1379; + for (_i1379 = 0; _i1379 < _size1375; ++_i1379) { - xfer += this->foreignKeys[_i1277].read(iprot); + xfer += this->foreignKeys[_i1379].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 _size1278; - ::apache::thrift::protocol::TType _etype1281; - xfer += iprot->readListBegin(_etype1281, _size1278); - this->uniqueConstraints.resize(_size1278); - uint32_t _i1282; - for (_i1282 = 0; _i1282 < _size1278; ++_i1282) + uint32_t _size1380; + ::apache::thrift::protocol::TType _etype1383; + xfer += iprot->readListBegin(_etype1383, _size1380); + this->uniqueConstraints.resize(_size1380); + uint32_t _i1384; + for (_i1384 = 0; _i1384 < _size1380; ++_i1384) { - xfer += this->uniqueConstraints[_i1282].read(iprot); + xfer += this->uniqueConstraints[_i1384].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 _size1283; - ::apache::thrift::protocol::TType _etype1286; - xfer += iprot->readListBegin(_etype1286, _size1283); - this->notNullConstraints.resize(_size1283); - uint32_t _i1287; - for (_i1287 = 0; _i1287 < _size1283; ++_i1287) + uint32_t _size1385; + ::apache::thrift::protocol::TType _etype1388; + xfer += iprot->readListBegin(_etype1388, _size1385); + this->notNullConstraints.resize(_size1385); + uint32_t _i1389; + for (_i1389 = 0; _i1389 < _size1385; ++_i1389) { - xfer += this->notNullConstraints[_i1287].read(iprot); + xfer += this->notNullConstraints[_i1389].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 _size1288; - ::apache::thrift::protocol::TType _etype1291; - xfer += iprot->readListBegin(_etype1291, _size1288); - this->defaultConstraints.resize(_size1288); - uint32_t _i1292; - for (_i1292 = 0; _i1292 < _size1288; ++_i1292) + uint32_t _size1390; + ::apache::thrift::protocol::TType _etype1393; + xfer += iprot->readListBegin(_etype1393, _size1390); + this->defaultConstraints.resize(_size1390); + uint32_t _i1394; + for (_i1394 = 0; _i1394 < _size1390; ++_i1394) { - xfer += this->defaultConstraints[_i1292].read(iprot); + xfer += this->defaultConstraints[_i1394].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 _size1293; - ::apache::thrift::protocol::TType _etype1296; - xfer += iprot->readListBegin(_etype1296, _size1293); - this->checkConstraints.resize(_size1293); - uint32_t _i1297; - for (_i1297 = 0; _i1297 < _size1293; ++_i1297) + uint32_t _size1395; + ::apache::thrift::protocol::TType _etype1398; + xfer += iprot->readListBegin(_etype1398, _size1395); + this->checkConstraints.resize(_size1395); + uint32_t _i1399; + for (_i1399 = 0; _i1399 < _size1395; ++_i1399) { - xfer += this->checkConstraints[_i1297].read(iprot); + xfer += this->checkConstraints[_i1399].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 _iter1298; - for (_iter1298 = this->primaryKeys.begin(); _iter1298 != this->primaryKeys.end(); ++_iter1298) + std::vector ::const_iterator _iter1400; + for (_iter1400 = this->primaryKeys.begin(); _iter1400 != this->primaryKeys.end(); ++_iter1400) { - xfer += (*_iter1298).write(oprot); + xfer += (*_iter1400).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 _iter1299; - for (_iter1299 = this->foreignKeys.begin(); _iter1299 != this->foreignKeys.end(); ++_iter1299) + std::vector ::const_iterator _iter1401; + for (_iter1401 = this->foreignKeys.begin(); _iter1401 != this->foreignKeys.end(); ++_iter1401) { - xfer += (*_iter1299).write(oprot); + xfer += (*_iter1401).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 _iter1300; - for (_iter1300 = this->uniqueConstraints.begin(); _iter1300 != this->uniqueConstraints.end(); ++_iter1300) + std::vector ::const_iterator _iter1402; + for (_iter1402 = this->uniqueConstraints.begin(); _iter1402 != this->uniqueConstraints.end(); ++_iter1402) { - xfer += (*_iter1300).write(oprot); + xfer += (*_iter1402).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 _iter1301; - for (_iter1301 = this->notNullConstraints.begin(); _iter1301 != this->notNullConstraints.end(); ++_iter1301) + std::vector ::const_iterator _iter1403; + for (_iter1403 = this->notNullConstraints.begin(); _iter1403 != this->notNullConstraints.end(); ++_iter1403) { - xfer += (*_iter1301).write(oprot); + xfer += (*_iter1403).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 _iter1302; - for (_iter1302 = this->defaultConstraints.begin(); _iter1302 != this->defaultConstraints.end(); ++_iter1302) + std::vector ::const_iterator _iter1404; + for (_iter1404 = this->defaultConstraints.begin(); _iter1404 != this->defaultConstraints.end(); ++_iter1404) { - xfer += (*_iter1302).write(oprot); + xfer += (*_iter1404).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 _iter1303; - for (_iter1303 = this->checkConstraints.begin(); _iter1303 != this->checkConstraints.end(); ++_iter1303) + std::vector ::const_iterator _iter1405; + for (_iter1405 = this->checkConstraints.begin(); _iter1405 != this->checkConstraints.end(); ++_iter1405) { - xfer += (*_iter1303).write(oprot); + xfer += (*_iter1405).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 _iter1304; - for (_iter1304 = (*(this->primaryKeys)).begin(); _iter1304 != (*(this->primaryKeys)).end(); ++_iter1304) + std::vector ::const_iterator _iter1406; + for (_iter1406 = (*(this->primaryKeys)).begin(); _iter1406 != (*(this->primaryKeys)).end(); ++_iter1406) { - xfer += (*_iter1304).write(oprot); + xfer += (*_iter1406).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 _iter1305; - for (_iter1305 = (*(this->foreignKeys)).begin(); _iter1305 != (*(this->foreignKeys)).end(); ++_iter1305) + std::vector ::const_iterator _iter1407; + for (_iter1407 = (*(this->foreignKeys)).begin(); _iter1407 != (*(this->foreignKeys)).end(); ++_iter1407) { - xfer += (*_iter1305).write(oprot); + xfer += (*_iter1407).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 _iter1306; - for (_iter1306 = (*(this->uniqueConstraints)).begin(); _iter1306 != (*(this->uniqueConstraints)).end(); ++_iter1306) + std::vector ::const_iterator _iter1408; + for (_iter1408 = (*(this->uniqueConstraints)).begin(); _iter1408 != (*(this->uniqueConstraints)).end(); ++_iter1408) { - xfer += (*_iter1306).write(oprot); + xfer += (*_iter1408).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 _iter1307; - for (_iter1307 = (*(this->notNullConstraints)).begin(); _iter1307 != (*(this->notNullConstraints)).end(); ++_iter1307) + std::vector ::const_iterator _iter1409; + for (_iter1409 = (*(this->notNullConstraints)).begin(); _iter1409 != (*(this->notNullConstraints)).end(); ++_iter1409) { - xfer += (*_iter1307).write(oprot); + xfer += (*_iter1409).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 _iter1308; - for (_iter1308 = (*(this->defaultConstraints)).begin(); _iter1308 != (*(this->defaultConstraints)).end(); ++_iter1308) + std::vector ::const_iterator _iter1410; + for (_iter1410 = (*(this->defaultConstraints)).begin(); _iter1410 != (*(this->defaultConstraints)).end(); ++_iter1410) { - xfer += (*_iter1308).write(oprot); + xfer += (*_iter1410).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 _iter1309; - for (_iter1309 = (*(this->checkConstraints)).begin(); _iter1309 != (*(this->checkConstraints)).end(); ++_iter1309) + std::vector ::const_iterator _iter1411; + for (_iter1411 = (*(this->checkConstraints)).begin(); _iter1411 != (*(this->checkConstraints)).end(); ++_iter1411) { - xfer += (*_iter1309).write(oprot); + xfer += (*_iter1411).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 _size1310; - ::apache::thrift::protocol::TType _etype1313; - xfer += iprot->readListBegin(_etype1313, _size1310); - this->partNames.resize(_size1310); - uint32_t _i1314; - for (_i1314 = 0; _i1314 < _size1310; ++_i1314) + uint32_t _size1412; + ::apache::thrift::protocol::TType _etype1415; + xfer += iprot->readListBegin(_etype1415, _size1412); + this->partNames.resize(_size1412); + uint32_t _i1416; + for (_i1416 = 0; _i1416 < _size1412; ++_i1416) { - xfer += iprot->readString(this->partNames[_i1314]); + xfer += iprot->readString(this->partNames[_i1416]); } 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 _iter1315; - for (_iter1315 = this->partNames.begin(); _iter1315 != this->partNames.end(); ++_iter1315) + std::vector ::const_iterator _iter1417; + for (_iter1417 = this->partNames.begin(); _iter1417 != this->partNames.end(); ++_iter1417) { - xfer += oprot->writeString((*_iter1315)); + xfer += oprot->writeString((*_iter1417)); } 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 _iter1316; - for (_iter1316 = (*(this->partNames)).begin(); _iter1316 != (*(this->partNames)).end(); ++_iter1316) + std::vector ::const_iterator _iter1418; + for (_iter1418 = (*(this->partNames)).begin(); _iter1418 != (*(this->partNames)).end(); ++_iter1418) { - xfer += oprot->writeString((*_iter1316)); + xfer += oprot->writeString((*_iter1418)); } 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 _size1317; - ::apache::thrift::protocol::TType _etype1320; - xfer += iprot->readListBegin(_etype1320, _size1317); - this->success.resize(_size1317); - uint32_t _i1321; - for (_i1321 = 0; _i1321 < _size1317; ++_i1321) + uint32_t _size1419; + ::apache::thrift::protocol::TType _etype1422; + xfer += iprot->readListBegin(_etype1422, _size1419); + this->success.resize(_size1419); + uint32_t _i1423; + for (_i1423 = 0; _i1423 < _size1419; ++_i1423) { - xfer += iprot->readString(this->success[_i1321]); + xfer += iprot->readString(this->success[_i1423]); } 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 _iter1322; - for (_iter1322 = this->success.begin(); _iter1322 != this->success.end(); ++_iter1322) + std::vector ::const_iterator _iter1424; + for (_iter1424 = this->success.begin(); _iter1424 != this->success.end(); ++_iter1424) { - xfer += oprot->writeString((*_iter1322)); + xfer += oprot->writeString((*_iter1424)); } 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 _size1323; - ::apache::thrift::protocol::TType _etype1326; - xfer += iprot->readListBegin(_etype1326, _size1323); - (*(this->success)).resize(_size1323); - uint32_t _i1327; - for (_i1327 = 0; _i1327 < _size1323; ++_i1327) + uint32_t _size1425; + ::apache::thrift::protocol::TType _etype1428; + xfer += iprot->readListBegin(_etype1428, _size1425); + (*(this->success)).resize(_size1425); + uint32_t _i1429; + for (_i1429 = 0; _i1429 < _size1425; ++_i1429) { - xfer += iprot->readString((*(this->success))[_i1327]); + xfer += iprot->readString((*(this->success))[_i1429]); } 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 _size1328; - ::apache::thrift::protocol::TType _etype1331; - xfer += iprot->readListBegin(_etype1331, _size1328); - this->success.resize(_size1328); - uint32_t _i1332; - for (_i1332 = 0; _i1332 < _size1328; ++_i1332) + uint32_t _size1430; + ::apache::thrift::protocol::TType _etype1433; + xfer += iprot->readListBegin(_etype1433, _size1430); + this->success.resize(_size1430); + uint32_t _i1434; + for (_i1434 = 0; _i1434 < _size1430; ++_i1434) { - xfer += iprot->readString(this->success[_i1332]); + xfer += iprot->readString(this->success[_i1434]); } 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 _iter1333; - for (_iter1333 = this->success.begin(); _iter1333 != this->success.end(); ++_iter1333) + std::vector ::const_iterator _iter1435; + for (_iter1435 = this->success.begin(); _iter1435 != this->success.end(); ++_iter1435) { - xfer += oprot->writeString((*_iter1333)); + xfer += oprot->writeString((*_iter1435)); } 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 _size1334; - ::apache::thrift::protocol::TType _etype1337; - xfer += iprot->readListBegin(_etype1337, _size1334); - (*(this->success)).resize(_size1334); - uint32_t _i1338; - for (_i1338 = 0; _i1338 < _size1334; ++_i1338) + uint32_t _size1436; + ::apache::thrift::protocol::TType _etype1439; + xfer += iprot->readListBegin(_etype1439, _size1436); + (*(this->success)).resize(_size1436); + uint32_t _i1440; + for (_i1440 = 0; _i1440 < _size1436; ++_i1440) { - xfer += iprot->readString((*(this->success))[_i1338]); + xfer += iprot->readString((*(this->success))[_i1440]); } 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 _size1339; - ::apache::thrift::protocol::TType _etype1342; - xfer += iprot->readListBegin(_etype1342, _size1339); - this->success.resize(_size1339); - uint32_t _i1343; - for (_i1343 = 0; _i1343 < _size1339; ++_i1343) + uint32_t _size1441; + ::apache::thrift::protocol::TType _etype1444; + xfer += iprot->readListBegin(_etype1444, _size1441); + this->success.resize(_size1441); + uint32_t _i1445; + for (_i1445 = 0; _i1445 < _size1441; ++_i1445) { - xfer += iprot->readString(this->success[_i1343]); + xfer += iprot->readString(this->success[_i1445]); } 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 _iter1344; - for (_iter1344 = this->success.begin(); _iter1344 != this->success.end(); ++_iter1344) + std::vector ::const_iterator _iter1446; + for (_iter1446 = this->success.begin(); _iter1446 != this->success.end(); ++_iter1446) { - xfer += oprot->writeString((*_iter1344)); + xfer += oprot->writeString((*_iter1446)); } 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 _size1345; - ::apache::thrift::protocol::TType _etype1348; - xfer += iprot->readListBegin(_etype1348, _size1345); - (*(this->success)).resize(_size1345); - uint32_t _i1349; - for (_i1349 = 0; _i1349 < _size1345; ++_i1349) + 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))[_i1349]); + xfer += iprot->readString((*(this->success))[_i1451]); } 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 _size1350; - ::apache::thrift::protocol::TType _etype1353; - xfer += iprot->readListBegin(_etype1353, _size1350); - this->tbl_types.resize(_size1350); - uint32_t _i1354; - for (_i1354 = 0; _i1354 < _size1350; ++_i1354) + uint32_t _size1452; + ::apache::thrift::protocol::TType _etype1455; + xfer += iprot->readListBegin(_etype1455, _size1452); + this->tbl_types.resize(_size1452); + uint32_t _i1456; + for (_i1456 = 0; _i1456 < _size1452; ++_i1456) { - xfer += iprot->readString(this->tbl_types[_i1354]); + xfer += iprot->readString(this->tbl_types[_i1456]); } 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 _iter1355; - for (_iter1355 = this->tbl_types.begin(); _iter1355 != this->tbl_types.end(); ++_iter1355) + std::vector ::const_iterator _iter1457; + for (_iter1457 = this->tbl_types.begin(); _iter1457 != this->tbl_types.end(); ++_iter1457) { - xfer += oprot->writeString((*_iter1355)); + xfer += oprot->writeString((*_iter1457)); } 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 _iter1356; - for (_iter1356 = (*(this->tbl_types)).begin(); _iter1356 != (*(this->tbl_types)).end(); ++_iter1356) + std::vector ::const_iterator _iter1458; + for (_iter1458 = (*(this->tbl_types)).begin(); _iter1458 != (*(this->tbl_types)).end(); ++_iter1458) { - xfer += oprot->writeString((*_iter1356)); + xfer += oprot->writeString((*_iter1458)); } 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 _size1357; - ::apache::thrift::protocol::TType _etype1360; - xfer += iprot->readListBegin(_etype1360, _size1357); - this->success.resize(_size1357); - uint32_t _i1361; - for (_i1361 = 0; _i1361 < _size1357; ++_i1361) + uint32_t _size1459; + ::apache::thrift::protocol::TType _etype1462; + xfer += iprot->readListBegin(_etype1462, _size1459); + this->success.resize(_size1459); + uint32_t _i1463; + for (_i1463 = 0; _i1463 < _size1459; ++_i1463) { - xfer += this->success[_i1361].read(iprot); + xfer += this->success[_i1463].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 _iter1362; - for (_iter1362 = this->success.begin(); _iter1362 != this->success.end(); ++_iter1362) + std::vector ::const_iterator _iter1464; + for (_iter1464 = this->success.begin(); _iter1464 != this->success.end(); ++_iter1464) { - xfer += (*_iter1362).write(oprot); + xfer += (*_iter1464).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 _size1363; - ::apache::thrift::protocol::TType _etype1366; - xfer += iprot->readListBegin(_etype1366, _size1363); - (*(this->success)).resize(_size1363); - uint32_t _i1367; - for (_i1367 = 0; _i1367 < _size1363; ++_i1367) + uint32_t _size1465; + ::apache::thrift::protocol::TType _etype1468; + xfer += iprot->readListBegin(_etype1468, _size1465); + (*(this->success)).resize(_size1465); + uint32_t _i1469; + for (_i1469 = 0; _i1469 < _size1465; ++_i1469) { - xfer += (*(this->success))[_i1367].read(iprot); + xfer += (*(this->success))[_i1469].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 _size1368; - ::apache::thrift::protocol::TType _etype1371; - xfer += iprot->readListBegin(_etype1371, _size1368); - this->success.resize(_size1368); - uint32_t _i1372; - for (_i1372 = 0; _i1372 < _size1368; ++_i1372) + uint32_t _size1470; + ::apache::thrift::protocol::TType _etype1473; + xfer += iprot->readListBegin(_etype1473, _size1470); + this->success.resize(_size1470); + uint32_t _i1474; + for (_i1474 = 0; _i1474 < _size1470; ++_i1474) { - xfer += iprot->readString(this->success[_i1372]); + xfer += iprot->readString(this->success[_i1474]); } 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 _iter1373; - for (_iter1373 = this->success.begin(); _iter1373 != this->success.end(); ++_iter1373) + std::vector ::const_iterator _iter1475; + for (_iter1475 = this->success.begin(); _iter1475 != this->success.end(); ++_iter1475) { - xfer += oprot->writeString((*_iter1373)); + xfer += oprot->writeString((*_iter1475)); } 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 _size1374; - ::apache::thrift::protocol::TType _etype1377; - xfer += iprot->readListBegin(_etype1377, _size1374); - (*(this->success)).resize(_size1374); - uint32_t _i1378; - for (_i1378 = 0; _i1378 < _size1374; ++_i1378) + uint32_t _size1476; + ::apache::thrift::protocol::TType _etype1479; + xfer += iprot->readListBegin(_etype1479, _size1476); + (*(this->success)).resize(_size1476); + uint32_t _i1480; + for (_i1480 = 0; _i1480 < _size1476; ++_i1480) { - xfer += iprot->readString((*(this->success))[_i1378]); + xfer += iprot->readString((*(this->success))[_i1480]); } 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 _size1379; - ::apache::thrift::protocol::TType _etype1382; - xfer += iprot->readListBegin(_etype1382, _size1379); - this->tbl_names.resize(_size1379); - uint32_t _i1383; - for (_i1383 = 0; _i1383 < _size1379; ++_i1383) + uint32_t _size1481; + ::apache::thrift::protocol::TType _etype1484; + xfer += iprot->readListBegin(_etype1484, _size1481); + this->tbl_names.resize(_size1481); + uint32_t _i1485; + for (_i1485 = 0; _i1485 < _size1481; ++_i1485) { - xfer += iprot->readString(this->tbl_names[_i1383]); + xfer += iprot->readString(this->tbl_names[_i1485]); } 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 _iter1384; - for (_iter1384 = this->tbl_names.begin(); _iter1384 != this->tbl_names.end(); ++_iter1384) + std::vector ::const_iterator _iter1486; + for (_iter1486 = this->tbl_names.begin(); _iter1486 != this->tbl_names.end(); ++_iter1486) { - xfer += oprot->writeString((*_iter1384)); + xfer += oprot->writeString((*_iter1486)); } 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 _iter1385; - for (_iter1385 = (*(this->tbl_names)).begin(); _iter1385 != (*(this->tbl_names)).end(); ++_iter1385) + std::vector ::const_iterator _iter1487; + for (_iter1487 = (*(this->tbl_names)).begin(); _iter1487 != (*(this->tbl_names)).end(); ++_iter1487) { - xfer += oprot->writeString((*_iter1385)); + xfer += oprot->writeString((*_iter1487)); } 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 _size1386; - ::apache::thrift::protocol::TType _etype1389; - xfer += iprot->readListBegin(_etype1389, _size1386); - this->success.resize(_size1386); - uint32_t _i1390; - for (_i1390 = 0; _i1390 < _size1386; ++_i1390) + uint32_t _size1488; + ::apache::thrift::protocol::TType _etype1491; + xfer += iprot->readListBegin(_etype1491, _size1488); + this->success.resize(_size1488); + uint32_t _i1492; + for (_i1492 = 0; _i1492 < _size1488; ++_i1492) { - xfer += this->success[_i1390].read(iprot); + xfer += this->success[_i1492].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 _iter1391; - for (_iter1391 = this->success.begin(); _iter1391 != this->success.end(); ++_iter1391) + std::vector
::const_iterator _iter1493; + for (_iter1493 = this->success.begin(); _iter1493 != this->success.end(); ++_iter1493) { - xfer += (*_iter1391).write(oprot); + xfer += (*_iter1493).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 _size1392; - ::apache::thrift::protocol::TType _etype1395; - xfer += iprot->readListBegin(_etype1395, _size1392); - (*(this->success)).resize(_size1392); - uint32_t _i1396; - for (_i1396 = 0; _i1396 < _size1392; ++_i1396) + uint32_t _size1494; + ::apache::thrift::protocol::TType _etype1497; + xfer += iprot->readListBegin(_etype1497, _size1494); + (*(this->success)).resize(_size1494); + uint32_t _i1498; + for (_i1498 = 0; _i1498 < _size1494; ++_i1498) { - xfer += (*(this->success))[_i1396].read(iprot); + xfer += (*(this->success))[_i1498].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 _size1397; - ::apache::thrift::protocol::TType _etype1400; - xfer += iprot->readListBegin(_etype1400, _size1397); - this->tbl_names.resize(_size1397); - uint32_t _i1401; - for (_i1401 = 0; _i1401 < _size1397; ++_i1401) + uint32_t _size1499; + ::apache::thrift::protocol::TType _etype1502; + xfer += iprot->readListBegin(_etype1502, _size1499); + this->tbl_names.resize(_size1499); + uint32_t _i1503; + for (_i1503 = 0; _i1503 < _size1499; ++_i1503) { - xfer += iprot->readString(this->tbl_names[_i1401]); + xfer += iprot->readString(this->tbl_names[_i1503]); } 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 _iter1402; - for (_iter1402 = this->tbl_names.begin(); _iter1402 != this->tbl_names.end(); ++_iter1402) + std::vector ::const_iterator _iter1504; + for (_iter1504 = this->tbl_names.begin(); _iter1504 != this->tbl_names.end(); ++_iter1504) { - xfer += oprot->writeString((*_iter1402)); + xfer += oprot->writeString((*_iter1504)); } 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 _iter1403; - for (_iter1403 = (*(this->tbl_names)).begin(); _iter1403 != (*(this->tbl_names)).end(); ++_iter1403) + std::vector ::const_iterator _iter1505; + for (_iter1505 = (*(this->tbl_names)).begin(); _iter1505 != (*(this->tbl_names)).end(); ++_iter1505) { - xfer += oprot->writeString((*_iter1403)); + xfer += oprot->writeString((*_iter1505)); } 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 _size1404; - ::apache::thrift::protocol::TType _ktype1405; - ::apache::thrift::protocol::TType _vtype1406; - xfer += iprot->readMapBegin(_ktype1405, _vtype1406, _size1404); - uint32_t _i1408; - for (_i1408 = 0; _i1408 < _size1404; ++_i1408) + uint32_t _size1506; + ::apache::thrift::protocol::TType _ktype1507; + ::apache::thrift::protocol::TType _vtype1508; + xfer += iprot->readMapBegin(_ktype1507, _vtype1508, _size1506); + uint32_t _i1510; + for (_i1510 = 0; _i1510 < _size1506; ++_i1510) { - std::string _key1409; - xfer += iprot->readString(_key1409); - Materialization& _val1410 = this->success[_key1409]; - xfer += _val1410.read(iprot); + std::string _key1511; + xfer += iprot->readString(_key1511); + Materialization& _val1512 = this->success[_key1511]; + xfer += _val1512.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 _iter1411; - for (_iter1411 = this->success.begin(); _iter1411 != this->success.end(); ++_iter1411) + std::map ::const_iterator _iter1513; + for (_iter1513 = this->success.begin(); _iter1513 != this->success.end(); ++_iter1513) { - xfer += oprot->writeString(_iter1411->first); - xfer += _iter1411->second.write(oprot); + xfer += oprot->writeString(_iter1513->first); + xfer += _iter1513->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 _size1412; - ::apache::thrift::protocol::TType _ktype1413; - ::apache::thrift::protocol::TType _vtype1414; - xfer += iprot->readMapBegin(_ktype1413, _vtype1414, _size1412); - uint32_t _i1416; - for (_i1416 = 0; _i1416 < _size1412; ++_i1416) + uint32_t _size1514; + ::apache::thrift::protocol::TType _ktype1515; + ::apache::thrift::protocol::TType _vtype1516; + xfer += iprot->readMapBegin(_ktype1515, _vtype1516, _size1514); + uint32_t _i1518; + for (_i1518 = 0; _i1518 < _size1514; ++_i1518) { - std::string _key1417; - xfer += iprot->readString(_key1417); - Materialization& _val1418 = (*(this->success))[_key1417]; - xfer += _val1418.read(iprot); + std::string _key1519; + xfer += iprot->readString(_key1519); + Materialization& _val1520 = (*(this->success))[_key1519]; + xfer += _val1520.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 _size1419; - ::apache::thrift::protocol::TType _etype1422; - xfer += iprot->readListBegin(_etype1422, _size1419); - this->success.resize(_size1419); - uint32_t _i1423; - for (_i1423 = 0; _i1423 < _size1419; ++_i1423) + uint32_t _size1521; + ::apache::thrift::protocol::TType _etype1524; + xfer += iprot->readListBegin(_etype1524, _size1521); + this->success.resize(_size1521); + uint32_t _i1525; + for (_i1525 = 0; _i1525 < _size1521; ++_i1525) { - xfer += iprot->readString(this->success[_i1423]); + xfer += iprot->readString(this->success[_i1525]); } 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 _iter1424; - for (_iter1424 = this->success.begin(); _iter1424 != this->success.end(); ++_iter1424) + std::vector ::const_iterator _iter1526; + for (_iter1526 = this->success.begin(); _iter1526 != this->success.end(); ++_iter1526) { - xfer += oprot->writeString((*_iter1424)); + xfer += oprot->writeString((*_iter1526)); } 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 _size1425; - ::apache::thrift::protocol::TType _etype1428; - xfer += iprot->readListBegin(_etype1428, _size1425); - (*(this->success)).resize(_size1425); - uint32_t _i1429; - for (_i1429 = 0; _i1429 < _size1425; ++_i1429) + uint32_t _size1527; + ::apache::thrift::protocol::TType _etype1530; + xfer += iprot->readListBegin(_etype1530, _size1527); + (*(this->success)).resize(_size1527); + uint32_t _i1531; + for (_i1531 = 0; _i1531 < _size1527; ++_i1531) { - xfer += iprot->readString((*(this->success))[_i1429]); + xfer += iprot->readString((*(this->success))[_i1531]); } 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 _size1430; - ::apache::thrift::protocol::TType _etype1433; - xfer += iprot->readListBegin(_etype1433, _size1430); - this->new_parts.resize(_size1430); - uint32_t _i1434; - for (_i1434 = 0; _i1434 < _size1430; ++_i1434) + uint32_t _size1532; + ::apache::thrift::protocol::TType _etype1535; + xfer += iprot->readListBegin(_etype1535, _size1532); + this->new_parts.resize(_size1532); + uint32_t _i1536; + for (_i1536 = 0; _i1536 < _size1532; ++_i1536) { - xfer += this->new_parts[_i1434].read(iprot); + xfer += this->new_parts[_i1536].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 _iter1435; - for (_iter1435 = this->new_parts.begin(); _iter1435 != this->new_parts.end(); ++_iter1435) + std::vector ::const_iterator _iter1537; + for (_iter1537 = this->new_parts.begin(); _iter1537 != this->new_parts.end(); ++_iter1537) { - xfer += (*_iter1435).write(oprot); + xfer += (*_iter1537).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 _iter1436; - for (_iter1436 = (*(this->new_parts)).begin(); _iter1436 != (*(this->new_parts)).end(); ++_iter1436) + std::vector ::const_iterator _iter1538; + for (_iter1538 = (*(this->new_parts)).begin(); _iter1538 != (*(this->new_parts)).end(); ++_iter1538) { - xfer += (*_iter1436).write(oprot); + xfer += (*_iter1538).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 _size1437; - ::apache::thrift::protocol::TType _etype1440; - xfer += iprot->readListBegin(_etype1440, _size1437); - this->new_parts.resize(_size1437); - uint32_t _i1441; - for (_i1441 = 0; _i1441 < _size1437; ++_i1441) + uint32_t _size1539; + ::apache::thrift::protocol::TType _etype1542; + xfer += iprot->readListBegin(_etype1542, _size1539); + this->new_parts.resize(_size1539); + uint32_t _i1543; + for (_i1543 = 0; _i1543 < _size1539; ++_i1543) { - xfer += this->new_parts[_i1441].read(iprot); + xfer += this->new_parts[_i1543].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 _iter1442; - for (_iter1442 = this->new_parts.begin(); _iter1442 != this->new_parts.end(); ++_iter1442) + std::vector ::const_iterator _iter1544; + for (_iter1544 = this->new_parts.begin(); _iter1544 != this->new_parts.end(); ++_iter1544) { - xfer += (*_iter1442).write(oprot); + xfer += (*_iter1544).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 _iter1443; - for (_iter1443 = (*(this->new_parts)).begin(); _iter1443 != (*(this->new_parts)).end(); ++_iter1443) + std::vector ::const_iterator _iter1545; + for (_iter1545 = (*(this->new_parts)).begin(); _iter1545 != (*(this->new_parts)).end(); ++_iter1545) { - xfer += (*_iter1443).write(oprot); + xfer += (*_iter1545).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 _size1444; - ::apache::thrift::protocol::TType _etype1447; - xfer += iprot->readListBegin(_etype1447, _size1444); - this->part_vals.resize(_size1444); - uint32_t _i1448; - for (_i1448 = 0; _i1448 < _size1444; ++_i1448) + uint32_t _size1546; + ::apache::thrift::protocol::TType _etype1549; + xfer += iprot->readListBegin(_etype1549, _size1546); + this->part_vals.resize(_size1546); + uint32_t _i1550; + for (_i1550 = 0; _i1550 < _size1546; ++_i1550) { - xfer += iprot->readString(this->part_vals[_i1448]); + xfer += iprot->readString(this->part_vals[_i1550]); } 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 _iter1449; - for (_iter1449 = this->part_vals.begin(); _iter1449 != this->part_vals.end(); ++_iter1449) + std::vector ::const_iterator _iter1551; + for (_iter1551 = this->part_vals.begin(); _iter1551 != this->part_vals.end(); ++_iter1551) { - xfer += oprot->writeString((*_iter1449)); + xfer += oprot->writeString((*_iter1551)); } 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 _iter1450; - for (_iter1450 = (*(this->part_vals)).begin(); _iter1450 != (*(this->part_vals)).end(); ++_iter1450) + std::vector ::const_iterator _iter1552; + for (_iter1552 = (*(this->part_vals)).begin(); _iter1552 != (*(this->part_vals)).end(); ++_iter1552) { - xfer += oprot->writeString((*_iter1450)); + xfer += oprot->writeString((*_iter1552)); } 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 _size1451; - ::apache::thrift::protocol::TType _etype1454; - xfer += iprot->readListBegin(_etype1454, _size1451); - this->part_vals.resize(_size1451); - uint32_t _i1455; - for (_i1455 = 0; _i1455 < _size1451; ++_i1455) + uint32_t _size1553; + ::apache::thrift::protocol::TType _etype1556; + xfer += iprot->readListBegin(_etype1556, _size1553); + this->part_vals.resize(_size1553); + uint32_t _i1557; + for (_i1557 = 0; _i1557 < _size1553; ++_i1557) { - xfer += iprot->readString(this->part_vals[_i1455]); + xfer += iprot->readString(this->part_vals[_i1557]); } 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 _iter1456; - for (_iter1456 = this->part_vals.begin(); _iter1456 != this->part_vals.end(); ++_iter1456) + std::vector ::const_iterator _iter1558; + for (_iter1558 = this->part_vals.begin(); _iter1558 != this->part_vals.end(); ++_iter1558) { - xfer += oprot->writeString((*_iter1456)); + xfer += oprot->writeString((*_iter1558)); } 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 _iter1457; - for (_iter1457 = (*(this->part_vals)).begin(); _iter1457 != (*(this->part_vals)).end(); ++_iter1457) + std::vector ::const_iterator _iter1559; + for (_iter1559 = (*(this->part_vals)).begin(); _iter1559 != (*(this->part_vals)).end(); ++_iter1559) { - xfer += oprot->writeString((*_iter1457)); + xfer += oprot->writeString((*_iter1559)); } 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 _size1458; - ::apache::thrift::protocol::TType _etype1461; - xfer += iprot->readListBegin(_etype1461, _size1458); - this->part_vals.resize(_size1458); - uint32_t _i1462; - for (_i1462 = 0; _i1462 < _size1458; ++_i1462) + uint32_t _size1560; + ::apache::thrift::protocol::TType _etype1563; + xfer += iprot->readListBegin(_etype1563, _size1560); + this->part_vals.resize(_size1560); + uint32_t _i1564; + for (_i1564 = 0; _i1564 < _size1560; ++_i1564) { - xfer += iprot->readString(this->part_vals[_i1462]); + xfer += iprot->readString(this->part_vals[_i1564]); } 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 _iter1463; - for (_iter1463 = this->part_vals.begin(); _iter1463 != this->part_vals.end(); ++_iter1463) + std::vector ::const_iterator _iter1565; + for (_iter1565 = this->part_vals.begin(); _iter1565 != this->part_vals.end(); ++_iter1565) { - xfer += oprot->writeString((*_iter1463)); + xfer += oprot->writeString((*_iter1565)); } 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 _iter1464; - for (_iter1464 = (*(this->part_vals)).begin(); _iter1464 != (*(this->part_vals)).end(); ++_iter1464) + std::vector ::const_iterator _iter1566; + for (_iter1566 = (*(this->part_vals)).begin(); _iter1566 != (*(this->part_vals)).end(); ++_iter1566) { - xfer += oprot->writeString((*_iter1464)); + xfer += oprot->writeString((*_iter1566)); } 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 _size1465; - ::apache::thrift::protocol::TType _etype1468; - xfer += iprot->readListBegin(_etype1468, _size1465); - this->part_vals.resize(_size1465); - uint32_t _i1469; - for (_i1469 = 0; _i1469 < _size1465; ++_i1469) + uint32_t _size1567; + ::apache::thrift::protocol::TType _etype1570; + xfer += iprot->readListBegin(_etype1570, _size1567); + this->part_vals.resize(_size1567); + uint32_t _i1571; + for (_i1571 = 0; _i1571 < _size1567; ++_i1571) { - xfer += iprot->readString(this->part_vals[_i1469]); + xfer += iprot->readString(this->part_vals[_i1571]); } 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 _iter1470; - for (_iter1470 = this->part_vals.begin(); _iter1470 != this->part_vals.end(); ++_iter1470) + std::vector ::const_iterator _iter1572; + for (_iter1572 = this->part_vals.begin(); _iter1572 != this->part_vals.end(); ++_iter1572) { - xfer += oprot->writeString((*_iter1470)); + xfer += oprot->writeString((*_iter1572)); } 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 _iter1471; - for (_iter1471 = (*(this->part_vals)).begin(); _iter1471 != (*(this->part_vals)).end(); ++_iter1471) + std::vector ::const_iterator _iter1573; + for (_iter1573 = (*(this->part_vals)).begin(); _iter1573 != (*(this->part_vals)).end(); ++_iter1573) { - xfer += oprot->writeString((*_iter1471)); + xfer += oprot->writeString((*_iter1573)); } 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 _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) + uint32_t _size1574; + ::apache::thrift::protocol::TType _etype1577; + xfer += iprot->readListBegin(_etype1577, _size1574); + this->part_vals.resize(_size1574); + uint32_t _i1578; + for (_i1578 = 0; _i1578 < _size1574; ++_i1578) { - xfer += iprot->readString(this->part_vals[_i1476]); + xfer += iprot->readString(this->part_vals[_i1578]); } 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 _iter1477; - for (_iter1477 = this->part_vals.begin(); _iter1477 != this->part_vals.end(); ++_iter1477) + std::vector ::const_iterator _iter1579; + for (_iter1579 = this->part_vals.begin(); _iter1579 != this->part_vals.end(); ++_iter1579) { - xfer += oprot->writeString((*_iter1477)); + xfer += oprot->writeString((*_iter1579)); } 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 _iter1478; - for (_iter1478 = (*(this->part_vals)).begin(); _iter1478 != (*(this->part_vals)).end(); ++_iter1478) + std::vector ::const_iterator _iter1580; + for (_iter1580 = (*(this->part_vals)).begin(); _iter1580 != (*(this->part_vals)).end(); ++_iter1580) { - xfer += oprot->writeString((*_iter1478)); + xfer += oprot->writeString((*_iter1580)); } 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 _size1479; - ::apache::thrift::protocol::TType _ktype1480; - ::apache::thrift::protocol::TType _vtype1481; - xfer += iprot->readMapBegin(_ktype1480, _vtype1481, _size1479); - uint32_t _i1483; - for (_i1483 = 0; _i1483 < _size1479; ++_i1483) + uint32_t _size1581; + ::apache::thrift::protocol::TType _ktype1582; + ::apache::thrift::protocol::TType _vtype1583; + xfer += iprot->readMapBegin(_ktype1582, _vtype1583, _size1581); + uint32_t _i1585; + for (_i1585 = 0; _i1585 < _size1581; ++_i1585) { - std::string _key1484; - xfer += iprot->readString(_key1484); - std::string& _val1485 = this->partitionSpecs[_key1484]; - xfer += iprot->readString(_val1485); + std::string _key1586; + xfer += iprot->readString(_key1586); + std::string& _val1587 = this->partitionSpecs[_key1586]; + xfer += iprot->readString(_val1587); } 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 _iter1486; - for (_iter1486 = this->partitionSpecs.begin(); _iter1486 != this->partitionSpecs.end(); ++_iter1486) + std::map ::const_iterator _iter1588; + for (_iter1588 = this->partitionSpecs.begin(); _iter1588 != this->partitionSpecs.end(); ++_iter1588) { - xfer += oprot->writeString(_iter1486->first); - xfer += oprot->writeString(_iter1486->second); + xfer += oprot->writeString(_iter1588->first); + xfer += oprot->writeString(_iter1588->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 _iter1487; - for (_iter1487 = (*(this->partitionSpecs)).begin(); _iter1487 != (*(this->partitionSpecs)).end(); ++_iter1487) + std::map ::const_iterator _iter1589; + for (_iter1589 = (*(this->partitionSpecs)).begin(); _iter1589 != (*(this->partitionSpecs)).end(); ++_iter1589) { - xfer += oprot->writeString(_iter1487->first); - xfer += oprot->writeString(_iter1487->second); + xfer += oprot->writeString(_iter1589->first); + xfer += oprot->writeString(_iter1589->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 _size1488; - ::apache::thrift::protocol::TType _ktype1489; - ::apache::thrift::protocol::TType _vtype1490; - xfer += iprot->readMapBegin(_ktype1489, _vtype1490, _size1488); - uint32_t _i1492; - for (_i1492 = 0; _i1492 < _size1488; ++_i1492) + uint32_t _size1590; + ::apache::thrift::protocol::TType _ktype1591; + ::apache::thrift::protocol::TType _vtype1592; + xfer += iprot->readMapBegin(_ktype1591, _vtype1592, _size1590); + uint32_t _i1594; + for (_i1594 = 0; _i1594 < _size1590; ++_i1594) { - std::string _key1493; - xfer += iprot->readString(_key1493); - std::string& _val1494 = this->partitionSpecs[_key1493]; - xfer += iprot->readString(_val1494); + std::string _key1595; + xfer += iprot->readString(_key1595); + std::string& _val1596 = this->partitionSpecs[_key1595]; + xfer += iprot->readString(_val1596); } 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 _iter1495; - for (_iter1495 = this->partitionSpecs.begin(); _iter1495 != this->partitionSpecs.end(); ++_iter1495) + std::map ::const_iterator _iter1597; + for (_iter1597 = this->partitionSpecs.begin(); _iter1597 != this->partitionSpecs.end(); ++_iter1597) { - xfer += oprot->writeString(_iter1495->first); - xfer += oprot->writeString(_iter1495->second); + xfer += oprot->writeString(_iter1597->first); + xfer += oprot->writeString(_iter1597->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 _iter1496; - for (_iter1496 = (*(this->partitionSpecs)).begin(); _iter1496 != (*(this->partitionSpecs)).end(); ++_iter1496) + std::map ::const_iterator _iter1598; + for (_iter1598 = (*(this->partitionSpecs)).begin(); _iter1598 != (*(this->partitionSpecs)).end(); ++_iter1598) { - xfer += oprot->writeString(_iter1496->first); - xfer += oprot->writeString(_iter1496->second); + xfer += oprot->writeString(_iter1598->first); + xfer += oprot->writeString(_iter1598->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 _size1497; - ::apache::thrift::protocol::TType _etype1500; - xfer += iprot->readListBegin(_etype1500, _size1497); - this->success.resize(_size1497); - uint32_t _i1501; - for (_i1501 = 0; _i1501 < _size1497; ++_i1501) + uint32_t _size1599; + ::apache::thrift::protocol::TType _etype1602; + xfer += iprot->readListBegin(_etype1602, _size1599); + this->success.resize(_size1599); + uint32_t _i1603; + for (_i1603 = 0; _i1603 < _size1599; ++_i1603) { - xfer += this->success[_i1501].read(iprot); + xfer += this->success[_i1603].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 _iter1502; - for (_iter1502 = this->success.begin(); _iter1502 != this->success.end(); ++_iter1502) + std::vector ::const_iterator _iter1604; + for (_iter1604 = this->success.begin(); _iter1604 != this->success.end(); ++_iter1604) { - xfer += (*_iter1502).write(oprot); + xfer += (*_iter1604).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 _size1503; - ::apache::thrift::protocol::TType _etype1506; - xfer += iprot->readListBegin(_etype1506, _size1503); - (*(this->success)).resize(_size1503); - uint32_t _i1507; - for (_i1507 = 0; _i1507 < _size1503; ++_i1507) + uint32_t _size1605; + ::apache::thrift::protocol::TType _etype1608; + xfer += iprot->readListBegin(_etype1608, _size1605); + (*(this->success)).resize(_size1605); + uint32_t _i1609; + for (_i1609 = 0; _i1609 < _size1605; ++_i1609) { - xfer += (*(this->success))[_i1507].read(iprot); + xfer += (*(this->success))[_i1609].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 _size1508; - ::apache::thrift::protocol::TType _etype1511; - xfer += iprot->readListBegin(_etype1511, _size1508); - this->part_vals.resize(_size1508); - uint32_t _i1512; - for (_i1512 = 0; _i1512 < _size1508; ++_i1512) + uint32_t _size1610; + ::apache::thrift::protocol::TType _etype1613; + xfer += iprot->readListBegin(_etype1613, _size1610); + this->part_vals.resize(_size1610); + uint32_t _i1614; + for (_i1614 = 0; _i1614 < _size1610; ++_i1614) { - xfer += iprot->readString(this->part_vals[_i1512]); + xfer += iprot->readString(this->part_vals[_i1614]); } 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 _size1513; - ::apache::thrift::protocol::TType _etype1516; - xfer += iprot->readListBegin(_etype1516, _size1513); - this->group_names.resize(_size1513); - uint32_t _i1517; - for (_i1517 = 0; _i1517 < _size1513; ++_i1517) + uint32_t _size1615; + ::apache::thrift::protocol::TType _etype1618; + xfer += iprot->readListBegin(_etype1618, _size1615); + this->group_names.resize(_size1615); + uint32_t _i1619; + for (_i1619 = 0; _i1619 < _size1615; ++_i1619) { - xfer += iprot->readString(this->group_names[_i1517]); + xfer += iprot->readString(this->group_names[_i1619]); } 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 _iter1518; - for (_iter1518 = this->part_vals.begin(); _iter1518 != this->part_vals.end(); ++_iter1518) + std::vector ::const_iterator _iter1620; + for (_iter1620 = this->part_vals.begin(); _iter1620 != this->part_vals.end(); ++_iter1620) { - xfer += oprot->writeString((*_iter1518)); + xfer += oprot->writeString((*_iter1620)); } 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 _iter1519; - for (_iter1519 = this->group_names.begin(); _iter1519 != this->group_names.end(); ++_iter1519) + std::vector ::const_iterator _iter1621; + for (_iter1621 = this->group_names.begin(); _iter1621 != this->group_names.end(); ++_iter1621) { - xfer += oprot->writeString((*_iter1519)); + xfer += oprot->writeString((*_iter1621)); } 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 _iter1520; - for (_iter1520 = (*(this->part_vals)).begin(); _iter1520 != (*(this->part_vals)).end(); ++_iter1520) + std::vector ::const_iterator _iter1622; + for (_iter1622 = (*(this->part_vals)).begin(); _iter1622 != (*(this->part_vals)).end(); ++_iter1622) { - xfer += oprot->writeString((*_iter1520)); + xfer += oprot->writeString((*_iter1622)); } 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 _iter1521; - for (_iter1521 = (*(this->group_names)).begin(); _iter1521 != (*(this->group_names)).end(); ++_iter1521) + std::vector ::const_iterator _iter1623; + for (_iter1623 = (*(this->group_names)).begin(); _iter1623 != (*(this->group_names)).end(); ++_iter1623) { - xfer += oprot->writeString((*_iter1521)); + xfer += oprot->writeString((*_iter1623)); } 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 _size1522; - ::apache::thrift::protocol::TType _etype1525; - xfer += iprot->readListBegin(_etype1525, _size1522); - this->success.resize(_size1522); - uint32_t _i1526; - for (_i1526 = 0; _i1526 < _size1522; ++_i1526) + uint32_t _size1624; + ::apache::thrift::protocol::TType _etype1627; + xfer += iprot->readListBegin(_etype1627, _size1624); + this->success.resize(_size1624); + uint32_t _i1628; + for (_i1628 = 0; _i1628 < _size1624; ++_i1628) { - xfer += this->success[_i1526].read(iprot); + xfer += this->success[_i1628].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 _iter1527; - for (_iter1527 = this->success.begin(); _iter1527 != this->success.end(); ++_iter1527) + std::vector ::const_iterator _iter1629; + for (_iter1629 = this->success.begin(); _iter1629 != this->success.end(); ++_iter1629) { - xfer += (*_iter1527).write(oprot); + xfer += (*_iter1629).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 _size1528; - ::apache::thrift::protocol::TType _etype1531; - xfer += iprot->readListBegin(_etype1531, _size1528); - (*(this->success)).resize(_size1528); - uint32_t _i1532; - for (_i1532 = 0; _i1532 < _size1528; ++_i1532) + uint32_t _size1630; + ::apache::thrift::protocol::TType _etype1633; + xfer += iprot->readListBegin(_etype1633, _size1630); + (*(this->success)).resize(_size1630); + uint32_t _i1634; + for (_i1634 = 0; _i1634 < _size1630; ++_i1634) { - xfer += (*(this->success))[_i1532].read(iprot); + xfer += (*(this->success))[_i1634].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 _size1533; - ::apache::thrift::protocol::TType _etype1536; - xfer += iprot->readListBegin(_etype1536, _size1533); - this->group_names.resize(_size1533); - uint32_t _i1537; - for (_i1537 = 0; _i1537 < _size1533; ++_i1537) + uint32_t _size1635; + ::apache::thrift::protocol::TType _etype1638; + xfer += iprot->readListBegin(_etype1638, _size1635); + this->group_names.resize(_size1635); + uint32_t _i1639; + for (_i1639 = 0; _i1639 < _size1635; ++_i1639) { - xfer += iprot->readString(this->group_names[_i1537]); + xfer += iprot->readString(this->group_names[_i1639]); } 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 _iter1538; - for (_iter1538 = this->group_names.begin(); _iter1538 != this->group_names.end(); ++_iter1538) + std::vector ::const_iterator _iter1640; + for (_iter1640 = this->group_names.begin(); _iter1640 != this->group_names.end(); ++_iter1640) { - xfer += oprot->writeString((*_iter1538)); + xfer += oprot->writeString((*_iter1640)); } 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 _iter1539; - for (_iter1539 = (*(this->group_names)).begin(); _iter1539 != (*(this->group_names)).end(); ++_iter1539) + std::vector ::const_iterator _iter1641; + for (_iter1641 = (*(this->group_names)).begin(); _iter1641 != (*(this->group_names)).end(); ++_iter1641) { - xfer += oprot->writeString((*_iter1539)); + xfer += oprot->writeString((*_iter1641)); } 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 _size1540; - ::apache::thrift::protocol::TType _etype1543; - xfer += iprot->readListBegin(_etype1543, _size1540); - this->success.resize(_size1540); - uint32_t _i1544; - for (_i1544 = 0; _i1544 < _size1540; ++_i1544) + uint32_t _size1642; + ::apache::thrift::protocol::TType _etype1645; + xfer += iprot->readListBegin(_etype1645, _size1642); + this->success.resize(_size1642); + uint32_t _i1646; + for (_i1646 = 0; _i1646 < _size1642; ++_i1646) { - xfer += this->success[_i1544].read(iprot); + xfer += this->success[_i1646].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 _iter1545; - for (_iter1545 = this->success.begin(); _iter1545 != this->success.end(); ++_iter1545) + std::vector ::const_iterator _iter1647; + for (_iter1647 = this->success.begin(); _iter1647 != this->success.end(); ++_iter1647) { - xfer += (*_iter1545).write(oprot); + xfer += (*_iter1647).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 _size1546; - ::apache::thrift::protocol::TType _etype1549; - xfer += iprot->readListBegin(_etype1549, _size1546); - (*(this->success)).resize(_size1546); - uint32_t _i1550; - for (_i1550 = 0; _i1550 < _size1546; ++_i1550) + uint32_t _size1648; + ::apache::thrift::protocol::TType _etype1651; + xfer += iprot->readListBegin(_etype1651, _size1648); + (*(this->success)).resize(_size1648); + uint32_t _i1652; + for (_i1652 = 0; _i1652 < _size1648; ++_i1652) { - xfer += (*(this->success))[_i1550].read(iprot); + xfer += (*(this->success))[_i1652].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 _size1551; - ::apache::thrift::protocol::TType _etype1554; - xfer += iprot->readListBegin(_etype1554, _size1551); - this->success.resize(_size1551); - uint32_t _i1555; - for (_i1555 = 0; _i1555 < _size1551; ++_i1555) + uint32_t _size1653; + ::apache::thrift::protocol::TType _etype1656; + xfer += iprot->readListBegin(_etype1656, _size1653); + this->success.resize(_size1653); + uint32_t _i1657; + for (_i1657 = 0; _i1657 < _size1653; ++_i1657) { - xfer += this->success[_i1555].read(iprot); + xfer += this->success[_i1657].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 _iter1556; - for (_iter1556 = this->success.begin(); _iter1556 != this->success.end(); ++_iter1556) + std::vector ::const_iterator _iter1658; + for (_iter1658 = this->success.begin(); _iter1658 != this->success.end(); ++_iter1658) { - xfer += (*_iter1556).write(oprot); + xfer += (*_iter1658).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 _size1557; - ::apache::thrift::protocol::TType _etype1560; - xfer += iprot->readListBegin(_etype1560, _size1557); - (*(this->success)).resize(_size1557); - uint32_t _i1561; - for (_i1561 = 0; _i1561 < _size1557; ++_i1561) + uint32_t _size1659; + ::apache::thrift::protocol::TType _etype1662; + xfer += iprot->readListBegin(_etype1662, _size1659); + (*(this->success)).resize(_size1659); + uint32_t _i1663; + for (_i1663 = 0; _i1663 < _size1659; ++_i1663) { - xfer += (*(this->success))[_i1561].read(iprot); + xfer += (*(this->success))[_i1663].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 _size1562; - ::apache::thrift::protocol::TType _etype1565; - xfer += iprot->readListBegin(_etype1565, _size1562); - this->success.resize(_size1562); - uint32_t _i1566; - for (_i1566 = 0; _i1566 < _size1562; ++_i1566) + uint32_t _size1664; + ::apache::thrift::protocol::TType _etype1667; + xfer += iprot->readListBegin(_etype1667, _size1664); + this->success.resize(_size1664); + uint32_t _i1668; + for (_i1668 = 0; _i1668 < _size1664; ++_i1668) { - xfer += iprot->readString(this->success[_i1566]); + xfer += iprot->readString(this->success[_i1668]); } 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 _iter1567; - for (_iter1567 = this->success.begin(); _iter1567 != this->success.end(); ++_iter1567) + std::vector ::const_iterator _iter1669; + for (_iter1669 = this->success.begin(); _iter1669 != this->success.end(); ++_iter1669) { - xfer += oprot->writeString((*_iter1567)); + xfer += oprot->writeString((*_iter1669)); } 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 _size1568; - ::apache::thrift::protocol::TType _etype1571; - xfer += iprot->readListBegin(_etype1571, _size1568); - (*(this->success)).resize(_size1568); - uint32_t _i1572; - for (_i1572 = 0; _i1572 < _size1568; ++_i1572) + uint32_t _size1670; + ::apache::thrift::protocol::TType _etype1673; + xfer += iprot->readListBegin(_etype1673, _size1670); + (*(this->success)).resize(_size1670); + uint32_t _i1674; + for (_i1674 = 0; _i1674 < _size1670; ++_i1674) { - xfer += iprot->readString((*(this->success))[_i1572]); + xfer += iprot->readString((*(this->success))[_i1674]); } 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 _size1573; - ::apache::thrift::protocol::TType _etype1576; - xfer += iprot->readListBegin(_etype1576, _size1573); - this->part_vals.resize(_size1573); - uint32_t _i1577; - for (_i1577 = 0; _i1577 < _size1573; ++_i1577) + uint32_t _size1675; + ::apache::thrift::protocol::TType _etype1678; + xfer += iprot->readListBegin(_etype1678, _size1675); + this->part_vals.resize(_size1675); + uint32_t _i1679; + for (_i1679 = 0; _i1679 < _size1675; ++_i1679) { - xfer += iprot->readString(this->part_vals[_i1577]); + xfer += iprot->readString(this->part_vals[_i1679]); } 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 _iter1578; - for (_iter1578 = this->part_vals.begin(); _iter1578 != this->part_vals.end(); ++_iter1578) + std::vector ::const_iterator _iter1680; + for (_iter1680 = this->part_vals.begin(); _iter1680 != this->part_vals.end(); ++_iter1680) { - xfer += oprot->writeString((*_iter1578)); + xfer += oprot->writeString((*_iter1680)); } 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 _iter1579; - for (_iter1579 = (*(this->part_vals)).begin(); _iter1579 != (*(this->part_vals)).end(); ++_iter1579) + std::vector ::const_iterator _iter1681; + for (_iter1681 = (*(this->part_vals)).begin(); _iter1681 != (*(this->part_vals)).end(); ++_iter1681) { - xfer += oprot->writeString((*_iter1579)); + xfer += oprot->writeString((*_iter1681)); } 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 _size1580; - ::apache::thrift::protocol::TType _etype1583; - xfer += iprot->readListBegin(_etype1583, _size1580); - this->success.resize(_size1580); - uint32_t _i1584; - for (_i1584 = 0; _i1584 < _size1580; ++_i1584) + uint32_t _size1682; + ::apache::thrift::protocol::TType _etype1685; + xfer += iprot->readListBegin(_etype1685, _size1682); + this->success.resize(_size1682); + uint32_t _i1686; + for (_i1686 = 0; _i1686 < _size1682; ++_i1686) { - xfer += this->success[_i1584].read(iprot); + xfer += this->success[_i1686].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 _iter1585; - for (_iter1585 = this->success.begin(); _iter1585 != this->success.end(); ++_iter1585) + std::vector ::const_iterator _iter1687; + for (_iter1687 = this->success.begin(); _iter1687 != this->success.end(); ++_iter1687) { - xfer += (*_iter1585).write(oprot); + xfer += (*_iter1687).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 _size1586; - ::apache::thrift::protocol::TType _etype1589; - xfer += iprot->readListBegin(_etype1589, _size1586); - (*(this->success)).resize(_size1586); - uint32_t _i1590; - for (_i1590 = 0; _i1590 < _size1586; ++_i1590) + uint32_t _size1688; + ::apache::thrift::protocol::TType _etype1691; + xfer += iprot->readListBegin(_etype1691, _size1688); + (*(this->success)).resize(_size1688); + uint32_t _i1692; + for (_i1692 = 0; _i1692 < _size1688; ++_i1692) { - xfer += (*(this->success))[_i1590].read(iprot); + xfer += (*(this->success))[_i1692].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 _size1591; - ::apache::thrift::protocol::TType _etype1594; - xfer += iprot->readListBegin(_etype1594, _size1591); - this->part_vals.resize(_size1591); - uint32_t _i1595; - for (_i1595 = 0; _i1595 < _size1591; ++_i1595) + uint32_t _size1693; + ::apache::thrift::protocol::TType _etype1696; + xfer += iprot->readListBegin(_etype1696, _size1693); + this->part_vals.resize(_size1693); + uint32_t _i1697; + for (_i1697 = 0; _i1697 < _size1693; ++_i1697) { - xfer += iprot->readString(this->part_vals[_i1595]); + xfer += iprot->readString(this->part_vals[_i1697]); } 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 _size1596; - ::apache::thrift::protocol::TType _etype1599; - xfer += iprot->readListBegin(_etype1599, _size1596); - this->group_names.resize(_size1596); - uint32_t _i1600; - for (_i1600 = 0; _i1600 < _size1596; ++_i1600) + uint32_t _size1698; + ::apache::thrift::protocol::TType _etype1701; + xfer += iprot->readListBegin(_etype1701, _size1698); + this->group_names.resize(_size1698); + uint32_t _i1702; + for (_i1702 = 0; _i1702 < _size1698; ++_i1702) { - xfer += iprot->readString(this->group_names[_i1600]); + xfer += iprot->readString(this->group_names[_i1702]); } 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 _iter1601; - for (_iter1601 = this->part_vals.begin(); _iter1601 != this->part_vals.end(); ++_iter1601) + std::vector ::const_iterator _iter1703; + for (_iter1703 = this->part_vals.begin(); _iter1703 != this->part_vals.end(); ++_iter1703) { - xfer += oprot->writeString((*_iter1601)); + xfer += oprot->writeString((*_iter1703)); } 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 _iter1602; - for (_iter1602 = this->group_names.begin(); _iter1602 != this->group_names.end(); ++_iter1602) + std::vector ::const_iterator _iter1704; + for (_iter1704 = this->group_names.begin(); _iter1704 != this->group_names.end(); ++_iter1704) { - xfer += oprot->writeString((*_iter1602)); + xfer += oprot->writeString((*_iter1704)); } 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 _iter1603; - for (_iter1603 = (*(this->part_vals)).begin(); _iter1603 != (*(this->part_vals)).end(); ++_iter1603) + std::vector ::const_iterator _iter1705; + for (_iter1705 = (*(this->part_vals)).begin(); _iter1705 != (*(this->part_vals)).end(); ++_iter1705) { - xfer += oprot->writeString((*_iter1603)); + xfer += oprot->writeString((*_iter1705)); } 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 _iter1604; - for (_iter1604 = (*(this->group_names)).begin(); _iter1604 != (*(this->group_names)).end(); ++_iter1604) + std::vector ::const_iterator _iter1706; + for (_iter1706 = (*(this->group_names)).begin(); _iter1706 != (*(this->group_names)).end(); ++_iter1706) { - xfer += oprot->writeString((*_iter1604)); + xfer += oprot->writeString((*_iter1706)); } 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 _size1605; - ::apache::thrift::protocol::TType _etype1608; - xfer += iprot->readListBegin(_etype1608, _size1605); - this->success.resize(_size1605); - uint32_t _i1609; - for (_i1609 = 0; _i1609 < _size1605; ++_i1609) + uint32_t _size1707; + ::apache::thrift::protocol::TType _etype1710; + xfer += iprot->readListBegin(_etype1710, _size1707); + this->success.resize(_size1707); + uint32_t _i1711; + for (_i1711 = 0; _i1711 < _size1707; ++_i1711) { - xfer += this->success[_i1609].read(iprot); + xfer += this->success[_i1711].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 _iter1610; - for (_iter1610 = this->success.begin(); _iter1610 != this->success.end(); ++_iter1610) + std::vector ::const_iterator _iter1712; + for (_iter1712 = this->success.begin(); _iter1712 != this->success.end(); ++_iter1712) { - xfer += (*_iter1610).write(oprot); + xfer += (*_iter1712).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 _size1611; - ::apache::thrift::protocol::TType _etype1614; - xfer += iprot->readListBegin(_etype1614, _size1611); - (*(this->success)).resize(_size1611); - uint32_t _i1615; - for (_i1615 = 0; _i1615 < _size1611; ++_i1615) + uint32_t _size1713; + ::apache::thrift::protocol::TType _etype1716; + xfer += iprot->readListBegin(_etype1716, _size1713); + (*(this->success)).resize(_size1713); + uint32_t _i1717; + for (_i1717 = 0; _i1717 < _size1713; ++_i1717) { - xfer += (*(this->success))[_i1615].read(iprot); + xfer += (*(this->success))[_i1717].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 _size1616; - ::apache::thrift::protocol::TType _etype1619; - xfer += iprot->readListBegin(_etype1619, _size1616); - this->part_vals.resize(_size1616); - uint32_t _i1620; - for (_i1620 = 0; _i1620 < _size1616; ++_i1620) + uint32_t _size1718; + ::apache::thrift::protocol::TType _etype1721; + xfer += iprot->readListBegin(_etype1721, _size1718); + this->part_vals.resize(_size1718); + uint32_t _i1722; + for (_i1722 = 0; _i1722 < _size1718; ++_i1722) { - xfer += iprot->readString(this->part_vals[_i1620]); + xfer += iprot->readString(this->part_vals[_i1722]); } 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 _iter1621; - for (_iter1621 = this->part_vals.begin(); _iter1621 != this->part_vals.end(); ++_iter1621) + std::vector ::const_iterator _iter1723; + for (_iter1723 = this->part_vals.begin(); _iter1723 != this->part_vals.end(); ++_iter1723) { - xfer += oprot->writeString((*_iter1621)); + xfer += oprot->writeString((*_iter1723)); } 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 _iter1622; - for (_iter1622 = (*(this->part_vals)).begin(); _iter1622 != (*(this->part_vals)).end(); ++_iter1622) + std::vector ::const_iterator _iter1724; + for (_iter1724 = (*(this->part_vals)).begin(); _iter1724 != (*(this->part_vals)).end(); ++_iter1724) { - xfer += oprot->writeString((*_iter1622)); + xfer += oprot->writeString((*_iter1724)); } 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 _size1623; - ::apache::thrift::protocol::TType _etype1626; - xfer += iprot->readListBegin(_etype1626, _size1623); - this->success.resize(_size1623); - uint32_t _i1627; - for (_i1627 = 0; _i1627 < _size1623; ++_i1627) + uint32_t _size1725; + ::apache::thrift::protocol::TType _etype1728; + xfer += iprot->readListBegin(_etype1728, _size1725); + this->success.resize(_size1725); + uint32_t _i1729; + for (_i1729 = 0; _i1729 < _size1725; ++_i1729) { - xfer += iprot->readString(this->success[_i1627]); + xfer += iprot->readString(this->success[_i1729]); } 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 _iter1628; - for (_iter1628 = this->success.begin(); _iter1628 != this->success.end(); ++_iter1628) + std::vector ::const_iterator _iter1730; + for (_iter1730 = this->success.begin(); _iter1730 != this->success.end(); ++_iter1730) { - xfer += oprot->writeString((*_iter1628)); + xfer += oprot->writeString((*_iter1730)); } 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 _size1629; - ::apache::thrift::protocol::TType _etype1632; - xfer += iprot->readListBegin(_etype1632, _size1629); - (*(this->success)).resize(_size1629); - uint32_t _i1633; - for (_i1633 = 0; _i1633 < _size1629; ++_i1633) + uint32_t _size1731; + ::apache::thrift::protocol::TType _etype1734; + xfer += iprot->readListBegin(_etype1734, _size1731); + (*(this->success)).resize(_size1731); + uint32_t _i1735; + for (_i1735 = 0; _i1735 < _size1731; ++_i1735) { - xfer += iprot->readString((*(this->success))[_i1633]); + xfer += iprot->readString((*(this->success))[_i1735]); } 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 _size1634; - ::apache::thrift::protocol::TType _etype1637; - xfer += iprot->readListBegin(_etype1637, _size1634); - this->success.resize(_size1634); - uint32_t _i1638; - for (_i1638 = 0; _i1638 < _size1634; ++_i1638) + 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 += this->success[_i1638].read(iprot); + xfer += this->success[_i1740].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 _iter1639; - for (_iter1639 = this->success.begin(); _iter1639 != this->success.end(); ++_iter1639) + std::vector ::const_iterator _iter1741; + for (_iter1741 = this->success.begin(); _iter1741 != this->success.end(); ++_iter1741) { - xfer += (*_iter1639).write(oprot); + xfer += (*_iter1741).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 _size1640; - ::apache::thrift::protocol::TType _etype1643; - xfer += iprot->readListBegin(_etype1643, _size1640); - (*(this->success)).resize(_size1640); - uint32_t _i1644; - for (_i1644 = 0; _i1644 < _size1640; ++_i1644) + uint32_t _size1742; + ::apache::thrift::protocol::TType _etype1745; + xfer += iprot->readListBegin(_etype1745, _size1742); + (*(this->success)).resize(_size1742); + uint32_t _i1746; + for (_i1746 = 0; _i1746 < _size1742; ++_i1746) { - xfer += (*(this->success))[_i1644].read(iprot); + xfer += (*(this->success))[_i1746].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 _size1645; - ::apache::thrift::protocol::TType _etype1648; - xfer += iprot->readListBegin(_etype1648, _size1645); - this->success.resize(_size1645); - uint32_t _i1649; - for (_i1649 = 0; _i1649 < _size1645; ++_i1649) + uint32_t _size1747; + ::apache::thrift::protocol::TType _etype1750; + xfer += iprot->readListBegin(_etype1750, _size1747); + this->success.resize(_size1747); + uint32_t _i1751; + for (_i1751 = 0; _i1751 < _size1747; ++_i1751) { - xfer += this->success[_i1649].read(iprot); + xfer += this->success[_i1751].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 _iter1650; - for (_iter1650 = this->success.begin(); _iter1650 != this->success.end(); ++_iter1650) + std::vector ::const_iterator _iter1752; + for (_iter1752 = this->success.begin(); _iter1752 != this->success.end(); ++_iter1752) { - xfer += (*_iter1650).write(oprot); + xfer += (*_iter1752).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 _size1651; - ::apache::thrift::protocol::TType _etype1654; - xfer += iprot->readListBegin(_etype1654, _size1651); - (*(this->success)).resize(_size1651); - uint32_t _i1655; - for (_i1655 = 0; _i1655 < _size1651; ++_i1655) + uint32_t _size1753; + ::apache::thrift::protocol::TType _etype1756; + xfer += iprot->readListBegin(_etype1756, _size1753); + (*(this->success)).resize(_size1753); + uint32_t _i1757; + for (_i1757 = 0; _i1757 < _size1753; ++_i1757) { - xfer += (*(this->success))[_i1655].read(iprot); + xfer += (*(this->success))[_i1757].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 _size1656; - ::apache::thrift::protocol::TType _etype1659; - xfer += iprot->readListBegin(_etype1659, _size1656); - this->names.resize(_size1656); - uint32_t _i1660; - for (_i1660 = 0; _i1660 < _size1656; ++_i1660) + uint32_t _size1758; + ::apache::thrift::protocol::TType _etype1761; + xfer += iprot->readListBegin(_etype1761, _size1758); + this->names.resize(_size1758); + uint32_t _i1762; + for (_i1762 = 0; _i1762 < _size1758; ++_i1762) { - xfer += iprot->readString(this->names[_i1660]); + xfer += iprot->readString(this->names[_i1762]); } 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 _iter1661; - for (_iter1661 = this->names.begin(); _iter1661 != this->names.end(); ++_iter1661) + std::vector ::const_iterator _iter1763; + for (_iter1763 = this->names.begin(); _iter1763 != this->names.end(); ++_iter1763) { - xfer += oprot->writeString((*_iter1661)); + xfer += oprot->writeString((*_iter1763)); } 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 _iter1662; - for (_iter1662 = (*(this->names)).begin(); _iter1662 != (*(this->names)).end(); ++_iter1662) + std::vector ::const_iterator _iter1764; + for (_iter1764 = (*(this->names)).begin(); _iter1764 != (*(this->names)).end(); ++_iter1764) { - xfer += oprot->writeString((*_iter1662)); + xfer += oprot->writeString((*_iter1764)); } 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 _size1663; - ::apache::thrift::protocol::TType _etype1666; - xfer += iprot->readListBegin(_etype1666, _size1663); - this->success.resize(_size1663); - uint32_t _i1667; - for (_i1667 = 0; _i1667 < _size1663; ++_i1667) + uint32_t _size1765; + ::apache::thrift::protocol::TType _etype1768; + xfer += iprot->readListBegin(_etype1768, _size1765); + this->success.resize(_size1765); + uint32_t _i1769; + for (_i1769 = 0; _i1769 < _size1765; ++_i1769) { - xfer += this->success[_i1667].read(iprot); + xfer += this->success[_i1769].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 _iter1668; - for (_iter1668 = this->success.begin(); _iter1668 != this->success.end(); ++_iter1668) + std::vector ::const_iterator _iter1770; + for (_iter1770 = this->success.begin(); _iter1770 != this->success.end(); ++_iter1770) { - xfer += (*_iter1668).write(oprot); + xfer += (*_iter1770).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 _size1669; - ::apache::thrift::protocol::TType _etype1672; - xfer += iprot->readListBegin(_etype1672, _size1669); - (*(this->success)).resize(_size1669); - uint32_t _i1673; - for (_i1673 = 0; _i1673 < _size1669; ++_i1673) + uint32_t _size1771; + ::apache::thrift::protocol::TType _etype1774; + xfer += iprot->readListBegin(_etype1774, _size1771); + (*(this->success)).resize(_size1771); + uint32_t _i1775; + for (_i1775 = 0; _i1775 < _size1771; ++_i1775) { - xfer += (*(this->success))[_i1673].read(iprot); + xfer += (*(this->success))[_i1775].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 _size1674; - ::apache::thrift::protocol::TType _etype1677; - xfer += iprot->readListBegin(_etype1677, _size1674); - this->new_parts.resize(_size1674); - uint32_t _i1678; - for (_i1678 = 0; _i1678 < _size1674; ++_i1678) + uint32_t _size1776; + ::apache::thrift::protocol::TType _etype1779; + xfer += iprot->readListBegin(_etype1779, _size1776); + this->new_parts.resize(_size1776); + uint32_t _i1780; + for (_i1780 = 0; _i1780 < _size1776; ++_i1780) { - xfer += this->new_parts[_i1678].read(iprot); + xfer += this->new_parts[_i1780].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 _iter1679; - for (_iter1679 = this->new_parts.begin(); _iter1679 != this->new_parts.end(); ++_iter1679) + std::vector ::const_iterator _iter1781; + for (_iter1781 = this->new_parts.begin(); _iter1781 != this->new_parts.end(); ++_iter1781) { - xfer += (*_iter1679).write(oprot); + xfer += (*_iter1781).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 _iter1680; - for (_iter1680 = (*(this->new_parts)).begin(); _iter1680 != (*(this->new_parts)).end(); ++_iter1680) + std::vector ::const_iterator _iter1782; + for (_iter1782 = (*(this->new_parts)).begin(); _iter1782 != (*(this->new_parts)).end(); ++_iter1782) { - xfer += (*_iter1680).write(oprot); + xfer += (*_iter1782).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 _size1681; - ::apache::thrift::protocol::TType _etype1684; - xfer += iprot->readListBegin(_etype1684, _size1681); - this->new_parts.resize(_size1681); - uint32_t _i1685; - for (_i1685 = 0; _i1685 < _size1681; ++_i1685) + uint32_t _size1783; + ::apache::thrift::protocol::TType _etype1786; + xfer += iprot->readListBegin(_etype1786, _size1783); + this->new_parts.resize(_size1783); + uint32_t _i1787; + for (_i1787 = 0; _i1787 < _size1783; ++_i1787) { - xfer += this->new_parts[_i1685].read(iprot); + xfer += this->new_parts[_i1787].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 _iter1686; - for (_iter1686 = this->new_parts.begin(); _iter1686 != this->new_parts.end(); ++_iter1686) + std::vector ::const_iterator _iter1788; + for (_iter1788 = this->new_parts.begin(); _iter1788 != this->new_parts.end(); ++_iter1788) { - xfer += (*_iter1686).write(oprot); + xfer += (*_iter1788).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 _iter1687; - for (_iter1687 = (*(this->new_parts)).begin(); _iter1687 != (*(this->new_parts)).end(); ++_iter1687) + std::vector ::const_iterator _iter1789; + for (_iter1789 = (*(this->new_parts)).begin(); _iter1789 != (*(this->new_parts)).end(); ++_iter1789) { - xfer += (*_iter1687).write(oprot); + xfer += (*_iter1789).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 _size1688; - ::apache::thrift::protocol::TType _etype1691; - xfer += iprot->readListBegin(_etype1691, _size1688); - this->part_vals.resize(_size1688); - uint32_t _i1692; - for (_i1692 = 0; _i1692 < _size1688; ++_i1692) + uint32_t _size1790; + ::apache::thrift::protocol::TType _etype1793; + xfer += iprot->readListBegin(_etype1793, _size1790); + this->part_vals.resize(_size1790); + uint32_t _i1794; + for (_i1794 = 0; _i1794 < _size1790; ++_i1794) { - xfer += iprot->readString(this->part_vals[_i1692]); + xfer += iprot->readString(this->part_vals[_i1794]); } 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 _iter1693; - for (_iter1693 = this->part_vals.begin(); _iter1693 != this->part_vals.end(); ++_iter1693) + std::vector ::const_iterator _iter1795; + for (_iter1795 = this->part_vals.begin(); _iter1795 != this->part_vals.end(); ++_iter1795) { - xfer += oprot->writeString((*_iter1693)); + xfer += oprot->writeString((*_iter1795)); } 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 _iter1694; - for (_iter1694 = (*(this->part_vals)).begin(); _iter1694 != (*(this->part_vals)).end(); ++_iter1694) + std::vector ::const_iterator _iter1796; + for (_iter1796 = (*(this->part_vals)).begin(); _iter1796 != (*(this->part_vals)).end(); ++_iter1796) { - xfer += oprot->writeString((*_iter1694)); + xfer += oprot->writeString((*_iter1796)); } 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 _size1695; - ::apache::thrift::protocol::TType _etype1698; - xfer += iprot->readListBegin(_etype1698, _size1695); - this->part_vals.resize(_size1695); - uint32_t _i1699; - for (_i1699 = 0; _i1699 < _size1695; ++_i1699) + uint32_t _size1797; + ::apache::thrift::protocol::TType _etype1800; + xfer += iprot->readListBegin(_etype1800, _size1797); + this->part_vals.resize(_size1797); + uint32_t _i1801; + for (_i1801 = 0; _i1801 < _size1797; ++_i1801) { - xfer += iprot->readString(this->part_vals[_i1699]); + xfer += iprot->readString(this->part_vals[_i1801]); } 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 _iter1700; - for (_iter1700 = this->part_vals.begin(); _iter1700 != this->part_vals.end(); ++_iter1700) + std::vector ::const_iterator _iter1802; + for (_iter1802 = this->part_vals.begin(); _iter1802 != this->part_vals.end(); ++_iter1802) { - xfer += oprot->writeString((*_iter1700)); + xfer += oprot->writeString((*_iter1802)); } 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 _iter1701; - for (_iter1701 = (*(this->part_vals)).begin(); _iter1701 != (*(this->part_vals)).end(); ++_iter1701) + std::vector ::const_iterator _iter1803; + for (_iter1803 = (*(this->part_vals)).begin(); _iter1803 != (*(this->part_vals)).end(); ++_iter1803) { - xfer += oprot->writeString((*_iter1701)); + xfer += oprot->writeString((*_iter1803)); } 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 _size1702; - ::apache::thrift::protocol::TType _etype1705; - xfer += iprot->readListBegin(_etype1705, _size1702); - this->success.resize(_size1702); - uint32_t _i1706; - for (_i1706 = 0; _i1706 < _size1702; ++_i1706) + uint32_t _size1804; + ::apache::thrift::protocol::TType _etype1807; + xfer += iprot->readListBegin(_etype1807, _size1804); + this->success.resize(_size1804); + uint32_t _i1808; + for (_i1808 = 0; _i1808 < _size1804; ++_i1808) { - xfer += iprot->readString(this->success[_i1706]); + xfer += iprot->readString(this->success[_i1808]); } 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 _iter1707; - for (_iter1707 = this->success.begin(); _iter1707 != this->success.end(); ++_iter1707) + std::vector ::const_iterator _iter1809; + for (_iter1809 = this->success.begin(); _iter1809 != this->success.end(); ++_iter1809) { - xfer += oprot->writeString((*_iter1707)); + xfer += oprot->writeString((*_iter1809)); } 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 _size1708; - ::apache::thrift::protocol::TType _etype1711; - xfer += iprot->readListBegin(_etype1711, _size1708); - (*(this->success)).resize(_size1708); - uint32_t _i1712; - for (_i1712 = 0; _i1712 < _size1708; ++_i1712) + uint32_t _size1810; + ::apache::thrift::protocol::TType _etype1813; + xfer += iprot->readListBegin(_etype1813, _size1810); + (*(this->success)).resize(_size1810); + uint32_t _i1814; + for (_i1814 = 0; _i1814 < _size1810; ++_i1814) { - xfer += iprot->readString((*(this->success))[_i1712]); + xfer += iprot->readString((*(this->success))[_i1814]); } 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 _size1713; - ::apache::thrift::protocol::TType _ktype1714; - ::apache::thrift::protocol::TType _vtype1715; - xfer += iprot->readMapBegin(_ktype1714, _vtype1715, _size1713); - uint32_t _i1717; - for (_i1717 = 0; _i1717 < _size1713; ++_i1717) + uint32_t _size1815; + ::apache::thrift::protocol::TType _ktype1816; + ::apache::thrift::protocol::TType _vtype1817; + xfer += iprot->readMapBegin(_ktype1816, _vtype1817, _size1815); + uint32_t _i1819; + for (_i1819 = 0; _i1819 < _size1815; ++_i1819) { - std::string _key1718; - xfer += iprot->readString(_key1718); - std::string& _val1719 = this->success[_key1718]; - xfer += iprot->readString(_val1719); + std::string _key1820; + xfer += iprot->readString(_key1820); + std::string& _val1821 = this->success[_key1820]; + xfer += iprot->readString(_val1821); } 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 _iter1720; - for (_iter1720 = this->success.begin(); _iter1720 != this->success.end(); ++_iter1720) + std::map ::const_iterator _iter1822; + for (_iter1822 = this->success.begin(); _iter1822 != this->success.end(); ++_iter1822) { - xfer += oprot->writeString(_iter1720->first); - xfer += oprot->writeString(_iter1720->second); + xfer += oprot->writeString(_iter1822->first); + xfer += oprot->writeString(_iter1822->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 _size1721; - ::apache::thrift::protocol::TType _ktype1722; - ::apache::thrift::protocol::TType _vtype1723; - xfer += iprot->readMapBegin(_ktype1722, _vtype1723, _size1721); - uint32_t _i1725; - for (_i1725 = 0; _i1725 < _size1721; ++_i1725) + uint32_t _size1823; + ::apache::thrift::protocol::TType _ktype1824; + ::apache::thrift::protocol::TType _vtype1825; + xfer += iprot->readMapBegin(_ktype1824, _vtype1825, _size1823); + uint32_t _i1827; + for (_i1827 = 0; _i1827 < _size1823; ++_i1827) { - std::string _key1726; - xfer += iprot->readString(_key1726); - std::string& _val1727 = (*(this->success))[_key1726]; - xfer += iprot->readString(_val1727); + std::string _key1828; + xfer += iprot->readString(_key1828); + std::string& _val1829 = (*(this->success))[_key1828]; + xfer += iprot->readString(_val1829); } 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 _size1728; - ::apache::thrift::protocol::TType _ktype1729; - ::apache::thrift::protocol::TType _vtype1730; - xfer += iprot->readMapBegin(_ktype1729, _vtype1730, _size1728); - uint32_t _i1732; - for (_i1732 = 0; _i1732 < _size1728; ++_i1732) + uint32_t _size1830; + ::apache::thrift::protocol::TType _ktype1831; + ::apache::thrift::protocol::TType _vtype1832; + xfer += iprot->readMapBegin(_ktype1831, _vtype1832, _size1830); + uint32_t _i1834; + for (_i1834 = 0; _i1834 < _size1830; ++_i1834) { - std::string _key1733; - xfer += iprot->readString(_key1733); - std::string& _val1734 = this->part_vals[_key1733]; - xfer += iprot->readString(_val1734); + std::string _key1835; + xfer += iprot->readString(_key1835); + std::string& _val1836 = this->part_vals[_key1835]; + xfer += iprot->readString(_val1836); } 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 ecast1735; - xfer += iprot->readI32(ecast1735); - this->eventType = (PartitionEventType::type)ecast1735; + int32_t ecast1837; + xfer += iprot->readI32(ecast1837); + this->eventType = (PartitionEventType::type)ecast1837; 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 _iter1736; - for (_iter1736 = this->part_vals.begin(); _iter1736 != this->part_vals.end(); ++_iter1736) + std::map ::const_iterator _iter1838; + for (_iter1838 = this->part_vals.begin(); _iter1838 != this->part_vals.end(); ++_iter1838) { - xfer += oprot->writeString(_iter1736->first); - xfer += oprot->writeString(_iter1736->second); + xfer += oprot->writeString(_iter1838->first); + xfer += oprot->writeString(_iter1838->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 _iter1737; - for (_iter1737 = (*(this->part_vals)).begin(); _iter1737 != (*(this->part_vals)).end(); ++_iter1737) + std::map ::const_iterator _iter1839; + for (_iter1839 = (*(this->part_vals)).begin(); _iter1839 != (*(this->part_vals)).end(); ++_iter1839) { - xfer += oprot->writeString(_iter1737->first); - xfer += oprot->writeString(_iter1737->second); + xfer += oprot->writeString(_iter1839->first); + xfer += oprot->writeString(_iter1839->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 _size1738; - ::apache::thrift::protocol::TType _ktype1739; - ::apache::thrift::protocol::TType _vtype1740; - xfer += iprot->readMapBegin(_ktype1739, _vtype1740, _size1738); - uint32_t _i1742; - for (_i1742 = 0; _i1742 < _size1738; ++_i1742) + uint32_t _size1840; + ::apache::thrift::protocol::TType _ktype1841; + ::apache::thrift::protocol::TType _vtype1842; + xfer += iprot->readMapBegin(_ktype1841, _vtype1842, _size1840); + uint32_t _i1844; + for (_i1844 = 0; _i1844 < _size1840; ++_i1844) { - std::string _key1743; - xfer += iprot->readString(_key1743); - std::string& _val1744 = this->part_vals[_key1743]; - xfer += iprot->readString(_val1744); + std::string _key1845; + xfer += iprot->readString(_key1845); + std::string& _val1846 = this->part_vals[_key1845]; + xfer += iprot->readString(_val1846); } 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 ecast1745; - xfer += iprot->readI32(ecast1745); - this->eventType = (PartitionEventType::type)ecast1745; + int32_t ecast1847; + xfer += iprot->readI32(ecast1847); + this->eventType = (PartitionEventType::type)ecast1847; 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 _iter1746; - for (_iter1746 = this->part_vals.begin(); _iter1746 != this->part_vals.end(); ++_iter1746) + std::map ::const_iterator _iter1848; + for (_iter1848 = this->part_vals.begin(); _iter1848 != this->part_vals.end(); ++_iter1848) { - xfer += oprot->writeString(_iter1746->first); - xfer += oprot->writeString(_iter1746->second); + xfer += oprot->writeString(_iter1848->first); + xfer += oprot->writeString(_iter1848->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 _iter1747; - for (_iter1747 = (*(this->part_vals)).begin(); _iter1747 != (*(this->part_vals)).end(); ++_iter1747) + std::map ::const_iterator _iter1849; + for (_iter1849 = (*(this->part_vals)).begin(); _iter1849 != (*(this->part_vals)).end(); ++_iter1849) { - xfer += oprot->writeString(_iter1747->first); - xfer += oprot->writeString(_iter1747->second); + xfer += oprot->writeString(_iter1849->first); + xfer += oprot->writeString(_iter1849->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 _size1748; - ::apache::thrift::protocol::TType _etype1751; - xfer += iprot->readListBegin(_etype1751, _size1748); - this->success.resize(_size1748); - uint32_t _i1752; - for (_i1752 = 0; _i1752 < _size1748; ++_i1752) + 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[_i1752]); + xfer += iprot->readString(this->success[_i1854]); } 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 _iter1753; - for (_iter1753 = this->success.begin(); _iter1753 != this->success.end(); ++_iter1753) + std::vector ::const_iterator _iter1855; + for (_iter1855 = this->success.begin(); _iter1855 != this->success.end(); ++_iter1855) { - xfer += oprot->writeString((*_iter1753)); + xfer += oprot->writeString((*_iter1855)); } 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 _size1754; - ::apache::thrift::protocol::TType _etype1757; - xfer += iprot->readListBegin(_etype1757, _size1754); - (*(this->success)).resize(_size1754); - uint32_t _i1758; - for (_i1758 = 0; _i1758 < _size1754; ++_i1758) + 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))[_i1758]); + xfer += iprot->readString((*(this->success))[_i1860]); } 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 _size1759; - ::apache::thrift::protocol::TType _etype1762; - xfer += iprot->readListBegin(_etype1762, _size1759); - this->success.resize(_size1759); - uint32_t _i1763; - for (_i1763 = 0; _i1763 < _size1759; ++_i1763) + 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[_i1763]); + xfer += iprot->readString(this->success[_i1865]); } 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 _iter1764; - for (_iter1764 = this->success.begin(); _iter1764 != this->success.end(); ++_iter1764) + std::vector ::const_iterator _iter1866; + for (_iter1866 = this->success.begin(); _iter1866 != this->success.end(); ++_iter1866) { - xfer += oprot->writeString((*_iter1764)); + xfer += oprot->writeString((*_iter1866)); } 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 _size1765; - ::apache::thrift::protocol::TType _etype1768; - xfer += iprot->readListBegin(_etype1768, _size1765); - (*(this->success)).resize(_size1765); - uint32_t _i1769; - for (_i1769 = 0; _i1769 < _size1765; ++_i1769) + 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))[_i1769]); + xfer += iprot->readString((*(this->success))[_i1871]); } 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 ecast1770; - xfer += iprot->readI32(ecast1770); - this->principal_type = (PrincipalType::type)ecast1770; + int32_t ecast1872; + xfer += iprot->readI32(ecast1872); + this->principal_type = (PrincipalType::type)ecast1872; 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 ecast1771; - xfer += iprot->readI32(ecast1771); - this->grantorType = (PrincipalType::type)ecast1771; + int32_t ecast1873; + xfer += iprot->readI32(ecast1873); + this->grantorType = (PrincipalType::type)ecast1873; 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 ecast1772; - xfer += iprot->readI32(ecast1772); - this->principal_type = (PrincipalType::type)ecast1772; + int32_t ecast1874; + xfer += iprot->readI32(ecast1874); + this->principal_type = (PrincipalType::type)ecast1874; 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 ecast1773; - xfer += iprot->readI32(ecast1773); - this->principal_type = (PrincipalType::type)ecast1773; + int32_t ecast1875; + xfer += iprot->readI32(ecast1875); + this->principal_type = (PrincipalType::type)ecast1875; 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 _size1774; - ::apache::thrift::protocol::TType _etype1777; - xfer += iprot->readListBegin(_etype1777, _size1774); - this->success.resize(_size1774); - uint32_t _i1778; - for (_i1778 = 0; _i1778 < _size1774; ++_i1778) + uint32_t _size1876; + ::apache::thrift::protocol::TType _etype1879; + xfer += iprot->readListBegin(_etype1879, _size1876); + this->success.resize(_size1876); + uint32_t _i1880; + for (_i1880 = 0; _i1880 < _size1876; ++_i1880) { - xfer += this->success[_i1778].read(iprot); + xfer += this->success[_i1880].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 _iter1779; - for (_iter1779 = this->success.begin(); _iter1779 != this->success.end(); ++_iter1779) + std::vector ::const_iterator _iter1881; + for (_iter1881 = this->success.begin(); _iter1881 != this->success.end(); ++_iter1881) { - xfer += (*_iter1779).write(oprot); + xfer += (*_iter1881).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 _size1780; - ::apache::thrift::protocol::TType _etype1783; - xfer += iprot->readListBegin(_etype1783, _size1780); - (*(this->success)).resize(_size1780); - uint32_t _i1784; - for (_i1784 = 0; _i1784 < _size1780; ++_i1784) + uint32_t _size1882; + ::apache::thrift::protocol::TType _etype1885; + xfer += iprot->readListBegin(_etype1885, _size1882); + (*(this->success)).resize(_size1882); + uint32_t _i1886; + for (_i1886 = 0; _i1886 < _size1882; ++_i1886) { - xfer += (*(this->success))[_i1784].read(iprot); + xfer += (*(this->success))[_i1886].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 _size1785; - ::apache::thrift::protocol::TType _etype1788; - xfer += iprot->readListBegin(_etype1788, _size1785); - this->group_names.resize(_size1785); - uint32_t _i1789; - for (_i1789 = 0; _i1789 < _size1785; ++_i1789) + uint32_t _size1887; + ::apache::thrift::protocol::TType _etype1890; + xfer += iprot->readListBegin(_etype1890, _size1887); + this->group_names.resize(_size1887); + uint32_t _i1891; + for (_i1891 = 0; _i1891 < _size1887; ++_i1891) { - xfer += iprot->readString(this->group_names[_i1789]); + xfer += iprot->readString(this->group_names[_i1891]); } 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 _iter1790; - for (_iter1790 = this->group_names.begin(); _iter1790 != this->group_names.end(); ++_iter1790) + std::vector ::const_iterator _iter1892; + for (_iter1892 = this->group_names.begin(); _iter1892 != this->group_names.end(); ++_iter1892) { - xfer += oprot->writeString((*_iter1790)); + xfer += oprot->writeString((*_iter1892)); } 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 _iter1791; - for (_iter1791 = (*(this->group_names)).begin(); _iter1791 != (*(this->group_names)).end(); ++_iter1791) + std::vector ::const_iterator _iter1893; + for (_iter1893 = (*(this->group_names)).begin(); _iter1893 != (*(this->group_names)).end(); ++_iter1893) { - xfer += oprot->writeString((*_iter1791)); + xfer += oprot->writeString((*_iter1893)); } 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 ecast1792; - xfer += iprot->readI32(ecast1792); - this->principal_type = (PrincipalType::type)ecast1792; + int32_t ecast1894; + xfer += iprot->readI32(ecast1894); + this->principal_type = (PrincipalType::type)ecast1894; 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 _size1793; - ::apache::thrift::protocol::TType _etype1796; - xfer += iprot->readListBegin(_etype1796, _size1793); - this->success.resize(_size1793); - uint32_t _i1797; - for (_i1797 = 0; _i1797 < _size1793; ++_i1797) + uint32_t _size1895; + ::apache::thrift::protocol::TType _etype1898; + xfer += iprot->readListBegin(_etype1898, _size1895); + this->success.resize(_size1895); + uint32_t _i1899; + for (_i1899 = 0; _i1899 < _size1895; ++_i1899) { - xfer += this->success[_i1797].read(iprot); + xfer += this->success[_i1899].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 _iter1798; - for (_iter1798 = this->success.begin(); _iter1798 != this->success.end(); ++_iter1798) + std::vector ::const_iterator _iter1900; + for (_iter1900 = this->success.begin(); _iter1900 != this->success.end(); ++_iter1900) { - xfer += (*_iter1798).write(oprot); + xfer += (*_iter1900).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 _size1799; - ::apache::thrift::protocol::TType _etype1802; - xfer += iprot->readListBegin(_etype1802, _size1799); - (*(this->success)).resize(_size1799); - uint32_t _i1803; - for (_i1803 = 0; _i1803 < _size1799; ++_i1803) + uint32_t _size1901; + ::apache::thrift::protocol::TType _etype1904; + xfer += iprot->readListBegin(_etype1904, _size1901); + (*(this->success)).resize(_size1901); + uint32_t _i1905; + for (_i1905 = 0; _i1905 < _size1901; ++_i1905) { - xfer += (*(this->success))[_i1803].read(iprot); + xfer += (*(this->success))[_i1905].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 _size1804; - ::apache::thrift::protocol::TType _etype1807; - xfer += iprot->readListBegin(_etype1807, _size1804); - this->group_names.resize(_size1804); - uint32_t _i1808; - for (_i1808 = 0; _i1808 < _size1804; ++_i1808) + uint32_t _size1906; + ::apache::thrift::protocol::TType _etype1909; + xfer += iprot->readListBegin(_etype1909, _size1906); + this->group_names.resize(_size1906); + uint32_t _i1910; + for (_i1910 = 0; _i1910 < _size1906; ++_i1910) { - xfer += iprot->readString(this->group_names[_i1808]); + xfer += iprot->readString(this->group_names[_i1910]); } 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 _iter1809; - for (_iter1809 = this->group_names.begin(); _iter1809 != this->group_names.end(); ++_iter1809) + std::vector ::const_iterator _iter1911; + for (_iter1911 = this->group_names.begin(); _iter1911 != this->group_names.end(); ++_iter1911) { - xfer += oprot->writeString((*_iter1809)); + xfer += oprot->writeString((*_iter1911)); } 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 _iter1810; - for (_iter1810 = (*(this->group_names)).begin(); _iter1810 != (*(this->group_names)).end(); ++_iter1810) + std::vector ::const_iterator _iter1912; + for (_iter1912 = (*(this->group_names)).begin(); _iter1912 != (*(this->group_names)).end(); ++_iter1912) { - xfer += oprot->writeString((*_iter1810)); + xfer += oprot->writeString((*_iter1912)); } 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 _size1811; - ::apache::thrift::protocol::TType _etype1814; - xfer += iprot->readListBegin(_etype1814, _size1811); - this->success.resize(_size1811); - uint32_t _i1815; - for (_i1815 = 0; _i1815 < _size1811; ++_i1815) + uint32_t _size1913; + ::apache::thrift::protocol::TType _etype1916; + xfer += iprot->readListBegin(_etype1916, _size1913); + this->success.resize(_size1913); + uint32_t _i1917; + for (_i1917 = 0; _i1917 < _size1913; ++_i1917) { - xfer += iprot->readString(this->success[_i1815]); + xfer += iprot->readString(this->success[_i1917]); } 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 _iter1816; - for (_iter1816 = this->success.begin(); _iter1816 != this->success.end(); ++_iter1816) + std::vector ::const_iterator _iter1918; + for (_iter1918 = this->success.begin(); _iter1918 != this->success.end(); ++_iter1918) { - xfer += oprot->writeString((*_iter1816)); + xfer += oprot->writeString((*_iter1918)); } 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 _size1817; - ::apache::thrift::protocol::TType _etype1820; - xfer += iprot->readListBegin(_etype1820, _size1817); - (*(this->success)).resize(_size1817); - uint32_t _i1821; - for (_i1821 = 0; _i1821 < _size1817; ++_i1821) + uint32_t _size1919; + ::apache::thrift::protocol::TType _etype1922; + xfer += iprot->readListBegin(_etype1922, _size1919); + (*(this->success)).resize(_size1919); + uint32_t _i1923; + for (_i1923 = 0; _i1923 < _size1919; ++_i1923) { - xfer += iprot->readString((*(this->success))[_i1821]); + xfer += iprot->readString((*(this->success))[_i1923]); } 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 _size1822; - ::apache::thrift::protocol::TType _etype1825; - xfer += iprot->readListBegin(_etype1825, _size1822); - this->success.resize(_size1822); - uint32_t _i1826; - for (_i1826 = 0; _i1826 < _size1822; ++_i1826) + uint32_t _size1924; + ::apache::thrift::protocol::TType _etype1927; + xfer += iprot->readListBegin(_etype1927, _size1924); + this->success.resize(_size1924); + uint32_t _i1928; + for (_i1928 = 0; _i1928 < _size1924; ++_i1928) { - xfer += iprot->readString(this->success[_i1826]); + xfer += iprot->readString(this->success[_i1928]); } 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 _iter1827; - for (_iter1827 = this->success.begin(); _iter1827 != this->success.end(); ++_iter1827) + std::vector ::const_iterator _iter1929; + for (_iter1929 = this->success.begin(); _iter1929 != this->success.end(); ++_iter1929) { - xfer += oprot->writeString((*_iter1827)); + xfer += oprot->writeString((*_iter1929)); } 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 _size1828; - ::apache::thrift::protocol::TType _etype1831; - xfer += iprot->readListBegin(_etype1831, _size1828); - (*(this->success)).resize(_size1828); - uint32_t _i1832; - for (_i1832 = 0; _i1832 < _size1828; ++_i1832) + uint32_t _size1930; + ::apache::thrift::protocol::TType _etype1933; + xfer += iprot->readListBegin(_etype1933, _size1930); + (*(this->success)).resize(_size1930); + uint32_t _i1934; + for (_i1934 = 0; _i1934 < _size1930; ++_i1934) { - xfer += iprot->readString((*(this->success))[_i1832]); + xfer += iprot->readString((*(this->success))[_i1934]); } 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 _size1833; - ::apache::thrift::protocol::TType _etype1836; - xfer += iprot->readListBegin(_etype1836, _size1833); - this->success.resize(_size1833); - uint32_t _i1837; - for (_i1837 = 0; _i1837 < _size1833; ++_i1837) + uint32_t _size1935; + ::apache::thrift::protocol::TType _etype1938; + xfer += iprot->readListBegin(_etype1938, _size1935); + this->success.resize(_size1935); + uint32_t _i1939; + for (_i1939 = 0; _i1939 < _size1935; ++_i1939) { - xfer += iprot->readString(this->success[_i1837]); + xfer += iprot->readString(this->success[_i1939]); } 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 _iter1838; - for (_iter1838 = this->success.begin(); _iter1838 != this->success.end(); ++_iter1838) + std::vector ::const_iterator _iter1940; + for (_iter1940 = this->success.begin(); _iter1940 != this->success.end(); ++_iter1940) { - xfer += oprot->writeString((*_iter1838)); + xfer += oprot->writeString((*_iter1940)); } 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 _size1839; - ::apache::thrift::protocol::TType _etype1842; - xfer += iprot->readListBegin(_etype1842, _size1839); - (*(this->success)).resize(_size1839); - uint32_t _i1843; - for (_i1843 = 0; _i1843 < _size1839; ++_i1843) + uint32_t _size1941; + ::apache::thrift::protocol::TType _etype1944; + xfer += iprot->readListBegin(_etype1944, _size1941); + (*(this->success)).resize(_size1941); + uint32_t _i1945; + for (_i1945 = 0; _i1945 < _size1941; ++_i1945) { - xfer += iprot->readString((*(this->success))[_i1843]); + xfer += iprot->readString((*(this->success))[_i1945]); } 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 _size1844; - ::apache::thrift::protocol::TType _etype1847; - xfer += iprot->readListBegin(_etype1847, _size1844); - this->success.resize(_size1844); - uint32_t _i1848; - for (_i1848 = 0; _i1848 < _size1844; ++_i1848) + uint32_t _size1946; + ::apache::thrift::protocol::TType _etype1949; + xfer += iprot->readListBegin(_etype1949, _size1946); + this->success.resize(_size1946); + uint32_t _i1950; + for (_i1950 = 0; _i1950 < _size1946; ++_i1950) { - xfer += this->success[_i1848].read(iprot); + xfer += this->success[_i1950].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 _iter1849; - for (_iter1849 = this->success.begin(); _iter1849 != this->success.end(); ++_iter1849) + std::vector ::const_iterator _iter1951; + for (_iter1951 = this->success.begin(); _iter1951 != this->success.end(); ++_iter1951) { - xfer += (*_iter1849).write(oprot); + xfer += (*_iter1951).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 _size1850; - ::apache::thrift::protocol::TType _etype1853; - xfer += iprot->readListBegin(_etype1853, _size1850); - (*(this->success)).resize(_size1850); - uint32_t _i1854; - for (_i1854 = 0; _i1854 < _size1850; ++_i1854) + uint32_t _size1952; + ::apache::thrift::protocol::TType _etype1955; + xfer += iprot->readListBegin(_etype1955, _size1952); + (*(this->success)).resize(_size1952); + uint32_t _i1956; + for (_i1956 = 0; _i1956 < _size1952; ++_i1956) { - xfer += (*(this->success))[_i1854].read(iprot); + xfer += (*(this->success))[_i1956].read(iprot); } xfer += iprot->readListEnd(); } @@ -59461,6 +59648,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); @@ -71618,6 +71863,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; @@ -88754,6 +89053,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 802d8e3fb2..fc72df29dc 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; @@ -766,6 +767,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; } @@ -20876,6 +20880,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; @@ -26141,6 +26249,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); @@ -26433,6 +26544,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); @@ -26639,6 +26751,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; @@ -28263,6 +28376,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; @@ -29156,6 +29279,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 c0a39f80e0..81f0fe79b3 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 99024279c5..021679f517 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,41 @@ void CommitTxnRequest::__set_replPolicy(const std::string& val) { __isset.replPolicy = true; } +void CommitTxnRequest::__set_databases(const std::vector & val) { + this->databases = val; +__isset.databases = true; +} + +void CommitTxnRequest::__set_tables(const std::vector & val) { + this->tables = val; +__isset.tables = true; +} + +void CommitTxnRequest::__set_partitions(const std::vector & val) { + this->partitions = val; +__isset.partitions = true; +} + +void CommitTxnRequest::__set_writeIds(const std::vector & val) { + this->writeIds = val; +__isset.writeIds = true; +} + +void CommitTxnRequest::__set_tableObjs(const std::vector & val) { + this->tableObjs = val; +__isset.tableObjs = true; +} + +void CommitTxnRequest::__set_partitionObjs(const std::vector & val) { + this->partitionObjs = val; +__isset.partitionObjs = true; +} + +void CommitTxnRequest::__set_files(const std::vector & val) { + this->files = val; +__isset.files = true; +} + uint32_t CommitTxnRequest::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); @@ -16480,6 +16515,146 @@ uint32_t CommitTxnRequest::read(::apache::thrift::protocol::TProtocol* iprot) { xfer += iprot->skip(ftype); } break; + case 3: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->databases.clear(); + uint32_t _size670; + ::apache::thrift::protocol::TType _etype673; + xfer += iprot->readListBegin(_etype673, _size670); + this->databases.resize(_size670); + uint32_t _i674; + for (_i674 = 0; _i674 < _size670; ++_i674) + { + xfer += iprot->readString(this->databases[_i674]); + } + xfer += iprot->readListEnd(); + } + this->__isset.databases = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->tables.clear(); + uint32_t _size675; + ::apache::thrift::protocol::TType _etype678; + xfer += iprot->readListBegin(_etype678, _size675); + this->tables.resize(_size675); + uint32_t _i679; + for (_i679 = 0; _i679 < _size675; ++_i679) + { + xfer += iprot->readString(this->tables[_i679]); + } + xfer += iprot->readListEnd(); + } + this->__isset.tables = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->partitions.clear(); + uint32_t _size680; + ::apache::thrift::protocol::TType _etype683; + xfer += iprot->readListBegin(_etype683, _size680); + this->partitions.resize(_size680); + uint32_t _i684; + for (_i684 = 0; _i684 < _size680; ++_i684) + { + xfer += iprot->readString(this->partitions[_i684]); + } + xfer += iprot->readListEnd(); + } + this->__isset.partitions = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->writeIds.clear(); + uint32_t _size685; + ::apache::thrift::protocol::TType _etype688; + xfer += iprot->readListBegin(_etype688, _size685); + this->writeIds.resize(_size685); + uint32_t _i689; + for (_i689 = 0; _i689 < _size685; ++_i689) + { + xfer += iprot->readI64(this->writeIds[_i689]); + } + xfer += iprot->readListEnd(); + } + this->__isset.writeIds = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 7: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->tableObjs.clear(); + uint32_t _size690; + ::apache::thrift::protocol::TType _etype693; + xfer += iprot->readListBegin(_etype693, _size690); + this->tableObjs.resize(_size690); + uint32_t _i694; + for (_i694 = 0; _i694 < _size690; ++_i694) + { + xfer += iprot->readString(this->tableObjs[_i694]); + } + xfer += iprot->readListEnd(); + } + this->__isset.tableObjs = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 8: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->partitionObjs.clear(); + uint32_t _size695; + ::apache::thrift::protocol::TType _etype698; + xfer += iprot->readListBegin(_etype698, _size695); + this->partitionObjs.resize(_size695); + uint32_t _i699; + for (_i699 = 0; _i699 < _size695; ++_i699) + { + xfer += iprot->readString(this->partitionObjs[_i699]); + } + xfer += iprot->readListEnd(); + } + this->__isset.partitionObjs = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 9: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->files.clear(); + uint32_t _size700; + ::apache::thrift::protocol::TType _etype703; + xfer += iprot->readListBegin(_etype703, _size700); + this->files.resize(_size700); + uint32_t _i704; + for (_i704 = 0; _i704 < _size700; ++_i704) + { + xfer += iprot->readString(this->files[_i704]); + } + xfer += iprot->readListEnd(); + } + this->__isset.files = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -16508,6 +16683,97 @@ uint32_t CommitTxnRequest::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeString(this->replPolicy); xfer += oprot->writeFieldEnd(); } + if (this->__isset.databases) { + xfer += oprot->writeFieldBegin("databases", ::apache::thrift::protocol::T_LIST, 3); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->databases.size())); + std::vector ::const_iterator _iter705; + for (_iter705 = this->databases.begin(); _iter705 != this->databases.end(); ++_iter705) + { + xfer += oprot->writeString((*_iter705)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.tables) { + xfer += oprot->writeFieldBegin("tables", ::apache::thrift::protocol::T_LIST, 4); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->tables.size())); + std::vector ::const_iterator _iter706; + for (_iter706 = this->tables.begin(); _iter706 != this->tables.end(); ++_iter706) + { + xfer += oprot->writeString((*_iter706)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.partitions) { + xfer += oprot->writeFieldBegin("partitions", ::apache::thrift::protocol::T_LIST, 5); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->partitions.size())); + std::vector ::const_iterator _iter707; + for (_iter707 = this->partitions.begin(); _iter707 != this->partitions.end(); ++_iter707) + { + xfer += oprot->writeString((*_iter707)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.writeIds) { + xfer += oprot->writeFieldBegin("writeIds", ::apache::thrift::protocol::T_LIST, 6); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->writeIds.size())); + std::vector ::const_iterator _iter708; + for (_iter708 = this->writeIds.begin(); _iter708 != this->writeIds.end(); ++_iter708) + { + xfer += oprot->writeI64((*_iter708)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.tableObjs) { + xfer += oprot->writeFieldBegin("tableObjs", ::apache::thrift::protocol::T_LIST, 7); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->tableObjs.size())); + std::vector ::const_iterator _iter709; + for (_iter709 = this->tableObjs.begin(); _iter709 != this->tableObjs.end(); ++_iter709) + { + xfer += oprot->writeString((*_iter709)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.partitionObjs) { + xfer += oprot->writeFieldBegin("partitionObjs", ::apache::thrift::protocol::T_LIST, 8); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->partitionObjs.size())); + std::vector ::const_iterator _iter710; + for (_iter710 = this->partitionObjs.begin(); _iter710 != this->partitionObjs.end(); ++_iter710) + { + xfer += oprot->writeString((*_iter710)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.files) { + xfer += oprot->writeFieldBegin("files", ::apache::thrift::protocol::T_LIST, 9); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->files.size())); + std::vector ::const_iterator _iter711; + for (_iter711 = this->files.begin(); _iter711 != this->files.end(); ++_iter711) + { + xfer += oprot->writeString((*_iter711)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; @@ -16517,18 +16783,39 @@ void swap(CommitTxnRequest &a, CommitTxnRequest &b) { using ::std::swap; swap(a.txnid, b.txnid); swap(a.replPolicy, b.replPolicy); + swap(a.databases, b.databases); + swap(a.tables, b.tables); + swap(a.partitions, b.partitions); + swap(a.writeIds, b.writeIds); + swap(a.tableObjs, b.tableObjs); + swap(a.partitionObjs, b.partitionObjs); + swap(a.files, b.files); swap(a.__isset, b.__isset); } -CommitTxnRequest::CommitTxnRequest(const CommitTxnRequest& other670) { - txnid = other670.txnid; - replPolicy = other670.replPolicy; - __isset = other670.__isset; -} -CommitTxnRequest& CommitTxnRequest::operator=(const CommitTxnRequest& other671) { - txnid = other671.txnid; - replPolicy = other671.replPolicy; - __isset = other671.__isset; +CommitTxnRequest::CommitTxnRequest(const CommitTxnRequest& other712) { + txnid = other712.txnid; + replPolicy = other712.replPolicy; + databases = other712.databases; + tables = other712.tables; + partitions = other712.partitions; + writeIds = other712.writeIds; + tableObjs = other712.tableObjs; + partitionObjs = other712.partitionObjs; + files = other712.files; + __isset = other712.__isset; +} +CommitTxnRequest& CommitTxnRequest::operator=(const CommitTxnRequest& other713) { + txnid = other713.txnid; + replPolicy = other713.replPolicy; + databases = other713.databases; + tables = other713.tables; + partitions = other713.partitions; + writeIds = other713.writeIds; + tableObjs = other713.tableObjs; + partitionObjs = other713.partitionObjs; + files = other713.files; + __isset = other713.__isset; return *this; } void CommitTxnRequest::printTo(std::ostream& out) const { @@ -16536,6 +16823,396 @@ void CommitTxnRequest::printTo(std::ostream& out) const { out << "CommitTxnRequest("; out << "txnid=" << to_string(txnid); out << ", " << "replPolicy="; (__isset.replPolicy ? (out << to_string(replPolicy)) : (out << "")); + out << ", " << "databases="; (__isset.databases ? (out << to_string(databases)) : (out << "")); + out << ", " << "tables="; (__isset.tables ? (out << to_string(tables)) : (out << "")); + out << ", " << "partitions="; (__isset.partitions ? (out << to_string(partitions)) : (out << "")); + out << ", " << "writeIds="; (__isset.writeIds ? (out << to_string(writeIds)) : (out << "")); + out << ", " << "tableObjs="; (__isset.tableObjs ? (out << to_string(tableObjs)) : (out << "")); + out << ", " << "partitionObjs="; (__isset.partitionObjs ? (out << to_string(partitionObjs)) : (out << "")); + out << ", " << "files="; (__isset.files ? (out << to_string(files)) : (out << "")); + out << ")"; +} + + +WriteEventInfo::~WriteEventInfo() throw() { +} + + +void WriteEventInfo::__set_txnid(const int64_t val) { + this->txnid = val; +} + +void WriteEventInfo::__set_databases(const std::vector & val) { + this->databases = val; +__isset.databases = true; +} + +void WriteEventInfo::__set_tables(const std::vector & val) { + this->tables = val; +__isset.tables = true; +} + +void WriteEventInfo::__set_partitions(const std::vector & val) { + this->partitions = val; +__isset.partitions = true; +} + +void WriteEventInfo::__set_writeIds(const std::vector & val) { + this->writeIds = val; +__isset.writeIds = true; +} + +void WriteEventInfo::__set_tableObjs(const std::vector & val) { + this->tableObjs = val; +__isset.tableObjs = true; +} + +void WriteEventInfo::__set_files(const std::vector & val) { + this->files = val; +__isset.files = true; +} + +void WriteEventInfo::__set_partitionObjs(const std::vector & val) { + this->partitionObjs = val; +__isset.partitionObjs = 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_txnid = 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->txnid); + isset_txnid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->databases.clear(); + uint32_t _size714; + ::apache::thrift::protocol::TType _etype717; + xfer += iprot->readListBegin(_etype717, _size714); + this->databases.resize(_size714); + uint32_t _i718; + for (_i718 = 0; _i718 < _size714; ++_i718) + { + xfer += iprot->readString(this->databases[_i718]); + } + xfer += iprot->readListEnd(); + } + this->__isset.databases = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->tables.clear(); + uint32_t _size719; + ::apache::thrift::protocol::TType _etype722; + xfer += iprot->readListBegin(_etype722, _size719); + this->tables.resize(_size719); + uint32_t _i723; + for (_i723 = 0; _i723 < _size719; ++_i723) + { + xfer += iprot->readString(this->tables[_i723]); + } + xfer += iprot->readListEnd(); + } + this->__isset.tables = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->partitions.clear(); + uint32_t _size724; + ::apache::thrift::protocol::TType _etype727; + xfer += iprot->readListBegin(_etype727, _size724); + this->partitions.resize(_size724); + uint32_t _i728; + for (_i728 = 0; _i728 < _size724; ++_i728) + { + xfer += iprot->readString(this->partitions[_i728]); + } + xfer += iprot->readListEnd(); + } + this->__isset.partitions = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->writeIds.clear(); + uint32_t _size729; + ::apache::thrift::protocol::TType _etype732; + xfer += iprot->readListBegin(_etype732, _size729); + this->writeIds.resize(_size729); + uint32_t _i733; + for (_i733 = 0; _i733 < _size729; ++_i733) + { + xfer += iprot->readI64(this->writeIds[_i733]); + } + xfer += iprot->readListEnd(); + } + this->__isset.writeIds = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->tableObjs.clear(); + uint32_t _size734; + ::apache::thrift::protocol::TType _etype737; + xfer += iprot->readListBegin(_etype737, _size734); + this->tableObjs.resize(_size734); + uint32_t _i738; + for (_i738 = 0; _i738 < _size734; ++_i738) + { + xfer += iprot->readString(this->tableObjs[_i738]); + } + xfer += iprot->readListEnd(); + } + this->__isset.tableObjs = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 7: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->files.clear(); + uint32_t _size739; + ::apache::thrift::protocol::TType _etype742; + xfer += iprot->readListBegin(_etype742, _size739); + this->files.resize(_size739); + uint32_t _i743; + for (_i743 = 0; _i743 < _size739; ++_i743) + { + xfer += iprot->readString(this->files[_i743]); + } + xfer += iprot->readListEnd(); + } + this->__isset.files = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 8: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->partitionObjs.clear(); + uint32_t _size744; + ::apache::thrift::protocol::TType _etype747; + xfer += iprot->readListBegin(_etype747, _size744); + this->partitionObjs.resize(_size744); + uint32_t _i748; + for (_i748 = 0; _i748 < _size744; ++_i748) + { + xfer += iprot->readString(this->partitionObjs[_i748]); + } + xfer += iprot->readListEnd(); + } + this->__isset.partitionObjs = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_txnid) + 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("txnid", ::apache::thrift::protocol::T_I64, 1); + xfer += oprot->writeI64(this->txnid); + xfer += oprot->writeFieldEnd(); + + if (this->__isset.databases) { + xfer += oprot->writeFieldBegin("databases", ::apache::thrift::protocol::T_LIST, 2); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->databases.size())); + std::vector ::const_iterator _iter749; + for (_iter749 = this->databases.begin(); _iter749 != this->databases.end(); ++_iter749) + { + xfer += oprot->writeString((*_iter749)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.tables) { + xfer += oprot->writeFieldBegin("tables", ::apache::thrift::protocol::T_LIST, 3); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->tables.size())); + std::vector ::const_iterator _iter750; + for (_iter750 = this->tables.begin(); _iter750 != this->tables.end(); ++_iter750) + { + xfer += oprot->writeString((*_iter750)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.partitions) { + xfer += oprot->writeFieldBegin("partitions", ::apache::thrift::protocol::T_LIST, 4); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->partitions.size())); + std::vector ::const_iterator _iter751; + for (_iter751 = this->partitions.begin(); _iter751 != this->partitions.end(); ++_iter751) + { + xfer += oprot->writeString((*_iter751)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.writeIds) { + xfer += oprot->writeFieldBegin("writeIds", ::apache::thrift::protocol::T_LIST, 5); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->writeIds.size())); + std::vector ::const_iterator _iter752; + for (_iter752 = this->writeIds.begin(); _iter752 != this->writeIds.end(); ++_iter752) + { + xfer += oprot->writeI64((*_iter752)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.tableObjs) { + xfer += oprot->writeFieldBegin("tableObjs", ::apache::thrift::protocol::T_LIST, 6); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->tableObjs.size())); + std::vector ::const_iterator _iter753; + for (_iter753 = this->tableObjs.begin(); _iter753 != this->tableObjs.end(); ++_iter753) + { + xfer += oprot->writeString((*_iter753)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.files) { + xfer += oprot->writeFieldBegin("files", ::apache::thrift::protocol::T_LIST, 7); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->files.size())); + std::vector ::const_iterator _iter754; + for (_iter754 = this->files.begin(); _iter754 != this->files.end(); ++_iter754) + { + xfer += oprot->writeString((*_iter754)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.partitionObjs) { + xfer += oprot->writeFieldBegin("partitionObjs", ::apache::thrift::protocol::T_LIST, 8); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->partitionObjs.size())); + std::vector ::const_iterator _iter755; + for (_iter755 = this->partitionObjs.begin(); _iter755 != this->partitionObjs.end(); ++_iter755) + { + xfer += oprot->writeString((*_iter755)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(WriteEventInfo &a, WriteEventInfo &b) { + using ::std::swap; + swap(a.txnid, b.txnid); + swap(a.databases, b.databases); + swap(a.tables, b.tables); + swap(a.partitions, b.partitions); + swap(a.writeIds, b.writeIds); + swap(a.tableObjs, b.tableObjs); + swap(a.files, b.files); + swap(a.partitionObjs, b.partitionObjs); + swap(a.__isset, b.__isset); +} + +WriteEventInfo::WriteEventInfo(const WriteEventInfo& other756) { + txnid = other756.txnid; + databases = other756.databases; + tables = other756.tables; + partitions = other756.partitions; + writeIds = other756.writeIds; + tableObjs = other756.tableObjs; + files = other756.files; + partitionObjs = other756.partitionObjs; + __isset = other756.__isset; +} +WriteEventInfo& WriteEventInfo::operator=(const WriteEventInfo& other757) { + txnid = other757.txnid; + databases = other757.databases; + tables = other757.tables; + partitions = other757.partitions; + writeIds = other757.writeIds; + tableObjs = other757.tableObjs; + files = other757.files; + partitionObjs = other757.partitionObjs; + __isset = other757.__isset; + return *this; +} +void WriteEventInfo::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "WriteEventInfo("; + out << "txnid=" << to_string(txnid); + out << ", " << "databases="; (__isset.databases ? (out << to_string(databases)) : (out << "")); + out << ", " << "tables="; (__isset.tables ? (out << to_string(tables)) : (out << "")); + out << ", " << "partitions="; (__isset.partitions ? (out << to_string(partitions)) : (out << "")); + out << ", " << "writeIds="; (__isset.writeIds ? (out << to_string(writeIds)) : (out << "")); + out << ", " << "tableObjs="; (__isset.tableObjs ? (out << to_string(tableObjs)) : (out << "")); + out << ", " << "files="; (__isset.files ? (out << to_string(files)) : (out << "")); + out << ", " << "partitionObjs="; (__isset.partitionObjs ? (out << to_string(partitionObjs)) : (out << "")); out << ")"; } @@ -16579,14 +17256,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 _size758; + ::apache::thrift::protocol::TType _etype761; + xfer += iprot->readListBegin(_etype761, _size758); + this->fullTableNames.resize(_size758); + uint32_t _i762; + for (_i762 = 0; _i762 < _size758; ++_i762) { - xfer += iprot->readString(this->fullTableNames[_i676]); + xfer += iprot->readString(this->fullTableNames[_i762]); } xfer += iprot->readListEnd(); } @@ -16627,10 +17304,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 _iter763; + for (_iter763 = this->fullTableNames.begin(); _iter763 != this->fullTableNames.end(); ++_iter763) { - xfer += oprot->writeString((*_iter677)); + xfer += oprot->writeString((*_iter763)); } xfer += oprot->writeListEnd(); } @@ -16651,13 +17328,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& other764) { + fullTableNames = other764.fullTableNames; + validTxnList = other764.validTxnList; } -GetValidWriteIdsRequest& GetValidWriteIdsRequest::operator=(const GetValidWriteIdsRequest& other679) { - fullTableNames = other679.fullTableNames; - validTxnList = other679.validTxnList; +GetValidWriteIdsRequest& GetValidWriteIdsRequest::operator=(const GetValidWriteIdsRequest& other765) { + fullTableNames = other765.fullTableNames; + validTxnList = other765.validTxnList; return *this; } void GetValidWriteIdsRequest::printTo(std::ostream& out) const { @@ -16739,14 +17416,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 _size766; + ::apache::thrift::protocol::TType _etype769; + xfer += iprot->readListBegin(_etype769, _size766); + this->invalidWriteIds.resize(_size766); + uint32_t _i770; + for (_i770 = 0; _i770 < _size766; ++_i770) { - xfer += iprot->readI64(this->invalidWriteIds[_i684]); + xfer += iprot->readI64(this->invalidWriteIds[_i770]); } xfer += iprot->readListEnd(); } @@ -16807,10 +17484,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 _iter771; + for (_iter771 = this->invalidWriteIds.begin(); _iter771 != this->invalidWriteIds.end(); ++_iter771) { - xfer += oprot->writeI64((*_iter685)); + xfer += oprot->writeI64((*_iter771)); } xfer += oprot->writeListEnd(); } @@ -16840,21 +17517,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& other772) { + fullTableName = other772.fullTableName; + writeIdHighWaterMark = other772.writeIdHighWaterMark; + invalidWriteIds = other772.invalidWriteIds; + minOpenWriteId = other772.minOpenWriteId; + abortedBits = other772.abortedBits; + __isset = other772.__isset; +} +TableValidWriteIds& TableValidWriteIds::operator=(const TableValidWriteIds& other773) { + fullTableName = other773.fullTableName; + writeIdHighWaterMark = other773.writeIdHighWaterMark; + invalidWriteIds = other773.invalidWriteIds; + minOpenWriteId = other773.minOpenWriteId; + abortedBits = other773.abortedBits; + __isset = other773.__isset; return *this; } void TableValidWriteIds::printTo(std::ostream& out) const { @@ -16903,14 +17580,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 _size774; + ::apache::thrift::protocol::TType _etype777; + xfer += iprot->readListBegin(_etype777, _size774); + this->tblValidWriteIds.resize(_size774); + uint32_t _i778; + for (_i778 = 0; _i778 < _size774; ++_i778) { - xfer += this->tblValidWriteIds[_i692].read(iprot); + xfer += this->tblValidWriteIds[_i778].read(iprot); } xfer += iprot->readListEnd(); } @@ -16941,10 +17618,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 _iter779; + for (_iter779 = this->tblValidWriteIds.begin(); _iter779 != this->tblValidWriteIds.end(); ++_iter779) { - xfer += (*_iter693).write(oprot); + xfer += (*_iter779).write(oprot); } xfer += oprot->writeListEnd(); } @@ -16960,11 +17637,11 @@ void swap(GetValidWriteIdsResponse &a, GetValidWriteIdsResponse &b) { swap(a.tblValidWriteIds, b.tblValidWriteIds); } -GetValidWriteIdsResponse::GetValidWriteIdsResponse(const GetValidWriteIdsResponse& other694) { - tblValidWriteIds = other694.tblValidWriteIds; +GetValidWriteIdsResponse::GetValidWriteIdsResponse(const GetValidWriteIdsResponse& other780) { + tblValidWriteIds = other780.tblValidWriteIds; } -GetValidWriteIdsResponse& GetValidWriteIdsResponse::operator=(const GetValidWriteIdsResponse& other695) { - tblValidWriteIds = other695.tblValidWriteIds; +GetValidWriteIdsResponse& GetValidWriteIdsResponse::operator=(const GetValidWriteIdsResponse& other781) { + tblValidWriteIds = other781.tblValidWriteIds; return *this; } void GetValidWriteIdsResponse::printTo(std::ostream& out) const { @@ -17045,14 +17722,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 _size782; + ::apache::thrift::protocol::TType _etype785; + xfer += iprot->readListBegin(_etype785, _size782); + this->txnIds.resize(_size782); + uint32_t _i786; + for (_i786 = 0; _i786 < _size782; ++_i786) { - xfer += iprot->readI64(this->txnIds[_i700]); + xfer += iprot->readI64(this->txnIds[_i786]); } xfer += iprot->readListEnd(); } @@ -17073,14 +17750,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 _size787; + ::apache::thrift::protocol::TType _etype790; + xfer += iprot->readListBegin(_etype790, _size787); + this->srcTxnToWriteIdList.resize(_size787); + uint32_t _i791; + for (_i791 = 0; _i791 < _size787; ++_i791) { - xfer += this->srcTxnToWriteIdList[_i705].read(iprot); + xfer += this->srcTxnToWriteIdList[_i791].read(iprot); } xfer += iprot->readListEnd(); } @@ -17122,10 +17799,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 _iter792; + for (_iter792 = this->txnIds.begin(); _iter792 != this->txnIds.end(); ++_iter792) { - xfer += oprot->writeI64((*_iter706)); + xfer += oprot->writeI64((*_iter792)); } xfer += oprot->writeListEnd(); } @@ -17140,10 +17817,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 _iter793; + for (_iter793 = this->srcTxnToWriteIdList.begin(); _iter793 != this->srcTxnToWriteIdList.end(); ++_iter793) { - xfer += (*_iter707).write(oprot); + xfer += (*_iter793).write(oprot); } xfer += oprot->writeListEnd(); } @@ -17164,21 +17841,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& other794) { + dbName = other794.dbName; + tableName = other794.tableName; + txnIds = other794.txnIds; + replPolicy = other794.replPolicy; + srcTxnToWriteIdList = other794.srcTxnToWriteIdList; + __isset = other794.__isset; +} +AllocateTableWriteIdsRequest& AllocateTableWriteIdsRequest::operator=(const AllocateTableWriteIdsRequest& other795) { + dbName = other795.dbName; + tableName = other795.tableName; + txnIds = other795.txnIds; + replPolicy = other795.replPolicy; + srcTxnToWriteIdList = other795.srcTxnToWriteIdList; + __isset = other795.__isset; return *this; } void AllocateTableWriteIdsRequest::printTo(std::ostream& out) const { @@ -17284,13 +17961,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& other796) { + txnId = other796.txnId; + writeId = other796.writeId; } -TxnToWriteId& TxnToWriteId::operator=(const TxnToWriteId& other711) { - txnId = other711.txnId; - writeId = other711.writeId; +TxnToWriteId& TxnToWriteId::operator=(const TxnToWriteId& other797) { + txnId = other797.txnId; + writeId = other797.writeId; return *this; } void TxnToWriteId::printTo(std::ostream& out) const { @@ -17336,14 +18013,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 _size798; + ::apache::thrift::protocol::TType _etype801; + xfer += iprot->readListBegin(_etype801, _size798); + this->txnToWriteIds.resize(_size798); + uint32_t _i802; + for (_i802 = 0; _i802 < _size798; ++_i802) { - xfer += this->txnToWriteIds[_i716].read(iprot); + xfer += this->txnToWriteIds[_i802].read(iprot); } xfer += iprot->readListEnd(); } @@ -17374,10 +18051,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 _iter803; + for (_iter803 = this->txnToWriteIds.begin(); _iter803 != this->txnToWriteIds.end(); ++_iter803) { - xfer += (*_iter717).write(oprot); + xfer += (*_iter803).write(oprot); } xfer += oprot->writeListEnd(); } @@ -17393,11 +18070,11 @@ void swap(AllocateTableWriteIdsResponse &a, AllocateTableWriteIdsResponse &b) { swap(a.txnToWriteIds, b.txnToWriteIds); } -AllocateTableWriteIdsResponse::AllocateTableWriteIdsResponse(const AllocateTableWriteIdsResponse& other718) { - txnToWriteIds = other718.txnToWriteIds; +AllocateTableWriteIdsResponse::AllocateTableWriteIdsResponse(const AllocateTableWriteIdsResponse& other804) { + txnToWriteIds = other804.txnToWriteIds; } -AllocateTableWriteIdsResponse& AllocateTableWriteIdsResponse::operator=(const AllocateTableWriteIdsResponse& other719) { - txnToWriteIds = other719.txnToWriteIds; +AllocateTableWriteIdsResponse& AllocateTableWriteIdsResponse::operator=(const AllocateTableWriteIdsResponse& other805) { + txnToWriteIds = other805.txnToWriteIds; return *this; } void AllocateTableWriteIdsResponse::printTo(std::ostream& out) const { @@ -17475,9 +18152,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 ecast806; + xfer += iprot->readI32(ecast806); + this->type = (LockType::type)ecast806; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -17485,9 +18162,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 ecast807; + xfer += iprot->readI32(ecast807); + this->level = (LockLevel::type)ecast807; isset_level = true; } else { xfer += iprot->skip(ftype); @@ -17519,9 +18196,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 ecast808; + xfer += iprot->readI32(ecast808); + this->operationType = (DataOperationType::type)ecast808; this->__isset.operationType = true; } else { xfer += iprot->skip(ftype); @@ -17621,27 +18298,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& other809) { + type = other809.type; + level = other809.level; + dbname = other809.dbname; + tablename = other809.tablename; + partitionname = other809.partitionname; + operationType = other809.operationType; + isTransactional = other809.isTransactional; + isDynamicPartitionWrite = other809.isDynamicPartitionWrite; + __isset = other809.__isset; +} +LockComponent& LockComponent::operator=(const LockComponent& other810) { + type = other810.type; + level = other810.level; + dbname = other810.dbname; + tablename = other810.tablename; + partitionname = other810.partitionname; + operationType = other810.operationType; + isTransactional = other810.isTransactional; + isDynamicPartitionWrite = other810.isDynamicPartitionWrite; + __isset = other810.__isset; return *this; } void LockComponent::printTo(std::ostream& out) const { @@ -17713,14 +18390,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 _size811; + ::apache::thrift::protocol::TType _etype814; + xfer += iprot->readListBegin(_etype814, _size811); + this->component.resize(_size811); + uint32_t _i815; + for (_i815 = 0; _i815 < _size811; ++_i815) { - xfer += this->component[_i729].read(iprot); + xfer += this->component[_i815].read(iprot); } xfer += iprot->readListEnd(); } @@ -17787,10 +18464,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 _iter816; + for (_iter816 = this->component.begin(); _iter816 != this->component.end(); ++_iter816) { - xfer += (*_iter730).write(oprot); + xfer += (*_iter816).write(oprot); } xfer += oprot->writeListEnd(); } @@ -17829,21 +18506,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& other817) { + component = other817.component; + txnid = other817.txnid; + user = other817.user; + hostname = other817.hostname; + agentInfo = other817.agentInfo; + __isset = other817.__isset; +} +LockRequest& LockRequest::operator=(const LockRequest& other818) { + component = other818.component; + txnid = other818.txnid; + user = other818.user; + hostname = other818.hostname; + agentInfo = other818.agentInfo; + __isset = other818.__isset; return *this; } void LockRequest::printTo(std::ostream& out) const { @@ -17903,9 +18580,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 ecast819; + xfer += iprot->readI32(ecast819); + this->state = (LockState::type)ecast819; isset_state = true; } else { xfer += iprot->skip(ftype); @@ -17951,13 +18628,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& other820) { + lockid = other820.lockid; + state = other820.state; } -LockResponse& LockResponse::operator=(const LockResponse& other735) { - lockid = other735.lockid; - state = other735.state; +LockResponse& LockResponse::operator=(const LockResponse& other821) { + lockid = other821.lockid; + state = other821.state; return *this; } void LockResponse::printTo(std::ostream& out) const { @@ -18079,17 +18756,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& other822) { + lockid = other822.lockid; + txnid = other822.txnid; + elapsed_ms = other822.elapsed_ms; + __isset = other822.__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& other823) { + lockid = other823.lockid; + txnid = other823.txnid; + elapsed_ms = other823.elapsed_ms; + __isset = other823.__isset; return *this; } void CheckLockRequest::printTo(std::ostream& out) const { @@ -18173,11 +18850,11 @@ void swap(UnlockRequest &a, UnlockRequest &b) { swap(a.lockid, b.lockid); } -UnlockRequest::UnlockRequest(const UnlockRequest& other738) { - lockid = other738.lockid; +UnlockRequest::UnlockRequest(const UnlockRequest& other824) { + lockid = other824.lockid; } -UnlockRequest& UnlockRequest::operator=(const UnlockRequest& other739) { - lockid = other739.lockid; +UnlockRequest& UnlockRequest::operator=(const UnlockRequest& other825) { + lockid = other825.lockid; return *this; } void UnlockRequest::printTo(std::ostream& out) const { @@ -18316,19 +18993,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& other826) { + dbname = other826.dbname; + tablename = other826.tablename; + partname = other826.partname; + isExtended = other826.isExtended; + __isset = other826.__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& other827) { + dbname = other827.dbname; + tablename = other827.tablename; + partname = other827.partname; + isExtended = other827.isExtended; + __isset = other827.__isset; return *this; } void ShowLocksRequest::printTo(std::ostream& out) const { @@ -18481,9 +19158,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 ecast828; + xfer += iprot->readI32(ecast828); + this->state = (LockState::type)ecast828; isset_state = true; } else { xfer += iprot->skip(ftype); @@ -18491,9 +19168,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 ecast829; + xfer += iprot->readI32(ecast829); + this->type = (LockType::type)ecast829; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -18709,43 +19386,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::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(const ShowLocksResponseElement& other830) { + lockid = other830.lockid; + dbname = other830.dbname; + tablename = other830.tablename; + partname = other830.partname; + state = other830.state; + type = other830.type; + txnid = other830.txnid; + lastheartbeat = other830.lastheartbeat; + acquiredat = other830.acquiredat; + user = other830.user; + hostname = other830.hostname; + heartbeatCount = other830.heartbeatCount; + agentInfo = other830.agentInfo; + blockedByExtId = other830.blockedByExtId; + blockedByIntId = other830.blockedByIntId; + lockIdInternal = other830.lockIdInternal; + __isset = other830.__isset; +} +ShowLocksResponseElement& ShowLocksResponseElement::operator=(const ShowLocksResponseElement& other831) { + lockid = other831.lockid; + dbname = other831.dbname; + tablename = other831.tablename; + partname = other831.partname; + state = other831.state; + type = other831.type; + txnid = other831.txnid; + lastheartbeat = other831.lastheartbeat; + acquiredat = other831.acquiredat; + user = other831.user; + hostname = other831.hostname; + heartbeatCount = other831.heartbeatCount; + agentInfo = other831.agentInfo; + blockedByExtId = other831.blockedByExtId; + blockedByIntId = other831.blockedByIntId; + lockIdInternal = other831.lockIdInternal; + __isset = other831.__isset; return *this; } void ShowLocksResponseElement::printTo(std::ostream& out) const { @@ -18804,14 +19481,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 _size832; + ::apache::thrift::protocol::TType _etype835; + xfer += iprot->readListBegin(_etype835, _size832); + this->locks.resize(_size832); + uint32_t _i836; + for (_i836 = 0; _i836 < _size832; ++_i836) { - xfer += this->locks[_i750].read(iprot); + xfer += this->locks[_i836].read(iprot); } xfer += iprot->readListEnd(); } @@ -18840,10 +19517,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 _iter837; + for (_iter837 = this->locks.begin(); _iter837 != this->locks.end(); ++_iter837) { - xfer += (*_iter751).write(oprot); + xfer += (*_iter837).write(oprot); } xfer += oprot->writeListEnd(); } @@ -18860,13 +19537,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& other838) { + locks = other838.locks; + __isset = other838.__isset; } -ShowLocksResponse& ShowLocksResponse::operator=(const ShowLocksResponse& other753) { - locks = other753.locks; - __isset = other753.__isset; +ShowLocksResponse& ShowLocksResponse::operator=(const ShowLocksResponse& other839) { + locks = other839.locks; + __isset = other839.__isset; return *this; } void ShowLocksResponse::printTo(std::ostream& out) const { @@ -18967,15 +19644,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& other840) { + lockid = other840.lockid; + txnid = other840.txnid; + __isset = other840.__isset; } -HeartbeatRequest& HeartbeatRequest::operator=(const HeartbeatRequest& other755) { - lockid = other755.lockid; - txnid = other755.txnid; - __isset = other755.__isset; +HeartbeatRequest& HeartbeatRequest::operator=(const HeartbeatRequest& other841) { + lockid = other841.lockid; + txnid = other841.txnid; + __isset = other841.__isset; return *this; } void HeartbeatRequest::printTo(std::ostream& out) const { @@ -19078,13 +19755,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& other842) { + min = other842.min; + max = other842.max; } -HeartbeatTxnRangeRequest& HeartbeatTxnRangeRequest::operator=(const HeartbeatTxnRangeRequest& other757) { - min = other757.min; - max = other757.max; +HeartbeatTxnRangeRequest& HeartbeatTxnRangeRequest::operator=(const HeartbeatTxnRangeRequest& other843) { + min = other843.min; + max = other843.max; return *this; } void HeartbeatTxnRangeRequest::printTo(std::ostream& out) const { @@ -19135,15 +19812,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 _size844; + ::apache::thrift::protocol::TType _etype847; + xfer += iprot->readSetBegin(_etype847, _size844); + uint32_t _i848; + for (_i848 = 0; _i848 < _size844; ++_i848) { - int64_t _elem763; - xfer += iprot->readI64(_elem763); - this->aborted.insert(_elem763); + int64_t _elem849; + xfer += iprot->readI64(_elem849); + this->aborted.insert(_elem849); } xfer += iprot->readSetEnd(); } @@ -19156,15 +19833,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 _size850; + ::apache::thrift::protocol::TType _etype853; + xfer += iprot->readSetBegin(_etype853, _size850); + uint32_t _i854; + for (_i854 = 0; _i854 < _size850; ++_i854) { - int64_t _elem769; - xfer += iprot->readI64(_elem769); - this->nosuch.insert(_elem769); + int64_t _elem855; + xfer += iprot->readI64(_elem855); + this->nosuch.insert(_elem855); } xfer += iprot->readSetEnd(); } @@ -19197,10 +19874,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 _iter856; + for (_iter856 = this->aborted.begin(); _iter856 != this->aborted.end(); ++_iter856) { - xfer += oprot->writeI64((*_iter770)); + xfer += oprot->writeI64((*_iter856)); } xfer += oprot->writeSetEnd(); } @@ -19209,10 +19886,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 _iter857; + for (_iter857 = this->nosuch.begin(); _iter857 != this->nosuch.end(); ++_iter857) { - xfer += oprot->writeI64((*_iter771)); + xfer += oprot->writeI64((*_iter857)); } xfer += oprot->writeSetEnd(); } @@ -19229,13 +19906,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& other858) { + aborted = other858.aborted; + nosuch = other858.nosuch; } -HeartbeatTxnRangeResponse& HeartbeatTxnRangeResponse::operator=(const HeartbeatTxnRangeResponse& other773) { - aborted = other773.aborted; - nosuch = other773.nosuch; +HeartbeatTxnRangeResponse& HeartbeatTxnRangeResponse::operator=(const HeartbeatTxnRangeResponse& other859) { + aborted = other859.aborted; + nosuch = other859.nosuch; return *this; } void HeartbeatTxnRangeResponse::printTo(std::ostream& out) const { @@ -19328,9 +20005,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 ecast860; + xfer += iprot->readI32(ecast860); + this->type = (CompactionType::type)ecast860; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -19348,17 +20025,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 _size861; + ::apache::thrift::protocol::TType _ktype862; + ::apache::thrift::protocol::TType _vtype863; + xfer += iprot->readMapBegin(_ktype862, _vtype863, _size861); + uint32_t _i865; + for (_i865 = 0; _i865 < _size861; ++_i865) { - std::string _key780; - xfer += iprot->readString(_key780); - std::string& _val781 = this->properties[_key780]; - xfer += iprot->readString(_val781); + std::string _key866; + xfer += iprot->readString(_key866); + std::string& _val867 = this->properties[_key866]; + xfer += iprot->readString(_val867); } xfer += iprot->readMapEnd(); } @@ -19416,11 +20093,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 _iter868; + for (_iter868 = this->properties.begin(); _iter868 != this->properties.end(); ++_iter868) { - xfer += oprot->writeString(_iter782->first); - xfer += oprot->writeString(_iter782->second); + xfer += oprot->writeString(_iter868->first); + xfer += oprot->writeString(_iter868->second); } xfer += oprot->writeMapEnd(); } @@ -19442,23 +20119,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& other869) { + dbname = other869.dbname; + tablename = other869.tablename; + partitionname = other869.partitionname; + type = other869.type; + runas = other869.runas; + properties = other869.properties; + __isset = other869.__isset; +} +CompactionRequest& CompactionRequest::operator=(const CompactionRequest& other870) { + dbname = other870.dbname; + tablename = other870.tablename; + partitionname = other870.partitionname; + type = other870.type; + runas = other870.runas; + properties = other870.properties; + __isset = other870.__isset; return *this; } void CompactionRequest::printTo(std::ostream& out) const { @@ -19585,15 +20262,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& other871) { + id = other871.id; + state = other871.state; + accepted = other871.accepted; } -CompactionResponse& CompactionResponse::operator=(const CompactionResponse& other786) { - id = other786.id; - state = other786.state; - accepted = other786.accepted; +CompactionResponse& CompactionResponse::operator=(const CompactionResponse& other872) { + id = other872.id; + state = other872.state; + accepted = other872.accepted; return *this; } void CompactionResponse::printTo(std::ostream& out) const { @@ -19654,11 +20331,11 @@ void swap(ShowCompactRequest &a, ShowCompactRequest &b) { (void) b; } -ShowCompactRequest::ShowCompactRequest(const ShowCompactRequest& other787) { - (void) other787; +ShowCompactRequest::ShowCompactRequest(const ShowCompactRequest& other873) { + (void) other873; } -ShowCompactRequest& ShowCompactRequest::operator=(const ShowCompactRequest& other788) { - (void) other788; +ShowCompactRequest& ShowCompactRequest::operator=(const ShowCompactRequest& other874) { + (void) other874; return *this; } void ShowCompactRequest::printTo(std::ostream& out) const { @@ -19784,9 +20461,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 ecast875; + xfer += iprot->readI32(ecast875); + this->type = (CompactionType::type)ecast875; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -19973,37 +20650,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& other876) { + dbname = other876.dbname; + tablename = other876.tablename; + partitionname = other876.partitionname; + type = other876.type; + state = other876.state; + workerid = other876.workerid; + start = other876.start; + runAs = other876.runAs; + hightestTxnId = other876.hightestTxnId; + metaInfo = other876.metaInfo; + endTime = other876.endTime; + hadoopJobId = other876.hadoopJobId; + id = other876.id; + __isset = other876.__isset; +} +ShowCompactResponseElement& ShowCompactResponseElement::operator=(const ShowCompactResponseElement& other877) { + dbname = other877.dbname; + tablename = other877.tablename; + partitionname = other877.partitionname; + type = other877.type; + state = other877.state; + workerid = other877.workerid; + start = other877.start; + runAs = other877.runAs; + hightestTxnId = other877.hightestTxnId; + metaInfo = other877.metaInfo; + endTime = other877.endTime; + hadoopJobId = other877.hadoopJobId; + id = other877.id; + __isset = other877.__isset; return *this; } void ShowCompactResponseElement::printTo(std::ostream& out) const { @@ -20060,14 +20737,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 _size878; + ::apache::thrift::protocol::TType _etype881; + xfer += iprot->readListBegin(_etype881, _size878); + this->compacts.resize(_size878); + uint32_t _i882; + for (_i882 = 0; _i882 < _size878; ++_i882) { - xfer += this->compacts[_i796].read(iprot); + xfer += this->compacts[_i882].read(iprot); } xfer += iprot->readListEnd(); } @@ -20098,10 +20775,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 _iter883; + for (_iter883 = this->compacts.begin(); _iter883 != this->compacts.end(); ++_iter883) { - xfer += (*_iter797).write(oprot); + xfer += (*_iter883).write(oprot); } xfer += oprot->writeListEnd(); } @@ -20117,11 +20794,11 @@ void swap(ShowCompactResponse &a, ShowCompactResponse &b) { swap(a.compacts, b.compacts); } -ShowCompactResponse::ShowCompactResponse(const ShowCompactResponse& other798) { - compacts = other798.compacts; +ShowCompactResponse::ShowCompactResponse(const ShowCompactResponse& other884) { + compacts = other884.compacts; } -ShowCompactResponse& ShowCompactResponse::operator=(const ShowCompactResponse& other799) { - compacts = other799.compacts; +ShowCompactResponse& ShowCompactResponse::operator=(const ShowCompactResponse& other885) { + compacts = other885.compacts; return *this; } void ShowCompactResponse::printTo(std::ostream& out) const { @@ -20223,14 +20900,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 _size886; + ::apache::thrift::protocol::TType _etype889; + xfer += iprot->readListBegin(_etype889, _size886); + this->partitionnames.resize(_size886); + uint32_t _i890; + for (_i890 = 0; _i890 < _size886; ++_i890) { - xfer += iprot->readString(this->partitionnames[_i804]); + xfer += iprot->readString(this->partitionnames[_i890]); } xfer += iprot->readListEnd(); } @@ -20241,9 +20918,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 ecast891; + xfer += iprot->readI32(ecast891); + this->operationType = (DataOperationType::type)ecast891; this->__isset.operationType = true; } else { xfer += iprot->skip(ftype); @@ -20295,10 +20972,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 _iter892; + for (_iter892 = this->partitionnames.begin(); _iter892 != this->partitionnames.end(); ++_iter892) { - xfer += oprot->writeString((*_iter806)); + xfer += oprot->writeString((*_iter892)); } xfer += oprot->writeListEnd(); } @@ -20325,23 +21002,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& other893) { + txnid = other893.txnid; + writeid = other893.writeid; + dbname = other893.dbname; + tablename = other893.tablename; + partitionnames = other893.partitionnames; + operationType = other893.operationType; + __isset = other893.__isset; +} +AddDynamicPartitions& AddDynamicPartitions::operator=(const AddDynamicPartitions& other894) { + txnid = other894.txnid; + writeid = other894.writeid; + dbname = other894.dbname; + tablename = other894.tablename; + partitionnames = other894.partitionnames; + operationType = other894.operationType; + __isset = other894.__isset; return *this; } void AddDynamicPartitions::printTo(std::ostream& out) const { @@ -20524,23 +21201,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& other895) { + isnull = other895.isnull; + time = other895.time; + txnid = other895.txnid; + dbname = other895.dbname; + tablename = other895.tablename; + partitionname = other895.partitionname; + __isset = other895.__isset; +} +BasicTxnInfo& BasicTxnInfo::operator=(const BasicTxnInfo& other896) { + isnull = other896.isnull; + time = other896.time; + txnid = other896.txnid; + dbname = other896.dbname; + tablename = other896.tablename; + partitionname = other896.partitionname; + __isset = other896.__isset; return *this; } void BasicTxnInfo::printTo(std::ostream& out) const { @@ -20634,15 +21311,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 _size897; + ::apache::thrift::protocol::TType _etype900; + xfer += iprot->readSetBegin(_etype900, _size897); + uint32_t _i901; + for (_i901 = 0; _i901 < _size897; ++_i901) { - std::string _elem816; - xfer += iprot->readString(_elem816); - this->tablesUsed.insert(_elem816); + std::string _elem902; + xfer += iprot->readString(_elem902); + this->tablesUsed.insert(_elem902); } xfer += iprot->readSetEnd(); } @@ -20699,10 +21376,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 _iter903; + for (_iter903 = this->tablesUsed.begin(); _iter903 != this->tablesUsed.end(); ++_iter903) { - xfer += oprot->writeString((*_iter817)); + xfer += oprot->writeString((*_iter903)); } xfer += oprot->writeSetEnd(); } @@ -20728,21 +21405,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& other904) { + catName = other904.catName; + dbName = other904.dbName; + tblName = other904.tblName; + tablesUsed = other904.tablesUsed; + validTxnList = other904.validTxnList; + __isset = other904.__isset; +} +CreationMetadata& CreationMetadata::operator=(const CreationMetadata& other905) { + catName = other905.catName; + dbName = other905.dbName; + tblName = other905.tblName; + tablesUsed = other905.tablesUsed; + validTxnList = other905.validTxnList; + __isset = other905.__isset; return *this; } void CreationMetadata::printTo(std::ostream& out) const { @@ -20848,15 +21525,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& other906) { + lastEvent = other906.lastEvent; + maxEvents = other906.maxEvents; + __isset = other906.__isset; } -NotificationEventRequest& NotificationEventRequest::operator=(const NotificationEventRequest& other821) { - lastEvent = other821.lastEvent; - maxEvents = other821.maxEvents; - __isset = other821.__isset; +NotificationEventRequest& NotificationEventRequest::operator=(const NotificationEventRequest& other907) { + lastEvent = other907.lastEvent; + maxEvents = other907.maxEvents; + __isset = other907.__isset; return *this; } void NotificationEventRequest::printTo(std::ostream& out) const { @@ -21076,27 +21753,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& other908) { + eventId = other908.eventId; + eventTime = other908.eventTime; + eventType = other908.eventType; + dbName = other908.dbName; + tableName = other908.tableName; + message = other908.message; + messageFormat = other908.messageFormat; + catName = other908.catName; + __isset = other908.__isset; +} +NotificationEvent& NotificationEvent::operator=(const NotificationEvent& other909) { + eventId = other909.eventId; + eventTime = other909.eventTime; + eventType = other909.eventType; + dbName = other909.dbName; + tableName = other909.tableName; + message = other909.message; + messageFormat = other909.messageFormat; + catName = other909.catName; + __isset = other909.__isset; return *this; } void NotificationEvent::printTo(std::ostream& out) const { @@ -21148,14 +21825,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 _size910; + ::apache::thrift::protocol::TType _etype913; + xfer += iprot->readListBegin(_etype913, _size910); + this->events.resize(_size910); + uint32_t _i914; + for (_i914 = 0; _i914 < _size910; ++_i914) { - xfer += this->events[_i828].read(iprot); + xfer += this->events[_i914].read(iprot); } xfer += iprot->readListEnd(); } @@ -21186,10 +21863,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 _iter915; + for (_iter915 = this->events.begin(); _iter915 != this->events.end(); ++_iter915) { - xfer += (*_iter829).write(oprot); + xfer += (*_iter915).write(oprot); } xfer += oprot->writeListEnd(); } @@ -21205,11 +21882,11 @@ void swap(NotificationEventResponse &a, NotificationEventResponse &b) { swap(a.events, b.events); } -NotificationEventResponse::NotificationEventResponse(const NotificationEventResponse& other830) { - events = other830.events; +NotificationEventResponse::NotificationEventResponse(const NotificationEventResponse& other916) { + events = other916.events; } -NotificationEventResponse& NotificationEventResponse::operator=(const NotificationEventResponse& other831) { - events = other831.events; +NotificationEventResponse& NotificationEventResponse::operator=(const NotificationEventResponse& other917) { + events = other917.events; return *this; } void NotificationEventResponse::printTo(std::ostream& out) const { @@ -21291,11 +21968,11 @@ void swap(CurrentNotificationEventId &a, CurrentNotificationEventId &b) { swap(a.eventId, b.eventId); } -CurrentNotificationEventId::CurrentNotificationEventId(const CurrentNotificationEventId& other832) { - eventId = other832.eventId; +CurrentNotificationEventId::CurrentNotificationEventId(const CurrentNotificationEventId& other918) { + eventId = other918.eventId; } -CurrentNotificationEventId& CurrentNotificationEventId::operator=(const CurrentNotificationEventId& other833) { - eventId = other833.eventId; +CurrentNotificationEventId& CurrentNotificationEventId::operator=(const CurrentNotificationEventId& other919) { + eventId = other919.eventId; return *this; } void CurrentNotificationEventId::printTo(std::ostream& out) const { @@ -21409,46 +22086,347 @@ uint32_t NotificationEventsCountRequest::write(::apache::thrift::protocol::TProt return xfer; } -void swap(NotificationEventsCountRequest &a, NotificationEventsCountRequest &b) { +void swap(NotificationEventsCountRequest &a, NotificationEventsCountRequest &b) { + using ::std::swap; + swap(a.fromEventId, b.fromEventId); + swap(a.dbName, b.dbName); + swap(a.catName, b.catName); + swap(a.__isset, b.__isset); +} + +NotificationEventsCountRequest::NotificationEventsCountRequest(const NotificationEventsCountRequest& other920) { + fromEventId = other920.fromEventId; + dbName = other920.dbName; + catName = other920.catName; + __isset = other920.__isset; +} +NotificationEventsCountRequest& NotificationEventsCountRequest::operator=(const NotificationEventsCountRequest& other921) { + fromEventId = other921.fromEventId; + dbName = other921.dbName; + catName = other921.catName; + __isset = other921.__isset; + return *this; +} +void NotificationEventsCountRequest::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "NotificationEventsCountRequest("; + out << "fromEventId=" << to_string(fromEventId); + out << ", " << "dbName=" << to_string(dbName); + out << ", " << "catName="; (__isset.catName ? (out << to_string(catName)) : (out << "")); + out << ")"; +} + + +NotificationEventsCountResponse::~NotificationEventsCountResponse() throw() { +} + + +void NotificationEventsCountResponse::__set_eventsCount(const int64_t val) { + this->eventsCount = val; +} + +uint32_t NotificationEventsCountResponse::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_eventsCount = 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->eventsCount); + isset_eventsCount = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_eventsCount) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t NotificationEventsCountResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("NotificationEventsCountResponse"); + + xfer += oprot->writeFieldBegin("eventsCount", ::apache::thrift::protocol::T_I64, 1); + xfer += oprot->writeI64(this->eventsCount); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(NotificationEventsCountResponse &a, NotificationEventsCountResponse &b) { + using ::std::swap; + swap(a.eventsCount, b.eventsCount); +} + +NotificationEventsCountResponse::NotificationEventsCountResponse(const NotificationEventsCountResponse& other922) { + eventsCount = other922.eventsCount; +} +NotificationEventsCountResponse& NotificationEventsCountResponse::operator=(const NotificationEventsCountResponse& other923) { + eventsCount = other923.eventsCount; + return *this; +} +void NotificationEventsCountResponse::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "NotificationEventsCountResponse("; + out << "eventsCount=" << to_string(eventsCount); + out << ")"; +} + + +InsertEventRequestData::~InsertEventRequestData() throw() { +} + + +void InsertEventRequestData::__set_replace(const bool val) { + this->replace = val; +__isset.replace = true; +} + +void InsertEventRequestData::__set_filesAdded(const std::vector & val) { + this->filesAdded = val; +} + +void InsertEventRequestData::__set_filesAddedChecksum(const std::vector & val) { + this->filesAddedChecksum = val; +__isset.filesAddedChecksum = true; +} + +void InsertEventRequestData::__set_subDirectoryList(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); + 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_filesAdded = 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->replace); + this->__isset.replace = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->filesAdded.clear(); + uint32_t _size924; + ::apache::thrift::protocol::TType _etype927; + xfer += iprot->readListBegin(_etype927, _size924); + this->filesAdded.resize(_size924); + uint32_t _i928; + for (_i928 = 0; _i928 < _size924; ++_i928) + { + xfer += iprot->readString(this->filesAdded[_i928]); + } + xfer += iprot->readListEnd(); + } + isset_filesAdded = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->filesAddedChecksum.clear(); + uint32_t _size929; + ::apache::thrift::protocol::TType _etype932; + xfer += iprot->readListBegin(_etype932, _size929); + this->filesAddedChecksum.resize(_size929); + uint32_t _i933; + for (_i933 = 0; _i933 < _size929; ++_i933) + { + xfer += iprot->readString(this->filesAddedChecksum[_i933]); + } + xfer += iprot->readListEnd(); + } + this->__isset.filesAddedChecksum = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->subDirectoryList.clear(); + uint32_t _size934; + ::apache::thrift::protocol::TType _etype937; + xfer += iprot->readListBegin(_etype937, _size934); + this->subDirectoryList.resize(_size934); + uint32_t _i938; + for (_i938 = 0; _i938 < _size934; ++_i938) + { + xfer += iprot->readString(this->subDirectoryList[_i938]); + } + xfer += iprot->readListEnd(); + } + this->__isset.subDirectoryList = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_filesAdded) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t InsertEventRequestData::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("InsertEventRequestData"); + + if (this->__isset.replace) { + xfer += oprot->writeFieldBegin("replace", ::apache::thrift::protocol::T_BOOL, 1); + xfer += oprot->writeBool(this->replace); + xfer += oprot->writeFieldEnd(); + } + 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 _iter939; + for (_iter939 = this->filesAdded.begin(); _iter939 != this->filesAdded.end(); ++_iter939) + { + xfer += oprot->writeString((*_iter939)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + if (this->__isset.filesAddedChecksum) { + 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 _iter940; + for (_iter940 = this->filesAddedChecksum.begin(); _iter940 != this->filesAddedChecksum.end(); ++_iter940) + { + xfer += oprot->writeString((*_iter940)); + } + 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 _iter941; + for (_iter941 = this->subDirectoryList.begin(); _iter941 != this->subDirectoryList.end(); ++_iter941) + { + xfer += oprot->writeString((*_iter941)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(InsertEventRequestData &a, InsertEventRequestData &b) { using ::std::swap; - swap(a.fromEventId, b.fromEventId); - swap(a.dbName, b.dbName); - swap(a.catName, b.catName); + 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); } -NotificationEventsCountRequest::NotificationEventsCountRequest(const NotificationEventsCountRequest& other834) { - fromEventId = other834.fromEventId; - dbName = other834.dbName; - catName = other834.catName; - __isset = other834.__isset; +InsertEventRequestData::InsertEventRequestData(const InsertEventRequestData& other942) { + replace = other942.replace; + filesAdded = other942.filesAdded; + filesAddedChecksum = other942.filesAddedChecksum; + subDirectoryList = other942.subDirectoryList; + __isset = other942.__isset; } -NotificationEventsCountRequest& NotificationEventsCountRequest::operator=(const NotificationEventsCountRequest& other835) { - fromEventId = other835.fromEventId; - dbName = other835.dbName; - catName = other835.catName; - __isset = other835.__isset; +InsertEventRequestData& InsertEventRequestData::operator=(const InsertEventRequestData& other943) { + replace = other943.replace; + filesAdded = other943.filesAdded; + filesAddedChecksum = other943.filesAddedChecksum; + subDirectoryList = other943.subDirectoryList; + __isset = other943.__isset; return *this; } -void NotificationEventsCountRequest::printTo(std::ostream& out) const { +void InsertEventRequestData::printTo(std::ostream& out) const { using ::apache::thrift::to_string; - out << "NotificationEventsCountRequest("; - out << "fromEventId=" << to_string(fromEventId); - out << ", " << "dbName=" << to_string(dbName); - out << ", " << "catName="; (__isset.catName ? (out << to_string(catName)) : (out << "")); + out << "InsertEventRequestData("; + 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 << ")"; } -NotificationEventsCountResponse::~NotificationEventsCountResponse() throw() { +FireEventRequestData::~FireEventRequestData() throw() { } -void NotificationEventsCountResponse::__set_eventsCount(const int64_t val) { - this->eventsCount = val; +void FireEventRequestData::__set_insertData(const InsertEventRequestData& val) { + this->insertData = val; } -uint32_t NotificationEventsCountResponse::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t FireEventRequestData::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -21460,7 +22438,6 @@ uint32_t NotificationEventsCountResponse::read(::apache::thrift::protocol::TProt using ::apache::thrift::protocol::TProtocolException; - bool isset_eventsCount = false; while (true) { @@ -21471,9 +22448,9 @@ uint32_t NotificationEventsCountResponse::read(::apache::thrift::protocol::TProt switch (fid) { case 1: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->eventsCount); - isset_eventsCount = true; + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->insertData.read(iprot); + this->__isset.insertData = true; } else { xfer += iprot->skip(ftype); } @@ -21487,18 +22464,16 @@ uint32_t NotificationEventsCountResponse::read(::apache::thrift::protocol::TProt xfer += iprot->readStructEnd(); - if (!isset_eventsCount) - throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t NotificationEventsCountResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t FireEventRequestData::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("NotificationEventsCountResponse"); + xfer += oprot->writeStructBegin("FireEventRequestData"); - xfer += oprot->writeFieldBegin("eventsCount", ::apache::thrift::protocol::T_I64, 1); - xfer += oprot->writeI64(this->eventsCount); + xfer += oprot->writeFieldBegin("insertData", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->insertData.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -21506,45 +22481,62 @@ uint32_t NotificationEventsCountResponse::write(::apache::thrift::protocol::TPro return xfer; } -void swap(NotificationEventsCountResponse &a, NotificationEventsCountResponse &b) { +void swap(FireEventRequestData &a, FireEventRequestData &b) { using ::std::swap; - swap(a.eventsCount, b.eventsCount); + swap(a.insertData, b.insertData); + swap(a.__isset, b.__isset); } -NotificationEventsCountResponse::NotificationEventsCountResponse(const NotificationEventsCountResponse& other836) { - eventsCount = other836.eventsCount; +FireEventRequestData::FireEventRequestData(const FireEventRequestData& other944) { + insertData = other944.insertData; + __isset = other944.__isset; } -NotificationEventsCountResponse& NotificationEventsCountResponse::operator=(const NotificationEventsCountResponse& other837) { - eventsCount = other837.eventsCount; +FireEventRequestData& FireEventRequestData::operator=(const FireEventRequestData& other945) { + insertData = other945.insertData; + __isset = other945.__isset; return *this; } -void NotificationEventsCountResponse::printTo(std::ostream& out) const { +void FireEventRequestData::printTo(std::ostream& out) const { using ::apache::thrift::to_string; - out << "NotificationEventsCountResponse("; - out << "eventsCount=" << to_string(eventsCount); + out << "FireEventRequestData("; + out << "insertData=" << to_string(insertData); out << ")"; } -InsertEventRequestData::~InsertEventRequestData() throw() { +FireEventRequest::~FireEventRequest() throw() { } -void InsertEventRequestData::__set_replace(const bool val) { - this->replace = val; -__isset.replace = true; +void FireEventRequest::__set_successful(const bool val) { + this->successful = val; } -void InsertEventRequestData::__set_filesAdded(const std::vector & val) { - this->filesAdded = val; +void FireEventRequest::__set_data(const FireEventRequestData& val) { + this->data = val; } -void InsertEventRequestData::__set_filesAddedChecksum(const std::vector & val) { - this->filesAddedChecksum = val; -__isset.filesAddedChecksum = true; +void FireEventRequest::__set_dbName(const std::string& val) { + this->dbName = val; +__isset.dbName = true; } -uint32_t InsertEventRequestData::read(::apache::thrift::protocol::TProtocol* iprot) { +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; @@ -21556,7 +22548,8 @@ uint32_t InsertEventRequestData::read(::apache::thrift::protocol::TProtocol* ipr using ::apache::thrift::protocol::TProtocolException; - bool isset_filesAdded = false; + bool isset_successful = false; + bool isset_data = false; while (true) { @@ -21568,48 +22561,60 @@ uint32_t InsertEventRequestData::read(::apache::thrift::protocol::TProtocol* ipr { case 1: if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->replace); - this->__isset.replace = true; + xfer += iprot->readBool(this->successful); + isset_successful = true; } else { xfer += iprot->skip(ftype); } break; case 2: - 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) - { - xfer += iprot->readString(this->filesAdded[_i842]); - } - xfer += iprot->readListEnd(); - } - isset_filesAdded = true; + 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->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) + this->partitionVals.clear(); + uint32_t _size946; + ::apache::thrift::protocol::TType _etype949; + xfer += iprot->readListBegin(_etype949, _size946); + this->partitionVals.resize(_size946); + uint32_t _i950; + for (_i950 = 0; _i950 < _size946; ++_i950) { - xfer += iprot->readString(this->filesAddedChecksum[_i847]); + xfer += iprot->readString(this->partitionVals[_i950]); } xfer += iprot->readListEnd(); } - this->__isset.filesAddedChecksum = true; + 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); } @@ -21623,91 +22628,107 @@ uint32_t InsertEventRequestData::read(::apache::thrift::protocol::TProtocol* ipr xfer += iprot->readStructEnd(); - if (!isset_filesAdded) + if (!isset_successful) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_data) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t InsertEventRequestData::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t FireEventRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("InsertEventRequestData"); + xfer += oprot->writeStructBegin("FireEventRequest"); - if (this->__isset.replace) { - xfer += oprot->writeFieldBegin("replace", ::apache::thrift::protocol::T_BOOL, 1); - xfer += oprot->writeBool(this->replace); + 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(); } - 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) - { - xfer += oprot->writeString((*_iter848)); - } - xfer += oprot->writeListEnd(); + if (this->__isset.tableName) { + xfer += oprot->writeFieldBegin("tableName", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->tableName); + xfer += oprot->writeFieldEnd(); } - xfer += oprot->writeFieldEnd(); - - if (this->__isset.filesAddedChecksum) { - xfer += oprot->writeFieldBegin("filesAddedChecksum", ::apache::thrift::protocol::T_LIST, 3); + 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->filesAddedChecksum.size())); - std::vector ::const_iterator _iter849; - for (_iter849 = this->filesAddedChecksum.begin(); _iter849 != this->filesAddedChecksum.end(); ++_iter849) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->partitionVals.size())); + std::vector ::const_iterator _iter951; + for (_iter951 = this->partitionVals.begin(); _iter951 != this->partitionVals.end(); ++_iter951) { - xfer += oprot->writeString((*_iter849)); + xfer += oprot->writeString((*_iter951)); } 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(InsertEventRequestData &a, InsertEventRequestData &b) { +void swap(FireEventRequest &a, FireEventRequest &b) { using ::std::swap; - swap(a.replace, b.replace); - swap(a.filesAdded, b.filesAdded); - swap(a.filesAddedChecksum, b.filesAddedChecksum); + 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); } -InsertEventRequestData::InsertEventRequestData(const InsertEventRequestData& other850) { - replace = other850.replace; - filesAdded = other850.filesAdded; - filesAddedChecksum = other850.filesAddedChecksum; - __isset = other850.__isset; +FireEventRequest::FireEventRequest(const FireEventRequest& other952) { + successful = other952.successful; + data = other952.data; + dbName = other952.dbName; + tableName = other952.tableName; + partitionVals = other952.partitionVals; + catName = other952.catName; + __isset = other952.__isset; } -InsertEventRequestData& InsertEventRequestData::operator=(const InsertEventRequestData& other851) { - replace = other851.replace; - filesAdded = other851.filesAdded; - filesAddedChecksum = other851.filesAddedChecksum; - __isset = other851.__isset; +FireEventRequest& FireEventRequest::operator=(const FireEventRequest& other953) { + successful = other953.successful; + data = other953.data; + dbName = other953.dbName; + tableName = other953.tableName; + partitionVals = other953.partitionVals; + catName = other953.catName; + __isset = other953.__isset; return *this; } -void InsertEventRequestData::printTo(std::ostream& out) const { +void FireEventRequest::printTo(std::ostream& out) const { using ::apache::thrift::to_string; - out << "InsertEventRequestData("; - out << "replace="; (__isset.replace ? (out << to_string(replace)) : (out << "")); - out << ", " << "filesAdded=" << to_string(filesAdded); - out << ", " << "filesAddedChecksum="; (__isset.filesAddedChecksum ? (out << to_string(filesAddedChecksum)) : (out << "")); + 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 << ")"; } -FireEventRequestData::~FireEventRequestData() throw() { +FireEventResponse::~FireEventResponse() throw() { } -void FireEventRequestData::__set_insertData(const InsertEventRequestData& val) { - this->insertData = val; -} - -uint32_t FireEventRequestData::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t FireEventResponse::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -21726,20 +22747,7 @@ uint32_t FireEventRequestData::read(::apache::thrift::protocol::TProtocol* iprot if (ftype == ::apache::thrift::protocol::T_STOP) { break; } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->insertData.read(iprot); - this->__isset.insertData = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } + xfer += iprot->skip(ftype); xfer += iprot->readFieldEnd(); } @@ -21748,76 +22756,66 @@ uint32_t FireEventRequestData::read(::apache::thrift::protocol::TProtocol* iprot return xfer; } -uint32_t FireEventRequestData::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t FireEventResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("FireEventRequestData"); - - xfer += oprot->writeFieldBegin("insertData", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->insertData.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("FireEventResponse"); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -void swap(FireEventRequestData &a, FireEventRequestData &b) { +void swap(FireEventResponse &a, FireEventResponse &b) { using ::std::swap; - swap(a.insertData, b.insertData); - swap(a.__isset, b.__isset); + (void) a; + (void) b; } -FireEventRequestData::FireEventRequestData(const FireEventRequestData& other852) { - insertData = other852.insertData; - __isset = other852.__isset; +FireEventResponse::FireEventResponse(const FireEventResponse& other954) { + (void) other954; } -FireEventRequestData& FireEventRequestData::operator=(const FireEventRequestData& other853) { - insertData = other853.insertData; - __isset = other853.__isset; +FireEventResponse& FireEventResponse::operator=(const FireEventResponse& other955) { + (void) other955; return *this; } -void FireEventRequestData::printTo(std::ostream& out) const { +void FireEventResponse::printTo(std::ostream& out) const { using ::apache::thrift::to_string; - out << "FireEventRequestData("; - out << "insertData=" << to_string(insertData); + out << "FireEventResponse("; out << ")"; } -FireEventRequest::~FireEventRequest() throw() { +WriteNotificationLogRequest::~WriteNotificationLogRequest() throw() { } -void FireEventRequest::__set_successful(const bool val) { - this->successful = val; +void WriteNotificationLogRequest::__set_txnId(const int64_t val) { + this->txnId = val; } -void FireEventRequest::__set_data(const FireEventRequestData& val) { - this->data = val; +void WriteNotificationLogRequest::__set_writeId(const int64_t val) { + this->writeId = val; } -void FireEventRequest::__set_dbName(const std::string& val) { - this->dbName = val; -__isset.dbName = true; +void WriteNotificationLogRequest::__set_db(const std::string& val) { + this->db = val; } -void FireEventRequest::__set_tableName(const std::string& val) { - this->tableName = val; -__isset.tableName = true; +void WriteNotificationLogRequest::__set_table(const std::string& val) { + this->table = val; } -void FireEventRequest::__set_partitionVals(const std::vector & val) { - this->partitionVals = val; -__isset.partitionVals = true; +void WriteNotificationLogRequest::__set_fileInfo(const InsertEventRequestData& val) { + this->fileInfo = val; } -void FireEventRequest::__set_catName(const std::string& val) { - this->catName = val; -__isset.catName = true; +void WriteNotificationLogRequest::__set_partitionVals(const std::vector & val) { + this->partitionVals = val; +__isset.partitionVals = 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 +22827,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 +22842,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 _size956; + ::apache::thrift::protocol::TType _etype959; + xfer += iprot->readListBegin(_etype959, _size956); + this->partitionVals.resize(_size956); + uint32_t _i960; + for (_i960 = 0; _i960 < _size956; ++_i960) { - xfer += iprot->readString(this->partitionVals[_i858]); + xfer += iprot->readString(this->partitionVals[_i960]); } xfer += iprot->readListEnd(); } @@ -21892,14 +22901,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 +22910,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 _iter961; + for (_iter961 = this->partitionVals.begin(); _iter961 != this->partitionVals.end(); ++_iter961) { - xfer += oprot->writeString((*_iter859)); + xfer += oprot->writeString((*_iter961)); } 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& other962) { + txnId = other962.txnId; + writeId = other962.writeId; + db = other962.db; + table = other962.table; + fileInfo = other962.fileInfo; + partitionVals = other962.partitionVals; + __isset = other962.__isset; +} +WriteNotificationLogRequest& WriteNotificationLogRequest::operator=(const WriteNotificationLogRequest& other963) { + txnId = other963.txnId; + writeId = other963.writeId; + db = other963.db; + table = other963.table; + fileInfo = other963.fileInfo; + partitionVals = other963.partitionVals; + __isset = other963.__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 +23041,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& other964) { + (void) other964; } -FireEventResponse& FireEventResponse::operator=(const FireEventResponse& other863) { - (void) other863; +WriteNotificationLogResponse& WriteNotificationLogResponse::operator=(const WriteNotificationLogResponse& other965) { + (void) other965; 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 +23161,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& other966) { + metadata = other966.metadata; + includeBitset = other966.includeBitset; + __isset = other966.__isset; } -MetadataPpdResult& MetadataPpdResult::operator=(const MetadataPpdResult& other865) { - metadata = other865.metadata; - includeBitset = other865.includeBitset; - __isset = other865.__isset; +MetadataPpdResult& MetadataPpdResult::operator=(const MetadataPpdResult& other967) { + metadata = other967.metadata; + includeBitset = other967.includeBitset; + __isset = other967.__isset; return *this; } void MetadataPpdResult::printTo(std::ostream& out) const { @@ -22216,17 +23220,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 _size968; + ::apache::thrift::protocol::TType _ktype969; + ::apache::thrift::protocol::TType _vtype970; + xfer += iprot->readMapBegin(_ktype969, _vtype970, _size968); + uint32_t _i972; + for (_i972 = 0; _i972 < _size968; ++_i972) { - int64_t _key871; - xfer += iprot->readI64(_key871); - MetadataPpdResult& _val872 = this->metadata[_key871]; - xfer += _val872.read(iprot); + int64_t _key973; + xfer += iprot->readI64(_key973); + MetadataPpdResult& _val974 = this->metadata[_key973]; + xfer += _val974.read(iprot); } xfer += iprot->readMapEnd(); } @@ -22267,11 +23271,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 _iter975; + for (_iter975 = this->metadata.begin(); _iter975 != this->metadata.end(); ++_iter975) { - xfer += oprot->writeI64(_iter873->first); - xfer += _iter873->second.write(oprot); + xfer += oprot->writeI64(_iter975->first); + xfer += _iter975->second.write(oprot); } xfer += oprot->writeMapEnd(); } @@ -22292,13 +23296,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& other976) { + metadata = other976.metadata; + isSupported = other976.isSupported; } -GetFileMetadataByExprResult& GetFileMetadataByExprResult::operator=(const GetFileMetadataByExprResult& other875) { - metadata = other875.metadata; - isSupported = other875.isSupported; +GetFileMetadataByExprResult& GetFileMetadataByExprResult::operator=(const GetFileMetadataByExprResult& other977) { + metadata = other977.metadata; + isSupported = other977.isSupported; return *this; } void GetFileMetadataByExprResult::printTo(std::ostream& out) const { @@ -22359,14 +23363,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 _size978; + ::apache::thrift::protocol::TType _etype981; + xfer += iprot->readListBegin(_etype981, _size978); + this->fileIds.resize(_size978); + uint32_t _i982; + for (_i982 = 0; _i982 < _size978; ++_i982) { - xfer += iprot->readI64(this->fileIds[_i880]); + xfer += iprot->readI64(this->fileIds[_i982]); } xfer += iprot->readListEnd(); } @@ -22393,9 +23397,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 ecast983; + xfer += iprot->readI32(ecast983); + this->type = (FileMetadataExprType::type)ecast983; this->__isset.type = true; } else { xfer += iprot->skip(ftype); @@ -22425,10 +23429,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 _iter984; + for (_iter984 = this->fileIds.begin(); _iter984 != this->fileIds.end(); ++_iter984) { - xfer += oprot->writeI64((*_iter882)); + xfer += oprot->writeI64((*_iter984)); } xfer += oprot->writeListEnd(); } @@ -22462,19 +23466,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& other985) { + fileIds = other985.fileIds; + expr = other985.expr; + doGetFooters = other985.doGetFooters; + type = other985.type; + __isset = other985.__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& other986) { + fileIds = other986.fileIds; + expr = other986.expr; + doGetFooters = other986.doGetFooters; + type = other986.type; + __isset = other986.__isset; return *this; } void GetFileMetadataByExprRequest::printTo(std::ostream& out) const { @@ -22527,17 +23531,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 _size987; + ::apache::thrift::protocol::TType _ktype988; + ::apache::thrift::protocol::TType _vtype989; + xfer += iprot->readMapBegin(_ktype988, _vtype989, _size987); + uint32_t _i991; + for (_i991 = 0; _i991 < _size987; ++_i991) { - int64_t _key890; - xfer += iprot->readI64(_key890); - std::string& _val891 = this->metadata[_key890]; - xfer += iprot->readBinary(_val891); + int64_t _key992; + xfer += iprot->readI64(_key992); + std::string& _val993 = this->metadata[_key992]; + xfer += iprot->readBinary(_val993); } xfer += iprot->readMapEnd(); } @@ -22578,11 +23582,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 _iter994; + for (_iter994 = this->metadata.begin(); _iter994 != this->metadata.end(); ++_iter994) { - xfer += oprot->writeI64(_iter892->first); - xfer += oprot->writeBinary(_iter892->second); + xfer += oprot->writeI64(_iter994->first); + xfer += oprot->writeBinary(_iter994->second); } xfer += oprot->writeMapEnd(); } @@ -22603,13 +23607,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& other995) { + metadata = other995.metadata; + isSupported = other995.isSupported; } -GetFileMetadataResult& GetFileMetadataResult::operator=(const GetFileMetadataResult& other894) { - metadata = other894.metadata; - isSupported = other894.isSupported; +GetFileMetadataResult& GetFileMetadataResult::operator=(const GetFileMetadataResult& other996) { + metadata = other996.metadata; + isSupported = other996.isSupported; return *this; } void GetFileMetadataResult::printTo(std::ostream& out) const { @@ -22655,14 +23659,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 _size997; + ::apache::thrift::protocol::TType _etype1000; + xfer += iprot->readListBegin(_etype1000, _size997); + this->fileIds.resize(_size997); + uint32_t _i1001; + for (_i1001 = 0; _i1001 < _size997; ++_i1001) { - xfer += iprot->readI64(this->fileIds[_i899]); + xfer += iprot->readI64(this->fileIds[_i1001]); } xfer += iprot->readListEnd(); } @@ -22693,10 +23697,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 _iter1002; + for (_iter1002 = this->fileIds.begin(); _iter1002 != this->fileIds.end(); ++_iter1002) { - xfer += oprot->writeI64((*_iter900)); + xfer += oprot->writeI64((*_iter1002)); } xfer += oprot->writeListEnd(); } @@ -22712,11 +23716,11 @@ void swap(GetFileMetadataRequest &a, GetFileMetadataRequest &b) { swap(a.fileIds, b.fileIds); } -GetFileMetadataRequest::GetFileMetadataRequest(const GetFileMetadataRequest& other901) { - fileIds = other901.fileIds; +GetFileMetadataRequest::GetFileMetadataRequest(const GetFileMetadataRequest& other1003) { + fileIds = other1003.fileIds; } -GetFileMetadataRequest& GetFileMetadataRequest::operator=(const GetFileMetadataRequest& other902) { - fileIds = other902.fileIds; +GetFileMetadataRequest& GetFileMetadataRequest::operator=(const GetFileMetadataRequest& other1004) { + fileIds = other1004.fileIds; return *this; } void GetFileMetadataRequest::printTo(std::ostream& out) const { @@ -22775,11 +23779,11 @@ void swap(PutFileMetadataResult &a, PutFileMetadataResult &b) { (void) b; } -PutFileMetadataResult::PutFileMetadataResult(const PutFileMetadataResult& other903) { - (void) other903; +PutFileMetadataResult::PutFileMetadataResult(const PutFileMetadataResult& other1005) { + (void) other1005; } -PutFileMetadataResult& PutFileMetadataResult::operator=(const PutFileMetadataResult& other904) { - (void) other904; +PutFileMetadataResult& PutFileMetadataResult::operator=(const PutFileMetadataResult& other1006) { + (void) other1006; return *this; } void PutFileMetadataResult::printTo(std::ostream& out) const { @@ -22833,14 +23837,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 _size1007; + ::apache::thrift::protocol::TType _etype1010; + xfer += iprot->readListBegin(_etype1010, _size1007); + this->fileIds.resize(_size1007); + uint32_t _i1011; + for (_i1011 = 0; _i1011 < _size1007; ++_i1011) { - xfer += iprot->readI64(this->fileIds[_i909]); + xfer += iprot->readI64(this->fileIds[_i1011]); } xfer += iprot->readListEnd(); } @@ -22853,14 +23857,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 _size1012; + ::apache::thrift::protocol::TType _etype1015; + xfer += iprot->readListBegin(_etype1015, _size1012); + this->metadata.resize(_size1012); + uint32_t _i1016; + for (_i1016 = 0; _i1016 < _size1012; ++_i1016) { - xfer += iprot->readBinary(this->metadata[_i914]); + xfer += iprot->readBinary(this->metadata[_i1016]); } xfer += iprot->readListEnd(); } @@ -22871,9 +23875,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 ecast1017; + xfer += iprot->readI32(ecast1017); + this->type = (FileMetadataExprType::type)ecast1017; this->__isset.type = true; } else { xfer += iprot->skip(ftype); @@ -22903,10 +23907,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 _iter1018; + for (_iter1018 = this->fileIds.begin(); _iter1018 != this->fileIds.end(); ++_iter1018) { - xfer += oprot->writeI64((*_iter916)); + xfer += oprot->writeI64((*_iter1018)); } xfer += oprot->writeListEnd(); } @@ -22915,10 +23919,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 _iter1019; + for (_iter1019 = this->metadata.begin(); _iter1019 != this->metadata.end(); ++_iter1019) { - xfer += oprot->writeBinary((*_iter917)); + xfer += oprot->writeBinary((*_iter1019)); } xfer += oprot->writeListEnd(); } @@ -22942,17 +23946,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(const PutFileMetadataRequest& other1020) { + fileIds = other1020.fileIds; + metadata = other1020.metadata; + type = other1020.type; + __isset = other1020.__isset; } -PutFileMetadataRequest& PutFileMetadataRequest::operator=(const PutFileMetadataRequest& other919) { - fileIds = other919.fileIds; - metadata = other919.metadata; - type = other919.type; - __isset = other919.__isset; +PutFileMetadataRequest& PutFileMetadataRequest::operator=(const PutFileMetadataRequest& other1021) { + fileIds = other1021.fileIds; + metadata = other1021.metadata; + type = other1021.type; + __isset = other1021.__isset; return *this; } void PutFileMetadataRequest::printTo(std::ostream& out) const { @@ -23013,11 +24017,11 @@ void swap(ClearFileMetadataResult &a, ClearFileMetadataResult &b) { (void) b; } -ClearFileMetadataResult::ClearFileMetadataResult(const ClearFileMetadataResult& other920) { - (void) other920; +ClearFileMetadataResult::ClearFileMetadataResult(const ClearFileMetadataResult& other1022) { + (void) other1022; } -ClearFileMetadataResult& ClearFileMetadataResult::operator=(const ClearFileMetadataResult& other921) { - (void) other921; +ClearFileMetadataResult& ClearFileMetadataResult::operator=(const ClearFileMetadataResult& other1023) { + (void) other1023; return *this; } void ClearFileMetadataResult::printTo(std::ostream& out) const { @@ -23061,14 +24065,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 _size1024; + ::apache::thrift::protocol::TType _etype1027; + xfer += iprot->readListBegin(_etype1027, _size1024); + this->fileIds.resize(_size1024); + uint32_t _i1028; + for (_i1028 = 0; _i1028 < _size1024; ++_i1028) { - xfer += iprot->readI64(this->fileIds[_i926]); + xfer += iprot->readI64(this->fileIds[_i1028]); } xfer += iprot->readListEnd(); } @@ -23099,10 +24103,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 _iter1029; + for (_iter1029 = this->fileIds.begin(); _iter1029 != this->fileIds.end(); ++_iter1029) { - xfer += oprot->writeI64((*_iter927)); + xfer += oprot->writeI64((*_iter1029)); } xfer += oprot->writeListEnd(); } @@ -23118,11 +24122,11 @@ void swap(ClearFileMetadataRequest &a, ClearFileMetadataRequest &b) { swap(a.fileIds, b.fileIds); } -ClearFileMetadataRequest::ClearFileMetadataRequest(const ClearFileMetadataRequest& other928) { - fileIds = other928.fileIds; +ClearFileMetadataRequest::ClearFileMetadataRequest(const ClearFileMetadataRequest& other1030) { + fileIds = other1030.fileIds; } -ClearFileMetadataRequest& ClearFileMetadataRequest::operator=(const ClearFileMetadataRequest& other929) { - fileIds = other929.fileIds; +ClearFileMetadataRequest& ClearFileMetadataRequest::operator=(const ClearFileMetadataRequest& other1031) { + fileIds = other1031.fileIds; return *this; } void ClearFileMetadataRequest::printTo(std::ostream& out) const { @@ -23204,11 +24208,11 @@ void swap(CacheFileMetadataResult &a, CacheFileMetadataResult &b) { swap(a.isSupported, b.isSupported); } -CacheFileMetadataResult::CacheFileMetadataResult(const CacheFileMetadataResult& other930) { - isSupported = other930.isSupported; +CacheFileMetadataResult::CacheFileMetadataResult(const CacheFileMetadataResult& other1032) { + isSupported = other1032.isSupported; } -CacheFileMetadataResult& CacheFileMetadataResult::operator=(const CacheFileMetadataResult& other931) { - isSupported = other931.isSupported; +CacheFileMetadataResult& CacheFileMetadataResult::operator=(const CacheFileMetadataResult& other1033) { + isSupported = other1033.isSupported; return *this; } void CacheFileMetadataResult::printTo(std::ostream& out) const { @@ -23349,19 +24353,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& other1034) { + dbName = other1034.dbName; + tblName = other1034.tblName; + partName = other1034.partName; + isAllParts = other1034.isAllParts; + __isset = other1034.__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& other1035) { + dbName = other1035.dbName; + tblName = other1035.tblName; + partName = other1035.partName; + isAllParts = other1035.isAllParts; + __isset = other1035.__isset; return *this; } void CacheFileMetadataRequest::printTo(std::ostream& out) const { @@ -23409,14 +24413,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 _size1036; + ::apache::thrift::protocol::TType _etype1039; + xfer += iprot->readListBegin(_etype1039, _size1036); + this->functions.resize(_size1036); + uint32_t _i1040; + for (_i1040 = 0; _i1040 < _size1036; ++_i1040) { - xfer += this->functions[_i938].read(iprot); + xfer += this->functions[_i1040].read(iprot); } xfer += iprot->readListEnd(); } @@ -23446,10 +24450,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 _iter1041; + for (_iter1041 = this->functions.begin(); _iter1041 != this->functions.end(); ++_iter1041) { - xfer += (*_iter939).write(oprot); + xfer += (*_iter1041).write(oprot); } xfer += oprot->writeListEnd(); } @@ -23466,13 +24470,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& other1042) { + functions = other1042.functions; + __isset = other1042.__isset; } -GetAllFunctionsResponse& GetAllFunctionsResponse::operator=(const GetAllFunctionsResponse& other941) { - functions = other941.functions; - __isset = other941.__isset; +GetAllFunctionsResponse& GetAllFunctionsResponse::operator=(const GetAllFunctionsResponse& other1043) { + functions = other1043.functions; + __isset = other1043.__isset; return *this; } void GetAllFunctionsResponse::printTo(std::ostream& out) const { @@ -23517,16 +24521,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 _size1044; + ::apache::thrift::protocol::TType _etype1047; + xfer += iprot->readListBegin(_etype1047, _size1044); + this->values.resize(_size1044); + uint32_t _i1048; + for (_i1048 = 0; _i1048 < _size1044; ++_i1048) { - int32_t ecast947; - xfer += iprot->readI32(ecast947); - this->values[_i946] = (ClientCapability::type)ecast947; + int32_t ecast1049; + xfer += iprot->readI32(ecast1049); + this->values[_i1048] = (ClientCapability::type)ecast1049; } xfer += iprot->readListEnd(); } @@ -23557,10 +24561,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 _iter1050; + for (_iter1050 = this->values.begin(); _iter1050 != this->values.end(); ++_iter1050) { - xfer += oprot->writeI32((int32_t)(*_iter948)); + xfer += oprot->writeI32((int32_t)(*_iter1050)); } xfer += oprot->writeListEnd(); } @@ -23576,11 +24580,11 @@ void swap(ClientCapabilities &a, ClientCapabilities &b) { swap(a.values, b.values); } -ClientCapabilities::ClientCapabilities(const ClientCapabilities& other949) { - values = other949.values; +ClientCapabilities::ClientCapabilities(const ClientCapabilities& other1051) { + values = other1051.values; } -ClientCapabilities& ClientCapabilities::operator=(const ClientCapabilities& other950) { - values = other950.values; +ClientCapabilities& ClientCapabilities::operator=(const ClientCapabilities& other1052) { + values = other1052.values; return *this; } void ClientCapabilities::printTo(std::ostream& out) const { @@ -23721,19 +24725,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& other1053) { + dbName = other1053.dbName; + tblName = other1053.tblName; + capabilities = other1053.capabilities; + catName = other1053.catName; + __isset = other1053.__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& other1054) { + dbName = other1054.dbName; + tblName = other1054.tblName; + capabilities = other1054.capabilities; + catName = other1054.catName; + __isset = other1054.__isset; return *this; } void GetTableRequest::printTo(std::ostream& out) const { @@ -23818,11 +24822,11 @@ void swap(GetTableResult &a, GetTableResult &b) { swap(a.table, b.table); } -GetTableResult::GetTableResult(const GetTableResult& other953) { - table = other953.table; +GetTableResult::GetTableResult(const GetTableResult& other1055) { + table = other1055.table; } -GetTableResult& GetTableResult::operator=(const GetTableResult& other954) { - table = other954.table; +GetTableResult& GetTableResult::operator=(const GetTableResult& other1056) { + table = other1056.table; return *this; } void GetTableResult::printTo(std::ostream& out) const { @@ -23890,14 +24894,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 _size1057; + ::apache::thrift::protocol::TType _etype1060; + xfer += iprot->readListBegin(_etype1060, _size1057); + this->tblNames.resize(_size1057); + uint32_t _i1061; + for (_i1061 = 0; _i1061 < _size1057; ++_i1061) { - xfer += iprot->readString(this->tblNames[_i959]); + xfer += iprot->readString(this->tblNames[_i1061]); } xfer += iprot->readListEnd(); } @@ -23949,10 +24953,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 _iter1062; + for (_iter1062 = this->tblNames.begin(); _iter1062 != this->tblNames.end(); ++_iter1062) { - xfer += oprot->writeString((*_iter960)); + xfer += oprot->writeString((*_iter1062)); } xfer += oprot->writeListEnd(); } @@ -23982,19 +24986,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& other1063) { + dbName = other1063.dbName; + tblNames = other1063.tblNames; + capabilities = other1063.capabilities; + catName = other1063.catName; + __isset = other1063.__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& other1064) { + dbName = other1064.dbName; + tblNames = other1064.tblNames; + capabilities = other1064.capabilities; + catName = other1064.catName; + __isset = other1064.__isset; return *this; } void GetTablesRequest::printTo(std::ostream& out) const { @@ -24042,14 +25046,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 _size1065; + ::apache::thrift::protocol::TType _etype1068; + xfer += iprot->readListBegin(_etype1068, _size1065); + this->tables.resize(_size1065); + uint32_t _i1069; + for (_i1069 = 0; _i1069 < _size1065; ++_i1069) { - xfer += this->tables[_i967].read(iprot); + xfer += this->tables[_i1069].read(iprot); } xfer += iprot->readListEnd(); } @@ -24080,10 +25084,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 _iter1070; + for (_iter1070 = this->tables.begin(); _iter1070 != this->tables.end(); ++_iter1070) { - xfer += (*_iter968).write(oprot); + xfer += (*_iter1070).write(oprot); } xfer += oprot->writeListEnd(); } @@ -24099,11 +25103,11 @@ void swap(GetTablesResult &a, GetTablesResult &b) { swap(a.tables, b.tables); } -GetTablesResult::GetTablesResult(const GetTablesResult& other969) { - tables = other969.tables; +GetTablesResult::GetTablesResult(const GetTablesResult& other1071) { + tables = other1071.tables; } -GetTablesResult& GetTablesResult::operator=(const GetTablesResult& other970) { - tables = other970.tables; +GetTablesResult& GetTablesResult::operator=(const GetTablesResult& other1072) { + tables = other1072.tables; return *this; } void GetTablesResult::printTo(std::ostream& out) const { @@ -24205,13 +25209,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& other1073) { + dataPath = other1073.dataPath; + purge = other1073.purge; } -CmRecycleRequest& CmRecycleRequest::operator=(const CmRecycleRequest& other972) { - dataPath = other972.dataPath; - purge = other972.purge; +CmRecycleRequest& CmRecycleRequest::operator=(const CmRecycleRequest& other1074) { + dataPath = other1074.dataPath; + purge = other1074.purge; return *this; } void CmRecycleRequest::printTo(std::ostream& out) const { @@ -24271,11 +25275,11 @@ void swap(CmRecycleResponse &a, CmRecycleResponse &b) { (void) b; } -CmRecycleResponse::CmRecycleResponse(const CmRecycleResponse& other973) { - (void) other973; +CmRecycleResponse::CmRecycleResponse(const CmRecycleResponse& other1075) { + (void) other1075; } -CmRecycleResponse& CmRecycleResponse::operator=(const CmRecycleResponse& other974) { - (void) other974; +CmRecycleResponse& CmRecycleResponse::operator=(const CmRecycleResponse& other1076) { + (void) other1076; return *this; } void CmRecycleResponse::printTo(std::ostream& out) const { @@ -24435,21 +25439,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::operator=(const TableMeta& other976) { - dbName = other976.dbName; - tableName = other976.tableName; - tableType = other976.tableType; - comments = other976.comments; - catName = other976.catName; - __isset = other976.__isset; +TableMeta::TableMeta(const TableMeta& other1077) { + dbName = other1077.dbName; + tableName = other1077.tableName; + tableType = other1077.tableType; + comments = other1077.comments; + catName = other1077.catName; + __isset = other1077.__isset; +} +TableMeta& TableMeta::operator=(const TableMeta& other1078) { + dbName = other1078.dbName; + tableName = other1078.tableName; + tableType = other1078.tableType; + comments = other1078.comments; + catName = other1078.catName; + __isset = other1078.__isset; return *this; } void TableMeta::printTo(std::ostream& out) const { @@ -24513,15 +25517,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 _size1079; + ::apache::thrift::protocol::TType _etype1082; + xfer += iprot->readSetBegin(_etype1082, _size1079); + uint32_t _i1083; + for (_i1083 = 0; _i1083 < _size1079; ++_i1083) { - std::string _elem982; - xfer += iprot->readString(_elem982); - this->tablesUsed.insert(_elem982); + std::string _elem1084; + xfer += iprot->readString(_elem1084); + this->tablesUsed.insert(_elem1084); } xfer += iprot->readSetEnd(); } @@ -24576,10 +25580,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 _iter1085; + for (_iter1085 = this->tablesUsed.begin(); _iter1085 != this->tablesUsed.end(); ++_iter1085) { - xfer += oprot->writeString((*_iter983)); + xfer += oprot->writeString((*_iter1085)); } xfer += oprot->writeSetEnd(); } @@ -24614,19 +25618,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& other1086) { + tablesUsed = other1086.tablesUsed; + validTxnList = other1086.validTxnList; + invalidationTime = other1086.invalidationTime; + sourceTablesUpdateDeleteModified = other1086.sourceTablesUpdateDeleteModified; + __isset = other1086.__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& other1087) { + tablesUsed = other1087.tablesUsed; + validTxnList = other1087.validTxnList; + invalidationTime = other1087.invalidationTime; + sourceTablesUpdateDeleteModified = other1087.sourceTablesUpdateDeleteModified; + __isset = other1087.__isset; return *this; } void Materialization::printTo(std::ostream& out) const { @@ -24695,9 +25699,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 ecast1088; + xfer += iprot->readI32(ecast1088); + this->status = (WMResourcePlanStatus::type)ecast1088; this->__isset.status = true; } else { xfer += iprot->skip(ftype); @@ -24771,19 +25775,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& other1089) { + name = other1089.name; + status = other1089.status; + queryParallelism = other1089.queryParallelism; + defaultPoolPath = other1089.defaultPoolPath; + __isset = other1089.__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& other1090) { + name = other1090.name; + status = other1090.status; + queryParallelism = other1090.queryParallelism; + defaultPoolPath = other1090.defaultPoolPath; + __isset = other1090.__isset; return *this; } void WMResourcePlan::printTo(std::ostream& out) const { @@ -24862,9 +25866,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 ecast1091; + xfer += iprot->readI32(ecast1091); + this->status = (WMResourcePlanStatus::type)ecast1091; this->__isset.status = true; } else { xfer += iprot->skip(ftype); @@ -24965,23 +25969,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& other1092) { + name = other1092.name; + status = other1092.status; + queryParallelism = other1092.queryParallelism; + isSetQueryParallelism = other1092.isSetQueryParallelism; + defaultPoolPath = other1092.defaultPoolPath; + isSetDefaultPoolPath = other1092.isSetDefaultPoolPath; + __isset = other1092.__isset; +} +WMNullableResourcePlan& WMNullableResourcePlan::operator=(const WMNullableResourcePlan& other1093) { + name = other1093.name; + status = other1093.status; + queryParallelism = other1093.queryParallelism; + isSetQueryParallelism = other1093.isSetQueryParallelism; + defaultPoolPath = other1093.defaultPoolPath; + isSetDefaultPoolPath = other1093.isSetDefaultPoolPath; + __isset = other1093.__isset; return *this; } void WMNullableResourcePlan::printTo(std::ostream& out) const { @@ -25146,21 +26150,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& other1094) { + resourcePlanName = other1094.resourcePlanName; + poolPath = other1094.poolPath; + allocFraction = other1094.allocFraction; + queryParallelism = other1094.queryParallelism; + schedulingPolicy = other1094.schedulingPolicy; + __isset = other1094.__isset; +} +WMPool& WMPool::operator=(const WMPool& other1095) { + resourcePlanName = other1095.resourcePlanName; + poolPath = other1095.poolPath; + allocFraction = other1095.allocFraction; + queryParallelism = other1095.queryParallelism; + schedulingPolicy = other1095.schedulingPolicy; + __isset = other1095.__isset; return *this; } void WMPool::printTo(std::ostream& out) const { @@ -25343,23 +26347,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& other1096) { + resourcePlanName = other1096.resourcePlanName; + poolPath = other1096.poolPath; + allocFraction = other1096.allocFraction; + queryParallelism = other1096.queryParallelism; + schedulingPolicy = other1096.schedulingPolicy; + isSetSchedulingPolicy = other1096.isSetSchedulingPolicy; + __isset = other1096.__isset; +} +WMNullablePool& WMNullablePool::operator=(const WMNullablePool& other1097) { + resourcePlanName = other1097.resourcePlanName; + poolPath = other1097.poolPath; + allocFraction = other1097.allocFraction; + queryParallelism = other1097.queryParallelism; + schedulingPolicy = other1097.schedulingPolicy; + isSetSchedulingPolicy = other1097.isSetSchedulingPolicy; + __isset = other1097.__isset; return *this; } void WMNullablePool::printTo(std::ostream& out) const { @@ -25524,21 +26528,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& other1098) { + resourcePlanName = other1098.resourcePlanName; + triggerName = other1098.triggerName; + triggerExpression = other1098.triggerExpression; + actionExpression = other1098.actionExpression; + isInUnmanaged = other1098.isInUnmanaged; + __isset = other1098.__isset; +} +WMTrigger& WMTrigger::operator=(const WMTrigger& other1099) { + resourcePlanName = other1099.resourcePlanName; + triggerName = other1099.triggerName; + triggerExpression = other1099.triggerExpression; + actionExpression = other1099.actionExpression; + isInUnmanaged = other1099.isInUnmanaged; + __isset = other1099.__isset; return *this; } void WMTrigger::printTo(std::ostream& out) const { @@ -25703,21 +26707,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& other1100) { + resourcePlanName = other1100.resourcePlanName; + entityType = other1100.entityType; + entityName = other1100.entityName; + poolPath = other1100.poolPath; + ordering = other1100.ordering; + __isset = other1100.__isset; +} +WMMapping& WMMapping::operator=(const WMMapping& other1101) { + resourcePlanName = other1101.resourcePlanName; + entityType = other1101.entityType; + entityName = other1101.entityName; + poolPath = other1101.poolPath; + ordering = other1101.ordering; + __isset = other1101.__isset; return *this; } void WMMapping::printTo(std::ostream& out) const { @@ -25823,13 +26827,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& other1102) { + pool = other1102.pool; + trigger = other1102.trigger; } -WMPoolTrigger& WMPoolTrigger::operator=(const WMPoolTrigger& other1001) { - pool = other1001.pool; - trigger = other1001.trigger; +WMPoolTrigger& WMPoolTrigger::operator=(const WMPoolTrigger& other1103) { + pool = other1103.pool; + trigger = other1103.trigger; return *this; } void WMPoolTrigger::printTo(std::ostream& out) const { @@ -25903,14 +26907,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 _size1104; + ::apache::thrift::protocol::TType _etype1107; + xfer += iprot->readListBegin(_etype1107, _size1104); + this->pools.resize(_size1104); + uint32_t _i1108; + for (_i1108 = 0; _i1108 < _size1104; ++_i1108) { - xfer += this->pools[_i1006].read(iprot); + xfer += this->pools[_i1108].read(iprot); } xfer += iprot->readListEnd(); } @@ -25923,14 +26927,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 _size1109; + ::apache::thrift::protocol::TType _etype1112; + xfer += iprot->readListBegin(_etype1112, _size1109); + this->mappings.resize(_size1109); + uint32_t _i1113; + for (_i1113 = 0; _i1113 < _size1109; ++_i1113) { - xfer += this->mappings[_i1011].read(iprot); + xfer += this->mappings[_i1113].read(iprot); } xfer += iprot->readListEnd(); } @@ -25943,14 +26947,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 _size1114; + ::apache::thrift::protocol::TType _etype1117; + xfer += iprot->readListBegin(_etype1117, _size1114); + this->triggers.resize(_size1114); + uint32_t _i1118; + for (_i1118 = 0; _i1118 < _size1114; ++_i1118) { - xfer += this->triggers[_i1016].read(iprot); + xfer += this->triggers[_i1118].read(iprot); } xfer += iprot->readListEnd(); } @@ -25963,14 +26967,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 _size1119; + ::apache::thrift::protocol::TType _etype1122; + xfer += iprot->readListBegin(_etype1122, _size1119); + this->poolTriggers.resize(_size1119); + uint32_t _i1123; + for (_i1123 = 0; _i1123 < _size1119; ++_i1123) { - xfer += this->poolTriggers[_i1021].read(iprot); + xfer += this->poolTriggers[_i1123].read(iprot); } xfer += iprot->readListEnd(); } @@ -26007,10 +27011,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 _iter1124; + for (_iter1124 = this->pools.begin(); _iter1124 != this->pools.end(); ++_iter1124) { - xfer += (*_iter1022).write(oprot); + xfer += (*_iter1124).write(oprot); } xfer += oprot->writeListEnd(); } @@ -26020,10 +27024,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 _iter1125; + for (_iter1125 = this->mappings.begin(); _iter1125 != this->mappings.end(); ++_iter1125) { - xfer += (*_iter1023).write(oprot); + xfer += (*_iter1125).write(oprot); } xfer += oprot->writeListEnd(); } @@ -26033,10 +27037,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 _iter1126; + for (_iter1126 = this->triggers.begin(); _iter1126 != this->triggers.end(); ++_iter1126) { - xfer += (*_iter1024).write(oprot); + xfer += (*_iter1126).write(oprot); } xfer += oprot->writeListEnd(); } @@ -26046,10 +27050,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 _iter1127; + for (_iter1127 = this->poolTriggers.begin(); _iter1127 != this->poolTriggers.end(); ++_iter1127) { - xfer += (*_iter1025).write(oprot); + xfer += (*_iter1127).write(oprot); } xfer += oprot->writeListEnd(); } @@ -26070,21 +27074,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& other1128) { + plan = other1128.plan; + pools = other1128.pools; + mappings = other1128.mappings; + triggers = other1128.triggers; + poolTriggers = other1128.poolTriggers; + __isset = other1128.__isset; +} +WMFullResourcePlan& WMFullResourcePlan::operator=(const WMFullResourcePlan& other1129) { + plan = other1129.plan; + pools = other1129.pools; + mappings = other1129.mappings; + triggers = other1129.triggers; + poolTriggers = other1129.poolTriggers; + __isset = other1129.__isset; return *this; } void WMFullResourcePlan::printTo(std::ostream& out) const { @@ -26189,15 +27193,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& other1130) { + resourcePlan = other1130.resourcePlan; + copyFrom = other1130.copyFrom; + __isset = other1130.__isset; } -WMCreateResourcePlanRequest& WMCreateResourcePlanRequest::operator=(const WMCreateResourcePlanRequest& other1029) { - resourcePlan = other1029.resourcePlan; - copyFrom = other1029.copyFrom; - __isset = other1029.__isset; +WMCreateResourcePlanRequest& WMCreateResourcePlanRequest::operator=(const WMCreateResourcePlanRequest& other1131) { + resourcePlan = other1131.resourcePlan; + copyFrom = other1131.copyFrom; + __isset = other1131.__isset; return *this; } void WMCreateResourcePlanRequest::printTo(std::ostream& out) const { @@ -26257,11 +27261,11 @@ void swap(WMCreateResourcePlanResponse &a, WMCreateResourcePlanResponse &b) { (void) b; } -WMCreateResourcePlanResponse::WMCreateResourcePlanResponse(const WMCreateResourcePlanResponse& other1030) { - (void) other1030; +WMCreateResourcePlanResponse::WMCreateResourcePlanResponse(const WMCreateResourcePlanResponse& other1132) { + (void) other1132; } -WMCreateResourcePlanResponse& WMCreateResourcePlanResponse::operator=(const WMCreateResourcePlanResponse& other1031) { - (void) other1031; +WMCreateResourcePlanResponse& WMCreateResourcePlanResponse::operator=(const WMCreateResourcePlanResponse& other1133) { + (void) other1133; return *this; } void WMCreateResourcePlanResponse::printTo(std::ostream& out) const { @@ -26319,11 +27323,11 @@ void swap(WMGetActiveResourcePlanRequest &a, WMGetActiveResourcePlanRequest &b) (void) b; } -WMGetActiveResourcePlanRequest::WMGetActiveResourcePlanRequest(const WMGetActiveResourcePlanRequest& other1032) { - (void) other1032; +WMGetActiveResourcePlanRequest::WMGetActiveResourcePlanRequest(const WMGetActiveResourcePlanRequest& other1134) { + (void) other1134; } -WMGetActiveResourcePlanRequest& WMGetActiveResourcePlanRequest::operator=(const WMGetActiveResourcePlanRequest& other1033) { - (void) other1033; +WMGetActiveResourcePlanRequest& WMGetActiveResourcePlanRequest::operator=(const WMGetActiveResourcePlanRequest& other1135) { + (void) other1135; return *this; } void WMGetActiveResourcePlanRequest::printTo(std::ostream& out) const { @@ -26404,13 +27408,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& other1136) { + resourcePlan = other1136.resourcePlan; + __isset = other1136.__isset; } -WMGetActiveResourcePlanResponse& WMGetActiveResourcePlanResponse::operator=(const WMGetActiveResourcePlanResponse& other1035) { - resourcePlan = other1035.resourcePlan; - __isset = other1035.__isset; +WMGetActiveResourcePlanResponse& WMGetActiveResourcePlanResponse::operator=(const WMGetActiveResourcePlanResponse& other1137) { + resourcePlan = other1137.resourcePlan; + __isset = other1137.__isset; return *this; } void WMGetActiveResourcePlanResponse::printTo(std::ostream& out) const { @@ -26492,13 +27496,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& other1138) { + resourcePlanName = other1138.resourcePlanName; + __isset = other1138.__isset; } -WMGetResourcePlanRequest& WMGetResourcePlanRequest::operator=(const WMGetResourcePlanRequest& other1037) { - resourcePlanName = other1037.resourcePlanName; - __isset = other1037.__isset; +WMGetResourcePlanRequest& WMGetResourcePlanRequest::operator=(const WMGetResourcePlanRequest& other1139) { + resourcePlanName = other1139.resourcePlanName; + __isset = other1139.__isset; return *this; } void WMGetResourcePlanRequest::printTo(std::ostream& out) const { @@ -26580,13 +27584,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& other1140) { + resourcePlan = other1140.resourcePlan; + __isset = other1140.__isset; } -WMGetResourcePlanResponse& WMGetResourcePlanResponse::operator=(const WMGetResourcePlanResponse& other1039) { - resourcePlan = other1039.resourcePlan; - __isset = other1039.__isset; +WMGetResourcePlanResponse& WMGetResourcePlanResponse::operator=(const WMGetResourcePlanResponse& other1141) { + resourcePlan = other1141.resourcePlan; + __isset = other1141.__isset; return *this; } void WMGetResourcePlanResponse::printTo(std::ostream& out) const { @@ -26645,11 +27649,11 @@ void swap(WMGetAllResourcePlanRequest &a, WMGetAllResourcePlanRequest &b) { (void) b; } -WMGetAllResourcePlanRequest::WMGetAllResourcePlanRequest(const WMGetAllResourcePlanRequest& other1040) { - (void) other1040; +WMGetAllResourcePlanRequest::WMGetAllResourcePlanRequest(const WMGetAllResourcePlanRequest& other1142) { + (void) other1142; } -WMGetAllResourcePlanRequest& WMGetAllResourcePlanRequest::operator=(const WMGetAllResourcePlanRequest& other1041) { - (void) other1041; +WMGetAllResourcePlanRequest& WMGetAllResourcePlanRequest::operator=(const WMGetAllResourcePlanRequest& other1143) { + (void) other1143; return *this; } void WMGetAllResourcePlanRequest::printTo(std::ostream& out) const { @@ -26693,14 +27697,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 _size1144; + ::apache::thrift::protocol::TType _etype1147; + xfer += iprot->readListBegin(_etype1147, _size1144); + this->resourcePlans.resize(_size1144); + uint32_t _i1148; + for (_i1148 = 0; _i1148 < _size1144; ++_i1148) { - xfer += this->resourcePlans[_i1046].read(iprot); + xfer += this->resourcePlans[_i1148].read(iprot); } xfer += iprot->readListEnd(); } @@ -26730,10 +27734,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 _iter1149; + for (_iter1149 = this->resourcePlans.begin(); _iter1149 != this->resourcePlans.end(); ++_iter1149) { - xfer += (*_iter1047).write(oprot); + xfer += (*_iter1149).write(oprot); } xfer += oprot->writeListEnd(); } @@ -26750,13 +27754,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& other1150) { + resourcePlans = other1150.resourcePlans; + __isset = other1150.__isset; } -WMGetAllResourcePlanResponse& WMGetAllResourcePlanResponse::operator=(const WMGetAllResourcePlanResponse& other1049) { - resourcePlans = other1049.resourcePlans; - __isset = other1049.__isset; +WMGetAllResourcePlanResponse& WMGetAllResourcePlanResponse::operator=(const WMGetAllResourcePlanResponse& other1151) { + resourcePlans = other1151.resourcePlans; + __isset = other1151.__isset; return *this; } void WMGetAllResourcePlanResponse::printTo(std::ostream& out) const { @@ -26914,21 +27918,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::operator=(const WMAlterResourcePlanRequest& other1051) { - resourcePlanName = other1051.resourcePlanName; - resourcePlan = other1051.resourcePlan; - isEnableAndActivate = other1051.isEnableAndActivate; - isForceDeactivate = other1051.isForceDeactivate; - isReplace = other1051.isReplace; - __isset = other1051.__isset; +WMAlterResourcePlanRequest::WMAlterResourcePlanRequest(const WMAlterResourcePlanRequest& other1152) { + resourcePlanName = other1152.resourcePlanName; + resourcePlan = other1152.resourcePlan; + isEnableAndActivate = other1152.isEnableAndActivate; + isForceDeactivate = other1152.isForceDeactivate; + isReplace = other1152.isReplace; + __isset = other1152.__isset; +} +WMAlterResourcePlanRequest& WMAlterResourcePlanRequest::operator=(const WMAlterResourcePlanRequest& other1153) { + resourcePlanName = other1153.resourcePlanName; + resourcePlan = other1153.resourcePlan; + isEnableAndActivate = other1153.isEnableAndActivate; + isForceDeactivate = other1153.isForceDeactivate; + isReplace = other1153.isReplace; + __isset = other1153.__isset; return *this; } void WMAlterResourcePlanRequest::printTo(std::ostream& out) const { @@ -27014,13 +28018,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& other1154) { + fullResourcePlan = other1154.fullResourcePlan; + __isset = other1154.__isset; } -WMAlterResourcePlanResponse& WMAlterResourcePlanResponse::operator=(const WMAlterResourcePlanResponse& other1053) { - fullResourcePlan = other1053.fullResourcePlan; - __isset = other1053.__isset; +WMAlterResourcePlanResponse& WMAlterResourcePlanResponse::operator=(const WMAlterResourcePlanResponse& other1155) { + fullResourcePlan = other1155.fullResourcePlan; + __isset = other1155.__isset; return *this; } void WMAlterResourcePlanResponse::printTo(std::ostream& out) const { @@ -27102,13 +28106,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& other1156) { + resourcePlanName = other1156.resourcePlanName; + __isset = other1156.__isset; } -WMValidateResourcePlanRequest& WMValidateResourcePlanRequest::operator=(const WMValidateResourcePlanRequest& other1055) { - resourcePlanName = other1055.resourcePlanName; - __isset = other1055.__isset; +WMValidateResourcePlanRequest& WMValidateResourcePlanRequest::operator=(const WMValidateResourcePlanRequest& other1157) { + resourcePlanName = other1157.resourcePlanName; + __isset = other1157.__isset; return *this; } void WMValidateResourcePlanRequest::printTo(std::ostream& out) const { @@ -27158,14 +28162,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 _size1158; + ::apache::thrift::protocol::TType _etype1161; + xfer += iprot->readListBegin(_etype1161, _size1158); + this->errors.resize(_size1158); + uint32_t _i1162; + for (_i1162 = 0; _i1162 < _size1158; ++_i1162) { - xfer += iprot->readString(this->errors[_i1060]); + xfer += iprot->readString(this->errors[_i1162]); } xfer += iprot->readListEnd(); } @@ -27178,14 +28182,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 _size1163; + ::apache::thrift::protocol::TType _etype1166; + xfer += iprot->readListBegin(_etype1166, _size1163); + this->warnings.resize(_size1163); + uint32_t _i1167; + for (_i1167 = 0; _i1167 < _size1163; ++_i1167) { - xfer += iprot->readString(this->warnings[_i1065]); + xfer += iprot->readString(this->warnings[_i1167]); } xfer += iprot->readListEnd(); } @@ -27215,10 +28219,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 _iter1168; + for (_iter1168 = this->errors.begin(); _iter1168 != this->errors.end(); ++_iter1168) { - xfer += oprot->writeString((*_iter1066)); + xfer += oprot->writeString((*_iter1168)); } xfer += oprot->writeListEnd(); } @@ -27228,10 +28232,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 _iter1169; + for (_iter1169 = this->warnings.begin(); _iter1169 != this->warnings.end(); ++_iter1169) { - xfer += oprot->writeString((*_iter1067)); + xfer += oprot->writeString((*_iter1169)); } xfer += oprot->writeListEnd(); } @@ -27249,15 +28253,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& other1170) { + errors = other1170.errors; + warnings = other1170.warnings; + __isset = other1170.__isset; } -WMValidateResourcePlanResponse& WMValidateResourcePlanResponse::operator=(const WMValidateResourcePlanResponse& other1069) { - errors = other1069.errors; - warnings = other1069.warnings; - __isset = other1069.__isset; +WMValidateResourcePlanResponse& WMValidateResourcePlanResponse::operator=(const WMValidateResourcePlanResponse& other1171) { + errors = other1171.errors; + warnings = other1171.warnings; + __isset = other1171.__isset; return *this; } void WMValidateResourcePlanResponse::printTo(std::ostream& out) const { @@ -27340,13 +28344,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& other1172) { + resourcePlanName = other1172.resourcePlanName; + __isset = other1172.__isset; } -WMDropResourcePlanRequest& WMDropResourcePlanRequest::operator=(const WMDropResourcePlanRequest& other1071) { - resourcePlanName = other1071.resourcePlanName; - __isset = other1071.__isset; +WMDropResourcePlanRequest& WMDropResourcePlanRequest::operator=(const WMDropResourcePlanRequest& other1173) { + resourcePlanName = other1173.resourcePlanName; + __isset = other1173.__isset; return *this; } void WMDropResourcePlanRequest::printTo(std::ostream& out) const { @@ -27405,11 +28409,11 @@ void swap(WMDropResourcePlanResponse &a, WMDropResourcePlanResponse &b) { (void) b; } -WMDropResourcePlanResponse::WMDropResourcePlanResponse(const WMDropResourcePlanResponse& other1072) { - (void) other1072; +WMDropResourcePlanResponse::WMDropResourcePlanResponse(const WMDropResourcePlanResponse& other1174) { + (void) other1174; } -WMDropResourcePlanResponse& WMDropResourcePlanResponse::operator=(const WMDropResourcePlanResponse& other1073) { - (void) other1073; +WMDropResourcePlanResponse& WMDropResourcePlanResponse::operator=(const WMDropResourcePlanResponse& other1175) { + (void) other1175; return *this; } void WMDropResourcePlanResponse::printTo(std::ostream& out) const { @@ -27490,13 +28494,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& other1176) { + trigger = other1176.trigger; + __isset = other1176.__isset; } -WMCreateTriggerRequest& WMCreateTriggerRequest::operator=(const WMCreateTriggerRequest& other1075) { - trigger = other1075.trigger; - __isset = other1075.__isset; +WMCreateTriggerRequest& WMCreateTriggerRequest::operator=(const WMCreateTriggerRequest& other1177) { + trigger = other1177.trigger; + __isset = other1177.__isset; return *this; } void WMCreateTriggerRequest::printTo(std::ostream& out) const { @@ -27555,11 +28559,11 @@ void swap(WMCreateTriggerResponse &a, WMCreateTriggerResponse &b) { (void) b; } -WMCreateTriggerResponse::WMCreateTriggerResponse(const WMCreateTriggerResponse& other1076) { - (void) other1076; +WMCreateTriggerResponse::WMCreateTriggerResponse(const WMCreateTriggerResponse& other1178) { + (void) other1178; } -WMCreateTriggerResponse& WMCreateTriggerResponse::operator=(const WMCreateTriggerResponse& other1077) { - (void) other1077; +WMCreateTriggerResponse& WMCreateTriggerResponse::operator=(const WMCreateTriggerResponse& other1179) { + (void) other1179; return *this; } void WMCreateTriggerResponse::printTo(std::ostream& out) const { @@ -27640,13 +28644,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& other1180) { + trigger = other1180.trigger; + __isset = other1180.__isset; } -WMAlterTriggerRequest& WMAlterTriggerRequest::operator=(const WMAlterTriggerRequest& other1079) { - trigger = other1079.trigger; - __isset = other1079.__isset; +WMAlterTriggerRequest& WMAlterTriggerRequest::operator=(const WMAlterTriggerRequest& other1181) { + trigger = other1181.trigger; + __isset = other1181.__isset; return *this; } void WMAlterTriggerRequest::printTo(std::ostream& out) const { @@ -27705,11 +28709,11 @@ void swap(WMAlterTriggerResponse &a, WMAlterTriggerResponse &b) { (void) b; } -WMAlterTriggerResponse::WMAlterTriggerResponse(const WMAlterTriggerResponse& other1080) { - (void) other1080; +WMAlterTriggerResponse::WMAlterTriggerResponse(const WMAlterTriggerResponse& other1182) { + (void) other1182; } -WMAlterTriggerResponse& WMAlterTriggerResponse::operator=(const WMAlterTriggerResponse& other1081) { - (void) other1081; +WMAlterTriggerResponse& WMAlterTriggerResponse::operator=(const WMAlterTriggerResponse& other1183) { + (void) other1183; return *this; } void WMAlterTriggerResponse::printTo(std::ostream& out) const { @@ -27809,15 +28813,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& other1184) { + resourcePlanName = other1184.resourcePlanName; + triggerName = other1184.triggerName; + __isset = other1184.__isset; } -WMDropTriggerRequest& WMDropTriggerRequest::operator=(const WMDropTriggerRequest& other1083) { - resourcePlanName = other1083.resourcePlanName; - triggerName = other1083.triggerName; - __isset = other1083.__isset; +WMDropTriggerRequest& WMDropTriggerRequest::operator=(const WMDropTriggerRequest& other1185) { + resourcePlanName = other1185.resourcePlanName; + triggerName = other1185.triggerName; + __isset = other1185.__isset; return *this; } void WMDropTriggerRequest::printTo(std::ostream& out) const { @@ -27877,11 +28881,11 @@ void swap(WMDropTriggerResponse &a, WMDropTriggerResponse &b) { (void) b; } -WMDropTriggerResponse::WMDropTriggerResponse(const WMDropTriggerResponse& other1084) { - (void) other1084; +WMDropTriggerResponse::WMDropTriggerResponse(const WMDropTriggerResponse& other1186) { + (void) other1186; } -WMDropTriggerResponse& WMDropTriggerResponse::operator=(const WMDropTriggerResponse& other1085) { - (void) other1085; +WMDropTriggerResponse& WMDropTriggerResponse::operator=(const WMDropTriggerResponse& other1187) { + (void) other1187; return *this; } void WMDropTriggerResponse::printTo(std::ostream& out) const { @@ -27962,13 +28966,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& other1188) { + resourcePlanName = other1188.resourcePlanName; + __isset = other1188.__isset; } -WMGetTriggersForResourePlanRequest& WMGetTriggersForResourePlanRequest::operator=(const WMGetTriggersForResourePlanRequest& other1087) { - resourcePlanName = other1087.resourcePlanName; - __isset = other1087.__isset; +WMGetTriggersForResourePlanRequest& WMGetTriggersForResourePlanRequest::operator=(const WMGetTriggersForResourePlanRequest& other1189) { + resourcePlanName = other1189.resourcePlanName; + __isset = other1189.__isset; return *this; } void WMGetTriggersForResourePlanRequest::printTo(std::ostream& out) const { @@ -28013,14 +29017,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 _size1190; + ::apache::thrift::protocol::TType _etype1193; + xfer += iprot->readListBegin(_etype1193, _size1190); + this->triggers.resize(_size1190); + uint32_t _i1194; + for (_i1194 = 0; _i1194 < _size1190; ++_i1194) { - xfer += this->triggers[_i1092].read(iprot); + xfer += this->triggers[_i1194].read(iprot); } xfer += iprot->readListEnd(); } @@ -28050,10 +29054,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 _iter1195; + for (_iter1195 = this->triggers.begin(); _iter1195 != this->triggers.end(); ++_iter1195) { - xfer += (*_iter1093).write(oprot); + xfer += (*_iter1195).write(oprot); } xfer += oprot->writeListEnd(); } @@ -28070,13 +29074,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& other1196) { + triggers = other1196.triggers; + __isset = other1196.__isset; } -WMGetTriggersForResourePlanResponse& WMGetTriggersForResourePlanResponse::operator=(const WMGetTriggersForResourePlanResponse& other1095) { - triggers = other1095.triggers; - __isset = other1095.__isset; +WMGetTriggersForResourePlanResponse& WMGetTriggersForResourePlanResponse::operator=(const WMGetTriggersForResourePlanResponse& other1197) { + triggers = other1197.triggers; + __isset = other1197.__isset; return *this; } void WMGetTriggersForResourePlanResponse::printTo(std::ostream& out) const { @@ -28158,13 +29162,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& other1198) { + pool = other1198.pool; + __isset = other1198.__isset; } -WMCreatePoolRequest& WMCreatePoolRequest::operator=(const WMCreatePoolRequest& other1097) { - pool = other1097.pool; - __isset = other1097.__isset; +WMCreatePoolRequest& WMCreatePoolRequest::operator=(const WMCreatePoolRequest& other1199) { + pool = other1199.pool; + __isset = other1199.__isset; return *this; } void WMCreatePoolRequest::printTo(std::ostream& out) const { @@ -28223,11 +29227,11 @@ void swap(WMCreatePoolResponse &a, WMCreatePoolResponse &b) { (void) b; } -WMCreatePoolResponse::WMCreatePoolResponse(const WMCreatePoolResponse& other1098) { - (void) other1098; +WMCreatePoolResponse::WMCreatePoolResponse(const WMCreatePoolResponse& other1200) { + (void) other1200; } -WMCreatePoolResponse& WMCreatePoolResponse::operator=(const WMCreatePoolResponse& other1099) { - (void) other1099; +WMCreatePoolResponse& WMCreatePoolResponse::operator=(const WMCreatePoolResponse& other1201) { + (void) other1201; return *this; } void WMCreatePoolResponse::printTo(std::ostream& out) const { @@ -28327,15 +29331,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& other1202) { + pool = other1202.pool; + poolPath = other1202.poolPath; + __isset = other1202.__isset; } -WMAlterPoolRequest& WMAlterPoolRequest::operator=(const WMAlterPoolRequest& other1101) { - pool = other1101.pool; - poolPath = other1101.poolPath; - __isset = other1101.__isset; +WMAlterPoolRequest& WMAlterPoolRequest::operator=(const WMAlterPoolRequest& other1203) { + pool = other1203.pool; + poolPath = other1203.poolPath; + __isset = other1203.__isset; return *this; } void WMAlterPoolRequest::printTo(std::ostream& out) const { @@ -28395,11 +29399,11 @@ void swap(WMAlterPoolResponse &a, WMAlterPoolResponse &b) { (void) b; } -WMAlterPoolResponse::WMAlterPoolResponse(const WMAlterPoolResponse& other1102) { - (void) other1102; +WMAlterPoolResponse::WMAlterPoolResponse(const WMAlterPoolResponse& other1204) { + (void) other1204; } -WMAlterPoolResponse& WMAlterPoolResponse::operator=(const WMAlterPoolResponse& other1103) { - (void) other1103; +WMAlterPoolResponse& WMAlterPoolResponse::operator=(const WMAlterPoolResponse& other1205) { + (void) other1205; return *this; } void WMAlterPoolResponse::printTo(std::ostream& out) const { @@ -28499,15 +29503,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& other1206) { + resourcePlanName = other1206.resourcePlanName; + poolPath = other1206.poolPath; + __isset = other1206.__isset; } -WMDropPoolRequest& WMDropPoolRequest::operator=(const WMDropPoolRequest& other1105) { - resourcePlanName = other1105.resourcePlanName; - poolPath = other1105.poolPath; - __isset = other1105.__isset; +WMDropPoolRequest& WMDropPoolRequest::operator=(const WMDropPoolRequest& other1207) { + resourcePlanName = other1207.resourcePlanName; + poolPath = other1207.poolPath; + __isset = other1207.__isset; return *this; } void WMDropPoolRequest::printTo(std::ostream& out) const { @@ -28567,11 +29571,11 @@ void swap(WMDropPoolResponse &a, WMDropPoolResponse &b) { (void) b; } -WMDropPoolResponse::WMDropPoolResponse(const WMDropPoolResponse& other1106) { - (void) other1106; +WMDropPoolResponse::WMDropPoolResponse(const WMDropPoolResponse& other1208) { + (void) other1208; } -WMDropPoolResponse& WMDropPoolResponse::operator=(const WMDropPoolResponse& other1107) { - (void) other1107; +WMDropPoolResponse& WMDropPoolResponse::operator=(const WMDropPoolResponse& other1209) { + (void) other1209; return *this; } void WMDropPoolResponse::printTo(std::ostream& out) const { @@ -28671,15 +29675,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& other1210) { + mapping = other1210.mapping; + update = other1210.update; + __isset = other1210.__isset; } -WMCreateOrUpdateMappingRequest& WMCreateOrUpdateMappingRequest::operator=(const WMCreateOrUpdateMappingRequest& other1109) { - mapping = other1109.mapping; - update = other1109.update; - __isset = other1109.__isset; +WMCreateOrUpdateMappingRequest& WMCreateOrUpdateMappingRequest::operator=(const WMCreateOrUpdateMappingRequest& other1211) { + mapping = other1211.mapping; + update = other1211.update; + __isset = other1211.__isset; return *this; } void WMCreateOrUpdateMappingRequest::printTo(std::ostream& out) const { @@ -28739,11 +29743,11 @@ void swap(WMCreateOrUpdateMappingResponse &a, WMCreateOrUpdateMappingResponse &b (void) b; } -WMCreateOrUpdateMappingResponse::WMCreateOrUpdateMappingResponse(const WMCreateOrUpdateMappingResponse& other1110) { - (void) other1110; +WMCreateOrUpdateMappingResponse::WMCreateOrUpdateMappingResponse(const WMCreateOrUpdateMappingResponse& other1212) { + (void) other1212; } -WMCreateOrUpdateMappingResponse& WMCreateOrUpdateMappingResponse::operator=(const WMCreateOrUpdateMappingResponse& other1111) { - (void) other1111; +WMCreateOrUpdateMappingResponse& WMCreateOrUpdateMappingResponse::operator=(const WMCreateOrUpdateMappingResponse& other1213) { + (void) other1213; return *this; } void WMCreateOrUpdateMappingResponse::printTo(std::ostream& out) const { @@ -28824,13 +29828,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& other1214) { + mapping = other1214.mapping; + __isset = other1214.__isset; } -WMDropMappingRequest& WMDropMappingRequest::operator=(const WMDropMappingRequest& other1113) { - mapping = other1113.mapping; - __isset = other1113.__isset; +WMDropMappingRequest& WMDropMappingRequest::operator=(const WMDropMappingRequest& other1215) { + mapping = other1215.mapping; + __isset = other1215.__isset; return *this; } void WMDropMappingRequest::printTo(std::ostream& out) const { @@ -28889,11 +29893,11 @@ void swap(WMDropMappingResponse &a, WMDropMappingResponse &b) { (void) b; } -WMDropMappingResponse::WMDropMappingResponse(const WMDropMappingResponse& other1114) { - (void) other1114; +WMDropMappingResponse::WMDropMappingResponse(const WMDropMappingResponse& other1216) { + (void) other1216; } -WMDropMappingResponse& WMDropMappingResponse::operator=(const WMDropMappingResponse& other1115) { - (void) other1115; +WMDropMappingResponse& WMDropMappingResponse::operator=(const WMDropMappingResponse& other1217) { + (void) other1217; return *this; } void WMDropMappingResponse::printTo(std::ostream& out) const { @@ -29031,19 +30035,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& other1218) { + resourcePlanName = other1218.resourcePlanName; + triggerName = other1218.triggerName; + poolPath = other1218.poolPath; + drop = other1218.drop; + __isset = other1218.__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& other1219) { + resourcePlanName = other1219.resourcePlanName; + triggerName = other1219.triggerName; + poolPath = other1219.poolPath; + drop = other1219.drop; + __isset = other1219.__isset; return *this; } void WMCreateOrDropTriggerToPoolMappingRequest::printTo(std::ostream& out) const { @@ -29105,11 +30109,11 @@ void swap(WMCreateOrDropTriggerToPoolMappingResponse &a, WMCreateOrDropTriggerTo (void) b; } -WMCreateOrDropTriggerToPoolMappingResponse::WMCreateOrDropTriggerToPoolMappingResponse(const WMCreateOrDropTriggerToPoolMappingResponse& other1118) { - (void) other1118; +WMCreateOrDropTriggerToPoolMappingResponse::WMCreateOrDropTriggerToPoolMappingResponse(const WMCreateOrDropTriggerToPoolMappingResponse& other1220) { + (void) other1220; } -WMCreateOrDropTriggerToPoolMappingResponse& WMCreateOrDropTriggerToPoolMappingResponse::operator=(const WMCreateOrDropTriggerToPoolMappingResponse& other1119) { - (void) other1119; +WMCreateOrDropTriggerToPoolMappingResponse& WMCreateOrDropTriggerToPoolMappingResponse::operator=(const WMCreateOrDropTriggerToPoolMappingResponse& other1221) { + (void) other1221; return *this; } void WMCreateOrDropTriggerToPoolMappingResponse::printTo(std::ostream& out) const { @@ -29184,9 +30188,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 ecast1222; + xfer += iprot->readI32(ecast1222); + this->schemaType = (SchemaType::type)ecast1222; this->__isset.schemaType = true; } else { xfer += iprot->skip(ftype); @@ -29218,9 +30222,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 ecast1223; + xfer += iprot->readI32(ecast1223); + this->compatibility = (SchemaCompatibility::type)ecast1223; this->__isset.compatibility = true; } else { xfer += iprot->skip(ftype); @@ -29228,9 +30232,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 ecast1224; + xfer += iprot->readI32(ecast1224); + this->validationLevel = (SchemaValidation::type)ecast1224; this->__isset.validationLevel = true; } else { xfer += iprot->skip(ftype); @@ -29334,29 +30338,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& other1225) { + schemaType = other1225.schemaType; + name = other1225.name; + catName = other1225.catName; + dbName = other1225.dbName; + compatibility = other1225.compatibility; + validationLevel = other1225.validationLevel; + canEvolve = other1225.canEvolve; + schemaGroup = other1225.schemaGroup; + description = other1225.description; + __isset = other1225.__isset; +} +ISchema& ISchema::operator=(const ISchema& other1226) { + schemaType = other1226.schemaType; + name = other1226.name; + catName = other1226.catName; + dbName = other1226.dbName; + compatibility = other1226.compatibility; + validationLevel = other1226.validationLevel; + canEvolve = other1226.canEvolve; + schemaGroup = other1226.schemaGroup; + description = other1226.description; + __isset = other1226.__isset; return *this; } void ISchema::printTo(std::ostream& out) const { @@ -29478,17 +30482,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& other1227) { + catName = other1227.catName; + dbName = other1227.dbName; + schemaName = other1227.schemaName; + __isset = other1227.__isset; } -ISchemaName& ISchemaName::operator=(const ISchemaName& other1126) { - catName = other1126.catName; - dbName = other1126.dbName; - schemaName = other1126.schemaName; - __isset = other1126.__isset; +ISchemaName& ISchemaName::operator=(const ISchemaName& other1228) { + catName = other1228.catName; + dbName = other1228.dbName; + schemaName = other1228.schemaName; + __isset = other1228.__isset; return *this; } void ISchemaName::printTo(std::ostream& out) const { @@ -29587,15 +30591,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& other1229) { + name = other1229.name; + newSchema = other1229.newSchema; + __isset = other1229.__isset; } -AlterISchemaRequest& AlterISchemaRequest::operator=(const AlterISchemaRequest& other1128) { - name = other1128.name; - newSchema = other1128.newSchema; - __isset = other1128.__isset; +AlterISchemaRequest& AlterISchemaRequest::operator=(const AlterISchemaRequest& other1230) { + name = other1230.name; + newSchema = other1230.newSchema; + __isset = other1230.__isset; return *this; } void AlterISchemaRequest::printTo(std::ostream& out) const { @@ -29706,14 +30710,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 _size1231; + ::apache::thrift::protocol::TType _etype1234; + xfer += iprot->readListBegin(_etype1234, _size1231); + this->cols.resize(_size1231); + uint32_t _i1235; + for (_i1235 = 0; _i1235 < _size1231; ++_i1235) { - xfer += this->cols[_i1133].read(iprot); + xfer += this->cols[_i1235].read(iprot); } xfer += iprot->readListEnd(); } @@ -29724,9 +30728,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 ecast1236; + xfer += iprot->readI32(ecast1236); + this->state = (SchemaVersionState::type)ecast1236; this->__isset.state = true; } else { xfer += iprot->skip(ftype); @@ -29804,10 +30808,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 _iter1237; + for (_iter1237 = this->cols.begin(); _iter1237 != this->cols.end(); ++_iter1237) { - xfer += (*_iter1135).write(oprot); + xfer += (*_iter1237).write(oprot); } xfer += oprot->writeListEnd(); } @@ -29863,31 +30867,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& other1238) { + schema = other1238.schema; + version = other1238.version; + createdAt = other1238.createdAt; + cols = other1238.cols; + state = other1238.state; + description = other1238.description; + schemaText = other1238.schemaText; + fingerprint = other1238.fingerprint; + name = other1238.name; + serDe = other1238.serDe; + __isset = other1238.__isset; +} +SchemaVersion& SchemaVersion::operator=(const SchemaVersion& other1239) { + schema = other1239.schema; + version = other1239.version; + createdAt = other1239.createdAt; + cols = other1239.cols; + state = other1239.state; + description = other1239.description; + schemaText = other1239.schemaText; + fingerprint = other1239.fingerprint; + name = other1239.name; + serDe = other1239.serDe; + __isset = other1239.__isset; return *this; } void SchemaVersion::printTo(std::ostream& out) const { @@ -29993,15 +30997,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& other1240) { + schema = other1240.schema; + version = other1240.version; + __isset = other1240.__isset; } -SchemaVersionDescriptor& SchemaVersionDescriptor::operator=(const SchemaVersionDescriptor& other1139) { - schema = other1139.schema; - version = other1139.version; - __isset = other1139.__isset; +SchemaVersionDescriptor& SchemaVersionDescriptor::operator=(const SchemaVersionDescriptor& other1241) { + schema = other1241.schema; + version = other1241.version; + __isset = other1241.__isset; return *this; } void SchemaVersionDescriptor::printTo(std::ostream& out) const { @@ -30122,17 +31126,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& other1242) { + colName = other1242.colName; + colNamespace = other1242.colNamespace; + type = other1242.type; + __isset = other1242.__isset; } -FindSchemasByColsRqst& FindSchemasByColsRqst::operator=(const FindSchemasByColsRqst& other1141) { - colName = other1141.colName; - colNamespace = other1141.colNamespace; - type = other1141.type; - __isset = other1141.__isset; +FindSchemasByColsRqst& FindSchemasByColsRqst::operator=(const FindSchemasByColsRqst& other1243) { + colName = other1243.colName; + colNamespace = other1243.colNamespace; + type = other1243.type; + __isset = other1243.__isset; return *this; } void FindSchemasByColsRqst::printTo(std::ostream& out) const { @@ -30178,14 +31182,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 _size1244; + ::apache::thrift::protocol::TType _etype1247; + xfer += iprot->readListBegin(_etype1247, _size1244); + this->schemaVersions.resize(_size1244); + uint32_t _i1248; + for (_i1248 = 0; _i1248 < _size1244; ++_i1248) { - xfer += this->schemaVersions[_i1146].read(iprot); + xfer += this->schemaVersions[_i1248].read(iprot); } xfer += iprot->readListEnd(); } @@ -30214,10 +31218,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 _iter1249; + for (_iter1249 = this->schemaVersions.begin(); _iter1249 != this->schemaVersions.end(); ++_iter1249) { - xfer += (*_iter1147).write(oprot); + xfer += (*_iter1249).write(oprot); } xfer += oprot->writeListEnd(); } @@ -30234,13 +31238,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& other1250) { + schemaVersions = other1250.schemaVersions; + __isset = other1250.__isset; } -FindSchemasByColsResp& FindSchemasByColsResp::operator=(const FindSchemasByColsResp& other1149) { - schemaVersions = other1149.schemaVersions; - __isset = other1149.__isset; +FindSchemasByColsResp& FindSchemasByColsResp::operator=(const FindSchemasByColsResp& other1251) { + schemaVersions = other1251.schemaVersions; + __isset = other1251.__isset; return *this; } void FindSchemasByColsResp::printTo(std::ostream& out) const { @@ -30337,15 +31341,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& other1252) { + schemaVersion = other1252.schemaVersion; + serdeName = other1252.serdeName; + __isset = other1252.__isset; } -MapSchemaVersionToSerdeRequest& MapSchemaVersionToSerdeRequest::operator=(const MapSchemaVersionToSerdeRequest& other1151) { - schemaVersion = other1151.schemaVersion; - serdeName = other1151.serdeName; - __isset = other1151.__isset; +MapSchemaVersionToSerdeRequest& MapSchemaVersionToSerdeRequest::operator=(const MapSchemaVersionToSerdeRequest& other1253) { + schemaVersion = other1253.schemaVersion; + serdeName = other1253.serdeName; + __isset = other1253.__isset; return *this; } void MapSchemaVersionToSerdeRequest::printTo(std::ostream& out) const { @@ -30400,9 +31404,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 ecast1254; + xfer += iprot->readI32(ecast1254); + this->state = (SchemaVersionState::type)ecast1254; this->__isset.state = true; } else { xfer += iprot->skip(ftype); @@ -30445,15 +31449,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& other1255) { + schemaVersion = other1255.schemaVersion; + state = other1255.state; + __isset = other1255.__isset; } -SetSchemaVersionStateRequest& SetSchemaVersionStateRequest::operator=(const SetSchemaVersionStateRequest& other1154) { - schemaVersion = other1154.schemaVersion; - state = other1154.state; - __isset = other1154.__isset; +SetSchemaVersionStateRequest& SetSchemaVersionStateRequest::operator=(const SetSchemaVersionStateRequest& other1256) { + schemaVersion = other1256.schemaVersion; + state = other1256.state; + __isset = other1256.__isset; return *this; } void SetSchemaVersionStateRequest::printTo(std::ostream& out) const { @@ -30534,13 +31538,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& other1257) { + serdeName = other1257.serdeName; + __isset = other1257.__isset; } -GetSerdeRequest& GetSerdeRequest::operator=(const GetSerdeRequest& other1156) { - serdeName = other1156.serdeName; - __isset = other1156.__isset; +GetSerdeRequest& GetSerdeRequest::operator=(const GetSerdeRequest& other1258) { + serdeName = other1258.serdeName; + __isset = other1258.__isset; return *this; } void GetSerdeRequest::printTo(std::ostream& out) const { @@ -30620,13 +31624,13 @@ void swap(MetaException &a, MetaException &b) { swap(a.__isset, b.__isset); } -MetaException::MetaException(const MetaException& other1157) : TException() { - message = other1157.message; - __isset = other1157.__isset; +MetaException::MetaException(const MetaException& other1259) : TException() { + message = other1259.message; + __isset = other1259.__isset; } -MetaException& MetaException::operator=(const MetaException& other1158) { - message = other1158.message; - __isset = other1158.__isset; +MetaException& MetaException::operator=(const MetaException& other1260) { + message = other1260.message; + __isset = other1260.__isset; return *this; } void MetaException::printTo(std::ostream& out) const { @@ -30717,13 +31721,13 @@ void swap(UnknownTableException &a, UnknownTableException &b) { swap(a.__isset, b.__isset); } -UnknownTableException::UnknownTableException(const UnknownTableException& other1159) : TException() { - message = other1159.message; - __isset = other1159.__isset; +UnknownTableException::UnknownTableException(const UnknownTableException& other1261) : TException() { + message = other1261.message; + __isset = other1261.__isset; } -UnknownTableException& UnknownTableException::operator=(const UnknownTableException& other1160) { - message = other1160.message; - __isset = other1160.__isset; +UnknownTableException& UnknownTableException::operator=(const UnknownTableException& other1262) { + message = other1262.message; + __isset = other1262.__isset; return *this; } void UnknownTableException::printTo(std::ostream& out) const { @@ -30814,13 +31818,13 @@ void swap(UnknownDBException &a, UnknownDBException &b) { swap(a.__isset, b.__isset); } -UnknownDBException::UnknownDBException(const UnknownDBException& other1161) : TException() { - message = other1161.message; - __isset = other1161.__isset; +UnknownDBException::UnknownDBException(const UnknownDBException& other1263) : TException() { + message = other1263.message; + __isset = other1263.__isset; } -UnknownDBException& UnknownDBException::operator=(const UnknownDBException& other1162) { - message = other1162.message; - __isset = other1162.__isset; +UnknownDBException& UnknownDBException::operator=(const UnknownDBException& other1264) { + message = other1264.message; + __isset = other1264.__isset; return *this; } void UnknownDBException::printTo(std::ostream& out) const { @@ -30911,13 +31915,13 @@ void swap(AlreadyExistsException &a, AlreadyExistsException &b) { swap(a.__isset, b.__isset); } -AlreadyExistsException::AlreadyExistsException(const AlreadyExistsException& other1163) : TException() { - message = other1163.message; - __isset = other1163.__isset; +AlreadyExistsException::AlreadyExistsException(const AlreadyExistsException& other1265) : TException() { + message = other1265.message; + __isset = other1265.__isset; } -AlreadyExistsException& AlreadyExistsException::operator=(const AlreadyExistsException& other1164) { - message = other1164.message; - __isset = other1164.__isset; +AlreadyExistsException& AlreadyExistsException::operator=(const AlreadyExistsException& other1266) { + message = other1266.message; + __isset = other1266.__isset; return *this; } void AlreadyExistsException::printTo(std::ostream& out) const { @@ -31008,13 +32012,13 @@ void swap(InvalidPartitionException &a, InvalidPartitionException &b) { swap(a.__isset, b.__isset); } -InvalidPartitionException::InvalidPartitionException(const InvalidPartitionException& other1165) : TException() { - message = other1165.message; - __isset = other1165.__isset; +InvalidPartitionException::InvalidPartitionException(const InvalidPartitionException& other1267) : TException() { + message = other1267.message; + __isset = other1267.__isset; } -InvalidPartitionException& InvalidPartitionException::operator=(const InvalidPartitionException& other1166) { - message = other1166.message; - __isset = other1166.__isset; +InvalidPartitionException& InvalidPartitionException::operator=(const InvalidPartitionException& other1268) { + message = other1268.message; + __isset = other1268.__isset; return *this; } void InvalidPartitionException::printTo(std::ostream& out) const { @@ -31105,13 +32109,13 @@ void swap(UnknownPartitionException &a, UnknownPartitionException &b) { swap(a.__isset, b.__isset); } -UnknownPartitionException::UnknownPartitionException(const UnknownPartitionException& other1167) : TException() { - message = other1167.message; - __isset = other1167.__isset; +UnknownPartitionException::UnknownPartitionException(const UnknownPartitionException& other1269) : TException() { + message = other1269.message; + __isset = other1269.__isset; } -UnknownPartitionException& UnknownPartitionException::operator=(const UnknownPartitionException& other1168) { - message = other1168.message; - __isset = other1168.__isset; +UnknownPartitionException& UnknownPartitionException::operator=(const UnknownPartitionException& other1270) { + message = other1270.message; + __isset = other1270.__isset; return *this; } void UnknownPartitionException::printTo(std::ostream& out) const { @@ -31202,13 +32206,13 @@ void swap(InvalidObjectException &a, InvalidObjectException &b) { swap(a.__isset, b.__isset); } -InvalidObjectException::InvalidObjectException(const InvalidObjectException& other1169) : TException() { - message = other1169.message; - __isset = other1169.__isset; +InvalidObjectException::InvalidObjectException(const InvalidObjectException& other1271) : TException() { + message = other1271.message; + __isset = other1271.__isset; } -InvalidObjectException& InvalidObjectException::operator=(const InvalidObjectException& other1170) { - message = other1170.message; - __isset = other1170.__isset; +InvalidObjectException& InvalidObjectException::operator=(const InvalidObjectException& other1272) { + message = other1272.message; + __isset = other1272.__isset; return *this; } void InvalidObjectException::printTo(std::ostream& out) const { @@ -31299,13 +32303,13 @@ void swap(NoSuchObjectException &a, NoSuchObjectException &b) { swap(a.__isset, b.__isset); } -NoSuchObjectException::NoSuchObjectException(const NoSuchObjectException& other1171) : TException() { - message = other1171.message; - __isset = other1171.__isset; +NoSuchObjectException::NoSuchObjectException(const NoSuchObjectException& other1273) : TException() { + message = other1273.message; + __isset = other1273.__isset; } -NoSuchObjectException& NoSuchObjectException::operator=(const NoSuchObjectException& other1172) { - message = other1172.message; - __isset = other1172.__isset; +NoSuchObjectException& NoSuchObjectException::operator=(const NoSuchObjectException& other1274) { + message = other1274.message; + __isset = other1274.__isset; return *this; } void NoSuchObjectException::printTo(std::ostream& out) const { @@ -31396,13 +32400,13 @@ void swap(InvalidOperationException &a, InvalidOperationException &b) { swap(a.__isset, b.__isset); } -InvalidOperationException::InvalidOperationException(const InvalidOperationException& other1173) : TException() { - message = other1173.message; - __isset = other1173.__isset; +InvalidOperationException::InvalidOperationException(const InvalidOperationException& other1275) : TException() { + message = other1275.message; + __isset = other1275.__isset; } -InvalidOperationException& InvalidOperationException::operator=(const InvalidOperationException& other1174) { - message = other1174.message; - __isset = other1174.__isset; +InvalidOperationException& InvalidOperationException::operator=(const InvalidOperationException& other1276) { + message = other1276.message; + __isset = other1276.__isset; return *this; } void InvalidOperationException::printTo(std::ostream& out) const { @@ -31493,13 +32497,13 @@ void swap(ConfigValSecurityException &a, ConfigValSecurityException &b) { swap(a.__isset, b.__isset); } -ConfigValSecurityException::ConfigValSecurityException(const ConfigValSecurityException& other1175) : TException() { - message = other1175.message; - __isset = other1175.__isset; +ConfigValSecurityException::ConfigValSecurityException(const ConfigValSecurityException& other1277) : TException() { + message = other1277.message; + __isset = other1277.__isset; } -ConfigValSecurityException& ConfigValSecurityException::operator=(const ConfigValSecurityException& other1176) { - message = other1176.message; - __isset = other1176.__isset; +ConfigValSecurityException& ConfigValSecurityException::operator=(const ConfigValSecurityException& other1278) { + message = other1278.message; + __isset = other1278.__isset; return *this; } void ConfigValSecurityException::printTo(std::ostream& out) const { @@ -31590,13 +32594,13 @@ void swap(InvalidInputException &a, InvalidInputException &b) { swap(a.__isset, b.__isset); } -InvalidInputException::InvalidInputException(const InvalidInputException& other1177) : TException() { - message = other1177.message; - __isset = other1177.__isset; +InvalidInputException::InvalidInputException(const InvalidInputException& other1279) : TException() { + message = other1279.message; + __isset = other1279.__isset; } -InvalidInputException& InvalidInputException::operator=(const InvalidInputException& other1178) { - message = other1178.message; - __isset = other1178.__isset; +InvalidInputException& InvalidInputException::operator=(const InvalidInputException& other1280) { + message = other1280.message; + __isset = other1280.__isset; return *this; } void InvalidInputException::printTo(std::ostream& out) const { @@ -31687,13 +32691,13 @@ void swap(NoSuchTxnException &a, NoSuchTxnException &b) { swap(a.__isset, b.__isset); } -NoSuchTxnException::NoSuchTxnException(const NoSuchTxnException& other1179) : TException() { - message = other1179.message; - __isset = other1179.__isset; +NoSuchTxnException::NoSuchTxnException(const NoSuchTxnException& other1281) : TException() { + message = other1281.message; + __isset = other1281.__isset; } -NoSuchTxnException& NoSuchTxnException::operator=(const NoSuchTxnException& other1180) { - message = other1180.message; - __isset = other1180.__isset; +NoSuchTxnException& NoSuchTxnException::operator=(const NoSuchTxnException& other1282) { + message = other1282.message; + __isset = other1282.__isset; return *this; } void NoSuchTxnException::printTo(std::ostream& out) const { @@ -31784,13 +32788,13 @@ void swap(TxnAbortedException &a, TxnAbortedException &b) { swap(a.__isset, b.__isset); } -TxnAbortedException::TxnAbortedException(const TxnAbortedException& other1181) : TException() { - message = other1181.message; - __isset = other1181.__isset; +TxnAbortedException::TxnAbortedException(const TxnAbortedException& other1283) : TException() { + message = other1283.message; + __isset = other1283.__isset; } -TxnAbortedException& TxnAbortedException::operator=(const TxnAbortedException& other1182) { - message = other1182.message; - __isset = other1182.__isset; +TxnAbortedException& TxnAbortedException::operator=(const TxnAbortedException& other1284) { + message = other1284.message; + __isset = other1284.__isset; return *this; } void TxnAbortedException::printTo(std::ostream& out) const { @@ -31881,13 +32885,13 @@ void swap(TxnOpenException &a, TxnOpenException &b) { swap(a.__isset, b.__isset); } -TxnOpenException::TxnOpenException(const TxnOpenException& other1183) : TException() { - message = other1183.message; - __isset = other1183.__isset; +TxnOpenException::TxnOpenException(const TxnOpenException& other1285) : TException() { + message = other1285.message; + __isset = other1285.__isset; } -TxnOpenException& TxnOpenException::operator=(const TxnOpenException& other1184) { - message = other1184.message; - __isset = other1184.__isset; +TxnOpenException& TxnOpenException::operator=(const TxnOpenException& other1286) { + message = other1286.message; + __isset = other1286.__isset; return *this; } void TxnOpenException::printTo(std::ostream& out) const { @@ -31978,13 +32982,13 @@ void swap(NoSuchLockException &a, NoSuchLockException &b) { swap(a.__isset, b.__isset); } -NoSuchLockException::NoSuchLockException(const NoSuchLockException& other1185) : TException() { - message = other1185.message; - __isset = other1185.__isset; +NoSuchLockException::NoSuchLockException(const NoSuchLockException& other1287) : TException() { + message = other1287.message; + __isset = other1287.__isset; } -NoSuchLockException& NoSuchLockException::operator=(const NoSuchLockException& other1186) { - message = other1186.message; - __isset = other1186.__isset; +NoSuchLockException& NoSuchLockException::operator=(const NoSuchLockException& other1288) { + message = other1288.message; + __isset = other1288.__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 2c95007daa..1d6b3ddd83 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; @@ -6909,8 +6915,15 @@ inline std::ostream& operator<<(std::ostream& out, const AbortTxnsRequest& obj) } typedef struct _CommitTxnRequest__isset { - _CommitTxnRequest__isset() : replPolicy(false) {} + _CommitTxnRequest__isset() : replPolicy(false), databases(false), tables(false), partitions(false), writeIds(false), tableObjs(false), partitionObjs(false), files(false) {} bool replPolicy :1; + bool databases :1; + bool tables :1; + bool partitions :1; + bool writeIds :1; + bool tableObjs :1; + bool partitionObjs :1; + bool files :1; } _CommitTxnRequest__isset; class CommitTxnRequest { @@ -6924,6 +6937,13 @@ class CommitTxnRequest { virtual ~CommitTxnRequest() throw(); int64_t txnid; std::string replPolicy; + std::vector databases; + std::vector tables; + std::vector partitions; + std::vector writeIds; + std::vector tableObjs; + std::vector partitionObjs; + std::vector files; _CommitTxnRequest__isset __isset; @@ -6931,6 +6951,20 @@ class CommitTxnRequest { void __set_replPolicy(const std::string& val); + void __set_databases(const std::vector & val); + + void __set_tables(const std::vector & val); + + void __set_partitions(const std::vector & val); + + void __set_writeIds(const std::vector & val); + + void __set_tableObjs(const std::vector & val); + + void __set_partitionObjs(const std::vector & val); + + void __set_files(const std::vector & val); + bool operator == (const CommitTxnRequest & rhs) const { if (!(txnid == rhs.txnid)) @@ -6939,6 +6973,34 @@ class CommitTxnRequest { return false; else if (__isset.replPolicy && !(replPolicy == rhs.replPolicy)) return false; + if (__isset.databases != rhs.__isset.databases) + return false; + else if (__isset.databases && !(databases == rhs.databases)) + return false; + if (__isset.tables != rhs.__isset.tables) + return false; + else if (__isset.tables && !(tables == rhs.tables)) + return false; + if (__isset.partitions != rhs.__isset.partitions) + return false; + else if (__isset.partitions && !(partitions == rhs.partitions)) + return false; + if (__isset.writeIds != rhs.__isset.writeIds) + return false; + else if (__isset.writeIds && !(writeIds == rhs.writeIds)) + return false; + if (__isset.tableObjs != rhs.__isset.tableObjs) + return false; + else if (__isset.tableObjs && !(tableObjs == rhs.tableObjs)) + return false; + if (__isset.partitionObjs != rhs.__isset.partitionObjs) + return false; + else if (__isset.partitionObjs && !(partitionObjs == rhs.partitionObjs)) + return false; + if (__isset.files != rhs.__isset.files) + return false; + else if (__isset.files && !(files == rhs.files)) + return false; return true; } bool operator != (const CommitTxnRequest &rhs) const { @@ -6961,6 +7023,107 @@ inline std::ostream& operator<<(std::ostream& out, const CommitTxnRequest& obj) return out; } +typedef struct _WriteEventInfo__isset { + _WriteEventInfo__isset() : databases(false), tables(false), partitions(false), writeIds(false), tableObjs(false), files(false), partitionObjs(false) {} + bool databases :1; + bool tables :1; + bool partitions :1; + bool writeIds :1; + bool tableObjs :1; + bool files :1; + bool partitionObjs :1; +} _WriteEventInfo__isset; + +class WriteEventInfo { + public: + + WriteEventInfo(const WriteEventInfo&); + WriteEventInfo& operator=(const WriteEventInfo&); + WriteEventInfo() : txnid(0) { + } + + virtual ~WriteEventInfo() throw(); + int64_t txnid; + std::vector databases; + std::vector tables; + std::vector partitions; + std::vector writeIds; + std::vector tableObjs; + std::vector files; + std::vector partitionObjs; + + _WriteEventInfo__isset __isset; + + void __set_txnid(const int64_t val); + + void __set_databases(const std::vector & val); + + void __set_tables(const std::vector & val); + + void __set_partitions(const std::vector & val); + + void __set_writeIds(const std::vector & val); + + void __set_tableObjs(const std::vector & val); + + void __set_files(const std::vector & val); + + void __set_partitionObjs(const std::vector & val); + + bool operator == (const WriteEventInfo & rhs) const + { + if (!(txnid == rhs.txnid)) + return false; + if (__isset.databases != rhs.__isset.databases) + return false; + else if (__isset.databases && !(databases == rhs.databases)) + return false; + if (__isset.tables != rhs.__isset.tables) + return false; + else if (__isset.tables && !(tables == rhs.tables)) + return false; + if (__isset.partitions != rhs.__isset.partitions) + return false; + else if (__isset.partitions && !(partitions == rhs.partitions)) + return false; + if (__isset.writeIds != rhs.__isset.writeIds) + return false; + else if (__isset.writeIds && !(writeIds == rhs.writeIds)) + return false; + if (__isset.tableObjs != rhs.__isset.tableObjs) + return false; + else if (__isset.tableObjs && !(tableObjs == rhs.tableObjs)) + return false; + if (__isset.files != rhs.__isset.files) + return false; + else if (__isset.files && !(files == rhs.files)) + return false; + if (__isset.partitionObjs != rhs.__isset.partitionObjs) + return false; + else if (__isset.partitionObjs && !(partitionObjs == rhs.partitionObjs)) + 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: @@ -8886,9 +9049,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 { @@ -8903,6 +9067,7 @@ class InsertEventRequestData { bool replace; std::vector filesAdded; std::vector filesAddedChecksum; + std::vector subDirectoryList; _InsertEventRequestData__isset __isset; @@ -8912,6 +9077,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) @@ -8924,6 +9091,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 { @@ -9109,6 +9280,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..62a1f2bbaf 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 _list804 = iprot.readListBegin(); + struct.partitionnames = new ArrayList(_list804.size); + String _elem805; + for (int _i806 = 0; _i806 < _list804.size; ++_i806) { - _elem693 = iprot.readString(); - struct.partitionnames.add(_elem693); + _elem805 = iprot.readString(); + struct.partitionnames.add(_elem805); } 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 _iter807 : struct.partitionnames) { - oprot.writeString(_iter695); + oprot.writeString(_iter807); } 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 _iter808 : struct.partitionnames) { - oprot.writeString(_iter696); + oprot.writeString(_iter808); } } 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 _list809 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionnames = new ArrayList(_list809.size); + String _elem810; + for (int _i811 = 0; _i811 < _list809.size; ++_i811) { - _elem698 = iprot.readString(); - struct.partitionnames.add(_elem698); + _elem810 = iprot.readString(); + struct.partitionnames.add(_elem810); } } 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..9e02b3fe74 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 _list730 = iprot.readListBegin(); + struct.txnIds = new ArrayList(_list730.size); + long _elem731; + for (int _i732 = 0; _i732 < _list730.size; ++_i732) { - _elem619 = iprot.readI64(); - struct.txnIds.add(_elem619); + _elem731 = iprot.readI64(); + struct.txnIds.add(_elem731); } 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 _list733 = iprot.readListBegin(); + struct.srcTxnToWriteIdList = new ArrayList(_list733.size); + TxnToWriteId _elem734; + for (int _i735 = 0; _i735 < _list733.size; ++_i735) { - _elem622 = new TxnToWriteId(); - _elem622.read(iprot); - struct.srcTxnToWriteIdList.add(_elem622); + _elem734 = new TxnToWriteId(); + _elem734.read(iprot); + struct.srcTxnToWriteIdList.add(_elem734); } 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 _iter736 : struct.txnIds) { - oprot.writeI64(_iter624); + oprot.writeI64(_iter736); } 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 _iter737 : struct.srcTxnToWriteIdList) { - _iter625.write(oprot); + _iter737.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 _iter738 : struct.txnIds) { - oprot.writeI64(_iter626); + oprot.writeI64(_iter738); } } } @@ -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 _iter739 : struct.srcTxnToWriteIdList) { - _iter627.write(oprot); + _iter739.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 _list740 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.txnIds = new ArrayList(_list740.size); + long _elem741; + for (int _i742 = 0; _i742 < _list740.size; ++_i742) { - _elem629 = iprot.readI64(); - struct.txnIds.add(_elem629); + _elem741 = iprot.readI64(); + struct.txnIds.add(_elem741); } } 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 _list743 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.srcTxnToWriteIdList = new ArrayList(_list743.size); + TxnToWriteId _elem744; + for (int _i745 = 0; _i745 < _list743.size; ++_i745) { - _elem632 = new TxnToWriteId(); - _elem632.read(iprot); - struct.srcTxnToWriteIdList.add(_elem632); + _elem744 = new TxnToWriteId(); + _elem744.read(iprot); + struct.srcTxnToWriteIdList.add(_elem744); } } 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..25d9d5955f 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 _list746 = iprot.readListBegin(); + struct.txnToWriteIds = new ArrayList(_list746.size); + TxnToWriteId _elem747; + for (int _i748 = 0; _i748 < _list746.size; ++_i748) { - _elem635 = new TxnToWriteId(); - _elem635.read(iprot); - struct.txnToWriteIds.add(_elem635); + _elem747 = new TxnToWriteId(); + _elem747.read(iprot); + struct.txnToWriteIds.add(_elem747); } 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 _iter749 : struct.txnToWriteIds) { - _iter637.write(oprot); + _iter749.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 _iter750 : struct.txnToWriteIds) { - _iter638.write(oprot); + _iter750.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 _list751 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.txnToWriteIds = new ArrayList(_list751.size); + TxnToWriteId _elem752; + for (int _i753 = 0; _i753 < _list751.size; ++_i753) { - _elem640 = new TxnToWriteId(); - _elem640.read(iprot); - struct.txnToWriteIds.add(_elem640); + _elem752 = new TxnToWriteId(); + _elem752.read(iprot); + struct.txnToWriteIds.add(_elem752); } } 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..cc758f6fd5 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 _list920 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list920.size); + long _elem921; + for (int _i922 = 0; _i922 < _list920.size; ++_i922) { - _elem793 = iprot.readI64(); - struct.fileIds.add(_elem793); + _elem921 = iprot.readI64(); + struct.fileIds.add(_elem921); } 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 _iter923 : struct.fileIds) { - oprot.writeI64(_iter795); + oprot.writeI64(_iter923); } 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 _iter924 : struct.fileIds) { - oprot.writeI64(_iter796); + oprot.writeI64(_iter924); } } } @@ -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 _list925 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list925.size); + long _elem926; + for (int _i927 = 0; _i927 < _list925.size; ++_i927) { - _elem798 = iprot.readI64(); - struct.fileIds.add(_elem798); + _elem926 = iprot.readI64(); + struct.fileIds.add(_elem926); } } 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..fdd1422e48 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 _list936 = iprot.readListBegin(); + struct.values = new ArrayList(_list936.size); + ClientCapability _elem937; + for (int _i938 = 0; _i938 < _list936.size; ++_i938) { - _elem809 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); - struct.values.add(_elem809); + _elem937 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); + struct.values.add(_elem937); } 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 _iter939 : struct.values) { - oprot.writeI32(_iter811.getValue()); + oprot.writeI32(_iter939.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 _iter940 : struct.values) { - oprot.writeI32(_iter812.getValue()); + oprot.writeI32(_iter940.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 _list941 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); + struct.values = new ArrayList(_list941.size); + ClientCapability _elem942; + for (int _i943 = 0; _i943 < _list941.size; ++_i943) { - _elem814 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); - struct.values.add(_elem814); + _elem942 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); + struct.values.add(_elem942); } } 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..f4a66ede56 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,13 @@ 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 DATABASES_FIELD_DESC = new org.apache.thrift.protocol.TField("databases", org.apache.thrift.protocol.TType.LIST, (short)3); + private static final org.apache.thrift.protocol.TField TABLES_FIELD_DESC = new org.apache.thrift.protocol.TField("tables", org.apache.thrift.protocol.TType.LIST, (short)4); + private static final org.apache.thrift.protocol.TField PARTITIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("partitions", org.apache.thrift.protocol.TType.LIST, (short)5); + private static final org.apache.thrift.protocol.TField WRITE_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("writeIds", org.apache.thrift.protocol.TType.LIST, (short)6); + private static final org.apache.thrift.protocol.TField TABLE_OBJS_FIELD_DESC = new org.apache.thrift.protocol.TField("tableObjs", org.apache.thrift.protocol.TType.LIST, (short)7); + private static final org.apache.thrift.protocol.TField PARTITION_OBJS_FIELD_DESC = new org.apache.thrift.protocol.TField("partitionObjs", org.apache.thrift.protocol.TType.LIST, (short)8); + private static final org.apache.thrift.protocol.TField FILES_FIELD_DESC = new org.apache.thrift.protocol.TField("files", org.apache.thrift.protocol.TType.LIST, (short)9); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -49,11 +56,25 @@ private long txnid; // required private String replPolicy; // optional + private List databases; // optional + private List tables; // optional + private List partitions; // optional + private List writeIds; // optional + private List tableObjs; // optional + private List partitionObjs; // optional + private List files; // 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"), + DATABASES((short)3, "databases"), + TABLES((short)4, "tables"), + PARTITIONS((short)5, "partitions"), + WRITE_IDS((short)6, "writeIds"), + TABLE_OBJS((short)7, "tableObjs"), + PARTITION_OBJS((short)8, "partitionObjs"), + FILES((short)9, "files"); private static final Map byName = new HashMap(); @@ -72,6 +93,20 @@ public static _Fields findByThriftId(int fieldId) { return TXNID; case 2: // REPL_POLICY return REPL_POLICY; + case 3: // DATABASES + return DATABASES; + case 4: // TABLES + return TABLES; + case 5: // PARTITIONS + return PARTITIONS; + case 6: // WRITE_IDS + return WRITE_IDS; + case 7: // TABLE_OBJS + return TABLE_OBJS; + case 8: // PARTITION_OBJS + return PARTITION_OBJS; + case 9: // FILES + return FILES; default: return null; } @@ -114,7 +149,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.DATABASES,_Fields.TABLES,_Fields.PARTITIONS,_Fields.WRITE_IDS,_Fields.TABLE_OBJS,_Fields.PARTITION_OBJS,_Fields.FILES}; 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 +157,27 @@ 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.DATABASES, new org.apache.thrift.meta_data.FieldMetaData("databases", 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.TABLES, new org.apache.thrift.meta_data.FieldMetaData("tables", 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.PARTITIONS, new org.apache.thrift.meta_data.FieldMetaData("partitions", 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.WRITE_IDS, new org.apache.thrift.meta_data.FieldMetaData("writeIds", 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.I64)))); + tmpMap.put(_Fields.TABLE_OBJS, new org.apache.thrift.meta_data.FieldMetaData("tableObjs", 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.PARTITION_OBJS, new org.apache.thrift.meta_data.FieldMetaData("partitionObjs", 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.FILES, new org.apache.thrift.meta_data.FieldMetaData("files", 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(CommitTxnRequest.class, metaDataMap); } @@ -146,6 +202,34 @@ public CommitTxnRequest(CommitTxnRequest other) { if (other.isSetReplPolicy()) { this.replPolicy = other.replPolicy; } + if (other.isSetDatabases()) { + List __this__databases = new ArrayList(other.databases); + this.databases = __this__databases; + } + if (other.isSetTables()) { + List __this__tables = new ArrayList(other.tables); + this.tables = __this__tables; + } + if (other.isSetPartitions()) { + List __this__partitions = new ArrayList(other.partitions); + this.partitions = __this__partitions; + } + if (other.isSetWriteIds()) { + List __this__writeIds = new ArrayList(other.writeIds); + this.writeIds = __this__writeIds; + } + if (other.isSetTableObjs()) { + List __this__tableObjs = new ArrayList(other.tableObjs); + this.tableObjs = __this__tableObjs; + } + if (other.isSetPartitionObjs()) { + List __this__partitionObjs = new ArrayList(other.partitionObjs); + this.partitionObjs = __this__partitionObjs; + } + if (other.isSetFiles()) { + List __this__files = new ArrayList(other.files); + this.files = __this__files; + } } public CommitTxnRequest deepCopy() { @@ -157,6 +241,13 @@ public void clear() { setTxnidIsSet(false); this.txnid = 0; this.replPolicy = null; + this.databases = null; + this.tables = null; + this.partitions = null; + this.writeIds = null; + this.tableObjs = null; + this.partitionObjs = null; + this.files = null; } public long getTxnid() { @@ -204,6 +295,272 @@ public void setReplPolicyIsSet(boolean value) { } } + public int getDatabasesSize() { + return (this.databases == null) ? 0 : this.databases.size(); + } + + public java.util.Iterator getDatabasesIterator() { + return (this.databases == null) ? null : this.databases.iterator(); + } + + public void addToDatabases(String elem) { + if (this.databases == null) { + this.databases = new ArrayList(); + } + this.databases.add(elem); + } + + public List getDatabases() { + return this.databases; + } + + public void setDatabases(List databases) { + this.databases = databases; + } + + public void unsetDatabases() { + this.databases = null; + } + + /** Returns true if field databases is set (has been assigned a value) and false otherwise */ + public boolean isSetDatabases() { + return this.databases != null; + } + + public void setDatabasesIsSet(boolean value) { + if (!value) { + this.databases = null; + } + } + + public int getTablesSize() { + return (this.tables == null) ? 0 : this.tables.size(); + } + + public java.util.Iterator getTablesIterator() { + return (this.tables == null) ? null : this.tables.iterator(); + } + + public void addToTables(String elem) { + if (this.tables == null) { + this.tables = new ArrayList(); + } + this.tables.add(elem); + } + + public List getTables() { + return this.tables; + } + + public void setTables(List tables) { + this.tables = tables; + } + + public void unsetTables() { + this.tables = null; + } + + /** Returns true if field tables is set (has been assigned a value) and false otherwise */ + public boolean isSetTables() { + return this.tables != null; + } + + public void setTablesIsSet(boolean value) { + if (!value) { + this.tables = null; + } + } + + public int getPartitionsSize() { + return (this.partitions == null) ? 0 : this.partitions.size(); + } + + public java.util.Iterator getPartitionsIterator() { + return (this.partitions == null) ? null : this.partitions.iterator(); + } + + public void addToPartitions(String elem) { + if (this.partitions == null) { + this.partitions = new ArrayList(); + } + this.partitions.add(elem); + } + + public List getPartitions() { + return this.partitions; + } + + public void setPartitions(List partitions) { + this.partitions = partitions; + } + + public void unsetPartitions() { + this.partitions = null; + } + + /** Returns true if field partitions is set (has been assigned a value) and false otherwise */ + public boolean isSetPartitions() { + return this.partitions != null; + } + + public void setPartitionsIsSet(boolean value) { + if (!value) { + this.partitions = null; + } + } + + public int getWriteIdsSize() { + return (this.writeIds == null) ? 0 : this.writeIds.size(); + } + + public java.util.Iterator getWriteIdsIterator() { + return (this.writeIds == null) ? null : this.writeIds.iterator(); + } + + public void addToWriteIds(long elem) { + if (this.writeIds == null) { + this.writeIds = new ArrayList(); + } + this.writeIds.add(elem); + } + + public List getWriteIds() { + return this.writeIds; + } + + public void setWriteIds(List writeIds) { + this.writeIds = writeIds; + } + + public void unsetWriteIds() { + this.writeIds = null; + } + + /** Returns true if field writeIds is set (has been assigned a value) and false otherwise */ + public boolean isSetWriteIds() { + return this.writeIds != null; + } + + public void setWriteIdsIsSet(boolean value) { + if (!value) { + this.writeIds = null; + } + } + + public int getTableObjsSize() { + return (this.tableObjs == null) ? 0 : this.tableObjs.size(); + } + + public java.util.Iterator getTableObjsIterator() { + return (this.tableObjs == null) ? null : this.tableObjs.iterator(); + } + + public void addToTableObjs(String elem) { + if (this.tableObjs == null) { + this.tableObjs = new ArrayList(); + } + this.tableObjs.add(elem); + } + + public List getTableObjs() { + return this.tableObjs; + } + + public void setTableObjs(List tableObjs) { + this.tableObjs = tableObjs; + } + + public void unsetTableObjs() { + this.tableObjs = null; + } + + /** Returns true if field tableObjs is set (has been assigned a value) and false otherwise */ + public boolean isSetTableObjs() { + return this.tableObjs != null; + } + + public void setTableObjsIsSet(boolean value) { + if (!value) { + this.tableObjs = null; + } + } + + public int getPartitionObjsSize() { + return (this.partitionObjs == null) ? 0 : this.partitionObjs.size(); + } + + public java.util.Iterator getPartitionObjsIterator() { + return (this.partitionObjs == null) ? null : this.partitionObjs.iterator(); + } + + public void addToPartitionObjs(String elem) { + if (this.partitionObjs == null) { + this.partitionObjs = new ArrayList(); + } + this.partitionObjs.add(elem); + } + + public List getPartitionObjs() { + return this.partitionObjs; + } + + public void setPartitionObjs(List partitionObjs) { + this.partitionObjs = partitionObjs; + } + + public void unsetPartitionObjs() { + this.partitionObjs = null; + } + + /** Returns true if field partitionObjs is set (has been assigned a value) and false otherwise */ + public boolean isSetPartitionObjs() { + return this.partitionObjs != null; + } + + public void setPartitionObjsIsSet(boolean value) { + if (!value) { + this.partitionObjs = null; + } + } + + public int getFilesSize() { + return (this.files == null) ? 0 : this.files.size(); + } + + public java.util.Iterator getFilesIterator() { + return (this.files == null) ? null : this.files.iterator(); + } + + public void addToFiles(String elem) { + if (this.files == null) { + this.files = new ArrayList(); + } + this.files.add(elem); + } + + public List getFiles() { + return this.files; + } + + public void setFiles(List 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 void setFieldValue(_Fields field, Object value) { switch (field) { case TXNID: @@ -222,6 +579,62 @@ public void setFieldValue(_Fields field, Object value) { } break; + case DATABASES: + if (value == null) { + unsetDatabases(); + } else { + setDatabases((List)value); + } + break; + + case TABLES: + if (value == null) { + unsetTables(); + } else { + setTables((List)value); + } + break; + + case PARTITIONS: + if (value == null) { + unsetPartitions(); + } else { + setPartitions((List)value); + } + break; + + case WRITE_IDS: + if (value == null) { + unsetWriteIds(); + } else { + setWriteIds((List)value); + } + break; + + case TABLE_OBJS: + if (value == null) { + unsetTableObjs(); + } else { + setTableObjs((List)value); + } + break; + + case PARTITION_OBJS: + if (value == null) { + unsetPartitionObjs(); + } else { + setPartitionObjs((List)value); + } + break; + + case FILES: + if (value == null) { + unsetFiles(); + } else { + setFiles((List)value); + } + break; + } } @@ -233,6 +646,27 @@ public Object getFieldValue(_Fields field) { case REPL_POLICY: return getReplPolicy(); + case DATABASES: + return getDatabases(); + + case TABLES: + return getTables(); + + case PARTITIONS: + return getPartitions(); + + case WRITE_IDS: + return getWriteIds(); + + case TABLE_OBJS: + return getTableObjs(); + + case PARTITION_OBJS: + return getPartitionObjs(); + + case FILES: + return getFiles(); + } throw new IllegalStateException(); } @@ -248,6 +682,20 @@ public boolean isSet(_Fields field) { return isSetTxnid(); case REPL_POLICY: return isSetReplPolicy(); + case DATABASES: + return isSetDatabases(); + case TABLES: + return isSetTables(); + case PARTITIONS: + return isSetPartitions(); + case WRITE_IDS: + return isSetWriteIds(); + case TABLE_OBJS: + return isSetTableObjs(); + case PARTITION_OBJS: + return isSetPartitionObjs(); + case FILES: + return isSetFiles(); } throw new IllegalStateException(); } @@ -283,6 +731,69 @@ public boolean equals(CommitTxnRequest that) { return false; } + boolean this_present_databases = true && this.isSetDatabases(); + boolean that_present_databases = true && that.isSetDatabases(); + if (this_present_databases || that_present_databases) { + if (!(this_present_databases && that_present_databases)) + return false; + if (!this.databases.equals(that.databases)) + return false; + } + + boolean this_present_tables = true && this.isSetTables(); + boolean that_present_tables = true && that.isSetTables(); + if (this_present_tables || that_present_tables) { + if (!(this_present_tables && that_present_tables)) + return false; + if (!this.tables.equals(that.tables)) + return false; + } + + boolean this_present_partitions = true && this.isSetPartitions(); + boolean that_present_partitions = true && that.isSetPartitions(); + if (this_present_partitions || that_present_partitions) { + if (!(this_present_partitions && that_present_partitions)) + return false; + if (!this.partitions.equals(that.partitions)) + return false; + } + + boolean this_present_writeIds = true && this.isSetWriteIds(); + boolean that_present_writeIds = true && that.isSetWriteIds(); + if (this_present_writeIds || that_present_writeIds) { + if (!(this_present_writeIds && that_present_writeIds)) + return false; + if (!this.writeIds.equals(that.writeIds)) + return false; + } + + boolean this_present_tableObjs = true && this.isSetTableObjs(); + boolean that_present_tableObjs = true && that.isSetTableObjs(); + if (this_present_tableObjs || that_present_tableObjs) { + if (!(this_present_tableObjs && that_present_tableObjs)) + return false; + if (!this.tableObjs.equals(that.tableObjs)) + return false; + } + + boolean this_present_partitionObjs = true && this.isSetPartitionObjs(); + boolean that_present_partitionObjs = true && that.isSetPartitionObjs(); + if (this_present_partitionObjs || that_present_partitionObjs) { + if (!(this_present_partitionObjs && that_present_partitionObjs)) + return false; + if (!this.partitionObjs.equals(that.partitionObjs)) + 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; + } + return true; } @@ -300,6 +811,41 @@ public int hashCode() { if (present_replPolicy) list.add(replPolicy); + boolean present_databases = true && (isSetDatabases()); + list.add(present_databases); + if (present_databases) + list.add(databases); + + boolean present_tables = true && (isSetTables()); + list.add(present_tables); + if (present_tables) + list.add(tables); + + boolean present_partitions = true && (isSetPartitions()); + list.add(present_partitions); + if (present_partitions) + list.add(partitions); + + boolean present_writeIds = true && (isSetWriteIds()); + list.add(present_writeIds); + if (present_writeIds) + list.add(writeIds); + + boolean present_tableObjs = true && (isSetTableObjs()); + list.add(present_tableObjs); + if (present_tableObjs) + list.add(tableObjs); + + boolean present_partitionObjs = true && (isSetPartitionObjs()); + list.add(present_partitionObjs); + if (present_partitionObjs) + list.add(partitionObjs); + + boolean present_files = true && (isSetFiles()); + list.add(present_files); + if (present_files) + list.add(files); + return list.hashCode(); } @@ -331,6 +877,76 @@ public int compareTo(CommitTxnRequest other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetDatabases()).compareTo(other.isSetDatabases()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDatabases()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.databases, other.databases); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTables()).compareTo(other.isSetTables()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTables()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tables, other.tables); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPartitions()).compareTo(other.isSetPartitions()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPartitions()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitions, other.partitions); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetWriteIds()).compareTo(other.isSetWriteIds()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetWriteIds()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.writeIds, other.writeIds); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTableObjs()).compareTo(other.isSetTableObjs()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTableObjs()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableObjs, other.tableObjs); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPartitionObjs()).compareTo(other.isSetPartitionObjs()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPartitionObjs()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionObjs, other.partitionObjs); + 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; + } + } return 0; } @@ -364,6 +980,76 @@ public String toString() { } first = false; } + if (isSetDatabases()) { + if (!first) sb.append(", "); + sb.append("databases:"); + if (this.databases == null) { + sb.append("null"); + } else { + sb.append(this.databases); + } + first = false; + } + if (isSetTables()) { + if (!first) sb.append(", "); + sb.append("tables:"); + if (this.tables == null) { + sb.append("null"); + } else { + sb.append(this.tables); + } + first = false; + } + if (isSetPartitions()) { + if (!first) sb.append(", "); + sb.append("partitions:"); + if (this.partitions == null) { + sb.append("null"); + } else { + sb.append(this.partitions); + } + first = false; + } + if (isSetWriteIds()) { + if (!first) sb.append(", "); + sb.append("writeIds:"); + if (this.writeIds == null) { + sb.append("null"); + } else { + sb.append(this.writeIds); + } + first = false; + } + if (isSetTableObjs()) { + if (!first) sb.append(", "); + sb.append("tableObjs:"); + if (this.tableObjs == null) { + sb.append("null"); + } else { + sb.append(this.tableObjs); + } + first = false; + } + if (isSetPartitionObjs()) { + if (!first) sb.append(", "); + sb.append("partitionObjs:"); + if (this.partitionObjs == null) { + sb.append("null"); + } else { + sb.append(this.partitionObjs); + } + 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; + } sb.append(")"); return sb.toString(); } @@ -429,6 +1115,132 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, CommitTxnRequest st org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // DATABASES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list594 = iprot.readListBegin(); + struct.databases = new ArrayList(_list594.size); + String _elem595; + for (int _i596 = 0; _i596 < _list594.size; ++_i596) + { + _elem595 = iprot.readString(); + struct.databases.add(_elem595); + } + iprot.readListEnd(); + } + struct.setDatabasesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // TABLES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list597 = iprot.readListBegin(); + struct.tables = new ArrayList(_list597.size); + String _elem598; + for (int _i599 = 0; _i599 < _list597.size; ++_i599) + { + _elem598 = iprot.readString(); + struct.tables.add(_elem598); + } + iprot.readListEnd(); + } + struct.setTablesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // PARTITIONS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list600 = iprot.readListBegin(); + struct.partitions = new ArrayList(_list600.size); + String _elem601; + for (int _i602 = 0; _i602 < _list600.size; ++_i602) + { + _elem601 = iprot.readString(); + struct.partitions.add(_elem601); + } + iprot.readListEnd(); + } + struct.setPartitionsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // WRITE_IDS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list603 = iprot.readListBegin(); + struct.writeIds = new ArrayList(_list603.size); + long _elem604; + for (int _i605 = 0; _i605 < _list603.size; ++_i605) + { + _elem604 = iprot.readI64(); + struct.writeIds.add(_elem604); + } + iprot.readListEnd(); + } + struct.setWriteIdsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 7: // TABLE_OBJS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list606 = iprot.readListBegin(); + struct.tableObjs = new ArrayList(_list606.size); + String _elem607; + for (int _i608 = 0; _i608 < _list606.size; ++_i608) + { + _elem607 = iprot.readString(); + struct.tableObjs.add(_elem607); + } + iprot.readListEnd(); + } + struct.setTableObjsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 8: // PARTITION_OBJS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list609 = iprot.readListBegin(); + struct.partitionObjs = new ArrayList(_list609.size); + String _elem610; + for (int _i611 = 0; _i611 < _list609.size; ++_i611) + { + _elem610 = iprot.readString(); + struct.partitionObjs.add(_elem610); + } + iprot.readListEnd(); + } + struct.setPartitionObjsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 9: // FILES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list612 = iprot.readListBegin(); + struct.files = new ArrayList(_list612.size); + String _elem613; + for (int _i614 = 0; _i614 < _list612.size; ++_i614) + { + _elem613 = iprot.readString(); + struct.files.add(_elem613); + } + iprot.readListEnd(); + } + struct.setFilesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -452,6 +1264,104 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, CommitTxnRequest s oprot.writeFieldEnd(); } } + if (struct.databases != null) { + if (struct.isSetDatabases()) { + oprot.writeFieldBegin(DATABASES_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.databases.size())); + for (String _iter615 : struct.databases) + { + oprot.writeString(_iter615); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + } + if (struct.tables != null) { + if (struct.isSetTables()) { + oprot.writeFieldBegin(TABLES_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.tables.size())); + for (String _iter616 : struct.tables) + { + oprot.writeString(_iter616); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + } + if (struct.partitions != null) { + if (struct.isSetPartitions()) { + oprot.writeFieldBegin(PARTITIONS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.partitions.size())); + for (String _iter617 : struct.partitions) + { + oprot.writeString(_iter617); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + } + if (struct.writeIds != null) { + if (struct.isSetWriteIds()) { + oprot.writeFieldBegin(WRITE_IDS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.writeIds.size())); + for (long _iter618 : struct.writeIds) + { + oprot.writeI64(_iter618); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + } + if (struct.tableObjs != null) { + if (struct.isSetTableObjs()) { + oprot.writeFieldBegin(TABLE_OBJS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.tableObjs.size())); + for (String _iter619 : struct.tableObjs) + { + oprot.writeString(_iter619); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + } + if (struct.partitionObjs != null) { + if (struct.isSetPartitionObjs()) { + oprot.writeFieldBegin(PARTITION_OBJS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.partitionObjs.size())); + for (String _iter620 : struct.partitionObjs) + { + oprot.writeString(_iter620); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + } + if (struct.files != null) { + if (struct.isSetFiles()) { + oprot.writeFieldBegin(FILES_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.files.size())); + for (String _iter621 : struct.files) + { + oprot.writeString(_iter621); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -474,10 +1384,94 @@ public void write(org.apache.thrift.protocol.TProtocol prot, CommitTxnRequest st if (struct.isSetReplPolicy()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); + if (struct.isSetDatabases()) { + optionals.set(1); + } + if (struct.isSetTables()) { + optionals.set(2); + } + if (struct.isSetPartitions()) { + optionals.set(3); + } + if (struct.isSetWriteIds()) { + optionals.set(4); + } + if (struct.isSetTableObjs()) { + optionals.set(5); + } + if (struct.isSetPartitionObjs()) { + optionals.set(6); + } + if (struct.isSetFiles()) { + optionals.set(7); + } + oprot.writeBitSet(optionals, 8); if (struct.isSetReplPolicy()) { oprot.writeString(struct.replPolicy); } + if (struct.isSetDatabases()) { + { + oprot.writeI32(struct.databases.size()); + for (String _iter622 : struct.databases) + { + oprot.writeString(_iter622); + } + } + } + if (struct.isSetTables()) { + { + oprot.writeI32(struct.tables.size()); + for (String _iter623 : struct.tables) + { + oprot.writeString(_iter623); + } + } + } + if (struct.isSetPartitions()) { + { + oprot.writeI32(struct.partitions.size()); + for (String _iter624 : struct.partitions) + { + oprot.writeString(_iter624); + } + } + } + if (struct.isSetWriteIds()) { + { + oprot.writeI32(struct.writeIds.size()); + for (long _iter625 : struct.writeIds) + { + oprot.writeI64(_iter625); + } + } + } + if (struct.isSetTableObjs()) { + { + oprot.writeI32(struct.tableObjs.size()); + for (String _iter626 : struct.tableObjs) + { + oprot.writeString(_iter626); + } + } + } + if (struct.isSetPartitionObjs()) { + { + oprot.writeI32(struct.partitionObjs.size()); + for (String _iter627 : struct.partitionObjs) + { + oprot.writeString(_iter627); + } + } + } + if (struct.isSetFiles()) { + { + oprot.writeI32(struct.files.size()); + for (String _iter628 : struct.files) + { + oprot.writeString(_iter628); + } + } + } } @Override @@ -485,11 +1479,102 @@ 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(8); if (incoming.get(0)) { struct.replPolicy = iprot.readString(); struct.setReplPolicyIsSet(true); } + if (incoming.get(1)) { + { + org.apache.thrift.protocol.TList _list629 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.databases = new ArrayList(_list629.size); + String _elem630; + for (int _i631 = 0; _i631 < _list629.size; ++_i631) + { + _elem630 = iprot.readString(); + struct.databases.add(_elem630); + } + } + struct.setDatabasesIsSet(true); + } + if (incoming.get(2)) { + { + org.apache.thrift.protocol.TList _list632 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tables = new ArrayList(_list632.size); + String _elem633; + for (int _i634 = 0; _i634 < _list632.size; ++_i634) + { + _elem633 = iprot.readString(); + struct.tables.add(_elem633); + } + } + struct.setTablesIsSet(true); + } + if (incoming.get(3)) { + { + org.apache.thrift.protocol.TList _list635 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitions = new ArrayList(_list635.size); + String _elem636; + for (int _i637 = 0; _i637 < _list635.size; ++_i637) + { + _elem636 = iprot.readString(); + struct.partitions.add(_elem636); + } + } + struct.setPartitionsIsSet(true); + } + if (incoming.get(4)) { + { + org.apache.thrift.protocol.TList _list638 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.writeIds = new ArrayList(_list638.size); + long _elem639; + for (int _i640 = 0; _i640 < _list638.size; ++_i640) + { + _elem639 = iprot.readI64(); + struct.writeIds.add(_elem639); + } + } + struct.setWriteIdsIsSet(true); + } + if (incoming.get(5)) { + { + org.apache.thrift.protocol.TList _list641 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tableObjs = new ArrayList(_list641.size); + String _elem642; + for (int _i643 = 0; _i643 < _list641.size; ++_i643) + { + _elem642 = iprot.readString(); + struct.tableObjs.add(_elem642); + } + } + struct.setTableObjsIsSet(true); + } + if (incoming.get(6)) { + { + org.apache.thrift.protocol.TList _list644 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionObjs = new ArrayList(_list644.size); + String _elem645; + for (int _i646 = 0; _i646 < _list644.size; ++_i646) + { + _elem645 = iprot.readString(); + struct.partitionObjs.add(_elem645); + } + } + struct.setPartitionObjsIsSet(true); + } + if (incoming.get(7)) { + { + org.apache.thrift.protocol.TList _list647 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.files = new ArrayList(_list647.size); + String _elem648; + for (int _i649 = 0; _i649 < _list647.size; ++_i649) + { + _elem648 = iprot.readString(); + struct.files.add(_elem648); + } + } + struct.setFilesIsSet(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..0d1acea73b 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 _map786 = iprot.readMapBegin(); + struct.properties = new HashMap(2*_map786.size); + String _key787; + String _val788; + for (int _i789 = 0; _i789 < _map786.size; ++_i789) { - _key675 = iprot.readString(); - _val676 = iprot.readString(); - struct.properties.put(_key675, _val676); + _key787 = iprot.readString(); + _val788 = iprot.readString(); + struct.properties.put(_key787, _val788); } 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 _iter790 : struct.properties.entrySet()) { - oprot.writeString(_iter678.getKey()); - oprot.writeString(_iter678.getValue()); + oprot.writeString(_iter790.getKey()); + oprot.writeString(_iter790.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 _iter791 : struct.properties.entrySet()) { - oprot.writeString(_iter679.getKey()); - oprot.writeString(_iter679.getValue()); + oprot.writeString(_iter791.getKey()); + oprot.writeString(_iter791.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 _map792 = 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*_map792.size); + String _key793; + String _val794; + for (int _i795 = 0; _i795 < _map792.size; ++_i795) { - _key681 = iprot.readString(); - _val682 = iprot.readString(); - struct.properties.put(_key681, _val682); + _key793 = iprot.readString(); + _val794 = iprot.readString(); + struct.properties.put(_key793, _val794); } } 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..231c6a63ef 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 _set812 = iprot.readSetBegin(); + struct.tablesUsed = new HashSet(2*_set812.size); + String _elem813; + for (int _i814 = 0; _i814 < _set812.size; ++_i814) { - _elem701 = iprot.readString(); - struct.tablesUsed.add(_elem701); + _elem813 = iprot.readString(); + struct.tablesUsed.add(_elem813); } 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 _iter815 : struct.tablesUsed) { - oprot.writeString(_iter703); + oprot.writeString(_iter815); } 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 _iter816 : struct.tablesUsed) { - oprot.writeString(_iter704); + oprot.writeString(_iter816); } } 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 _set817 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tablesUsed = new HashSet(2*_set817.size); + String _elem818; + for (int _i819 = 0; _i819 < _set817.size; ++_i819) { - _elem706 = iprot.readString(); - struct.tablesUsed.add(_elem706); + _elem818 = iprot.readString(); + struct.tablesUsed.add(_elem818); } } 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..4024751ed3 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 _list1040 = iprot.readListBegin(); + struct.schemaVersions = new ArrayList(_list1040.size); + SchemaVersionDescriptor _elem1041; + for (int _i1042 = 0; _i1042 < _list1040.size; ++_i1042) { - _elem913 = new SchemaVersionDescriptor(); - _elem913.read(iprot); - struct.schemaVersions.add(_elem913); + _elem1041 = new SchemaVersionDescriptor(); + _elem1041.read(iprot); + struct.schemaVersions.add(_elem1041); } iprot.readListEnd(); } @@ -383,9 +383,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, FindSchemasByColsR oprot.writeFieldBegin(SCHEMA_VERSIONS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.schemaVersions.size())); - for (SchemaVersionDescriptor _iter915 : struct.schemaVersions) + for (SchemaVersionDescriptor _iter1043 : struct.schemaVersions) { - _iter915.write(oprot); + _iter1043.write(oprot); } oprot.writeListEnd(); } @@ -416,9 +416,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, FindSchemasByColsRe if (struct.isSetSchemaVersions()) { { oprot.writeI32(struct.schemaVersions.size()); - for (SchemaVersionDescriptor _iter916 : struct.schemaVersions) + for (SchemaVersionDescriptor _iter1044 : struct.schemaVersions) { - _iter916.write(oprot); + _iter1044.write(oprot); } } } @@ -430,14 +430,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, FindSchemasByColsRes BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _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 _list1045 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.schemaVersions = new ArrayList(_list1045.size); + SchemaVersionDescriptor _elem1046; + for (int _i1047 = 0; _i1047 < _list1045.size; ++_i1047) { - _elem918 = new SchemaVersionDescriptor(); - _elem918.read(iprot); - struct.schemaVersions.add(_elem918); + _elem1046 = new SchemaVersionDescriptor(); + _elem1046.read(iprot); + struct.schemaVersions.add(_elem1046); } } 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..8e4fa9eb85 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 _list852 = iprot.readListBegin(); + struct.partitionVals = new ArrayList(_list852.size); + String _elem853; + for (int _i854 = 0; _i854 < _list852.size; ++_i854) { - _elem733 = iprot.readString(); - struct.partitionVals.add(_elem733); + _elem853 = iprot.readString(); + struct.partitionVals.add(_elem853); } 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 _iter855 : struct.partitionVals) { - oprot.writeString(_iter735); + oprot.writeString(_iter855); } 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 _iter856 : struct.partitionVals) { - oprot.writeString(_iter736); + oprot.writeString(_iter856); } } } @@ -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 _list857 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionVals = new ArrayList(_list857.size); + String _elem858; + for (int _i859 = 0; _i859 < _list857.size; ++_i859) { - _elem738 = iprot.readString(); - struct.partitionVals.add(_elem738); + _elem858 = iprot.readString(); + struct.partitionVals.add(_elem858); } } 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..b579e70c23 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 _list928 = iprot.readListBegin(); + struct.functions = new ArrayList(_list928.size); + Function _elem929; + for (int _i930 = 0; _i930 < _list928.size; ++_i930) { - _elem801 = new Function(); - _elem801.read(iprot); - struct.functions.add(_elem801); + _elem929 = new Function(); + _elem929.read(iprot); + struct.functions.add(_elem929); } 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 _iter931 : struct.functions) { - _iter803.write(oprot); + _iter931.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 _iter932 : struct.functions) { - _iter804.write(oprot); + _iter932.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 _list933 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.functions = new ArrayList(_list933.size); + Function _elem934; + for (int _i935 = 0; _i935 < _list933.size; ++_i935) { - _elem806 = new Function(); - _elem806.read(iprot); - struct.functions.add(_elem806); + _elem934 = new Function(); + _elem934.read(iprot); + struct.functions.add(_elem934); } } 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..b074f8a09c 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 _list878 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list878.size); + long _elem879; + for (int _i880 = 0; _i880 < _list878.size; ++_i880) { - _elem751 = iprot.readI64(); - struct.fileIds.add(_elem751); + _elem879 = iprot.readI64(); + struct.fileIds.add(_elem879); } 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 _iter881 : struct.fileIds) { - oprot.writeI64(_iter753); + oprot.writeI64(_iter881); } 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 _iter882 : struct.fileIds) { - oprot.writeI64(_iter754); + oprot.writeI64(_iter882); } } 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 _list883 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list883.size); + long _elem884; + for (int _i885 = 0; _i885 < _list883.size; ++_i885) { - _elem756 = iprot.readI64(); - struct.fileIds.add(_elem756); + _elem884 = iprot.readI64(); + struct.fileIds.add(_elem884); } } 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..ece1f519da 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 _map868 = iprot.readMapBegin(); + struct.metadata = new HashMap(2*_map868.size); + long _key869; + MetadataPpdResult _val870; + for (int _i871 = 0; _i871 < _map868.size; ++_i871) { - _key741 = iprot.readI64(); - _val742 = new MetadataPpdResult(); - _val742.read(iprot); - struct.metadata.put(_key741, _val742); + _key869 = iprot.readI64(); + _val870 = new MetadataPpdResult(); + _val870.read(iprot); + struct.metadata.put(_key869, _val870); } 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 _iter872 : struct.metadata.entrySet()) { - oprot.writeI64(_iter744.getKey()); - _iter744.getValue().write(oprot); + oprot.writeI64(_iter872.getKey()); + _iter872.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 _iter873 : struct.metadata.entrySet()) { - oprot.writeI64(_iter745.getKey()); - _iter745.getValue().write(oprot); + oprot.writeI64(_iter873.getKey()); + _iter873.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 _map874 = 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*_map874.size); + long _key875; + MetadataPpdResult _val876; + for (int _i877 = 0; _i877 < _map874.size; ++_i877) { - _key747 = iprot.readI64(); - _val748 = new MetadataPpdResult(); - _val748.read(iprot); - struct.metadata.put(_key747, _val748); + _key875 = iprot.readI64(); + _val876 = new MetadataPpdResult(); + _val876.read(iprot); + struct.metadata.put(_key875, _val876); } } 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..33bb390ff4 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 _list896 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list896.size); + long _elem897; + for (int _i898 = 0; _i898 < _list896.size; ++_i898) { - _elem769 = iprot.readI64(); - struct.fileIds.add(_elem769); + _elem897 = iprot.readI64(); + struct.fileIds.add(_elem897); } 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 _iter899 : struct.fileIds) { - oprot.writeI64(_iter771); + oprot.writeI64(_iter899); } 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 _iter900 : struct.fileIds) { - oprot.writeI64(_iter772); + oprot.writeI64(_iter900); } } } @@ -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 _list901 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list901.size); + long _elem902; + for (int _i903 = 0; _i903 < _list901.size; ++_i903) { - _elem774 = iprot.readI64(); - struct.fileIds.add(_elem774); + _elem902 = iprot.readI64(); + struct.fileIds.add(_elem902); } } 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..e335d88221 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 _map886 = iprot.readMapBegin(); + struct.metadata = new HashMap(2*_map886.size); + long _key887; + ByteBuffer _val888; + for (int _i889 = 0; _i889 < _map886.size; ++_i889) { - _key759 = iprot.readI64(); - _val760 = iprot.readBinary(); - struct.metadata.put(_key759, _val760); + _key887 = iprot.readI64(); + _val888 = iprot.readBinary(); + struct.metadata.put(_key887, _val888); } 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 _iter890 : struct.metadata.entrySet()) { - oprot.writeI64(_iter762.getKey()); - oprot.writeBinary(_iter762.getValue()); + oprot.writeI64(_iter890.getKey()); + oprot.writeBinary(_iter890.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 _iter891 : struct.metadata.entrySet()) { - oprot.writeI64(_iter763.getKey()); - oprot.writeBinary(_iter763.getValue()); + oprot.writeI64(_iter891.getKey()); + oprot.writeBinary(_iter891.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 _map892 = 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*_map892.size); + long _key893; + ByteBuffer _val894; + for (int _i895 = 0; _i895 < _map892.size; ++_i895) { - _key765 = iprot.readI64(); - _val766 = iprot.readBinary(); - struct.metadata.put(_key765, _val766); + _key893 = iprot.readI64(); + _val894 = iprot.readBinary(); + struct.metadata.put(_key893, _val894); } } 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..ff83bc28bd 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 _list944 = iprot.readListBegin(); + struct.tblNames = new ArrayList(_list944.size); + String _elem945; + for (int _i946 = 0; _i946 < _list944.size; ++_i946) { - _elem817 = iprot.readString(); - struct.tblNames.add(_elem817); + _elem945 = iprot.readString(); + struct.tblNames.add(_elem945); } 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 _iter947 : struct.tblNames) { - oprot.writeString(_iter819); + oprot.writeString(_iter947); } 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 _iter948 : struct.tblNames) { - oprot.writeString(_iter820); + oprot.writeString(_iter948); } } } @@ -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 _list949 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tblNames = new ArrayList(_list949.size); + String _elem950; + for (int _i951 = 0; _i951 < _list949.size; ++_i951) { - _elem822 = iprot.readString(); - struct.tblNames.add(_elem822); + _elem950 = iprot.readString(); + struct.tblNames.add(_elem950); } } 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..0591d99ae6 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 _list952 = iprot.readListBegin(); + struct.tables = new ArrayList
(_list952.size); + Table _elem953; + for (int _i954 = 0; _i954 < _list952.size; ++_i954) { - _elem825 = new Table(); - _elem825.read(iprot); - struct.tables.add(_elem825); + _elem953 = new Table(); + _elem953.read(iprot); + struct.tables.add(_elem953); } 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 _iter955 : struct.tables) { - _iter827.write(oprot); + _iter955.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 _iter956 : struct.tables) { - _iter828.write(oprot); + _iter956.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 _list957 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.tables = new ArrayList
(_list957.size); + Table _elem958; + for (int _i959 = 0; _i959 < _list957.size; ++_i959) { - _elem830 = new Table(); - _elem830.read(iprot); - struct.tables.add(_elem830); + _elem958 = new Table(); + _elem958.read(iprot); + struct.tables.add(_elem958); } } 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..b370c7e095 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 _list706 = iprot.readListBegin(); + struct.fullTableNames = new ArrayList(_list706.size); + String _elem707; + for (int _i708 = 0; _i708 < _list706.size; ++_i708) { - _elem595 = iprot.readString(); - struct.fullTableNames.add(_elem595); + _elem707 = iprot.readString(); + struct.fullTableNames.add(_elem707); } 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 _iter709 : struct.fullTableNames) { - oprot.writeString(_iter597); + oprot.writeString(_iter709); } 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 _iter710 : struct.fullTableNames) { - oprot.writeString(_iter598); + oprot.writeString(_iter710); } } 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 _list711 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.fullTableNames = new ArrayList(_list711.size); + String _elem712; + for (int _i713 = 0; _i713 < _list711.size; ++_i713) { - _elem600 = iprot.readString(); - struct.fullTableNames.add(_elem600); + _elem712 = iprot.readString(); + struct.fullTableNames.add(_elem712); } } 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..cd46838d3b 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 _list722 = iprot.readListBegin(); + struct.tblValidWriteIds = new ArrayList(_list722.size); + TableValidWriteIds _elem723; + for (int _i724 = 0; _i724 < _list722.size; ++_i724) { - _elem611 = new TableValidWriteIds(); - _elem611.read(iprot); - struct.tblValidWriteIds.add(_elem611); + _elem723 = new TableValidWriteIds(); + _elem723.read(iprot); + struct.tblValidWriteIds.add(_elem723); } 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 _iter725 : struct.tblValidWriteIds) { - _iter613.write(oprot); + _iter725.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 _iter726 : struct.tblValidWriteIds) { - _iter614.write(oprot); + _iter726.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 _list727 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.tblValidWriteIds = new ArrayList(_list727.size); + TableValidWriteIds _elem728; + for (int _i729 = 0; _i729 < _list727.size; ++_i729) { - _elem616 = new TableValidWriteIds(); - _elem616.read(iprot); - struct.tblValidWriteIds.add(_elem616); + _elem728 = new TableValidWriteIds(); + _elem728.read(iprot); + struct.tblValidWriteIds.add(_elem728); } } 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..54cbe0f241 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 _set770 = iprot.readSetBegin(); + struct.aborted = new HashSet(2*_set770.size); + long _elem771; + for (int _i772 = 0; _i772 < _set770.size; ++_i772) { - _elem659 = iprot.readI64(); - struct.aborted.add(_elem659); + _elem771 = iprot.readI64(); + struct.aborted.add(_elem771); } 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 _set773 = iprot.readSetBegin(); + struct.nosuch = new HashSet(2*_set773.size); + long _elem774; + for (int _i775 = 0; _i775 < _set773.size; ++_i775) { - _elem662 = iprot.readI64(); - struct.nosuch.add(_elem662); + _elem774 = iprot.readI64(); + struct.nosuch.add(_elem774); } 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 _iter776 : struct.aborted) { - oprot.writeI64(_iter664); + oprot.writeI64(_iter776); } 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 _iter777 : struct.nosuch) { - oprot.writeI64(_iter665); + oprot.writeI64(_iter777); } 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 _iter778 : struct.aborted) { - oprot.writeI64(_iter666); + oprot.writeI64(_iter778); } } { oprot.writeI32(struct.nosuch.size()); - for (long _iter667 : struct.nosuch) + for (long _iter779 : struct.nosuch) { - oprot.writeI64(_iter667); + oprot.writeI64(_iter779); } } } @@ -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 _set780 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.aborted = new HashSet(2*_set780.size); + long _elem781; + for (int _i782 = 0; _i782 < _set780.size; ++_i782) { - _elem669 = iprot.readI64(); - struct.aborted.add(_elem669); + _elem781 = iprot.readI64(); + struct.aborted.add(_elem781); } } 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 _set783 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.nosuch = new HashSet(2*_set783.size); + long _elem784; + for (int _i785 = 0; _i785 < _set783.size; ++_i785) { - _elem672 = iprot.readI64(); - struct.nosuch.add(_elem672); + _elem784 = iprot.readI64(); + struct.nosuch.add(_elem784); } } 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..0ab017b3d4 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 _list828 = iprot.readListBegin(); + struct.filesAdded = new ArrayList(_list828.size); + String _elem829; + for (int _i830 = 0; _i830 < _list828.size; ++_i830) { - _elem717 = iprot.readString(); - struct.filesAdded.add(_elem717); + _elem829 = iprot.readString(); + struct.filesAdded.add(_elem829); } 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 _list831 = iprot.readListBegin(); + struct.filesAddedChecksum = new ArrayList(_list831.size); + String _elem832; + for (int _i833 = 0; _i833 < _list831.size; ++_i833) { - _elem720 = iprot.readString(); - struct.filesAddedChecksum.add(_elem720); + _elem832 = iprot.readString(); + struct.filesAddedChecksum.add(_elem832); } 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 _list834 = iprot.readListBegin(); + struct.subDirectoryList = new ArrayList(_list834.size); + String _elem835; + for (int _i836 = 0; _i836 < _list834.size; ++_i836) + { + _elem835 = iprot.readString(); + struct.subDirectoryList.add(_elem835); + } + 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 _iter837 : struct.filesAdded) { - oprot.writeString(_iter722); + oprot.writeString(_iter837); } 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 _iter838 : struct.filesAddedChecksum) { - oprot.writeString(_iter723); + oprot.writeString(_iter838); + } + 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 _iter839 : struct.subDirectoryList) + { + oprot.writeString(_iter839); } 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 _iter840 : struct.filesAdded) { - oprot.writeString(_iter724); + oprot.writeString(_iter840); } } 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 _iter841 : struct.filesAddedChecksum) + { + oprot.writeString(_iter841); + } + } + } + if (struct.isSetSubDirectoryList()) { + { + oprot.writeI32(struct.subDirectoryList.size()); + for (String _iter842 : struct.subDirectoryList) { - oprot.writeString(_iter725); + oprot.writeString(_iter842); } } } @@ -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 _list843 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.filesAdded = new ArrayList(_list843.size); + String _elem844; + for (int _i845 = 0; _i845 < _list843.size; ++_i845) { - _elem727 = iprot.readString(); - struct.filesAdded.add(_elem727); + _elem844 = iprot.readString(); + struct.filesAdded.add(_elem844); } } 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 _list846 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.filesAddedChecksum = new ArrayList(_list846.size); + String _elem847; + for (int _i848 = 0; _i848 < _list846.size; ++_i848) { - _elem730 = iprot.readString(); - struct.filesAddedChecksum.add(_elem730); + _elem847 = iprot.readString(); + struct.filesAddedChecksum.add(_elem847); } } struct.setFilesAddedChecksumIsSet(true); } + if (incoming.get(2)) { + { + org.apache.thrift.protocol.TList _list849 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.subDirectoryList = new ArrayList(_list849.size); + String _elem850; + for (int _i851 = 0; _i851 < _list849.size; ++_i851) + { + _elem850 = iprot.readString(); + struct.subDirectoryList.add(_elem850); + } + } + 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..5c2144d984 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 _list754 = iprot.readListBegin(); + struct.component = new ArrayList(_list754.size); + LockComponent _elem755; + for (int _i756 = 0; _i756 < _list754.size; ++_i756) { - _elem643 = new LockComponent(); - _elem643.read(iprot); - struct.component.add(_elem643); + _elem755 = new LockComponent(); + _elem755.read(iprot); + struct.component.add(_elem755); } 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 _iter757 : struct.component) { - _iter645.write(oprot); + _iter757.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 _iter758 : struct.component) { - _iter646.write(oprot); + _iter758.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 _list759 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.component = new ArrayList(_list759.size); + LockComponent _elem760; + for (int _i761 = 0; _i761 < _list759.size; ++_i761) { - _elem648 = new LockComponent(); - _elem648.read(iprot); - struct.component.add(_elem648); + _elem760 = new LockComponent(); + _elem760.read(iprot); + struct.component.add(_elem760); } } 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..6377b64b59 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 _set960 = iprot.readSetBegin(); + struct.tablesUsed = new HashSet(2*_set960.size); + String _elem961; + for (int _i962 = 0; _i962 < _set960.size; ++_i962) { - _elem833 = iprot.readString(); - struct.tablesUsed.add(_elem833); + _elem961 = iprot.readString(); + struct.tablesUsed.add(_elem961); } 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 _iter963 : struct.tablesUsed) { - oprot.writeString(_iter835); + oprot.writeString(_iter963); } 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 _iter964 : struct.tablesUsed) { - oprot.writeString(_iter836); + oprot.writeString(_iter964); } } 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 _set965 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tablesUsed = new HashSet(2*_set965.size); + String _elem966; + for (int _i967 = 0; _i967 < _set965.size; ++_i967) { - _elem838 = iprot.readString(); - struct.tablesUsed.add(_elem838); + _elem966 = iprot.readString(); + struct.tablesUsed.add(_elem966); } } 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..d5d20b8a37 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 _list820 = iprot.readListBegin(); + struct.events = new ArrayList(_list820.size); + NotificationEvent _elem821; + for (int _i822 = 0; _i822 < _list820.size; ++_i822) { - _elem709 = new NotificationEvent(); - _elem709.read(iprot); - struct.events.add(_elem709); + _elem821 = new NotificationEvent(); + _elem821.read(iprot); + struct.events.add(_elem821); } 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 _iter823 : struct.events) { - _iter711.write(oprot); + _iter823.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 _iter824 : struct.events) { - _iter712.write(oprot); + _iter824.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 _list825 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.events = new ArrayList(_list825.size); + NotificationEvent _elem826; + for (int _i827 = 0; _i827 < _list825.size; ++_i827) { - _elem714 = new NotificationEvent(); - _elem714.read(iprot); - struct.events.add(_elem714); + _elem826 = new NotificationEvent(); + _elem826.read(iprot); + struct.events.add(_elem826); } } 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..b658d6eac7 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 _list904 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list904.size); + long _elem905; + for (int _i906 = 0; _i906 < _list904.size; ++_i906) { - _elem777 = iprot.readI64(); - struct.fileIds.add(_elem777); + _elem905 = iprot.readI64(); + struct.fileIds.add(_elem905); } 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 _list907 = iprot.readListBegin(); + struct.metadata = new ArrayList(_list907.size); + ByteBuffer _elem908; + for (int _i909 = 0; _i909 < _list907.size; ++_i909) { - _elem780 = iprot.readBinary(); - struct.metadata.add(_elem780); + _elem908 = iprot.readBinary(); + struct.metadata.add(_elem908); } 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 _iter910 : struct.fileIds) { - oprot.writeI64(_iter782); + oprot.writeI64(_iter910); } 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 _iter911 : struct.metadata) { - oprot.writeBinary(_iter783); + oprot.writeBinary(_iter911); } 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 _iter912 : struct.fileIds) { - oprot.writeI64(_iter784); + oprot.writeI64(_iter912); } } { oprot.writeI32(struct.metadata.size()); - for (ByteBuffer _iter785 : struct.metadata) + for (ByteBuffer _iter913 : struct.metadata) { - oprot.writeBinary(_iter785); + oprot.writeBinary(_iter913); } } 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 _list914 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list914.size); + long _elem915; + for (int _i916 = 0; _i916 < _list914.size; ++_i916) { - _elem787 = iprot.readI64(); - struct.fileIds.add(_elem787); + _elem915 = iprot.readI64(); + struct.fileIds.add(_elem915); } } 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 _list917 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.metadata = new ArrayList(_list917.size); + ByteBuffer _elem918; + for (int _i919 = 0; _i919 < _list917.size; ++_i919) { - _elem790 = iprot.readBinary(); - struct.metadata.add(_elem790); + _elem918 = iprot.readBinary(); + struct.metadata.add(_elem918); } } 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..09fcd476e9 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 _list1032 = iprot.readListBegin(); + struct.cols = new ArrayList(_list1032.size); + FieldSchema _elem1033; + for (int _i1034 = 0; _i1034 < _list1032.size; ++_i1034) { - _elem905 = new FieldSchema(); - _elem905.read(iprot); - struct.cols.add(_elem905); + _elem1033 = new FieldSchema(); + _elem1033.read(iprot); + struct.cols.add(_elem1033); } iprot.readListEnd(); } @@ -1212,9 +1212,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, SchemaVersion stru oprot.writeFieldBegin(COLS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.cols.size())); - for (FieldSchema _iter907 : struct.cols) + for (FieldSchema _iter1035 : struct.cols) { - _iter907.write(oprot); + _iter1035.write(oprot); } oprot.writeListEnd(); } @@ -1323,9 +1323,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, SchemaVersion struc if (struct.isSetCols()) { { oprot.writeI32(struct.cols.size()); - for (FieldSchema _iter908 : struct.cols) + for (FieldSchema _iter1036 : struct.cols) { - _iter908.write(oprot); + _iter1036.write(oprot); } } } @@ -1368,14 +1368,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, SchemaVersion struct } if (incoming.get(3)) { { - org.apache.thrift.protocol.TList _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 _list1037 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.cols = new ArrayList(_list1037.size); + FieldSchema _elem1038; + for (int _i1039 = 0; _i1039 < _list1037.size; ++_i1039) { - _elem910 = new FieldSchema(); - _elem910.read(iprot); - struct.cols.add(_elem910); + _elem1038 = new FieldSchema(); + _elem1038.read(iprot); + struct.cols.add(_elem1038); } } 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..ed00964e10 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 _list796 = iprot.readListBegin(); + struct.compacts = new ArrayList(_list796.size); + ShowCompactResponseElement _elem797; + for (int _i798 = 0; _i798 < _list796.size; ++_i798) { - _elem685 = new ShowCompactResponseElement(); - _elem685.read(iprot); - struct.compacts.add(_elem685); + _elem797 = new ShowCompactResponseElement(); + _elem797.read(iprot); + struct.compacts.add(_elem797); } 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 _iter799 : struct.compacts) { - _iter687.write(oprot); + _iter799.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 _iter800 : struct.compacts) { - _iter688.write(oprot); + _iter800.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 _list801 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.compacts = new ArrayList(_list801.size); + ShowCompactResponseElement _elem802; + for (int _i803 = 0; _i803 < _list801.size; ++_i803) { - _elem690 = new ShowCompactResponseElement(); - _elem690.read(iprot); - struct.compacts.add(_elem690); + _elem802 = new ShowCompactResponseElement(); + _elem802.read(iprot); + struct.compacts.add(_elem802); } } 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..52135d5b00 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 _list762 = iprot.readListBegin(); + struct.locks = new ArrayList(_list762.size); + ShowLocksResponseElement _elem763; + for (int _i764 = 0; _i764 < _list762.size; ++_i764) { - _elem651 = new ShowLocksResponseElement(); - _elem651.read(iprot); - struct.locks.add(_elem651); + _elem763 = new ShowLocksResponseElement(); + _elem763.read(iprot); + struct.locks.add(_elem763); } 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 _iter765 : struct.locks) { - _iter653.write(oprot); + _iter765.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 _iter766 : struct.locks) { - _iter654.write(oprot); + _iter766.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 _list767 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.locks = new ArrayList(_list767.size); + ShowLocksResponseElement _elem768; + for (int _i769 = 0; _i769 < _list767.size; ++_i769) { - _elem656 = new ShowLocksResponseElement(); - _elem656.read(iprot); - struct.locks.add(_elem656); + _elem768 = new ShowLocksResponseElement(); + _elem768.read(iprot); + struct.locks.add(_elem768); } } 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..7eaa6687a4 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 _list714 = iprot.readListBegin(); + struct.invalidWriteIds = new ArrayList(_list714.size); + long _elem715; + for (int _i716 = 0; _i716 < _list714.size; ++_i716) { - _elem603 = iprot.readI64(); - struct.invalidWriteIds.add(_elem603); + _elem715 = iprot.readI64(); + struct.invalidWriteIds.add(_elem715); } 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 _iter717 : struct.invalidWriteIds) { - oprot.writeI64(_iter605); + oprot.writeI64(_iter717); } 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 _iter718 : struct.invalidWriteIds) { - oprot.writeI64(_iter606); + oprot.writeI64(_iter718); } } 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 _list719 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.invalidWriteIds = new ArrayList(_list719.size); + long _elem720; + for (int _i721 = 0; _i721 < _list719.size; ++_i721) { - _elem608 = iprot.readI64(); - struct.invalidWriteIds.add(_elem608); + _elem720 = iprot.readI64(); + struct.invalidWriteIds.add(_elem720); } } 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 a354f27cad..4f5be2c980 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; @@ -774,6 +776,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; @@ -5547,6 +5551,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); @@ -12371,6 +12398,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); @@ -13835,6 +13894,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"); @@ -19243,6 +19323,7 @@ protected AsyncProcessor(I iface, Map extends org.apache.thrift.AsyncProcessFunction { - public cm_recycle() { - super("cm_recycle"); - } - - public cm_recycle_args getEmptyArgsInstance() { - return new cm_recycle_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(CmRecycleResponse o) { - cm_recycle_result result = new cm_recycle_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; - cm_recycle_result result = new cm_recycle_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, cm_recycle_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.cm_recycle(args.request,resultHandler); - } - } - - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_file_metadata_by_expr extends org.apache.thrift.AsyncProcessFunction { - public get_file_metadata_by_expr() { - super("get_file_metadata_by_expr"); - } - - public get_file_metadata_by_expr_args getEmptyArgsInstance() { - return new get_file_metadata_by_expr_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(GetFileMetadataByExprResult o) { - get_file_metadata_by_expr_result result = new get_file_metadata_by_expr_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_file_metadata_by_expr_result result = new get_file_metadata_by_expr_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, get_file_metadata_by_expr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_file_metadata_by_expr(args.req,resultHandler); - } - } - - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_file_metadata extends org.apache.thrift.AsyncProcessFunction { - public get_file_metadata() { - super("get_file_metadata"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_write_notification_log extends org.apache.thrift.AsyncProcessFunction { + public add_write_notification_log() { + super("add_write_notification_log"); } - public get_file_metadata_args getEmptyArgsInstance() { - return new get_file_metadata_args(); + public add_write_notification_log_args getEmptyArgsInstance() { + return new add_write_notification_log_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(GetFileMetadataResult o) { - get_file_metadata_result result = new get_file_metadata_result(); + 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); @@ -29329,7 +29302,7 @@ public void onComplete(GetFileMetadataResult o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - get_file_metadata_result result = new get_file_metadata_result(); + 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()); @@ -29349,178 +29322,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, get_file_metadata_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_file_metadata(args.req,resultHandler); + 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 put_file_metadata extends org.apache.thrift.AsyncProcessFunction { - public put_file_metadata() { - super("put_file_metadata"); - } - - public put_file_metadata_args getEmptyArgsInstance() { - return new put_file_metadata_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(PutFileMetadataResult o) { - put_file_metadata_result result = new put_file_metadata_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; - put_file_metadata_result result = new put_file_metadata_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, put_file_metadata_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.put_file_metadata(args.req,resultHandler); - } - } - - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class clear_file_metadata extends org.apache.thrift.AsyncProcessFunction { - public clear_file_metadata() { - super("clear_file_metadata"); - } - - public clear_file_metadata_args getEmptyArgsInstance() { - return new clear_file_metadata_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(ClearFileMetadataResult o) { - clear_file_metadata_result result = new clear_file_metadata_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; - clear_file_metadata_result result = new clear_file_metadata_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, clear_file_metadata_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.clear_file_metadata(args.req,resultHandler); - } - } - - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class cache_file_metadata extends org.apache.thrift.AsyncProcessFunction { - public cache_file_metadata() { - super("cache_file_metadata"); - } - - public cache_file_metadata_args getEmptyArgsInstance() { - return new cache_file_metadata_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(CacheFileMetadataResult o) { - cache_file_metadata_result result = new cache_file_metadata_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; - cache_file_metadata_result result = new cache_file_metadata_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, cache_file_metadata_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.cache_file_metadata(args.req,resultHandler); - } - } - - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_metastore_db_uuid extends org.apache.thrift.AsyncProcessFunction { - public get_metastore_db_uuid() { - super("get_metastore_db_uuid"); + @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"); } - public get_metastore_db_uuid_args getEmptyArgsInstance() { - return new get_metastore_db_uuid_args(); + public cm_recycle_args getEmptyArgsInstance() { + return new cm_recycle_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(String o) { - get_metastore_db_uuid_result result = new get_metastore_db_uuid_result(); + return new AsyncMethodCallback() { + public void onComplete(CmRecycleResponse o) { + cm_recycle_result result = new cm_recycle_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -29533,7 +29353,319 @@ public void onComplete(String o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - get_metastore_db_uuid_result result = new get_metastore_db_uuid_result(); + cm_recycle_result result = new cm_recycle_result(); + if (e instanceof MetaException) { + result.o1 = (MetaException) e; + result.setO1IsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, cm_recycle_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.cm_recycle(args.request,resultHandler); + } + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_file_metadata_by_expr extends org.apache.thrift.AsyncProcessFunction { + public get_file_metadata_by_expr() { + super("get_file_metadata_by_expr"); + } + + public get_file_metadata_by_expr_args getEmptyArgsInstance() { + return new get_file_metadata_by_expr_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(GetFileMetadataByExprResult o) { + get_file_metadata_by_expr_result result = new get_file_metadata_by_expr_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + get_file_metadata_by_expr_result result = new get_file_metadata_by_expr_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, get_file_metadata_by_expr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.get_file_metadata_by_expr(args.req,resultHandler); + } + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_file_metadata extends org.apache.thrift.AsyncProcessFunction { + public get_file_metadata() { + super("get_file_metadata"); + } + + public get_file_metadata_args getEmptyArgsInstance() { + return new get_file_metadata_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(GetFileMetadataResult o) { + get_file_metadata_result result = new get_file_metadata_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + get_file_metadata_result result = new get_file_metadata_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, get_file_metadata_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.get_file_metadata(args.req,resultHandler); + } + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class put_file_metadata extends org.apache.thrift.AsyncProcessFunction { + public put_file_metadata() { + super("put_file_metadata"); + } + + public put_file_metadata_args getEmptyArgsInstance() { + return new put_file_metadata_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(PutFileMetadataResult o) { + put_file_metadata_result result = new put_file_metadata_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; + put_file_metadata_result result = new put_file_metadata_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, put_file_metadata_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.put_file_metadata(args.req,resultHandler); + } + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class clear_file_metadata extends org.apache.thrift.AsyncProcessFunction { + public clear_file_metadata() { + super("clear_file_metadata"); + } + + public clear_file_metadata_args getEmptyArgsInstance() { + return new clear_file_metadata_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(ClearFileMetadataResult o) { + clear_file_metadata_result result = new clear_file_metadata_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; + clear_file_metadata_result result = new clear_file_metadata_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, clear_file_metadata_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.clear_file_metadata(args.req,resultHandler); + } + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class cache_file_metadata extends org.apache.thrift.AsyncProcessFunction { + public cache_file_metadata() { + super("cache_file_metadata"); + } + + public cache_file_metadata_args getEmptyArgsInstance() { + return new cache_file_metadata_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(CacheFileMetadataResult o) { + cache_file_metadata_result result = new cache_file_metadata_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; + cache_file_metadata_result result = new cache_file_metadata_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, cache_file_metadata_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.cache_file_metadata(args.req,resultHandler); + } + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_metastore_db_uuid extends org.apache.thrift.AsyncProcessFunction { + public get_metastore_db_uuid() { + super("get_metastore_db_uuid"); + } + + public get_metastore_db_uuid_args getEmptyArgsInstance() { + return new get_metastore_db_uuid_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(String o) { + get_metastore_db_uuid_result result = new get_metastore_db_uuid_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + get_metastore_db_uuid_result result = new get_metastore_db_uuid_result(); if (e instanceof MetaException) { result.o1 = (MetaException) e; result.setO1IsSet(true); @@ -40589,13 +40721,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 _list1048 = iprot.readListBegin(); + struct.success = new ArrayList(_list1048.size); + String _elem1049; + for (int _i1050 = 0; _i1050 < _list1048.size; ++_i1050) { - _elem921 = iprot.readString(); - struct.success.add(_elem921); + _elem1049 = iprot.readString(); + struct.success.add(_elem1049); } iprot.readListEnd(); } @@ -40630,9 +40762,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 _iter1051 : struct.success) { - oprot.writeString(_iter923); + oprot.writeString(_iter1051); } oprot.writeListEnd(); } @@ -40671,9 +40803,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 _iter1052 : struct.success) { - oprot.writeString(_iter924); + oprot.writeString(_iter1052); } } } @@ -40688,13 +40820,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 _list1053 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1053.size); + String _elem1054; + for (int _i1055 = 0; _i1055 < _list1053.size; ++_i1055) { - _elem926 = iprot.readString(); - struct.success.add(_elem926); + _elem1054 = iprot.readString(); + struct.success.add(_elem1054); } } struct.setSuccessIsSet(true); @@ -41348,13 +41480,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 _list1056 = iprot.readListBegin(); + struct.success = new ArrayList(_list1056.size); + String _elem1057; + for (int _i1058 = 0; _i1058 < _list1056.size; ++_i1058) { - _elem929 = iprot.readString(); - struct.success.add(_elem929); + _elem1057 = iprot.readString(); + struct.success.add(_elem1057); } iprot.readListEnd(); } @@ -41389,9 +41521,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 _iter1059 : struct.success) { - oprot.writeString(_iter931); + oprot.writeString(_iter1059); } oprot.writeListEnd(); } @@ -41430,9 +41562,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 _iter1060 : struct.success) { - oprot.writeString(_iter932); + oprot.writeString(_iter1060); } } } @@ -41447,13 +41579,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 _list1061 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1061.size); + String _elem1062; + for (int _i1063 = 0; _i1063 < _list1061.size; ++_i1063) { - _elem934 = iprot.readString(); - struct.success.add(_elem934); + _elem1062 = iprot.readString(); + struct.success.add(_elem1062); } } struct.setSuccessIsSet(true); @@ -46060,16 +46192,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 _map1064 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map1064.size); + String _key1065; + Type _val1066; + for (int _i1067 = 0; _i1067 < _map1064.size; ++_i1067) { - _key937 = iprot.readString(); - _val938 = new Type(); - _val938.read(iprot); - struct.success.put(_key937, _val938); + _key1065 = iprot.readString(); + _val1066 = new Type(); + _val1066.read(iprot); + struct.success.put(_key1065, _val1066); } iprot.readMapEnd(); } @@ -46104,10 +46236,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 _iter1068 : struct.success.entrySet()) { - oprot.writeString(_iter940.getKey()); - _iter940.getValue().write(oprot); + oprot.writeString(_iter1068.getKey()); + _iter1068.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -46146,10 +46278,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 _iter1069 : struct.success.entrySet()) { - oprot.writeString(_iter941.getKey()); - _iter941.getValue().write(oprot); + oprot.writeString(_iter1069.getKey()); + _iter1069.getValue().write(oprot); } } } @@ -46164,16 +46296,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 _map1070 = 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*_map1070.size); + String _key1071; + Type _val1072; + for (int _i1073 = 0; _i1073 < _map1070.size; ++_i1073) { - _key943 = iprot.readString(); - _val944 = new Type(); - _val944.read(iprot); - struct.success.put(_key943, _val944); + _key1071 = iprot.readString(); + _val1072 = new Type(); + _val1072.read(iprot); + struct.success.put(_key1071, _val1072); } } struct.setSuccessIsSet(true); @@ -47208,14 +47340,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 _list1074 = iprot.readListBegin(); + struct.success = new ArrayList(_list1074.size); + FieldSchema _elem1075; + for (int _i1076 = 0; _i1076 < _list1074.size; ++_i1076) { - _elem947 = new FieldSchema(); - _elem947.read(iprot); - struct.success.add(_elem947); + _elem1075 = new FieldSchema(); + _elem1075.read(iprot); + struct.success.add(_elem1075); } iprot.readListEnd(); } @@ -47268,9 +47400,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 _iter1077 : struct.success) { - _iter949.write(oprot); + _iter1077.write(oprot); } oprot.writeListEnd(); } @@ -47325,9 +47457,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 _iter1078 : struct.success) { - _iter950.write(oprot); + _iter1078.write(oprot); } } } @@ -47348,14 +47480,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 _list1079 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1079.size); + FieldSchema _elem1080; + for (int _i1081 = 0; _i1081 < _list1079.size; ++_i1081) { - _elem952 = new FieldSchema(); - _elem952.read(iprot); - struct.success.add(_elem952); + _elem1080 = new FieldSchema(); + _elem1080.read(iprot); + struct.success.add(_elem1080); } } struct.setSuccessIsSet(true); @@ -48509,14 +48641,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 _list1082 = iprot.readListBegin(); + struct.success = new ArrayList(_list1082.size); + FieldSchema _elem1083; + for (int _i1084 = 0; _i1084 < _list1082.size; ++_i1084) { - _elem955 = new FieldSchema(); - _elem955.read(iprot); - struct.success.add(_elem955); + _elem1083 = new FieldSchema(); + _elem1083.read(iprot); + struct.success.add(_elem1083); } iprot.readListEnd(); } @@ -48569,9 +48701,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 _iter1085 : struct.success) { - _iter957.write(oprot); + _iter1085.write(oprot); } oprot.writeListEnd(); } @@ -48626,9 +48758,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 _iter1086 : struct.success) { - _iter958.write(oprot); + _iter1086.write(oprot); } } } @@ -48649,14 +48781,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 _list1087 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1087.size); + FieldSchema _elem1088; + for (int _i1089 = 0; _i1089 < _list1087.size; ++_i1089) { - _elem960 = new FieldSchema(); - _elem960.read(iprot); - struct.success.add(_elem960); + _elem1088 = new FieldSchema(); + _elem1088.read(iprot); + struct.success.add(_elem1088); } } struct.setSuccessIsSet(true); @@ -49701,14 +49833,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 _list1090 = iprot.readListBegin(); + struct.success = new ArrayList(_list1090.size); + FieldSchema _elem1091; + for (int _i1092 = 0; _i1092 < _list1090.size; ++_i1092) { - _elem963 = new FieldSchema(); - _elem963.read(iprot); - struct.success.add(_elem963); + _elem1091 = new FieldSchema(); + _elem1091.read(iprot); + struct.success.add(_elem1091); } iprot.readListEnd(); } @@ -49761,9 +49893,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 _iter1093 : struct.success) { - _iter965.write(oprot); + _iter1093.write(oprot); } oprot.writeListEnd(); } @@ -49818,9 +49950,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 _iter1094 : struct.success) { - _iter966.write(oprot); + _iter1094.write(oprot); } } } @@ -49841,14 +49973,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 _list1095 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1095.size); + FieldSchema _elem1096; + for (int _i1097 = 0; _i1097 < _list1095.size; ++_i1097) { - _elem968 = new FieldSchema(); - _elem968.read(iprot); - struct.success.add(_elem968); + _elem1096 = new FieldSchema(); + _elem1096.read(iprot); + struct.success.add(_elem1096); } } struct.setSuccessIsSet(true); @@ -51002,14 +51134,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 _list1098 = iprot.readListBegin(); + struct.success = new ArrayList(_list1098.size); + FieldSchema _elem1099; + for (int _i1100 = 0; _i1100 < _list1098.size; ++_i1100) { - _elem971 = new FieldSchema(); - _elem971.read(iprot); - struct.success.add(_elem971); + _elem1099 = new FieldSchema(); + _elem1099.read(iprot); + struct.success.add(_elem1099); } iprot.readListEnd(); } @@ -51062,9 +51194,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 _iter1101 : struct.success) { - _iter973.write(oprot); + _iter1101.write(oprot); } oprot.writeListEnd(); } @@ -51119,9 +51251,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 _iter1102 : struct.success) { - _iter974.write(oprot); + _iter1102.write(oprot); } } } @@ -51142,14 +51274,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 _list1103 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1103.size); + FieldSchema _elem1104; + for (int _i1105 = 0; _i1105 < _list1103.size; ++_i1105) { - _elem976 = new FieldSchema(); - _elem976.read(iprot); - struct.success.add(_elem976); + _elem1104 = new FieldSchema(); + _elem1104.read(iprot); + struct.success.add(_elem1104); } } struct.setSuccessIsSet(true); @@ -54278,14 +54410,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 _list1106 = iprot.readListBegin(); + struct.primaryKeys = new ArrayList(_list1106.size); + SQLPrimaryKey _elem1107; + for (int _i1108 = 0; _i1108 < _list1106.size; ++_i1108) { - _elem979 = new SQLPrimaryKey(); - _elem979.read(iprot); - struct.primaryKeys.add(_elem979); + _elem1107 = new SQLPrimaryKey(); + _elem1107.read(iprot); + struct.primaryKeys.add(_elem1107); } iprot.readListEnd(); } @@ -54297,14 +54429,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 _list1109 = iprot.readListBegin(); + struct.foreignKeys = new ArrayList(_list1109.size); + SQLForeignKey _elem1110; + for (int _i1111 = 0; _i1111 < _list1109.size; ++_i1111) { - _elem982 = new SQLForeignKey(); - _elem982.read(iprot); - struct.foreignKeys.add(_elem982); + _elem1110 = new SQLForeignKey(); + _elem1110.read(iprot); + struct.foreignKeys.add(_elem1110); } iprot.readListEnd(); } @@ -54316,14 +54448,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 _list1112 = iprot.readListBegin(); + struct.uniqueConstraints = new ArrayList(_list1112.size); + SQLUniqueConstraint _elem1113; + for (int _i1114 = 0; _i1114 < _list1112.size; ++_i1114) { - _elem985 = new SQLUniqueConstraint(); - _elem985.read(iprot); - struct.uniqueConstraints.add(_elem985); + _elem1113 = new SQLUniqueConstraint(); + _elem1113.read(iprot); + struct.uniqueConstraints.add(_elem1113); } iprot.readListEnd(); } @@ -54335,14 +54467,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 _list1115 = iprot.readListBegin(); + struct.notNullConstraints = new ArrayList(_list1115.size); + SQLNotNullConstraint _elem1116; + for (int _i1117 = 0; _i1117 < _list1115.size; ++_i1117) { - _elem988 = new SQLNotNullConstraint(); - _elem988.read(iprot); - struct.notNullConstraints.add(_elem988); + _elem1116 = new SQLNotNullConstraint(); + _elem1116.read(iprot); + struct.notNullConstraints.add(_elem1116); } iprot.readListEnd(); } @@ -54354,14 +54486,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 _list1118 = iprot.readListBegin(); + struct.defaultConstraints = new ArrayList(_list1118.size); + SQLDefaultConstraint _elem1119; + for (int _i1120 = 0; _i1120 < _list1118.size; ++_i1120) { - _elem991 = new SQLDefaultConstraint(); - _elem991.read(iprot); - struct.defaultConstraints.add(_elem991); + _elem1119 = new SQLDefaultConstraint(); + _elem1119.read(iprot); + struct.defaultConstraints.add(_elem1119); } iprot.readListEnd(); } @@ -54373,14 +54505,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 _list1121 = iprot.readListBegin(); + struct.checkConstraints = new ArrayList(_list1121.size); + SQLCheckConstraint _elem1122; + for (int _i1123 = 0; _i1123 < _list1121.size; ++_i1123) { - _elem994 = new SQLCheckConstraint(); - _elem994.read(iprot); - struct.checkConstraints.add(_elem994); + _elem1122 = new SQLCheckConstraint(); + _elem1122.read(iprot); + struct.checkConstraints.add(_elem1122); } iprot.readListEnd(); } @@ -54411,9 +54543,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 _iter1124 : struct.primaryKeys) { - _iter996.write(oprot); + _iter1124.write(oprot); } oprot.writeListEnd(); } @@ -54423,9 +54555,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 _iter1125 : struct.foreignKeys) { - _iter997.write(oprot); + _iter1125.write(oprot); } oprot.writeListEnd(); } @@ -54435,9 +54567,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 _iter1126 : struct.uniqueConstraints) { - _iter998.write(oprot); + _iter1126.write(oprot); } oprot.writeListEnd(); } @@ -54447,9 +54579,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 _iter1127 : struct.notNullConstraints) { - _iter999.write(oprot); + _iter1127.write(oprot); } oprot.writeListEnd(); } @@ -54459,9 +54591,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 _iter1128 : struct.defaultConstraints) { - _iter1000.write(oprot); + _iter1128.write(oprot); } oprot.writeListEnd(); } @@ -54471,9 +54603,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 _iter1129 : struct.checkConstraints) { - _iter1001.write(oprot); + _iter1129.write(oprot); } oprot.writeListEnd(); } @@ -54525,54 +54657,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 _iter1130 : struct.primaryKeys) { - _iter1002.write(oprot); + _iter1130.write(oprot); } } } if (struct.isSetForeignKeys()) { { oprot.writeI32(struct.foreignKeys.size()); - for (SQLForeignKey _iter1003 : struct.foreignKeys) + for (SQLForeignKey _iter1131 : struct.foreignKeys) { - _iter1003.write(oprot); + _iter1131.write(oprot); } } } if (struct.isSetUniqueConstraints()) { { oprot.writeI32(struct.uniqueConstraints.size()); - for (SQLUniqueConstraint _iter1004 : struct.uniqueConstraints) + for (SQLUniqueConstraint _iter1132 : struct.uniqueConstraints) { - _iter1004.write(oprot); + _iter1132.write(oprot); } } } if (struct.isSetNotNullConstraints()) { { oprot.writeI32(struct.notNullConstraints.size()); - for (SQLNotNullConstraint _iter1005 : struct.notNullConstraints) + for (SQLNotNullConstraint _iter1133 : struct.notNullConstraints) { - _iter1005.write(oprot); + _iter1133.write(oprot); } } } if (struct.isSetDefaultConstraints()) { { oprot.writeI32(struct.defaultConstraints.size()); - for (SQLDefaultConstraint _iter1006 : struct.defaultConstraints) + for (SQLDefaultConstraint _iter1134 : struct.defaultConstraints) { - _iter1006.write(oprot); + _iter1134.write(oprot); } } } if (struct.isSetCheckConstraints()) { { oprot.writeI32(struct.checkConstraints.size()); - for (SQLCheckConstraint _iter1007 : struct.checkConstraints) + for (SQLCheckConstraint _iter1135 : struct.checkConstraints) { - _iter1007.write(oprot); + _iter1135.write(oprot); } } } @@ -54589,84 +54721,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 _list1136 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.primaryKeys = new ArrayList(_list1136.size); + SQLPrimaryKey _elem1137; + for (int _i1138 = 0; _i1138 < _list1136.size; ++_i1138) { - _elem1009 = new SQLPrimaryKey(); - _elem1009.read(iprot); - struct.primaryKeys.add(_elem1009); + _elem1137 = new SQLPrimaryKey(); + _elem1137.read(iprot); + struct.primaryKeys.add(_elem1137); } } 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 _list1139 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.foreignKeys = new ArrayList(_list1139.size); + SQLForeignKey _elem1140; + for (int _i1141 = 0; _i1141 < _list1139.size; ++_i1141) { - _elem1012 = new SQLForeignKey(); - _elem1012.read(iprot); - struct.foreignKeys.add(_elem1012); + _elem1140 = new SQLForeignKey(); + _elem1140.read(iprot); + struct.foreignKeys.add(_elem1140); } } 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 _list1142 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.uniqueConstraints = new ArrayList(_list1142.size); + SQLUniqueConstraint _elem1143; + for (int _i1144 = 0; _i1144 < _list1142.size; ++_i1144) { - _elem1015 = new SQLUniqueConstraint(); - _elem1015.read(iprot); - struct.uniqueConstraints.add(_elem1015); + _elem1143 = new SQLUniqueConstraint(); + _elem1143.read(iprot); + struct.uniqueConstraints.add(_elem1143); } } 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 _list1145 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.notNullConstraints = new ArrayList(_list1145.size); + SQLNotNullConstraint _elem1146; + for (int _i1147 = 0; _i1147 < _list1145.size; ++_i1147) { - _elem1018 = new SQLNotNullConstraint(); - _elem1018.read(iprot); - struct.notNullConstraints.add(_elem1018); + _elem1146 = new SQLNotNullConstraint(); + _elem1146.read(iprot); + struct.notNullConstraints.add(_elem1146); } } 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 _list1148 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.defaultConstraints = new ArrayList(_list1148.size); + SQLDefaultConstraint _elem1149; + for (int _i1150 = 0; _i1150 < _list1148.size; ++_i1150) { - _elem1021 = new SQLDefaultConstraint(); - _elem1021.read(iprot); - struct.defaultConstraints.add(_elem1021); + _elem1149 = new SQLDefaultConstraint(); + _elem1149.read(iprot); + struct.defaultConstraints.add(_elem1149); } } 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 _list1151 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.checkConstraints = new ArrayList(_list1151.size); + SQLCheckConstraint _elem1152; + for (int _i1153 = 0; _i1153 < _list1151.size; ++_i1153) { - _elem1024 = new SQLCheckConstraint(); - _elem1024.read(iprot); - struct.checkConstraints.add(_elem1024); + _elem1152 = new SQLCheckConstraint(); + _elem1152.read(iprot); + struct.checkConstraints.add(_elem1152); } } struct.setCheckConstraintsIsSet(true); @@ -63816,13 +63948,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 _list1154 = iprot.readListBegin(); + struct.partNames = new ArrayList(_list1154.size); + String _elem1155; + for (int _i1156 = 0; _i1156 < _list1154.size; ++_i1156) { - _elem1027 = iprot.readString(); - struct.partNames.add(_elem1027); + _elem1155 = iprot.readString(); + struct.partNames.add(_elem1155); } iprot.readListEnd(); } @@ -63858,9 +63990,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 _iter1157 : struct.partNames) { - oprot.writeString(_iter1029); + oprot.writeString(_iter1157); } oprot.writeListEnd(); } @@ -63903,9 +64035,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 _iter1158 : struct.partNames) { - oprot.writeString(_iter1030); + oprot.writeString(_iter1158); } } } @@ -63925,13 +64057,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 _list1159 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partNames = new ArrayList(_list1159.size); + String _elem1160; + for (int _i1161 = 0; _i1161 < _list1159.size; ++_i1161) { - _elem1032 = iprot.readString(); - struct.partNames.add(_elem1032); + _elem1160 = iprot.readString(); + struct.partNames.add(_elem1160); } } struct.setPartNamesIsSet(true); @@ -65156,13 +65288,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 _list1162 = iprot.readListBegin(); + struct.success = new ArrayList(_list1162.size); + String _elem1163; + for (int _i1164 = 0; _i1164 < _list1162.size; ++_i1164) { - _elem1035 = iprot.readString(); - struct.success.add(_elem1035); + _elem1163 = iprot.readString(); + struct.success.add(_elem1163); } iprot.readListEnd(); } @@ -65197,9 +65329,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 _iter1165 : struct.success) { - oprot.writeString(_iter1037); + oprot.writeString(_iter1165); } oprot.writeListEnd(); } @@ -65238,9 +65370,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 _iter1166 : struct.success) { - oprot.writeString(_iter1038); + oprot.writeString(_iter1166); } } } @@ -65255,13 +65387,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 _list1167 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1167.size); + String _elem1168; + for (int _i1169 = 0; _i1169 < _list1167.size; ++_i1169) { - _elem1040 = iprot.readString(); - struct.success.add(_elem1040); + _elem1168 = iprot.readString(); + struct.success.add(_elem1168); } } struct.setSuccessIsSet(true); @@ -66235,13 +66367,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 _list1170 = iprot.readListBegin(); + struct.success = new ArrayList(_list1170.size); + String _elem1171; + for (int _i1172 = 0; _i1172 < _list1170.size; ++_i1172) { - _elem1043 = iprot.readString(); - struct.success.add(_elem1043); + _elem1171 = iprot.readString(); + struct.success.add(_elem1171); } iprot.readListEnd(); } @@ -66276,9 +66408,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 _iter1173 : struct.success) { - oprot.writeString(_iter1045); + oprot.writeString(_iter1173); } oprot.writeListEnd(); } @@ -66317,9 +66449,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 _iter1174 : struct.success) { - oprot.writeString(_iter1046); + oprot.writeString(_iter1174); } } } @@ -66334,13 +66466,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 _list1175 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1175.size); + String _elem1176; + for (int _i1177 = 0; _i1177 < _list1175.size; ++_i1177) { - _elem1048 = iprot.readString(); - struct.success.add(_elem1048); + _elem1176 = iprot.readString(); + struct.success.add(_elem1176); } } struct.setSuccessIsSet(true); @@ -67106,13 +67238,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 _list1178 = iprot.readListBegin(); + struct.success = new ArrayList(_list1178.size); + String _elem1179; + for (int _i1180 = 0; _i1180 < _list1178.size; ++_i1180) { - _elem1051 = iprot.readString(); - struct.success.add(_elem1051); + _elem1179 = iprot.readString(); + struct.success.add(_elem1179); } iprot.readListEnd(); } @@ -67147,9 +67279,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 _iter1181 : struct.success) { - oprot.writeString(_iter1053); + oprot.writeString(_iter1181); } oprot.writeListEnd(); } @@ -67188,9 +67320,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 _iter1182 : struct.success) { - oprot.writeString(_iter1054); + oprot.writeString(_iter1182); } } } @@ -67205,13 +67337,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 _list1183 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1183.size); + String _elem1184; + for (int _i1185 = 0; _i1185 < _list1183.size; ++_i1185) { - _elem1056 = iprot.readString(); - struct.success.add(_elem1056); + _elem1184 = iprot.readString(); + struct.success.add(_elem1184); } } struct.setSuccessIsSet(true); @@ -67716,13 +67848,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 _list1186 = iprot.readListBegin(); + struct.tbl_types = new ArrayList(_list1186.size); + String _elem1187; + for (int _i1188 = 0; _i1188 < _list1186.size; ++_i1188) { - _elem1059 = iprot.readString(); - struct.tbl_types.add(_elem1059); + _elem1187 = iprot.readString(); + struct.tbl_types.add(_elem1187); } iprot.readListEnd(); } @@ -67758,9 +67890,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 _iter1189 : struct.tbl_types) { - oprot.writeString(_iter1061); + oprot.writeString(_iter1189); } oprot.writeListEnd(); } @@ -67803,9 +67935,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 _iter1190 : struct.tbl_types) { - oprot.writeString(_iter1062); + oprot.writeString(_iter1190); } } } @@ -67825,13 +67957,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 _list1191 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tbl_types = new ArrayList(_list1191.size); + String _elem1192; + for (int _i1193 = 0; _i1193 < _list1191.size; ++_i1193) { - _elem1064 = iprot.readString(); - struct.tbl_types.add(_elem1064); + _elem1192 = iprot.readString(); + struct.tbl_types.add(_elem1192); } } struct.setTbl_typesIsSet(true); @@ -68237,14 +68369,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 _list1194 = iprot.readListBegin(); + struct.success = new ArrayList(_list1194.size); + TableMeta _elem1195; + for (int _i1196 = 0; _i1196 < _list1194.size; ++_i1196) { - _elem1067 = new TableMeta(); - _elem1067.read(iprot); - struct.success.add(_elem1067); + _elem1195 = new TableMeta(); + _elem1195.read(iprot); + struct.success.add(_elem1195); } iprot.readListEnd(); } @@ -68279,9 +68411,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 _iter1197 : struct.success) { - _iter1069.write(oprot); + _iter1197.write(oprot); } oprot.writeListEnd(); } @@ -68320,9 +68452,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 _iter1198 : struct.success) { - _iter1070.write(oprot); + _iter1198.write(oprot); } } } @@ -68337,14 +68469,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 _list1199 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1199.size); + TableMeta _elem1200; + for (int _i1201 = 0; _i1201 < _list1199.size; ++_i1201) { - _elem1072 = new TableMeta(); - _elem1072.read(iprot); - struct.success.add(_elem1072); + _elem1200 = new TableMeta(); + _elem1200.read(iprot); + struct.success.add(_elem1200); } } struct.setSuccessIsSet(true); @@ -69110,13 +69242,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 _list1202 = iprot.readListBegin(); + struct.success = new ArrayList(_list1202.size); + String _elem1203; + for (int _i1204 = 0; _i1204 < _list1202.size; ++_i1204) { - _elem1075 = iprot.readString(); - struct.success.add(_elem1075); + _elem1203 = iprot.readString(); + struct.success.add(_elem1203); } iprot.readListEnd(); } @@ -69151,9 +69283,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 _iter1205 : struct.success) { - oprot.writeString(_iter1077); + oprot.writeString(_iter1205); } oprot.writeListEnd(); } @@ -69192,9 +69324,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 _iter1206 : struct.success) { - oprot.writeString(_iter1078); + oprot.writeString(_iter1206); } } } @@ -69209,13 +69341,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 _list1207 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1207.size); + String _elem1208; + for (int _i1209 = 0; _i1209 < _list1207.size; ++_i1209) { - _elem1080 = iprot.readString(); - struct.success.add(_elem1080); + _elem1208 = iprot.readString(); + struct.success.add(_elem1208); } } struct.setSuccessIsSet(true); @@ -70668,13 +70800,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 _list1210 = iprot.readListBegin(); + struct.tbl_names = new ArrayList(_list1210.size); + String _elem1211; + for (int _i1212 = 0; _i1212 < _list1210.size; ++_i1212) { - _elem1083 = iprot.readString(); - struct.tbl_names.add(_elem1083); + _elem1211 = iprot.readString(); + struct.tbl_names.add(_elem1211); } iprot.readListEnd(); } @@ -70705,9 +70837,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 _iter1213 : struct.tbl_names) { - oprot.writeString(_iter1085); + oprot.writeString(_iter1213); } oprot.writeListEnd(); } @@ -70744,9 +70876,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 _iter1214 : struct.tbl_names) { - oprot.writeString(_iter1086); + oprot.writeString(_iter1214); } } } @@ -70762,13 +70894,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 _list1215 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tbl_names = new ArrayList(_list1215.size); + String _elem1216; + for (int _i1217 = 0; _i1217 < _list1215.size; ++_i1217) { - _elem1088 = iprot.readString(); - struct.tbl_names.add(_elem1088); + _elem1216 = iprot.readString(); + struct.tbl_names.add(_elem1216); } } struct.setTbl_namesIsSet(true); @@ -71093,14 +71225,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 _list1218 = iprot.readListBegin(); + struct.success = new ArrayList
(_list1218.size); + Table _elem1219; + for (int _i1220 = 0; _i1220 < _list1218.size; ++_i1220) { - _elem1091 = new Table(); - _elem1091.read(iprot); - struct.success.add(_elem1091); + _elem1219 = new Table(); + _elem1219.read(iprot); + struct.success.add(_elem1219); } iprot.readListEnd(); } @@ -71126,9 +71258,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 _iter1221 : struct.success) { - _iter1093.write(oprot); + _iter1221.write(oprot); } oprot.writeListEnd(); } @@ -71159,9 +71291,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 _iter1222 : struct.success) { - _iter1094.write(oprot); + _iter1222.write(oprot); } } } @@ -71173,14 +71305,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 _list1223 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList
(_list1223.size); + Table _elem1224; + for (int _i1225 = 0; _i1225 < _list1223.size; ++_i1225) { - _elem1096 = new Table(); - _elem1096.read(iprot); - struct.success.add(_elem1096); + _elem1224 = new Table(); + _elem1224.read(iprot); + struct.success.add(_elem1224); } } struct.setSuccessIsSet(true); @@ -73573,13 +73705,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 _list1226 = iprot.readListBegin(); + struct.tbl_names = new ArrayList(_list1226.size); + String _elem1227; + for (int _i1228 = 0; _i1228 < _list1226.size; ++_i1228) { - _elem1099 = iprot.readString(); - struct.tbl_names.add(_elem1099); + _elem1227 = iprot.readString(); + struct.tbl_names.add(_elem1227); } iprot.readListEnd(); } @@ -73610,9 +73742,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 _iter1229 : struct.tbl_names) { - oprot.writeString(_iter1101); + oprot.writeString(_iter1229); } oprot.writeListEnd(); } @@ -73649,9 +73781,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 _iter1230 : struct.tbl_names) { - oprot.writeString(_iter1102); + oprot.writeString(_iter1230); } } } @@ -73667,13 +73799,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 _list1231 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tbl_names = new ArrayList(_list1231.size); + String _elem1232; + for (int _i1233 = 0; _i1233 < _list1231.size; ++_i1233) { - _elem1104 = iprot.readString(); - struct.tbl_names.add(_elem1104); + _elem1232 = iprot.readString(); + struct.tbl_names.add(_elem1232); } } struct.setTbl_namesIsSet(true); @@ -74246,16 +74378,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 _map1234 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map1234.size); + String _key1235; + Materialization _val1236; + for (int _i1237 = 0; _i1237 < _map1234.size; ++_i1237) { - _key1107 = iprot.readString(); - _val1108 = new Materialization(); - _val1108.read(iprot); - struct.success.put(_key1107, _val1108); + _key1235 = iprot.readString(); + _val1236 = new Materialization(); + _val1236.read(iprot); + struct.success.put(_key1235, _val1236); } iprot.readMapEnd(); } @@ -74308,10 +74440,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 _iter1238 : struct.success.entrySet()) { - oprot.writeString(_iter1110.getKey()); - _iter1110.getValue().write(oprot); + oprot.writeString(_iter1238.getKey()); + _iter1238.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -74366,10 +74498,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 _iter1239 : struct.success.entrySet()) { - oprot.writeString(_iter1111.getKey()); - _iter1111.getValue().write(oprot); + oprot.writeString(_iter1239.getKey()); + _iter1239.getValue().write(oprot); } } } @@ -74390,16 +74522,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 _map1240 = 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*_map1240.size); + String _key1241; + Materialization _val1242; + for (int _i1243 = 0; _i1243 < _map1240.size; ++_i1243) { - _key1113 = iprot.readString(); - _val1114 = new Materialization(); - _val1114.read(iprot); - struct.success.put(_key1113, _val1114); + _key1241 = iprot.readString(); + _val1242 = new Materialization(); + _val1242.read(iprot); + struct.success.put(_key1241, _val1242); } } struct.setSuccessIsSet(true); @@ -76792,13 +76924,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 _list1244 = iprot.readListBegin(); + struct.success = new ArrayList(_list1244.size); + String _elem1245; + for (int _i1246 = 0; _i1246 < _list1244.size; ++_i1246) { - _elem1117 = iprot.readString(); - struct.success.add(_elem1117); + _elem1245 = iprot.readString(); + struct.success.add(_elem1245); } iprot.readListEnd(); } @@ -76851,9 +76983,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 _iter1247 : struct.success) { - oprot.writeString(_iter1119); + oprot.writeString(_iter1247); } oprot.writeListEnd(); } @@ -76908,9 +77040,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 _iter1248 : struct.success) { - oprot.writeString(_iter1120); + oprot.writeString(_iter1248); } } } @@ -76931,13 +77063,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 _list1249 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1249.size); + String _elem1250; + for (int _i1251 = 0; _i1251 < _list1249.size; ++_i1251) { - _elem1122 = iprot.readString(); - struct.success.add(_elem1122); + _elem1250 = iprot.readString(); + struct.success.add(_elem1250); } } struct.setSuccessIsSet(true); @@ -82796,14 +82928,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 _list1252 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1252.size); + Partition _elem1253; + for (int _i1254 = 0; _i1254 < _list1252.size; ++_i1254) { - _elem1125 = new Partition(); - _elem1125.read(iprot); - struct.new_parts.add(_elem1125); + _elem1253 = new Partition(); + _elem1253.read(iprot); + struct.new_parts.add(_elem1253); } iprot.readListEnd(); } @@ -82829,9 +82961,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 _iter1255 : struct.new_parts) { - _iter1127.write(oprot); + _iter1255.write(oprot); } oprot.writeListEnd(); } @@ -82862,9 +82994,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 _iter1256 : struct.new_parts) { - _iter1128.write(oprot); + _iter1256.write(oprot); } } } @@ -82876,14 +83008,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 _list1257 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1257.size); + Partition _elem1258; + for (int _i1259 = 0; _i1259 < _list1257.size; ++_i1259) { - _elem1130 = new Partition(); - _elem1130.read(iprot); - struct.new_parts.add(_elem1130); + _elem1258 = new Partition(); + _elem1258.read(iprot); + struct.new_parts.add(_elem1258); } } struct.setNew_partsIsSet(true); @@ -83884,14 +84016,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 _list1260 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1260.size); + PartitionSpec _elem1261; + for (int _i1262 = 0; _i1262 < _list1260.size; ++_i1262) { - _elem1133 = new PartitionSpec(); - _elem1133.read(iprot); - struct.new_parts.add(_elem1133); + _elem1261 = new PartitionSpec(); + _elem1261.read(iprot); + struct.new_parts.add(_elem1261); } iprot.readListEnd(); } @@ -83917,9 +84049,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 _iter1263 : struct.new_parts) { - _iter1135.write(oprot); + _iter1263.write(oprot); } oprot.writeListEnd(); } @@ -83950,9 +84082,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 _iter1264 : struct.new_parts) { - _iter1136.write(oprot); + _iter1264.write(oprot); } } } @@ -83964,14 +84096,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 _list1265 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1265.size); + PartitionSpec _elem1266; + for (int _i1267 = 0; _i1267 < _list1265.size; ++_i1267) { - _elem1138 = new PartitionSpec(); - _elem1138.read(iprot); - struct.new_parts.add(_elem1138); + _elem1266 = new PartitionSpec(); + _elem1266.read(iprot); + struct.new_parts.add(_elem1266); } } struct.setNew_partsIsSet(true); @@ -85147,13 +85279,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 _list1268 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1268.size); + String _elem1269; + for (int _i1270 = 0; _i1270 < _list1268.size; ++_i1270) { - _elem1141 = iprot.readString(); - struct.part_vals.add(_elem1141); + _elem1269 = iprot.readString(); + struct.part_vals.add(_elem1269); } iprot.readListEnd(); } @@ -85189,9 +85321,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 _iter1271 : struct.part_vals) { - oprot.writeString(_iter1143); + oprot.writeString(_iter1271); } oprot.writeListEnd(); } @@ -85234,9 +85366,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 _iter1272 : struct.part_vals) { - oprot.writeString(_iter1144); + oprot.writeString(_iter1272); } } } @@ -85256,13 +85388,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 _list1273 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1273.size); + String _elem1274; + for (int _i1275 = 0; _i1275 < _list1273.size; ++_i1275) { - _elem1146 = iprot.readString(); - struct.part_vals.add(_elem1146); + _elem1274 = iprot.readString(); + struct.part_vals.add(_elem1274); } } struct.setPart_valsIsSet(true); @@ -87571,13 +87703,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 _list1276 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1276.size); + String _elem1277; + for (int _i1278 = 0; _i1278 < _list1276.size; ++_i1278) { - _elem1149 = iprot.readString(); - struct.part_vals.add(_elem1149); + _elem1277 = iprot.readString(); + struct.part_vals.add(_elem1277); } iprot.readListEnd(); } @@ -87622,9 +87754,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 _iter1279 : struct.part_vals) { - oprot.writeString(_iter1151); + oprot.writeString(_iter1279); } oprot.writeListEnd(); } @@ -87675,9 +87807,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 _iter1280 : struct.part_vals) { - oprot.writeString(_iter1152); + oprot.writeString(_iter1280); } } } @@ -87700,13 +87832,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 _list1281 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1281.size); + String _elem1282; + for (int _i1283 = 0; _i1283 < _list1281.size; ++_i1283) { - _elem1154 = iprot.readString(); - struct.part_vals.add(_elem1154); + _elem1282 = iprot.readString(); + struct.part_vals.add(_elem1282); } } struct.setPart_valsIsSet(true); @@ -91576,13 +91708,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 _list1284 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1284.size); + String _elem1285; + for (int _i1286 = 0; _i1286 < _list1284.size; ++_i1286) { - _elem1157 = iprot.readString(); - struct.part_vals.add(_elem1157); + _elem1285 = iprot.readString(); + struct.part_vals.add(_elem1285); } iprot.readListEnd(); } @@ -91626,9 +91758,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 _iter1287 : struct.part_vals) { - oprot.writeString(_iter1159); + oprot.writeString(_iter1287); } oprot.writeListEnd(); } @@ -91677,9 +91809,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 _iter1288 : struct.part_vals) { - oprot.writeString(_iter1160); + oprot.writeString(_iter1288); } } } @@ -91702,13 +91834,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 _list1289 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1289.size); + String _elem1290; + for (int _i1291 = 0; _i1291 < _list1289.size; ++_i1291) { - _elem1162 = iprot.readString(); - struct.part_vals.add(_elem1162); + _elem1290 = iprot.readString(); + struct.part_vals.add(_elem1290); } } struct.setPart_valsIsSet(true); @@ -92947,13 +93079,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 _list1292 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1292.size); + String _elem1293; + for (int _i1294 = 0; _i1294 < _list1292.size; ++_i1294) { - _elem1165 = iprot.readString(); - struct.part_vals.add(_elem1165); + _elem1293 = iprot.readString(); + struct.part_vals.add(_elem1293); } iprot.readListEnd(); } @@ -93006,9 +93138,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 _iter1295 : struct.part_vals) { - oprot.writeString(_iter1167); + oprot.writeString(_iter1295); } oprot.writeListEnd(); } @@ -93065,9 +93197,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 _iter1296 : struct.part_vals) { - oprot.writeString(_iter1168); + oprot.writeString(_iter1296); } } } @@ -93093,13 +93225,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 _list1297 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1297.size); + String _elem1298; + for (int _i1299 = 0; _i1299 < _list1297.size; ++_i1299) { - _elem1170 = iprot.readString(); - struct.part_vals.add(_elem1170); + _elem1298 = iprot.readString(); + struct.part_vals.add(_elem1298); } } struct.setPart_valsIsSet(true); @@ -97701,13 +97833,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 _list1300 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1300.size); + String _elem1301; + for (int _i1302 = 0; _i1302 < _list1300.size; ++_i1302) { - _elem1173 = iprot.readString(); - struct.part_vals.add(_elem1173); + _elem1301 = iprot.readString(); + struct.part_vals.add(_elem1301); } iprot.readListEnd(); } @@ -97743,9 +97875,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 _iter1303 : struct.part_vals) { - oprot.writeString(_iter1175); + oprot.writeString(_iter1303); } oprot.writeListEnd(); } @@ -97788,9 +97920,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 _iter1304 : struct.part_vals) { - oprot.writeString(_iter1176); + oprot.writeString(_iter1304); } } } @@ -97810,13 +97942,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 _list1305 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1305.size); + String _elem1306; + for (int _i1307 = 0; _i1307 < _list1305.size; ++_i1307) { - _elem1178 = iprot.readString(); - struct.part_vals.add(_elem1178); + _elem1306 = iprot.readString(); + struct.part_vals.add(_elem1306); } } struct.setPart_valsIsSet(true); @@ -99034,15 +99166,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 _map1308 = iprot.readMapBegin(); + struct.partitionSpecs = new HashMap(2*_map1308.size); + String _key1309; + String _val1310; + for (int _i1311 = 0; _i1311 < _map1308.size; ++_i1311) { - _key1181 = iprot.readString(); - _val1182 = iprot.readString(); - struct.partitionSpecs.put(_key1181, _val1182); + _key1309 = iprot.readString(); + _val1310 = iprot.readString(); + struct.partitionSpecs.put(_key1309, _val1310); } iprot.readMapEnd(); } @@ -99100,10 +99232,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 _iter1312 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1184.getKey()); - oprot.writeString(_iter1184.getValue()); + oprot.writeString(_iter1312.getKey()); + oprot.writeString(_iter1312.getValue()); } oprot.writeMapEnd(); } @@ -99166,10 +99298,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 _iter1313 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1185.getKey()); - oprot.writeString(_iter1185.getValue()); + oprot.writeString(_iter1313.getKey()); + oprot.writeString(_iter1313.getValue()); } } } @@ -99193,15 +99325,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 _map1314 = 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*_map1314.size); + String _key1315; + String _val1316; + for (int _i1317 = 0; _i1317 < _map1314.size; ++_i1317) { - _key1187 = iprot.readString(); - _val1188 = iprot.readString(); - struct.partitionSpecs.put(_key1187, _val1188); + _key1315 = iprot.readString(); + _val1316 = iprot.readString(); + struct.partitionSpecs.put(_key1315, _val1316); } } struct.setPartitionSpecsIsSet(true); @@ -100647,15 +100779,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 _map1318 = iprot.readMapBegin(); + struct.partitionSpecs = new HashMap(2*_map1318.size); + String _key1319; + String _val1320; + for (int _i1321 = 0; _i1321 < _map1318.size; ++_i1321) { - _key1191 = iprot.readString(); - _val1192 = iprot.readString(); - struct.partitionSpecs.put(_key1191, _val1192); + _key1319 = iprot.readString(); + _val1320 = iprot.readString(); + struct.partitionSpecs.put(_key1319, _val1320); } iprot.readMapEnd(); } @@ -100713,10 +100845,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 _iter1322 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1194.getKey()); - oprot.writeString(_iter1194.getValue()); + oprot.writeString(_iter1322.getKey()); + oprot.writeString(_iter1322.getValue()); } oprot.writeMapEnd(); } @@ -100779,10 +100911,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 _iter1323 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1195.getKey()); - oprot.writeString(_iter1195.getValue()); + oprot.writeString(_iter1323.getKey()); + oprot.writeString(_iter1323.getValue()); } } } @@ -100806,15 +100938,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 _map1324 = 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*_map1324.size); + String _key1325; + String _val1326; + for (int _i1327 = 0; _i1327 < _map1324.size; ++_i1327) { - _key1197 = iprot.readString(); - _val1198 = iprot.readString(); - struct.partitionSpecs.put(_key1197, _val1198); + _key1325 = iprot.readString(); + _val1326 = iprot.readString(); + struct.partitionSpecs.put(_key1325, _val1326); } } struct.setPartitionSpecsIsSet(true); @@ -101479,14 +101611,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 _list1328 = iprot.readListBegin(); + struct.success = new ArrayList(_list1328.size); + Partition _elem1329; + for (int _i1330 = 0; _i1330 < _list1328.size; ++_i1330) { - _elem1201 = new Partition(); - _elem1201.read(iprot); - struct.success.add(_elem1201); + _elem1329 = new Partition(); + _elem1329.read(iprot); + struct.success.add(_elem1329); } iprot.readListEnd(); } @@ -101548,9 +101680,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 _iter1331 : struct.success) { - _iter1203.write(oprot); + _iter1331.write(oprot); } oprot.writeListEnd(); } @@ -101613,9 +101745,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 _iter1332 : struct.success) { - _iter1204.write(oprot); + _iter1332.write(oprot); } } } @@ -101639,14 +101771,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 _list1333 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1333.size); + Partition _elem1334; + for (int _i1335 = 0; _i1335 < _list1333.size; ++_i1335) { - _elem1206 = new Partition(); - _elem1206.read(iprot); - struct.success.add(_elem1206); + _elem1334 = new Partition(); + _elem1334.read(iprot); + struct.success.add(_elem1334); } } struct.setSuccessIsSet(true); @@ -102345,13 +102477,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 _list1336 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1336.size); + String _elem1337; + for (int _i1338 = 0; _i1338 < _list1336.size; ++_i1338) { - _elem1209 = iprot.readString(); - struct.part_vals.add(_elem1209); + _elem1337 = iprot.readString(); + struct.part_vals.add(_elem1337); } iprot.readListEnd(); } @@ -102371,13 +102503,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 _list1339 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1339.size); + String _elem1340; + for (int _i1341 = 0; _i1341 < _list1339.size; ++_i1341) { - _elem1212 = iprot.readString(); - struct.group_names.add(_elem1212); + _elem1340 = iprot.readString(); + struct.group_names.add(_elem1340); } iprot.readListEnd(); } @@ -102413,9 +102545,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 _iter1342 : struct.part_vals) { - oprot.writeString(_iter1214); + oprot.writeString(_iter1342); } oprot.writeListEnd(); } @@ -102430,9 +102562,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 _iter1343 : struct.group_names) { - oprot.writeString(_iter1215); + oprot.writeString(_iter1343); } oprot.writeListEnd(); } @@ -102481,9 +102613,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 _iter1344 : struct.part_vals) { - oprot.writeString(_iter1216); + oprot.writeString(_iter1344); } } } @@ -102493,9 +102625,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 _iter1345 : struct.group_names) { - oprot.writeString(_iter1217); + oprot.writeString(_iter1345); } } } @@ -102515,13 +102647,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 _list1346 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1346.size); + String _elem1347; + for (int _i1348 = 0; _i1348 < _list1346.size; ++_i1348) { - _elem1219 = iprot.readString(); - struct.part_vals.add(_elem1219); + _elem1347 = iprot.readString(); + struct.part_vals.add(_elem1347); } } struct.setPart_valsIsSet(true); @@ -102532,13 +102664,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 _list1349 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1349.size); + String _elem1350; + for (int _i1351 = 0; _i1351 < _list1349.size; ++_i1351) { - _elem1222 = iprot.readString(); - struct.group_names.add(_elem1222); + _elem1350 = iprot.readString(); + struct.group_names.add(_elem1350); } } struct.setGroup_namesIsSet(true); @@ -105307,14 +105439,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 _list1352 = iprot.readListBegin(); + struct.success = new ArrayList(_list1352.size); + Partition _elem1353; + for (int _i1354 = 0; _i1354 < _list1352.size; ++_i1354) { - _elem1225 = new Partition(); - _elem1225.read(iprot); - struct.success.add(_elem1225); + _elem1353 = new Partition(); + _elem1353.read(iprot); + struct.success.add(_elem1353); } iprot.readListEnd(); } @@ -105358,9 +105490,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 _iter1355 : struct.success) { - _iter1227.write(oprot); + _iter1355.write(oprot); } oprot.writeListEnd(); } @@ -105407,9 +105539,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 _iter1356 : struct.success) { - _iter1228.write(oprot); + _iter1356.write(oprot); } } } @@ -105427,14 +105559,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 _list1357 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1357.size); + Partition _elem1358; + for (int _i1359 = 0; _i1359 < _list1357.size; ++_i1359) { - _elem1230 = new Partition(); - _elem1230.read(iprot); - struct.success.add(_elem1230); + _elem1358 = new Partition(); + _elem1358.read(iprot); + struct.success.add(_elem1358); } } struct.setSuccessIsSet(true); @@ -106124,13 +106256,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 _list1360 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1360.size); + String _elem1361; + for (int _i1362 = 0; _i1362 < _list1360.size; ++_i1362) { - _elem1233 = iprot.readString(); - struct.group_names.add(_elem1233); + _elem1361 = iprot.readString(); + struct.group_names.add(_elem1361); } iprot.readListEnd(); } @@ -106174,9 +106306,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 _iter1363 : struct.group_names) { - oprot.writeString(_iter1235); + oprot.writeString(_iter1363); } oprot.writeListEnd(); } @@ -106231,9 +106363,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 _iter1364 : struct.group_names) { - oprot.writeString(_iter1236); + oprot.writeString(_iter1364); } } } @@ -106261,13 +106393,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 _list1365 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1365.size); + String _elem1366; + for (int _i1367 = 0; _i1367 < _list1365.size; ++_i1367) { - _elem1238 = iprot.readString(); - struct.group_names.add(_elem1238); + _elem1366 = iprot.readString(); + struct.group_names.add(_elem1366); } } struct.setGroup_namesIsSet(true); @@ -106754,14 +106886,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 _list1368 = iprot.readListBegin(); + struct.success = new ArrayList(_list1368.size); + Partition _elem1369; + for (int _i1370 = 0; _i1370 < _list1368.size; ++_i1370) { - _elem1241 = new Partition(); - _elem1241.read(iprot); - struct.success.add(_elem1241); + _elem1369 = new Partition(); + _elem1369.read(iprot); + struct.success.add(_elem1369); } iprot.readListEnd(); } @@ -106805,9 +106937,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 _iter1371 : struct.success) { - _iter1243.write(oprot); + _iter1371.write(oprot); } oprot.writeListEnd(); } @@ -106854,9 +106986,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 _iter1372 : struct.success) { - _iter1244.write(oprot); + _iter1372.write(oprot); } } } @@ -106874,14 +107006,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 _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) { - _elem1246 = new Partition(); - _elem1246.read(iprot); - struct.success.add(_elem1246); + _elem1374 = new Partition(); + _elem1374.read(iprot); + struct.success.add(_elem1374); } } struct.setSuccessIsSet(true); @@ -107944,14 +108076,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 _list1376 = iprot.readListBegin(); + struct.success = new ArrayList(_list1376.size); + PartitionSpec _elem1377; + for (int _i1378 = 0; _i1378 < _list1376.size; ++_i1378) { - _elem1249 = new PartitionSpec(); - _elem1249.read(iprot); - struct.success.add(_elem1249); + _elem1377 = new PartitionSpec(); + _elem1377.read(iprot); + struct.success.add(_elem1377); } iprot.readListEnd(); } @@ -107995,9 +108127,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 _iter1379 : struct.success) { - _iter1251.write(oprot); + _iter1379.write(oprot); } oprot.writeListEnd(); } @@ -108044,9 +108176,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 _iter1380 : struct.success) { - _iter1252.write(oprot); + _iter1380.write(oprot); } } } @@ -108064,14 +108196,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 _list1381 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1381.size); + PartitionSpec _elem1382; + for (int _i1383 = 0; _i1383 < _list1381.size; ++_i1383) { - _elem1254 = new PartitionSpec(); - _elem1254.read(iprot); - struct.success.add(_elem1254); + _elem1382 = new PartitionSpec(); + _elem1382.read(iprot); + struct.success.add(_elem1382); } } struct.setSuccessIsSet(true); @@ -109131,13 +109263,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 _list1384 = iprot.readListBegin(); + struct.success = new ArrayList(_list1384.size); + String _elem1385; + for (int _i1386 = 0; _i1386 < _list1384.size; ++_i1386) { - _elem1257 = iprot.readString(); - struct.success.add(_elem1257); + _elem1385 = iprot.readString(); + struct.success.add(_elem1385); } iprot.readListEnd(); } @@ -109181,9 +109313,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 _iter1387 : struct.success) { - oprot.writeString(_iter1259); + oprot.writeString(_iter1387); } oprot.writeListEnd(); } @@ -109230,9 +109362,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 _iter1388 : struct.success) { - oprot.writeString(_iter1260); + oprot.writeString(_iter1388); } } } @@ -109250,13 +109382,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 _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) { - _elem1262 = iprot.readString(); - struct.success.add(_elem1262); + _elem1390 = iprot.readString(); + struct.success.add(_elem1390); } } struct.setSuccessIsSet(true); @@ -110787,13 +110919,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 _list1392 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1392.size); + String _elem1393; + for (int _i1394 = 0; _i1394 < _list1392.size; ++_i1394) { - _elem1265 = iprot.readString(); - struct.part_vals.add(_elem1265); + _elem1393 = iprot.readString(); + struct.part_vals.add(_elem1393); } iprot.readListEnd(); } @@ -110837,9 +110969,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 _iter1395 : struct.part_vals) { - oprot.writeString(_iter1267); + oprot.writeString(_iter1395); } oprot.writeListEnd(); } @@ -110888,9 +111020,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 _iter1396 : struct.part_vals) { - oprot.writeString(_iter1268); + oprot.writeString(_iter1396); } } } @@ -110913,13 +111045,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 _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) { - _elem1270 = iprot.readString(); - struct.part_vals.add(_elem1270); + _elem1398 = iprot.readString(); + struct.part_vals.add(_elem1398); } } struct.setPart_valsIsSet(true); @@ -111410,14 +111542,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 _list1400 = iprot.readListBegin(); + struct.success = new ArrayList(_list1400.size); + Partition _elem1401; + for (int _i1402 = 0; _i1402 < _list1400.size; ++_i1402) { - _elem1273 = new Partition(); - _elem1273.read(iprot); - struct.success.add(_elem1273); + _elem1401 = new Partition(); + _elem1401.read(iprot); + struct.success.add(_elem1401); } iprot.readListEnd(); } @@ -111461,9 +111593,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 _iter1403 : struct.success) { - _iter1275.write(oprot); + _iter1403.write(oprot); } oprot.writeListEnd(); } @@ -111510,9 +111642,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 _iter1404 : struct.success) { - _iter1276.write(oprot); + _iter1404.write(oprot); } } } @@ -111530,14 +111662,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 _list1405 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1405.size); + Partition _elem1406; + for (int _i1407 = 0; _i1407 < _list1405.size; ++_i1407) { - _elem1278 = new Partition(); - _elem1278.read(iprot); - struct.success.add(_elem1278); + _elem1406 = new Partition(); + _elem1406.read(iprot); + struct.success.add(_elem1406); } } struct.setSuccessIsSet(true); @@ -112309,13 +112441,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 _list1408 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1408.size); + String _elem1409; + for (int _i1410 = 0; _i1410 < _list1408.size; ++_i1410) { - _elem1281 = iprot.readString(); - struct.part_vals.add(_elem1281); + _elem1409 = iprot.readString(); + struct.part_vals.add(_elem1409); } iprot.readListEnd(); } @@ -112343,13 +112475,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 _list1411 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1411.size); + String _elem1412; + for (int _i1413 = 0; _i1413 < _list1411.size; ++_i1413) { - _elem1284 = iprot.readString(); - struct.group_names.add(_elem1284); + _elem1412 = iprot.readString(); + struct.group_names.add(_elem1412); } iprot.readListEnd(); } @@ -112385,9 +112517,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 _iter1414 : struct.part_vals) { - oprot.writeString(_iter1286); + oprot.writeString(_iter1414); } oprot.writeListEnd(); } @@ -112405,9 +112537,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 _iter1415 : struct.group_names) { - oprot.writeString(_iter1287); + oprot.writeString(_iter1415); } oprot.writeListEnd(); } @@ -112459,9 +112591,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 _iter1416 : struct.part_vals) { - oprot.writeString(_iter1288); + oprot.writeString(_iter1416); } } } @@ -112474,9 +112606,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 _iter1417 : struct.group_names) { - oprot.writeString(_iter1289); + oprot.writeString(_iter1417); } } } @@ -112496,13 +112628,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 _list1418 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1418.size); + String _elem1419; + for (int _i1420 = 0; _i1420 < _list1418.size; ++_i1420) { - _elem1291 = iprot.readString(); - struct.part_vals.add(_elem1291); + _elem1419 = iprot.readString(); + struct.part_vals.add(_elem1419); } } struct.setPart_valsIsSet(true); @@ -112517,13 +112649,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 _list1421 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1421.size); + String _elem1422; + for (int _i1423 = 0; _i1423 < _list1421.size; ++_i1423) { - _elem1294 = iprot.readString(); - struct.group_names.add(_elem1294); + _elem1422 = iprot.readString(); + struct.group_names.add(_elem1422); } } struct.setGroup_namesIsSet(true); @@ -113010,14 +113142,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 _list1424 = iprot.readListBegin(); + struct.success = new ArrayList(_list1424.size); + Partition _elem1425; + for (int _i1426 = 0; _i1426 < _list1424.size; ++_i1426) { - _elem1297 = new Partition(); - _elem1297.read(iprot); - struct.success.add(_elem1297); + _elem1425 = new Partition(); + _elem1425.read(iprot); + struct.success.add(_elem1425); } iprot.readListEnd(); } @@ -113061,9 +113193,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 _iter1427 : struct.success) { - _iter1299.write(oprot); + _iter1427.write(oprot); } oprot.writeListEnd(); } @@ -113110,9 +113242,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 _iter1428 : struct.success) { - _iter1300.write(oprot); + _iter1428.write(oprot); } } } @@ -113130,14 +113262,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 _list1429 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1429.size); + Partition _elem1430; + for (int _i1431 = 0; _i1431 < _list1429.size; ++_i1431) { - _elem1302 = new Partition(); - _elem1302.read(iprot); - struct.success.add(_elem1302); + _elem1430 = new Partition(); + _elem1430.read(iprot); + struct.success.add(_elem1430); } } struct.setSuccessIsSet(true); @@ -113730,13 +113862,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 _list1432 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1432.size); + String _elem1433; + for (int _i1434 = 0; _i1434 < _list1432.size; ++_i1434) { - _elem1305 = iprot.readString(); - struct.part_vals.add(_elem1305); + _elem1433 = iprot.readString(); + struct.part_vals.add(_elem1433); } iprot.readListEnd(); } @@ -113780,9 +113912,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 _iter1435 : struct.part_vals) { - oprot.writeString(_iter1307); + oprot.writeString(_iter1435); } oprot.writeListEnd(); } @@ -113831,9 +113963,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 _iter1436 : struct.part_vals) { - oprot.writeString(_iter1308); + oprot.writeString(_iter1436); } } } @@ -113856,13 +113988,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 _list1437 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1437.size); + String _elem1438; + for (int _i1439 = 0; _i1439 < _list1437.size; ++_i1439) { - _elem1310 = iprot.readString(); - struct.part_vals.add(_elem1310); + _elem1438 = iprot.readString(); + struct.part_vals.add(_elem1438); } } struct.setPart_valsIsSet(true); @@ -114350,13 +114482,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 _list1440 = iprot.readListBegin(); + struct.success = new ArrayList(_list1440.size); + String _elem1441; + for (int _i1442 = 0; _i1442 < _list1440.size; ++_i1442) { - _elem1313 = iprot.readString(); - struct.success.add(_elem1313); + _elem1441 = iprot.readString(); + struct.success.add(_elem1441); } iprot.readListEnd(); } @@ -114400,9 +114532,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 _iter1443 : struct.success) { - oprot.writeString(_iter1315); + oprot.writeString(_iter1443); } oprot.writeListEnd(); } @@ -114449,9 +114581,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 _iter1444 : struct.success) { - oprot.writeString(_iter1316); + oprot.writeString(_iter1444); } } } @@ -114469,13 +114601,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 _list1445 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1445.size); + String _elem1446; + for (int _i1447 = 0; _i1447 < _list1445.size; ++_i1447) { - _elem1318 = iprot.readString(); - struct.success.add(_elem1318); + _elem1446 = iprot.readString(); + struct.success.add(_elem1446); } } struct.setSuccessIsSet(true); @@ -115642,14 +115774,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 _list1448 = iprot.readListBegin(); + struct.success = new ArrayList(_list1448.size); + Partition _elem1449; + for (int _i1450 = 0; _i1450 < _list1448.size; ++_i1450) { - _elem1321 = new Partition(); - _elem1321.read(iprot); - struct.success.add(_elem1321); + _elem1449 = new Partition(); + _elem1449.read(iprot); + struct.success.add(_elem1449); } iprot.readListEnd(); } @@ -115693,9 +115825,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 _iter1451 : struct.success) { - _iter1323.write(oprot); + _iter1451.write(oprot); } oprot.writeListEnd(); } @@ -115742,9 +115874,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 _iter1452 : struct.success) { - _iter1324.write(oprot); + _iter1452.write(oprot); } } } @@ -115762,14 +115894,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 _list1453 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1453.size); + Partition _elem1454; + for (int _i1455 = 0; _i1455 < _list1453.size; ++_i1455) { - _elem1326 = new Partition(); - _elem1326.read(iprot); - struct.success.add(_elem1326); + _elem1454 = new Partition(); + _elem1454.read(iprot); + struct.success.add(_elem1454); } } struct.setSuccessIsSet(true); @@ -116936,14 +117068,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 _list1456 = iprot.readListBegin(); + struct.success = new ArrayList(_list1456.size); + PartitionSpec _elem1457; + for (int _i1458 = 0; _i1458 < _list1456.size; ++_i1458) { - _elem1329 = new PartitionSpec(); - _elem1329.read(iprot); - struct.success.add(_elem1329); + _elem1457 = new PartitionSpec(); + _elem1457.read(iprot); + struct.success.add(_elem1457); } iprot.readListEnd(); } @@ -116987,9 +117119,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 _iter1459 : struct.success) { - _iter1331.write(oprot); + _iter1459.write(oprot); } oprot.writeListEnd(); } @@ -117036,9 +117168,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 _iter1460 : struct.success) { - _iter1332.write(oprot); + _iter1460.write(oprot); } } } @@ -117056,14 +117188,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 _list1461 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1461.size); + PartitionSpec _elem1462; + for (int _i1463 = 0; _i1463 < _list1461.size; ++_i1463) { - _elem1334 = new PartitionSpec(); - _elem1334.read(iprot); - struct.success.add(_elem1334); + _elem1462 = new PartitionSpec(); + _elem1462.read(iprot); + struct.success.add(_elem1462); } } struct.setSuccessIsSet(true); @@ -119647,13 +119779,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 _list1464 = iprot.readListBegin(); + struct.names = new ArrayList(_list1464.size); + String _elem1465; + for (int _i1466 = 0; _i1466 < _list1464.size; ++_i1466) { - _elem1337 = iprot.readString(); - struct.names.add(_elem1337); + _elem1465 = iprot.readString(); + struct.names.add(_elem1465); } iprot.readListEnd(); } @@ -119689,9 +119821,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 _iter1467 : struct.names) { - oprot.writeString(_iter1339); + oprot.writeString(_iter1467); } oprot.writeListEnd(); } @@ -119734,9 +119866,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 _iter1468 : struct.names) { - oprot.writeString(_iter1340); + oprot.writeString(_iter1468); } } } @@ -119756,13 +119888,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 _list1469 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.names = new ArrayList(_list1469.size); + String _elem1470; + for (int _i1471 = 0; _i1471 < _list1469.size; ++_i1471) { - _elem1342 = iprot.readString(); - struct.names.add(_elem1342); + _elem1470 = iprot.readString(); + struct.names.add(_elem1470); } } struct.setNamesIsSet(true); @@ -120249,14 +120381,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 _list1472 = iprot.readListBegin(); + struct.success = new ArrayList(_list1472.size); + Partition _elem1473; + for (int _i1474 = 0; _i1474 < _list1472.size; ++_i1474) { - _elem1345 = new Partition(); - _elem1345.read(iprot); - struct.success.add(_elem1345); + _elem1473 = new Partition(); + _elem1473.read(iprot); + struct.success.add(_elem1473); } iprot.readListEnd(); } @@ -120300,9 +120432,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 _iter1475 : struct.success) { - _iter1347.write(oprot); + _iter1475.write(oprot); } oprot.writeListEnd(); } @@ -120349,9 +120481,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 _iter1476 : struct.success) { - _iter1348.write(oprot); + _iter1476.write(oprot); } } } @@ -120369,14 +120501,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 _list1477 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1477.size); + Partition _elem1478; + for (int _i1479 = 0; _i1479 < _list1477.size; ++_i1479) { - _elem1350 = new Partition(); - _elem1350.read(iprot); - struct.success.add(_elem1350); + _elem1478 = new Partition(); + _elem1478.read(iprot); + struct.success.add(_elem1478); } } struct.setSuccessIsSet(true); @@ -121926,14 +122058,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 _list1480 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1480.size); + Partition _elem1481; + for (int _i1482 = 0; _i1482 < _list1480.size; ++_i1482) { - _elem1353 = new Partition(); - _elem1353.read(iprot); - struct.new_parts.add(_elem1353); + _elem1481 = new Partition(); + _elem1481.read(iprot); + struct.new_parts.add(_elem1481); } iprot.readListEnd(); } @@ -121969,9 +122101,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 _iter1483 : struct.new_parts) { - _iter1355.write(oprot); + _iter1483.write(oprot); } oprot.writeListEnd(); } @@ -122014,9 +122146,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 _iter1484 : struct.new_parts) { - _iter1356.write(oprot); + _iter1484.write(oprot); } } } @@ -122036,14 +122168,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 _list1485 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1485.size); + Partition _elem1486; + for (int _i1487 = 0; _i1487 < _list1485.size; ++_i1487) { - _elem1358 = new Partition(); - _elem1358.read(iprot); - struct.new_parts.add(_elem1358); + _elem1486 = new Partition(); + _elem1486.read(iprot); + struct.new_parts.add(_elem1486); } } struct.setNew_partsIsSet(true); @@ -123096,14 +123228,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 _list1488 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1488.size); + Partition _elem1489; + for (int _i1490 = 0; _i1490 < _list1488.size; ++_i1490) { - _elem1361 = new Partition(); - _elem1361.read(iprot); - struct.new_parts.add(_elem1361); + _elem1489 = new Partition(); + _elem1489.read(iprot); + struct.new_parts.add(_elem1489); } iprot.readListEnd(); } @@ -123148,9 +123280,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 _iter1491 : struct.new_parts) { - _iter1363.write(oprot); + _iter1491.write(oprot); } oprot.writeListEnd(); } @@ -123201,9 +123333,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 _iter1492 : struct.new_parts) { - _iter1364.write(oprot); + _iter1492.write(oprot); } } } @@ -123226,14 +123358,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 _list1493 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1493.size); + Partition _elem1494; + for (int _i1495 = 0; _i1495 < _list1493.size; ++_i1495) { - _elem1366 = new Partition(); - _elem1366.read(iprot); - struct.new_parts.add(_elem1366); + _elem1494 = new Partition(); + _elem1494.read(iprot); + struct.new_parts.add(_elem1494); } } struct.setNew_partsIsSet(true); @@ -125434,13 +125566,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 _list1496 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1496.size); + String _elem1497; + for (int _i1498 = 0; _i1498 < _list1496.size; ++_i1498) { - _elem1369 = iprot.readString(); - struct.part_vals.add(_elem1369); + _elem1497 = iprot.readString(); + struct.part_vals.add(_elem1497); } iprot.readListEnd(); } @@ -125485,9 +125617,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 _iter1499 : struct.part_vals) { - oprot.writeString(_iter1371); + oprot.writeString(_iter1499); } oprot.writeListEnd(); } @@ -125538,9 +125670,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 _iter1500 : struct.part_vals) { - oprot.writeString(_iter1372); + oprot.writeString(_iter1500); } } } @@ -125563,13 +125695,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 _list1501 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1501.size); + String _elem1502; + for (int _i1503 = 0; _i1503 < _list1501.size; ++_i1503) { - _elem1374 = iprot.readString(); - struct.part_vals.add(_elem1374); + _elem1502 = iprot.readString(); + struct.part_vals.add(_elem1502); } } struct.setPart_valsIsSet(true); @@ -126443,13 +126575,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 _list1504 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1504.size); + String _elem1505; + for (int _i1506 = 0; _i1506 < _list1504.size; ++_i1506) { - _elem1377 = iprot.readString(); - struct.part_vals.add(_elem1377); + _elem1505 = iprot.readString(); + struct.part_vals.add(_elem1505); } iprot.readListEnd(); } @@ -126483,9 +126615,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 _iter1507 : struct.part_vals) { - oprot.writeString(_iter1379); + oprot.writeString(_iter1507); } oprot.writeListEnd(); } @@ -126522,9 +126654,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 _iter1508 : struct.part_vals) { - oprot.writeString(_iter1380); + oprot.writeString(_iter1508); } } } @@ -126539,13 +126671,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 _list1509 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1509.size); + String _elem1510; + for (int _i1511 = 0; _i1511 < _list1509.size; ++_i1511) { - _elem1382 = iprot.readString(); - struct.part_vals.add(_elem1382); + _elem1510 = iprot.readString(); + struct.part_vals.add(_elem1510); } } struct.setPart_valsIsSet(true); @@ -128700,13 +128832,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 _list1512 = iprot.readListBegin(); + struct.success = new ArrayList(_list1512.size); + String _elem1513; + for (int _i1514 = 0; _i1514 < _list1512.size; ++_i1514) { - _elem1385 = iprot.readString(); - struct.success.add(_elem1385); + _elem1513 = iprot.readString(); + struct.success.add(_elem1513); } iprot.readListEnd(); } @@ -128741,9 +128873,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 _iter1515 : struct.success) { - oprot.writeString(_iter1387); + oprot.writeString(_iter1515); } oprot.writeListEnd(); } @@ -128782,9 +128914,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 _iter1516 : struct.success) { - oprot.writeString(_iter1388); + oprot.writeString(_iter1516); } } } @@ -128799,13 +128931,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 _list1517 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1517.size); + String _elem1518; + for (int _i1519 = 0; _i1519 < _list1517.size; ++_i1519) { - _elem1390 = iprot.readString(); - struct.success.add(_elem1390); + _elem1518 = iprot.readString(); + struct.success.add(_elem1518); } } struct.setSuccessIsSet(true); @@ -129568,15 +129700,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 _map1520 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map1520.size); + String _key1521; + String _val1522; + for (int _i1523 = 0; _i1523 < _map1520.size; ++_i1523) { - _key1393 = iprot.readString(); - _val1394 = iprot.readString(); - struct.success.put(_key1393, _val1394); + _key1521 = iprot.readString(); + _val1522 = iprot.readString(); + struct.success.put(_key1521, _val1522); } iprot.readMapEnd(); } @@ -129611,10 +129743,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 _iter1524 : struct.success.entrySet()) { - oprot.writeString(_iter1396.getKey()); - oprot.writeString(_iter1396.getValue()); + oprot.writeString(_iter1524.getKey()); + oprot.writeString(_iter1524.getValue()); } oprot.writeMapEnd(); } @@ -129653,10 +129785,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 _iter1525 : struct.success.entrySet()) { - oprot.writeString(_iter1397.getKey()); - oprot.writeString(_iter1397.getValue()); + oprot.writeString(_iter1525.getKey()); + oprot.writeString(_iter1525.getValue()); } } } @@ -129671,15 +129803,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 _map1526 = 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*_map1526.size); + String _key1527; + String _val1528; + for (int _i1529 = 0; _i1529 < _map1526.size; ++_i1529) { - _key1399 = iprot.readString(); - _val1400 = iprot.readString(); - struct.success.put(_key1399, _val1400); + _key1527 = iprot.readString(); + _val1528 = iprot.readString(); + struct.success.put(_key1527, _val1528); } } struct.setSuccessIsSet(true); @@ -130274,15 +130406,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 _map1530 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map1530.size); + String _key1531; + String _val1532; + for (int _i1533 = 0; _i1533 < _map1530.size; ++_i1533) { - _key1403 = iprot.readString(); - _val1404 = iprot.readString(); - struct.part_vals.put(_key1403, _val1404); + _key1531 = iprot.readString(); + _val1532 = iprot.readString(); + struct.part_vals.put(_key1531, _val1532); } iprot.readMapEnd(); } @@ -130326,10 +130458,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 _iter1534 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1406.getKey()); - oprot.writeString(_iter1406.getValue()); + oprot.writeString(_iter1534.getKey()); + oprot.writeString(_iter1534.getValue()); } oprot.writeMapEnd(); } @@ -130380,10 +130512,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 _iter1535 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1407.getKey()); - oprot.writeString(_iter1407.getValue()); + oprot.writeString(_iter1535.getKey()); + oprot.writeString(_iter1535.getValue()); } } } @@ -130406,15 +130538,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 _map1536 = 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*_map1536.size); + String _key1537; + String _val1538; + for (int _i1539 = 0; _i1539 < _map1536.size; ++_i1539) { - _key1409 = iprot.readString(); - _val1410 = iprot.readString(); - struct.part_vals.put(_key1409, _val1410); + _key1537 = iprot.readString(); + _val1538 = iprot.readString(); + struct.part_vals.put(_key1537, _val1538); } } struct.setPart_valsIsSet(true); @@ -131898,15 +132030,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 _map1540 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map1540.size); + String _key1541; + String _val1542; + for (int _i1543 = 0; _i1543 < _map1540.size; ++_i1543) { - _key1413 = iprot.readString(); - _val1414 = iprot.readString(); - struct.part_vals.put(_key1413, _val1414); + _key1541 = iprot.readString(); + _val1542 = iprot.readString(); + struct.part_vals.put(_key1541, _val1542); } iprot.readMapEnd(); } @@ -131950,10 +132082,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 _iter1544 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1416.getKey()); - oprot.writeString(_iter1416.getValue()); + oprot.writeString(_iter1544.getKey()); + oprot.writeString(_iter1544.getValue()); } oprot.writeMapEnd(); } @@ -132004,10 +132136,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 _iter1545 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1417.getKey()); - oprot.writeString(_iter1417.getValue()); + oprot.writeString(_iter1545.getKey()); + oprot.writeString(_iter1545.getValue()); } } } @@ -132030,15 +132162,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 _map1546 = 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*_map1546.size); + String _key1547; + String _val1548; + for (int _i1549 = 0; _i1549 < _map1546.size; ++_i1549) { - _key1419 = iprot.readString(); - _val1420 = iprot.readString(); - struct.part_vals.put(_key1419, _val1420); + _key1547 = iprot.readString(); + _val1548 = iprot.readString(); + struct.part_vals.put(_key1547, _val1548); } } struct.setPart_valsIsSet(true); @@ -154394,13 +154526,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 _list1550 = iprot.readListBegin(); + struct.success = new ArrayList(_list1550.size); + String _elem1551; + for (int _i1552 = 0; _i1552 < _list1550.size; ++_i1552) { - _elem1423 = iprot.readString(); - struct.success.add(_elem1423); + _elem1551 = iprot.readString(); + struct.success.add(_elem1551); } iprot.readListEnd(); } @@ -154435,9 +154567,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 _iter1553 : struct.success) { - oprot.writeString(_iter1425); + oprot.writeString(_iter1553); } oprot.writeListEnd(); } @@ -154476,9 +154608,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 _iter1554 : struct.success) { - oprot.writeString(_iter1426); + oprot.writeString(_iter1554); } } } @@ -154493,13 +154625,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 _list1555 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1555.size); + String _elem1556; + for (int _i1557 = 0; _i1557 < _list1555.size; ++_i1557) { - _elem1428 = iprot.readString(); - struct.success.add(_elem1428); + _elem1556 = iprot.readString(); + struct.success.add(_elem1556); } } struct.setSuccessIsSet(true); @@ -158554,13 +158686,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 _list1558 = iprot.readListBegin(); + struct.success = new ArrayList(_list1558.size); + String _elem1559; + for (int _i1560 = 0; _i1560 < _list1558.size; ++_i1560) { - _elem1431 = iprot.readString(); - struct.success.add(_elem1431); + _elem1559 = iprot.readString(); + struct.success.add(_elem1559); } iprot.readListEnd(); } @@ -158595,9 +158727,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 _iter1561 : struct.success) { - oprot.writeString(_iter1433); + oprot.writeString(_iter1561); } oprot.writeListEnd(); } @@ -158636,9 +158768,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 _iter1562 : struct.success) { - oprot.writeString(_iter1434); + oprot.writeString(_iter1562); } } } @@ -158653,13 +158785,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 _list1563 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1563.size); + String _elem1564; + for (int _i1565 = 0; _i1565 < _list1563.size; ++_i1565) { - _elem1436 = iprot.readString(); - struct.success.add(_elem1436); + _elem1564 = iprot.readString(); + struct.success.add(_elem1564); } } struct.setSuccessIsSet(true); @@ -161950,14 +162082,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 _list1566 = iprot.readListBegin(); + struct.success = new ArrayList(_list1566.size); + Role _elem1567; + for (int _i1568 = 0; _i1568 < _list1566.size; ++_i1568) { - _elem1439 = new Role(); - _elem1439.read(iprot); - struct.success.add(_elem1439); + _elem1567 = new Role(); + _elem1567.read(iprot); + struct.success.add(_elem1567); } iprot.readListEnd(); } @@ -161992,9 +162124,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 _iter1569 : struct.success) { - _iter1441.write(oprot); + _iter1569.write(oprot); } oprot.writeListEnd(); } @@ -162033,9 +162165,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 _iter1570 : struct.success) { - _iter1442.write(oprot); + _iter1570.write(oprot); } } } @@ -162050,14 +162182,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 _list1571 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1571.size); + Role _elem1572; + for (int _i1573 = 0; _i1573 < _list1571.size; ++_i1573) { - _elem1444 = new Role(); - _elem1444.read(iprot); - struct.success.add(_elem1444); + _elem1572 = new Role(); + _elem1572.read(iprot); + struct.success.add(_elem1572); } } struct.setSuccessIsSet(true); @@ -165062,13 +165194,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 _list1574 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1574.size); + String _elem1575; + for (int _i1576 = 0; _i1576 < _list1574.size; ++_i1576) { - _elem1447 = iprot.readString(); - struct.group_names.add(_elem1447); + _elem1575 = iprot.readString(); + struct.group_names.add(_elem1575); } iprot.readListEnd(); } @@ -165104,9 +165236,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 _iter1577 : struct.group_names) { - oprot.writeString(_iter1449); + oprot.writeString(_iter1577); } oprot.writeListEnd(); } @@ -165149,9 +165281,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 _iter1578 : struct.group_names) { - oprot.writeString(_iter1450); + oprot.writeString(_iter1578); } } } @@ -165172,13 +165304,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 _list1579 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1579.size); + String _elem1580; + for (int _i1581 = 0; _i1581 < _list1579.size; ++_i1581) { - _elem1452 = iprot.readString(); - struct.group_names.add(_elem1452); + _elem1580 = iprot.readString(); + struct.group_names.add(_elem1580); } } struct.setGroup_namesIsSet(true); @@ -166636,14 +166768,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 _list1582 = iprot.readListBegin(); + struct.success = new ArrayList(_list1582.size); + HiveObjectPrivilege _elem1583; + for (int _i1584 = 0; _i1584 < _list1582.size; ++_i1584) { - _elem1455 = new HiveObjectPrivilege(); - _elem1455.read(iprot); - struct.success.add(_elem1455); + _elem1583 = new HiveObjectPrivilege(); + _elem1583.read(iprot); + struct.success.add(_elem1583); } iprot.readListEnd(); } @@ -166678,9 +166810,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 _iter1585 : struct.success) { - _iter1457.write(oprot); + _iter1585.write(oprot); } oprot.writeListEnd(); } @@ -166719,9 +166851,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 _iter1586 : struct.success) { - _iter1458.write(oprot); + _iter1586.write(oprot); } } } @@ -166736,14 +166868,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 _list1587 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1587.size); + HiveObjectPrivilege _elem1588; + for (int _i1589 = 0; _i1589 < _list1587.size; ++_i1589) { - _elem1460 = new HiveObjectPrivilege(); - _elem1460.read(iprot); - struct.success.add(_elem1460); + _elem1588 = new HiveObjectPrivilege(); + _elem1588.read(iprot); + struct.success.add(_elem1588); } } struct.setSuccessIsSet(true); @@ -169645,13 +169777,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 _list1590 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1590.size); + String _elem1591; + for (int _i1592 = 0; _i1592 < _list1590.size; ++_i1592) { - _elem1463 = iprot.readString(); - struct.group_names.add(_elem1463); + _elem1591 = iprot.readString(); + struct.group_names.add(_elem1591); } iprot.readListEnd(); } @@ -169682,9 +169814,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 _iter1593 : struct.group_names) { - oprot.writeString(_iter1465); + oprot.writeString(_iter1593); } oprot.writeListEnd(); } @@ -169721,9 +169853,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 _iter1594 : struct.group_names) { - oprot.writeString(_iter1466); + oprot.writeString(_iter1594); } } } @@ -169739,13 +169871,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 _list1595 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1595.size); + String _elem1596; + for (int _i1597 = 0; _i1597 < _list1595.size; ++_i1597) { - _elem1468 = iprot.readString(); - struct.group_names.add(_elem1468); + _elem1596 = iprot.readString(); + struct.group_names.add(_elem1596); } } struct.setGroup_namesIsSet(true); @@ -170148,13 +170280,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 _list1598 = iprot.readListBegin(); + struct.success = new ArrayList(_list1598.size); + String _elem1599; + for (int _i1600 = 0; _i1600 < _list1598.size; ++_i1600) { - _elem1471 = iprot.readString(); - struct.success.add(_elem1471); + _elem1599 = iprot.readString(); + struct.success.add(_elem1599); } iprot.readListEnd(); } @@ -170189,9 +170321,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 _iter1601 : struct.success) { - oprot.writeString(_iter1473); + oprot.writeString(_iter1601); } oprot.writeListEnd(); } @@ -170230,9 +170362,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 _iter1602 : struct.success) { - oprot.writeString(_iter1474); + oprot.writeString(_iter1602); } } } @@ -170247,13 +170379,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 _list1603 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1603.size); + String _elem1604; + for (int _i1605 = 0; _i1605 < _list1603.size; ++_i1605) { - _elem1476 = iprot.readString(); - struct.success.add(_elem1476); + _elem1604 = iprot.readString(); + struct.success.add(_elem1604); } } struct.setSuccessIsSet(true); @@ -175544,13 +175676,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 _list1606 = iprot.readListBegin(); + struct.success = new ArrayList(_list1606.size); + String _elem1607; + for (int _i1608 = 0; _i1608 < _list1606.size; ++_i1608) { - _elem1479 = iprot.readString(); - struct.success.add(_elem1479); + _elem1607 = iprot.readString(); + struct.success.add(_elem1607); } iprot.readListEnd(); } @@ -175576,9 +175708,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 _iter1609 : struct.success) { - oprot.writeString(_iter1481); + oprot.writeString(_iter1609); } oprot.writeListEnd(); } @@ -175609,9 +175741,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 _iter1610 : struct.success) { - oprot.writeString(_iter1482); + oprot.writeString(_iter1610); } } } @@ -175623,13 +175755,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 _list1611 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1611.size); + String _elem1612; + for (int _i1613 = 0; _i1613 < _list1611.size; ++_i1613) { - _elem1484 = iprot.readString(); - struct.success.add(_elem1484); + _elem1612 = iprot.readString(); + struct.success.add(_elem1612); } } struct.setSuccessIsSet(true); @@ -178659,13 +178791,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 _list1614 = iprot.readListBegin(); + struct.success = new ArrayList(_list1614.size); + String _elem1615; + for (int _i1616 = 0; _i1616 < _list1614.size; ++_i1616) { - _elem1487 = iprot.readString(); - struct.success.add(_elem1487); + _elem1615 = iprot.readString(); + struct.success.add(_elem1615); } iprot.readListEnd(); } @@ -178691,9 +178823,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 _iter1617 : struct.success) { - oprot.writeString(_iter1489); + oprot.writeString(_iter1617); } oprot.writeListEnd(); } @@ -178724,9 +178856,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 _iter1618 : struct.success) { - oprot.writeString(_iter1490); + oprot.writeString(_iter1618); } } } @@ -178738,13 +178870,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 _list1619 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1619.size); + String _elem1620; + for (int _i1621 = 0; _i1621 < _list1619.size; ++_i1621) { - _elem1492 = iprot.readString(); - struct.success.add(_elem1492); + _elem1620 = iprot.readString(); + struct.success.add(_elem1620); } } struct.setSuccessIsSet(true); @@ -196322,6 +196454,732 @@ public void read(org.apache.thrift.protocol.TProtocol prot, flushCache_result st } + @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 add_write_notification_log_args() { + } + + public add_write_notification_log_args( + WriteNotificationLogRequest rqst) + { + this(); + this.rqst = rqst; + } + + /** + * Performs a deep copy on other. + */ + public add_write_notification_log_args(add_write_notification_log_args other) { + if (other.isSetRqst()) { + this.rqst = new WriteNotificationLogRequest(other.rqst); + } + } + + 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(); + } + + /** 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 RQST: + return isSetRqst(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof add_write_notification_log_args) + return this.equals((add_write_notification_log_args)that); + return false; + } + + 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; + } + + @Override + 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(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; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("add_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(); + } + + 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 { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class add_write_notification_log_argsStandardSchemeFactory implements SchemeFactory { + public add_write_notification_log_argsStandardScheme getScheme() { + return new add_write_notification_log_argsStandardScheme(); + } + } + + private static class add_write_notification_log_argsStandardScheme extends StandardScheme { + + 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) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + 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); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + struct.validate(); + } + + 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 add_write_notification_log_argsTupleSchemeFactory implements SchemeFactory { + public add_write_notification_log_argsTupleScheme getScheme() { + return new add_write_notification_log_argsTupleScheme(); + } + } + + private static class add_write_notification_log_argsTupleScheme extends TupleScheme { + + @Override + 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, 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 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 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(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, WriteNotificationLogResponse.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_write_notification_log_result.class, metaDataMap); + } + + 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 add_write_notification_log_result(add_write_notification_log_result other) { + if (other.isSetSuccess()) { + this.success = new WriteNotificationLogResponse(other.success); + } + } + + 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(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case SUCCESS: + return isSetSuccess(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof add_write_notification_log_result) + return this.equals((add_write_notification_log_result)that); + return false; + } + + 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; + } + + @Override + 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(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; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("add_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(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + if (success != null) { + success.validate(); + } + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class add_write_notification_log_resultStandardSchemeFactory implements SchemeFactory { + public add_write_notification_log_resultStandardScheme getScheme() { + return new add_write_notification_log_resultStandardScheme(); + } + } + + private static class add_write_notification_log_resultStandardScheme extends StandardScheme { + + 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) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new 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); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + struct.validate(); + } + + 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 add_write_notification_log_resultTupleSchemeFactory implements SchemeFactory { + public add_write_notification_log_resultTupleScheme getScheme() { + return new add_write_notification_log_resultTupleScheme(); + } + } + + private static class add_write_notification_log_resultTupleScheme extends TupleScheme { + + @Override + 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, 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); + } + } + } + + } + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class cm_recycle_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("cm_recycle_args"); @@ -226318,14 +227176,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 _list1622 = iprot.readListBegin(); + struct.success = new ArrayList(_list1622.size); + SchemaVersion _elem1623; + for (int _i1624 = 0; _i1624 < _list1622.size; ++_i1624) { - _elem1495 = new SchemaVersion(); - _elem1495.read(iprot); - struct.success.add(_elem1495); + _elem1623 = new SchemaVersion(); + _elem1623.read(iprot); + struct.success.add(_elem1623); } iprot.readListEnd(); } @@ -226369,9 +227227,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 _iter1625 : struct.success) { - _iter1497.write(oprot); + _iter1625.write(oprot); } oprot.writeListEnd(); } @@ -226418,9 +227276,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 _iter1626 : struct.success) { - _iter1498.write(oprot); + _iter1626.write(oprot); } } } @@ -226438,14 +227296,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 _list1627 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1627.size); + SchemaVersion _elem1628; + for (int _i1629 = 0; _i1629 < _list1627.size; ++_i1629) { - _elem1500 = new SchemaVersion(); - _elem1500.read(iprot); - struct.success.add(_elem1500); + _elem1628 = new SchemaVersion(); + _elem1628.read(iprot); + struct.success.add(_elem1628); } } 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..080111d85b 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 _list968 = iprot.readListBegin(); + struct.pools = new ArrayList(_list968.size); + WMPool _elem969; + for (int _i970 = 0; _i970 < _list968.size; ++_i970) { - _elem841 = new WMPool(); - _elem841.read(iprot); - struct.pools.add(_elem841); + _elem969 = new WMPool(); + _elem969.read(iprot); + struct.pools.add(_elem969); } iprot.readListEnd(); } @@ -774,14 +774,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, WMFullResourcePlan case 3: // MAPPINGS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list843 = iprot.readListBegin(); - struct.mappings = new ArrayList(_list843.size); - WMMapping _elem844; - for (int _i845 = 0; _i845 < _list843.size; ++_i845) + org.apache.thrift.protocol.TList _list971 = iprot.readListBegin(); + struct.mappings = new ArrayList(_list971.size); + WMMapping _elem972; + for (int _i973 = 0; _i973 < _list971.size; ++_i973) { - _elem844 = new WMMapping(); - _elem844.read(iprot); - struct.mappings.add(_elem844); + _elem972 = new WMMapping(); + _elem972.read(iprot); + struct.mappings.add(_elem972); } iprot.readListEnd(); } @@ -793,14 +793,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, WMFullResourcePlan case 4: // TRIGGERS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list846 = iprot.readListBegin(); - struct.triggers = new ArrayList(_list846.size); - WMTrigger _elem847; - for (int _i848 = 0; _i848 < _list846.size; ++_i848) + org.apache.thrift.protocol.TList _list974 = iprot.readListBegin(); + struct.triggers = new ArrayList(_list974.size); + WMTrigger _elem975; + for (int _i976 = 0; _i976 < _list974.size; ++_i976) { - _elem847 = new WMTrigger(); - _elem847.read(iprot); - struct.triggers.add(_elem847); + _elem975 = new WMTrigger(); + _elem975.read(iprot); + struct.triggers.add(_elem975); } iprot.readListEnd(); } @@ -812,14 +812,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, WMFullResourcePlan case 5: // POOL_TRIGGERS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list849 = iprot.readListBegin(); - struct.poolTriggers = new ArrayList(_list849.size); - WMPoolTrigger _elem850; - for (int _i851 = 0; _i851 < _list849.size; ++_i851) + org.apache.thrift.protocol.TList _list977 = iprot.readListBegin(); + struct.poolTriggers = new ArrayList(_list977.size); + WMPoolTrigger _elem978; + for (int _i979 = 0; _i979 < _list977.size; ++_i979) { - _elem850 = new WMPoolTrigger(); - _elem850.read(iprot); - struct.poolTriggers.add(_elem850); + _elem978 = new WMPoolTrigger(); + _elem978.read(iprot); + struct.poolTriggers.add(_elem978); } iprot.readListEnd(); } @@ -850,9 +850,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, WMFullResourcePlan oprot.writeFieldBegin(POOLS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.pools.size())); - for (WMPool _iter852 : struct.pools) + for (WMPool _iter980 : struct.pools) { - _iter852.write(oprot); + _iter980.write(oprot); } oprot.writeListEnd(); } @@ -863,9 +863,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, WMFullResourcePlan oprot.writeFieldBegin(MAPPINGS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.mappings.size())); - for (WMMapping _iter853 : struct.mappings) + for (WMMapping _iter981 : struct.mappings) { - _iter853.write(oprot); + _iter981.write(oprot); } oprot.writeListEnd(); } @@ -877,9 +877,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, WMFullResourcePlan oprot.writeFieldBegin(TRIGGERS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.triggers.size())); - for (WMTrigger _iter854 : struct.triggers) + for (WMTrigger _iter982 : struct.triggers) { - _iter854.write(oprot); + _iter982.write(oprot); } oprot.writeListEnd(); } @@ -891,9 +891,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, WMFullResourcePlan oprot.writeFieldBegin(POOL_TRIGGERS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.poolTriggers.size())); - for (WMPoolTrigger _iter855 : struct.poolTriggers) + for (WMPoolTrigger _iter983 : struct.poolTriggers) { - _iter855.write(oprot); + _iter983.write(oprot); } oprot.writeListEnd(); } @@ -920,9 +920,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, WMFullResourcePlan struct.plan.write(oprot); { oprot.writeI32(struct.pools.size()); - for (WMPool _iter856 : struct.pools) + for (WMPool _iter984 : struct.pools) { - _iter856.write(oprot); + _iter984.write(oprot); } } BitSet optionals = new BitSet(); @@ -939,27 +939,27 @@ public void write(org.apache.thrift.protocol.TProtocol prot, WMFullResourcePlan if (struct.isSetMappings()) { { oprot.writeI32(struct.mappings.size()); - for (WMMapping _iter857 : struct.mappings) + for (WMMapping _iter985 : struct.mappings) { - _iter857.write(oprot); + _iter985.write(oprot); } } } if (struct.isSetTriggers()) { { oprot.writeI32(struct.triggers.size()); - for (WMTrigger _iter858 : struct.triggers) + for (WMTrigger _iter986 : struct.triggers) { - _iter858.write(oprot); + _iter986.write(oprot); } } } if (struct.isSetPoolTriggers()) { { oprot.writeI32(struct.poolTriggers.size()); - for (WMPoolTrigger _iter859 : struct.poolTriggers) + for (WMPoolTrigger _iter987 : struct.poolTriggers) { - _iter859.write(oprot); + _iter987.write(oprot); } } } @@ -972,56 +972,56 @@ public void read(org.apache.thrift.protocol.TProtocol prot, WMFullResourcePlan s struct.plan.read(iprot); struct.setPlanIsSet(true); { - org.apache.thrift.protocol.TList _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 _list988 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.pools = new ArrayList(_list988.size); + WMPool _elem989; + for (int _i990 = 0; _i990 < _list988.size; ++_i990) { - _elem861 = new WMPool(); - _elem861.read(iprot); - struct.pools.add(_elem861); + _elem989 = new WMPool(); + _elem989.read(iprot); + struct.pools.add(_elem989); } } struct.setPoolsIsSet(true); BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _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 _list991 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.mappings = new ArrayList(_list991.size); + WMMapping _elem992; + for (int _i993 = 0; _i993 < _list991.size; ++_i993) { - _elem864 = new WMMapping(); - _elem864.read(iprot); - struct.mappings.add(_elem864); + _elem992 = new WMMapping(); + _elem992.read(iprot); + struct.mappings.add(_elem992); } } 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 _list994 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.triggers = new ArrayList(_list994.size); + WMTrigger _elem995; + for (int _i996 = 0; _i996 < _list994.size; ++_i996) { - _elem867 = new WMTrigger(); - _elem867.read(iprot); - struct.triggers.add(_elem867); + _elem995 = new WMTrigger(); + _elem995.read(iprot); + struct.triggers.add(_elem995); } } 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 _list997 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.poolTriggers = new ArrayList(_list997.size); + WMPoolTrigger _elem998; + for (int _i999 = 0; _i999 < _list997.size; ++_i999) { - _elem870 = new WMPoolTrigger(); - _elem870.read(iprot); - struct.poolTriggers.add(_elem870); + _elem998 = new WMPoolTrigger(); + _elem998.read(iprot); + struct.poolTriggers.add(_elem998); } } 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..d0174005ca 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 _list1000 = iprot.readListBegin(); + struct.resourcePlans = new ArrayList(_list1000.size); + WMResourcePlan _elem1001; + for (int _i1002 = 0; _i1002 < _list1000.size; ++_i1002) { - _elem873 = new WMResourcePlan(); - _elem873.read(iprot); - struct.resourcePlans.add(_elem873); + _elem1001 = new WMResourcePlan(); + _elem1001.read(iprot); + struct.resourcePlans.add(_elem1001); } iprot.readListEnd(); } @@ -380,9 +380,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, WMGetAllResourcePl oprot.writeFieldBegin(RESOURCE_PLANS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.resourcePlans.size())); - for (WMResourcePlan _iter875 : struct.resourcePlans) + for (WMResourcePlan _iter1003 : struct.resourcePlans) { - _iter875.write(oprot); + _iter1003.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, WMGetAllResourcePla if (struct.isSetResourcePlans()) { { oprot.writeI32(struct.resourcePlans.size()); - for (WMResourcePlan _iter876 : struct.resourcePlans) + for (WMResourcePlan _iter1004 : struct.resourcePlans) { - _iter876.write(oprot); + _iter1004.write(oprot); } } } @@ -428,14 +428,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, WMGetAllResourcePlan BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _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 _list1005 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.resourcePlans = new ArrayList(_list1005.size); + WMResourcePlan _elem1006; + for (int _i1007 = 0; _i1007 < _list1005.size; ++_i1007) { - _elem878 = new WMResourcePlan(); - _elem878.read(iprot); - struct.resourcePlans.add(_elem878); + _elem1006 = new WMResourcePlan(); + _elem1006.read(iprot); + struct.resourcePlans.add(_elem1006); } } 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..e5425909d4 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 _list1024 = iprot.readListBegin(); + struct.triggers = new ArrayList(_list1024.size); + WMTrigger _elem1025; + for (int _i1026 = 0; _i1026 < _list1024.size; ++_i1026) { - _elem897 = new WMTrigger(); - _elem897.read(iprot); - struct.triggers.add(_elem897); + _elem1025 = new WMTrigger(); + _elem1025.read(iprot); + struct.triggers.add(_elem1025); } iprot.readListEnd(); } @@ -380,9 +380,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, WMGetTriggersForRe oprot.writeFieldBegin(TRIGGERS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.triggers.size())); - for (WMTrigger _iter899 : struct.triggers) + for (WMTrigger _iter1027 : struct.triggers) { - _iter899.write(oprot); + _iter1027.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, WMGetTriggersForRes if (struct.isSetTriggers()) { { oprot.writeI32(struct.triggers.size()); - for (WMTrigger _iter900 : struct.triggers) + for (WMTrigger _iter1028 : struct.triggers) { - _iter900.write(oprot); + _iter1028.write(oprot); } } } @@ -428,14 +428,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, WMGetTriggersForReso BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _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 _list1029 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.triggers = new ArrayList(_list1029.size); + WMTrigger _elem1030; + for (int _i1031 = 0; _i1031 < _list1029.size; ++_i1031) { - _elem902 = new WMTrigger(); - _elem902.read(iprot); - struct.triggers.add(_elem902); + _elem1030 = new WMTrigger(); + _elem1030.read(iprot); + struct.triggers.add(_elem1030); } } 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..b12c2284a2 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 _list1008 = iprot.readListBegin(); + struct.errors = new ArrayList(_list1008.size); + String _elem1009; + for (int _i1010 = 0; _i1010 < _list1008.size; ++_i1010) { - _elem881 = iprot.readString(); - struct.errors.add(_elem881); + _elem1009 = iprot.readString(); + struct.errors.add(_elem1009); } iprot.readListEnd(); } @@ -459,13 +459,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, WMValidateResourceP case 2: // WARNINGS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list883 = iprot.readListBegin(); - struct.warnings = new ArrayList(_list883.size); - String _elem884; - for (int _i885 = 0; _i885 < _list883.size; ++_i885) + org.apache.thrift.protocol.TList _list1011 = iprot.readListBegin(); + struct.warnings = new ArrayList(_list1011.size); + String _elem1012; + for (int _i1013 = 0; _i1013 < _list1011.size; ++_i1013) { - _elem884 = iprot.readString(); - struct.warnings.add(_elem884); + _elem1012 = iprot.readString(); + struct.warnings.add(_elem1012); } iprot.readListEnd(); } @@ -492,9 +492,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, WMValidateResource oprot.writeFieldBegin(ERRORS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.errors.size())); - for (String _iter886 : struct.errors) + for (String _iter1014 : struct.errors) { - oprot.writeString(_iter886); + oprot.writeString(_iter1014); } oprot.writeListEnd(); } @@ -506,9 +506,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, WMValidateResource oprot.writeFieldBegin(WARNINGS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.warnings.size())); - for (String _iter887 : struct.warnings) + for (String _iter1015 : struct.warnings) { - oprot.writeString(_iter887); + oprot.writeString(_iter1015); } oprot.writeListEnd(); } @@ -543,18 +543,18 @@ public void write(org.apache.thrift.protocol.TProtocol prot, WMValidateResourceP if (struct.isSetErrors()) { { oprot.writeI32(struct.errors.size()); - for (String _iter888 : struct.errors) + for (String _iter1016 : struct.errors) { - oprot.writeString(_iter888); + oprot.writeString(_iter1016); } } } if (struct.isSetWarnings()) { { oprot.writeI32(struct.warnings.size()); - for (String _iter889 : struct.warnings) + for (String _iter1017 : struct.warnings) { - oprot.writeString(_iter889); + oprot.writeString(_iter1017); } } } @@ -566,26 +566,26 @@ public void read(org.apache.thrift.protocol.TProtocol prot, WMValidateResourcePl BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _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 _list1018 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.errors = new ArrayList(_list1018.size); + String _elem1019; + for (int _i1020 = 0; _i1020 < _list1018.size; ++_i1020) { - _elem891 = iprot.readString(); - struct.errors.add(_elem891); + _elem1019 = iprot.readString(); + struct.errors.add(_elem1019); } } 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 _list1021 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.warnings = new ArrayList(_list1021.size); + String _elem1022; + for (int _i1023 = 0; _i1023 < _list1021.size; ++_i1023) { - _elem894 = iprot.readString(); - struct.warnings.add(_elem894); + _elem1022 = iprot.readString(); + struct.warnings.add(_elem1022); } } 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..aa05fe01d3 --- /dev/null +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WriteEventInfo.java @@ -0,0 +1,1476 @@ +/** + * 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 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 DATABASES_FIELD_DESC = new org.apache.thrift.protocol.TField("databases", org.apache.thrift.protocol.TType.LIST, (short)2); + private static final org.apache.thrift.protocol.TField TABLES_FIELD_DESC = new org.apache.thrift.protocol.TField("tables", org.apache.thrift.protocol.TType.LIST, (short)3); + private static final org.apache.thrift.protocol.TField PARTITIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("partitions", org.apache.thrift.protocol.TType.LIST, (short)4); + private static final org.apache.thrift.protocol.TField WRITE_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("writeIds", org.apache.thrift.protocol.TType.LIST, (short)5); + private static final org.apache.thrift.protocol.TField TABLE_OBJS_FIELD_DESC = new org.apache.thrift.protocol.TField("tableObjs", org.apache.thrift.protocol.TType.LIST, (short)6); + private static final org.apache.thrift.protocol.TField FILES_FIELD_DESC = new org.apache.thrift.protocol.TField("files", org.apache.thrift.protocol.TType.LIST, (short)7); + private static final org.apache.thrift.protocol.TField PARTITION_OBJS_FIELD_DESC = new org.apache.thrift.protocol.TField("partitionObjs", org.apache.thrift.protocol.TType.LIST, (short)8); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new WriteEventInfoStandardSchemeFactory()); + schemes.put(TupleScheme.class, new WriteEventInfoTupleSchemeFactory()); + } + + private long txnid; // required + private List databases; // optional + private List tables; // optional + private List partitions; // optional + private List writeIds; // optional + private List tableObjs; // optional + private List files; // optional + private List partitionObjs; // 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"), + DATABASES((short)2, "databases"), + TABLES((short)3, "tables"), + PARTITIONS((short)4, "partitions"), + WRITE_IDS((short)5, "writeIds"), + TABLE_OBJS((short)6, "tableObjs"), + FILES((short)7, "files"), + PARTITION_OBJS((short)8, "partitionObjs"); + + 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: // TXNID + return TXNID; + case 2: // DATABASES + return DATABASES; + case 3: // TABLES + return TABLES; + case 4: // PARTITIONS + return PARTITIONS; + case 5: // WRITE_IDS + return WRITE_IDS; + case 6: // TABLE_OBJS + return TABLE_OBJS; + case 7: // FILES + return FILES; + case 8: // PARTITION_OBJS + return PARTITION_OBJS; + 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 byte __isset_bitfield = 0; + private static final _Fields optionals[] = {_Fields.DATABASES,_Fields.TABLES,_Fields.PARTITIONS,_Fields.WRITE_IDS,_Fields.TABLE_OBJS,_Fields.FILES,_Fields.PARTITION_OBJS}; + 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.TXNID, 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.DATABASES, new org.apache.thrift.meta_data.FieldMetaData("databases", 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.TABLES, new org.apache.thrift.meta_data.FieldMetaData("tables", 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.PARTITIONS, new org.apache.thrift.meta_data.FieldMetaData("partitions", 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.WRITE_IDS, new org.apache.thrift.meta_data.FieldMetaData("writeIds", 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.I64)))); + tmpMap.put(_Fields.TABLE_OBJS, new org.apache.thrift.meta_data.FieldMetaData("tableObjs", 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.FILES, new org.apache.thrift.meta_data.FieldMetaData("files", 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.PARTITION_OBJS, new org.apache.thrift.meta_data.FieldMetaData("partitionObjs", 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(WriteEventInfo.class, metaDataMap); + } + + public WriteEventInfo() { + } + + public WriteEventInfo( + long txnid) + { + this(); + this.txnid = txnid; + setTxnidIsSet(true); + } + + /** + * Performs a deep copy on other. + */ + public WriteEventInfo(WriteEventInfo other) { + __isset_bitfield = other.__isset_bitfield; + this.txnid = other.txnid; + if (other.isSetDatabases()) { + List __this__databases = new ArrayList(other.databases); + this.databases = __this__databases; + } + if (other.isSetTables()) { + List __this__tables = new ArrayList(other.tables); + this.tables = __this__tables; + } + if (other.isSetPartitions()) { + List __this__partitions = new ArrayList(other.partitions); + this.partitions = __this__partitions; + } + if (other.isSetWriteIds()) { + List __this__writeIds = new ArrayList(other.writeIds); + this.writeIds = __this__writeIds; + } + if (other.isSetTableObjs()) { + List __this__tableObjs = new ArrayList(other.tableObjs); + this.tableObjs = __this__tableObjs; + } + if (other.isSetFiles()) { + List __this__files = new ArrayList(other.files); + this.files = __this__files; + } + if (other.isSetPartitionObjs()) { + List __this__partitionObjs = new ArrayList(other.partitionObjs); + this.partitionObjs = __this__partitionObjs; + } + } + + public WriteEventInfo deepCopy() { + return new WriteEventInfo(this); + } + + @Override + public void clear() { + setTxnidIsSet(false); + this.txnid = 0; + this.databases = null; + this.tables = null; + this.partitions = null; + this.writeIds = null; + this.tableObjs = null; + this.files = null; + this.partitionObjs = 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 int getDatabasesSize() { + return (this.databases == null) ? 0 : this.databases.size(); + } + + public java.util.Iterator getDatabasesIterator() { + return (this.databases == null) ? null : this.databases.iterator(); + } + + public void addToDatabases(String elem) { + if (this.databases == null) { + this.databases = new ArrayList(); + } + this.databases.add(elem); + } + + public List getDatabases() { + return this.databases; + } + + public void setDatabases(List databases) { + this.databases = databases; + } + + public void unsetDatabases() { + this.databases = null; + } + + /** Returns true if field databases is set (has been assigned a value) and false otherwise */ + public boolean isSetDatabases() { + return this.databases != null; + } + + public void setDatabasesIsSet(boolean value) { + if (!value) { + this.databases = null; + } + } + + public int getTablesSize() { + return (this.tables == null) ? 0 : this.tables.size(); + } + + public java.util.Iterator getTablesIterator() { + return (this.tables == null) ? null : this.tables.iterator(); + } + + public void addToTables(String elem) { + if (this.tables == null) { + this.tables = new ArrayList(); + } + this.tables.add(elem); + } + + public List getTables() { + return this.tables; + } + + public void setTables(List tables) { + this.tables = tables; + } + + public void unsetTables() { + this.tables = null; + } + + /** Returns true if field tables is set (has been assigned a value) and false otherwise */ + public boolean isSetTables() { + return this.tables != null; + } + + public void setTablesIsSet(boolean value) { + if (!value) { + this.tables = null; + } + } + + public int getPartitionsSize() { + return (this.partitions == null) ? 0 : this.partitions.size(); + } + + public java.util.Iterator getPartitionsIterator() { + return (this.partitions == null) ? null : this.partitions.iterator(); + } + + public void addToPartitions(String elem) { + if (this.partitions == null) { + this.partitions = new ArrayList(); + } + this.partitions.add(elem); + } + + public List getPartitions() { + return this.partitions; + } + + public void setPartitions(List partitions) { + this.partitions = partitions; + } + + public void unsetPartitions() { + this.partitions = null; + } + + /** Returns true if field partitions is set (has been assigned a value) and false otherwise */ + public boolean isSetPartitions() { + return this.partitions != null; + } + + public void setPartitionsIsSet(boolean value) { + if (!value) { + this.partitions = null; + } + } + + public int getWriteIdsSize() { + return (this.writeIds == null) ? 0 : this.writeIds.size(); + } + + public java.util.Iterator getWriteIdsIterator() { + return (this.writeIds == null) ? null : this.writeIds.iterator(); + } + + public void addToWriteIds(long elem) { + if (this.writeIds == null) { + this.writeIds = new ArrayList(); + } + this.writeIds.add(elem); + } + + public List getWriteIds() { + return this.writeIds; + } + + public void setWriteIds(List writeIds) { + this.writeIds = writeIds; + } + + public void unsetWriteIds() { + this.writeIds = null; + } + + /** Returns true if field writeIds is set (has been assigned a value) and false otherwise */ + public boolean isSetWriteIds() { + return this.writeIds != null; + } + + public void setWriteIdsIsSet(boolean value) { + if (!value) { + this.writeIds = null; + } + } + + public int getTableObjsSize() { + return (this.tableObjs == null) ? 0 : this.tableObjs.size(); + } + + public java.util.Iterator getTableObjsIterator() { + return (this.tableObjs == null) ? null : this.tableObjs.iterator(); + } + + public void addToTableObjs(String elem) { + if (this.tableObjs == null) { + this.tableObjs = new ArrayList(); + } + this.tableObjs.add(elem); + } + + public List getTableObjs() { + return this.tableObjs; + } + + public void setTableObjs(List tableObjs) { + this.tableObjs = tableObjs; + } + + public void unsetTableObjs() { + this.tableObjs = null; + } + + /** Returns true if field tableObjs is set (has been assigned a value) and false otherwise */ + public boolean isSetTableObjs() { + return this.tableObjs != null; + } + + public void setTableObjsIsSet(boolean value) { + if (!value) { + this.tableObjs = null; + } + } + + public int getFilesSize() { + return (this.files == null) ? 0 : this.files.size(); + } + + public java.util.Iterator getFilesIterator() { + return (this.files == null) ? null : this.files.iterator(); + } + + public void addToFiles(String elem) { + if (this.files == null) { + this.files = new ArrayList(); + } + this.files.add(elem); + } + + public List getFiles() { + return this.files; + } + + public void setFiles(List 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 int getPartitionObjsSize() { + return (this.partitionObjs == null) ? 0 : this.partitionObjs.size(); + } + + public java.util.Iterator getPartitionObjsIterator() { + return (this.partitionObjs == null) ? null : this.partitionObjs.iterator(); + } + + public void addToPartitionObjs(String elem) { + if (this.partitionObjs == null) { + this.partitionObjs = new ArrayList(); + } + this.partitionObjs.add(elem); + } + + public List getPartitionObjs() { + return this.partitionObjs; + } + + public void setPartitionObjs(List partitionObjs) { + this.partitionObjs = partitionObjs; + } + + public void unsetPartitionObjs() { + this.partitionObjs = null; + } + + /** Returns true if field partitionObjs is set (has been assigned a value) and false otherwise */ + public boolean isSetPartitionObjs() { + return this.partitionObjs != null; + } + + public void setPartitionObjsIsSet(boolean value) { + if (!value) { + this.partitionObjs = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case TXNID: + if (value == null) { + unsetTxnid(); + } else { + setTxnid((Long)value); + } + break; + + case DATABASES: + if (value == null) { + unsetDatabases(); + } else { + setDatabases((List)value); + } + break; + + case TABLES: + if (value == null) { + unsetTables(); + } else { + setTables((List)value); + } + break; + + case PARTITIONS: + if (value == null) { + unsetPartitions(); + } else { + setPartitions((List)value); + } + break; + + case WRITE_IDS: + if (value == null) { + unsetWriteIds(); + } else { + setWriteIds((List)value); + } + break; + + case TABLE_OBJS: + if (value == null) { + unsetTableObjs(); + } else { + setTableObjs((List)value); + } + break; + + case FILES: + if (value == null) { + unsetFiles(); + } else { + setFiles((List)value); + } + break; + + case PARTITION_OBJS: + if (value == null) { + unsetPartitionObjs(); + } else { + setPartitionObjs((List)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case TXNID: + return getTxnid(); + + case DATABASES: + return getDatabases(); + + case TABLES: + return getTables(); + + case PARTITIONS: + return getPartitions(); + + case WRITE_IDS: + return getWriteIds(); + + case TABLE_OBJS: + return getTableObjs(); + + case FILES: + return getFiles(); + + case PARTITION_OBJS: + return getPartitionObjs(); + + } + 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 TXNID: + return isSetTxnid(); + case DATABASES: + return isSetDatabases(); + case TABLES: + return isSetTables(); + case PARTITIONS: + return isSetPartitions(); + case WRITE_IDS: + return isSetWriteIds(); + case TABLE_OBJS: + return isSetTableObjs(); + case FILES: + return isSetFiles(); + case PARTITION_OBJS: + return isSetPartitionObjs(); + } + 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_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_databases = true && this.isSetDatabases(); + boolean that_present_databases = true && that.isSetDatabases(); + if (this_present_databases || that_present_databases) { + if (!(this_present_databases && that_present_databases)) + return false; + if (!this.databases.equals(that.databases)) + return false; + } + + boolean this_present_tables = true && this.isSetTables(); + boolean that_present_tables = true && that.isSetTables(); + if (this_present_tables || that_present_tables) { + if (!(this_present_tables && that_present_tables)) + return false; + if (!this.tables.equals(that.tables)) + return false; + } + + boolean this_present_partitions = true && this.isSetPartitions(); + boolean that_present_partitions = true && that.isSetPartitions(); + if (this_present_partitions || that_present_partitions) { + if (!(this_present_partitions && that_present_partitions)) + return false; + if (!this.partitions.equals(that.partitions)) + return false; + } + + boolean this_present_writeIds = true && this.isSetWriteIds(); + boolean that_present_writeIds = true && that.isSetWriteIds(); + if (this_present_writeIds || that_present_writeIds) { + if (!(this_present_writeIds && that_present_writeIds)) + return false; + if (!this.writeIds.equals(that.writeIds)) + return false; + } + + boolean this_present_tableObjs = true && this.isSetTableObjs(); + boolean that_present_tableObjs = true && that.isSetTableObjs(); + if (this_present_tableObjs || that_present_tableObjs) { + if (!(this_present_tableObjs && that_present_tableObjs)) + return false; + if (!this.tableObjs.equals(that.tableObjs)) + 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_partitionObjs = true && this.isSetPartitionObjs(); + boolean that_present_partitionObjs = true && that.isSetPartitionObjs(); + if (this_present_partitionObjs || that_present_partitionObjs) { + if (!(this_present_partitionObjs && that_present_partitionObjs)) + return false; + if (!this.partitionObjs.equals(that.partitionObjs)) + 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_databases = true && (isSetDatabases()); + list.add(present_databases); + if (present_databases) + list.add(databases); + + boolean present_tables = true && (isSetTables()); + list.add(present_tables); + if (present_tables) + list.add(tables); + + boolean present_partitions = true && (isSetPartitions()); + list.add(present_partitions); + if (present_partitions) + list.add(partitions); + + boolean present_writeIds = true && (isSetWriteIds()); + list.add(present_writeIds); + if (present_writeIds) + list.add(writeIds); + + boolean present_tableObjs = true && (isSetTableObjs()); + list.add(present_tableObjs); + if (present_tableObjs) + list.add(tableObjs); + + boolean present_files = true && (isSetFiles()); + list.add(present_files); + if (present_files) + list.add(files); + + boolean present_partitionObjs = true && (isSetPartitionObjs()); + list.add(present_partitionObjs); + if (present_partitionObjs) + list.add(partitionObjs); + + 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(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(isSetDatabases()).compareTo(other.isSetDatabases()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDatabases()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.databases, other.databases); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTables()).compareTo(other.isSetTables()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTables()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tables, other.tables); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPartitions()).compareTo(other.isSetPartitions()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPartitions()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitions, other.partitions); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetWriteIds()).compareTo(other.isSetWriteIds()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetWriteIds()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.writeIds, other.writeIds); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTableObjs()).compareTo(other.isSetTableObjs()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTableObjs()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableObjs, other.tableObjs); + 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(isSetPartitionObjs()).compareTo(other.isSetPartitionObjs()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPartitionObjs()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionObjs, other.partitionObjs); + 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("txnid:"); + sb.append(this.txnid); + first = false; + if (isSetDatabases()) { + if (!first) sb.append(", "); + sb.append("databases:"); + if (this.databases == null) { + sb.append("null"); + } else { + sb.append(this.databases); + } + first = false; + } + if (isSetTables()) { + if (!first) sb.append(", "); + sb.append("tables:"); + if (this.tables == null) { + sb.append("null"); + } else { + sb.append(this.tables); + } + first = false; + } + if (isSetPartitions()) { + if (!first) sb.append(", "); + sb.append("partitions:"); + if (this.partitions == null) { + sb.append("null"); + } else { + sb.append(this.partitions); + } + first = false; + } + if (isSetWriteIds()) { + if (!first) sb.append(", "); + sb.append("writeIds:"); + if (this.writeIds == null) { + sb.append("null"); + } else { + sb.append(this.writeIds); + } + first = false; + } + if (isSetTableObjs()) { + if (!first) sb.append(", "); + sb.append("tableObjs:"); + if (this.tableObjs == null) { + sb.append("null"); + } else { + sb.append(this.tableObjs); + } + 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 (isSetPartitionObjs()) { + if (!first) sb.append(", "); + sb.append("partitionObjs:"); + if (this.partitionObjs == null) { + sb.append("null"); + } else { + sb.append(this.partitionObjs); + } + 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()); + } + + // 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: // TXNID + 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: // DATABASES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list650 = iprot.readListBegin(); + struct.databases = new ArrayList(_list650.size); + String _elem651; + for (int _i652 = 0; _i652 < _list650.size; ++_i652) + { + _elem651 = iprot.readString(); + struct.databases.add(_elem651); + } + iprot.readListEnd(); + } + struct.setDatabasesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TABLES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list653 = iprot.readListBegin(); + struct.tables = new ArrayList(_list653.size); + String _elem654; + for (int _i655 = 0; _i655 < _list653.size; ++_i655) + { + _elem654 = iprot.readString(); + struct.tables.add(_elem654); + } + iprot.readListEnd(); + } + struct.setTablesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // PARTITIONS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list656 = iprot.readListBegin(); + struct.partitions = new ArrayList(_list656.size); + String _elem657; + for (int _i658 = 0; _i658 < _list656.size; ++_i658) + { + _elem657 = iprot.readString(); + struct.partitions.add(_elem657); + } + iprot.readListEnd(); + } + struct.setPartitionsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // WRITE_IDS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list659 = iprot.readListBegin(); + struct.writeIds = new ArrayList(_list659.size); + long _elem660; + for (int _i661 = 0; _i661 < _list659.size; ++_i661) + { + _elem660 = iprot.readI64(); + struct.writeIds.add(_elem660); + } + iprot.readListEnd(); + } + struct.setWriteIdsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // TABLE_OBJS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list662 = iprot.readListBegin(); + struct.tableObjs = new ArrayList(_list662.size); + String _elem663; + for (int _i664 = 0; _i664 < _list662.size; ++_i664) + { + _elem663 = iprot.readString(); + struct.tableObjs.add(_elem663); + } + iprot.readListEnd(); + } + struct.setTableObjsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 7: // FILES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list665 = iprot.readListBegin(); + struct.files = new ArrayList(_list665.size); + String _elem666; + for (int _i667 = 0; _i667 < _list665.size; ++_i667) + { + _elem666 = iprot.readString(); + struct.files.add(_elem666); + } + iprot.readListEnd(); + } + struct.setFilesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 8: // PARTITION_OBJS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list668 = iprot.readListBegin(); + struct.partitionObjs = new ArrayList(_list668.size); + String _elem669; + for (int _i670 = 0; _i670 < _list668.size; ++_i670) + { + _elem669 = iprot.readString(); + struct.partitionObjs.add(_elem669); + } + iprot.readListEnd(); + } + struct.setPartitionObjsIsSet(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(TXNID_FIELD_DESC); + oprot.writeI64(struct.txnid); + oprot.writeFieldEnd(); + if (struct.databases != null) { + if (struct.isSetDatabases()) { + oprot.writeFieldBegin(DATABASES_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.databases.size())); + for (String _iter671 : struct.databases) + { + oprot.writeString(_iter671); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + } + if (struct.tables != null) { + if (struct.isSetTables()) { + oprot.writeFieldBegin(TABLES_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.tables.size())); + for (String _iter672 : struct.tables) + { + oprot.writeString(_iter672); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + } + if (struct.partitions != null) { + if (struct.isSetPartitions()) { + oprot.writeFieldBegin(PARTITIONS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.partitions.size())); + for (String _iter673 : struct.partitions) + { + oprot.writeString(_iter673); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + } + if (struct.writeIds != null) { + if (struct.isSetWriteIds()) { + oprot.writeFieldBegin(WRITE_IDS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.writeIds.size())); + for (long _iter674 : struct.writeIds) + { + oprot.writeI64(_iter674); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + } + if (struct.tableObjs != null) { + if (struct.isSetTableObjs()) { + oprot.writeFieldBegin(TABLE_OBJS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.tableObjs.size())); + for (String _iter675 : struct.tableObjs) + { + oprot.writeString(_iter675); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + } + if (struct.files != null) { + if (struct.isSetFiles()) { + oprot.writeFieldBegin(FILES_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.files.size())); + for (String _iter676 : struct.files) + { + oprot.writeString(_iter676); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + } + if (struct.partitionObjs != null) { + if (struct.isSetPartitionObjs()) { + oprot.writeFieldBegin(PARTITION_OBJS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.partitionObjs.size())); + for (String _iter677 : struct.partitionObjs) + { + oprot.writeString(_iter677); + } + oprot.writeListEnd(); + } + 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.txnid); + BitSet optionals = new BitSet(); + if (struct.isSetDatabases()) { + optionals.set(0); + } + if (struct.isSetTables()) { + optionals.set(1); + } + if (struct.isSetPartitions()) { + optionals.set(2); + } + if (struct.isSetWriteIds()) { + optionals.set(3); + } + if (struct.isSetTableObjs()) { + optionals.set(4); + } + if (struct.isSetFiles()) { + optionals.set(5); + } + if (struct.isSetPartitionObjs()) { + optionals.set(6); + } + oprot.writeBitSet(optionals, 7); + if (struct.isSetDatabases()) { + { + oprot.writeI32(struct.databases.size()); + for (String _iter678 : struct.databases) + { + oprot.writeString(_iter678); + } + } + } + if (struct.isSetTables()) { + { + oprot.writeI32(struct.tables.size()); + for (String _iter679 : struct.tables) + { + oprot.writeString(_iter679); + } + } + } + if (struct.isSetPartitions()) { + { + oprot.writeI32(struct.partitions.size()); + for (String _iter680 : struct.partitions) + { + oprot.writeString(_iter680); + } + } + } + if (struct.isSetWriteIds()) { + { + oprot.writeI32(struct.writeIds.size()); + for (long _iter681 : struct.writeIds) + { + oprot.writeI64(_iter681); + } + } + } + if (struct.isSetTableObjs()) { + { + oprot.writeI32(struct.tableObjs.size()); + for (String _iter682 : struct.tableObjs) + { + oprot.writeString(_iter682); + } + } + } + if (struct.isSetFiles()) { + { + oprot.writeI32(struct.files.size()); + for (String _iter683 : struct.files) + { + oprot.writeString(_iter683); + } + } + } + if (struct.isSetPartitionObjs()) { + { + oprot.writeI32(struct.partitionObjs.size()); + for (String _iter684 : struct.partitionObjs) + { + oprot.writeString(_iter684); + } + } + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, WriteEventInfo struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + struct.txnid = iprot.readI64(); + struct.setTxnidIsSet(true); + BitSet incoming = iprot.readBitSet(7); + if (incoming.get(0)) { + { + org.apache.thrift.protocol.TList _list685 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.databases = new ArrayList(_list685.size); + String _elem686; + for (int _i687 = 0; _i687 < _list685.size; ++_i687) + { + _elem686 = iprot.readString(); + struct.databases.add(_elem686); + } + } + struct.setDatabasesIsSet(true); + } + if (incoming.get(1)) { + { + org.apache.thrift.protocol.TList _list688 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tables = new ArrayList(_list688.size); + String _elem689; + for (int _i690 = 0; _i690 < _list688.size; ++_i690) + { + _elem689 = iprot.readString(); + struct.tables.add(_elem689); + } + } + struct.setTablesIsSet(true); + } + if (incoming.get(2)) { + { + org.apache.thrift.protocol.TList _list691 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitions = new ArrayList(_list691.size); + String _elem692; + for (int _i693 = 0; _i693 < _list691.size; ++_i693) + { + _elem692 = iprot.readString(); + struct.partitions.add(_elem692); + } + } + struct.setPartitionsIsSet(true); + } + if (incoming.get(3)) { + { + org.apache.thrift.protocol.TList _list694 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.writeIds = new ArrayList(_list694.size); + long _elem695; + for (int _i696 = 0; _i696 < _list694.size; ++_i696) + { + _elem695 = iprot.readI64(); + struct.writeIds.add(_elem695); + } + } + struct.setWriteIdsIsSet(true); + } + if (incoming.get(4)) { + { + org.apache.thrift.protocol.TList _list697 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tableObjs = new ArrayList(_list697.size); + String _elem698; + for (int _i699 = 0; _i699 < _list697.size; ++_i699) + { + _elem698 = iprot.readString(); + struct.tableObjs.add(_elem698); + } + } + struct.setTableObjsIsSet(true); + } + if (incoming.get(5)) { + { + org.apache.thrift.protocol.TList _list700 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.files = new ArrayList(_list700.size); + String _elem701; + for (int _i702 = 0; _i702 < _list700.size; ++_i702) + { + _elem701 = iprot.readString(); + struct.files.add(_elem701); + } + } + struct.setFilesIsSet(true); + } + if (incoming.get(6)) { + { + org.apache.thrift.protocol.TList _list703 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionObjs = new ArrayList(_list703.size); + String _elem704; + for (int _i705 = 0; _i705 < _list703.size; ++_i705) + { + _elem704 = iprot.readString(); + struct.partitionObjs.add(_elem704); + } + } + struct.setPartitionObjsIsSet(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..bff12aaca9 --- /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 _list860 = iprot.readListBegin(); + struct.partitionVals = new ArrayList(_list860.size); + String _elem861; + for (int _i862 = 0; _i862 < _list860.size; ++_i862) + { + _elem861 = iprot.readString(); + struct.partitionVals.add(_elem861); + } + 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 _iter863 : struct.partitionVals) + { + oprot.writeString(_iter863); + } + 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 _iter864 : struct.partitionVals) + { + oprot.writeString(_iter864); + } + } + } + } + + @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 _list865 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionVals = new ArrayList(_list865.size); + String _elem866; + for (int _i867 = 0; _i867 < _list865.size; ++_i867) + { + _elem866 = iprot.readString(); + struct.partitionVals.add(_elem866); + } + } + 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 9c949429c5..433a6067a3 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 @@ -10742,6 +10747,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); @@ -14937,14 +14993,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) + $_size925 = 0; + $_etype928 = 0; + $xfer += $input->readListBegin($_etype928, $_size925); + for ($_i929 = 0; $_i929 < $_size925; ++$_i929) { - $elem818 = null; - $xfer += $input->readString($elem818); - $this->success []= $elem818; + $elem930 = null; + $xfer += $input->readString($elem930); + $this->success []= $elem930; } $xfer += $input->readListEnd(); } else { @@ -14980,9 +15036,9 @@ class ThriftHiveMetastore_get_databases_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter819) + foreach ($this->success as $iter931) { - $xfer += $output->writeString($iter819); + $xfer += $output->writeString($iter931); } } $output->writeListEnd(); @@ -15113,14 +15169,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) + $_size932 = 0; + $_etype935 = 0; + $xfer += $input->readListBegin($_etype935, $_size932); + for ($_i936 = 0; $_i936 < $_size932; ++$_i936) { - $elem825 = null; - $xfer += $input->readString($elem825); - $this->success []= $elem825; + $elem937 = null; + $xfer += $input->readString($elem937); + $this->success []= $elem937; } $xfer += $input->readListEnd(); } else { @@ -15156,9 +15212,9 @@ class ThriftHiveMetastore_get_all_databases_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter826) + foreach ($this->success as $iter938) { - $xfer += $output->writeString($iter826); + $xfer += $output->writeString($iter938); } } $output->writeListEnd(); @@ -16159,18 +16215,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) + $_size939 = 0; + $_ktype940 = 0; + $_vtype941 = 0; + $xfer += $input->readMapBegin($_ktype940, $_vtype941, $_size939); + for ($_i943 = 0; $_i943 < $_size939; ++$_i943) { - $key832 = ''; - $val833 = new \metastore\Type(); - $xfer += $input->readString($key832); - $val833 = new \metastore\Type(); - $xfer += $val833->read($input); - $this->success[$key832] = $val833; + $key944 = ''; + $val945 = new \metastore\Type(); + $xfer += $input->readString($key944); + $val945 = new \metastore\Type(); + $xfer += $val945->read($input); + $this->success[$key944] = $val945; } $xfer += $input->readMapEnd(); } else { @@ -16206,10 +16262,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 $kiter946 => $viter947) { - $xfer += $output->writeString($kiter834); - $xfer += $viter835->write($output); + $xfer += $output->writeString($kiter946); + $xfer += $viter947->write($output); } } $output->writeMapEnd(); @@ -16413,15 +16469,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) + $_size948 = 0; + $_etype951 = 0; + $xfer += $input->readListBegin($_etype951, $_size948); + for ($_i952 = 0; $_i952 < $_size948; ++$_i952) { - $elem841 = null; - $elem841 = new \metastore\FieldSchema(); - $xfer += $elem841->read($input); - $this->success []= $elem841; + $elem953 = null; + $elem953 = new \metastore\FieldSchema(); + $xfer += $elem953->read($input); + $this->success []= $elem953; } $xfer += $input->readListEnd(); } else { @@ -16473,9 +16529,9 @@ class ThriftHiveMetastore_get_fields_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter842) + foreach ($this->success as $iter954) { - $xfer += $iter842->write($output); + $xfer += $iter954->write($output); } } $output->writeListEnd(); @@ -16717,15 +16773,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) + $_size955 = 0; + $_etype958 = 0; + $xfer += $input->readListBegin($_etype958, $_size955); + for ($_i959 = 0; $_i959 < $_size955; ++$_i959) { - $elem848 = null; - $elem848 = new \metastore\FieldSchema(); - $xfer += $elem848->read($input); - $this->success []= $elem848; + $elem960 = null; + $elem960 = new \metastore\FieldSchema(); + $xfer += $elem960->read($input); + $this->success []= $elem960; } $xfer += $input->readListEnd(); } else { @@ -16777,9 +16833,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 $iter961) { - $xfer += $iter849->write($output); + $xfer += $iter961->write($output); } } $output->writeListEnd(); @@ -16993,15 +17049,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) + $_size962 = 0; + $_etype965 = 0; + $xfer += $input->readListBegin($_etype965, $_size962); + for ($_i966 = 0; $_i966 < $_size962; ++$_i966) { - $elem855 = null; - $elem855 = new \metastore\FieldSchema(); - $xfer += $elem855->read($input); - $this->success []= $elem855; + $elem967 = null; + $elem967 = new \metastore\FieldSchema(); + $xfer += $elem967->read($input); + $this->success []= $elem967; } $xfer += $input->readListEnd(); } else { @@ -17053,9 +17109,9 @@ class ThriftHiveMetastore_get_schema_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter856) + foreach ($this->success as $iter968) { - $xfer += $iter856->write($output); + $xfer += $iter968->write($output); } } $output->writeListEnd(); @@ -17297,15 +17353,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) + $_size969 = 0; + $_etype972 = 0; + $xfer += $input->readListBegin($_etype972, $_size969); + for ($_i973 = 0; $_i973 < $_size969; ++$_i973) { - $elem862 = null; - $elem862 = new \metastore\FieldSchema(); - $xfer += $elem862->read($input); - $this->success []= $elem862; + $elem974 = null; + $elem974 = new \metastore\FieldSchema(); + $xfer += $elem974->read($input); + $this->success []= $elem974; } $xfer += $input->readListEnd(); } else { @@ -17357,9 +17413,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 $iter975) { - $xfer += $iter863->write($output); + $xfer += $iter975->write($output); } } $output->writeListEnd(); @@ -18031,15 +18087,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) + $_size976 = 0; + $_etype979 = 0; + $xfer += $input->readListBegin($_etype979, $_size976); + for ($_i980 = 0; $_i980 < $_size976; ++$_i980) { - $elem869 = null; - $elem869 = new \metastore\SQLPrimaryKey(); - $xfer += $elem869->read($input); - $this->primaryKeys []= $elem869; + $elem981 = null; + $elem981 = new \metastore\SQLPrimaryKey(); + $xfer += $elem981->read($input); + $this->primaryKeys []= $elem981; } $xfer += $input->readListEnd(); } else { @@ -18049,15 +18105,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) + $_size982 = 0; + $_etype985 = 0; + $xfer += $input->readListBegin($_etype985, $_size982); + for ($_i986 = 0; $_i986 < $_size982; ++$_i986) { - $elem875 = null; - $elem875 = new \metastore\SQLForeignKey(); - $xfer += $elem875->read($input); - $this->foreignKeys []= $elem875; + $elem987 = null; + $elem987 = new \metastore\SQLForeignKey(); + $xfer += $elem987->read($input); + $this->foreignKeys []= $elem987; } $xfer += $input->readListEnd(); } else { @@ -18067,15 +18123,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) + $_size988 = 0; + $_etype991 = 0; + $xfer += $input->readListBegin($_etype991, $_size988); + for ($_i992 = 0; $_i992 < $_size988; ++$_i992) { - $elem881 = null; - $elem881 = new \metastore\SQLUniqueConstraint(); - $xfer += $elem881->read($input); - $this->uniqueConstraints []= $elem881; + $elem993 = null; + $elem993 = new \metastore\SQLUniqueConstraint(); + $xfer += $elem993->read($input); + $this->uniqueConstraints []= $elem993; } $xfer += $input->readListEnd(); } else { @@ -18085,15 +18141,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) + $_size994 = 0; + $_etype997 = 0; + $xfer += $input->readListBegin($_etype997, $_size994); + for ($_i998 = 0; $_i998 < $_size994; ++$_i998) { - $elem887 = null; - $elem887 = new \metastore\SQLNotNullConstraint(); - $xfer += $elem887->read($input); - $this->notNullConstraints []= $elem887; + $elem999 = null; + $elem999 = new \metastore\SQLNotNullConstraint(); + $xfer += $elem999->read($input); + $this->notNullConstraints []= $elem999; } $xfer += $input->readListEnd(); } else { @@ -18103,15 +18159,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) + $_size1000 = 0; + $_etype1003 = 0; + $xfer += $input->readListBegin($_etype1003, $_size1000); + for ($_i1004 = 0; $_i1004 < $_size1000; ++$_i1004) { - $elem893 = null; - $elem893 = new \metastore\SQLDefaultConstraint(); - $xfer += $elem893->read($input); - $this->defaultConstraints []= $elem893; + $elem1005 = null; + $elem1005 = new \metastore\SQLDefaultConstraint(); + $xfer += $elem1005->read($input); + $this->defaultConstraints []= $elem1005; } $xfer += $input->readListEnd(); } else { @@ -18121,15 +18177,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) + $_size1006 = 0; + $_etype1009 = 0; + $xfer += $input->readListBegin($_etype1009, $_size1006); + for ($_i1010 = 0; $_i1010 < $_size1006; ++$_i1010) { - $elem899 = null; - $elem899 = new \metastore\SQLCheckConstraint(); - $xfer += $elem899->read($input); - $this->checkConstraints []= $elem899; + $elem1011 = null; + $elem1011 = new \metastore\SQLCheckConstraint(); + $xfer += $elem1011->read($input); + $this->checkConstraints []= $elem1011; } $xfer += $input->readListEnd(); } else { @@ -18165,9 +18221,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->primaryKeys)); { - foreach ($this->primaryKeys as $iter900) + foreach ($this->primaryKeys as $iter1012) { - $xfer += $iter900->write($output); + $xfer += $iter1012->write($output); } } $output->writeListEnd(); @@ -18182,9 +18238,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->foreignKeys)); { - foreach ($this->foreignKeys as $iter901) + foreach ($this->foreignKeys as $iter1013) { - $xfer += $iter901->write($output); + $xfer += $iter1013->write($output); } } $output->writeListEnd(); @@ -18199,9 +18255,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->uniqueConstraints)); { - foreach ($this->uniqueConstraints as $iter902) + foreach ($this->uniqueConstraints as $iter1014) { - $xfer += $iter902->write($output); + $xfer += $iter1014->write($output); } } $output->writeListEnd(); @@ -18216,9 +18272,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->notNullConstraints)); { - foreach ($this->notNullConstraints as $iter903) + foreach ($this->notNullConstraints as $iter1015) { - $xfer += $iter903->write($output); + $xfer += $iter1015->write($output); } } $output->writeListEnd(); @@ -18233,9 +18289,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->defaultConstraints)); { - foreach ($this->defaultConstraints as $iter904) + foreach ($this->defaultConstraints as $iter1016) { - $xfer += $iter904->write($output); + $xfer += $iter1016->write($output); } } $output->writeListEnd(); @@ -18250,9 +18306,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->checkConstraints)); { - foreach ($this->checkConstraints as $iter905) + foreach ($this->checkConstraints as $iter1017) { - $xfer += $iter905->write($output); + $xfer += $iter1017->write($output); } } $output->writeListEnd(); @@ -20252,14 +20308,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) + $_size1018 = 0; + $_etype1021 = 0; + $xfer += $input->readListBegin($_etype1021, $_size1018); + for ($_i1022 = 0; $_i1022 < $_size1018; ++$_i1022) { - $elem911 = null; - $xfer += $input->readString($elem911); - $this->partNames []= $elem911; + $elem1023 = null; + $xfer += $input->readString($elem1023); + $this->partNames []= $elem1023; } $xfer += $input->readListEnd(); } else { @@ -20297,9 +20353,9 @@ class ThriftHiveMetastore_truncate_table_args { { $output->writeListBegin(TType::STRING, count($this->partNames)); { - foreach ($this->partNames as $iter912) + foreach ($this->partNames as $iter1024) { - $xfer += $output->writeString($iter912); + $xfer += $output->writeString($iter1024); } } $output->writeListEnd(); @@ -20550,14 +20606,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) + $_size1025 = 0; + $_etype1028 = 0; + $xfer += $input->readListBegin($_etype1028, $_size1025); + for ($_i1029 = 0; $_i1029 < $_size1025; ++$_i1029) { - $elem918 = null; - $xfer += $input->readString($elem918); - $this->success []= $elem918; + $elem1030 = null; + $xfer += $input->readString($elem1030); + $this->success []= $elem1030; } $xfer += $input->readListEnd(); } else { @@ -20593,9 +20649,9 @@ class ThriftHiveMetastore_get_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter919) + foreach ($this->success as $iter1031) { - $xfer += $output->writeString($iter919); + $xfer += $output->writeString($iter1031); } } $output->writeListEnd(); @@ -20797,14 +20853,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) + $_size1032 = 0; + $_etype1035 = 0; + $xfer += $input->readListBegin($_etype1035, $_size1032); + for ($_i1036 = 0; $_i1036 < $_size1032; ++$_i1036) { - $elem925 = null; - $xfer += $input->readString($elem925); - $this->success []= $elem925; + $elem1037 = null; + $xfer += $input->readString($elem1037); + $this->success []= $elem1037; } $xfer += $input->readListEnd(); } else { @@ -20840,9 +20896,9 @@ class ThriftHiveMetastore_get_tables_by_type_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter926) + foreach ($this->success as $iter1038) { - $xfer += $output->writeString($iter926); + $xfer += $output->writeString($iter1038); } } $output->writeListEnd(); @@ -20998,14 +21054,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) + $_size1039 = 0; + $_etype1042 = 0; + $xfer += $input->readListBegin($_etype1042, $_size1039); + for ($_i1043 = 0; $_i1043 < $_size1039; ++$_i1043) { - $elem932 = null; - $xfer += $input->readString($elem932); - $this->success []= $elem932; + $elem1044 = null; + $xfer += $input->readString($elem1044); + $this->success []= $elem1044; } $xfer += $input->readListEnd(); } else { @@ -21041,9 +21097,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 $iter1045) { - $xfer += $output->writeString($iter933); + $xfer += $output->writeString($iter1045); } } $output->writeListEnd(); @@ -21148,14 +21204,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) + $_size1046 = 0; + $_etype1049 = 0; + $xfer += $input->readListBegin($_etype1049, $_size1046); + for ($_i1050 = 0; $_i1050 < $_size1046; ++$_i1050) { - $elem939 = null; - $xfer += $input->readString($elem939); - $this->tbl_types []= $elem939; + $elem1051 = null; + $xfer += $input->readString($elem1051); + $this->tbl_types []= $elem1051; } $xfer += $input->readListEnd(); } else { @@ -21193,9 +21249,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 $iter1052) { - $xfer += $output->writeString($iter940); + $xfer += $output->writeString($iter1052); } } $output->writeListEnd(); @@ -21272,15 +21328,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) + $_size1053 = 0; + $_etype1056 = 0; + $xfer += $input->readListBegin($_etype1056, $_size1053); + for ($_i1057 = 0; $_i1057 < $_size1053; ++$_i1057) { - $elem946 = null; - $elem946 = new \metastore\TableMeta(); - $xfer += $elem946->read($input); - $this->success []= $elem946; + $elem1058 = null; + $elem1058 = new \metastore\TableMeta(); + $xfer += $elem1058->read($input); + $this->success []= $elem1058; } $xfer += $input->readListEnd(); } else { @@ -21316,9 +21372,9 @@ class ThriftHiveMetastore_get_table_meta_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter947) + foreach ($this->success as $iter1059) { - $xfer += $iter947->write($output); + $xfer += $iter1059->write($output); } } $output->writeListEnd(); @@ -21474,14 +21530,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) + $_size1060 = 0; + $_etype1063 = 0; + $xfer += $input->readListBegin($_etype1063, $_size1060); + for ($_i1064 = 0; $_i1064 < $_size1060; ++$_i1064) { - $elem953 = null; - $xfer += $input->readString($elem953); - $this->success []= $elem953; + $elem1065 = null; + $xfer += $input->readString($elem1065); + $this->success []= $elem1065; } $xfer += $input->readListEnd(); } else { @@ -21517,9 +21573,9 @@ class ThriftHiveMetastore_get_all_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter954) + foreach ($this->success as $iter1066) { - $xfer += $output->writeString($iter954); + $xfer += $output->writeString($iter1066); } } $output->writeListEnd(); @@ -21834,14 +21890,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) + $_size1067 = 0; + $_etype1070 = 0; + $xfer += $input->readListBegin($_etype1070, $_size1067); + for ($_i1071 = 0; $_i1071 < $_size1067; ++$_i1071) { - $elem960 = null; - $xfer += $input->readString($elem960); - $this->tbl_names []= $elem960; + $elem1072 = null; + $xfer += $input->readString($elem1072); + $this->tbl_names []= $elem1072; } $xfer += $input->readListEnd(); } else { @@ -21874,9 +21930,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 $iter1073) { - $xfer += $output->writeString($iter961); + $xfer += $output->writeString($iter1073); } } $output->writeListEnd(); @@ -21941,15 +21997,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) + $_size1074 = 0; + $_etype1077 = 0; + $xfer += $input->readListBegin($_etype1077, $_size1074); + for ($_i1078 = 0; $_i1078 < $_size1074; ++$_i1078) { - $elem967 = null; - $elem967 = new \metastore\Table(); - $xfer += $elem967->read($input); - $this->success []= $elem967; + $elem1079 = null; + $elem1079 = new \metastore\Table(); + $xfer += $elem1079->read($input); + $this->success []= $elem1079; } $xfer += $input->readListEnd(); } else { @@ -21977,9 +22033,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 $iter1080) { - $xfer += $iter968->write($output); + $xfer += $iter1080->write($output); } } $output->writeListEnd(); @@ -22506,14 +22562,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) + $_size1081 = 0; + $_etype1084 = 0; + $xfer += $input->readListBegin($_etype1084, $_size1081); + for ($_i1085 = 0; $_i1085 < $_size1081; ++$_i1085) { - $elem974 = null; - $xfer += $input->readString($elem974); - $this->tbl_names []= $elem974; + $elem1086 = null; + $xfer += $input->readString($elem1086); + $this->tbl_names []= $elem1086; } $xfer += $input->readListEnd(); } else { @@ -22546,9 +22602,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 $iter1087) { - $xfer += $output->writeString($iter975); + $xfer += $output->writeString($iter1087); } } $output->writeListEnd(); @@ -22653,18 +22709,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) + $_size1088 = 0; + $_ktype1089 = 0; + $_vtype1090 = 0; + $xfer += $input->readMapBegin($_ktype1089, $_vtype1090, $_size1088); + for ($_i1092 = 0; $_i1092 < $_size1088; ++$_i1092) { - $key981 = ''; - $val982 = new \metastore\Materialization(); - $xfer += $input->readString($key981); - $val982 = new \metastore\Materialization(); - $xfer += $val982->read($input); - $this->success[$key981] = $val982; + $key1093 = ''; + $val1094 = new \metastore\Materialization(); + $xfer += $input->readString($key1093); + $val1094 = new \metastore\Materialization(); + $xfer += $val1094->read($input); + $this->success[$key1093] = $val1094; } $xfer += $input->readMapEnd(); } else { @@ -22716,10 +22772,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 $kiter1095 => $viter1096) { - $xfer += $output->writeString($kiter983); - $xfer += $viter984->write($output); + $xfer += $output->writeString($kiter1095); + $xfer += $viter1096->write($output); } } $output->writeMapEnd(); @@ -23231,14 +23287,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) + $_size1097 = 0; + $_etype1100 = 0; + $xfer += $input->readListBegin($_etype1100, $_size1097); + for ($_i1101 = 0; $_i1101 < $_size1097; ++$_i1101) { - $elem990 = null; - $xfer += $input->readString($elem990); - $this->success []= $elem990; + $elem1102 = null; + $xfer += $input->readString($elem1102); + $this->success []= $elem1102; } $xfer += $input->readListEnd(); } else { @@ -23290,9 +23346,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 $iter1103) { - $xfer += $output->writeString($iter991); + $xfer += $output->writeString($iter1103); } } $output->writeListEnd(); @@ -24605,15 +24661,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) + $_size1104 = 0; + $_etype1107 = 0; + $xfer += $input->readListBegin($_etype1107, $_size1104); + for ($_i1108 = 0; $_i1108 < $_size1104; ++$_i1108) { - $elem997 = null; - $elem997 = new \metastore\Partition(); - $xfer += $elem997->read($input); - $this->new_parts []= $elem997; + $elem1109 = null; + $elem1109 = new \metastore\Partition(); + $xfer += $elem1109->read($input); + $this->new_parts []= $elem1109; } $xfer += $input->readListEnd(); } else { @@ -24641,9 +24697,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 $iter1110) { - $xfer += $iter998->write($output); + $xfer += $iter1110->write($output); } } $output->writeListEnd(); @@ -24858,15 +24914,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) + $_size1111 = 0; + $_etype1114 = 0; + $xfer += $input->readListBegin($_etype1114, $_size1111); + for ($_i1115 = 0; $_i1115 < $_size1111; ++$_i1115) { - $elem1004 = null; - $elem1004 = new \metastore\PartitionSpec(); - $xfer += $elem1004->read($input); - $this->new_parts []= $elem1004; + $elem1116 = null; + $elem1116 = new \metastore\PartitionSpec(); + $xfer += $elem1116->read($input); + $this->new_parts []= $elem1116; } $xfer += $input->readListEnd(); } else { @@ -24894,9 +24950,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 $iter1117) { - $xfer += $iter1005->write($output); + $xfer += $iter1117->write($output); } } $output->writeListEnd(); @@ -25146,14 +25202,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) + $_size1118 = 0; + $_etype1121 = 0; + $xfer += $input->readListBegin($_etype1121, $_size1118); + for ($_i1122 = 0; $_i1122 < $_size1118; ++$_i1122) { - $elem1011 = null; - $xfer += $input->readString($elem1011); - $this->part_vals []= $elem1011; + $elem1123 = null; + $xfer += $input->readString($elem1123); + $this->part_vals []= $elem1123; } $xfer += $input->readListEnd(); } else { @@ -25191,9 +25247,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 $iter1124) { - $xfer += $output->writeString($iter1012); + $xfer += $output->writeString($iter1124); } } $output->writeListEnd(); @@ -25695,14 +25751,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) + $_size1125 = 0; + $_etype1128 = 0; + $xfer += $input->readListBegin($_etype1128, $_size1125); + for ($_i1129 = 0; $_i1129 < $_size1125; ++$_i1129) { - $elem1018 = null; - $xfer += $input->readString($elem1018); - $this->part_vals []= $elem1018; + $elem1130 = null; + $xfer += $input->readString($elem1130); + $this->part_vals []= $elem1130; } $xfer += $input->readListEnd(); } else { @@ -25748,9 +25804,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 $iter1131) { - $xfer += $output->writeString($iter1019); + $xfer += $output->writeString($iter1131); } } $output->writeListEnd(); @@ -26604,14 +26660,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) + $_size1132 = 0; + $_etype1135 = 0; + $xfer += $input->readListBegin($_etype1135, $_size1132); + for ($_i1136 = 0; $_i1136 < $_size1132; ++$_i1136) { - $elem1025 = null; - $xfer += $input->readString($elem1025); - $this->part_vals []= $elem1025; + $elem1137 = null; + $xfer += $input->readString($elem1137); + $this->part_vals []= $elem1137; } $xfer += $input->readListEnd(); } else { @@ -26656,9 +26712,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 $iter1138) { - $xfer += $output->writeString($iter1026); + $xfer += $output->writeString($iter1138); } } $output->writeListEnd(); @@ -26911,14 +26967,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) + $_size1139 = 0; + $_etype1142 = 0; + $xfer += $input->readListBegin($_etype1142, $_size1139); + for ($_i1143 = 0; $_i1143 < $_size1139; ++$_i1143) { - $elem1032 = null; - $xfer += $input->readString($elem1032); - $this->part_vals []= $elem1032; + $elem1144 = null; + $xfer += $input->readString($elem1144); + $this->part_vals []= $elem1144; } $xfer += $input->readListEnd(); } else { @@ -26971,9 +27027,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 $iter1145) { - $xfer += $output->writeString($iter1033); + $xfer += $output->writeString($iter1145); } } $output->writeListEnd(); @@ -27987,14 +28043,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) + $_size1146 = 0; + $_etype1149 = 0; + $xfer += $input->readListBegin($_etype1149, $_size1146); + for ($_i1150 = 0; $_i1150 < $_size1146; ++$_i1150) { - $elem1039 = null; - $xfer += $input->readString($elem1039); - $this->part_vals []= $elem1039; + $elem1151 = null; + $xfer += $input->readString($elem1151); + $this->part_vals []= $elem1151; } $xfer += $input->readListEnd(); } else { @@ -28032,9 +28088,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 $iter1152) { - $xfer += $output->writeString($iter1040); + $xfer += $output->writeString($iter1152); } } $output->writeListEnd(); @@ -28276,17 +28332,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) + $_size1153 = 0; + $_ktype1154 = 0; + $_vtype1155 = 0; + $xfer += $input->readMapBegin($_ktype1154, $_vtype1155, $_size1153); + for ($_i1157 = 0; $_i1157 < $_size1153; ++$_i1157) { - $key1046 = ''; - $val1047 = ''; - $xfer += $input->readString($key1046); - $xfer += $input->readString($val1047); - $this->partitionSpecs[$key1046] = $val1047; + $key1158 = ''; + $val1159 = ''; + $xfer += $input->readString($key1158); + $xfer += $input->readString($val1159); + $this->partitionSpecs[$key1158] = $val1159; } $xfer += $input->readMapEnd(); } else { @@ -28342,10 +28398,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 $kiter1160 => $viter1161) { - $xfer += $output->writeString($kiter1048); - $xfer += $output->writeString($viter1049); + $xfer += $output->writeString($kiter1160); + $xfer += $output->writeString($viter1161); } } $output->writeMapEnd(); @@ -28657,17 +28713,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) + $_size1162 = 0; + $_ktype1163 = 0; + $_vtype1164 = 0; + $xfer += $input->readMapBegin($_ktype1163, $_vtype1164, $_size1162); + for ($_i1166 = 0; $_i1166 < $_size1162; ++$_i1166) { - $key1055 = ''; - $val1056 = ''; - $xfer += $input->readString($key1055); - $xfer += $input->readString($val1056); - $this->partitionSpecs[$key1055] = $val1056; + $key1167 = ''; + $val1168 = ''; + $xfer += $input->readString($key1167); + $xfer += $input->readString($val1168); + $this->partitionSpecs[$key1167] = $val1168; } $xfer += $input->readMapEnd(); } else { @@ -28723,10 +28779,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 $kiter1169 => $viter1170) { - $xfer += $output->writeString($kiter1057); - $xfer += $output->writeString($viter1058); + $xfer += $output->writeString($kiter1169); + $xfer += $output->writeString($viter1170); } } $output->writeMapEnd(); @@ -28859,15 +28915,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) + $_size1171 = 0; + $_etype1174 = 0; + $xfer += $input->readListBegin($_etype1174, $_size1171); + for ($_i1175 = 0; $_i1175 < $_size1171; ++$_i1175) { - $elem1064 = null; - $elem1064 = new \metastore\Partition(); - $xfer += $elem1064->read($input); - $this->success []= $elem1064; + $elem1176 = null; + $elem1176 = new \metastore\Partition(); + $xfer += $elem1176->read($input); + $this->success []= $elem1176; } $xfer += $input->readListEnd(); } else { @@ -28927,9 +28983,9 @@ class ThriftHiveMetastore_exchange_partitions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1065) + foreach ($this->success as $iter1177) { - $xfer += $iter1065->write($output); + $xfer += $iter1177->write($output); } } $output->writeListEnd(); @@ -29075,14 +29131,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) + $_size1178 = 0; + $_etype1181 = 0; + $xfer += $input->readListBegin($_etype1181, $_size1178); + for ($_i1182 = 0; $_i1182 < $_size1178; ++$_i1182) { - $elem1071 = null; - $xfer += $input->readString($elem1071); - $this->part_vals []= $elem1071; + $elem1183 = null; + $xfer += $input->readString($elem1183); + $this->part_vals []= $elem1183; } $xfer += $input->readListEnd(); } else { @@ -29099,14 +29155,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) + $_size1184 = 0; + $_etype1187 = 0; + $xfer += $input->readListBegin($_etype1187, $_size1184); + for ($_i1188 = 0; $_i1188 < $_size1184; ++$_i1188) { - $elem1077 = null; - $xfer += $input->readString($elem1077); - $this->group_names []= $elem1077; + $elem1189 = null; + $xfer += $input->readString($elem1189); + $this->group_names []= $elem1189; } $xfer += $input->readListEnd(); } else { @@ -29144,9 +29200,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 $iter1190) { - $xfer += $output->writeString($iter1078); + $xfer += $output->writeString($iter1190); } } $output->writeListEnd(); @@ -29166,9 +29222,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 $iter1191) { - $xfer += $output->writeString($iter1079); + $xfer += $output->writeString($iter1191); } } $output->writeListEnd(); @@ -29759,15 +29815,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) + $_size1192 = 0; + $_etype1195 = 0; + $xfer += $input->readListBegin($_etype1195, $_size1192); + for ($_i1196 = 0; $_i1196 < $_size1192; ++$_i1196) { - $elem1085 = null; - $elem1085 = new \metastore\Partition(); - $xfer += $elem1085->read($input); - $this->success []= $elem1085; + $elem1197 = null; + $elem1197 = new \metastore\Partition(); + $xfer += $elem1197->read($input); + $this->success []= $elem1197; } $xfer += $input->readListEnd(); } else { @@ -29811,9 +29867,9 @@ class ThriftHiveMetastore_get_partitions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1086) + foreach ($this->success as $iter1198) { - $xfer += $iter1086->write($output); + $xfer += $iter1198->write($output); } } $output->writeListEnd(); @@ -29959,14 +30015,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) + $_size1199 = 0; + $_etype1202 = 0; + $xfer += $input->readListBegin($_etype1202, $_size1199); + for ($_i1203 = 0; $_i1203 < $_size1199; ++$_i1203) { - $elem1092 = null; - $xfer += $input->readString($elem1092); - $this->group_names []= $elem1092; + $elem1204 = null; + $xfer += $input->readString($elem1204); + $this->group_names []= $elem1204; } $xfer += $input->readListEnd(); } else { @@ -30014,9 +30070,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 $iter1205) { - $xfer += $output->writeString($iter1093); + $xfer += $output->writeString($iter1205); } } $output->writeListEnd(); @@ -30105,15 +30161,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) + $_size1206 = 0; + $_etype1209 = 0; + $xfer += $input->readListBegin($_etype1209, $_size1206); + for ($_i1210 = 0; $_i1210 < $_size1206; ++$_i1210) { - $elem1099 = null; - $elem1099 = new \metastore\Partition(); - $xfer += $elem1099->read($input); - $this->success []= $elem1099; + $elem1211 = null; + $elem1211 = new \metastore\Partition(); + $xfer += $elem1211->read($input); + $this->success []= $elem1211; } $xfer += $input->readListEnd(); } else { @@ -30157,9 +30213,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1100) + foreach ($this->success as $iter1212) { - $xfer += $iter1100->write($output); + $xfer += $iter1212->write($output); } } $output->writeListEnd(); @@ -30379,15 +30435,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) + $_size1213 = 0; + $_etype1216 = 0; + $xfer += $input->readListBegin($_etype1216, $_size1213); + for ($_i1217 = 0; $_i1217 < $_size1213; ++$_i1217) { - $elem1106 = null; - $elem1106 = new \metastore\PartitionSpec(); - $xfer += $elem1106->read($input); - $this->success []= $elem1106; + $elem1218 = null; + $elem1218 = new \metastore\PartitionSpec(); + $xfer += $elem1218->read($input); + $this->success []= $elem1218; } $xfer += $input->readListEnd(); } else { @@ -30431,9 +30487,9 @@ class ThriftHiveMetastore_get_partitions_pspec_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1107) + foreach ($this->success as $iter1219) { - $xfer += $iter1107->write($output); + $xfer += $iter1219->write($output); } } $output->writeListEnd(); @@ -30652,14 +30708,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) + $_size1220 = 0; + $_etype1223 = 0; + $xfer += $input->readListBegin($_etype1223, $_size1220); + for ($_i1224 = 0; $_i1224 < $_size1220; ++$_i1224) { - $elem1113 = null; - $xfer += $input->readString($elem1113); - $this->success []= $elem1113; + $elem1225 = null; + $xfer += $input->readString($elem1225); + $this->success []= $elem1225; } $xfer += $input->readListEnd(); } else { @@ -30703,9 +30759,9 @@ class ThriftHiveMetastore_get_partition_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1114) + foreach ($this->success as $iter1226) { - $xfer += $output->writeString($iter1114); + $xfer += $output->writeString($iter1226); } } $output->writeListEnd(); @@ -31036,14 +31092,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) + $_size1227 = 0; + $_etype1230 = 0; + $xfer += $input->readListBegin($_etype1230, $_size1227); + for ($_i1231 = 0; $_i1231 < $_size1227; ++$_i1231) { - $elem1120 = null; - $xfer += $input->readString($elem1120); - $this->part_vals []= $elem1120; + $elem1232 = null; + $xfer += $input->readString($elem1232); + $this->part_vals []= $elem1232; } $xfer += $input->readListEnd(); } else { @@ -31088,9 +31144,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 $iter1233) { - $xfer += $output->writeString($iter1121); + $xfer += $output->writeString($iter1233); } } $output->writeListEnd(); @@ -31184,15 +31240,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) + $_size1234 = 0; + $_etype1237 = 0; + $xfer += $input->readListBegin($_etype1237, $_size1234); + for ($_i1238 = 0; $_i1238 < $_size1234; ++$_i1238) { - $elem1127 = null; - $elem1127 = new \metastore\Partition(); - $xfer += $elem1127->read($input); - $this->success []= $elem1127; + $elem1239 = null; + $elem1239 = new \metastore\Partition(); + $xfer += $elem1239->read($input); + $this->success []= $elem1239; } $xfer += $input->readListEnd(); } else { @@ -31236,9 +31292,9 @@ class ThriftHiveMetastore_get_partitions_ps_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1128) + foreach ($this->success as $iter1240) { - $xfer += $iter1128->write($output); + $xfer += $iter1240->write($output); } } $output->writeListEnd(); @@ -31385,14 +31441,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) + $_size1241 = 0; + $_etype1244 = 0; + $xfer += $input->readListBegin($_etype1244, $_size1241); + for ($_i1245 = 0; $_i1245 < $_size1241; ++$_i1245) { - $elem1134 = null; - $xfer += $input->readString($elem1134); - $this->part_vals []= $elem1134; + $elem1246 = null; + $xfer += $input->readString($elem1246); + $this->part_vals []= $elem1246; } $xfer += $input->readListEnd(); } else { @@ -31416,14 +31472,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) + $_size1247 = 0; + $_etype1250 = 0; + $xfer += $input->readListBegin($_etype1250, $_size1247); + for ($_i1251 = 0; $_i1251 < $_size1247; ++$_i1251) { - $elem1140 = null; - $xfer += $input->readString($elem1140); - $this->group_names []= $elem1140; + $elem1252 = null; + $xfer += $input->readString($elem1252); + $this->group_names []= $elem1252; } $xfer += $input->readListEnd(); } else { @@ -31461,9 +31517,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 $iter1253) { - $xfer += $output->writeString($iter1141); + $xfer += $output->writeString($iter1253); } } $output->writeListEnd(); @@ -31488,9 +31544,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 $iter1254) { - $xfer += $output->writeString($iter1142); + $xfer += $output->writeString($iter1254); } } $output->writeListEnd(); @@ -31579,15 +31635,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) + $_size1255 = 0; + $_etype1258 = 0; + $xfer += $input->readListBegin($_etype1258, $_size1255); + for ($_i1259 = 0; $_i1259 < $_size1255; ++$_i1259) { - $elem1148 = null; - $elem1148 = new \metastore\Partition(); - $xfer += $elem1148->read($input); - $this->success []= $elem1148; + $elem1260 = null; + $elem1260 = new \metastore\Partition(); + $xfer += $elem1260->read($input); + $this->success []= $elem1260; } $xfer += $input->readListEnd(); } else { @@ -31631,9 +31687,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 $iter1261) { - $xfer += $iter1149->write($output); + $xfer += $iter1261->write($output); } } $output->writeListEnd(); @@ -31754,14 +31810,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) + $_size1262 = 0; + $_etype1265 = 0; + $xfer += $input->readListBegin($_etype1265, $_size1262); + for ($_i1266 = 0; $_i1266 < $_size1262; ++$_i1266) { - $elem1155 = null; - $xfer += $input->readString($elem1155); - $this->part_vals []= $elem1155; + $elem1267 = null; + $xfer += $input->readString($elem1267); + $this->part_vals []= $elem1267; } $xfer += $input->readListEnd(); } else { @@ -31806,9 +31862,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 $iter1268) { - $xfer += $output->writeString($iter1156); + $xfer += $output->writeString($iter1268); } } $output->writeListEnd(); @@ -31901,14 +31957,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) + $_size1269 = 0; + $_etype1272 = 0; + $xfer += $input->readListBegin($_etype1272, $_size1269); + for ($_i1273 = 0; $_i1273 < $_size1269; ++$_i1273) { - $elem1162 = null; - $xfer += $input->readString($elem1162); - $this->success []= $elem1162; + $elem1274 = null; + $xfer += $input->readString($elem1274); + $this->success []= $elem1274; } $xfer += $input->readListEnd(); } else { @@ -31952,9 +32008,9 @@ class ThriftHiveMetastore_get_partition_names_ps_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1163) + foreach ($this->success as $iter1275) { - $xfer += $output->writeString($iter1163); + $xfer += $output->writeString($iter1275); } } $output->writeListEnd(); @@ -32197,15 +32253,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) + $_size1276 = 0; + $_etype1279 = 0; + $xfer += $input->readListBegin($_etype1279, $_size1276); + for ($_i1280 = 0; $_i1280 < $_size1276; ++$_i1280) { - $elem1169 = null; - $elem1169 = new \metastore\Partition(); - $xfer += $elem1169->read($input); - $this->success []= $elem1169; + $elem1281 = null; + $elem1281 = new \metastore\Partition(); + $xfer += $elem1281->read($input); + $this->success []= $elem1281; } $xfer += $input->readListEnd(); } else { @@ -32249,9 +32305,9 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1170) + foreach ($this->success as $iter1282) { - $xfer += $iter1170->write($output); + $xfer += $iter1282->write($output); } } $output->writeListEnd(); @@ -32494,15 +32550,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) + $_size1283 = 0; + $_etype1286 = 0; + $xfer += $input->readListBegin($_etype1286, $_size1283); + for ($_i1287 = 0; $_i1287 < $_size1283; ++$_i1287) { - $elem1176 = null; - $elem1176 = new \metastore\PartitionSpec(); - $xfer += $elem1176->read($input); - $this->success []= $elem1176; + $elem1288 = null; + $elem1288 = new \metastore\PartitionSpec(); + $xfer += $elem1288->read($input); + $this->success []= $elem1288; } $xfer += $input->readListEnd(); } else { @@ -32546,9 +32602,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 $iter1289) { - $xfer += $iter1177->write($output); + $xfer += $iter1289->write($output); } } $output->writeListEnd(); @@ -33114,14 +33170,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) + $_size1290 = 0; + $_etype1293 = 0; + $xfer += $input->readListBegin($_etype1293, $_size1290); + for ($_i1294 = 0; $_i1294 < $_size1290; ++$_i1294) { - $elem1183 = null; - $xfer += $input->readString($elem1183); - $this->names []= $elem1183; + $elem1295 = null; + $xfer += $input->readString($elem1295); + $this->names []= $elem1295; } $xfer += $input->readListEnd(); } else { @@ -33159,9 +33215,9 @@ class ThriftHiveMetastore_get_partitions_by_names_args { { $output->writeListBegin(TType::STRING, count($this->names)); { - foreach ($this->names as $iter1184) + foreach ($this->names as $iter1296) { - $xfer += $output->writeString($iter1184); + $xfer += $output->writeString($iter1296); } } $output->writeListEnd(); @@ -33250,15 +33306,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) + $_size1297 = 0; + $_etype1300 = 0; + $xfer += $input->readListBegin($_etype1300, $_size1297); + for ($_i1301 = 0; $_i1301 < $_size1297; ++$_i1301) { - $elem1190 = null; - $elem1190 = new \metastore\Partition(); - $xfer += $elem1190->read($input); - $this->success []= $elem1190; + $elem1302 = null; + $elem1302 = new \metastore\Partition(); + $xfer += $elem1302->read($input); + $this->success []= $elem1302; } $xfer += $input->readListEnd(); } else { @@ -33302,9 +33358,9 @@ class ThriftHiveMetastore_get_partitions_by_names_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1191) + foreach ($this->success as $iter1303) { - $xfer += $iter1191->write($output); + $xfer += $iter1303->write($output); } } $output->writeListEnd(); @@ -33643,15 +33699,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) + $_size1304 = 0; + $_etype1307 = 0; + $xfer += $input->readListBegin($_etype1307, $_size1304); + for ($_i1308 = 0; $_i1308 < $_size1304; ++$_i1308) { - $elem1197 = null; - $elem1197 = new \metastore\Partition(); - $xfer += $elem1197->read($input); - $this->new_parts []= $elem1197; + $elem1309 = null; + $elem1309 = new \metastore\Partition(); + $xfer += $elem1309->read($input); + $this->new_parts []= $elem1309; } $xfer += $input->readListEnd(); } else { @@ -33689,9 +33745,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 $iter1310) { - $xfer += $iter1198->write($output); + $xfer += $iter1310->write($output); } } $output->writeListEnd(); @@ -33906,15 +33962,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) + $_size1311 = 0; + $_etype1314 = 0; + $xfer += $input->readListBegin($_etype1314, $_size1311); + for ($_i1315 = 0; $_i1315 < $_size1311; ++$_i1315) { - $elem1204 = null; - $elem1204 = new \metastore\Partition(); - $xfer += $elem1204->read($input); - $this->new_parts []= $elem1204; + $elem1316 = null; + $elem1316 = new \metastore\Partition(); + $xfer += $elem1316->read($input); + $this->new_parts []= $elem1316; } $xfer += $input->readListEnd(); } else { @@ -33960,9 +34016,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 $iter1317) { - $xfer += $iter1205->write($output); + $xfer += $iter1317->write($output); } } $output->writeListEnd(); @@ -34440,14 +34496,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) + $_size1318 = 0; + $_etype1321 = 0; + $xfer += $input->readListBegin($_etype1321, $_size1318); + for ($_i1322 = 0; $_i1322 < $_size1318; ++$_i1322) { - $elem1211 = null; - $xfer += $input->readString($elem1211); - $this->part_vals []= $elem1211; + $elem1323 = null; + $xfer += $input->readString($elem1323); + $this->part_vals []= $elem1323; } $xfer += $input->readListEnd(); } else { @@ -34493,9 +34549,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 $iter1324) { - $xfer += $output->writeString($iter1212); + $xfer += $output->writeString($iter1324); } } $output->writeListEnd(); @@ -34680,14 +34736,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) + $_size1325 = 0; + $_etype1328 = 0; + $xfer += $input->readListBegin($_etype1328, $_size1325); + for ($_i1329 = 0; $_i1329 < $_size1325; ++$_i1329) { - $elem1218 = null; - $xfer += $input->readString($elem1218); - $this->part_vals []= $elem1218; + $elem1330 = null; + $xfer += $input->readString($elem1330); + $this->part_vals []= $elem1330; } $xfer += $input->readListEnd(); } else { @@ -34722,9 +34778,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 $iter1331) { - $xfer += $output->writeString($iter1219); + $xfer += $output->writeString($iter1331); } } $output->writeListEnd(); @@ -35178,14 +35234,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) + $_size1332 = 0; + $_etype1335 = 0; + $xfer += $input->readListBegin($_etype1335, $_size1332); + for ($_i1336 = 0; $_i1336 < $_size1332; ++$_i1336) { - $elem1225 = null; - $xfer += $input->readString($elem1225); - $this->success []= $elem1225; + $elem1337 = null; + $xfer += $input->readString($elem1337); + $this->success []= $elem1337; } $xfer += $input->readListEnd(); } else { @@ -35221,9 +35277,9 @@ class ThriftHiveMetastore_partition_name_to_vals_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1226) + foreach ($this->success as $iter1338) { - $xfer += $output->writeString($iter1226); + $xfer += $output->writeString($iter1338); } } $output->writeListEnd(); @@ -35383,17 +35439,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) + $_size1339 = 0; + $_ktype1340 = 0; + $_vtype1341 = 0; + $xfer += $input->readMapBegin($_ktype1340, $_vtype1341, $_size1339); + for ($_i1343 = 0; $_i1343 < $_size1339; ++$_i1343) { - $key1232 = ''; - $val1233 = ''; - $xfer += $input->readString($key1232); - $xfer += $input->readString($val1233); - $this->success[$key1232] = $val1233; + $key1344 = ''; + $val1345 = ''; + $xfer += $input->readString($key1344); + $xfer += $input->readString($val1345); + $this->success[$key1344] = $val1345; } $xfer += $input->readMapEnd(); } else { @@ -35429,10 +35485,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 $kiter1346 => $viter1347) { - $xfer += $output->writeString($kiter1234); - $xfer += $output->writeString($viter1235); + $xfer += $output->writeString($kiter1346); + $xfer += $output->writeString($viter1347); } } $output->writeMapEnd(); @@ -35552,17 +35608,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) + $_size1348 = 0; + $_ktype1349 = 0; + $_vtype1350 = 0; + $xfer += $input->readMapBegin($_ktype1349, $_vtype1350, $_size1348); + for ($_i1352 = 0; $_i1352 < $_size1348; ++$_i1352) { - $key1241 = ''; - $val1242 = ''; - $xfer += $input->readString($key1241); - $xfer += $input->readString($val1242); - $this->part_vals[$key1241] = $val1242; + $key1353 = ''; + $val1354 = ''; + $xfer += $input->readString($key1353); + $xfer += $input->readString($val1354); + $this->part_vals[$key1353] = $val1354; } $xfer += $input->readMapEnd(); } else { @@ -35607,10 +35663,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 $kiter1355 => $viter1356) { - $xfer += $output->writeString($kiter1243); - $xfer += $output->writeString($viter1244); + $xfer += $output->writeString($kiter1355); + $xfer += $output->writeString($viter1356); } } $output->writeMapEnd(); @@ -35932,17 +35988,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) + $_size1357 = 0; + $_ktype1358 = 0; + $_vtype1359 = 0; + $xfer += $input->readMapBegin($_ktype1358, $_vtype1359, $_size1357); + for ($_i1361 = 0; $_i1361 < $_size1357; ++$_i1361) { - $key1250 = ''; - $val1251 = ''; - $xfer += $input->readString($key1250); - $xfer += $input->readString($val1251); - $this->part_vals[$key1250] = $val1251; + $key1362 = ''; + $val1363 = ''; + $xfer += $input->readString($key1362); + $xfer += $input->readString($val1363); + $this->part_vals[$key1362] = $val1363; } $xfer += $input->readMapEnd(); } else { @@ -35987,10 +36043,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 $kiter1364 => $viter1365) { - $xfer += $output->writeString($kiter1252); - $xfer += $output->writeString($viter1253); + $xfer += $output->writeString($kiter1364); + $xfer += $output->writeString($viter1365); } } $output->writeMapEnd(); @@ -40949,14 +41005,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) + $_size1366 = 0; + $_etype1369 = 0; + $xfer += $input->readListBegin($_etype1369, $_size1366); + for ($_i1370 = 0; $_i1370 < $_size1366; ++$_i1370) { - $elem1259 = null; - $xfer += $input->readString($elem1259); - $this->success []= $elem1259; + $elem1371 = null; + $xfer += $input->readString($elem1371); + $this->success []= $elem1371; } $xfer += $input->readListEnd(); } else { @@ -40992,9 +41048,9 @@ class ThriftHiveMetastore_get_functions_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1260) + foreach ($this->success as $iter1372) { - $xfer += $output->writeString($iter1260); + $xfer += $output->writeString($iter1372); } } $output->writeListEnd(); @@ -41863,14 +41919,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) + $_size1373 = 0; + $_etype1376 = 0; + $xfer += $input->readListBegin($_etype1376, $_size1373); + for ($_i1377 = 0; $_i1377 < $_size1373; ++$_i1377) { - $elem1266 = null; - $xfer += $input->readString($elem1266); - $this->success []= $elem1266; + $elem1378 = null; + $xfer += $input->readString($elem1378); + $this->success []= $elem1378; } $xfer += $input->readListEnd(); } else { @@ -41906,9 +41962,9 @@ class ThriftHiveMetastore_get_role_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1267) + foreach ($this->success as $iter1379) { - $xfer += $output->writeString($iter1267); + $xfer += $output->writeString($iter1379); } } $output->writeListEnd(); @@ -42599,15 +42655,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) + $_size1380 = 0; + $_etype1383 = 0; + $xfer += $input->readListBegin($_etype1383, $_size1380); + for ($_i1384 = 0; $_i1384 < $_size1380; ++$_i1384) { - $elem1273 = null; - $elem1273 = new \metastore\Role(); - $xfer += $elem1273->read($input); - $this->success []= $elem1273; + $elem1385 = null; + $elem1385 = new \metastore\Role(); + $xfer += $elem1385->read($input); + $this->success []= $elem1385; } $xfer += $input->readListEnd(); } else { @@ -42643,9 +42699,9 @@ class ThriftHiveMetastore_list_roles_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1274) + foreach ($this->success as $iter1386) { - $xfer += $iter1274->write($output); + $xfer += $iter1386->write($output); } } $output->writeListEnd(); @@ -43307,14 +43363,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) + $_size1387 = 0; + $_etype1390 = 0; + $xfer += $input->readListBegin($_etype1390, $_size1387); + for ($_i1391 = 0; $_i1391 < $_size1387; ++$_i1391) { - $elem1280 = null; - $xfer += $input->readString($elem1280); - $this->group_names []= $elem1280; + $elem1392 = null; + $xfer += $input->readString($elem1392); + $this->group_names []= $elem1392; } $xfer += $input->readListEnd(); } else { @@ -43355,9 +43411,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 $iter1393) { - $xfer += $output->writeString($iter1281); + $xfer += $output->writeString($iter1393); } } $output->writeListEnd(); @@ -43665,15 +43721,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) + $_size1394 = 0; + $_etype1397 = 0; + $xfer += $input->readListBegin($_etype1397, $_size1394); + for ($_i1398 = 0; $_i1398 < $_size1394; ++$_i1398) { - $elem1287 = null; - $elem1287 = new \metastore\HiveObjectPrivilege(); - $xfer += $elem1287->read($input); - $this->success []= $elem1287; + $elem1399 = null; + $elem1399 = new \metastore\HiveObjectPrivilege(); + $xfer += $elem1399->read($input); + $this->success []= $elem1399; } $xfer += $input->readListEnd(); } else { @@ -43709,9 +43765,9 @@ class ThriftHiveMetastore_list_privileges_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1288) + foreach ($this->success as $iter1400) { - $xfer += $iter1288->write($output); + $xfer += $iter1400->write($output); } } $output->writeListEnd(); @@ -44343,14 +44399,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) + $_size1401 = 0; + $_etype1404 = 0; + $xfer += $input->readListBegin($_etype1404, $_size1401); + for ($_i1405 = 0; $_i1405 < $_size1401; ++$_i1405) { - $elem1294 = null; - $xfer += $input->readString($elem1294); - $this->group_names []= $elem1294; + $elem1406 = null; + $xfer += $input->readString($elem1406); + $this->group_names []= $elem1406; } $xfer += $input->readListEnd(); } else { @@ -44383,9 +44439,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 $iter1407) { - $xfer += $output->writeString($iter1295); + $xfer += $output->writeString($iter1407); } } $output->writeListEnd(); @@ -44461,14 +44517,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) + $_size1408 = 0; + $_etype1411 = 0; + $xfer += $input->readListBegin($_etype1411, $_size1408); + for ($_i1412 = 0; $_i1412 < $_size1408; ++$_i1412) { - $elem1301 = null; - $xfer += $input->readString($elem1301); - $this->success []= $elem1301; + $elem1413 = null; + $xfer += $input->readString($elem1413); + $this->success []= $elem1413; } $xfer += $input->readListEnd(); } else { @@ -44504,9 +44560,9 @@ class ThriftHiveMetastore_set_ugi_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1302) + foreach ($this->success as $iter1414) { - $xfer += $output->writeString($iter1302); + $xfer += $output->writeString($iter1414); } } $output->writeListEnd(); @@ -45623,14 +45679,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) + $_size1415 = 0; + $_etype1418 = 0; + $xfer += $input->readListBegin($_etype1418, $_size1415); + for ($_i1419 = 0; $_i1419 < $_size1415; ++$_i1419) { - $elem1308 = null; - $xfer += $input->readString($elem1308); - $this->success []= $elem1308; + $elem1420 = null; + $xfer += $input->readString($elem1420); + $this->success []= $elem1420; } $xfer += $input->readListEnd(); } else { @@ -45658,9 +45714,9 @@ class ThriftHiveMetastore_get_all_token_identifiers_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1309) + foreach ($this->success as $iter1421) { - $xfer += $output->writeString($iter1309); + $xfer += $output->writeString($iter1421); } } $output->writeListEnd(); @@ -46299,14 +46355,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) + $_size1422 = 0; + $_etype1425 = 0; + $xfer += $input->readListBegin($_etype1425, $_size1422); + for ($_i1426 = 0; $_i1426 < $_size1422; ++$_i1426) { - $elem1315 = null; - $xfer += $input->readString($elem1315); - $this->success []= $elem1315; + $elem1427 = null; + $xfer += $input->readString($elem1427); + $this->success []= $elem1427; } $xfer += $input->readListEnd(); } else { @@ -46334,9 +46390,9 @@ class ThriftHiveMetastore_get_master_keys_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1316) + foreach ($this->success as $iter1428) { - $xfer += $output->writeString($iter1316); + $xfer += $output->writeString($iter1428); } } $output->writeListEnd(); @@ -50207,6 +50263,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; @@ -56875,15 +57091,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) + $_size1429 = 0; + $_etype1432 = 0; + $xfer += $input->readListBegin($_etype1432, $_size1429); + for ($_i1433 = 0; $_i1433 < $_size1429; ++$_i1433) { - $elem1322 = null; - $elem1322 = new \metastore\SchemaVersion(); - $xfer += $elem1322->read($input); - $this->success []= $elem1322; + $elem1434 = null; + $elem1434 = new \metastore\SchemaVersion(); + $xfer += $elem1434->read($input); + $this->success []= $elem1434; } $xfer += $input->readListEnd(); } else { @@ -56927,9 +57143,9 @@ class ThriftHiveMetastore_get_schema_all_versions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1323) + foreach ($this->success as $iter1435) { - $xfer += $iter1323->write($output); + $xfer += $iter1435->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 c4969d567f..521492a798 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,34 @@ class CommitTxnRequest { * @var string */ public $replPolicy = null; + /** + * @var string[] + */ + public $databases = null; + /** + * @var string[] + */ + public $tables = null; + /** + * @var string[] + */ + public $partitions = null; + /** + * @var int[] + */ + public $writeIds = null; + /** + * @var string[] + */ + public $tableObjs = null; + /** + * @var string[] + */ + public $partitionObjs = null; + /** + * @var string[] + */ + public $files = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -16417,9 +16445,498 @@ class CommitTxnRequest { 'var' => 'txnid', 'type' => TType::I64, ), - 2 => array( - 'var' => 'replPolicy', - 'type' => TType::STRING, + 2 => array( + 'var' => 'replPolicy', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'databases', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + 4 => array( + 'var' => 'tables', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + 5 => array( + 'var' => 'partitions', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + 6 => array( + 'var' => 'writeIds', + 'type' => TType::LST, + 'etype' => TType::I64, + 'elem' => array( + 'type' => TType::I64, + ), + ), + 7 => array( + 'var' => 'tableObjs', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + 8 => array( + 'var' => 'partitionObjs', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + 9 => array( + 'var' => 'files', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + ); + } + if (is_array($vals)) { + if (isset($vals['txnid'])) { + $this->txnid = $vals['txnid']; + } + if (isset($vals['replPolicy'])) { + $this->replPolicy = $vals['replPolicy']; + } + if (isset($vals['databases'])) { + $this->databases = $vals['databases']; + } + if (isset($vals['tables'])) { + $this->tables = $vals['tables']; + } + if (isset($vals['partitions'])) { + $this->partitions = $vals['partitions']; + } + if (isset($vals['writeIds'])) { + $this->writeIds = $vals['writeIds']; + } + if (isset($vals['tableObjs'])) { + $this->tableObjs = $vals['tableObjs']; + } + if (isset($vals['partitionObjs'])) { + $this->partitionObjs = $vals['partitionObjs']; + } + if (isset($vals['files'])) { + $this->files = $vals['files']; + } + } + } + + public function getName() { + return 'CommitTxnRequest'; + } + + 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->txnid); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->replPolicy); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::LST) { + $this->databases = array(); + $_size523 = 0; + $_etype526 = 0; + $xfer += $input->readListBegin($_etype526, $_size523); + for ($_i527 = 0; $_i527 < $_size523; ++$_i527) + { + $elem528 = null; + $xfer += $input->readString($elem528); + $this->databases []= $elem528; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::LST) { + $this->tables = array(); + $_size529 = 0; + $_etype532 = 0; + $xfer += $input->readListBegin($_etype532, $_size529); + for ($_i533 = 0; $_i533 < $_size529; ++$_i533) + { + $elem534 = null; + $xfer += $input->readString($elem534); + $this->tables []= $elem534; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::LST) { + $this->partitions = array(); + $_size535 = 0; + $_etype538 = 0; + $xfer += $input->readListBegin($_etype538, $_size535); + for ($_i539 = 0; $_i539 < $_size535; ++$_i539) + { + $elem540 = null; + $xfer += $input->readString($elem540); + $this->partitions []= $elem540; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 6: + if ($ftype == TType::LST) { + $this->writeIds = array(); + $_size541 = 0; + $_etype544 = 0; + $xfer += $input->readListBegin($_etype544, $_size541); + for ($_i545 = 0; $_i545 < $_size541; ++$_i545) + { + $elem546 = null; + $xfer += $input->readI64($elem546); + $this->writeIds []= $elem546; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 7: + if ($ftype == TType::LST) { + $this->tableObjs = array(); + $_size547 = 0; + $_etype550 = 0; + $xfer += $input->readListBegin($_etype550, $_size547); + for ($_i551 = 0; $_i551 < $_size547; ++$_i551) + { + $elem552 = null; + $xfer += $input->readString($elem552); + $this->tableObjs []= $elem552; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 8: + if ($ftype == TType::LST) { + $this->partitionObjs = array(); + $_size553 = 0; + $_etype556 = 0; + $xfer += $input->readListBegin($_etype556, $_size553); + for ($_i557 = 0; $_i557 < $_size553; ++$_i557) + { + $elem558 = null; + $xfer += $input->readString($elem558); + $this->partitionObjs []= $elem558; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 9: + if ($ftype == TType::LST) { + $this->files = array(); + $_size559 = 0; + $_etype562 = 0; + $xfer += $input->readListBegin($_etype562, $_size559); + for ($_i563 = 0; $_i563 < $_size559; ++$_i563) + { + $elem564 = null; + $xfer += $input->readString($elem564); + $this->files []= $elem564; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('CommitTxnRequest'); + if ($this->txnid !== null) { + $xfer += $output->writeFieldBegin('txnid', TType::I64, 1); + $xfer += $output->writeI64($this->txnid); + $xfer += $output->writeFieldEnd(); + } + if ($this->replPolicy !== null) { + $xfer += $output->writeFieldBegin('replPolicy', TType::STRING, 2); + $xfer += $output->writeString($this->replPolicy); + $xfer += $output->writeFieldEnd(); + } + if ($this->databases !== null) { + if (!is_array($this->databases)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('databases', TType::LST, 3); + { + $output->writeListBegin(TType::STRING, count($this->databases)); + { + foreach ($this->databases as $iter565) + { + $xfer += $output->writeString($iter565); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->tables !== null) { + if (!is_array($this->tables)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('tables', TType::LST, 4); + { + $output->writeListBegin(TType::STRING, count($this->tables)); + { + foreach ($this->tables as $iter566) + { + $xfer += $output->writeString($iter566); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->partitions !== null) { + if (!is_array($this->partitions)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('partitions', TType::LST, 5); + { + $output->writeListBegin(TType::STRING, count($this->partitions)); + { + foreach ($this->partitions as $iter567) + { + $xfer += $output->writeString($iter567); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->writeIds !== null) { + if (!is_array($this->writeIds)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('writeIds', TType::LST, 6); + { + $output->writeListBegin(TType::I64, count($this->writeIds)); + { + foreach ($this->writeIds as $iter568) + { + $xfer += $output->writeI64($iter568); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->tableObjs !== null) { + if (!is_array($this->tableObjs)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('tableObjs', TType::LST, 7); + { + $output->writeListBegin(TType::STRING, count($this->tableObjs)); + { + foreach ($this->tableObjs as $iter569) + { + $xfer += $output->writeString($iter569); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->partitionObjs !== null) { + if (!is_array($this->partitionObjs)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('partitionObjs', TType::LST, 8); + { + $output->writeListBegin(TType::STRING, count($this->partitionObjs)); + { + foreach ($this->partitionObjs as $iter570) + { + $xfer += $output->writeString($iter570); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->files !== null) { + if (!is_array($this->files)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('files', TType::LST, 9); + { + $output->writeListBegin(TType::STRING, count($this->files)); + { + foreach ($this->files as $iter571) + { + $xfer += $output->writeString($iter571); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class WriteEventInfo { + static $_TSPEC; + + /** + * @var int + */ + public $txnid = null; + /** + * @var string[] + */ + public $databases = null; + /** + * @var string[] + */ + public $tables = null; + /** + * @var string[] + */ + public $partitions = null; + /** + * @var int[] + */ + public $writeIds = null; + /** + * @var string[] + */ + public $tableObjs = null; + /** + * @var string[] + */ + public $files = null; + /** + * @var string[] + */ + public $partitionObjs = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'txnid', + 'type' => TType::I64, + ), + 2 => array( + 'var' => 'databases', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + 3 => array( + 'var' => 'tables', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + 4 => array( + 'var' => 'partitions', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + 5 => array( + 'var' => 'writeIds', + 'type' => TType::LST, + 'etype' => TType::I64, + 'elem' => array( + 'type' => TType::I64, + ), + ), + 6 => array( + 'var' => 'tableObjs', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + 7 => array( + 'var' => 'files', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + 8 => array( + 'var' => 'partitionObjs', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), ), ); } @@ -16427,14 +16944,32 @@ class CommitTxnRequest { if (isset($vals['txnid'])) { $this->txnid = $vals['txnid']; } - if (isset($vals['replPolicy'])) { - $this->replPolicy = $vals['replPolicy']; + if (isset($vals['databases'])) { + $this->databases = $vals['databases']; + } + if (isset($vals['tables'])) { + $this->tables = $vals['tables']; + } + if (isset($vals['partitions'])) { + $this->partitions = $vals['partitions']; + } + if (isset($vals['writeIds'])) { + $this->writeIds = $vals['writeIds']; + } + if (isset($vals['tableObjs'])) { + $this->tableObjs = $vals['tableObjs']; + } + if (isset($vals['files'])) { + $this->files = $vals['files']; + } + if (isset($vals['partitionObjs'])) { + $this->partitionObjs = $vals['partitionObjs']; } } } public function getName() { - return 'CommitTxnRequest'; + return 'WriteEventInfo'; } public function read($input) @@ -16460,8 +16995,120 @@ class CommitTxnRequest { } break; case 2: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->replPolicy); + if ($ftype == TType::LST) { + $this->databases = array(); + $_size572 = 0; + $_etype575 = 0; + $xfer += $input->readListBegin($_etype575, $_size572); + for ($_i576 = 0; $_i576 < $_size572; ++$_i576) + { + $elem577 = null; + $xfer += $input->readString($elem577); + $this->databases []= $elem577; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::LST) { + $this->tables = array(); + $_size578 = 0; + $_etype581 = 0; + $xfer += $input->readListBegin($_etype581, $_size578); + for ($_i582 = 0; $_i582 < $_size578; ++$_i582) + { + $elem583 = null; + $xfer += $input->readString($elem583); + $this->tables []= $elem583; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::LST) { + $this->partitions = array(); + $_size584 = 0; + $_etype587 = 0; + $xfer += $input->readListBegin($_etype587, $_size584); + for ($_i588 = 0; $_i588 < $_size584; ++$_i588) + { + $elem589 = null; + $xfer += $input->readString($elem589); + $this->partitions []= $elem589; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::LST) { + $this->writeIds = array(); + $_size590 = 0; + $_etype593 = 0; + $xfer += $input->readListBegin($_etype593, $_size590); + for ($_i594 = 0; $_i594 < $_size590; ++$_i594) + { + $elem595 = null; + $xfer += $input->readI64($elem595); + $this->writeIds []= $elem595; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 6: + if ($ftype == TType::LST) { + $this->tableObjs = array(); + $_size596 = 0; + $_etype599 = 0; + $xfer += $input->readListBegin($_etype599, $_size596); + for ($_i600 = 0; $_i600 < $_size596; ++$_i600) + { + $elem601 = null; + $xfer += $input->readString($elem601); + $this->tableObjs []= $elem601; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 7: + if ($ftype == TType::LST) { + $this->files = array(); + $_size602 = 0; + $_etype605 = 0; + $xfer += $input->readListBegin($_etype605, $_size602); + for ($_i606 = 0; $_i606 < $_size602; ++$_i606) + { + $elem607 = null; + $xfer += $input->readString($elem607); + $this->files []= $elem607; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 8: + if ($ftype == TType::LST) { + $this->partitionObjs = array(); + $_size608 = 0; + $_etype611 = 0; + $xfer += $input->readListBegin($_etype611, $_size608); + for ($_i612 = 0; $_i612 < $_size608; ++$_i612) + { + $elem613 = null; + $xfer += $input->readString($elem613); + $this->partitionObjs []= $elem613; + } + $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } @@ -16478,15 +17125,129 @@ class CommitTxnRequest { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('CommitTxnRequest'); + $xfer += $output->writeStructBegin('WriteEventInfo'); if ($this->txnid !== null) { $xfer += $output->writeFieldBegin('txnid', TType::I64, 1); $xfer += $output->writeI64($this->txnid); $xfer += $output->writeFieldEnd(); } - if ($this->replPolicy !== null) { - $xfer += $output->writeFieldBegin('replPolicy', TType::STRING, 2); - $xfer += $output->writeString($this->replPolicy); + if ($this->databases !== null) { + if (!is_array($this->databases)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('databases', TType::LST, 2); + { + $output->writeListBegin(TType::STRING, count($this->databases)); + { + foreach ($this->databases as $iter614) + { + $xfer += $output->writeString($iter614); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->tables !== null) { + if (!is_array($this->tables)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('tables', TType::LST, 3); + { + $output->writeListBegin(TType::STRING, count($this->tables)); + { + foreach ($this->tables as $iter615) + { + $xfer += $output->writeString($iter615); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->partitions !== null) { + if (!is_array($this->partitions)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('partitions', TType::LST, 4); + { + $output->writeListBegin(TType::STRING, count($this->partitions)); + { + foreach ($this->partitions as $iter616) + { + $xfer += $output->writeString($iter616); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->writeIds !== null) { + if (!is_array($this->writeIds)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('writeIds', TType::LST, 5); + { + $output->writeListBegin(TType::I64, count($this->writeIds)); + { + foreach ($this->writeIds as $iter617) + { + $xfer += $output->writeI64($iter617); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->tableObjs !== null) { + if (!is_array($this->tableObjs)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('tableObjs', TType::LST, 6); + { + $output->writeListBegin(TType::STRING, count($this->tableObjs)); + { + foreach ($this->tableObjs as $iter618) + { + $xfer += $output->writeString($iter618); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->files !== null) { + if (!is_array($this->files)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('files', TType::LST, 7); + { + $output->writeListBegin(TType::STRING, count($this->files)); + { + foreach ($this->files as $iter619) + { + $xfer += $output->writeString($iter619); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->partitionObjs !== null) { + if (!is_array($this->partitionObjs)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('partitionObjs', TType::LST, 8); + { + $output->writeListBegin(TType::STRING, count($this->partitionObjs)); + { + foreach ($this->partitionObjs as $iter620) + { + $xfer += $output->writeString($iter620); + } + } + $output->writeListEnd(); + } $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -16557,14 +17318,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) + $_size621 = 0; + $_etype624 = 0; + $xfer += $input->readListBegin($_etype624, $_size621); + for ($_i625 = 0; $_i625 < $_size621; ++$_i625) { - $elem528 = null; - $xfer += $input->readString($elem528); - $this->fullTableNames []= $elem528; + $elem626 = null; + $xfer += $input->readString($elem626); + $this->fullTableNames []= $elem626; } $xfer += $input->readListEnd(); } else { @@ -16599,9 +17360,9 @@ class GetValidWriteIdsRequest { { $output->writeListBegin(TType::STRING, count($this->fullTableNames)); { - foreach ($this->fullTableNames as $iter529) + foreach ($this->fullTableNames as $iter627) { - $xfer += $output->writeString($iter529); + $xfer += $output->writeString($iter627); } } $output->writeListEnd(); @@ -16728,14 +17489,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) + $_size628 = 0; + $_etype631 = 0; + $xfer += $input->readListBegin($_etype631, $_size628); + for ($_i632 = 0; $_i632 < $_size628; ++$_i632) { - $elem535 = null; - $xfer += $input->readI64($elem535); - $this->invalidWriteIds []= $elem535; + $elem633 = null; + $xfer += $input->readI64($elem633); + $this->invalidWriteIds []= $elem633; } $xfer += $input->readListEnd(); } else { @@ -16787,9 +17548,9 @@ class TableValidWriteIds { { $output->writeListBegin(TType::I64, count($this->invalidWriteIds)); { - foreach ($this->invalidWriteIds as $iter536) + foreach ($this->invalidWriteIds as $iter634) { - $xfer += $output->writeI64($iter536); + $xfer += $output->writeI64($iter634); } } $output->writeListEnd(); @@ -16864,15 +17625,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) + $_size635 = 0; + $_etype638 = 0; + $xfer += $input->readListBegin($_etype638, $_size635); + for ($_i639 = 0; $_i639 < $_size635; ++$_i639) { - $elem542 = null; - $elem542 = new \metastore\TableValidWriteIds(); - $xfer += $elem542->read($input); - $this->tblValidWriteIds []= $elem542; + $elem640 = null; + $elem640 = new \metastore\TableValidWriteIds(); + $xfer += $elem640->read($input); + $this->tblValidWriteIds []= $elem640; } $xfer += $input->readListEnd(); } else { @@ -16900,9 +17661,9 @@ class GetValidWriteIdsResponse { { $output->writeListBegin(TType::STRUCT, count($this->tblValidWriteIds)); { - foreach ($this->tblValidWriteIds as $iter543) + foreach ($this->tblValidWriteIds as $iter641) { - $xfer += $iter543->write($output); + $xfer += $iter641->write($output); } } $output->writeListEnd(); @@ -17029,14 +17790,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) + $_size642 = 0; + $_etype645 = 0; + $xfer += $input->readListBegin($_etype645, $_size642); + for ($_i646 = 0; $_i646 < $_size642; ++$_i646) { - $elem549 = null; - $xfer += $input->readI64($elem549); - $this->txnIds []= $elem549; + $elem647 = null; + $xfer += $input->readI64($elem647); + $this->txnIds []= $elem647; } $xfer += $input->readListEnd(); } else { @@ -17053,15 +17814,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) + $_size648 = 0; + $_etype651 = 0; + $xfer += $input->readListBegin($_etype651, $_size648); + for ($_i652 = 0; $_i652 < $_size648; ++$_i652) { - $elem555 = null; - $elem555 = new \metastore\TxnToWriteId(); - $xfer += $elem555->read($input); - $this->srcTxnToWriteIdList []= $elem555; + $elem653 = null; + $elem653 = new \metastore\TxnToWriteId(); + $xfer += $elem653->read($input); + $this->srcTxnToWriteIdList []= $elem653; } $xfer += $input->readListEnd(); } else { @@ -17099,9 +17860,9 @@ class AllocateTableWriteIdsRequest { { $output->writeListBegin(TType::I64, count($this->txnIds)); { - foreach ($this->txnIds as $iter556) + foreach ($this->txnIds as $iter654) { - $xfer += $output->writeI64($iter556); + $xfer += $output->writeI64($iter654); } } $output->writeListEnd(); @@ -17121,9 +17882,9 @@ class AllocateTableWriteIdsRequest { { $output->writeListBegin(TType::STRUCT, count($this->srcTxnToWriteIdList)); { - foreach ($this->srcTxnToWriteIdList as $iter557) + foreach ($this->srcTxnToWriteIdList as $iter655) { - $xfer += $iter557->write($output); + $xfer += $iter655->write($output); } } $output->writeListEnd(); @@ -17286,15 +18047,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) + $_size656 = 0; + $_etype659 = 0; + $xfer += $input->readListBegin($_etype659, $_size656); + for ($_i660 = 0; $_i660 < $_size656; ++$_i660) { - $elem563 = null; - $elem563 = new \metastore\TxnToWriteId(); - $xfer += $elem563->read($input); - $this->txnToWriteIds []= $elem563; + $elem661 = null; + $elem661 = new \metastore\TxnToWriteId(); + $xfer += $elem661->read($input); + $this->txnToWriteIds []= $elem661; } $xfer += $input->readListEnd(); } else { @@ -17322,9 +18083,9 @@ class AllocateTableWriteIdsResponse { { $output->writeListBegin(TType::STRUCT, count($this->txnToWriteIds)); { - foreach ($this->txnToWriteIds as $iter564) + foreach ($this->txnToWriteIds as $iter662) { - $xfer += $iter564->write($output); + $xfer += $iter662->write($output); } } $output->writeListEnd(); @@ -17669,15 +18430,15 @@ 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) + $_size663 = 0; + $_etype666 = 0; + $xfer += $input->readListBegin($_etype666, $_size663); + for ($_i667 = 0; $_i667 < $_size663; ++$_i667) { - $elem570 = null; - $elem570 = new \metastore\LockComponent(); - $xfer += $elem570->read($input); - $this->component []= $elem570; + $elem668 = null; + $elem668 = new \metastore\LockComponent(); + $xfer += $elem668->read($input); + $this->component []= $elem668; } $xfer += $input->readListEnd(); } else { @@ -17733,9 +18494,9 @@ class LockRequest { { $output->writeListBegin(TType::STRUCT, count($this->component)); { - foreach ($this->component as $iter571) + foreach ($this->component as $iter669) { - $xfer += $iter571->write($output); + $xfer += $iter669->write($output); } } $output->writeListEnd(); @@ -18678,15 +19439,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) + $_size670 = 0; + $_etype673 = 0; + $xfer += $input->readListBegin($_etype673, $_size670); + for ($_i674 = 0; $_i674 < $_size670; ++$_i674) { - $elem577 = null; - $elem577 = new \metastore\ShowLocksResponseElement(); - $xfer += $elem577->read($input); - $this->locks []= $elem577; + $elem675 = null; + $elem675 = new \metastore\ShowLocksResponseElement(); + $xfer += $elem675->read($input); + $this->locks []= $elem675; } $xfer += $input->readListEnd(); } else { @@ -18714,9 +19475,9 @@ class ShowLocksResponse { { $output->writeListBegin(TType::STRUCT, count($this->locks)); { - foreach ($this->locks as $iter578) + foreach ($this->locks as $iter676) { - $xfer += $iter578->write($output); + $xfer += $iter676->write($output); } } $output->writeListEnd(); @@ -18991,17 +19752,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) + $_size677 = 0; + $_etype680 = 0; + $xfer += $input->readSetBegin($_etype680, $_size677); + for ($_i681 = 0; $_i681 < $_size677; ++$_i681) { - $elem584 = null; - $xfer += $input->readI64($elem584); - if (is_scalar($elem584)) { - $this->aborted[$elem584] = true; + $elem682 = null; + $xfer += $input->readI64($elem682); + if (is_scalar($elem682)) { + $this->aborted[$elem682] = true; } else { - $this->aborted []= $elem584; + $this->aborted []= $elem682; } } $xfer += $input->readSetEnd(); @@ -19012,17 +19773,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) + $_size683 = 0; + $_etype686 = 0; + $xfer += $input->readSetBegin($_etype686, $_size683); + for ($_i687 = 0; $_i687 < $_size683; ++$_i687) { - $elem590 = null; - $xfer += $input->readI64($elem590); - if (is_scalar($elem590)) { - $this->nosuch[$elem590] = true; + $elem688 = null; + $xfer += $input->readI64($elem688); + if (is_scalar($elem688)) { + $this->nosuch[$elem688] = true; } else { - $this->nosuch []= $elem590; + $this->nosuch []= $elem688; } } $xfer += $input->readSetEnd(); @@ -19051,12 +19812,12 @@ class HeartbeatTxnRangeResponse { { $output->writeSetBegin(TType::I64, count($this->aborted)); { - foreach ($this->aborted as $iter591 => $iter592) + foreach ($this->aborted as $iter689 => $iter690) { - if (is_scalar($iter592)) { - $xfer += $output->writeI64($iter591); + if (is_scalar($iter690)) { + $xfer += $output->writeI64($iter689); } else { - $xfer += $output->writeI64($iter592); + $xfer += $output->writeI64($iter690); } } } @@ -19072,12 +19833,12 @@ class HeartbeatTxnRangeResponse { { $output->writeSetBegin(TType::I64, count($this->nosuch)); { - foreach ($this->nosuch as $iter593 => $iter594) + foreach ($this->nosuch as $iter691 => $iter692) { - if (is_scalar($iter594)) { - $xfer += $output->writeI64($iter593); + if (is_scalar($iter692)) { + $xfer += $output->writeI64($iter691); } else { - $xfer += $output->writeI64($iter594); + $xfer += $output->writeI64($iter692); } } } @@ -19236,17 +19997,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) + $_size693 = 0; + $_ktype694 = 0; + $_vtype695 = 0; + $xfer += $input->readMapBegin($_ktype694, $_vtype695, $_size693); + for ($_i697 = 0; $_i697 < $_size693; ++$_i697) { - $key600 = ''; - $val601 = ''; - $xfer += $input->readString($key600); - $xfer += $input->readString($val601); - $this->properties[$key600] = $val601; + $key698 = ''; + $val699 = ''; + $xfer += $input->readString($key698); + $xfer += $input->readString($val699); + $this->properties[$key698] = $val699; } $xfer += $input->readMapEnd(); } else { @@ -19299,10 +20060,10 @@ class CompactionRequest { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->properties)); { - foreach ($this->properties as $kiter602 => $viter603) + foreach ($this->properties as $kiter700 => $viter701) { - $xfer += $output->writeString($kiter602); - $xfer += $output->writeString($viter603); + $xfer += $output->writeString($kiter700); + $xfer += $output->writeString($viter701); } } $output->writeMapEnd(); @@ -19889,15 +20650,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) + $_size702 = 0; + $_etype705 = 0; + $xfer += $input->readListBegin($_etype705, $_size702); + for ($_i706 = 0; $_i706 < $_size702; ++$_i706) { - $elem609 = null; - $elem609 = new \metastore\ShowCompactResponseElement(); - $xfer += $elem609->read($input); - $this->compacts []= $elem609; + $elem707 = null; + $elem707 = new \metastore\ShowCompactResponseElement(); + $xfer += $elem707->read($input); + $this->compacts []= $elem707; } $xfer += $input->readListEnd(); } else { @@ -19925,9 +20686,9 @@ class ShowCompactResponse { { $output->writeListBegin(TType::STRUCT, count($this->compacts)); { - foreach ($this->compacts as $iter610) + foreach ($this->compacts as $iter708) { - $xfer += $iter610->write($output); + $xfer += $iter708->write($output); } } $output->writeListEnd(); @@ -20074,14 +20835,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) + $_size709 = 0; + $_etype712 = 0; + $xfer += $input->readListBegin($_etype712, $_size709); + for ($_i713 = 0; $_i713 < $_size709; ++$_i713) { - $elem616 = null; - $xfer += $input->readString($elem616); - $this->partitionnames []= $elem616; + $elem714 = null; + $xfer += $input->readString($elem714); + $this->partitionnames []= $elem714; } $xfer += $input->readListEnd(); } else { @@ -20136,9 +20897,9 @@ class AddDynamicPartitions { { $output->writeListBegin(TType::STRING, count($this->partitionnames)); { - foreach ($this->partitionnames as $iter617) + foreach ($this->partitionnames as $iter715) { - $xfer += $output->writeString($iter617); + $xfer += $output->writeString($iter715); } } $output->writeListEnd(); @@ -20462,17 +21223,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) + $_size716 = 0; + $_etype719 = 0; + $xfer += $input->readSetBegin($_etype719, $_size716); + for ($_i720 = 0; $_i720 < $_size716; ++$_i720) { - $elem623 = null; - $xfer += $input->readString($elem623); - if (is_scalar($elem623)) { - $this->tablesUsed[$elem623] = true; + $elem721 = null; + $xfer += $input->readString($elem721); + if (is_scalar($elem721)) { + $this->tablesUsed[$elem721] = true; } else { - $this->tablesUsed []= $elem623; + $this->tablesUsed []= $elem721; } } $xfer += $input->readSetEnd(); @@ -20523,12 +21284,12 @@ class CreationMetadata { { $output->writeSetBegin(TType::STRING, count($this->tablesUsed)); { - foreach ($this->tablesUsed as $iter624 => $iter625) + foreach ($this->tablesUsed as $iter722 => $iter723) { - if (is_scalar($iter625)) { - $xfer += $output->writeString($iter624); + if (is_scalar($iter723)) { + $xfer += $output->writeString($iter722); } else { - $xfer += $output->writeString($iter625); + $xfer += $output->writeString($iter723); } } } @@ -20933,15 +21694,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) + $_size724 = 0; + $_etype727 = 0; + $xfer += $input->readListBegin($_etype727, $_size724); + for ($_i728 = 0; $_i728 < $_size724; ++$_i728) { - $elem631 = null; - $elem631 = new \metastore\NotificationEvent(); - $xfer += $elem631->read($input); - $this->events []= $elem631; + $elem729 = null; + $elem729 = new \metastore\NotificationEvent(); + $xfer += $elem729->read($input); + $this->events []= $elem729; } $xfer += $input->readListEnd(); } else { @@ -20969,9 +21730,9 @@ class NotificationEventResponse { { $output->writeListBegin(TType::STRUCT, count($this->events)); { - foreach ($this->events as $iter632) + foreach ($this->events as $iter730) { - $xfer += $iter632->write($output); + $xfer += $iter730->write($output); } } $output->writeListEnd(); @@ -21271,6 +22032,10 @@ class InsertEventRequestData { * @var string[] */ public $filesAddedChecksum = null; + /** + * @var string[] + */ + public $subDirectoryList = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -21295,6 +22060,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 +22080,9 @@ class InsertEventRequestData { if (isset($vals['filesAddedChecksum'])) { $this->filesAddedChecksum = $vals['filesAddedChecksum']; } + if (isset($vals['subDirectoryList'])) { + $this->subDirectoryList = $vals['subDirectoryList']; + } } } @@ -21339,14 +22115,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) + $_size731 = 0; + $_etype734 = 0; + $xfer += $input->readListBegin($_etype734, $_size731); + for ($_i735 = 0; $_i735 < $_size731; ++$_i735) { - $elem638 = null; - $xfer += $input->readString($elem638); - $this->filesAdded []= $elem638; + $elem736 = null; + $xfer += $input->readString($elem736); + $this->filesAdded []= $elem736; } $xfer += $input->readListEnd(); } else { @@ -21356,14 +22132,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) + $_size737 = 0; + $_etype740 = 0; + $xfer += $input->readListBegin($_etype740, $_size737); + for ($_i741 = 0; $_i741 < $_size737; ++$_i741) + { + $elem742 = null; + $xfer += $input->readString($elem742); + $this->filesAddedChecksum []= $elem742; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::LST) { + $this->subDirectoryList = array(); + $_size743 = 0; + $_etype746 = 0; + $xfer += $input->readListBegin($_etype746, $_size743); + for ($_i747 = 0; $_i747 < $_size743; ++$_i747) { - $elem644 = null; - $xfer += $input->readString($elem644); - $this->filesAddedChecksum []= $elem644; + $elem748 = null; + $xfer += $input->readString($elem748); + $this->subDirectoryList []= $elem748; } $xfer += $input->readListEnd(); } else { @@ -21392,30 +22185,47 @@ class InsertEventRequestData { if (!is_array($this->filesAdded)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('filesAdded', TType::LST, 2); + $xfer += $output->writeFieldBegin('filesAdded', TType::LST, 2); + { + $output->writeListBegin(TType::STRING, count($this->filesAdded)); + { + foreach ($this->filesAdded as $iter749) + { + $xfer += $output->writeString($iter749); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->filesAddedChecksum !== null) { + if (!is_array($this->filesAddedChecksum)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('filesAddedChecksum', TType::LST, 3); { - $output->writeListBegin(TType::STRING, count($this->filesAdded)); + $output->writeListBegin(TType::STRING, count($this->filesAddedChecksum)); { - foreach ($this->filesAdded as $iter645) + foreach ($this->filesAddedChecksum as $iter750) { - $xfer += $output->writeString($iter645); + $xfer += $output->writeString($iter750); } } $output->writeListEnd(); } $xfer += $output->writeFieldEnd(); } - if ($this->filesAddedChecksum !== null) { - if (!is_array($this->filesAddedChecksum)) { + if ($this->subDirectoryList !== null) { + if (!is_array($this->subDirectoryList)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('filesAddedChecksum', TType::LST, 3); + $xfer += $output->writeFieldBegin('subDirectoryList', TType::LST, 4); { - $output->writeListBegin(TType::STRING, count($this->filesAddedChecksum)); + $output->writeListBegin(TType::STRING, count($this->subDirectoryList)); { - foreach ($this->filesAddedChecksum as $iter646) + foreach ($this->subDirectoryList as $iter751) { - $xfer += $output->writeString($iter646); + $xfer += $output->writeString($iter751); } } $output->writeListEnd(); @@ -21644,14 +22454,14 @@ class FireEventRequest { case 5: if ($ftype == TType::LST) { $this->partitionVals = array(); - $_size647 = 0; - $_etype650 = 0; - $xfer += $input->readListBegin($_etype650, $_size647); - for ($_i651 = 0; $_i651 < $_size647; ++$_i651) + $_size752 = 0; + $_etype755 = 0; + $xfer += $input->readListBegin($_etype755, $_size752); + for ($_i756 = 0; $_i756 < $_size752; ++$_i756) { - $elem652 = null; - $xfer += $input->readString($elem652); - $this->partitionVals []= $elem652; + $elem757 = null; + $xfer += $input->readString($elem757); + $this->partitionVals []= $elem757; } $xfer += $input->readListEnd(); } else { @@ -21709,9 +22519,9 @@ class FireEventRequest { { $output->writeListBegin(TType::STRING, count($this->partitionVals)); { - foreach ($this->partitionVals as $iter653) + foreach ($this->partitionVals as $iter758) { - $xfer += $output->writeString($iter653); + $xfer += $output->writeString($iter758); } } $output->writeListEnd(); @@ -21780,6 +22590,277 @@ class FireEventResponse { } +class WriteNotificationLogRequest { + static $_TSPEC; + + /** + * @var int + */ + public $txnId = null; + /** + * @var int + */ + public $writeId = null; + /** + * @var string + */ + public $db = null; + /** + * @var string + */ + public $table = null; + /** + * @var \metastore\InsertEventRequestData + */ + public $fileInfo = null; + /** + * @var string[] + */ + public $partitionVals = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'txnId', + 'type' => TType::I64, + ), + 2 => array( + 'var' => 'writeId', + 'type' => TType::I64, + ), + 3 => array( + 'var' => 'db', + 'type' => TType::STRING, + ), + 4 => array( + '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, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + ); + } + if (is_array($vals)) { + if (isset($vals['txnId'])) { + $this->txnId = $vals['txnId']; + } + if (isset($vals['writeId'])) { + $this->writeId = $vals['writeId']; + } + if (isset($vals['db'])) { + $this->db = $vals['db']; + } + if (isset($vals['table'])) { + $this->table = $vals['table']; + } + if (isset($vals['fileInfo'])) { + $this->fileInfo = $vals['fileInfo']; + } + if (isset($vals['partitionVals'])) { + $this->partitionVals = $vals['partitionVals']; + } + } + } + + public function getName() { + return 'WriteNotificationLogRequest'; + } + + 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->txnId); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + 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->db); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->table); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + 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::LST) { + $this->partitionVals = array(); + $_size759 = 0; + $_etype762 = 0; + $xfer += $input->readListBegin($_etype762, $_size759); + for ($_i763 = 0; $_i763 < $_size759; ++$_i763) + { + $elem764 = null; + $xfer += $input->readString($elem764); + $this->partitionVals []= $elem764; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('WriteNotificationLogRequest'); + if ($this->txnId !== null) { + $xfer += $output->writeFieldBegin('txnId', TType::I64, 1); + $xfer += $output->writeI64($this->txnId); + $xfer += $output->writeFieldEnd(); + } + if ($this->writeId !== null) { + $xfer += $output->writeFieldBegin('writeId', TType::I64, 2); + $xfer += $output->writeI64($this->writeId); + $xfer += $output->writeFieldEnd(); + } + if ($this->db !== null) { + $xfer += $output->writeFieldBegin('db', TType::STRING, 3); + $xfer += $output->writeString($this->db); + $xfer += $output->writeFieldEnd(); + } + 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, 6); + { + $output->writeListBegin(TType::STRING, count($this->partitionVals)); + { + foreach ($this->partitionVals as $iter765) + { + $xfer += $output->writeString($iter765); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class WriteNotificationLogResponse { + static $_TSPEC; + + + public function __construct() { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + ); + } + } + + public function getName() { + return 'WriteNotificationLogResponse'; + } + + 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) + { + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('WriteNotificationLogResponse'); + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + class MetadataPpdResult { static $_TSPEC; @@ -21944,18 +23025,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) + $_size766 = 0; + $_ktype767 = 0; + $_vtype768 = 0; + $xfer += $input->readMapBegin($_ktype767, $_vtype768, $_size766); + for ($_i770 = 0; $_i770 < $_size766; ++$_i770) { - $key659 = 0; - $val660 = new \metastore\MetadataPpdResult(); - $xfer += $input->readI64($key659); - $val660 = new \metastore\MetadataPpdResult(); - $xfer += $val660->read($input); - $this->metadata[$key659] = $val660; + $key771 = 0; + $val772 = new \metastore\MetadataPpdResult(); + $xfer += $input->readI64($key771); + $val772 = new \metastore\MetadataPpdResult(); + $xfer += $val772->read($input); + $this->metadata[$key771] = $val772; } $xfer += $input->readMapEnd(); } else { @@ -21990,10 +23071,10 @@ class GetFileMetadataByExprResult { { $output->writeMapBegin(TType::I64, TType::STRUCT, count($this->metadata)); { - foreach ($this->metadata as $kiter661 => $viter662) + foreach ($this->metadata as $kiter773 => $viter774) { - $xfer += $output->writeI64($kiter661); - $xfer += $viter662->write($output); + $xfer += $output->writeI64($kiter773); + $xfer += $viter774->write($output); } } $output->writeMapEnd(); @@ -22095,14 +23176,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) + $_size775 = 0; + $_etype778 = 0; + $xfer += $input->readListBegin($_etype778, $_size775); + for ($_i779 = 0; $_i779 < $_size775; ++$_i779) { - $elem668 = null; - $xfer += $input->readI64($elem668); - $this->fileIds []= $elem668; + $elem780 = null; + $xfer += $input->readI64($elem780); + $this->fileIds []= $elem780; } $xfer += $input->readListEnd(); } else { @@ -22151,9 +23232,9 @@ class GetFileMetadataByExprRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter669) + foreach ($this->fileIds as $iter781) { - $xfer += $output->writeI64($iter669); + $xfer += $output->writeI64($iter781); } } $output->writeListEnd(); @@ -22247,17 +23328,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) + $_size782 = 0; + $_ktype783 = 0; + $_vtype784 = 0; + $xfer += $input->readMapBegin($_ktype783, $_vtype784, $_size782); + for ($_i786 = 0; $_i786 < $_size782; ++$_i786) { - $key675 = 0; - $val676 = ''; - $xfer += $input->readI64($key675); - $xfer += $input->readString($val676); - $this->metadata[$key675] = $val676; + $key787 = 0; + $val788 = ''; + $xfer += $input->readI64($key787); + $xfer += $input->readString($val788); + $this->metadata[$key787] = $val788; } $xfer += $input->readMapEnd(); } else { @@ -22292,10 +23373,10 @@ class GetFileMetadataResult { { $output->writeMapBegin(TType::I64, TType::STRING, count($this->metadata)); { - foreach ($this->metadata as $kiter677 => $viter678) + foreach ($this->metadata as $kiter789 => $viter790) { - $xfer += $output->writeI64($kiter677); - $xfer += $output->writeString($viter678); + $xfer += $output->writeI64($kiter789); + $xfer += $output->writeString($viter790); } } $output->writeMapEnd(); @@ -22364,14 +23445,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) + $_size791 = 0; + $_etype794 = 0; + $xfer += $input->readListBegin($_etype794, $_size791); + for ($_i795 = 0; $_i795 < $_size791; ++$_i795) { - $elem684 = null; - $xfer += $input->readI64($elem684); - $this->fileIds []= $elem684; + $elem796 = null; + $xfer += $input->readI64($elem796); + $this->fileIds []= $elem796; } $xfer += $input->readListEnd(); } else { @@ -22399,9 +23480,9 @@ class GetFileMetadataRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter685) + foreach ($this->fileIds as $iter797) { - $xfer += $output->writeI64($iter685); + $xfer += $output->writeI64($iter797); } } $output->writeListEnd(); @@ -22541,14 +23622,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) + $_size798 = 0; + $_etype801 = 0; + $xfer += $input->readListBegin($_etype801, $_size798); + for ($_i802 = 0; $_i802 < $_size798; ++$_i802) { - $elem691 = null; - $xfer += $input->readI64($elem691); - $this->fileIds []= $elem691; + $elem803 = null; + $xfer += $input->readI64($elem803); + $this->fileIds []= $elem803; } $xfer += $input->readListEnd(); } else { @@ -22558,14 +23639,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) + $_size804 = 0; + $_etype807 = 0; + $xfer += $input->readListBegin($_etype807, $_size804); + for ($_i808 = 0; $_i808 < $_size804; ++$_i808) { - $elem697 = null; - $xfer += $input->readString($elem697); - $this->metadata []= $elem697; + $elem809 = null; + $xfer += $input->readString($elem809); + $this->metadata []= $elem809; } $xfer += $input->readListEnd(); } else { @@ -22600,9 +23681,9 @@ class PutFileMetadataRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter698) + foreach ($this->fileIds as $iter810) { - $xfer += $output->writeI64($iter698); + $xfer += $output->writeI64($iter810); } } $output->writeListEnd(); @@ -22617,9 +23698,9 @@ class PutFileMetadataRequest { { $output->writeListBegin(TType::STRING, count($this->metadata)); { - foreach ($this->metadata as $iter699) + foreach ($this->metadata as $iter811) { - $xfer += $output->writeString($iter699); + $xfer += $output->writeString($iter811); } } $output->writeListEnd(); @@ -22738,14 +23819,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) + $_size812 = 0; + $_etype815 = 0; + $xfer += $input->readListBegin($_etype815, $_size812); + for ($_i816 = 0; $_i816 < $_size812; ++$_i816) { - $elem705 = null; - $xfer += $input->readI64($elem705); - $this->fileIds []= $elem705; + $elem817 = null; + $xfer += $input->readI64($elem817); + $this->fileIds []= $elem817; } $xfer += $input->readListEnd(); } else { @@ -22773,9 +23854,9 @@ class ClearFileMetadataRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter706) + foreach ($this->fileIds as $iter818) { - $xfer += $output->writeI64($iter706); + $xfer += $output->writeI64($iter818); } } $output->writeListEnd(); @@ -23059,15 +24140,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) + $_size819 = 0; + $_etype822 = 0; + $xfer += $input->readListBegin($_etype822, $_size819); + for ($_i823 = 0; $_i823 < $_size819; ++$_i823) { - $elem712 = null; - $elem712 = new \metastore\Function(); - $xfer += $elem712->read($input); - $this->functions []= $elem712; + $elem824 = null; + $elem824 = new \metastore\Function(); + $xfer += $elem824->read($input); + $this->functions []= $elem824; } $xfer += $input->readListEnd(); } else { @@ -23095,9 +24176,9 @@ class GetAllFunctionsResponse { { $output->writeListBegin(TType::STRUCT, count($this->functions)); { - foreach ($this->functions as $iter713) + foreach ($this->functions as $iter825) { - $xfer += $iter713->write($output); + $xfer += $iter825->write($output); } } $output->writeListEnd(); @@ -23161,14 +24242,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) + $_size826 = 0; + $_etype829 = 0; + $xfer += $input->readListBegin($_etype829, $_size826); + for ($_i830 = 0; $_i830 < $_size826; ++$_i830) { - $elem719 = null; - $xfer += $input->readI32($elem719); - $this->values []= $elem719; + $elem831 = null; + $xfer += $input->readI32($elem831); + $this->values []= $elem831; } $xfer += $input->readListEnd(); } else { @@ -23196,9 +24277,9 @@ class ClientCapabilities { { $output->writeListBegin(TType::I32, count($this->values)); { - foreach ($this->values as $iter720) + foreach ($this->values as $iter832) { - $xfer += $output->writeI32($iter720); + $xfer += $output->writeI32($iter832); } } $output->writeListEnd(); @@ -23532,14 +24613,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) + $_size833 = 0; + $_etype836 = 0; + $xfer += $input->readListBegin($_etype836, $_size833); + for ($_i837 = 0; $_i837 < $_size833; ++$_i837) { - $elem726 = null; - $xfer += $input->readString($elem726); - $this->tblNames []= $elem726; + $elem838 = null; + $xfer += $input->readString($elem838); + $this->tblNames []= $elem838; } $xfer += $input->readListEnd(); } else { @@ -23587,9 +24668,9 @@ class GetTablesRequest { { $output->writeListBegin(TType::STRING, count($this->tblNames)); { - foreach ($this->tblNames as $iter727) + foreach ($this->tblNames as $iter839) { - $xfer += $output->writeString($iter727); + $xfer += $output->writeString($iter839); } } $output->writeListEnd(); @@ -23667,15 +24748,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) + $_size840 = 0; + $_etype843 = 0; + $xfer += $input->readListBegin($_etype843, $_size840); + for ($_i844 = 0; $_i844 < $_size840; ++$_i844) { - $elem733 = null; - $elem733 = new \metastore\Table(); - $xfer += $elem733->read($input); - $this->tables []= $elem733; + $elem845 = null; + $elem845 = new \metastore\Table(); + $xfer += $elem845->read($input); + $this->tables []= $elem845; } $xfer += $input->readListEnd(); } else { @@ -23703,9 +24784,9 @@ class GetTablesResult { { $output->writeListBegin(TType::STRUCT, count($this->tables)); { - foreach ($this->tables as $iter734) + foreach ($this->tables as $iter846) { - $xfer += $iter734->write($output); + $xfer += $iter846->write($output); } } $output->writeListEnd(); @@ -24117,17 +25198,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) + $_size847 = 0; + $_etype850 = 0; + $xfer += $input->readSetBegin($_etype850, $_size847); + for ($_i851 = 0; $_i851 < $_size847; ++$_i851) { - $elem740 = null; - $xfer += $input->readString($elem740); - if (is_scalar($elem740)) { - $this->tablesUsed[$elem740] = true; + $elem852 = null; + $xfer += $input->readString($elem852); + if (is_scalar($elem852)) { + $this->tablesUsed[$elem852] = true; } else { - $this->tablesUsed []= $elem740; + $this->tablesUsed []= $elem852; } } $xfer += $input->readSetEnd(); @@ -24177,12 +25258,12 @@ class Materialization { { $output->writeSetBegin(TType::STRING, count($this->tablesUsed)); { - foreach ($this->tablesUsed as $iter741 => $iter742) + foreach ($this->tablesUsed as $iter853 => $iter854) { - if (is_scalar($iter742)) { - $xfer += $output->writeString($iter741); + if (is_scalar($iter854)) { + $xfer += $output->writeString($iter853); } else { - $xfer += $output->writeString($iter742); + $xfer += $output->writeString($iter854); } } } @@ -25454,15 +26535,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) + $_size855 = 0; + $_etype858 = 0; + $xfer += $input->readListBegin($_etype858, $_size855); + for ($_i859 = 0; $_i859 < $_size855; ++$_i859) { - $elem748 = null; - $elem748 = new \metastore\WMPool(); - $xfer += $elem748->read($input); - $this->pools []= $elem748; + $elem860 = null; + $elem860 = new \metastore\WMPool(); + $xfer += $elem860->read($input); + $this->pools []= $elem860; } $xfer += $input->readListEnd(); } else { @@ -25472,15 +26553,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) + $_size861 = 0; + $_etype864 = 0; + $xfer += $input->readListBegin($_etype864, $_size861); + for ($_i865 = 0; $_i865 < $_size861; ++$_i865) { - $elem754 = null; - $elem754 = new \metastore\WMMapping(); - $xfer += $elem754->read($input); - $this->mappings []= $elem754; + $elem866 = null; + $elem866 = new \metastore\WMMapping(); + $xfer += $elem866->read($input); + $this->mappings []= $elem866; } $xfer += $input->readListEnd(); } else { @@ -25490,15 +26571,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) + $_size867 = 0; + $_etype870 = 0; + $xfer += $input->readListBegin($_etype870, $_size867); + for ($_i871 = 0; $_i871 < $_size867; ++$_i871) { - $elem760 = null; - $elem760 = new \metastore\WMTrigger(); - $xfer += $elem760->read($input); - $this->triggers []= $elem760; + $elem872 = null; + $elem872 = new \metastore\WMTrigger(); + $xfer += $elem872->read($input); + $this->triggers []= $elem872; } $xfer += $input->readListEnd(); } else { @@ -25508,15 +26589,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) + $_size873 = 0; + $_etype876 = 0; + $xfer += $input->readListBegin($_etype876, $_size873); + for ($_i877 = 0; $_i877 < $_size873; ++$_i877) { - $elem766 = null; - $elem766 = new \metastore\WMPoolTrigger(); - $xfer += $elem766->read($input); - $this->poolTriggers []= $elem766; + $elem878 = null; + $elem878 = new \metastore\WMPoolTrigger(); + $xfer += $elem878->read($input); + $this->poolTriggers []= $elem878; } $xfer += $input->readListEnd(); } else { @@ -25552,9 +26633,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->pools)); { - foreach ($this->pools as $iter767) + foreach ($this->pools as $iter879) { - $xfer += $iter767->write($output); + $xfer += $iter879->write($output); } } $output->writeListEnd(); @@ -25569,9 +26650,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->mappings)); { - foreach ($this->mappings as $iter768) + foreach ($this->mappings as $iter880) { - $xfer += $iter768->write($output); + $xfer += $iter880->write($output); } } $output->writeListEnd(); @@ -25586,9 +26667,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->triggers)); { - foreach ($this->triggers as $iter769) + foreach ($this->triggers as $iter881) { - $xfer += $iter769->write($output); + $xfer += $iter881->write($output); } } $output->writeListEnd(); @@ -25603,9 +26684,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->poolTriggers)); { - foreach ($this->poolTriggers as $iter770) + foreach ($this->poolTriggers as $iter882) { - $xfer += $iter770->write($output); + $xfer += $iter882->write($output); } } $output->writeListEnd(); @@ -26158,15 +27239,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) + $_size883 = 0; + $_etype886 = 0; + $xfer += $input->readListBegin($_etype886, $_size883); + for ($_i887 = 0; $_i887 < $_size883; ++$_i887) { - $elem776 = null; - $elem776 = new \metastore\WMResourcePlan(); - $xfer += $elem776->read($input); - $this->resourcePlans []= $elem776; + $elem888 = null; + $elem888 = new \metastore\WMResourcePlan(); + $xfer += $elem888->read($input); + $this->resourcePlans []= $elem888; } $xfer += $input->readListEnd(); } else { @@ -26194,9 +27275,9 @@ class WMGetAllResourcePlanResponse { { $output->writeListBegin(TType::STRUCT, count($this->resourcePlans)); { - foreach ($this->resourcePlans as $iter777) + foreach ($this->resourcePlans as $iter889) { - $xfer += $iter777->write($output); + $xfer += $iter889->write($output); } } $output->writeListEnd(); @@ -26602,14 +27683,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) + $_size890 = 0; + $_etype893 = 0; + $xfer += $input->readListBegin($_etype893, $_size890); + for ($_i894 = 0; $_i894 < $_size890; ++$_i894) { - $elem783 = null; - $xfer += $input->readString($elem783); - $this->errors []= $elem783; + $elem895 = null; + $xfer += $input->readString($elem895); + $this->errors []= $elem895; } $xfer += $input->readListEnd(); } else { @@ -26619,14 +27700,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) + $_size896 = 0; + $_etype899 = 0; + $xfer += $input->readListBegin($_etype899, $_size896); + for ($_i900 = 0; $_i900 < $_size896; ++$_i900) { - $elem789 = null; - $xfer += $input->readString($elem789); - $this->warnings []= $elem789; + $elem901 = null; + $xfer += $input->readString($elem901); + $this->warnings []= $elem901; } $xfer += $input->readListEnd(); } else { @@ -26654,9 +27735,9 @@ class WMValidateResourcePlanResponse { { $output->writeListBegin(TType::STRING, count($this->errors)); { - foreach ($this->errors as $iter790) + foreach ($this->errors as $iter902) { - $xfer += $output->writeString($iter790); + $xfer += $output->writeString($iter902); } } $output->writeListEnd(); @@ -26671,9 +27752,9 @@ class WMValidateResourcePlanResponse { { $output->writeListBegin(TType::STRING, count($this->warnings)); { - foreach ($this->warnings as $iter791) + foreach ($this->warnings as $iter903) { - $xfer += $output->writeString($iter791); + $xfer += $output->writeString($iter903); } } $output->writeListEnd(); @@ -27346,15 +28427,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) + $_size904 = 0; + $_etype907 = 0; + $xfer += $input->readListBegin($_etype907, $_size904); + for ($_i908 = 0; $_i908 < $_size904; ++$_i908) { - $elem797 = null; - $elem797 = new \metastore\WMTrigger(); - $xfer += $elem797->read($input); - $this->triggers []= $elem797; + $elem909 = null; + $elem909 = new \metastore\WMTrigger(); + $xfer += $elem909->read($input); + $this->triggers []= $elem909; } $xfer += $input->readListEnd(); } else { @@ -27382,9 +28463,9 @@ class WMGetTriggersForResourePlanResponse { { $output->writeListBegin(TType::STRUCT, count($this->triggers)); { - foreach ($this->triggers as $iter798) + foreach ($this->triggers as $iter910) { - $xfer += $iter798->write($output); + $xfer += $iter910->write($output); } } $output->writeListEnd(); @@ -28968,15 +30049,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) + $_size911 = 0; + $_etype914 = 0; + $xfer += $input->readListBegin($_etype914, $_size911); + for ($_i915 = 0; $_i915 < $_size911; ++$_i915) { - $elem804 = null; - $elem804 = new \metastore\FieldSchema(); - $xfer += $elem804->read($input); - $this->cols []= $elem804; + $elem916 = null; + $elem916 = new \metastore\FieldSchema(); + $xfer += $elem916->read($input); + $this->cols []= $elem916; } $xfer += $input->readListEnd(); } else { @@ -29065,9 +30146,9 @@ class SchemaVersion { { $output->writeListBegin(TType::STRUCT, count($this->cols)); { - foreach ($this->cols as $iter805) + foreach ($this->cols as $iter917) { - $xfer += $iter805->write($output); + $xfer += $iter917->write($output); } } $output->writeListEnd(); @@ -29389,15 +30470,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) + $_size918 = 0; + $_etype921 = 0; + $xfer += $input->readListBegin($_etype921, $_size918); + for ($_i922 = 0; $_i922 < $_size918; ++$_i922) { - $elem811 = null; - $elem811 = new \metastore\SchemaVersionDescriptor(); - $xfer += $elem811->read($input); - $this->schemaVersions []= $elem811; + $elem923 = null; + $elem923 = new \metastore\SchemaVersionDescriptor(); + $xfer += $elem923->read($input); + $this->schemaVersions []= $elem923; } $xfer += $input->readListEnd(); } else { @@ -29425,9 +30506,9 @@ class FindSchemasByColsResp { { $output->writeListBegin(TType::STRUCT, count($this->schemaVersions)); { - foreach ($this->schemaVersions as $iter812) + foreach ($this->schemaVersions as $iter924) { - $xfer += $iter812->write($output); + $xfer += $iter924->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 079c7fc322..743b34ee52 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)') @@ -1267,6 +1268,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 d241414bc3..5949dabac8 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: @@ -7408,6 +7415,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: @@ -8965,6 +9003,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 @@ -13011,6 +13050,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) @@ -15507,10 +15565,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) + (_etype924, _size921) = iprot.readListBegin() + for _i925 in xrange(_size921): + _elem926 = iprot.readString() + self.success.append(_elem926) iprot.readListEnd() else: iprot.skip(ftype) @@ -15533,8 +15591,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 iter927 in self.success: + oprot.writeString(iter927) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -15639,10 +15697,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) + (_etype931, _size928) = iprot.readListBegin() + for _i932 in xrange(_size928): + _elem933 = iprot.readString() + self.success.append(_elem933) iprot.readListEnd() else: iprot.skip(ftype) @@ -15665,8 +15723,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 iter934 in self.success: + oprot.writeString(iter934) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -16436,12 +16494,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 + (_ktype936, _vtype937, _size935 ) = iprot.readMapBegin() + for _i939 in xrange(_size935): + _key940 = iprot.readString() + _val941 = Type() + _val941.read(iprot) + self.success[_key940] = _val941 iprot.readMapEnd() else: iprot.skip(ftype) @@ -16464,9 +16522,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 kiter942,viter943 in self.success.items(): + oprot.writeString(kiter942) + viter943.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -16609,11 +16667,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) + (_etype947, _size944) = iprot.readListBegin() + for _i948 in xrange(_size944): + _elem949 = FieldSchema() + _elem949.read(iprot) + self.success.append(_elem949) iprot.readListEnd() else: iprot.skip(ftype) @@ -16648,8 +16706,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 iter950 in self.success: + iter950.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -16816,11 +16874,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) + (_etype954, _size951) = iprot.readListBegin() + for _i955 in xrange(_size951): + _elem956 = FieldSchema() + _elem956.read(iprot) + self.success.append(_elem956) iprot.readListEnd() else: iprot.skip(ftype) @@ -16855,8 +16913,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 iter957 in self.success: + iter957.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -17009,11 +17067,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) + (_etype961, _size958) = iprot.readListBegin() + for _i962 in xrange(_size958): + _elem963 = FieldSchema() + _elem963.read(iprot) + self.success.append(_elem963) iprot.readListEnd() else: iprot.skip(ftype) @@ -17048,8 +17106,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 iter964 in self.success: + iter964.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -17216,11 +17274,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) + (_etype968, _size965) = iprot.readListBegin() + for _i969 in xrange(_size965): + _elem970 = FieldSchema() + _elem970.read(iprot) + self.success.append(_elem970) iprot.readListEnd() else: iprot.skip(ftype) @@ -17255,8 +17313,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 iter971 in self.success: + iter971.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -17709,66 +17767,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) + (_etype975, _size972) = iprot.readListBegin() + for _i976 in xrange(_size972): + _elem977 = SQLPrimaryKey() + _elem977.read(iprot) + self.primaryKeys.append(_elem977) 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) + (_etype981, _size978) = iprot.readListBegin() + for _i982 in xrange(_size978): + _elem983 = SQLForeignKey() + _elem983.read(iprot) + self.foreignKeys.append(_elem983) 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) + (_etype987, _size984) = iprot.readListBegin() + for _i988 in xrange(_size984): + _elem989 = SQLUniqueConstraint() + _elem989.read(iprot) + self.uniqueConstraints.append(_elem989) 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) + (_etype993, _size990) = iprot.readListBegin() + for _i994 in xrange(_size990): + _elem995 = SQLNotNullConstraint() + _elem995.read(iprot) + self.notNullConstraints.append(_elem995) 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) + (_etype999, _size996) = iprot.readListBegin() + for _i1000 in xrange(_size996): + _elem1001 = SQLDefaultConstraint() + _elem1001.read(iprot) + self.defaultConstraints.append(_elem1001) 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) + (_etype1005, _size1002) = iprot.readListBegin() + for _i1006 in xrange(_size1002): + _elem1007 = SQLCheckConstraint() + _elem1007.read(iprot) + self.checkConstraints.append(_elem1007) iprot.readListEnd() else: iprot.skip(ftype) @@ -17789,43 +17847,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 iter1008 in self.primaryKeys: + iter1008.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 iter1009 in self.foreignKeys: + iter1009.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 iter1010 in self.uniqueConstraints: + iter1010.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 iter1011 in self.notNullConstraints: + iter1011.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 iter1012 in self.defaultConstraints: + iter1012.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 iter1013 in self.checkConstraints: + iter1013.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -19385,10 +19443,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) + (_etype1017, _size1014) = iprot.readListBegin() + for _i1018 in xrange(_size1014): + _elem1019 = iprot.readString() + self.partNames.append(_elem1019) iprot.readListEnd() else: iprot.skip(ftype) @@ -19413,8 +19471,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 iter1020 in self.partNames: + oprot.writeString(iter1020) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -19614,10 +19672,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) + (_etype1024, _size1021) = iprot.readListBegin() + for _i1025 in xrange(_size1021): + _elem1026 = iprot.readString() + self.success.append(_elem1026) iprot.readListEnd() else: iprot.skip(ftype) @@ -19640,8 +19698,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 iter1027 in self.success: + oprot.writeString(iter1027) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -19791,10 +19849,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) + (_etype1031, _size1028) = iprot.readListBegin() + for _i1032 in xrange(_size1028): + _elem1033 = iprot.readString() + self.success.append(_elem1033) iprot.readListEnd() else: iprot.skip(ftype) @@ -19817,8 +19875,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 iter1034 in self.success: + oprot.writeString(iter1034) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -19942,10 +20000,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) + (_etype1038, _size1035) = iprot.readListBegin() + for _i1039 in xrange(_size1035): + _elem1040 = iprot.readString() + self.success.append(_elem1040) iprot.readListEnd() else: iprot.skip(ftype) @@ -19968,8 +20026,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 iter1041 in self.success: + oprot.writeString(iter1041) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -20042,10 +20100,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) + (_etype1045, _size1042) = iprot.readListBegin() + for _i1046 in xrange(_size1042): + _elem1047 = iprot.readString() + self.tbl_types.append(_elem1047) iprot.readListEnd() else: iprot.skip(ftype) @@ -20070,8 +20128,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 iter1048 in self.tbl_types: + oprot.writeString(iter1048) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20127,11 +20185,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) + (_etype1052, _size1049) = iprot.readListBegin() + for _i1053 in xrange(_size1049): + _elem1054 = TableMeta() + _elem1054.read(iprot) + self.success.append(_elem1054) iprot.readListEnd() else: iprot.skip(ftype) @@ -20154,8 +20212,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 iter1055 in self.success: + iter1055.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -20279,10 +20337,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) + (_etype1059, _size1056) = iprot.readListBegin() + for _i1060 in xrange(_size1056): + _elem1061 = iprot.readString() + self.success.append(_elem1061) iprot.readListEnd() else: iprot.skip(ftype) @@ -20305,8 +20363,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 iter1062 in self.success: + oprot.writeString(iter1062) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -20542,10 +20600,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) + (_etype1066, _size1063) = iprot.readListBegin() + for _i1067 in xrange(_size1063): + _elem1068 = iprot.readString() + self.tbl_names.append(_elem1068) iprot.readListEnd() else: iprot.skip(ftype) @@ -20566,8 +20624,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 iter1069 in self.tbl_names: + oprot.writeString(iter1069) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20619,11 +20677,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) + (_etype1073, _size1070) = iprot.readListBegin() + for _i1074 in xrange(_size1070): + _elem1075 = Table() + _elem1075.read(iprot) + self.success.append(_elem1075) iprot.readListEnd() else: iprot.skip(ftype) @@ -20640,8 +20698,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 iter1076 in self.success: + iter1076.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21033,10 +21091,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) + (_etype1080, _size1077) = iprot.readListBegin() + for _i1081 in xrange(_size1077): + _elem1082 = iprot.readString() + self.tbl_names.append(_elem1082) iprot.readListEnd() else: iprot.skip(ftype) @@ -21057,8 +21115,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 iter1083 in self.tbl_names: + oprot.writeString(iter1083) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21119,12 +21177,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 + (_ktype1085, _vtype1086, _size1084 ) = iprot.readMapBegin() + for _i1088 in xrange(_size1084): + _key1089 = iprot.readString() + _val1090 = Materialization() + _val1090.read(iprot) + self.success[_key1089] = _val1090 iprot.readMapEnd() else: iprot.skip(ftype) @@ -21159,9 +21217,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 kiter1091,viter1092 in self.success.items(): + oprot.writeString(kiter1091) + viter1092.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21526,10 +21584,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) + (_etype1096, _size1093) = iprot.readListBegin() + for _i1097 in xrange(_size1093): + _elem1098 = iprot.readString() + self.success.append(_elem1098) iprot.readListEnd() else: iprot.skip(ftype) @@ -21564,8 +21622,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 iter1099 in self.success: + oprot.writeString(iter1099) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -22535,11 +22593,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) + (_etype1103, _size1100) = iprot.readListBegin() + for _i1104 in xrange(_size1100): + _elem1105 = Partition() + _elem1105.read(iprot) + self.new_parts.append(_elem1105) iprot.readListEnd() else: iprot.skip(ftype) @@ -22556,8 +22614,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 iter1106 in self.new_parts: + iter1106.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -22715,11 +22773,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) + (_etype1110, _size1107) = iprot.readListBegin() + for _i1111 in xrange(_size1107): + _elem1112 = PartitionSpec() + _elem1112.read(iprot) + self.new_parts.append(_elem1112) iprot.readListEnd() else: iprot.skip(ftype) @@ -22736,8 +22794,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 iter1113 in self.new_parts: + iter1113.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -22911,10 +22969,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) + (_etype1117, _size1114) = iprot.readListBegin() + for _i1118 in xrange(_size1114): + _elem1119 = iprot.readString() + self.part_vals.append(_elem1119) iprot.readListEnd() else: iprot.skip(ftype) @@ -22939,8 +22997,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 iter1120 in self.part_vals: + oprot.writeString(iter1120) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -23293,10 +23351,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) + (_etype1124, _size1121) = iprot.readListBegin() + for _i1125 in xrange(_size1121): + _elem1126 = iprot.readString() + self.part_vals.append(_elem1126) iprot.readListEnd() else: iprot.skip(ftype) @@ -23327,8 +23385,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 iter1127 in self.part_vals: + oprot.writeString(iter1127) oprot.writeListEnd() oprot.writeFieldEnd() if self.environment_context is not None: @@ -23923,10 +23981,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) + (_etype1131, _size1128) = iprot.readListBegin() + for _i1132 in xrange(_size1128): + _elem1133 = iprot.readString() + self.part_vals.append(_elem1133) iprot.readListEnd() else: iprot.skip(ftype) @@ -23956,8 +24014,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 iter1134 in self.part_vals: + oprot.writeString(iter1134) oprot.writeListEnd() oprot.writeFieldEnd() if self.deleteData is not None: @@ -24130,10 +24188,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) + (_etype1138, _size1135) = iprot.readListBegin() + for _i1139 in xrange(_size1135): + _elem1140 = iprot.readString() + self.part_vals.append(_elem1140) iprot.readListEnd() else: iprot.skip(ftype) @@ -24169,8 +24227,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 iter1141 in self.part_vals: + oprot.writeString(iter1141) oprot.writeListEnd() oprot.writeFieldEnd() if self.deleteData is not None: @@ -24907,10 +24965,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) + (_etype1145, _size1142) = iprot.readListBegin() + for _i1146 in xrange(_size1142): + _elem1147 = iprot.readString() + self.part_vals.append(_elem1147) iprot.readListEnd() else: iprot.skip(ftype) @@ -24935,8 +24993,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 iter1148 in self.part_vals: + oprot.writeString(iter1148) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -25095,11 +25153,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 + (_ktype1150, _vtype1151, _size1149 ) = iprot.readMapBegin() + for _i1153 in xrange(_size1149): + _key1154 = iprot.readString() + _val1155 = iprot.readString() + self.partitionSpecs[_key1154] = _val1155 iprot.readMapEnd() else: iprot.skip(ftype) @@ -25136,9 +25194,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 kiter1156,viter1157 in self.partitionSpecs.items(): + oprot.writeString(kiter1156) + oprot.writeString(viter1157) oprot.writeMapEnd() oprot.writeFieldEnd() if self.source_db is not None: @@ -25343,11 +25401,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 + (_ktype1159, _vtype1160, _size1158 ) = iprot.readMapBegin() + for _i1162 in xrange(_size1158): + _key1163 = iprot.readString() + _val1164 = iprot.readString() + self.partitionSpecs[_key1163] = _val1164 iprot.readMapEnd() else: iprot.skip(ftype) @@ -25384,9 +25442,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 kiter1165,viter1166 in self.partitionSpecs.items(): + oprot.writeString(kiter1165) + oprot.writeString(viter1166) oprot.writeMapEnd() oprot.writeFieldEnd() if self.source_db is not None: @@ -25469,11 +25527,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) + (_etype1170, _size1167) = iprot.readListBegin() + for _i1171 in xrange(_size1167): + _elem1172 = Partition() + _elem1172.read(iprot) + self.success.append(_elem1172) iprot.readListEnd() else: iprot.skip(ftype) @@ -25514,8 +25572,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 iter1173 in self.success: + iter1173.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -25609,10 +25667,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) + (_etype1177, _size1174) = iprot.readListBegin() + for _i1178 in xrange(_size1174): + _elem1179 = iprot.readString() + self.part_vals.append(_elem1179) iprot.readListEnd() else: iprot.skip(ftype) @@ -25624,10 +25682,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) + (_etype1183, _size1180) = iprot.readListBegin() + for _i1184 in xrange(_size1180): + _elem1185 = iprot.readString() + self.group_names.append(_elem1185) iprot.readListEnd() else: iprot.skip(ftype) @@ -25652,8 +25710,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 iter1186 in self.part_vals: + oprot.writeString(iter1186) oprot.writeListEnd() oprot.writeFieldEnd() if self.user_name is not None: @@ -25663,8 +25721,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 iter1187 in self.group_names: + oprot.writeString(iter1187) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -26093,11 +26151,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) + (_etype1191, _size1188) = iprot.readListBegin() + for _i1192 in xrange(_size1188): + _elem1193 = Partition() + _elem1193.read(iprot) + self.success.append(_elem1193) iprot.readListEnd() else: iprot.skip(ftype) @@ -26126,8 +26184,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 iter1194 in self.success: + iter1194.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -26221,10 +26279,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) + (_etype1198, _size1195) = iprot.readListBegin() + for _i1199 in xrange(_size1195): + _elem1200 = iprot.readString() + self.group_names.append(_elem1200) iprot.readListEnd() else: iprot.skip(ftype) @@ -26257,8 +26315,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 iter1201 in self.group_names: + oprot.writeString(iter1201) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -26319,11 +26377,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) + (_etype1205, _size1202) = iprot.readListBegin() + for _i1206 in xrange(_size1202): + _elem1207 = Partition() + _elem1207.read(iprot) + self.success.append(_elem1207) iprot.readListEnd() else: iprot.skip(ftype) @@ -26352,8 +26410,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 iter1208 in self.success: + iter1208.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -26511,11 +26569,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) + (_etype1212, _size1209) = iprot.readListBegin() + for _i1213 in xrange(_size1209): + _elem1214 = PartitionSpec() + _elem1214.read(iprot) + self.success.append(_elem1214) iprot.readListEnd() else: iprot.skip(ftype) @@ -26544,8 +26602,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 iter1215 in self.success: + iter1215.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -26703,10 +26761,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) + (_etype1219, _size1216) = iprot.readListBegin() + for _i1220 in xrange(_size1216): + _elem1221 = iprot.readString() + self.success.append(_elem1221) iprot.readListEnd() else: iprot.skip(ftype) @@ -26735,8 +26793,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 iter1222 in self.success: + oprot.writeString(iter1222) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -26976,10 +27034,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) + (_etype1226, _size1223) = iprot.readListBegin() + for _i1227 in xrange(_size1223): + _elem1228 = iprot.readString() + self.part_vals.append(_elem1228) iprot.readListEnd() else: iprot.skip(ftype) @@ -27009,8 +27067,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 iter1229 in self.part_vals: + oprot.writeString(iter1229) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -27074,11 +27132,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) + (_etype1233, _size1230) = iprot.readListBegin() + for _i1234 in xrange(_size1230): + _elem1235 = Partition() + _elem1235.read(iprot) + self.success.append(_elem1235) iprot.readListEnd() else: iprot.skip(ftype) @@ -27107,8 +27165,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 iter1236 in self.success: + iter1236.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -27195,10 +27253,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) + (_etype1240, _size1237) = iprot.readListBegin() + for _i1241 in xrange(_size1237): + _elem1242 = iprot.readString() + self.part_vals.append(_elem1242) iprot.readListEnd() else: iprot.skip(ftype) @@ -27215,10 +27273,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) + (_etype1246, _size1243) = iprot.readListBegin() + for _i1247 in xrange(_size1243): + _elem1248 = iprot.readString() + self.group_names.append(_elem1248) iprot.readListEnd() else: iprot.skip(ftype) @@ -27243,8 +27301,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 iter1249 in self.part_vals: + oprot.writeString(iter1249) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -27258,8 +27316,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 iter1250 in self.group_names: + oprot.writeString(iter1250) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -27321,11 +27379,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) + (_etype1254, _size1251) = iprot.readListBegin() + for _i1255 in xrange(_size1251): + _elem1256 = Partition() + _elem1256.read(iprot) + self.success.append(_elem1256) iprot.readListEnd() else: iprot.skip(ftype) @@ -27354,8 +27412,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 iter1257 in self.success: + iter1257.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -27436,10 +27494,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) + (_etype1261, _size1258) = iprot.readListBegin() + for _i1262 in xrange(_size1258): + _elem1263 = iprot.readString() + self.part_vals.append(_elem1263) iprot.readListEnd() else: iprot.skip(ftype) @@ -27469,8 +27527,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 iter1264 in self.part_vals: + oprot.writeString(iter1264) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -27534,10 +27592,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) + (_etype1268, _size1265) = iprot.readListBegin() + for _i1269 in xrange(_size1265): + _elem1270 = iprot.readString() + self.success.append(_elem1270) iprot.readListEnd() else: iprot.skip(ftype) @@ -27566,8 +27624,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 iter1271 in self.success: + oprot.writeString(iter1271) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -27738,11 +27796,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) + (_etype1275, _size1272) = iprot.readListBegin() + for _i1276 in xrange(_size1272): + _elem1277 = Partition() + _elem1277.read(iprot) + self.success.append(_elem1277) iprot.readListEnd() else: iprot.skip(ftype) @@ -27771,8 +27829,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 iter1278 in self.success: + iter1278.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -27943,11 +28001,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) + (_etype1282, _size1279) = iprot.readListBegin() + for _i1283 in xrange(_size1279): + _elem1284 = PartitionSpec() + _elem1284.read(iprot) + self.success.append(_elem1284) iprot.readListEnd() else: iprot.skip(ftype) @@ -27976,8 +28034,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 iter1285 in self.success: + iter1285.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -28397,10 +28455,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) + (_etype1289, _size1286) = iprot.readListBegin() + for _i1290 in xrange(_size1286): + _elem1291 = iprot.readString() + self.names.append(_elem1291) iprot.readListEnd() else: iprot.skip(ftype) @@ -28425,8 +28483,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 iter1292 in self.names: + oprot.writeString(iter1292) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -28485,11 +28543,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) + (_etype1296, _size1293) = iprot.readListBegin() + for _i1297 in xrange(_size1293): + _elem1298 = Partition() + _elem1298.read(iprot) + self.success.append(_elem1298) iprot.readListEnd() else: iprot.skip(ftype) @@ -28518,8 +28576,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 iter1299 in self.success: + iter1299.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -28769,11 +28827,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) + (_etype1303, _size1300) = iprot.readListBegin() + for _i1304 in xrange(_size1300): + _elem1305 = Partition() + _elem1305.read(iprot) + self.new_parts.append(_elem1305) iprot.readListEnd() else: iprot.skip(ftype) @@ -28798,8 +28856,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 iter1306 in self.new_parts: + iter1306.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -28952,11 +29010,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) + (_etype1310, _size1307) = iprot.readListBegin() + for _i1311 in xrange(_size1307): + _elem1312 = Partition() + _elem1312.read(iprot) + self.new_parts.append(_elem1312) iprot.readListEnd() else: iprot.skip(ftype) @@ -28987,8 +29045,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 iter1313 in self.new_parts: + iter1313.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.environment_context is not None: @@ -29332,10 +29390,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) + (_etype1317, _size1314) = iprot.readListBegin() + for _i1318 in xrange(_size1314): + _elem1319 = iprot.readString() + self.part_vals.append(_elem1319) iprot.readListEnd() else: iprot.skip(ftype) @@ -29366,8 +29424,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 iter1320 in self.part_vals: + oprot.writeString(iter1320) oprot.writeListEnd() oprot.writeFieldEnd() if self.new_part is not None: @@ -29509,10 +29567,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) + (_etype1324, _size1321) = iprot.readListBegin() + for _i1325 in xrange(_size1321): + _elem1326 = iprot.readString() + self.part_vals.append(_elem1326) iprot.readListEnd() else: iprot.skip(ftype) @@ -29534,8 +29592,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 iter1327 in self.part_vals: + oprot.writeString(iter1327) oprot.writeListEnd() oprot.writeFieldEnd() if self.throw_exception is not None: @@ -29893,10 +29951,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) + (_etype1331, _size1328) = iprot.readListBegin() + for _i1332 in xrange(_size1328): + _elem1333 = iprot.readString() + self.success.append(_elem1333) iprot.readListEnd() else: iprot.skip(ftype) @@ -29919,8 +29977,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 iter1334 in self.success: + oprot.writeString(iter1334) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -30044,11 +30102,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 + (_ktype1336, _vtype1337, _size1335 ) = iprot.readMapBegin() + for _i1339 in xrange(_size1335): + _key1340 = iprot.readString() + _val1341 = iprot.readString() + self.success[_key1340] = _val1341 iprot.readMapEnd() else: iprot.skip(ftype) @@ -30071,9 +30129,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 kiter1342,viter1343 in self.success.items(): + oprot.writeString(kiter1342) + oprot.writeString(viter1343) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -30149,11 +30207,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 + (_ktype1345, _vtype1346, _size1344 ) = iprot.readMapBegin() + for _i1348 in xrange(_size1344): + _key1349 = iprot.readString() + _val1350 = iprot.readString() + self.part_vals[_key1349] = _val1350 iprot.readMapEnd() else: iprot.skip(ftype) @@ -30183,9 +30241,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 kiter1351,viter1352 in self.part_vals.items(): + oprot.writeString(kiter1351) + oprot.writeString(viter1352) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -30399,11 +30457,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 + (_ktype1354, _vtype1355, _size1353 ) = iprot.readMapBegin() + for _i1357 in xrange(_size1353): + _key1358 = iprot.readString() + _val1359 = iprot.readString() + self.part_vals[_key1358] = _val1359 iprot.readMapEnd() else: iprot.skip(ftype) @@ -30433,9 +30491,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 kiter1360,viter1361 in self.part_vals.items(): + oprot.writeString(kiter1360) + oprot.writeString(viter1361) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -34087,10 +34145,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) + (_etype1365, _size1362) = iprot.readListBegin() + for _i1366 in xrange(_size1362): + _elem1367 = iprot.readString() + self.success.append(_elem1367) iprot.readListEnd() else: iprot.skip(ftype) @@ -34113,8 +34171,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 iter1368 in self.success: + oprot.writeString(iter1368) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -34802,10 +34860,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) + (_etype1372, _size1369) = iprot.readListBegin() + for _i1373 in xrange(_size1369): + _elem1374 = iprot.readString() + self.success.append(_elem1374) iprot.readListEnd() else: iprot.skip(ftype) @@ -34828,8 +34886,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 iter1375 in self.success: + oprot.writeString(iter1375) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -35343,11 +35401,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) + (_etype1379, _size1376) = iprot.readListBegin() + for _i1380 in xrange(_size1376): + _elem1381 = Role() + _elem1381.read(iprot) + self.success.append(_elem1381) iprot.readListEnd() else: iprot.skip(ftype) @@ -35370,8 +35428,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 iter1382 in self.success: + iter1382.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -35880,10 +35938,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) + (_etype1386, _size1383) = iprot.readListBegin() + for _i1387 in xrange(_size1383): + _elem1388 = iprot.readString() + self.group_names.append(_elem1388) iprot.readListEnd() else: iprot.skip(ftype) @@ -35908,8 +35966,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 iter1389 in self.group_names: + oprot.writeString(iter1389) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -36136,11 +36194,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) + (_etype1393, _size1390) = iprot.readListBegin() + for _i1394 in xrange(_size1390): + _elem1395 = HiveObjectPrivilege() + _elem1395.read(iprot) + self.success.append(_elem1395) iprot.readListEnd() else: iprot.skip(ftype) @@ -36163,8 +36221,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 iter1396 in self.success: + iter1396.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -36662,10 +36720,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) + (_etype1400, _size1397) = iprot.readListBegin() + for _i1401 in xrange(_size1397): + _elem1402 = iprot.readString() + self.group_names.append(_elem1402) iprot.readListEnd() else: iprot.skip(ftype) @@ -36686,8 +36744,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 iter1403 in self.group_names: + oprot.writeString(iter1403) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -36742,10 +36800,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) + (_etype1407, _size1404) = iprot.readListBegin() + for _i1408 in xrange(_size1404): + _elem1409 = iprot.readString() + self.success.append(_elem1409) iprot.readListEnd() else: iprot.skip(ftype) @@ -36768,8 +36826,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 iter1410 in self.success: + oprot.writeString(iter1410) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -37701,10 +37759,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) + (_etype1414, _size1411) = iprot.readListBegin() + for _i1415 in xrange(_size1411): + _elem1416 = iprot.readString() + self.success.append(_elem1416) iprot.readListEnd() else: iprot.skip(ftype) @@ -37721,8 +37779,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 iter1417 in self.success: + oprot.writeString(iter1417) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -38249,10 +38307,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) + (_etype1421, _size1418) = iprot.readListBegin() + for _i1422 in xrange(_size1418): + _elem1423 = iprot.readString() + self.success.append(_elem1423) iprot.readListEnd() else: iprot.skip(ftype) @@ -38269,8 +38327,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 iter1424 in self.success: + oprot.writeString(iter1424) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -41407,6 +41465,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: @@ -46438,11 +46623,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) + (_etype1428, _size1425) = iprot.readListBegin() + for _i1429 in xrange(_size1425): + _elem1430 = SchemaVersion() + _elem1430.read(iprot) + self.success.append(_elem1430) iprot.readListEnd() else: iprot.skip(ftype) @@ -46471,8 +46656,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 iter1431 in self.success: + iter1431.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 9bf9843314..0e15fb89a4 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,38 @@ class CommitTxnRequest: Attributes: - txnid - replPolicy + - databases + - tables + - partitions + - writeIds + - tableObjs + - partitionObjs + - files """ thrift_spec = ( None, # 0 (1, TType.I64, 'txnid', None, None, ), # 1 (2, TType.STRING, 'replPolicy', None, None, ), # 2 + (3, TType.LIST, 'databases', (TType.STRING,None), None, ), # 3 + (4, TType.LIST, 'tables', (TType.STRING,None), None, ), # 4 + (5, TType.LIST, 'partitions', (TType.STRING,None), None, ), # 5 + (6, TType.LIST, 'writeIds', (TType.I64,None), None, ), # 6 + (7, TType.LIST, 'tableObjs', (TType.STRING,None), None, ), # 7 + (8, TType.LIST, 'partitionObjs', (TType.STRING,None), None, ), # 8 + (9, TType.LIST, 'files', (TType.STRING,None), None, ), # 9 ) - def __init__(self, txnid=None, replPolicy=None,): + def __init__(self, txnid=None, replPolicy=None, databases=None, tables=None, partitions=None, writeIds=None, tableObjs=None, partitionObjs=None, files=None,): self.txnid = txnid self.replPolicy = replPolicy + self.databases = databases + self.tables = tables + self.partitions = partitions + self.writeIds = writeIds + self.tableObjs = tableObjs + self.partitionObjs = partitionObjs + self.files = files 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 +11509,76 @@ def read(self, iprot): self.replPolicy = iprot.readString() else: iprot.skip(ftype) + elif fid == 3: + if ftype == TType.LIST: + self.databases = [] + (_etype526, _size523) = iprot.readListBegin() + for _i527 in xrange(_size523): + _elem528 = iprot.readString() + self.databases.append(_elem528) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.LIST: + self.tables = [] + (_etype532, _size529) = iprot.readListBegin() + for _i533 in xrange(_size529): + _elem534 = iprot.readString() + self.tables.append(_elem534) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.LIST: + self.partitions = [] + (_etype538, _size535) = iprot.readListBegin() + for _i539 in xrange(_size535): + _elem540 = iprot.readString() + self.partitions.append(_elem540) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.LIST: + self.writeIds = [] + (_etype544, _size541) = iprot.readListBegin() + for _i545 in xrange(_size541): + _elem546 = iprot.readI64() + self.writeIds.append(_elem546) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.LIST: + self.tableObjs = [] + (_etype550, _size547) = iprot.readListBegin() + for _i551 in xrange(_size547): + _elem552 = iprot.readString() + self.tableObjs.append(_elem552) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 8: + if ftype == TType.LIST: + self.partitionObjs = [] + (_etype556, _size553) = iprot.readListBegin() + for _i557 in xrange(_size553): + _elem558 = iprot.readString() + self.partitionObjs.append(_elem558) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 9: + if ftype == TType.LIST: + self.files = [] + (_etype562, _size559) = iprot.readListBegin() + for _i563 in xrange(_size559): + _elem564 = iprot.readString() + self.files.append(_elem564) + iprot.readListEnd() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -11506,6 +11597,55 @@ def write(self, oprot): oprot.writeFieldBegin('replPolicy', TType.STRING, 2) oprot.writeString(self.replPolicy) oprot.writeFieldEnd() + if self.databases is not None: + oprot.writeFieldBegin('databases', TType.LIST, 3) + oprot.writeListBegin(TType.STRING, len(self.databases)) + for iter565 in self.databases: + oprot.writeString(iter565) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.tables is not None: + oprot.writeFieldBegin('tables', TType.LIST, 4) + oprot.writeListBegin(TType.STRING, len(self.tables)) + for iter566 in self.tables: + oprot.writeString(iter566) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.partitions is not None: + oprot.writeFieldBegin('partitions', TType.LIST, 5) + oprot.writeListBegin(TType.STRING, len(self.partitions)) + for iter567 in self.partitions: + oprot.writeString(iter567) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.writeIds is not None: + oprot.writeFieldBegin('writeIds', TType.LIST, 6) + oprot.writeListBegin(TType.I64, len(self.writeIds)) + for iter568 in self.writeIds: + oprot.writeI64(iter568) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.tableObjs is not None: + oprot.writeFieldBegin('tableObjs', TType.LIST, 7) + oprot.writeListBegin(TType.STRING, len(self.tableObjs)) + for iter569 in self.tableObjs: + oprot.writeString(iter569) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.partitionObjs is not None: + oprot.writeFieldBegin('partitionObjs', TType.LIST, 8) + oprot.writeListBegin(TType.STRING, len(self.partitionObjs)) + for iter570 in self.partitionObjs: + oprot.writeString(iter570) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.files is not None: + oprot.writeFieldBegin('files', TType.LIST, 9) + oprot.writeListBegin(TType.STRING, len(self.files)) + for iter571 in self.files: + oprot.writeString(iter571) + oprot.writeListEnd() + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -11519,6 +11659,227 @@ def __hash__(self): value = 17 value = (value * 31) ^ hash(self.txnid) value = (value * 31) ^ hash(self.replPolicy) + value = (value * 31) ^ hash(self.databases) + value = (value * 31) ^ hash(self.tables) + value = (value * 31) ^ hash(self.partitions) + value = (value * 31) ^ hash(self.writeIds) + value = (value * 31) ^ hash(self.tableObjs) + value = (value * 31) ^ hash(self.partitionObjs) + value = (value * 31) ^ hash(self.files) + 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: + - txnid + - databases + - tables + - partitions + - writeIds + - tableObjs + - files + - partitionObjs + """ + + thrift_spec = ( + None, # 0 + (1, TType.I64, 'txnid', None, None, ), # 1 + (2, TType.LIST, 'databases', (TType.STRING,None), None, ), # 2 + (3, TType.LIST, 'tables', (TType.STRING,None), None, ), # 3 + (4, TType.LIST, 'partitions', (TType.STRING,None), None, ), # 4 + (5, TType.LIST, 'writeIds', (TType.I64,None), None, ), # 5 + (6, TType.LIST, 'tableObjs', (TType.STRING,None), None, ), # 6 + (7, TType.LIST, 'files', (TType.STRING,None), None, ), # 7 + (8, TType.LIST, 'partitionObjs', (TType.STRING,None), None, ), # 8 + ) + + def __init__(self, txnid=None, databases=None, tables=None, partitions=None, writeIds=None, tableObjs=None, files=None, partitionObjs=None,): + self.txnid = txnid + self.databases = databases + self.tables = tables + self.partitions = partitions + self.writeIds = writeIds + self.tableObjs = tableObjs + self.files = files + self.partitionObjs = partitionObjs + + 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.LIST: + self.databases = [] + (_etype575, _size572) = iprot.readListBegin() + for _i576 in xrange(_size572): + _elem577 = iprot.readString() + self.databases.append(_elem577) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.LIST: + self.tables = [] + (_etype581, _size578) = iprot.readListBegin() + for _i582 in xrange(_size578): + _elem583 = iprot.readString() + self.tables.append(_elem583) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.LIST: + self.partitions = [] + (_etype587, _size584) = iprot.readListBegin() + for _i588 in xrange(_size584): + _elem589 = iprot.readString() + self.partitions.append(_elem589) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.LIST: + self.writeIds = [] + (_etype593, _size590) = iprot.readListBegin() + for _i594 in xrange(_size590): + _elem595 = iprot.readI64() + self.writeIds.append(_elem595) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.LIST: + self.tableObjs = [] + (_etype599, _size596) = iprot.readListBegin() + for _i600 in xrange(_size596): + _elem601 = iprot.readString() + self.tableObjs.append(_elem601) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.LIST: + self.files = [] + (_etype605, _size602) = iprot.readListBegin() + for _i606 in xrange(_size602): + _elem607 = iprot.readString() + self.files.append(_elem607) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 8: + if ftype == TType.LIST: + self.partitionObjs = [] + (_etype611, _size608) = iprot.readListBegin() + for _i612 in xrange(_size608): + _elem613 = iprot.readString() + self.partitionObjs.append(_elem613) + 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('WriteEventInfo') + if self.txnid is not None: + oprot.writeFieldBegin('txnid', TType.I64, 1) + oprot.writeI64(self.txnid) + oprot.writeFieldEnd() + if self.databases is not None: + oprot.writeFieldBegin('databases', TType.LIST, 2) + oprot.writeListBegin(TType.STRING, len(self.databases)) + for iter614 in self.databases: + oprot.writeString(iter614) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.tables is not None: + oprot.writeFieldBegin('tables', TType.LIST, 3) + oprot.writeListBegin(TType.STRING, len(self.tables)) + for iter615 in self.tables: + oprot.writeString(iter615) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.partitions is not None: + oprot.writeFieldBegin('partitions', TType.LIST, 4) + oprot.writeListBegin(TType.STRING, len(self.partitions)) + for iter616 in self.partitions: + oprot.writeString(iter616) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.writeIds is not None: + oprot.writeFieldBegin('writeIds', TType.LIST, 5) + oprot.writeListBegin(TType.I64, len(self.writeIds)) + for iter617 in self.writeIds: + oprot.writeI64(iter617) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.tableObjs is not None: + oprot.writeFieldBegin('tableObjs', TType.LIST, 6) + oprot.writeListBegin(TType.STRING, len(self.tableObjs)) + for iter618 in self.tableObjs: + oprot.writeString(iter618) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.files is not None: + oprot.writeFieldBegin('files', TType.LIST, 7) + oprot.writeListBegin(TType.STRING, len(self.files)) + for iter619 in self.files: + oprot.writeString(iter619) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.partitionObjs is not None: + oprot.writeFieldBegin('partitionObjs', TType.LIST, 8) + oprot.writeListBegin(TType.STRING, len(self.partitionObjs)) + for iter620 in self.partitionObjs: + oprot.writeString(iter620) + 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!') + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.txnid) + value = (value * 31) ^ hash(self.databases) + value = (value * 31) ^ hash(self.tables) + value = (value * 31) ^ hash(self.partitions) + value = (value * 31) ^ hash(self.writeIds) + value = (value * 31) ^ hash(self.tableObjs) + value = (value * 31) ^ hash(self.files) + value = (value * 31) ^ hash(self.partitionObjs) return value def __repr__(self): @@ -11561,10 +11922,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) + (_etype624, _size621) = iprot.readListBegin() + for _i625 in xrange(_size621): + _elem626 = iprot.readString() + self.fullTableNames.append(_elem626) iprot.readListEnd() else: iprot.skip(ftype) @@ -11586,8 +11947,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 iter627 in self.fullTableNames: + oprot.writeString(iter627) oprot.writeListEnd() oprot.writeFieldEnd() if self.validTxnList is not None: @@ -11670,10 +12031,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) + (_etype631, _size628) = iprot.readListBegin() + for _i632 in xrange(_size628): + _elem633 = iprot.readI64() + self.invalidWriteIds.append(_elem633) iprot.readListEnd() else: iprot.skip(ftype) @@ -11708,8 +12069,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 iter634 in self.invalidWriteIds: + oprot.writeI64(iter634) oprot.writeListEnd() oprot.writeFieldEnd() if self.minOpenWriteId is not None: @@ -11781,11 +12142,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) + (_etype638, _size635) = iprot.readListBegin() + for _i639 in xrange(_size635): + _elem640 = TableValidWriteIds() + _elem640.read(iprot) + self.tblValidWriteIds.append(_elem640) iprot.readListEnd() else: iprot.skip(ftype) @@ -11802,8 +12163,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 iter641 in self.tblValidWriteIds: + iter641.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11879,10 +12240,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) + (_etype645, _size642) = iprot.readListBegin() + for _i646 in xrange(_size642): + _elem647 = iprot.readI64() + self.txnIds.append(_elem647) iprot.readListEnd() else: iprot.skip(ftype) @@ -11894,11 +12255,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) + (_etype651, _size648) = iprot.readListBegin() + for _i652 in xrange(_size648): + _elem653 = TxnToWriteId() + _elem653.read(iprot) + self.srcTxnToWriteIdList.append(_elem653) iprot.readListEnd() else: iprot.skip(ftype) @@ -11923,8 +12284,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 iter654 in self.txnIds: + oprot.writeI64(iter654) oprot.writeListEnd() oprot.writeFieldEnd() if self.replPolicy is not None: @@ -11934,8 +12295,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 iter655 in self.srcTxnToWriteIdList: + iter655.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12077,11 +12438,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) + (_etype659, _size656) = iprot.readListBegin() + for _i660 in xrange(_size656): + _elem661 = TxnToWriteId() + _elem661.read(iprot) + self.txnToWriteIds.append(_elem661) iprot.readListEnd() else: iprot.skip(ftype) @@ -12098,8 +12459,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 iter662 in self.txnToWriteIds: + iter662.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12327,11 +12688,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) + (_etype666, _size663) = iprot.readListBegin() + for _i667 in xrange(_size663): + _elem668 = LockComponent() + _elem668.read(iprot) + self.component.append(_elem668) iprot.readListEnd() else: iprot.skip(ftype) @@ -12368,8 +12729,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 iter669 in self.component: + iter669.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.txnid is not None: @@ -13067,11 +13428,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) + (_etype673, _size670) = iprot.readListBegin() + for _i674 in xrange(_size670): + _elem675 = ShowLocksResponseElement() + _elem675.read(iprot) + self.locks.append(_elem675) iprot.readListEnd() else: iprot.skip(ftype) @@ -13088,8 +13449,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 iter676 in self.locks: + iter676.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13304,20 +13665,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) + (_etype680, _size677) = iprot.readSetBegin() + for _i681 in xrange(_size677): + _elem682 = iprot.readI64() + self.aborted.add(_elem682) 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) + (_etype686, _size683) = iprot.readSetBegin() + for _i687 in xrange(_size683): + _elem688 = iprot.readI64() + self.nosuch.add(_elem688) iprot.readSetEnd() else: iprot.skip(ftype) @@ -13334,15 +13695,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 iter689 in self.aborted: + oprot.writeI64(iter689) 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 iter690 in self.nosuch: + oprot.writeI64(iter690) oprot.writeSetEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13439,11 +13800,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 + (_ktype692, _vtype693, _size691 ) = iprot.readMapBegin() + for _i695 in xrange(_size691): + _key696 = iprot.readString() + _val697 = iprot.readString() + self.properties[_key696] = _val697 iprot.readMapEnd() else: iprot.skip(ftype) @@ -13480,9 +13841,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 kiter698,viter699 in self.properties.items(): + oprot.writeString(kiter698) + oprot.writeString(viter699) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13917,11 +14278,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) + (_etype703, _size700) = iprot.readListBegin() + for _i704 in xrange(_size700): + _elem705 = ShowCompactResponseElement() + _elem705.read(iprot) + self.compacts.append(_elem705) iprot.readListEnd() else: iprot.skip(ftype) @@ -13938,8 +14299,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 iter706 in self.compacts: + iter706.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14028,10 +14389,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) + (_etype710, _size707) = iprot.readListBegin() + for _i711 in xrange(_size707): + _elem712 = iprot.readString() + self.partitionnames.append(_elem712) iprot.readListEnd() else: iprot.skip(ftype) @@ -14069,8 +14430,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 iter713 in self.partitionnames: + oprot.writeString(iter713) oprot.writeListEnd() oprot.writeFieldEnd() if self.operationType is not None: @@ -14300,10 +14661,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) + (_etype717, _size714) = iprot.readSetBegin() + for _i718 in xrange(_size714): + _elem719 = iprot.readString() + self.tablesUsed.add(_elem719) iprot.readSetEnd() else: iprot.skip(ftype) @@ -14337,8 +14698,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 iter720 in self.tablesUsed: + oprot.writeString(iter720) oprot.writeSetEnd() oprot.writeFieldEnd() if self.validTxnList is not None: @@ -14650,11 +15011,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) + (_etype724, _size721) = iprot.readListBegin() + for _i725 in xrange(_size721): + _elem726 = NotificationEvent() + _elem726.read(iprot) + self.events.append(_elem726) iprot.readListEnd() else: iprot.skip(ftype) @@ -14671,8 +15032,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 iter727 in self.events: + iter727.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14935,6 +15296,7 @@ class InsertEventRequestData: - replace - filesAdded - filesAddedChecksum + - subDirectoryList """ thrift_spec = ( @@ -14942,12 +15304,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 +15330,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) + (_etype731, _size728) = iprot.readListBegin() + for _i732 in xrange(_size728): + _elem733 = iprot.readString() + self.filesAdded.append(_elem733) 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) + (_etype737, _size734) = iprot.readListBegin() + for _i738 in xrange(_size734): + _elem739 = iprot.readString() + self.filesAddedChecksum.append(_elem739) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.LIST: + self.subDirectoryList = [] + (_etype743, _size740) = iprot.readListBegin() + for _i744 in xrange(_size740): + _elem745 = iprot.readString() + self.subDirectoryList.append(_elem745) iprot.readListEnd() else: iprot.skip(ftype) @@ -15000,15 +15374,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 iter746 in self.filesAdded: + oprot.writeString(iter746) 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 iter747 in self.filesAddedChecksum: + oprot.writeString(iter747) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.subDirectoryList is not None: + oprot.writeFieldBegin('subDirectoryList', TType.LIST, 4) + oprot.writeListBegin(TType.STRING, len(self.subDirectoryList)) + for iter748 in self.subDirectoryList: + oprot.writeString(iter748) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15025,6 +15406,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 +15548,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) + (_etype752, _size749) = iprot.readListBegin() + for _i753 in xrange(_size749): + _elem754 = iprot.readString() + self.partitionVals.append(_elem754) iprot.readListEnd() else: iprot.skip(ftype) @@ -15207,8 +15589,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 iter755 in self.partitionVals: + oprot.writeString(iter755) oprot.writeListEnd() oprot.writeFieldEnd() if self.catName is not None: @@ -15293,6 +15675,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 = [] + (_etype759, _size756) = iprot.readListBegin() + for _i760 in xrange(_size756): + _elem761 = iprot.readString() + self.partitionVals.append(_elem761) + 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 iter762 in self.partitionVals: + oprot.writeString(iter762) + 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 +15977,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 + (_ktype764, _vtype765, _size763 ) = iprot.readMapBegin() + for _i767 in xrange(_size763): + _key768 = iprot.readI64() + _val769 = MetadataPpdResult() + _val769.read(iprot) + self.metadata[_key768] = _val769 iprot.readMapEnd() else: iprot.skip(ftype) @@ -15427,9 +16004,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 kiter770,viter771 in self.metadata.items(): + oprot.writeI64(kiter770) + viter771.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.isSupported is not None: @@ -15499,10 +16076,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) + (_etype775, _size772) = iprot.readListBegin() + for _i776 in xrange(_size772): + _elem777 = iprot.readI64() + self.fileIds.append(_elem777) iprot.readListEnd() else: iprot.skip(ftype) @@ -15534,8 +16111,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 iter778 in self.fileIds: + oprot.writeI64(iter778) oprot.writeListEnd() oprot.writeFieldEnd() if self.expr is not None: @@ -15609,11 +16186,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 + (_ktype780, _vtype781, _size779 ) = iprot.readMapBegin() + for _i783 in xrange(_size779): + _key784 = iprot.readI64() + _val785 = iprot.readString() + self.metadata[_key784] = _val785 iprot.readMapEnd() else: iprot.skip(ftype) @@ -15635,9 +16212,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 kiter786,viter787 in self.metadata.items(): + oprot.writeI64(kiter786) + oprot.writeString(viter787) oprot.writeMapEnd() oprot.writeFieldEnd() if self.isSupported is not None: @@ -15698,10 +16275,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) + (_etype791, _size788) = iprot.readListBegin() + for _i792 in xrange(_size788): + _elem793 = iprot.readI64() + self.fileIds.append(_elem793) iprot.readListEnd() else: iprot.skip(ftype) @@ -15718,8 +16295,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 iter794 in self.fileIds: + oprot.writeI64(iter794) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15825,20 +16402,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) + (_etype798, _size795) = iprot.readListBegin() + for _i799 in xrange(_size795): + _elem800 = iprot.readI64() + self.fileIds.append(_elem800) 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) + (_etype804, _size801) = iprot.readListBegin() + for _i805 in xrange(_size801): + _elem806 = iprot.readString() + self.metadata.append(_elem806) iprot.readListEnd() else: iprot.skip(ftype) @@ -15860,15 +16437,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 iter807 in self.fileIds: + oprot.writeI64(iter807) 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 iter808 in self.metadata: + oprot.writeString(iter808) oprot.writeListEnd() oprot.writeFieldEnd() if self.type is not None: @@ -15976,10 +16553,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) + (_etype812, _size809) = iprot.readListBegin() + for _i813 in xrange(_size809): + _elem814 = iprot.readI64() + self.fileIds.append(_elem814) iprot.readListEnd() else: iprot.skip(ftype) @@ -15996,8 +16573,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 iter815 in self.fileIds: + oprot.writeI64(iter815) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16226,11 +16803,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) + (_etype819, _size816) = iprot.readListBegin() + for _i820 in xrange(_size816): + _elem821 = Function() + _elem821.read(iprot) + self.functions.append(_elem821) iprot.readListEnd() else: iprot.skip(ftype) @@ -16247,8 +16824,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 iter822 in self.functions: + iter822.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16300,10 +16877,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) + (_etype826, _size823) = iprot.readListBegin() + for _i827 in xrange(_size823): + _elem828 = iprot.readI32() + self.values.append(_elem828) iprot.readListEnd() else: iprot.skip(ftype) @@ -16320,8 +16897,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 iter829 in self.values: + oprot.writeI32(iter829) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16566,10 +17143,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) + (_etype833, _size830) = iprot.readListBegin() + for _i834 in xrange(_size830): + _elem835 = iprot.readString() + self.tblNames.append(_elem835) iprot.readListEnd() else: iprot.skip(ftype) @@ -16601,8 +17178,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 iter836 in self.tblNames: + oprot.writeString(iter836) oprot.writeListEnd() oprot.writeFieldEnd() if self.capabilities is not None: @@ -16667,11 +17244,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) + (_etype840, _size837) = iprot.readListBegin() + for _i841 in xrange(_size837): + _elem842 = Table() + _elem842.read(iprot) + self.tables.append(_elem842) iprot.readListEnd() else: iprot.skip(ftype) @@ -16688,8 +17265,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 iter843 in self.tables: + iter843.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -17003,10 +17580,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) + (_etype847, _size844) = iprot.readSetBegin() + for _i848 in xrange(_size844): + _elem849 = iprot.readString() + self.tablesUsed.add(_elem849) iprot.readSetEnd() else: iprot.skip(ftype) @@ -17038,8 +17615,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 iter850 in self.tablesUsed: + oprot.writeString(iter850) oprot.writeSetEnd() oprot.writeFieldEnd() if self.validTxnList is not None: @@ -17944,44 +18521,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) + (_etype854, _size851) = iprot.readListBegin() + for _i855 in xrange(_size851): + _elem856 = WMPool() + _elem856.read(iprot) + self.pools.append(_elem856) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.mappings = [] - (_etype748, _size745) = iprot.readListBegin() - for _i749 in xrange(_size745): - _elem750 = WMMapping() - _elem750.read(iprot) - self.mappings.append(_elem750) + (_etype860, _size857) = iprot.readListBegin() + for _i861 in xrange(_size857): + _elem862 = WMMapping() + _elem862.read(iprot) + self.mappings.append(_elem862) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.triggers = [] - (_etype754, _size751) = iprot.readListBegin() - for _i755 in xrange(_size751): - _elem756 = WMTrigger() - _elem756.read(iprot) - self.triggers.append(_elem756) + (_etype866, _size863) = iprot.readListBegin() + for _i867 in xrange(_size863): + _elem868 = WMTrigger() + _elem868.read(iprot) + self.triggers.append(_elem868) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.LIST: self.poolTriggers = [] - (_etype760, _size757) = iprot.readListBegin() - for _i761 in xrange(_size757): - _elem762 = WMPoolTrigger() - _elem762.read(iprot) - self.poolTriggers.append(_elem762) + (_etype872, _size869) = iprot.readListBegin() + for _i873 in xrange(_size869): + _elem874 = WMPoolTrigger() + _elem874.read(iprot) + self.poolTriggers.append(_elem874) iprot.readListEnd() else: iprot.skip(ftype) @@ -18002,29 +18579,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 iter875 in self.pools: + iter875.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.mappings is not None: oprot.writeFieldBegin('mappings', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.mappings)) - for iter764 in self.mappings: - iter764.write(oprot) + for iter876 in self.mappings: + iter876.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.triggers is not None: oprot.writeFieldBegin('triggers', TType.LIST, 4) oprot.writeListBegin(TType.STRUCT, len(self.triggers)) - for iter765 in self.triggers: - iter765.write(oprot) + for iter877 in self.triggers: + iter877.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.poolTriggers is not None: oprot.writeFieldBegin('poolTriggers', TType.LIST, 5) oprot.writeListBegin(TType.STRUCT, len(self.poolTriggers)) - for iter766 in self.poolTriggers: - iter766.write(oprot) + for iter878 in self.poolTriggers: + iter878.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -18498,11 +19075,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) + (_etype882, _size879) = iprot.readListBegin() + for _i883 in xrange(_size879): + _elem884 = WMResourcePlan() + _elem884.read(iprot) + self.resourcePlans.append(_elem884) iprot.readListEnd() else: iprot.skip(ftype) @@ -18519,8 +19096,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 iter885 in self.resourcePlans: + iter885.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -18824,20 +19401,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) + (_etype889, _size886) = iprot.readListBegin() + for _i890 in xrange(_size886): + _elem891 = iprot.readString() + self.errors.append(_elem891) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.warnings = [] - (_etype783, _size780) = iprot.readListBegin() - for _i784 in xrange(_size780): - _elem785 = iprot.readString() - self.warnings.append(_elem785) + (_etype895, _size892) = iprot.readListBegin() + for _i896 in xrange(_size892): + _elem897 = iprot.readString() + self.warnings.append(_elem897) iprot.readListEnd() else: iprot.skip(ftype) @@ -18854,15 +19431,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 iter898 in self.errors: + oprot.writeString(iter898) oprot.writeListEnd() oprot.writeFieldEnd() if self.warnings is not None: oprot.writeFieldBegin('warnings', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.warnings)) - for iter787 in self.warnings: - oprot.writeString(iter787) + for iter899 in self.warnings: + oprot.writeString(iter899) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -19439,11 +20016,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) + (_etype903, _size900) = iprot.readListBegin() + for _i904 in xrange(_size900): + _elem905 = WMTrigger() + _elem905.read(iprot) + self.triggers.append(_elem905) iprot.readListEnd() else: iprot.skip(ftype) @@ -19460,8 +20037,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 iter906 in self.triggers: + iter906.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20645,11 +21222,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) + (_etype910, _size907) = iprot.readListBegin() + for _i911 in xrange(_size907): + _elem912 = FieldSchema() + _elem912.read(iprot) + self.cols.append(_elem912) iprot.readListEnd() else: iprot.skip(ftype) @@ -20709,8 +21286,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 iter913 in self.cols: + iter913.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.state is not None: @@ -20965,11 +21542,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) + (_etype917, _size914) = iprot.readListBegin() + for _i918 in xrange(_size914): + _elem919 = SchemaVersionDescriptor() + _elem919.read(iprot) + self.schemaVersions.append(_elem919) iprot.readListEnd() else: iprot.skip(ftype) @@ -20986,8 +21563,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 iter920 in self.schemaVersions: + iter920.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 3dbe4d8068..4d571da8b2 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,55 @@ class CommitTxnRequest include ::Thrift::Struct, ::Thrift::Struct_Union TXNID = 1 REPLPOLICY = 2 + DATABASES = 3 + TABLES = 4 + PARTITIONS = 5 + WRITEIDS = 6 + TABLEOBJS = 7 + PARTITIONOBJS = 8 + FILES = 9 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}, + DATABASES => {:type => ::Thrift::Types::LIST, :name => 'databases', :element => {:type => ::Thrift::Types::STRING}, :optional => true}, + TABLES => {:type => ::Thrift::Types::LIST, :name => 'tables', :element => {:type => ::Thrift::Types::STRING}, :optional => true}, + PARTITIONS => {:type => ::Thrift::Types::LIST, :name => 'partitions', :element => {:type => ::Thrift::Types::STRING}, :optional => true}, + WRITEIDS => {:type => ::Thrift::Types::LIST, :name => 'writeIds', :element => {:type => ::Thrift::Types::I64}, :optional => true}, + TABLEOBJS => {:type => ::Thrift::Types::LIST, :name => 'tableObjs', :element => {:type => ::Thrift::Types::STRING}, :optional => true}, + PARTITIONOBJS => {:type => ::Thrift::Types::LIST, :name => 'partitionObjs', :element => {:type => ::Thrift::Types::STRING}, :optional => true}, + FILES => {:type => ::Thrift::Types::LIST, :name => 'files', :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 + end + + ::Thrift::Struct.generate_accessors self +end + +class WriteEventInfo + include ::Thrift::Struct, ::Thrift::Struct_Union + TXNID = 1 + DATABASES = 2 + TABLES = 3 + PARTITIONS = 4 + WRITEIDS = 5 + TABLEOBJS = 6 + FILES = 7 + PARTITIONOBJS = 8 + + FIELDS = { + TXNID => {:type => ::Thrift::Types::I64, :name => 'txnid'}, + DATABASES => {:type => ::Thrift::Types::LIST, :name => 'databases', :element => {:type => ::Thrift::Types::STRING}, :optional => true}, + TABLES => {:type => ::Thrift::Types::LIST, :name => 'tables', :element => {:type => ::Thrift::Types::STRING}, :optional => true}, + PARTITIONS => {:type => ::Thrift::Types::LIST, :name => 'partitions', :element => {:type => ::Thrift::Types::STRING}, :optional => true}, + WRITEIDS => {:type => ::Thrift::Types::LIST, :name => 'writeIds', :element => {:type => ::Thrift::Types::I64}, :optional => true}, + TABLEOBJS => {:type => ::Thrift::Types::LIST, :name => 'tableObjs', :element => {:type => ::Thrift::Types::STRING}, :optional => true}, + FILES => {:type => ::Thrift::Types::LIST, :name => 'files', :element => {:type => ::Thrift::Types::STRING}, :optional => true}, + PARTITIONOBJS => {:type => ::Thrift::Types::LIST, :name => 'partitionObjs', :element => {:type => ::Thrift::Types::STRING}, :optional => true} } def struct_fields; FIELDS; end @@ -3339,11 +3384,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 +3468,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 58ebd29523..bdad643db3 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() @@ -5409,6 +5424,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() @@ -11982,6 +12004,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 cd50e1b0c7..c2a9942a8f 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 @@ -7138,6 +7138,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 feae991bb3..055fe00290 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 @@ -2419,10 +2419,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); } @@ -2638,6 +2636,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 27f8775a10..720e6f6979 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 @@ -33,97 +33,7 @@ import org.apache.hadoop.hive.common.ValidWriteIdList; import org.apache.hadoop.hive.common.classification.RetrySemantics; import org.apache.hadoop.hive.metastore.annotation.NoReconnect; -import org.apache.hadoop.hive.metastore.api.AggrStats; -import org.apache.hadoop.hive.metastore.api.AlreadyExistsException; -import org.apache.hadoop.hive.metastore.api.CheckConstraintsRequest; -import org.apache.hadoop.hive.metastore.api.Catalog; -import org.apache.hadoop.hive.metastore.api.CmRecycleRequest; -import org.apache.hadoop.hive.metastore.api.CmRecycleResponse; -import org.apache.hadoop.hive.metastore.api.ColumnStatistics; -import org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj; -import org.apache.hadoop.hive.metastore.api.CompactionResponse; -import org.apache.hadoop.hive.metastore.api.CompactionType; -import org.apache.hadoop.hive.metastore.api.ConfigValSecurityException; -import org.apache.hadoop.hive.metastore.api.CreationMetadata; -import org.apache.hadoop.hive.metastore.api.CurrentNotificationEventId; -import org.apache.hadoop.hive.metastore.api.DataOperationType; -import org.apache.hadoop.hive.metastore.api.DefaultConstraintsRequest; -import org.apache.hadoop.hive.metastore.api.Database; -import org.apache.hadoop.hive.metastore.api.EnvironmentContext; -import org.apache.hadoop.hive.metastore.api.FieldSchema; -import org.apache.hadoop.hive.metastore.api.FindSchemasByColsResp; -import org.apache.hadoop.hive.metastore.api.FindSchemasByColsRqst; -import org.apache.hadoop.hive.metastore.api.FireEventRequest; -import org.apache.hadoop.hive.metastore.api.FireEventResponse; -import org.apache.hadoop.hive.metastore.api.ForeignKeysRequest; -import org.apache.hadoop.hive.metastore.api.Function; -import org.apache.hadoop.hive.metastore.api.GetAllFunctionsResponse; -import org.apache.hadoop.hive.metastore.api.GetOpenTxnsInfoResponse; -import org.apache.hadoop.hive.metastore.api.GetPrincipalsInRoleRequest; -import org.apache.hadoop.hive.metastore.api.GetPrincipalsInRoleResponse; -import org.apache.hadoop.hive.metastore.api.GetRoleGrantsForPrincipalRequest; -import org.apache.hadoop.hive.metastore.api.GetRoleGrantsForPrincipalResponse; -import org.apache.hadoop.hive.metastore.api.HeartbeatTxnRangeResponse; -import org.apache.hadoop.hive.metastore.api.HiveObjectPrivilege; -import org.apache.hadoop.hive.metastore.api.HiveObjectRef; -import org.apache.hadoop.hive.metastore.api.ISchema; -import org.apache.hadoop.hive.metastore.api.InvalidInputException; -import org.apache.hadoop.hive.metastore.api.InvalidObjectException; -import org.apache.hadoop.hive.metastore.api.InvalidOperationException; -import org.apache.hadoop.hive.metastore.api.InvalidPartitionException; -import org.apache.hadoop.hive.metastore.api.LockRequest; -import org.apache.hadoop.hive.metastore.api.LockResponse; -import org.apache.hadoop.hive.metastore.api.Materialization; -import org.apache.hadoop.hive.metastore.api.MetaException; -import org.apache.hadoop.hive.metastore.api.MetadataPpdResult; -import org.apache.hadoop.hive.metastore.api.NoSuchLockException; -import org.apache.hadoop.hive.metastore.api.NoSuchObjectException; -import org.apache.hadoop.hive.metastore.api.NoSuchTxnException; -import org.apache.hadoop.hive.metastore.api.NotNullConstraintsRequest; -import org.apache.hadoop.hive.metastore.api.NotificationEvent; -import org.apache.hadoop.hive.metastore.api.NotificationEventResponse; -import org.apache.hadoop.hive.metastore.api.NotificationEventsCountRequest; -import org.apache.hadoop.hive.metastore.api.NotificationEventsCountResponse; -import org.apache.hadoop.hive.metastore.api.OpenTxnsResponse; -import org.apache.hadoop.hive.metastore.api.Partition; -import org.apache.hadoop.hive.metastore.api.PartitionEventType; -import org.apache.hadoop.hive.metastore.api.PartitionValuesRequest; -import org.apache.hadoop.hive.metastore.api.PartitionValuesResponse; -import org.apache.hadoop.hive.metastore.api.PrimaryKeysRequest; -import org.apache.hadoop.hive.metastore.api.PrincipalPrivilegeSet; -import org.apache.hadoop.hive.metastore.api.PrincipalType; -import org.apache.hadoop.hive.metastore.api.PrivilegeBag; -import org.apache.hadoop.hive.metastore.api.Role; -import org.apache.hadoop.hive.metastore.api.SQLCheckConstraint; -import org.apache.hadoop.hive.metastore.api.SQLDefaultConstraint; -import org.apache.hadoop.hive.metastore.api.SQLForeignKey; -import org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint; -import org.apache.hadoop.hive.metastore.api.SQLPrimaryKey; -import org.apache.hadoop.hive.metastore.api.SQLUniqueConstraint; -import org.apache.hadoop.hive.metastore.api.SchemaVersion; -import org.apache.hadoop.hive.metastore.api.SchemaVersionState; -import org.apache.hadoop.hive.metastore.api.SerDeInfo; -import org.apache.hadoop.hive.metastore.api.SetPartitionsStatsRequest; -import org.apache.hadoop.hive.metastore.api.ShowCompactResponse; -import org.apache.hadoop.hive.metastore.api.ShowLocksRequest; -import org.apache.hadoop.hive.metastore.api.ShowLocksResponse; -import org.apache.hadoop.hive.metastore.api.Table; -import org.apache.hadoop.hive.metastore.api.TableMeta; -import org.apache.hadoop.hive.metastore.api.TxnAbortedException; -import org.apache.hadoop.hive.metastore.api.TxnOpenException; -import org.apache.hadoop.hive.metastore.api.TxnToWriteId; -import org.apache.hadoop.hive.metastore.api.UniqueConstraintsRequest; -import org.apache.hadoop.hive.metastore.api.UnknownDBException; -import org.apache.hadoop.hive.metastore.api.UnknownPartitionException; -import org.apache.hadoop.hive.metastore.api.UnknownTableException; -import org.apache.hadoop.hive.metastore.api.WMFullResourcePlan; -import org.apache.hadoop.hive.metastore.api.WMMapping; -import org.apache.hadoop.hive.metastore.api.WMNullablePool; -import org.apache.hadoop.hive.metastore.api.WMNullableResourcePlan; -import org.apache.hadoop.hive.metastore.api.WMPool; -import org.apache.hadoop.hive.metastore.api.WMResourcePlan; -import org.apache.hadoop.hive.metastore.api.WMTrigger; -import org.apache.hadoop.hive.metastore.api.WMValidateResourcePlanResponse; +import org.apache.hadoop.hive.metastore.api.*; import org.apache.hadoop.hive.metastore.partition.spec.PartitionSpecProxy; import org.apache.hadoop.hive.metastore.utils.ObjectPair; import org.apache.thrift.TException; @@ -2844,8 +2754,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. @@ -2853,7 +2763,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; /** @@ -3155,6 +3065,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..be6925290b 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 @@ -23,37 +23,7 @@ import org.apache.hadoop.conf.Configurable; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hive.metastore.api.MetaException; -import org.apache.hadoop.hive.metastore.events.AddForeignKeyEvent; -import org.apache.hadoop.hive.metastore.events.AddNotNullConstraintEvent; -import org.apache.hadoop.hive.metastore.events.AddPrimaryKeyEvent; -import org.apache.hadoop.hive.metastore.events.AddSchemaVersionEvent; -import org.apache.hadoop.hive.metastore.events.AddUniqueConstraintEvent; -import org.apache.hadoop.hive.metastore.events.AlterDatabaseEvent; -import org.apache.hadoop.hive.metastore.events.AlterISchemaEvent; -import org.apache.hadoop.hive.metastore.events.AddPartitionEvent; -import org.apache.hadoop.hive.metastore.events.AlterPartitionEvent; -import org.apache.hadoop.hive.metastore.events.AlterSchemaVersionEvent; -import org.apache.hadoop.hive.metastore.events.AlterTableEvent; -import org.apache.hadoop.hive.metastore.events.ConfigChangeEvent; -import org.apache.hadoop.hive.metastore.events.CreateCatalogEvent; -import org.apache.hadoop.hive.metastore.events.CreateDatabaseEvent; -import org.apache.hadoop.hive.metastore.events.CreateFunctionEvent; -import org.apache.hadoop.hive.metastore.events.CreateISchemaEvent; -import org.apache.hadoop.hive.metastore.events.CreateTableEvent; -import org.apache.hadoop.hive.metastore.events.DropCatalogEvent; -import org.apache.hadoop.hive.metastore.events.DropConstraintEvent; -import org.apache.hadoop.hive.metastore.events.DropDatabaseEvent; -import org.apache.hadoop.hive.metastore.events.DropFunctionEvent; -import org.apache.hadoop.hive.metastore.events.DropISchemaEvent; -import org.apache.hadoop.hive.metastore.events.DropPartitionEvent; -import org.apache.hadoop.hive.metastore.events.DropSchemaVersionEvent; -import org.apache.hadoop.hive.metastore.events.DropTableEvent; -import org.apache.hadoop.hive.metastore.events.InsertEvent; -import org.apache.hadoop.hive.metastore.events.LoadPartitionDoneEvent; -import org.apache.hadoop.hive.metastore.events.OpenTxnEvent; -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.*; import org.apache.hadoop.hive.metastore.tools.SQLGenerator; import java.sql.Connection; @@ -278,6 +248,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..4afcfbcec5 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 @@ -24,35 +24,7 @@ import org.apache.hadoop.classification.InterfaceAudience; import org.apache.hadoop.hive.metastore.api.EnvironmentContext; import org.apache.hadoop.hive.metastore.api.MetaException; -import org.apache.hadoop.hive.metastore.events.AddForeignKeyEvent; -import org.apache.hadoop.hive.metastore.events.AddNotNullConstraintEvent; -import org.apache.hadoop.hive.metastore.events.AddPartitionEvent; -import org.apache.hadoop.hive.metastore.events.AddPrimaryKeyEvent; -import org.apache.hadoop.hive.metastore.events.AddSchemaVersionEvent; -import org.apache.hadoop.hive.metastore.events.AddUniqueConstraintEvent; -import org.apache.hadoop.hive.metastore.events.AlterDatabaseEvent; -import org.apache.hadoop.hive.metastore.events.AlterISchemaEvent; -import org.apache.hadoop.hive.metastore.events.AlterPartitionEvent; -import org.apache.hadoop.hive.metastore.events.AlterSchemaVersionEvent; -import org.apache.hadoop.hive.metastore.events.AlterTableEvent; -import org.apache.hadoop.hive.metastore.events.CreateCatalogEvent; -import org.apache.hadoop.hive.metastore.events.CreateDatabaseEvent; -import org.apache.hadoop.hive.metastore.events.CreateFunctionEvent; -import org.apache.hadoop.hive.metastore.events.CreateISchemaEvent; -import org.apache.hadoop.hive.metastore.events.CreateTableEvent; -import org.apache.hadoop.hive.metastore.events.DropCatalogEvent; -import org.apache.hadoop.hive.metastore.events.DropDatabaseEvent; -import org.apache.hadoop.hive.metastore.events.DropFunctionEvent; -import org.apache.hadoop.hive.metastore.events.DropISchemaEvent; -import org.apache.hadoop.hive.metastore.events.DropPartitionEvent; -import org.apache.hadoop.hive.metastore.events.DropSchemaVersionEvent; -import org.apache.hadoop.hive.metastore.events.DropTableEvent; -import org.apache.hadoop.hive.metastore.events.InsertEvent; -import org.apache.hadoop.hive.metastore.events.ListenerEvent; -import org.apache.hadoop.hive.metastore.events.OpenTxnEvent; -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.*; import org.apache.hadoop.hive.metastore.tools.SQLGenerator; import java.sql.Connection; import java.util.List; @@ -218,6 +190,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 +212,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 125d5a79f2..4fe3b7e276 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 @@ -156,6 +156,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; @@ -202,6 +203,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; @@ -9112,6 +9114,57 @@ 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 WriteEventInfo getAllWriteEventInfo(long txnId) throws MetaException { + WriteEventInfo writeEventInfo = 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) { + writeEventInfo = new WriteEventInfo(txnId); + for (MWriteNotificationLog mplan : mplans) { + writeEventInfo.addToWriteIds(mplan.getWriteId()); + writeEventInfo.addToDatabases(mplan.getDatabase()); + writeEventInfo.addToTables(mplan.getTable()); + writeEventInfo.addToPartitions(mplan.getPartition()); + writeEventInfo.addToTableObjs(mplan.getTableObject()); + writeEventInfo.addToPartitionObjs(mplan.getPartObject()); + writeEventInfo.addToFiles(mplan.getFiles()); + } + } + } finally { + rollbackAndCleanup(commited, query); + } + return writeEventInfo; + } + 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 f6c46ee7bd..96e35f34ed 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 @@ -23,6 +23,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; @@ -1629,4 +1630,17 @@ void alterSchemaVersion(SchemaVersionDescriptor version, SchemaVersion newVersio * @throws MetaException general database exception */ void addSerde(SerDeInfo serde) throws AlreadyExistsException, 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 + */ + WriteEventInfo 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..0ecbc9dfea 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) { + public FileInfo(FileSystem srcFs, Path sourcePath, Path cmPath, String checkSum, boolean useSourcePath, String subDir) { 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) { - 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, false, 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, false, 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) { + static public 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; } /*** @@ -357,11 +373,14 @@ static public String encodeFileUri(String fileUriStr, String fileChecksum) { */ static public 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 ebdcbc237e..10e8fc4306 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 @@ -107,6 +107,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; @@ -2394,6 +2395,17 @@ public long getCacheUpdateCount() { return sharedCache.getUpdateCount(); } + @Override + public void cleanWriteNotificationEvents(int olderThan) { + rawStore.cleanWriteNotificationEvents(olderThan); + } + + + @Override + public WriteEventInfo 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..524c6dcfe1 --- /dev/null +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/events/AcidWriteEvent.java @@ -0,0 +1,106 @@ +/* + * 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 java.util.List; + +/** + * AcidWriteEvent + * Event generated for acid write operations + */ +@InterfaceAudience.Public +@InterfaceStability.Stable +public class AcidWriteEvent extends ListenerEvent { + private final Long txnId, writeId; + private final String database, table, partition; + private final Table tableObj; + private final Partition partitionObj; + private final List files, checksums, subDirs; + + public AcidWriteEvent(Long transactionId, + String databases, + String tables, + Long writeIds, + String partitions, + Table tableObj, + Partition partitionObj, + List files, + List checksums, + List subDirs) { + super(true, null); + txnId = transactionId; + this.database = databases; + this.table = tables; + this.writeId = writeIds; + this.partition = partitions; + this.tableObj = tableObj; + this.partitionObj = partitionObj; + this.files = files; + this.checksums = checksums; + this.subDirs = subDirs; + } + + /** + * @return Long txnId + */ + public Long getTxnId() { + return txnId; + } + + public List getFiles() { + return files; + } + + public List getChecksums() { + return checksums; + } + + public String getDatabase() { + return database; + } + + public String getTable() { + return table; + } + + public String getPartition() { + return partition; + } + + public Long getWriteId() { + return writeId; + } + + public Table getTableObj() { + return tableObj; + } + + public Partition getPartitionObj() { + return partitionObj; + } + + public List getSubDirs() { + return subDirs; + } +} + 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..b55ce46593 --- /dev/null +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/AcidWriteMessage.java @@ -0,0 +1,59 @@ +/* * 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 org.apache.thrift.TException; + +import java.util.List; + +/** + * HCat message sent when an commit transaction is done. + */ +public abstract class AcidWriteMessage extends EventMessage { + + protected AcidWriteMessage() { + super(EventType.ACID_WRITE); + } + + /** + * Get the transaction id to be committed. + * + * @return The TxnId + */ + public abstract Long getTxnId(); + + public abstract String getDatabase(); + + 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..8b66cfa131 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,11 @@ 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 commit transaction is done. */ @@ -33,4 +38,22 @@ 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 databases, List tables, List partitions, + List writeIds, List tableObjs, List partitionObjs, List files); } 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..df5d021f66 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 writ operation + * @return instance of CommitTxnMessage + */ + 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..5c65be055d --- /dev/null +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/json/JSONAcidWriteMessage.java @@ -0,0 +1,155 @@ +/* + * 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 null; + } + + @Override + public String getServicePrincipal() { + return servicePrincipal; + } + + @Override + public String getServer() { + return server; + } + + @Override + public String getDatabase() { + return database; + } + + @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..dd3e867961 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,13 @@ */ package org.apache.hadoop.hive.metastore.messaging.json; +import org.apache.hadoop.hive.metastore.api.Partition; +import org.apache.hadoop.hive.metastore.api.Table; import org.apache.hadoop.hive.metastore.messaging.CommitTxnMessage; import org.codehaus.jackson.annotate.JsonProperty; +import java.util.List; + /** * JSON implementation of CommitTxnMessage */ @@ -38,6 +42,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 +59,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 +93,58 @@ 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 databases, List tables, List partitions, List writeIds, + List tableObjs, List partitionObjs, List files) { + this.databases = databases; + this.tables = tables; + this.partitions = partitions; + this.writeIds = writeIds; + this.tableObjs = tableObjs; + this.partitionObjs = partitionObjs; + this.files = files; + } + @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/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 39a0f315e2..e75f35400b 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,15 +118,13 @@ 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.conf.MetastoreConf; import org.apache.hadoop.hive.metastore.conf.MetastoreConf.ConfVars; import org.apache.hadoop.hive.metastore.datasource.BoneCPDataSourceProvider; import org.apache.hadoop.hive.metastore.datasource.DataSourceProvider; import org.apache.hadoop.hive.metastore.datasource.HikariCPDataSourceProvider; -import org.apache.hadoop.hive.metastore.events.AbortTxnEvent; -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.*; 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 +918,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 +1017,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 + ">"); + 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)); + } + } else if ( rqst.getDatabases() != null) { + List rows = new ArrayList<>(); + for (int i = 0; i < rqst.getDatabases().size(); i++) { + rows.add(txnid + "," + quoteString(rqst.getDatabases().get(i)) + "," + + quoteString(rqst.getTables().get(i)) + "," + + quoteString(rqst.getPartitions().get(i)) + "," + + rqst.getWriteIds().get(i)); + } + 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 +1070,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 +1432,59 @@ 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 = Warehouse.makePartName(tableObj.getPartitionKeys(), rqst.getPartitionVals()); + AcidWriteEvent event = new AcidWriteEvent(rqst.getTxnId(), rqst.getDb(), rqst.getTable(), + rqst.getWriteId(), partition, tableObj, ptnObj, + rqst.getFileInfo().getFilesAdded(), rqst.getFileInfo().getFilesAddedChecksum(), + rqst.getFileInfo().getSubDirectoryList()); + 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 (retryNum++ < retryLimit) { + LOG.warn("Retryable error detected in addWriteNotificationLog. Will wait " + retryInterval + + "ms and retry up to " + (retryLimit - retryNum + 1) + " times. Error: " + getMessage(e)); + try { + Thread.sleep(retryInterval); + } catch (InterruptedException ex) { + // + } + throw new RetryException(); + } else { + LOG.error("Fatal error in addWriteNotificationLog. Retry limit (" + retryLimit + ") reached. Last error: " + + getMessage(e)); + } + 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() { 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 9ddf598d36..22a8cbfe7d 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 adfa4c596e..09baf76234 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 @@ -676,6 +676,22 @@ CREATE TABLE REPL_TXN_MAP ( RTM_TARGET_TXN_ID bigint NOT NULL, PRIMARY KEY (RTM_REPL_POLICY, RTM_SRC_TXN_ID) ); + +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 a75b74004d..21af6965c2 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,6 +238,22 @@ CREATE TABLE MIN_HISTORY_LEVEL ( CREATE INDEX MIN_HISTORY_LEVEL_IDX ON MIN_HISTORY_LEVEL (MHL_MIN_OPEN_TXNID); +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 91c581c22f..9b8ea581a0 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 @@ -1230,6 +1230,22 @@ CREATE UNIQUE INDEX PART_TABLE_PK ON SEQUENCE_TABLE (SEQUENCE_NAME); INSERT INTO SEQUENCE_TABLE (SEQUENCE_NAME, NEXT_VAL) VALUES ('org.apache.hadoop.hive.metastore.model.MNotificationLog', 1); +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 87f5884994..2554ded2de 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 @@ -306,6 +306,23 @@ PRIMARY KEY CLUSTERED CREATE INDEX MIN_HISTORY_LEVEL_IDX ON MIN_HISTORY_LEVEL (MHL_MIN_OPEN_TXNID); +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 7e2a57a70c..c837b0a232 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,6 +1154,22 @@ CREATE TABLE REPL_TXN_MAP ( PRIMARY KEY (RTM_REPL_POLICY, RTM_SRC_TXN_ID) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; +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 5ba68ca109..0ac695ec63 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 @@ -279,6 +279,22 @@ CREATE TABLE MIN_HISTORY_LEVEL ( CREATE INDEX MIN_HISTORY_LEVEL_IDX ON MIN_HISTORY_LEVEL (MHL_MIN_OPEN_TXNID); +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 42a972fad0..6ae8fd7aeb 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 @@ -1124,6 +1124,22 @@ CREATE TABLE REPL_TXN_MAP ( PRIMARY KEY (RTM_REPL_POLICY, RTM_SRC_TXN_ID) ); + +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 a769d2467d..69be1e790d 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 @@ -297,6 +297,22 @@ CREATE TABLE MIN_HISTORY_LEVEL ( CREATE INDEX MIN_HISTORY_LEVEL_IDX ON MIN_HISTORY_LEVEL (MHL_MIN_OPEN_TXNID); +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 6fed0722b1..3c20178b39 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,6 +1811,22 @@ CREATE TABLE REPL_TXN_MAP ( PRIMARY KEY (RTM_REPL_POLICY, RTM_SRC_TXN_ID) ); +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 7b6b3b709c..352c0256c3 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 @@ -314,6 +314,22 @@ CREATE TABLE MIN_HISTORY_LEVEL ( CREATE INDEX MIN_HISTORY_LEVEL_IDX ON MIN_HISTORY_LEVEL (MHL_MIN_OPEN_TXNID); +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 5bba3294fa..b6e5fd0846 100644 --- a/standalone-metastore/src/main/thrift/hive_metastore.thrift +++ b/standalone-metastore/src/main/thrift/hive_metastore.thrift @@ -860,6 +860,24 @@ struct AbortTxnsRequest { struct CommitTxnRequest { 1: required i64 txnid, 2: optional string replPolicy, + 3: optional list databases, + 4: optional list tables, + 5: optional list partitions, + 6: optional list writeIds, + 7: optional list tableObjs, + 8: optional list partitionObjs, + 9: optional list files, +} + +struct WriteEventInfo { + 1: required i64 txnid, + 2: optional list databases, + 3: optional list tables, + 4: optional list partitions, + 5: optional list writeIds, + 6: optional list tableObjs, + 7: optional list files, + 8: optional list partitionObjs, } // Request msg to get the valid write ids list for the given list of tables wrt to input validTxnList @@ -1086,6 +1104,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 +1126,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 @@ -2073,6 +2106,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 304f567533..31ef6537b6 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 @@ -82,6 +82,7 @@ import org.apache.hadoop.hive.metastore.api.UnknownTableException; import org.apache.hadoop.hive.metastore.api.WMMapping; import org.apache.hadoop.hive.metastore.api.WMPool; +import org.apache.hadoop.hive.metastore.api.WriteEventInfo; import org.apache.hadoop.hive.metastore.partition.spec.PartitionSpecProxy; import org.apache.hadoop.hive.metastore.utils.MetaStoreUtils.ColStatsObjWithSourceInfo; import org.apache.thrift.TException; @@ -1161,4 +1162,14 @@ public SerDeInfo getSerDeInfo(String serDeName) throws NoSuchObjectException, Me public void addSerde(SerDeInfo serde) throws AlreadyExistsException, MetaException { objectStore.addSerde(serde); } + + @Override + public void cleanWriteNotificationEvents(int olderThan) { + objectStore.cleanWriteNotificationEvents(olderThan); + } + + @Override + public WriteEventInfo 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 85c67270d1..533c9e49a1 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 @@ -80,6 +80,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; @@ -1148,4 +1149,13 @@ public SerDeInfo getSerDeInfo(String serDeName) throws MetaException { public void addSerde(SerDeInfo serde) throws AlreadyExistsException, MetaException { } + + @Override + public void cleanWriteNotificationEvents(int olderThan) { + } + + @Override + public WriteEventInfo 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 cb51763ccd..755e07f7cd 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